var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ 'use strict';var ca,ea,aaa,ia,ka,la,ma,ra,sa,ta,baa,caa,Ba,Ca,daa,eaa,faa,Ea,Fa,Ga,Ha,Ka,La,haa,iaa,Wa,Za,$a,ab,jaa,bb,kaa,oaa,eb,paa,gb,jb,nb,sb,tb,ub,vb,wb,xb,xaa,yb,Ab,zb,yaa,zaa,Aaa,Bb,Cb,Baa,Eb,Fb,Gb,Caa,Daa,Eaa,Ib,Gaa,Haa,Tb,Iaa,Yb,Jaa,Kaa,Vb,Laa,Maa,Naa,ec,gc,Oaa,Paa,Vaa,nc,Uaa,Saa,qc,rc,Xaa,tc,uc,wc,vc,yc,zc,Ac,Bc,Cc,Dc,Ec,Fc,Gc,Hc,Zaa,Ic,$aa,Jc,Kc,aba,Lc,dba,cba,eba,bba,Nc,fba,Rc,Sc,gba,Tc,Vc,Xc,Zc,iba,$c,cd,dd,ed,fd,gd,id,kd,ld,jba,md,kba,nd,lba,od,nba,mba,sd,qba,sba,yd,uba,vba,Bd,xba,yba, Aba,Gd,Bba,Hd,Cba,Dba,Jd,Eba,Fba,Gba,Nd,Jba,Kba,Mba,Nba,Oba,Pba,Qba,Hba,Iba,Sba,Tba,Uba,Vba,Td,Wba,Xba,Yba,Zba,Pd,Lba,Rba,bca,cca,dca,eca,$d,ae,fca,be,ce,de,hca,gca,ica,jca,ke,le,mca,me,pe,nca,oca,ue,ze,pca,sca,He,Je,tca,uca,Ke,zca,Pe,wca,yca,Ne,Me,Ue,Ve,Aca,We,Bca,Ye,Ze,Cca,af,bf,cf,ef,Gca,ff,Ica,Lca,Nca,pf,qf,Qca,Rca,Pca,Wca,Xca,tf,wf,Zca,$ca,vf,ada,Df,Ef,eda,If,Kf,Nf,Pf,Sf,Xf,fda,gda,hda,ida,$f,kda,eg,mda,oda,nda,fg,hg,pda,gg,qda,Zf,qg,sda,sg,rg,Yf,ug,tda,vg,wg,uda,wda,yda,Fg,Gg,Hg,Cda,Jg,Dda, Ig,Hda,Cg,Ada,Jda,Gda,Eda,Fda,Kda,Ida,Kg,Ng,Mda,Nda,Oda,Pda,Qda,Rda,Vda,Xda,Yda,$da,Zda,aea,Vg,Wg,Xg,cea,dea,Yg,Zg,fea,bh,gea,jea,dh,eh,kea,fh,gh,mea,nea,kh,oea,pea,lh,mh,qea,oh,qh,rea,wh,xh,uea,vea,xea,yea,Aea,zea,Bea,zh,Cea,Ch,Eea,Gh,Hh,Ih,Jh,Iea,Kea,Lea,Lh,Nea,Oea,Pea,Rea,Qea,Sea,Mea,Kh,Uea,Mh,Vea,Wea,Nh,Xea,Oh,Ph,Qh,Rh,Sh,Yea,Zea,$ea,afa,Th,bfa,cfa,Uh,Wh,dfa,Xh,Yh,ffa,gfa,hfa,$h,ifa,kfa,jfa,lfa,mfa,nfa,ai,bi,gi,ofa,pfa,rfa,sfa,ii,ji,ki,li,tfa,mi,ni,oi,pi,qi,yfa,vfa,ti,xfa,ui,wfa,si,ri,wi,zfa, yi,xi,Afa,Bfa,Ei,Fi,Hi,Efa,Gi,Ki,Ffa,Li,Cfa,Ifa,Jfa,Kfa,Pi,Qi,Ri,Lfa,Si,Ti,Ui,Vi,Mfa,Wi,Xi,Yi,Nfa,Ofa,Zi,Pfa,hi,Sfa,Tfa,Ufa,Vfa,Qfa,$i,bj,Wfa,aj,Yfa,Zfa,dj,ej,$fa,gj,hj,ij,fj,pj,cj,cga,dga,aga,ega,fga,gga,qj,rj,sj,tj,uj,vj,wj,hga,xj,yj,zj,iga,kga,lga,Cj,Ej,Dj,Gj,Hj,Ij,nga,oga,Jj,Kj,Lj,qga,sga,vga,tga,wga,Aga,Mj,zga,xga,Nj,Oj,Bga,Pj,Dga,Cga,Qj,Fga,Ega,Gga,Hga,Uj,Vj,Iga,Jga,Kga,Wj,Xj,Lga,Yj,Mga,Nga,Sga,Zj,ak,Tga,Uga,Vga,Wga,ck,Xga,Yga,Zga,jk,ik,hk,$ga,aha,bha,kk,lk,mk,dha,rk,sk,tk,uk,vk,wk,fha,gha, hha,xk,zk,Ak,Hk,Ik,Lk,jha,lha,kha,mha,nha,Uk,oha,pha,Vk,qha,rha,sha,tha,Zk,Xk,$k,al,bl,uha,vha,wha,cl,dl,el,xha,yha,zha,fl,Aha,gl,hl,Bha,Cha,Dha,Eha,Fha,Gha,Hha,jl,kl,ll,nl,Kha,ol,pl,Lha,Jha,ml,Mha,ql,rl,sl,ul,tl,Nha,Oha,Pha,vl,Rha,wl,Tha,Uha,Vha,Wha,Xha,Yha,Zha,$ha,zl,Al,Bl,bia,aia,Dl,cia,El,dia,Fl,eia,fia,Gl,Hl,Il,gia,Jl,Kl,Ll,Ml,Nl,Ol,Pl,Ql,Rl,hia,iia,jia,kia,Sl,lia,nia,mia,cm,dm,pia,oia,uia,tia,em,via,wia,xia,zia,yia,Aia,fm,Bia,Cia,hm,Dia,Eia,Fia,Gia,im,Hia,jm,Iia,km,lm,Kia,mm,Lia,nm,om,Mia,Nia, pm,wm,Pia,xm,Oia,Qia,Ria,Tia,Via,ym,Wia,Bm,Cm,Yia,Zia,bja,cja,Dm,dja,Em,Fm,Gm,Hm,Im,Jm,Km,Lm,Mm,Nm,Om,Pm,Qm,hja,gja,ija,kja,jja,mja,fja,lja,eja,Rm,Sm,oja,pja,qja,Wm,Xm,Ym,Tm,sja,Zm,nja,uja,vja,wja,tja,$m,an,bn,cn,xja,rja,yja,dn,zja,Aja,Bja,Cja,Dja,Gja,Hja,Ija,fn,Jja,Mja,jn,Pja,Oja,hn,ln,Qja,Rja,Sja,rn,Tja,Uja,sn,Vja,Cn,zn,An,Bn,Wja,Fn,En,Xja,Hn,Yja,$ja,In,aka,bka,gka,cka,Nn,lka,On,Pn,nka,jo,oka,pka,ko,rka,mo,no,oo,ska,qo,ro,so,to,vo,wo,uka,xo,yo,vka,wka,zo,xka,yka,Bo,Co,Do,Cka,Eo,Fo,Go,Eka,Io,Jo, Ko,Mo,No,Oo,Po,Qo,Ro,So,To,Uo,Vo,Wo,Xo,Yo,Zo,Lka,$o,ap,bp,Nka,cp,Oka,dp,Qka,ep,fp,gp,hp,ip,jp,kp,lp,Tka,Uka,np,mp,op,pp,qp,rp,sp,tp,up,Wka,Xka,wp,xp,zp,Yka,Ap,Zka,Dp,Ep,Fp,Gp,Hp,Ip,Kp,Lp,dla,Mp,Np,Op,$ka,Pp,gla,jla,Qp,lla,nla,Vp,ola,pla,qla,ula,sla,tla,Wp,Zp,Yp,vla,aq,bq,cq,xla,yla,Hna,iq,Ina,kq,lq,Jna,mq,nq,oq,qq,sq,tq,hq,uq,Tna,vq,wq,xq,yq,zq,Aq,Bq,Cq,Wna,Vna,Eq,Dq,aoa,Zna,$na,boa,coa,doa,Gq,Kq,Lq,eoa,foa,hoa,joa,koa,poa,loa,moa,noa,ooa,toa,Oq,Pq,uoa,Sq,Qq,Vq,Xq,voa,fr,gr,kr,lr,nr,or,qr,Aoa,Boa, sr,Coa,Doa,ur,Eoa,Foa,wr,Goa,xr,Hoa,Ar,Ioa,Koa,Loa,yr,Moa,Noa,Qoa,Poa,Dr,Joa,Soa,Toa,Gr,Uoa,Voa,Ir,Woa,Jr,Xoa,Yoa,Mr,Zoa,$oa,apa,bpa,Qr,cpa,dpa,epa,fpa,gpa,hpa,ipa,jpa,Tr,kpa,Ur,npa,mpa,lpa,Vr,Sr,opa,as,bs,ds,qpa,hs,gs,cs,is,rpa,spa,ls,ms,upa,vpa,ns,os,wpa,xpa,tpa,zpa,Apa,Bpa,Cpa,Dpa,rs,ts,vs,Fpa,Gpa,ws,Jpa,Ipa,Hpa,Kpa,Mpa,ys,zs,Ppa,Opa,Npa,Qpa,Rpa,Gs,Hs,Spa,Es,Tpa,Bs,Fs,Ds,Cs,Upa,Vpa,Ps,Qs,Xpa,Ypa,aqa,Vs,Ws,Xs,bqa,at,bt,dqa,dt,ct,ft,fqa,eqa,gqa,rt,hqa,iqa,wt,kqa,lqa,ut,qt,jqa,Dt,Et,pqa,qqa,oqa,tqa, uqa,nqa,sqa,rqa,tt,Kt,zqa,yqa,Lt,Bqa,Dqa,Eqa,Cqa,Mt,Pt,Qt,Gqa,Ot,Rt,St,Wt,Zt,$t,Xt,Iqa,au,bu,Jqa,Kqa,Lqa,du,Mqa,Oqa,eu,Pqa,fu,gu,hu,iu,ku,Rqa,Sqa,Tqa,Uqa,Vqa,Wqa,br,cra,fra,nu,hra,qu,tu,uu,jra,kra,lra,xu,nra,yu,rra,sra,tra,ura,zu,vra,Hu,wra,zra,Cra,Ara,Ru,Qu,Dra,Pu,Su,Tu,Gra,Ira,Wu,Xu,Kra,S,Yu,Zu,$u,av,bv,cv,Lra,dv,ev,fv,gv,Qra,Sra,Ura,Vra,iv,Xra,Yra,ov,pv,Zra,$ra,qv,uv,asa,vv,bsa,csa,dsa,esa,zv,yv,Av,Bv,Cv,wv,Dv,Ev,gsa,Fv,fsa,jsa,ksa,lsa,Gv,Hv,Iv,msa,Jv,ssa,Kv,Lv,Nv,Ov,Sv,Rv,kw,Qv,vsa,wsa,lw,mw, nw,Pv,Asa,ysa,Bsa,zsa,xsa,qw,rw,uw,xw,zw,Csa,Aw,Gsa,Cw,Fsa,Gw,Dw,Ksa,Osa,Iw,Esa,Dsa,Jw,Psa,Qsa,Rsa,Ssa,Usa,Nw,Pw,Qw,Wsa,Rw,Sw,Ow,Vsa,Xsa,Ysa,Tsa,Zsa,Tw,Uw,$sa,Vw,ata,Ww,Xw,Yw,Zw,bta,cta,$w,dta,ax,eta,bx,cx,ex,ix,jx,kx,lx,mx,nx,ox,px,fta,qx,sx,hta,ita,rx,jta,mta,nta,tx,ota,wx,pta,xx,zx,qta,yx,Ax,rta,Cx,uta,Ex,Fx,Kx,wta,Hx,Lx,Nx,xta,Px,Jx,Mx,yta,Qx,zta,Rx,Ata,Gx,Ix,vta,Ox,Sx,Bta,Cta,Ux,Dta,Eta,Fta,Gta,Vx,Hta,Xx,Ita,Wx,Jta,Yx,Zx,$x,ay,by,Kta,cy,Lta,dy,Mta,ey,fy,gy,Nta,hy,Ota,jy,iy,Pta,Qta,Rta,Sta,ky, ly,my,ny,oy,Uta,Vta,Wta,Xta,qy,Yta,ry,sy,Zta,$ta,ty,aua,bua,fua,gua,cua,dua,eua,uy,wy,vy,yy,zy,hua,iua,Ay,By,Cy,Dy,jua,kua,lua,mua,oua,nua,Fy,pua,qua,rua,sua,Gy,Hy,Iy,tua,Ky,Jy,Oy,Py,Qy,Ry,Isa,Hsa,Sy,uua,Ty,My,vua,wua,Wy,Xy,xua,Yy,$y,az,bz,cz,dz,ez,fz,yua,gz,hz,zua,iz,jz,kz,lz,mz,nz,Bua,Cua,oz,pz,qz,Dua,Eua,rz,sz,Msa,Hw,Iua,Jua,Kua,Lua,Mua,Nua,Bw,Oua,tz,uz,Qua,Rua,vz,Vua,Sua,Tua,Xua,Yua,xz,Wua,Zua,yz,zz,Az,$ua,ava,bva,Bz,cva,wz,dva,Pua,fva,gva,Dz,hva,iva,jva,Fz,Ez,kva,lva,mva,nva,pva,Nsa,Lsa,Gz,Iz, Kz,Lz,Mz,Nz,Jz,Qz,rva,Sz,tva,Tz,vva,uva,sva,wva,xva,yva,Uz,Jsa,Vz,zva,Ew,Ava,Bva,Cva,Dva,Fva,Xz,Iva,Gva,Yz,Zz,eA,Kva,Lva,hA,kA,Mva,Ova,Nva,Pva,Qva,Rva,Sva,Tva,Uva,nA,Vva,Wva,Xva,oA,pA,qA,rA,Yva,Zva,sA,$va,tA,uA,awa,vA,bwa,xA,cwa,yA,zA,AA,BA,dwa,ewa,gwa,CA,hwa,fwa,$A,VA,aB,dB,eB,NA,WA,rwa,DA,owa,XA,ZA,hB,lB,swa,KA,oB,JA,pB,sB,UA,tB,uB,vB,wB,xB,yB,uwa,vwa,zB,wwa,xwa,ywa,zwa,AB,Awa,Fwa,Ewa,Bwa,Dwa,Cwa,BB,Gwa,CB,Hwa,Iwa,DB,FB,GB,ZB,$B,Kwa,aC,bC,Lwa,cC,Mwa,dC,eC,fC,gC,hC,iC,Nwa,Owa,jC,kC,nC,Rwa,oC,qC, rC,Uwa,Wwa,uC,Xwa,BC,fxa,axa,bxa,hxa,ixa,mxa,oxa,GC,HC,pxa,rxa,sxa,txa,uxa,Axa,JC,Bxa,Dxa,Cxa,Exa,LC,NC,PC,Fxa,KC,QC,RC,Gxa,Kxa,Hxa,Jxa,aD,cD,fD,Xxa,Sxa,YC,gD,$C,Yxa,Zxa,jD,Qxa,aya,$xa,VC,ZC,eD,gya,cya,dya,eya,fya,hya,kD,iya,jya,mD,nD,pD,UC,iD,Uxa,Ixa,Txa,Wxa,Vxa,rD,bya,yD,zD,AD,BD,nya,dD,oya,DD,pya,Rxa,qya,kya,hD,rya,Nxa,XC,Mxa,qxa,HD,JD,tya,KD,LD,MD,OD,ND,PD,uya,vya,QD,SD,wya,xya,TD,UD,VD,WD,XD,yya,YD,zya,ZD,$D,aE,bE,cE,dE,Aya,eE,Bya,fE,hE,Eya,gE,Fya,Cya,Dya,Gya,Hya,Iya,iE,jE,kE,lE,mE,Lya,rE,pE, Oya,Nya,Pya,uE,Mya,vE,qE,wE,tE,sE,oE,nE,yE,zE,BE,DE,Sya,Tya,Rya,EE,FE,GE,HE,IE,Uya,JE,KE,Vya,LE,Wya,ME,Zya,Xya,PE,$ya,aza,QE,bza,TE,UE,cza,hza,VE,iza,WE,XE,jza,YE,kza,lza,mza,nza,oza,ZE,$E,qza,pza,sza,rza,aF,bF,cF,vza,wza,xza,dF,yza,eF,Aza,fF,hF,iF,jF,kF,nF,pF,qF,Bza,Cza,rF,Dza,Eza,sF,Fza,uF,Gza,Hza,Iza,vF,wF,Mza,Nza,Oza,xF,Kza,Lza,yF,Qza,zF,Rza,BF,CF,EF,Sza,Tza,Uza,Vza,Wza,FF,HF,$za,cAa,Xza,IF,lAa,JF,KF,nAa,mAa,pAa,qAa,sAa,rAa,tAa,uAa,vAa,wAa,LF,MF,xAa,yAa,zAa,AAa,BAa,CAa,TF,EAa,FAa,RF,SF,DAa,GAa, HAa,UF,KAa,IAa,MAa,LAa,NAa,VF,Qya,OAa,Kya,PAa,QAa,RAa,WF,XAa,TAa,UAa,VAa,YAa,XF,aBa,ZAa,bBa,cBa,$Aa,WAa,dBa,tF,fBa,gBa,eBa,YF,ZF,hBa,iBa,jBa,$F,bG,lBa,cG,fG,gG,mBa,nBa,oBa,hG,qBa,rBa,sBa,tBa,uBa,vBa,wBa,mG,xBa,nG,yBa,zBa,ABa,pG,BBa,DBa,EBa,sG,tG,uG,FBa,vG,GBa,xG,IBa,HBa,yG,zG,AG,BG,JBa,CG,DG,KBa,EG,FG,OBa,LBa,NBa,MBa,PBa,HG,IG,QBa,RBa,SBa,JG,TBa,VBa,UBa,KG,LG,MG,NG,OG,QG,RG,SG,TG,UG,VG,WG,XBa,WBa,XG,YBa,YG,ZG,$G,aH,bH,eH,fH,gH,hH,iH,jH,kH,lH,$Ba,bCa,aCa,mH,dCa,qH,rH,fCa,tH,gCa,hCa,iCa,uH,kCa,wH,xH, yH,mCa,AH,pCa,oCa,nCa,rCa,BH,CH,DH,EH,FH,GH,HH,LH,tCa,vCa,wCa,NH,xCa,Zq,zCa,yCa,OH,BCa,ACa,CCa,DCa,QH,SH,FCa,GCa,ECa,ICa,JCa,NCa,MCa,UCa,WCa,XCa,YCa,$H,ZCa,aI,$Ca,dI,bI,eI,cI,SAa,aDa,bDa,cDa,dDa,jI,iI,gDa,jDa,uI,lDa,mDa,kDa,vI,nDa,oDa,pDa,qDa,wI,xI,yI,zI,rDa,sDa,AI,BI,tDa,uDa,DI,EI,xDa,vDa,yDa,zDa,ADa,BDa,DDa,OI,HDa,RI,SI,GDa,JDa,KDa,QI,IDa,TI,UI,VI,nI,gI,XI,ZI,NDa,LDa,MDa,$I,cJ,PDa,bJ,QDa,RDa,hJ,iJ,jJ,nJ,TDa,UDa,oJ,pJ,VDa,WDa,XDa,YDa,qJ,$Da,ZDa,aEa,rJ,bEa,cEa,tJ,uJ,dEa,xJ,fEa,zJ,vJ,gEa,hEa,eEa,AJ, BJ,EJ,iEa,jEa,DJ,GJ,FJ,IJ,KJ,kEa,NJ,lEa,oEa,mEa,pEa,QJ,RJ,qEa,rEa,UJ,VJ,WJ,XJ,YJ,$J,sEa,tEa,bK,vEa,uEa,wEa,xEa,yEa,zEa,hK,iK,AEa,jK,kK,BEa,CEa,DEa,EEa,lK,oK,GEa,FEa,pK,qK,rK,HEa,sK,tK,uK,vK,IEa,MK,NK,xK,KEa,wK,OK,LEa,NEa,MEa,TK,RK,SK,OEa,PEa,QEa,UK,VK,WK,XK,YK,REa,SEa,TEa,aL,bL,UEa,dL,eL,fL,hL,VEa,iL,jL,kL,lL,WEa,ZEa,mL,XEa,YEa,cFa,dFa,oL,fFa,eFa,gFa,hFa,iFa,qL,sL,tL,kFa,uL,mFa,lFa,jFa,vL,wL,oFa,nFa,xL,yL,zL,AL,pFa,BL,qFa,EL,rFa,HL,tFa,FL,sFa,vFa,JL,wFa,yFa,OL,zFa,AFa,LL,IL,QL,KL,RL,DFa,SL,NL,uFa, CFa,PL,xFa,BFa,EFa,CL,UL,FFa,GFa,ML,VL,WL,XL,YL,ZL,$L,aM,bM,cM,dM,eM,IFa,hM,iM,jM,kM,lM,mM,nM,oM,JFa,pM,qM,rM,sM,uM,tM,vM,wM,KFa,xM,LFa,NFa,MFa,yM,zM,OFa,AM,BM,PFa,CM,QFa,DM,RFa,EM,GM,JM,IM,MM,LM,SFa,KM,OM,UFa,VFa,PM,QM,RM,SM,UM,WFa,LJ,TFa,$Fa,fK,XFa,WM,ZFa,gK,YFa,aGa,cGa,bGa,dGa,eGa,ZM,fGa,$M,gGa,bN,hGa,iGa,cN,jGa,dN,lGa,eN,kGa,gN,nGa,mGa,fN,hN,iN,oGa,pGa,qGa,rGa,sGa,tGa,lN,yGa,BGa,zGa,vGa,nN,uGa,AGa,qN,DGa,CGa,rN,FGa,HGa,IGa,GGa,wN,JGa,NGa,EN,OGa,FN,HN,IN,JN,PGa,xN,KN,MN,RGa,QGa,ON,SGa,NN,PN,TGa, QN,CN,BN,VGa,WGa,XGa,YGa,ZGa,yN,LGa,DN,zN,RN,dHa,TN,eHa,fHa,bHa,VN,gHa,WN,$Ga,YN,cHa,hHa,XN,UN,iHa,ZN,jHa,SN,lHa,bO,dO,$N,cO,aO,fO,mHa,gO,hO,nHa,iO,jO,kO,lO,oHa,mO,oO,rHa,sHa,tHa,rO,qO,pO,uHa,vHa,wHa,xHa,uO,vO,wO,xO,yHa,zO,zHa,yO,AO,BO,AHa,CHa,GHa,DHa,EHa,FHa,HHa,IHa,GO,HO,JHa,KHa,MHa,NHa,IO,JO,KO,OHa,THa,UHa,PO,QO,VHa,SHa,WHa,LO,PHa,XHa,MO,NO,QHa,RHa,OO,YHa,ZHa,$Ha,$wa,exa,SO,TO,cIa,aIa,bIa,UO,dIa,VO,WO,XO,YO,eIa,fIa,gIa,ZO,iIa,jIa,aP,kIa,bP,cP,lIa,fP,mIa,gP,qIa,jP,eP,sIa,lP,oIa,pIa,nIa,kP,iP,hP, rIa,wIa,uIa,tIa,nP,xIa,oP,yIa,pP,qP,zIa,AIa,BIa,CIa,CO,sP,tP,uP,vP,wP,FIa,GIa,EO,FO,JIa,zP,AP,LHa,DP,yP,KIa,xP,HIa,IIa,EP,LIa,MIa,CP,DO,BP,NIa,OIa,PIa,QIa,RIa,SIa,FP,UIa,TIa,GP,YIa,HP,$Ia,ZIa,JP,IP,bJa,LP,KP,cJa,WIa,NP,aJa,XIa,MP,OP,dJa,PP,SP,eJa,QP,hJa,RP,iJa,TP,gJa,fJa,jJa,UP,kJa,VP,ZP,lJa,mJa,$P,YP,bQ,pJa,aQ,qJa,rJa,sJa,vJa,uJa,tJa,cQ,wJa,AJa,eQ,fQ,CJa,DJa,gQ,hQ,EJa,nJa,oJa,kQ,BJa,FJa,GJa,IJa,vIa,lQ,mQ,HJa,dP,WP,JJa,KJa,LJa,MJa,xJa,NJa,nQ,pQ,qQ,OJa,PJa,QJa,RJa,SJa,TJa,VJa,UJa,XJa,sQ,aKa,YJa,$Ja, bKa,tQ,fKa,dKa,eKa,hKa,uQ,iKa,vQ,rQ,jKa,cKa,lKa,wQ,mKa,ZJa,nKa,xQ,pKa,qKa,yQ,oKa,zQ,AQ,rKa,BQ,CQ,DQ,tKa,wKa,vKa,uKa,FQ,xKa,EQ,yKa,HQ,JQ,zKa,CKa,AKa,BKa,DKa,FKa,EKa,GKa,HKa,KQ,JKa,KKa,LQ,LKa,IKa,MKa,OKa,QKa,RKa,NKa,SKa,TKa,VKa,UKa,WKa,PKa,MQ,NQ,XKa,OQ,PQ,QQ,TQ,UQ,bLa,cLa,VQ,dLa,fLa,eLa,YQ,WQ,$Ka,hLa,gLa,iLa,$Q,jLa,lLa,kLa,mLa,aR,bR,nLa,cR,qLa,dR,rLa,eR,tLa,gR,fR,uLa,iR,sLa,jR,vLa,hR,wLa,kR,xLa,aLa,ZQ,zLa,ALa,BLa,CLa,DLa,ELa,FLa,HLa,ILa,JLa,GLa,KLa,LLa,mR,MLa,NLa,nR,oR,OLa,PLa,QLa,qR,SLa,sR,TLa,ULa, rR,pR,RLa,vR,uR,VLa,wR,tR,WLa,yR,$La,BR,aMa,YLa,zR,bMa,CR,ZLa,cMa,DR,eMa,xR,fMa,dMa,AR,gMa,XLa,ER,FR,hMa,iMa,jMa,GR,rP,yJa,EIa,IR,kMa,zJa,DIa,lMa,JR,HR,mMa,oMa,pMa,nMa,rMa,qMa,uMa,sMa,tMa,wMa,vMa,xMa,yMa,zMa,KR,MR,BMa,FMa,EMa,TR,VR,UR,IMa,KMa,NMa,SMa,PMa,RMa,WMa,YR,XMa,YMa,aNa,cNa,dNa,bNa,eNa,$R,fNa,gNa,aS,LR,hNa,iNa,AMa,ZR,kNa,lNa,rNa,oNa,sNa,pNa,mNa,tNa,uNa,nNa,wNa,bS,xNa,zNa,ANa,BNa,xE,iS,CNa,FNa,KGa,GNa,jS,IQ,HNa,rS,lS,uN,hS,sS,uS,iQ,jQ,vS,jNa,ENa,pS,qS,dS,KNa,LNa,NNa,MNa,oS,mS,wS,PNa,oN,QNa, GQ,EGa,yS,LN,DNa,kS,RNa,SNa,zS,xGa,TNa,VNa,JNa,cS,WNa,AS,nS,eS,XNa,BS,pN,YNa,CS,GN,ZNa,$Na,aOa,wGa,xS,ONa,hOa,dOa,cOa,kOa,lOa,IS,vN,nOa,mOa,MS,NS,OS,pOa,ES,gOa,US,qOa,TS,HS,rOa,sOa,jOa,YS,tOa,DS,QS,RS,PS,yOa,LS,WS,aT,bT,zOa,SS,oOa,$S,uOa,cT,AOa,BOa,COa,fI,DOa,VS,dT,FOa,JS,eT,fT,KS,GOa,HOa,fOa,ZS,XS,IOa,eOa,JOa,gT,hT,qHa,KOa,LOa,iT,Vu,W,jT,NOa,lT,POa,kT,QOa,oT,mT,ROa,pT,nT,SOa,qT,rT,sT,TOa,tT,uT,vT,wT,xT,yT,VOa,UOa,zT,AT,BT,CT,DT,ET,FT,GT,HT,IT,JT,KT,LT,MT,NT,OT,PT,QT,RT,ST,TT,UT,VT,WT,XT,ZT,$T,aU, bU,cU,dU,eU,fU,gU,hU,iU,jU,kU,lU,mU,nU,oU,pU,qU,rU,sU,tU,uU,vU,wU,xU,yU,zU,AU,BU,WOa,CU,DU,eza,fza,gza,Yya,FU,ZOa,NU,OU,SE,PU,NE,MU,QU,bPa,cPa,dPa,ePa,XOa,fPa,EU,gPa,hPa,SU,JU,XU,TU,HU,iPa,GU,RU,UU,YU,KU,LU,WU,VU,kPa,ZU,$U,lPa,aV,X,bV,GG,cV,dV,eV,mPa,nPa,pPa,qPa,uPa,fV,vPa,rPa,wPa,hV,yPa,zPa,xPa,iV,jV,BPa,EPa,CPa,HPa,PPa,OPa,IPa,QPa,KPa,LPa,JPa,TPa,VPa,XPa,$Pa,aQa,cQa,dQa,gQa,fQa,kQa,hQa,wV,lQa,oQa,nQa,sQa,qQa,pQa,uQa,vQa,wQa,xQa,AV,Hra,AQa,yQa,DV,Uu,FV,GV,Era,HV,CQa,DQa,zV,uV,lV,oV,IV,JV,qV,pV,EQa, GPa,KV,LV,MV,mV,nV,tV,FQa,GQa,NV,HQa,OV,IQa,BV,CV,sV,rV,kV,YPa,bQa,vV,mQa,RPa,MPa,PV,QV,RV,JQa,KQa,SV,TV,UV,VV,WV,XV,YV,ZV,$V,oPa,MQa,LQa,APa,ZPa,NQa,tQa,OQa,PQa,eQa,WPa,FPa,DPa,gV,sPa,SPa,tPa,NPa,iQa,jQa,yV,rQa,UPa,RQa,QQa,aW,bW,cW,RE,IU,$Oa,EV,SQa,dW,eW,fW,gW,TQa,hW,iW,xV,jW,UQa,zQa,YOa,VQa,kW,WQa,lW,nW,oW,pW,qW,YQa,sW,tW,uW,XQa,rW,ZQa,$Qa,aRa,vW,dRa,cRa,wW,eRa,xW,mW,fRa,gRa,hRa,yW,zW,iRa,AW,BW,jRa,kRa,lRa,mRa,CW,nRa,DW,EW,FW,GW,HW,IW,oRa,JW,KW,LW,MW,NW,OW,QW,RW,pRa,PW,qRa,rRa,SW,sRa,tRa,TW,UW, VW,uRa,WW,vRa,XW,wRa,YW,xRa,ZW,$W,aX,bX,cX,eX,zRa,yRa,dX,gX,hX,ARa,BRa,CRa,jX,iX,lX,kX,mX,nX,DRa,ERa,oX,pX,FRa,qX,HRa,GRa,rX,sX,BQa,IRa,tX,JRa,uX,LRa,MRa,KRa,NRa,vX,ORa,PRa,QRa,wX,xX,yX,RRa,zX,AX,BX,SRa,TRa,CX,DX,URa,EX,fX,FX,GX,HX,dza,IX,VRa,JX,WRa,KX,LX,YRa,XRa,MX,NX,OX,ZRa,$Ra,aSa,PX,bSa,QX,RX,dSa,cSa,eSa,fSa,gSa,SX,TX,UX,hSa,iSa,jSa,kSa,lSa,mSa,nSa,oSa,pSa,qSa,VX,WX,rSa,sSa,XX,YX,ZX,$X,tSa,aY,uSa,bY,vSa,wSa,cY,xSa,ySa,dY,zSa,ASa,eY,fY,BSa,CSa,gY,hY,jY,DSa,kY,lY,mY,ESa,nY,FSa,oY,GSa,pY,HSa,qY, ISa,JSa,KSa,LSa,MSa,NSa,sY,OSa,PSa,QSa,RSa,SSa,tY,uY,TSa,vY,wY,xY,yY,USa,zY,VSa,WSa,XSa,CY,YSa,ZSa,$Sa,DY,BY,aTa,FY,bTa,GY,cTa,HY,IY,JY,KY,LY,dTa,eTa,fTa,MY,gTa,hTa,gZ,iTa,rZ,tZ,uZ,jTa,kTa,vZ,lTa,wZ,mTa,xZ,nTa,oTa,yZ,Fra,pTa,qTa,ba,ha,Ah,Oa,gaa;ca=function(a){return function(){return ba[a].apply(this,arguments)}}; g.da=function(a,b){return ba[a]=b}; ea=function(a){var b=0;return function(){return bf)d[c++]=f;else{if(2048>f)d[c++]=f>>6|192;else{if(55296<=f&&57343>=f){if(56319>=f&&e=k){f=1024*(f-55296)+k-56320+65536;d[c++]= f>>18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,c)}return a}; oaa=function(a){for(var b=[],c=0;ce?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b}; eb=function(a,b){return 0==a.lastIndexOf(b,0)}; paa=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}; g.fb=function(a){return/^[\s\xa0]*$/.test(a)}; gb=function(a){if(!qaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(raa,"&"));-1!=a.indexOf("<")&&(a=a.replace(saa,"<"));-1!=a.indexOf(">")&&(a=a.replace(taa,">"));-1!=a.indexOf('"')&&(a=a.replace(uaa,"""));-1!=a.indexOf("'")&&(a=a.replace(vaa,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(waa,"�"));return a}; g.ib=function(a,b){return-1!=a.indexOf(b)}; jb=function(a,b){return g.ib(a.toLowerCase(),b.toLowerCase())}; g.pb=function(a,b){var c=0;a=kb(String(a)).split(".");b=kb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&eb?1:0}; g.qb=function(){var a=g.C.navigator;return a&&(a=a.userAgent)?a:""}; sb=function(a){var b=rb;return b?b.brands.some(function(c){return(c=c.brand)&&g.ib(c,a)}):!1}; tb=function(a){return g.ib(g.qb(),a)}; ub=function(){var a=rb;return!!a&&0b?null:"string"===typeof a?a.charAt(b):a[b]}; Ib=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}; Iaa=function(a){for(var b=0,c=0,d={};c>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);0b?1:ac&&g.Ub(a,-(c+1),0,b)}; g.dc=function(a,b,c){var d={};(0,g.cc)(a,function(e,f){d[b.call(c,e,f,a)]=e}); return d}; Maa=function(a){for(var b=[],c=0;c=a}; g.kc=function(a,b){void 0===b&&(b=0);Saa();b=Taa[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e>2];k=b[(k&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+k+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")}; g.lc=function(a){for(var b=[],c=0,d=0;d>=8);b[c++]=e}return g.kc(b,3)}; Vaa=function(a){var b=[];Uaa(a,function(c){b.push(c)}); return b}; nc=function(a){!g.mc||g.ic("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.ib("=.",a[b-1])&&(c=g.ib("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Uaa(a,function(f){d[e++]=f}); return e!==c?d.subarray(0,e):d}; Uaa=function(a,b){function c(m){for(;d>4);64!=k&&(b(f<<4&240|k>>2),64!=l&&b(k<<6&192|l))}}; Saa=function(){if(!oc){oc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Taa[c]=d;for(var e=0;e=a.B?a.u?a.u[b]:void 0:(void 0===c?0:c)&&a.u&&(c=a.u[b],null!=c)?c:a.ze[b+a.Pq]}; g.E=function(a,b,c,d,e){d=void 0===d?!1:d;(void 0===e?0:e)||Hc(a);b "+a)}; od=function(a){if("string"===typeof a)return{buffer:nc(a),Ep:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Ep:!1};if(a.constructor===Uint8Array)return{buffer:a,Ep:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Ep:!1};if(a.constructor===tc)return{buffer:vc(a)||rc(),Ep:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Ep:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); }; nba=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.r(mba(c,a)),b=c.next().value,a=c.next().value,c=b);g.pd=c>>>0;g.qd=a>>>0}; g.pba=function(a){if(16>a.length)nba(Number(a));else if(oba)a=BigInt(a),g.pd=Number(a&BigInt(4294967295))>>>0,g.qd=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);g.qd=g.pd=0;for(var c=a.length,d=0+b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),g.qd*=1E6,g.pd=1E6*g.pd+d,4294967296<=g.pd&&(g.qd+=g.pd/4294967296|0,g.pd%=4294967296);b&&(b=g.r(mba(g.pd,g.qd)),a=b.next().value,b=b.next().value,g.pd=a,g.qd=b)}}; mba=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]}; g.rd=function(a){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.init(a,void 0,void 0,void 0)}; g.td=function(a){var b=0,c=0,d=0,e=a.u,f=a.j;do{var k=e[f++];b|=(k&127)<d&&k&128);32>4);for(d=3;32>d&&k&128;d+=7)k=e[f++],c|=(k&127)<k){a=b>>>0;k=c>>>0;if(c=k&2147483648)a=~a+1>>>0,k=~k>>>0,0==a&&(k=k+1>>>0);a=4294967296*k+(a>>>0);return c?-a:a}throw nd();}; sd=function(a,b){a.j=b;if(b>a.B)throw lba(a.B,b);}; g.ud=function(a){var b=a.u,c=a.j,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw nd();sd(a,c);return e}; g.vd=function(a){var b=a.u,c=a.j,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];a.advance(4);return(d<<0|e<<8|f<<16|b<<24)>>>0}; g.wd=function(a){var b=g.vd(a),c=g.vd(a);a=2*(c>>31)+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return 2047==d?b?NaN:Infinity*a:0==d?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)}; g.xd=function(a){for(var b=0,c=a.j,d=c+10,e=a.u;cb)throw Error("Tried to read a negative byte length: "+b);var c=a.j,d=c+b;if(d>a.B)throw lba(b,a.B-c);a.j=d;return c}; sba=function(a,b){if(0==b)return uc();var c=qba(a,b);a.BA&&a.D?c=a.u.subarray(c,c+b):(a=a.u,b=c+b,c=c===b?rc():rba?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return 0==c.length?uc():new tc(c,sc)}; yd=function(a){if(tba.length){var b=tba.pop();b.init(a,void 0,void 0,void 0);a=b}else a=new g.rd(a);this.j=a;this.B=this.j.j;this.u=this.C=-1;uba(this)}; uba=function(a){var b={};a.ZF=void 0===b.ZF?!1:b.ZF}; vba=function(a){var b=a.j;if(b.j==b.B)return!1;a.B=a.j.j;var c=g.ud(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw kba(c,a.B);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.B+")");a.C=b;a.u=c;return!0}; Bd=function(a){switch(a.u){case 0:0!=a.u?Bd(a):g.xd(a.j);break;case 1:a.j.advance(8);break;case 2:if(2!=a.u)Bd(a);else{var b=g.ud(a.j)>>>0;a.j.advance(b)}break;case 5:a.j.advance(4);break;case 3:b=a.C;do{if(!vba(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.u){if(a.C!=b)throw Error("Unmatched end-group tag");break}Bd(a)}while(1);break;default:throw kba(a.u,a.B);}}; g.Cd=function(a,b,c){var d=a.j.B,e=g.ud(a.j)>>>0,f=a.j.j+e,k=f-d;0>=k&&(a.j.B=f,c(b,a,void 0,void 0,void 0),k=f-a.j.j);if(k)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-k)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.B=d}; g.Fd=function(a){var b=g.ud(a.j)>>>0;a=a.j;var c=qba(a,b);a=a.u;if(wba){var d=a,e;(e=Dd)||(e=Dd=new TextDecoder("utf-8",{fatal:!0}));a=c+b;d=0===c&&a===d.length?d:d.subarray(c,a);try{var f=e.decode(d)}catch(n){if(void 0===Ed){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),Ed=!0}catch(p){Ed=!1}}!Ed&&(Dd=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var k=null,l,m;fl?c.push(l):224>l?f>=b?bb():(m=a[f++],194>l||128!==(m&192)?(f--,bb()):c.push((l&31)<<6|m& 63)):240>l?f>=b-1?bb():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((d=a[f++])&192)?(f--,bb()):c.push((l&15)<<12|(m&63)<<6|d&63)):244>=l?f>=b-2?bb():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((d=a[f++])&192)||128!==((e=a[f++])&192)?(f--,bb()):(l=(l&7)<<18|(m&63)<<12|(d&63)<<6|e&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):bb(),8192<=c.length&&(k=kaa(k,c),c.length=0);f=kaa(k,c)}return f}; xba=function(a){var b=g.ud(a.j)>>>0;return sba(a.j,b)}; yba=function(a,b){this.u=a>>>0;this.j=b>>>0}; Aba=function(a){if(!a)return zba||(zba=new yba(0,0));if(!/^-?\d+$/.test(a))return null;g.pba(a);return new yba(g.pd,g.qd)}; Gd=function(){this.j=[]}; Bba=function(a,b,c){for(;0>>7|c<<25)>>>0,c>>>=7;a.j.push(b)}; Hd=function(a,b){for(;127>>=7;a.j.push(b)}; Cba=function(a,b){if(0<=b)Hd(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}}; g.Id=function(a,b){a.j.push(b>>>0&255);a.j.push(b>>>8&255);a.j.push(b>>>16&255);a.j.push(b>>>24&255)}; Dba=function(){this.B=[];this.u=0;this.j=new Gd}; Jd=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)}; Eba=function(a,b){g.Kd(a,b,2);b=a.j.end();Jd(a,b);b.push(a.u);return b}; Fba=function(a,b){var c=b.pop();for(c=a.u+a.j.length()-c;127>>=7,a.u++;b.push(c);a.u++}; Gba=function(a,b){if(b=b.Dp){Jd(a,a.j.end());for(var c=0;ck&&"number"!==typeof a[k]){var l=a[k++];c(b,l)}for(;kd?-2147483648:0)?-d:d,1.7976931348623157E308>>0,g.pd=0;else if(2.2250738585072014E-308>d)b=d/Math.pow(2,-1074),g.qd=(c|b/4294967296)>>>0,g.pd=b>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022>>0;g.pd=4503599627370496* d>>>0}g.Id(a,g.pd);g.Id(a,g.qd)}}; g.Yd=function(a,b,c){b=g.Oc(b,c);null!=b&&("string"===typeof b&&Aba(b),null!=b&&(g.Kd(a,c,0),"number"===typeof b?(a=a.j,nba(b),Bba(a,g.pd,g.qd)):(c=Aba(b),Bba(a.j,c.u,c.j))))}; g.Zd=function(a,b,c){b=g.Oc(b,c);null!=b&&null!=b&&(g.Kd(a,c,0),Cba(a.j,b))}; g.$ba=function(a,b,c){b=g.Oc(b,c);null!=b&&g.Ld(a,c,g.naa(b))}; g.aca=function(a,b,c,d,e){b=Zc(b,d,c);null!=b&&(c=Eba(a,c),e(b,a),Fba(a,c))}; bca=function(a){var b=this.gr,c=this.j;return this.isRepeated?$c(a,b,c,!0):Zc(a,b,c,void 0,!0)}; cca=function(a,b,c,d,e,f){(a=a.j&&a.j[c])?Array.isArray(a)?(e=f.OF?Ac(a.slice()):a,ed(b,0a.u&&(a.u++,b.next=a.j,a.j=b)}; We=function(a){return function(){return a}}; g.Xe=function(){}; Bca=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}; Ye=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}; Ze=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}}; Cca=function(a,b){var c=0;return function(d){g.C.clearTimeout(c);var e=arguments;c=g.C.setTimeout(function(){a.apply(b,e)},50)}}; af=function(){if(void 0===$e){var a=null,b=g.C.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Wa,createScript:Wa,createScriptURL:Wa})}catch(c){g.C.console&&g.C.console.error(c.message)}$e=a}else $e=a}return $e}; bf=function(a,b){this.j=a===Dca&&b||"";this.u=Eca}; cf=function(a){return a instanceof bf&&a.constructor===bf&&a.u===Eca?a.j:"type_error:Const"}; g.df=function(a){return new bf(Dca,a)}; ef=function(a,b){this.j=b===Fca?a:"";this.mm=!0}; Gca=function(a){var b=af();a=b?b.createScript(a):a;return new ef(a,Fca)}; ff=function(a,b){this.j=b===Hca?a:""}; Ica=function(a){return a instanceof ff&&a.constructor===ff?a.j:"type_error:TrustedResourceUrl"}; Lca=function(a,b){var c=cf(a);if(!Jca.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(Kca,function(d,e){if(!Object.prototype.hasOwnProperty.call(b,e))throw Error('Found marker, "'+e+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));d=b[e];return d instanceof bf?cf(d):encodeURIComponent(String(d))}); return g.gf(a)}; g.gf=function(a){var b=af();a=b?b.createScriptURL(a):a;return new ff(a,Hca)}; g.jf=function(a,b){this.j=b===hf?a:""}; g.kf=function(a){return a instanceof g.jf&&a.constructor===g.jf?a.j:"type_error:SafeUrl"}; Nca=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");return a.match(Mca)?new g.jf(a,hf):null}; g.mf=function(a){a instanceof g.jf||(a="object"==typeof a&&a.mm?a.Ui():String(a),a=Oca.test(a)?new g.jf(a,hf):Nca(a));return a||lf}; g.nf=function(a,b){if(a instanceof g.jf)return a;a="object"==typeof a&&a.mm?a.Ui():String(a);if(b&&/^data:/i.test(a)&&(b=Nca(a)||lf,b.Ui()==a))return b;Oca.test(a)||(a="about:invalid#zClosurez");return new g.jf(a,hf)}; pf=function(a,b){this.j=b===of?a:"";this.mm=!0}; qf=function(a){return a instanceof pf&&a.constructor===pf?a.j:"type_error:SafeStyle"}; Qca=function(a){var b="",c;for(c in a)if(Object.prototype.hasOwnProperty.call(a,c)){if(!/^[-_a-zA-Z0-9]+$/.test(c))throw Error("Name allows only [-_a-zA-Z0-9], got: "+c);var d=a[c];null!=d&&(d=Array.isArray(d)?d.map(Pca).join(" "):Pca(d),b+=c+":"+d+";")}return b?new pf(b,of):rf}; Rca=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=qf(d)} var c="";Array.prototype.forEach.call(arguments,b);return c?new pf(c,of):rf}; Pca=function(a){if(a instanceof g.jf)return'url("'+g.kf(a).replace(/a*b?a+b:a}; g.Hf=function(a,b,c){return a+c*(b-a)}; If=function(a,b){return 1E-6>=Math.abs(a-b)}; g.Jf=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}; Kf=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; g.Lf=function(a,b){this.width=a;this.height=b}; g.Mf=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}; Nf=function(a){return a.width*a.height}; g.Of=function(a){return encodeURIComponent(String(a))}; Pf=function(a){return decodeURIComponent(a.replace(/\+/g," "))}; g.Qf=function(a){return a=gb(a)}; g.Rf=function(a){return null==a?"":String(a)}; Sf=function(a){for(var b=0,c=0;c>>0;return b}; Xf=function(a){var b=Number(a);return 0==b&&g.fb(a)?NaN:b}; fda=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}; gda=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; hda=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})}; ida=function(a){var b=1;a=a.split(":");for(var c=[];0a}; sg=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return rg(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.Lb(e.className.split(/\s+/),c))},!0)}; rg=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}; Yf=function(a){this.j=a||g.C.document||document}; ug=function(a){"function"!==typeof g.C.setImmediate||g.C.Window&&g.C.Window.prototype&&!xb()&&g.C.Window.prototype.setImmediate==g.C.setImmediate?(tg||(tg=tda()),tg(a)):g.C.setImmediate(a)}; tda=function(){var a=g.C.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!tb("Presto")&&(a=function(){var e=g.ig("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var k="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.Sa)(function(m){if(("*"==l||m.origin==l)&&m.data==k)this.port1.onmessage()},this); f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(k,l)}}}); if("undefined"!==typeof a&&!wb()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.OM;c.OM=null;e()}}; return function(e){d.next={OM:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.C.setTimeout(e,0)}}; vg=function(){this.u=this.j=null}; wg=function(){this.next=this.scope=this.j=null}; g.zg=function(a,b){xg||uda();yg||(xg(),yg=!0);vda.add(a,b)}; uda=function(){if(g.C.Promise&&g.C.Promise.resolve){var a=g.C.Promise.resolve(void 0);xg=function(){a.then(wda)}}else xg=function(){ug(wda)}}; wda=function(){for(var a;a=vda.remove();){try{a.j.call(a.scope)}catch(b){Ic(b)}Aca(xda,a)}yg=!1}; g.Eg=function(a){this.j=0;this.J=void 0;this.C=this.u=this.B=null;this.D=this.I=!1;if(a!=g.Xe)try{var b=this;a.call(void 0,function(c){Cg(b,2,c)},function(c){Cg(b,3,c)})}catch(c){Cg(this,3,c)}}; yda=function(){this.next=this.context=this.onRejected=this.u=this.j=null;this.B=!1}; Fg=function(a,b,c){var d=zda.get();d.u=a;d.onRejected=b;d.context=c;return d}; Gg=function(a){if(a instanceof g.Eg)return a;var b=new g.Eg(g.Xe);Cg(b,2,a);return b}; Hg=function(a){return new g.Eg(function(b,c){c(a)})}; g.Bda=function(a,b,c){Ada(a,b,c,null)||g.zg(g.Ta(b,a))}; Cda=function(a){return new g.Eg(function(b,c){a.length||b(void 0);for(var d=0,e;d=a.C&&a.vE()}; Nda=function(a,b){return a.I.has(b)?void 0:a.j.get(b)}; Oda=function(a){for(var b=0;bu;u+=4)t[u/4]=q[u]<<24|q[u+1]<<16|q[u+2]<<8|q[u+3];for(u=16;80>u;u++)q=t[u-3]^t[u-8]^t[u-14]^t[u-16],t[u]=(q<<1|q>>>31)&4294967295;q=e[0];var x=e[1],y=e[2],z=e[3],D=e[4];for(u=0;80>u;u++){if(40>u)if(20>u){var G=z^x&(y^z);var F=1518500249}else G=x^y^z,F=1859775393;else 60>u?(G=x&y|z&(x|y),F=2400959708):(G=x^y^z,F=3395469782);G=((q<<5|q>>>27)&4294967295)+G+D+F+t[u]&4294967295;D=z;z=y;y=(x<<30|x>>>2)&4294967295;x=q;q=G}e[0]=e[0]+q&4294967295;e[1]=e[1]+x&4294967295;e[2]= e[2]+y&4294967295;e[3]=e[3]+z&4294967295;e[4]=e[4]+D&4294967295} function c(q,t){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var u=[],x=0,y=q.length;xn?c(l,56-n):c(l,64-(n-56));for(var u=63;56<=u;u--)f[u]=t&255,t>>>=8;b(f);for(u=t=0;5>u;u++)for(var x=24;0<=x;x-=8)q[t++]=e[u]>>x&255;return q} for(var e=[],f=[],k=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,hW:function(){for(var q=d(),t="",u=0;ub&&(b=a.length);var c=a.indexOf("?");if(0>c||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.slice(0,c),d,a.slice(b)]}; pea=function(a,b){return b?a?a+"&"+b:b:a}; lh=function(a,b){if(!b)return a;a=oea(a);a[1]=pea(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; mh=function(a,b,c){if(Array.isArray(b))for(var d=0;dd)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return Pf(a.slice(d,-1!==e?e:0))}; xh=function(a,b){for(var c=a.search(sea),d=0,e,f=[];0<=(e=rea(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(tea,"$1")}; uea=function(a,b,c){return qh(xh(a,b),b,c)}; vea=function(a,b){a=oea(a);var c=a[1],d=[];c&&c.split("&").forEach(function(e){var f=e.indexOf("=");b.hasOwnProperty(0<=f?e.slice(0,f):e)||d.push(e)}); a[1]=pea(d.join("&"),g.nh(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; g.yh=function(a){g.Te.call(this);this.headers=new Map;this.U=a||null;this.C=!1;this.ma=this.j=null;this.Z="";this.u=0;this.D="";this.I=this.Ca=this.V=this.xa=!1;this.P=0;this.ea=null;this.Ka="";this.Pa=this.J=!1}; xea=function(a,b,c,d,e,f,k){var l=new g.yh;wea.push(l);b&&l.Ja("complete",b);l.gC("ready",l.RV);f&&(l.P=Math.max(0,f));k&&(l.J=k);l.send(a,c,d,e)}; yea=function(a){return g.mc&&g.ic(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout}; Aea=function(a,b){a.C=!1;a.j&&(a.I=!0,a.j.abort(),a.I=!1);a.D=b;a.u=5;zea(a);zh(a)}; zea=function(a){a.xa||(a.xa=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}; Bea=function(a){if(a.C&&"undefined"!=typeof Ah)if(a.ma[1]&&4==g.Bh(a)&&2==a.getStatus())a.getStatus();else if(a.V&&4==g.Bh(a))g.Mg(a.fQ,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(Ch(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2a.Kb()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.ea}; Pea=function(a,b){a.D=new g.$g(1>b?1:b,3E5,.1);a.j.setInterval(a.D.getValue())}; Rea=function(a){Qea(a,function(b,c){b=qh(b,"format","json");b=fg().navigator.sendBeacon(b,kd(c));a.xa&&!b&&(a.xa=!1);return b})}; Qea=function(a,b){if(0!==a.u.length){var c=xh(Oea(a),"format");c=oh(c,"auth",a.Sa(),"authuser",a.U||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=a.I.Le(e,a.J);if(!b(c,f))break;a.J=0;a.u=a.u.slice(e.length)}a.j.enabled&&a.j.stop()}}; Sea=function(){g.he.call(this,"event-logged",void 0)}; Mea=function(a,b){this.B=b=void 0===b?!1:b;this.u=this.locale=null;this.j=new Iea;g.E(this.j,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));Kh(this,new Ih)}; Kh=function(a,b){cd(a.j,Ih,1,b);g.Oc(b,1)||g.E(b,1,1);a.B||(b=Mh(a),g.Oc(b,5)||g.E(b,5,a.locale));a.u&&(b=Mh(a),Zc(b,Hh,9)||cd(b,Hh,9,a.u))}; Uea=function(a,b){var c=void 0===c?Tea:c;b(fg(),c).then(function(d){a.u=d;d=Mh(a);cd(d,Hh,9,a.u);return!0}).catch(function(){return!1})}; Mh=function(a){a=Zc(a.j,Ih,1);var b=Zc(a,Gh,11);b||(b=new Gh,cd(a,Gh,11,b));return b}; Vea=function(a,b,c){xea(a.url,function(d){d=d.target;Ch(d)?b(g.Dh(d)):c(d.getStatus())},a.requestType,a.body,a.Fs,a.timeoutMillis,a.withCredentials)}; Wea=function(a){this.I=a;this.B="https://play.google.com/log?format=json&hasfast=true";this.C=!1;this.J=Vea;this.j=""}; Nh=function(a,b,c,d,e){c=void 0===c?"":c;d=void 0===d?!1:d;e=void 0===e?"":e;a=new Wea(void 0===a?-1:a);a.j=void 0===b?"":b;""!=c&&(a.B=c);d&&(a.C=!0);e&&(a.u=e);this.j=a.Le()}; Xea=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}; Oh=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c}; Ph=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()}; Qh=function(a,b){this.logger=a;this.j=b;this.startMillis=Ph()}; Rh=function(){}; Sh=function(a){this.Lg=a;this.transport=new Nh(1654,"","",!1,"3");this.j=new g.Og(this.transport);this.clientError=new Rda(this.j);this.u=new Qda(this.j);this.B=new Pda(this.j)}; Yea=function(a){this.j=a;this.j.AA("/client_streamz/bg/fil",{uh:3,rh:"rk"})}; Zea=function(a){this.j=a;this.j.Io("/client_streamz/bg/fsc",{uh:3,rh:"rk"})}; $ea=function(a){this.j=a;this.j.AA("/client_streamz/bg/fsl",{uh:3,rh:"rk"})}; afa=function(){this.D=Th();this.transport=new Nh(1828);this.j=new g.Og(this.transport);this.C=new Yea(this.j);this.u=new Zea(this.j);this.B=new $ea(this.j);this.Lg=window.document.location.hostname}; Th=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()}; bfa=function(a){g.H.call(this,a)}; cfa=function(a){g.H.call(this,a)}; Uh=function(a){g.H.call(this,a)}; g.Vh=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})}; Wh=function(a){var b=this;this.aB=!1;if(a.Pka){var c;this.Wq=null!=(c=a.Wq)?c:new afa}a.challenge instanceof Uh?(c=Rc(a.challenge,4,""),a=Rc(a.challenge,5,"")):(c=a.program,a=a.globalName);var d=new g.Vh;this.j=d.promise;this.n1=g.r((0,g.C[a].a)(c,function(e,f){Promise.resolve().then(function(){var k;null!=(k=b.Wq)&&k.C.Jg(Th()-k.D,k.Lg);d.resolve({IV:e,W0:f})})},!0)).next().value; this.U0=d.promise.then(function(){})}; dfa=function(a){g.df("From proto message. b/12014412");return g.gf(g.Oc(a,4)||"")}; Xh=function(a){this.isValid=a}; Yh=function(a){return new Xh(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})}; ffa=function(a,b){b=void 0===b?efa:b;for(var c=0;c=n.length)n=String.fromCharCode.apply(null,n);else{p="";for(var q=0;qb)throw Error("Bad port number "+b);a.B=b}else a.B=null}; Ei=function(a,b,c){b instanceof Gi?(a.u=b,Cfa(a.u,a.I)):(c||(b=Hi(b,Dfa)),a.u=new Gi(b,a.I))}; g.Ii=function(a,b,c){a.u.set(b,c)}; g.Ji=function(a){return a instanceof g.Ai?a.clone():new g.Ai(a)}; Fi=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}; Hi=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Efa),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}; Efa=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}; Gi=function(a,b){this.u=this.j=null;this.B=a||null;this.C=!!b}; Ki=function(a){a.j||(a.j=new Map,a.u=0,a.B&&kh(a.B,function(b,c){a.add(Pf(b),c)}))}; Ffa=function(a,b){Ki(a);b=Li(a,b);return a.j.has(b)}; g.Gfa=function(a,b,c){a.remove(b);0>>13;d-=e;d-=c;d^=c<<8;e-=c;e-=d;e^=d>>>13;c-=d;c-=e;c^=e>>>12;d-=e;d-=c;d^=c<<16;e-=c;e-=d;e^=d>>>5;c-=d;c-=e;c^=e>>>3;d-=e;d-=c;d^=c<<10;e-=c;e-=d;e^=d>>>15} a=Wfa(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,k=f,l=0;12<=k;k-=12,l+=12)c+=aj(a,l),d+=aj(a,l+4),e+=aj(a,l+8),b();e+=f;switch(k){case 11:e+=a[l+10]<<24;case 10:e+=a[l+9]<<16;case 9:e+=a[l+8]<<8;case 8:d+=a[l+7]<<24;case 7:d+=a[l+6]<<16;case 6:d+=a[l+5]<<8;case 5:d+=a[l+4];case 4:c+=a[l+3]<<24;case 3:c+=a[l+2]<<16;case 2:c+=a[l+1]<<8;case 1:c+=a[l+0]}b();return Xfa.toString(e)}; Wfa=function(a){for(var b=[],c=0;c=e)){D.Oa(4);break}g.wa(D,5);return g.A(D,pj(a.logger.EH("c",e,pfa(a.jB)),function(){return Promise.reject(new dj(10,"JVZ:Timeout"))}),7); case 7:return f=D.u,k=new Qh(a.logger,"b"),g.A(D,kfa(f),8);case 8:return l=new Wh({challenge:f}),g.A(D,pj(l.snapshot({}),function(){return Promise.reject(new dj(15,"MDA:Timeout"))}),9); case 9:return m=D.u,k.done(),g.A(D,pj(a.logger.EH("g",e,rfa(a.jB,m)),function(){return Promise.reject(new dj(10,"BWB:Timeout"))}),10); case 10:n=D.u;p=new Qh(a.logger,"i");if(gd(n,3))var G=cga(a,n,l);else l.dispose(),G=new hj(wc(Sc(n,1)),1E3*gd(n,2));q=G;p.done();u=t=void 0;null==(u=(t=a).QP)||u.call(t,wc(Sc(n,1)));return D.return(q);case 5:x=g.ya(D);b=x instanceof dj?x:x instanceof Oh?new dj(11,x):new dj(12,x);a.logger.zy(b.code);z=y=void 0;null==(z=(y=a).onError)||z.call(y,b);a:{if(x instanceof Oh)switch(x.code){case 2:case 13:case 14:case 4:break;default:G=!1;break a}G=!0}if(!G)throw b;return g.A(D,fj(d.getValue()),11);case 11:g.ah(d); case 3:e++;D.Oa(2);break;case 4:throw b;}})}; aga=function(a){var b,c,d,e;g.B(function(f){switch(f.j){case 1:return b=void 0,g.wa(f,4),g.A(f,dga(a),6);case 6:b=f.u;g.xa(f,5);break;case 4:if(c=g.ya(f),d=c instanceof Error?c:Error(String(c)),a.j){a.logger.zy(13);f.Oa(0);break}else a.logger.zy(14),b=new ij(d);case 5:return e=void 0,null==(e=a.j)||e.dispose(),a.j=b,a.u.resolve(),g.A(f,a.j.B.promise,1)}})}; ega=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.B=!b&&/[?&]ae=1(&|$)/.test(a);this.C=!b&&/[?&]ae=2(&|$)/.test(a);if((this.j=/[?&]adurl=([^&]*)/.exec(a))&&this.j[1]){try{var c=decodeURIComponent(this.j[1])}catch(d){c=null}this.u=c}}; fga=function(a,b,c,d){var e=window,f="//pagead2.googlesyndication.com/bg/"+g.Qf(c)+".js";c=e.document;var k={};b&&(k._scs_=b);k._bgu_=f;k._bgp_=d;k._li_="v_h.3.0.0.0";(b=e.GoogleTyFxhY)&&"function"==typeof b.push||(b=e.GoogleTyFxhY=[]);b.push(k);e=$f(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=Lca(g.df("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.Qf(a)+".js"});g.Zh(e,a);c.getElementsByTagName("head")[0].appendChild(e)}; gga=function(a){var b={};g.cc(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.equals(e)||(b[d]=null)):b[d]=c}); Haa(a,function(c){return null===b[c.event]})}; qj=function(){this.zd=0;this.j=!1;this.u=-1;this.Hr=!1;this.Hi=0}; rj=function(){this.bd=null;this.j=!1}; sj=function(a){rj.call(this);this.u=a}; tj=function(){rj.call(this)}; uj=function(){rj.call(this)}; vj=function(){this.j={};this.u=!0;this.B={}}; wj=function(a,b,c){a.j[b]||(a.j[b]=new sj(c));return a.j[b]}; hga=function(a){a.j.queryid||(a.j.queryid=new uj)}; xj=function(a,b,c){(a=a.j[b])&&a.setValue(c)}; yj=function(a,b){if(g.xe(a.B,b))return a.B[b];if(a=a.j[b])return a.getValue()}; zj=function(a){var b={},c=g.oe(a.j,function(d){return d.j}); g.ne(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.j&&null!==d.bd?String(d.bd):"";0e?encodeURIComponent(Bga(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))}; Dga=function(a,b,c){b=b+"//pagead2.googlesyndication.com"+c;var d=Cga(a)-c.length;if(0>d)return"";a.j.sort(function(p,q){return p-q}); c=null;for(var e="",f=0;f=n.length){d-=n.length;b+=n;e=a.B;break}c=null==c?k:c}}a="";null!=c&&(a=e+"trn="+c);return b+a}; Cga=function(a){var b=1,c;for(c in a.u)b=c.length>b?c.length:b;return 3997-b-a.B.length-1}; Qj=function(a,b){this.j=a;this.depth=b}; Fga=function(){function a(l,m){return null==l?m:l} var b=Mj(),c=Math.max(b.length-1,0),d=Aga(b);b=d.j;var e=d.u,f=d.B,k=[];f&&k.push(new Qj([f.url,f.oH?2:0],a(f.depth,1)));e&&e!=f&&k.push(new Qj([e.url,2],0));b.url&&b!=f&&k.push(new Qj([b.url,0],a(b.depth,c)));d=g.Rj(k,function(l,m){return k.slice(0,k.length-m)}); !b.url||(f||e)&&b!=f||(e=sga(b.url))&&d.push([new Qj([e,1],a(b.depth,c))]);d.push([]);return g.Rj(d,function(l){return Ega(c,l)})}; Ega=function(a,b){g.Sj(b,function(e){return 0<=e.depth}); var c=Tj(b,function(e,f){return Math.max(e,f.depth)},-1),d=Maa(c+2); d[0]=a;g.cc(b,function(e){return d[e.depth+1]=e.j}); return d}; Gga=function(){var a=Fga();return g.Rj(a,function(b){return Pj(b)})}; Hga=function(a){Fj.google_image_requests||(Fj.google_image_requests=[]);var b=tga("IMG",Fj.document);b.src=a;Fj.google_image_requests.push(b)}; Uj=function(a){var b="Ef";if(a.Ef&&a.hasOwnProperty(b))return a.Ef;var c=new a;a.Ef=c;a.hasOwnProperty(b);return c}; Vj=function(){this.u=new nga;this.j=Dj()?new Ej:new Cj}; Iga=function(){Wj();var a=Fj.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Fj.setInterval&&"function"===typeof Fj.clearInterval&&"function"===typeof Fj.setTimeout&&"function"===typeof Fj.clearTimeout)}; Jga=function(){Wj();return Gga()}; Kga=function(){}; Wj=function(){return Uj(Kga).getContext()}; Xj=function(a){g.H.call(this,a)}; Lga=function(a){this.B=a;this.j=-1;this.u=this.C=0}; Yj=function(a,b){return function(){var c=g.Da.apply(0,arguments);if(-1Math.random())}; Xga=function(a){a&&dk&&bk()&&(dk.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),dk.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))}; Yga=function(){var a=ek;this.j=fk;this.vN="jserror";this.zJ=!0;this.nF=null;this.u=this.GH;this.kc=void 0===a?null:a}; Zga=function(a,b,c){var d=gk;return Yj(Zj().j.j,function(){try{if(d.kc&&d.kc.j){var e=d.kc.start(a.toString(),3);var f=b();d.kc.end(e)}else f=b()}catch(l){var k=d.zJ;try{Xga(e),k=d.u(a,new hk(ik(l)),void 0,c)}catch(m){d.GH(217,m)}if(!k)throw l;}return f})()}; jk=function(a,b,c,d){return Yj(Zj().j.j,function(){var e=g.Da.apply(0,arguments);return Zga(a,function(){return b.apply(c,e)},d)})}; ik=function(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b}; hk=function(a){Tga.call(this,Error(a),{message:a})}; $ga=function(){Fj&&"undefined"!=typeof Fj.google_measure_js_timing&&(Fj.google_measure_js_timing||ek.disable())}; aha=function(a){gk.nF=function(b){g.cc(a,function(c){c(b)})}}; bha=function(a,b){return Zga(a,b)}; kk=function(a,b){return jk(a,b)}; lk=function(a,b,c,d){gk.GH(a,b,c,d)}; mk=function(){return Date.now()-cha}; dha=function(){var a=Zj().B,b=0<=nk?mk()-nk:-1,c=ok?mk()-pk:-1,d=0<=qk?mk()-qk:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];lk(637,Error(),.001);var f=b;-1!=c&&cd?500:k}; rk=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}; sk=function(a){return a.right-a.left}; tk=function(a,b){return a==b?!0:a&&b?a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left:!1}; uk=function(a,b,c){b instanceof g.Jf?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,"number"===typeof c&&(a.top+=c,a.bottom+=c));return a}; vk=function(a,b,c){var d=new rk(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.j=d;this.u=c}; wk=function(a,b,c,d,e,f,k,l){this.C=a;this.P=b;this.B=c;this.I=d;this.j=e;this.D=f;this.u=k;this.J=l}; fha=function(a){var b=a!==a.top,c=a.top===wga(a),d=-1,e=0;if(b&&c&&a.top.mraid){d=3;var f=a.top.mraid}else d=(f=a.mraid)?b?c?2:1:0:-1;f&&(f.IS_GMA_SDK||(e=2),nca(eha,function(k){return"function"===typeof f[k]})||(e=1)); return{Nk:f,compatibility:e,Y0:d}}; gha=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint}; hha=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Lf(b.innerWidth,b.innerHeight)).round():mda(b||window).round()}catch(d){return new g.Lf(-12245933,-12245933)}}; xk=function(a,b,c){try{a&&(b=b.top);var d=hha(a,b,void 0===c?!1:c),e=oda($f(b.document).j);if(-12245933==d.width){var f=d.width;var k=new rk(f,f,f,f)}else k=new rk(e.y,e.x+d.width,e.y+d.height,e.x);return k}catch(l){return new rk(-12245933,-12245933,-12245933,-12245933)}}; g.yk=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}; zk=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1}; g.Bk=function(a,b,c){if("string"===typeof b)(b=Ak(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Ak(c,d);f&&(c.style[f]=e)}}; Ak=function(a,b){var c=iha[b];if(!c){var d=fda(b);c=d;void 0===a.style[d]&&(d=(g.je?"Webkit":Ck?"Moz":g.mc?"ms":null)+hda(d),void 0!==a.style[d]&&(c=d));iha[b]=c}return c}; g.Gk=function(a,b){var c=a.style[fda(b)];return"undefined"!==typeof c?c:a.style[Ak(a,b)]||""}; Hk=function(a,b){var c=Zf(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""}; Ik=function(a,b){return Hk(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}; g.Kk=function(a,b,c){if(b instanceof g.Jf){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Jk(d,!1);a.style.top=g.Jk(b,!1)}; Lk=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}}; jha=function(a){if(g.mc&&!g.jc(8))return a.offsetParent;var b=Zf(a),c=Ik(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=Ik(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}; g.Pk=function(a){var b=Zf(a),c=new g.Jf(0,0);var d=b?Zf(b):document;d=!g.mc||g.jc(9)||"CSS1Compat"==$f(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=Lk(a);b=oda($f(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c}; lha=function(a,b){var c=new g.Jf(0,0),d=fg(Zf(a));if(!gc(d,"parent"))return c;do{var e=d==b?g.Pk(a):kha(a);c.x+=e.x;c.y+=e.y}while(d&&d!=b&&d!=d.parent&&(a=d.frameElement)&&(d=d.parent));return c}; g.Qk=function(a,b){a=mha(a);b=mha(b);return new g.Jf(a.x-b.x,a.y-b.y)}; kha=function(a){a=Lk(a);return new g.Jf(a.left,a.top)}; mha=function(a){if(1==a.nodeType)return kha(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Jf(a.clientX,a.clientY)}; g.Rk=function(a,b,c){if(b instanceof g.Lf)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Jk(b,!0);a.style.height=g.Jk(c,!0)}; g.Jk=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}; g.Sk=function(a){var b=nha;if("none"!=Ik(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}; nha=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.je&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Lk(a),new g.Lf(a.right-a.left,a.bottom-a.top)):new g.Lf(b,c)}; g.Tk=function(a,b){a.style.display=b?"":"none"}; Uk=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b}; oha=function(a){return new rk(a.top,a.right,a.bottom,a.left)}; pha=function(a){var b=a.top||0,c=a.left||0;return new rk(b,c+(a.width||0),b+(a.height||0),c)}; Vk=function(a){return null!=a&&0<=a&&1>=a}; qha=function(){var a=g.qb();return a?Wk("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return jb(a,b)})||jb(a,"OMI/")&&!jb(a,"XiaoMi/")?!0:jb(a,"Presto")&&jb(a,"Linux")&&!jb(a,"X11")&&!jb(a,"Android")&&!jb(a,"Mobi"):!1}; rha=function(){this.B=!Kj(Fj.top);this.isMobileDevice=Jj()||oga();var a=Mj();this.domain=0c.height?m>p?(d=m,e=n):(d=p,e=q):mb.u?!1:a.jb.j?!1:typeof a.bdtypeof b.bd?!1:a.bdc++;){if(a===b)return!0;try{if(a=g.ng(a)||a){var d=Zf(a),e=d&&fg(d),f=e&&e.frameElement;f&&(a=f)}}catch(k){break}}return!1}; Oha=function(a,b,c){if(!a||!b)return!1;b=uk(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Kj(window.top)&&window.top&&window.top.document&&(window=window.top);if(!gha())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Zf(c))&&b.defaultView&&b.defaultView.frameElement)&&Nha(b,a);var d=a===c;a=!d&&a&&rg(a,function(e){return e===c}); return!(b||d||a)}; Pha=function(a,b,c,d){return Xk().B?!1:0>=sk(a)||0>=a.getHeight()?!0:c&&d?bha(208,function(){return Oha(a,b,c)}):!1}; vl=function(a,b,c){g.I.call(this);this.position=Qha.clone();this.nC=this.BB();this.DH=-2;this.z1=Date.now();this.IR=-1;this.lastUpdateTime=b;this.eC=null;this.cB=!1;this.vC=null;this.opacity=-1;this.requestSource=c;this.IH=function(){}; this.WR=function(){}; this.Wh=new lga;this.Wh.Jp=a;this.Wh.j=a;this.Gp=!1;this.Zq={SH:null,QH:null};this.rR=!0;this.Fz=null;this.Nu=this.AX=!1;Zj().I++;this.fg=this.BG();this.FR=-1;this.pe=null;this.xX=!1;this.featureSet=new vj;kga(this.featureSet);Rha(this);1==this.requestSource?xj(this.featureSet,"od",1):xj(this.featureSet,"od",0)}; Rha=function(a){a=a.Wh.Jp;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Sha&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+gda()):!!a.getAttribute("data-"+gda());b&&(Xk().u=!0)}; wl=function(a,b){b!=a.Nu&&(a.Nu=b,a=Xk(),b?a.I++:0c?0:a}; Vha=function(a,b,c){if(a.pe){a.pe.No();var d=a.pe.J,e=d.C,f=e.j;if(null!=d.I){var k=d.B;a.vC=new g.Jf(k.left-f.left,k.top-f.top)}f=a.qD()?Math.max(d.j,d.D):d.j;k={};null!==e.volume&&(k.volume=e.volume);e=a.RN(d);a.eC=d;a.Ea(f,b,c,!1,k,e,d.J)}}; Wha=function(a){if(a.cB&&a.Fz){var b=1==yj(a.featureSet,"od"),c=Xk().j,d=a.Fz,e=a.pe?a.pe.getName():"ns",f=new g.Lf(sk(c),c.getHeight());c=a.qD();a={d1:e,vC:a.vC,d2:f,qD:c,zd:a.fg.zd,V1:b};if(b=d.u){b.No();e=b.J;f=e.C.j;var k=null,l=null;null!=e.I&&f&&(k=e.B,k=new g.Jf(k.left-f.left,k.top-f.top),l=new g.Lf(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.D):e.j;c={d1:b.getName(),vC:k,d2:l,qD:c,V1:!1,zd:e}}else c=null;c&&Hha(d,a,c)}}; Xha=function(a,b,c){b&&(a.IH=b);c&&(a.WR=c)}; g.xl=function(){}; g.yl=function(a){return{value:a,done:!1}}; Yha=function(){this.C=this.j=this.B=this.u=this.D=0}; Zha=function(a){var b={};var c=g.Ua()-a.D;b=(b.ptlt=c,b);(c=a.u)&&(b.pnk=c);(c=a.B)&&(b.pnc=c);(c=a.C)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b}; $ha=function(){qj.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; zl=function(a){return Vk(a.volume)&&0Math.max(1E4,a.B/3)?0:b);var c=a.J(a)||{};c=void 0!==c.currentTime?c.currentTime:a.V;var d=c-a.V,e=0;0<=d?(a.Z+=b,a.Ca+=Math.max(b-d,0),e=Math.min(d,a.Z)):a.Ka+=Math.abs(d);0!=d&&(a.Z=0);-1==a.Pa&&0=a.B/2:0=a.xa:!1:!1}; lia=function(a){var b=Uk(a.fg.zd,2),c=a.Vf.B,d=a.fg,e=Rl(a),f=Ql(e.C),k=Ql(e.I),l=Ql(d.volume),m=Uk(e.J,2),n=Uk(e.Z,2),p=Uk(d.zd,2),q=Uk(e.ea,2),t=Uk(e.xa,2);d=Uk(d.Hi,2);a=a.qp().clone();a.round();e=rl(e,!1);return{b2:b,jy:c,oC:f,kC:k,Zw:l,pC:m,lC:n,zd:p,qC:q,mC:t,Hi:d,position:a,tC:e}}; nia=function(a,b){mia(a.j,b,function(){return{b2:0,jy:void 0,oC:-1,kC:-1,Zw:-1,pC:-1,lC:-1,zd:-1,qC:-1,mC:-1,Hi:-1,position:void 0,tC:[]}}); a.j[b]=lia(a)}; mia=function(a,b,c){for(var d=a.length;dc.time?b:c},a[0])}; nm=function(a){a=void 0===a?Fj:a;el.call(this,new al(a,2))}; om=function(){var a=Mia();al.call(this,Fj.top,a,"geo")}; Mia=function(){Zj();var a=Xk();return a.B||a.u?0:2}; Nia=function(){}; pm=function(){this.done=!1;this.j={xV:0,uM:0,Ska:0,pN:0,eH:-1,ZV:0,YV:0,aW:0};this.D=null;this.I=!1;this.B=null;this.J=0;this.u=new $k(this)}; wm=function(){var a=qm;a.I||(a.I=!0,Oia(a,function(){return a.C.apply(a,g.v(g.Da.apply(0,arguments)))}),a.C())}; Pia=function(){Uj(Nia);var a=Uj(im);null!=a.j&&a.j.j?uha(a.j.j):Xk().update(Fj)}; xm=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{Pia();var d=mk(),e=Zj();e.D=d;if(null!=Uj(im).j)for(e=0;eg.ve($ia).length?null:Tj(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===aja[d[0]]||!aja[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}}; cja=function(a,b){if(void 0==a.j)return 0;switch(a.D){case "mtos":return a.u?ol(b.j,a.j):ol(b.u,a.j);case "tos":return a.u?nl(b.j,a.j):nl(b.u,a.j)}return 0}; Dm=function(a,b,c,d){Jl.call(this,b,d);this.J=a;this.P=c}; dja=function(){}; Em=function(){}; Fm=function(){}; Gm=function(a){Jl.call(this,"fully_viewable_audible_half_duration_impression",a)}; Hm=function(a){this.j=a}; Im=function(a,b){Jl.call(this,a,b)}; Jm=function(a){Kl.call(this,"measurable_impression",a)}; Km=function(){Hm.apply(this,arguments)}; Lm=function(a,b,c){Ml.call(this,a,b,c)}; Mm=function(a){a=void 0===a?Fj:a;el.call(this,new al(a,2))}; Nm=function(a,b,c){Ml.call(this,a,b,c)}; Om=function(a){a=void 0===a?Fj:a;el.call(this,new al(a,2))}; Pm=function(){al.call(this,Fj,2,"mraid");this.Ca=0;this.Z=this.ea=!1;this.J=null;this.u=fha(this.B);this.C.j=new rk(0,0,0,0);this.Ga=!1}; Qm=function(a,b,c){a.bq("addEventListener",b,c)}; hja=function(a){Zj().C=!!a.bq("isViewable");Qm(a,"viewableChange",eja);"loading"===a.bq("getState")?Qm(a,"ready",fja):gja(a)}; gja=function(a){"string"===typeof a.u.Nk.AFMA_LIDAR?(a.ea=!0,ija(a)):(a.u.compatibility=3,a.J="nc",a.fail("w"))}; ija=function(a){a.Z=!1;var b=1==yj(Zj().featureSet,"rmmt"),c=!!a.bq("isViewable");(b?!c:1)&&Wj().setTimeout(kk(524,function(){a.Z||(jja(a),lk(540,Error()),a.J="mt",a.fail("w"))}),500); kja(a);Qm(a,a.u.Nk.AFMA_LIDAR,lja)}; kja=function(a){var b=1==yj(Zj().featureSet,"sneio"),c=void 0!==a.u.Nk.AFMA_LIDAR_EXP_1,d=void 0!==a.u.Nk.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.Nk.AFMA_LIDAR_EXP_2=!0);c&&(a.u.Nk.AFMA_LIDAR_EXP_1=!b)}; jja=function(a){a.bq("removeEventListener",a.u.Nk.AFMA_LIDAR,lja);a.ea=!1}; mja=function(a,b){if("loading"===a.bq("getState"))return new g.Lf(-1,-1);b=a.bq(b);if(!b)return new g.Lf(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Lf(-1,-1):new g.Lf(a,b)}; fja=function(){try{var a=Uj(Pm);a.bq("removeEventListener","ready",fja);gja(a)}catch(b){lk(541,b)}}; lja=function(a,b){try{var c=Uj(Pm);c.Z=!0;var d=a?new rk(a.y,a.x+a.width,a.y+a.height,a.x):new rk(0,0,0,0);var e=mk(),f=Zk();var k=new vk(e,f,c);k.j=d;k.volume=b;c.yp(k)}catch(l){lk(542,l)}}; eja=function(a){var b=Zj(),c=Uj(Pm);a&&!b.C&&(b.C=!0,c.Ga=!0,c.J&&c.fail("w",!0))}; Rm=function(){this.isInitialized=!1;this.j=this.u=null;var a={};this.J=(a.start=this.iX,a.firstquartile=this.dX,a.midpoint=this.fX,a.thirdquartile=this.jX,a.complete=this.aX,a.error=this.bX,a.pause=this.DI,a.resume=this.bR,a.skip=this.hX,a.viewable_impression=this.cm,a.mute=this.Tv,a.unmute=this.Tv,a.fullscreen=this.eX,a.exitfullscreen=this.cX,a.fully_viewable_audible_half_duration_impression=this.cm,a.measurable_impression=this.cm,a.abandon=this.DI,a.engagedview=this.cm,a.impression=this.cm,a.creativeview= this.cm,a.progress=this.Tv,a.custom_metric_viewable=this.cm,a.bufferstart=this.DI,a.bufferfinish=this.bR,a.audio_measurable=this.cm,a.audio_audible=this.cm,a);a={};this.P=(a.overlay_resize=this.gX,a.abandon=this.VG,a.close=this.VG,a.collapse=this.VG,a.overlay_unmeasurable_impression=function(b){return cm(b,"overlay_unmeasurable_impression",Zk())},a.overlay_viewable_immediate_impression=function(b){return cm(b,"overlay_viewable_immediate_impression",Zk())},a.overlay_unviewable_impression=function(b){return cm(b, "overlay_unviewable_impression",Zk())},a.overlay_viewable_end_of_session_impression=function(b){return cm(b,"overlay_viewable_end_of_session_impression",Zk())},a); Zj().u=3;nja(this);this.B=!1}; Sm=function(a,b,c,d){b=a.pz(null,d,!0,b);b.C=c;Fia([b],a.B);return b}; oja=function(a,b,c){gga(b);var d=a.j;g.cc(b,function(e){var f=g.Rj(e.criteria,function(k){var l=bja(k);if(null==l)k=null;else if(k=new Zia,null!=l.visible&&(k.j=l.visible/100),null!=l.audible&&(k.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=paa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);k.setTime(l,n,m)}return k}); Wk(f,function(k){return null==k})||jia(c,new Dm(e.id,e.event,f,d))})}; pja=function(){var a=[],b=Zj();a.push(Uj(om));yj(b.featureSet,"mvp_lv")&&a.push(Uj(Pm));b=[new Mm,new Om];b.push(new jm(a));b.push(new nm(Fj));return b}; qja=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=mk(),c=Zj(),d=Xk();nk=b;c.B=79463069;"o"!==a.u&&(Uia=wga(Fj));if(Iga()){qm.j.uM=0;qm.j.eH=mk()-b;var e=pja(),f=Uj(im);f.u=e;Hia(f,function(){Tm()})?qm.done||(Qia(),bl(f.j.j,a),wm()):d.B?Tm():wm()}else Um=!0}catch(k){throw gm.reset(),k; }}}; Wm=function(a){qm.u.cancel();Vm=a;qm.done=!0}; Xm=function(a){if(a.u)return a.u;var b=Uj(im).j;if(b)switch(b.getName()){case "nis":a.u="n";break;case "gsv":a.u="m"}a.u||(a.u="h");return a.u}; Ym=function(a,b,c){if(null==a.j)return b.Yv|=4,!1;a=rja(a.j,c,b);b.Yv|=a;return 0==a}; Tm=function(){var a=[new nm(Fj)],b=Uj(im);b.u=a;Hia(b,function(){Wm("i")})?qm.done||(Qia(),wm()):Wm("i")}; sja=function(a,b){if(!a.sb){var c=cm(a,"start",Zk());c=a.FI.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="929";null!==zm&&(d.v=zm);kh(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)}); b=Via();kh(b,function(e,f){return d[e]=encodeURIComponent(f)}); b="//pagead2.googlesyndication.com/pagead/gen_204?"+hl(gl(new fl,d));Fha(b);a.sb=!0}}; Zm=function(a,b,c){xm(qm,[a],!Zk());nia(a,c);4!=c&&mia(a.ea,c,a.BB);return cm(a,b,Zk())}; nja=function(a){Tia(function(){var b=tja();null!=a.u&&(b.sdk=a.u);var c=Uj(im);null!=c.j&&(b.avms=c.j.getName());return b})}; uja=function(a,b,c,d){if(a.B)var e=fm(gm,b);else e=Bia(gm,c),null!==e&&e.Ig!==b&&(a.qx(e),e=null);e||(b=a.pz(c,mk(),!1,b),0==gm.u.length&&(Zj().B=79463069),Gia([b]),e=b,e.C=Xm(a),d&&(e.Qa=d));return e}; vja=function(a){g.cc(gm.j,function(b){3==b.Zg&&a.qx(b)})}; wja=function(a,b){var c=a[b];void 0!==c&&0document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)}; gka=function(a){if(!a)return rf;var b=document.createElement("div").style;cka(a).forEach(function(c){var d=g.je&&c in dka?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");eb(d,"--")||eb(d,"var")||(c=bka(eka,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=$ja(c),null!=c&&bka(fka,b,b.setProperty?"setProperty":"setAttribute",[d,c]))}); return ada(g.df("Output of CSS sanitizer"),b.cssText||"")}; cka=function(a){g.Ma(a)?a=g.Rb(a):(a=g.ve(a),g.Ob(a,"cssText"));return a}; g.Kn=function(a){var b,c=b=0,d=!1;a=a.split(hka);for(var e=0;eg.Ua()}; g.lo=function(a){this.j=a}; rka=function(){}; mo=function(){}; no=function(a){this.j=a}; oo=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a}; ska=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a}; qo=function(a,b){this.u=a;this.j=null;if(g.mc&&!g.jc(9)){po||(po=new g.Dn);this.j=po.get(a);this.j||(b?this.j=document.getElementById(b):(this.j=document.createElement("userdata"),this.j.addBehavior("#default#userData"),document.body.appendChild(this.j)),po.set(a,this.j));try{this.j.load(this.u)}catch(c){this.j=null}}}; ro=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return tka[b]})}; so=function(a){try{a.j.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}}; to=function(a,b){this.u=a;this.j=b+"::"}; g.uo=function(a){var b=new oo;return b.isAvailable()?a?new to(b,a):b:null}; vo=function(a,b){this.j=a;this.bd=b}; wo=function(a){this.j=[];if(a)a:{if(a instanceof wo){var b=a.xn();a=a.Cj();if(0>=this.j.length){for(var c=this.j,d=0;d>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c}; xo=function(){wo.apply(this,arguments)}; yo=function(){}; vka=function(){var a=g.Da.apply(0,arguments);return 0===a.length?function(b){return b}:1===a.length?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,g.v(g.Da.apply(0,arguments))))}})}; wka=function(){var a=g.Da.apply(0,arguments);return function(b){return function(c,d){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");} c=b(c,d);var f={getState:c.getState,dispatch:function(k){return e.apply(null,[k].concat(g.v(g.Da.apply(1,arguments))))}}; d=a.map(function(k){return k(f)}); e=vka.apply(null,g.v(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}}; zo=function(){return Math.random().toString(36).substring(7).split("").join(".")}; xka=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:Ao}))throw Error('Reducer "'+b+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+zo()}))throw Error('Reducer "'+ b+"\" returned undefined when probed with a random type. Don't try to handle "+(Ao+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})}; yka=function(a,b,c,d){function e(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m} function f(u){if("function"!==typeof u)throw Error("Expected the listener to be a function.");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var x=!0;p===n&&(p=n.slice());p.push(u);return function(){if(x){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details."); x=!1;p===n&&(p=n.slice());p.splice(p.indexOf(u),1);n=null}}} function k(u){if("object"!==typeof u||null===u)var x=!1;else{for(x=u;null!==Object.getPrototypeOf(x);)x=Object.getPrototypeOf(x);x=Object.getPrototypeOf(u)===x}if(!x)throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof u.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,u)}finally{q=!1}x=n=p;for(var y=0;ym.status,t=500<=m.status&&600>m.status;if(n||q||t)p=qla(a,c,m,b.convertToSafeHtml);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};q=b.context||g.C;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}}, b.method,d,b.headers,b.responseType,b.withCredentials); d=b.timeout||0;if(b.onTimeout&&0=m||403===Qp(p.xhr))return Hg(new Yp("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0=f)Koa(a,m,u,k,x,b.join(),e),l=x;z.Oa(2);break;case 3:return z.return(Promise.reject(l))}})}; Koa=function(a,b,c,d,e,f,k){b=c-b;e?(e instanceof g.mr&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&gr("QUOTA_EXCEEDED",{dbName:lr(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:k.mode}),e instanceof g.mr&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),gr("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),Loa(a,!1,d,f,b,k.tag),fr(e)):Loa(a,!0,d, f,b,k.tag)}; Loa=function(a,b,c,d,e,f){gr("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})}; yr=function(a){this.j=a}; g.Er=function(a,b,c){a.j.createIndex(b,c,{unique:!1})}; Moa=function(a,b){return g.Fr(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})}; g.Ooa=function(a,b){return"getAll"in IDBObjectStore.prototype?g.vr(a.j.getAll(b,void 0)):Noa(a,b)}; Noa=function(a,b){var c=[];return g.Fr(a,{query:b},function(d){c.push(d.getValue());return d.continue()}).then(function(){return c})}; Qoa=function(a){return"getAllKeys"in IDBObjectStore.prototype?g.vr(a.j.getAllKeys(void 0,void 0)):Poa(a)}; Poa=function(a){var b=[];return g.Roa(a,{query:void 0},function(c){b.push(c.EB());return c.continue()}).then(function(){return b})}; g.Cr=function(a,b,c){return g.vr(a.j.put(b,c))}; g.Fr=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return Gr(a).then(function(d){return wr(d,c)})}; g.Roa=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.j.openKeyCursor(d,b):a.j.openCursor(d,b);return xr(a).then(function(e){return wr(e,c)})}; Dr=function(a){var b=this;this.j=a;this.B=new Map;this.u=!1;this.done=new Promise(function(c,d){b.j.addEventListener("complete",function(){c()}); b.j.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.j.error)}); b.j.addEventListener("abort",function(){var e=b.j.error;if(e)d(e);else if(!b.u){e=g.mr;for(var f=b.j.objectStoreNames,k=[],l=0;l=z},y); y.done.catch(function(z){e(z)})}catch(z){e(z)}}); k.addEventListener("success",function(){var u=k.result;m&&u.addEventListener("versionchange",function(){m(f())}); u.addEventListener("close",function(){gr("IDB_UNEXPECTEDLY_CLOSED",{dbName:lr(a),dbVersion:u.version});n&&n()}); d(f())}); k.addEventListener("error",function(){e(k.error)}); l&&k.addEventListener("blocked",function(){l()})})}; Voa=function(a,b,c){c=void 0===c?{}:c;return Uoa(a,b,c)}; Ir=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.B(function(k){if(1==k.j)return g.wa(k,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.A(k,Foa(c),4); if(2!=k.j)return g.xa(k,0);f=g.ya(k);throw qr(f,a,"",-1);})}; Woa=function(a){return new Promise(function(b){uoa(function(){b()},a)})}; Jr=function(a,b){this.name=a;this.options=b;this.C=!0;this.I=this.D=0;this.u=500}; Xoa=function(a,b){return new g.mr("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})}; g.Kr=function(a,b){if(!b)throw g.rr("openWithToken",lr(a.name));return a.open()}; Yoa=function(a,b){var c;return g.B(function(d){if(1==d.j)return g.A(d,g.Kr(Lr,b),2);c=d.u;return d.return(g.Br(c,["databases"],{jc:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(k){if(k?a.actualName!==k.actualName||a.publicName!==k.publicName||a.userIdentifier!==k.userIdentifier:1)return g.Cr(f,a).then(function(){})})}))})}; Mr=function(a,b){var c;return g.B(function(d){if(1==d.j)return a?g.A(d,g.Kr(Lr,b),2):d.return();c=d.u;return d.return(c.delete("databases",a))})}; Zoa=function(a,b){var c,d;return g.B(function(e){return 1==e.j?(c=[],g.A(e,g.Kr(Lr,b),2)):3!=e.j?(d=e.u,g.A(e,g.Br(d,["databases"],{jc:!0,mode:"readonly"},function(f){c.length=0;return g.Fr(f.objectStore("databases"),{},function(k){a(k.getValue())&&c.push(k.getValue());return k.continue()})}),3)):e.return(c)})}; $oa=function(a){return Zoa(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)}; apa=function(){var a,b,c,d;return g.B(function(e){switch(e.j){case 1:a=Xq();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(pq&&mq()&&!nq()||g.Nr)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(f){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.wa(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.A(e,Yoa(d,Or),4);case 4:return g.A(e,Mr("yt-idb-test-do-not-use",Or),5);case 5:return e.return(!0);case 2:return g.ya(e),e.return(!1)}})}; bpa=function(){if(void 0!==Pr)return Pr;er=!0;return Pr=apa().then(function(a){er=!1;var b;if(null!=(b=Wq())&&b.j){var c;b={hasSucceededOnce:(null==(c=Xq())?void 0:c.hasSucceededOnce)||a};var d;null==(d=Wq())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})}; Qr=function(){return g.Ja("ytglobal.idbToken_")||void 0}; g.Rr=function(){var a=Qr();return a?Promise.resolve(a):bpa().then(function(b){(b=b?Or:void 0)&&g.Ia("ytglobal.idbToken_",b);return b})}; cpa=function(a){if(!g.jr())throw a=new g.mr("AUTH_INVALID",{dbName:a}),fr(a),a;var b=g.ir();return{actualName:a+":"+b,publicName:a,userIdentifier:b}}; dpa=function(a,b,c,d){var e,f,k,l,m,n;return g.B(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.A(p,g.Rr(),2);case 2:k=p.u;if(!k)throw l=g.rr("openDbImpl",a,b),g.P("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),fr(l),l;kr(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:cpa(a);g.wa(p,3);return g.A(p,Yoa(m,k),5);case 5:return g.A(p,Voa(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=g.ya(p),g.wa(p,7),g.A(p,Mr(m.actualName, k),9);case 9:g.xa(p,8);break;case 7:g.ya(p);case 8:throw n;}})}; epa=function(a,b,c){c=void 0===c?{}:c;return dpa(a,b,!1,c)}; fpa=function(a,b,c){c=void 0===c?{}:c;return dpa(a,b,!0,c)}; gpa=function(a,b){b=void 0===b?{}:b;var c,d;return g.B(function(e){if(1==e.j)return g.A(e,g.Rr(),2);if(3!=e.j){c=e.u;if(!c)return e.return();kr(a);d=cpa(a);return g.A(e,Ir(d.actualName,b),3)}return g.A(e,Mr(d.actualName,c),0)})}; hpa=function(a,b,c){a=a.map(function(d){return g.B(function(e){return 1==e.j?g.A(e,Ir(d.actualName,b),2):g.A(e,Mr(d.actualName,c),0)})}); return Promise.all(a).then(function(){})}; ipa=function(){var a=void 0===a?{}:a;var b,c;return g.B(function(d){if(1==d.j)return g.A(d,g.Rr(),2);if(3!=d.j){b=d.u;if(!b)return d.return();kr("LogsDatabaseV2");return g.A(d,$oa(b),3)}c=d.u;return g.A(d,hpa(c,a,b),0)})}; jpa=function(a,b){b=void 0===b?{}:b;var c;return g.B(function(d){if(1==d.j)return g.A(d,g.Rr(),2);if(3!=d.j){c=d.u;if(!c)return d.return();kr(a);return g.A(d,Ir(a,b),3)}return g.A(d,Mr(a,c),0)})}; Tr=function(a){this.EA=this.initialized=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){}; this.Mu=function(){}; this.now=Date.now;this.sx=!1;var b;this.ER=null!=(b=a.ER)?b:100;var c;this.eR=null!=(c=a.eR)?c:1;var d;this.XQ=null!=(d=a.XQ)?d:2592E6;var e;this.PQ=null!=(e=a.PQ)?e:12E4;var f;this.dR=null!=(f=a.dR)?f:5E3;var k;this.Me=null!=(k=a.Me)?k:void 0;this.dB=!!a.dB;var l;this.OA=null!=(l=a.OA)?l:.1;var m;this.RC=null!=(m=a.RC)?m:10;a.handleError&&(this.handleError=a.handleError);a.Mu&&(this.Mu=a.Mu);a.sx&&(this.sx=a.sx);a.EA&&(this.EA=a.EA);this.bb=a.bb;this.Lk=a.Lk;this.Pf=a.Pf;this.Jf=a.Jf;this.Xn=a.Xn; this.zI=a.zI;this.UH=a.UH;Sr(this)&&(!this.bb||this.bb("networkless_logging"))&&kpa(this)}; kpa=function(a){Sr(a)&&!a.sx&&(a.initialized=!0,a.dB&&Math.random()<=a.OA&&a.Pf.QV(a.Me),lpa(a),a.Jf.mf()&&a.Kz(),a.Jf.Ja(a.zI,a.Kz.bind(a)),a.Jf.Ja(a.UH,a.MM.bind(a)))}; Ur=function(a,b){var c,d;return g.B(function(e){switch(e.j){case 1:if(!Sr(a))throw c=g.rr("immediateSend"),c;if(void 0===b.id){e.Oa(2);break}return g.A(e,a.Pf.KX(b.id,a.Me),3);case 3:(d=e.u)?b=d:a.Mu(Error("The request cannot be found in the database."));case 2:if(mpa(a,b,a.XQ)){e.Oa(4);break}a.Mu(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.Oa(5);break}return g.A(e,a.Pf.ou(b.id,a.Me),5);case 5:return e.return();case 4:b.skipRetry||(b=npa(a,b));if(!b){e.Oa(0); break}if(!b.skipRetry||void 0===b.id){e.Oa(8);break}return g.A(e,a.Pf.ou(b.id,a.Me),8);case 8:a.Xn(b.url,b.options,!!b.skipRetry),g.va(e)}})}; npa=function(a,b){if(!Sr(a))throw g.rr("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; b.options.onError=function(e,f){var k,l,m;return g.B(function(n){switch(n.j){case 1:k=opa(f);if(!(a.bb&&a.bb("nwl_consider_error_code")&&k||a.bb&&!a.bb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.RC)){n.Oa(2);break}if(!a.Jf.Yn){n.Oa(3);break}return g.A(n,a.Jf.Yn(),3);case 3:if(a.Jf.mf()){n.Oa(2);break}c(e,f);if(!a.bb||!a.bb("nwl_consider_error_code")||void 0===(null==(l=b)?void 0:l.id)){n.Oa(6);break}return g.A(n,a.Pf.aJ(b.id,a.Me,!1),6);case 6:return n.return();case 2:if(a.bb&&a.bb("nwl_consider_error_code")&& !k&&a.potentialEsfErrorCounter>a.RC)return n.return();a.potentialEsfErrorCounter++;if(void 0===(null==(m=b)?void 0:m.id)){n.Oa(8);break}return b.sendCount=c?!1:!0}; lpa=function(a){if(!Sr(a))throw g.rr("retryQueuedRequests");a.Pf.SN("QUEUED",a.Me).then(function(b){b&&!mpa(a,b,a.PQ)?a.Lk.Tg(function(){return g.B(function(c){if(1==c.j)return void 0===b.id?c.Oa(2):g.A(c,a.Pf.aJ(b.id,a.Me),2);lpa(a);g.va(c)})}):a.Jf.mf()&&a.Kz()})}; Vr=function(a,b){a.mS&&!a.Jf.mf()?a.mS(b):a.handleError(b)}; Sr=function(a){return!!a.Me||a.EA}; opa=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0}; as=function(a,b){this.version=a;this.args=b}; bs=function(a,b){this.topic=a;this.j=b}; ds=function(a,b){var c=cs();c&&c.publish.call(c,a.toString(),a,b)}; qpa=function(a,b,c){var d=cs();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,k){var l=g.Ja("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(es[e])try{if(k&&a instanceof bs&&a!=f)try{var m=a.j,n=k;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.lq){var p=new m;m.lq=p.version}var q=m.lq}catch(t){}if(!q||n.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{k=Reflect.construct(m, g.Rb(n.args))}catch(t){throw t.message="yt.pubsub2.Data.deserialize(): "+t.message,t;}}catch(t){throw t.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+t.message,t;}b.call(c||window,k)}catch(t){g.Cp(t)}},ppa[a.toString()]?g.Uq()?g.kn.Tg(l):g.Sp(l,0):l())}); es[e]=!0;fs[a.toString()]||(fs[a.toString()]=[]);fs[a.toString()].push(e);return e}; hs=function(a,b,c){var d=qpa(a,function(e){b.apply(c,arguments);gs(d)},c); return d}; gs=function(a){var b=cs();b&&("number"===typeof a&&(a=[a]),g.cc(a,function(c){b.unsubscribeByKey(c);delete es[c]}))}; cs=function(){return g.Ja("ytPubsub2Pubsub2Instance")}; is=function(a,b){Jr.call(this,a,b);this.options=b;kr(a)}; rpa=function(a,b){var c;return function(){c||(c=new is(a,b));return c}}; g.js=function(a,b){return rpa(a,b)}; spa=function(){if(ks)return ks();var a={};ks=g.js("LogsDatabaseV2",{Xr:(a.LogsRequestsStore={Jo:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.zr(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.Er(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&Ar(b,"sapisid");c(9)&&Ar(b,"SWHealthLog")}, version:9});return ks()}; ls=function(a){return g.Kr(spa(),a)}; ms=function(a,b){var c,d,e,f;return g.B(function(k){if(1==k.j)return c={startTime:(0,g.Q)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.A(k,ls(b),2);if(3!=k.j)return d=k.u,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.O("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.A(k,Ioa(d,e),3);f=k.u;c.E1=(0,g.Q)();tpa(c);return k.return(f)})}; upa=function(a,b){var c,d,e,f,k,l,m;return g.B(function(n){if(1==n.j)return c={startTime:(0,g.Q)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.A(n,ls(b),2);if(3!=n.j)return d=n.u,e=g.O("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],k=[a,e,(0,g.Q)()],l=IDBKeyRange.bound(f,k),m=void 0,g.A(n,g.Br(d,["LogsRequestsStore"],{mode:"readwrite",jc:!0},function(p){return g.Hr(p.objectStore("LogsRequestsStore").index("newRequestV2"),{query:l,direction:"prev"},function(q){q.getValue()&&(m=q.getValue(),"NEW"=== a&&(m.status="QUEUED",q.update(m)))})}),3); c.E1=(0,g.Q)();tpa(c);return n.return(m)})}; vpa=function(a,b){var c;return g.B(function(d){if(1==d.j)return g.A(d,ls(b),2);c=d.u;return d.return(g.Br(c,["LogsRequestsStore"],{mode:"readwrite",jc:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(k){if(k)return k.status="QUEUED",g.Cr(f,k).then(function(){return k})})}))})}; ns=function(a,b,c){c=void 0===c?!0:c;var d;return g.B(function(e){if(1==e.j)return g.A(e,ls(b),2);d=e.u;return e.return(g.Br(d,["LogsRequestsStore"],{mode:"readwrite",jc:!0},function(f){var k=f.objectStore("LogsRequestsStore");return k.get(a).then(function(l){return l?(l.status="NEW",c&&(l.sendCount+=1),g.Cr(k,l).then(function(){return l})):g.tr.resolve(void 0)})}))})}; os=function(a,b){var c;return g.B(function(d){if(1==d.j)return g.A(d,ls(b),2);c=d.u;return d.return(c.delete("LogsRequestsStore",a))})}; wpa=function(a){var b,c;return g.B(function(d){if(1==d.j)return g.A(d,ls(a),2);b=d.u;c=(0,g.Q)()-2592E6;return g.A(d,g.Br(b,["LogsRequestsStore"],{mode:"readwrite",jc:!0},function(e){return g.Fr(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})}; xpa=function(){g.B(function(a){return g.A(a,ipa(),0)})}; tpa=function(a){g.P("nwl_csi_killswitch")||.01>=Math.random()&&ds("nwl_transaction_latency_payload",a)}; zpa=function(a){return g.Kr(ypa(),a)}; Apa=function(a){var b,c;g.B(function(d){if(1==d.j)return g.A(d,zpa(a),2);b=d.u;c=(0,g.Q)()-2592E6;return g.A(d,g.Br(b,["SWHealthLog"],{mode:"readwrite",jc:!0},function(e){return g.Fr(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})}; Bpa=function(a){var b;return g.B(function(c){if(1==c.j)return g.A(c,zpa(a),2);b=c.u;return g.A(c,b.clear("SWHealthLog"),0)})}; g.ps=function(a,b,c,d,e,f){e=void 0===e?"":e;f=void 0===f?!1:f;if(a)if(c&&!g.jq())a&&(a=g.kf(g.mf(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.uf(wf(a)).toString(),a=g.Of(g.ch(a))),g.fb(a)||(a=hg("IFRAME",{src:'javascript:""',style:"display:none"}),Zf(a).body.appendChild(a)));else if(e)Wp(a,b,"POST",e,d);else if(g.O("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Wp(a,b,"GET","",d,void 0,f);else{b:{try{var k=new ega({url:a});if(k.B&&k.u||k.C){var l= gh(g.ih(5,a));var m=!(!l||!l.endsWith("/aclk")||"1"!==wh(a,"ri"));break b}}catch(n){}m=!1}m?Cpa(a)?(b&&b(),c=!0):c=!1:c=!1;c||Dpa(a,b)}}; Cpa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1}; Dpa=function(a,b){var c=new Image,d=""+Epa++;qs[d]=c;c.onload=c.onerror=function(){b&&qs[d]&&b();delete qs[d]}; c.src=a}; rs=function(){this.j=new Map;this.u=!1}; ts=function(){if(!rs.j){var a=g.Ja("yt.networkRequestMonitor.instance")||new rs;g.Ia("yt.networkRequestMonitor.instance",a);rs.j=a}return rs.j}; vs=function(){us||(us=new Oq("yt.offline"));return us}; Fpa=function(a){if(g.P("offline_error_handling")){var b=vs().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);vs().set("errors",b,2592E3,!0)}}; Gpa=function(){if(g.P("offline_error_handling")){var a=vs().get("errors",!0);if(a){for(var b in a)if(a[b]){var c=new g.hr(b,"sent via offline_errors");c.name=a[b].name;c.stack=a[b].stack;c.level=a[b].level;g.Cp(c)}vs().set("errors",{},2592E3,!0)}}}; ws=function(){g.Te.call(this);var a=this;this.P=0;this.I=this.C=!1;this.u=this.KG();g.P("use_shared_nsm")?(this.j=Pja(),g.P("use_shared_nsm_and_keep_yt_online_updated")&&(this.j.Ja("networkstatus-online",function(){a.u=!0;a.I&&Gpa()}),this.j.Ja("networkstatus-offline",function(){a.u=!1}))):(Hpa(this),Ipa(this))}; Jpa=function(){if(!ws.j){var a=g.Ja("yt.networkStatusManager.instance")||new ws;g.Ia("yt.networkStatusManager.instance",a);ws.j=a}return ws.j}; Ipa=function(a){window.addEventListener("online",function(){return g.B(function(b){if(1==b.j)return g.A(b,a.Yn(),2);a.I&&Gpa();g.va(b)})})}; Hpa=function(a){window.addEventListener("offline",function(){return g.B(function(b){return g.A(b,a.Yn(),0)})})}; Kpa=function(a){a.P=g.Rq(0,function(){return g.B(function(b){if(1==b.j)return a.u?a.KG()||!a.C?b.Oa(3):g.A(b,a.Yn(),3):g.A(b,a.Yn(),3);Kpa(a);g.va(b)})},Lpa)}; g.xs=function(a){a=void 0===a?{}:a;g.Te.call(this);var b=this;this.u=this.J=0;this.C="ytnetworkstatus-offline";this.D="ytnetworkstatus-online";g.P("use_shared_nsm")&&(this.C="networkstatus-offline",this.D="networkstatus-online");this.j=Jpa();var c=g.Ja("yt.networkStatusManager.instance.monitorNetworkStatusChange").bind(this.j);c&&c(a.qN);a.ZO&&(c=g.Ja("yt.networkStatusManager.instance.enableErrorFlushing").bind(this.j))&&c();if(c=g.Ja("yt.networkStatusManager.instance.listen").bind(this.j))a.XC?(this.XC= a.XC,c(this.D,function(){Mpa(b,"publicytnetworkstatus-online")}),c(this.C,function(){Mpa(b,"publicytnetworkstatus-offline")})):(c(this.D,function(){b.dispatchEvent("publicytnetworkstatus-online")}),c(this.C,function(){b.dispatchEvent("publicytnetworkstatus-offline")}))}; Mpa=function(a,b){a.XC?a.u?(g.kn.zj(a.J),a.J=g.kn.Tg(function(){a.I!==b&&(a.dispatchEvent(b),a.I=b,a.u=(0,g.Q)())},a.XC-((0,g.Q)()-a.u))):(a.dispatchEvent(b),a.I=b,a.u=(0,g.Q)()):a.dispatchEvent(b)}; ys=function(){Tr.call(this,{Pf:{QV:wpa,ou:os,SN:upa,KX:vpa,aJ:ns,set:ms},Jf:Npa(),handleError:g.Cp,Mu:Ep,Xn:Opa,now:g.Q,mS:Fpa,Lk:g.Tq(),zI:"publicytnetworkstatus-online",UH:"publicytnetworkstatus-offline",dB:!0,OA:.1,RC:g.yp("potential_esf_error_limit",10),bb:g.P,sx:!(g.jr()&&"www.youtube-nocookie.com"!==g.jh(document.location.toString()))});this.u=new g.Vh;g.P("networkless_immediately_drop_all_requests")&&xpa();jpa("LogsDatabaseV2")}; zs=function(){var a=g.Ja("yt.networklessRequestController.instance");a||(a=new ys,g.Ia("yt.networklessRequestController.instance",a),g.P("networkless_logging")&&g.Rr().then(function(b){a.Me=b;kpa(a);a.u.resolve();a.dB&&Math.random()<=a.OA&&a.Me&&Apa(a.Me);g.P("networkless_immediately_drop_sw_health_store")&&Ppa(a)})); return a}; Ppa=function(a){var b;g.B(function(c){if(!a.Me)throw b=g.rr("clearSWHealthLogsDb"),b;return c.return(Bpa(a.Me).catch(function(d){a.handleError(d)}))})}; Opa=function(a,b,c){g.P("use_cfr_monitor")&&Qpa(a,b);var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.Q)());c&&0===Object.keys(b).length?g.ps(a):g.Xp(a,b)}; Npa=function(){As||(As=new g.xs({ZO:!0,qN:!0}));return As}; Qpa=function(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){ts().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){ts().requestComplete(a,!0);d(e,f)}}; Rpa=function(a,b){function c(d){var e=Bs().mf();if(!Cs()||!d||e&&g.P("vss_networkless_bypass_write"))Ds(a,b);else{var f={url:a,options:b,timestamp:(0,g.Q)(),status:"NEW",sendCount:0};ms(f,d).then(function(k){f.id=k;Bs().mf()&&Es(f)}).catch(function(k){Es(f); Fs(k)})}} b=void 0===b?{}:b;g.P("skip_is_supported_killswitch")?g.Rr().then(function(d){c(d)}):c(Qr())}; Gs=function(a,b,c){function d(e){if(Cs()&&e){var f={url:a,options:b,timestamp:(0,g.Q)(),status:"NEW",sendCount:0};g.P("nwl_skip_retry")&&(f.skipRetry=c);if(Bs().mf()||g.P("nwl_aggressive_send_then_write")&&!f.skipRetry){if(!f.skipRetry){var k=b.onError?b.onError:function(){}; b.onError=function(l,m){return g.B(function(n){if(1==n.j)return g.A(n,ms(f,e).catch(function(p){Fs(p)}),2); k(l,m);g.va(n)})}}Ds(a,b,f.skipRetry)}else ms(f,e).catch(function(l){Ds(a,b,g.P("nwl_skip_retry")&&c); Fs(l)})}else Ds(a,b,g.P("nwl_skip_retry")&&c)} b=void 0===b?{}:b;g.P("skip_is_supported_killswitch")?g.Rr().then(function(e){d(e)}):d(Qr())}; Hs=function(a,b){function c(d){if(Cs()&&d){var e={url:a,options:b,timestamp:(0,g.Q)(),status:"NEW",sendCount:0},f=!1,k=b.onSuccess?b.onSuccess:function(){}; e.options.onSuccess=function(m,n){g.P("use_cfr_monitor")&&ts().requestComplete(e.url,!0);void 0!==e.id?os(e.id,d):f=!0;g.P("vss_network_hint")&&Bs().Pn(!0);k(m,n)}; if(g.P("use_cfr_monitor")){var l=b.onError?b.onError:function(){}; e.options.onError=function(m,n){ts().requestComplete(e.url,!1);l(m,n)}}Ds(e.url,e.options); ms(e,d).then(function(m){e.id=m;f&&os(e.id,d)}).catch(function(m){Fs(m)})}else Ds(a,b)} b=void 0===b?{}:b;g.P("skip_is_supported_killswitch")?g.Rr().then(function(d){c(d)}):c(Qr())}; Spa=function(){var a=Qr();if(!a)throw g.rr("throttleSend");Is||(Is=g.kn.Tg(function(){var b;return g.B(function(c){if(1==c.j)return g.A(c,upa("NEW",a),2);if(3!=c.j)return b=c.u,b?g.A(c,Es(b),3):(g.kn.zj(Is),Is=0,c.return());Is&&(Is=0,Spa());g.va(c)})},100))}; Es=function(a){var b,c,d;return g.B(function(e){switch(e.j){case 1:b=Qr();if(!b)throw c=g.rr("immediateSend"),c;if(void 0===a.id){e.Oa(2);break}return g.A(e,vpa(a.id,b),3);case 3:(d=e.u)?a=d:Ep(Error("The request cannot be found in the database."));case 2:var f=a.timestamp;if(!(2592E6<=(0,g.Q)()-f)){e.Oa(4);break}Ep(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.Oa(5);break}return g.A(e,os(a.id,b),5);case 5:return e.return();case 4:a.skipRetry||(a=Tpa(a)); f=a;var k,l;if(null==f?0:null==(k=f.options)?0:null==(l=k.postParams)?0:l.requestTimeMs)f.options.postParams.requestTimeMs=Math.round((0,g.Q)());a=f;if(!a){e.Oa(0);break}if(!a.skipRetry||void 0===a.id){e.Oa(8);break}return g.A(e,os(a.id,b),8);case 8:Ds(a.url,a.options,!!a.skipRetry),g.va(e)}})}; Tpa=function(a){var b=Qr();if(!b)throw g.rr("updateRequestHandlers");var c=a.options.onError?a.options.onError:function(){}; a.options.onError=function(e,f){var k,l,m;return g.B(function(n){switch(n.j){case 1:g.P("use_cfr_monitor")&&ts().requestComplete(a.url,!1);k=opa(f);if(!(g.P("nwl_consider_error_code")&&k||!g.P("nwl_consider_error_code")&&Upa()<=g.yp("potential_esf_error_limit",10))){n.Oa(2);break}if(g.P("skip_checking_network_on_cfr_failure")&&(!g.P("skip_checking_network_on_cfr_failure")||ts().isEndpointCFR(a.url))){n.Oa(3);break}return g.A(n,Bs().Yn(),3);case 3:if(Bs().mf()){n.Oa(2);break}c(e,f);if(!g.P("nwl_consider_error_code")|| void 0===(null==(l=a)?void 0:l.id)){n.Oa(6);break}return g.A(n,ns(a.id,b,!1),6);case 6:return n.return();case 2:if(g.P("nwl_consider_error_code")&&!k&&Upa()>g.yp("potential_esf_error_limit",10))return n.return();g.Ja("ytNetworklessLoggingInitializationOptions")&&Js.potentialEsfErrorCounter++;Ks++;if(void 0===(null==(m=a)?void 0:m.id)){n.Oa(8);break}return 1>a.sendCount?g.A(n,ns(a.id,b),12):g.A(n,os(a.id,b),8);case 12:g.kn.Tg(function(){Bs().mf()&&Spa()},5E3); case 8:c(e,f),g.va(n)}})}; var d=a.options.onSuccess?a.options.onSuccess:function(){}; a.options.onSuccess=function(e,f){var k;return g.B(function(l){if(1==l.j)return g.P("use_cfr_monitor")&&ts().requestComplete(a.url,!0),void 0===(null==(k=a)?void 0:k.id)?l.Oa(2):g.A(l,os(a.id,b),2);g.P("vss_network_hint")&&Bs().Pn(!0);d(e,f);g.va(l)})}; return a}; Bs=function(){if(g.P("use_new_nwl"))return Npa();Ls||(Ls=new g.xs({ZO:!0,qN:!0}));return Ls}; Fs=function(a){Bs().mf()?g.Cp(a):Fpa(a)}; Ds=function(a,b,c){c&&0===Object.keys(b).length?g.ps(a):g.Xp(a,b)}; Cs=function(){return g.Ja("ytNetworklessLoggingInitializationOptions")?Js.isNwlInitialized:!1}; Upa=function(){return g.Ja("ytNetworklessLoggingInitializationOptions")?Js.potentialEsfErrorCounter:Ks}; g.Ms=function(a){this.config_=null;a?this.config_=a:koa()&&(this.config_=g.Mq())}; g.Ns=function(a,b,c,d){function e(p){try{(void 0===p?0:p)&&d.retry&&!d.rP.bypassNetworkless?(f.method="POST",d.rP.writeThenSend?g.P("use_new_nwl_wts")?zs().writeThenSend(n,f):Rpa(n,f):g.P("use_new_nwl_saw")?zs().sendAndWrite(n,f):Hs(n,f)):(f.method="POST",f.postParams||(f.postParams={}),g.Xp(n,f))}catch(q){if("InvalidAccessError"==q.name)Ep(Error("An extension is blocking network request."));else throw q;}} !g.O("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&Ep(new g.hr("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.hr("innertube xhrclient not ready",b,c,d),g.Cp(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)}, onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)}, onError:function(p,q){if(d.onError)d.onError(q)}, onFetchError:function(p){if(d.onError)d.onError(p)}, timeout:d.timeout,withCredentials:!0};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var k=a.config_.wO;k&&(c=k);k=toa(a.config_.xO||!1,c,d);Object.assign(f.headers,k);(k=f.headers.Authorization)&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;var l={alt:"json"},m=a.config_.jH&&k;m=m&&k.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=Kp(""+c+b,l);g.P("use_new_nwl")&&zs().initialized||!g.P("use_new_nwl")&& Cs()?bpa().then(function(p){e(p)}):e(!1)}; Vpa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Os+"VisibilityState";if(b in a)return a[b]}; Ps=function(a,b){var c;Wk(a,function(d){c=b[d];return!!c}); return c}; Qs=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(a=a||window.event){this.event=a;for(var b in a)b in Wpa||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget; if(d)try{d=d.nodeName?d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.j=a.pageX;this.u=a.pageY}}catch(e){}}; Xpa=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.u=a.clientY+b}}; Ypa=function(a,b,c,d){d=void 0===d?{}:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return ze(Rs,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,k=g.Na(e[4])&&g.Na(d)&&g.De(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||k)})}; g.Ss=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Ypa(a,b,c,d);if(e)return e;e=++Zpa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var k=f?function(l){l=new Qs(l);if(!rg(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Qs(l); l.currentTarget=a;return c.call(a,l)}; k=Dp(k);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),$pa()||"boolean"===typeof d?a.addEventListener(b,k,d):a.addEventListener(b,k,!!d.capture)):a.attachEvent("on"+b,k);Rs[e]=[a,b,c,k,d];return e}; aqa=function(a,b){var c=document.body||document;return g.Ss(c,"click",function(d){var e=rg(d.target,function(f){return f===c||b(f)},!0); e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})}; g.Ts=function(a){a&&("string"==typeof a&&(a=[a]),g.cc(a,function(b){if(b in Rs){var c=Rs[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?$pa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Rs[b]}}))}; g.Us=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a}; Vs=function(a){a=a||window.event;var b;a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path;return b&&b.length?b[0]:g.Us(a)}; Ws=function(a){a=a||window.event;var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b}; Xs=function(a){a=a||window.event;var b=a.pageX,c=a.pageY;document.body&&document.documentElement&&("number"!==typeof b&&(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),"number"!==typeof c&&(c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop));return new g.Jf(b,c)}; g.Ys=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()}; g.Zs=function(a){a=a||window.event;return!1===a.returnValue||a.CO&&a.CO()}; g.$s=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which}; bqa=function(a){return aqa(a,function(b){return g.un(b,"ytp-ad-has-logging-urls")})}; g.cqa=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.Ss(a,b,function(){g.Ts(e);c.apply(a,arguments)},d)}; at=function(a){for(var b in Rs)Rs[b][0]==a&&g.Ts(b)}; bt=function(a){this.J=a;this.j=null;this.C=0;this.I=null;this.D=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.B=0;this.Z=g.Ss(window,"mousemove",(0,g.Sa)(this.U,this));this.P=g.Tp((0,g.Sa)(this.V,this),25)}; dqa=function(){var a={},b=void 0===a.u0?!1:a.u0;a=void 0===a.mW?!0:a.mW;if(null==g.Ja("_lact",window)){var c=parseInt(g.O("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Ia("_lact",c,window);g.Ia("_fact",c,window);-1==c&&ct();g.Ss(document,"keydown",ct);g.Ss(document,"keyup",ct);g.Ss(document,"mousedown",ct);g.Ss(document,"mouseup",ct);b?g.Ss(window,"touchmove",function(){dt("touchmove",200)},{passive:!0}):(g.Ss(window,"resize",function(){dt("resize",200)}),a&&g.Ss(window,"scroll",function(){dt("scroll", 200)})); new bt(function(){dt("mouse",100)}); g.Ss(document,"touchstart",ct,{passive:!0});g.Ss(document,"touchend",ct,{passive:!0})}}; dt=function(a,b){et[a]||(et[a]=!0,g.kn.Tg(function(){ct();et[a]=!1},b))}; ct=function(){null==g.Ja("_lact",window)&&(dqa(),g.Ja("_lact",window));var a=Date.now();g.Ia("_lact",a,window);-1==g.Ja("_fact",window)&&g.Ia("_fact",a,window);(a=g.Ja("ytglobal.ytUtilActivityCallback_"))&&a()}; ft=function(){var a=g.Ja("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)}; g.lt=function(a,b,c){var d=g.gt();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var k=function(){ht[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)}; try{g.jt[a]?k():g.Sp(k,0)}catch(l){g.Cp(l)}},c); ht[e]=!0;kt[a]||(kt[a]=[]);kt[a].push(e);return e}return 0}; g.mt=function(a){var b=g.gt();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.cc(a,function(c){b.unsubscribeByKey(c);delete ht[c]}))}; g.nt=function(a,b){var c=g.gt();return c?c.publish.apply(c,arguments):!1}; fqa=function(a){var b=g.gt();if(b)if(b.clear(a),a)eqa(a);else for(var c in kt)eqa(c)}; g.gt=function(){return g.C.ytPubsubPubsubInstance}; eqa=function(a){kt[a]&&(a=kt[a],g.cc(a,function(b){ht[b]&&delete ht[b]}),a.length=0)}; gqa=function(){this.B=this.j=this.u=0}; rt=function(){g.P("jspb_with_transport_leader")&&!ot.ytExports.logging.transport.leaderChosen&&(pt=ot.ytExports.logging.transport.leaderChosen=!0,document.addEventListener("FLUSH_REQUEST",function(){qt(void 0,void 0,!0)}))}; hqa=function(a,b){rt();if("log_event"===a.endpoint){tt(a);var c=ut(a),d=vt.get(c)||[];vt.set(c,d);d.push(a.payload);wt(b,d,c)}}; iqa=function(a,b){rt();if("log_event"===a.endpoint){tt(void 0,a);var c=ut(a,!0);if(g.P("jspb_with_transport_leader")&&pt){var d=xt.get(c)||[];xt.set(c,d);ot.ytExports.logging.transport.leaderQueueLength++;d.push(a.payload);wt(b,d,c,!0)}else d=zt.get(c)||[],zt.set(c,d),a=a.payload.toJSON(),d.push(a),wt(b,d,c,!0)}}; wt=function(a,b,c,d){d=void 0===d?!1:d;a&&(At=new a);a=g.yp("tvhtml5_logging_max_batch")||g.yp("web_logging_max_batch")||100;var e=(0,g.Q)(),f=d?Bt.B:Ct.B,k=zt.get(c)||[];g.P("jspb_with_transport_leader")&&(pt&&b.length+k.length>=a||!pt&&ot.ytExports.logging.transport.leaderQueueLength+b.length>=a)||b.length>=a?qt({writeThenSend:!0},g.P("flush_only_full_queue")?c:void 0,d):10<=e-f&&(jqa(d),d?Bt.B=e:Ct.B=e)}; kqa=function(a,b){rt();if("log_event"===a.endpoint){tt(a);var c=ut(a),d=new Map;d.set(c,[a.payload]);b&&(At=new b);return new g.Eg(function(e,f){At&&At.isReady()?Dt(d,e,f,{bypassNetworkless:!0},!0):e()})}}; lqa=function(a,b){rt();if("log_event"===a.endpoint){tt(void 0,a);var c=ut(a,!0),d=new Map,e=new Map;g.P("jspb_with_transport_leader")&&pt?e.set(c,[a.payload]):d.set(c,[a.payload.toJSON()]);b&&(At=new b);return new g.Eg(function(f){At&&At.isReady()?Et(d,e,f,{bypassNetworkless:!0},!0):f()})}}; ut=function(a,b){var c="";if(a.ox)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new tp;c.videoId?d.setVideoId(c.videoId):c.playlistId&&g.Yc(d,2,Ft,c.playlistId);Gt[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),Ht[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c}; qt=function(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.Eg(function(d,e){c?(g.Up(Bt.u),g.Up(Bt.j),Bt.j=0):(g.Up(Ct.u),g.Up(Ct.j),Ct.j=0);if(g.P("jspb_with_transport_leader")&&!pt)document.dispatchEvent(new CustomEvent("FLUSH_REQUEST")),d();else if(At&&At.isReady())if(void 0!==b)if(c){e=new Map;var f=new Map,k=zt.get(b)||[];e.set(b,k);g.P("jspb_with_transport_leader")&&(k=xt.get(b)||[],f.set(b,k));Et(e,f,d,a);g.P("jspb_with_transport_leader")&&xt.delete(b);zt.delete(b)}else f=new Map,k=vt.get(b)|| [],f.set(b,k),Dt(f,d,e,a),vt.delete(b);else c?(Et(zt,xt,d,a),zt.clear(),g.P("jspb_with_transport_leader")&&xt.clear()):(Dt(vt,d,e,a),vt.clear());else jqa(c),d()})}; jqa=function(a){a=void 0===a?!1:a;if(g.P("web_gel_timeout_cap")&&(!a&&!Ct.j||a&&!Bt.j)){var b=g.Sp(function(){qt({writeThenSend:!0},void 0,a)},6E4); a?Bt.j=b:Ct.j=b}g.Up(a?Bt.u:Ct.u);b=g.O("LOGGING_BATCH_TIMEOUT",g.yp("web_gel_debounce_ms",1E4));g.P("shorten_initial_gel_batch_timeout")&&It&&(b=mqa);b=g.Sp(function(){qt({writeThenSend:!0},void 0,a)},b); a?Bt.u=b:Ct.u=b}; Dt=function(a,b,c,d,e){var f=At;d=void 0===d?{}:d;var k=Math.round((0,g.Q)()),l=a.size;a=g.r(a);for(var m=a.next();!m.done;m=a.next()){var n=g.r(m.value);m=n.next().value;var p=n.next().value;n=m;m=g.Fe({context:g.Nq(f.config_||g.Mq())});m.events=p;(p=Ht[n])&&nqa(m,n,p);delete Ht[n];n="visitorOnlyApprovedKey"===n;oqa(m,k,n);pqa(d);p=function(){l--;l||b()}; var q=function(){l--;l||b()}; try{g.Ns(f,"log_event",m,qqa(d,n,p,q,e)),It=!1}catch(t){g.Cp(t),c()}}}; Et=function(a,b,c,d,e){var f=At;d=void 0===d?{}:d;var k=Math.round((0,g.Q)()),l=a.size+b.size,m=new Map([].concat(g.v(a),g.v(b)));m=g.r(m);for(var n=m.next();!n.done;n=m.next()){var p=g.r(n.value).next().value,q=a.get(p),t=b.get(p)||[];n=new up;var u=poa(f.config_||g.Mq());cd(n,Mo,1,u);q=q?rqa(q):[];q=g.r(q);for(u=q.next();!u.done;u=q.next())fd(n,3,rp,u.value);t=g.r(t);for(q=t.next();!q.done;q=t.next())fd(n,3,rp,q.value);(t=Gt[p])&&sqa(n,p,t);delete Gt[p];p="visitorOnlyApprovedKey"===p;tqa(n,k,p); pqa(d);n=kd(n);p=qqa(d,p,function(){ot.ytExports.logging.transport.leaderQueueLength=0;l--;l||c()},function(){ot.ytExports.logging.transport.leaderQueueLength=0; l--;l||c()},e); p.headers={"Content-Type":"application/json+protobuf"};p.postBodyFormat="JSPB";p.postBody=n;g.Ns(f,"log_event","",p);It=!1}}; pqa=function(a){g.P("always_send_and_write")&&(a.writeThenSend=!1)}; qqa=function(a,b,c,d,e){return{retry:!0,onSuccess:c,onError:d,rP:a,ox:b,Rja:!!e,headers:{},postBodyFormat:"",postBody:""}}; oqa=function(a,b,c){a.requestTimeMs=String(b);g.P("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.O("EVENT_ID"))&&(c=uqa(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})}; tqa=function(a,b,c){g.E(a,2,b);if(!c&&(b=g.O("EVENT_ID"))){c=uqa();var d=new sp;g.E(d,1,b);g.E(d,2,c);cd(a,sp,5,d)}}; uqa=function(){var a=g.O("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*vqa/2));a++;a>vqa&&(a=1);wp("BATCH_CLIENT_COUNTER",a);return a}; nqa=function(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]}; sqa=function(a,b,c){if(c.Vg())var d=1;else if(c.getPlaylistId())d=2;else return;cd(a,tp,4,c);a=a.getContext()||new Mo;c=Zc(a,Ko,3)||new Ko;var e=new Jo;e.setToken(b);g.E(e,1,d);fd(c,12,Jo,e);cd(a,Ko,3,c)}; rqa=function(a){for(var b=[],c=0;c>3;switch(e&7){case 0:e=eu(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=eu(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(db)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity}; Pqa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;df&&(c=a.substring(f,e),c=c.replace(xra,""),c=c.replace(yra,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else zra(a,b,c)}; zra=function(a,b,c){c=void 0===c?null:c;var d=Ara(a),e=document.getElementById(d),f=e&&Eqa(e),k=e&&!f;f?b&&b():(b&&(f=g.lt(d,b),b=""+g.Ra(b),Bra[b]=f),k||(e=Cra(a,d,function(){Eqa(e)||(Dqa(e,"loaded","true"),g.nt(d),g.Sp(g.Ta(fqa,d),0))},c)))}; Cra=function(a,b,c,d){d=void 0===d?null:d;var e=g.ig("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)}; e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}}; d&&e.setAttribute("nonce",d);g.Zh(e,g.gf(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e}; Ara=function(a){var b=document.createElement("a");g.Cf(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Sf(a)}; Ru=function(a){var b=g.Da.apply(1,arguments);if(!Pu(a)||b.some(function(d){return!Pu(d)}))throw Error("Only objects may be merged."); b=g.r(b);for(var c=b.next();!c.done;c=b.next())Qu(a,c.value);return a}; Qu=function(a,b){for(var c in b)if(Pu(b[c])){if(c in a&&!Pu(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Qu(a[c],b[c])}else if(Su(b[c])){if(c in a&&!Su(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Dra(a[c],b[c])}else a[c]=b[c];return a}; Dra=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Pu(c)?a.push(Qu({},c)):Su(c)?a.push(Dra([],c)):a.push(c);return a}; Pu=function(a){return"object"===typeof a&&!Array.isArray(a)}; Su=function(a){return"object"===typeof a&&Array.isArray(a)}; Tu=function(a,b,c,d,e,f){g.I.call(this);this.Nb=a;this.wb=b;this.yd=c;this.Na=d;this.u=e;this.j=f}; Gra=function(a,b,c){c.Qv?(Uu(a.Nb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),Era(a.u,b)):Fra(a.j,c.Ym,b.slotId)}; Ira=function(a,b,c,d){var e=a.Na.get().Cf(1);Uu(a.Nb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Hra(a.yd.get(),c,d,e.clientPlaybackNonce,e.bN,e.daiEnabled,e)},b)}; Wu=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.r(b);for(c=b.next();!c.done;c=b.next())if(!Vu(a.ya,c.value))return!1;return!0}; Xu=function(a,b){this.qo=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)}; Kra=function(a){Jra=void 0===a?!1:a}; S=function(a,b,c,d,e){d=void 0===d?{}:d;Jra&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.hr(a);if(a.args)for(var f=g.r(a.args),k=f.next();!k.done;k=f.next())k=k.value,k instanceof Object&&(d=Object.assign({},k,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot: "+b.slotType:"");c&&(d.layout=c?"layout: "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.lu(a)}}; Yu=function(a,b,c,d,e,f,k){g.I.call(this);this.Nb=a;this.yd=b;this.iF=c;this.Da=d;this.j=e;this.Na=f;this.Ba=k}; Zu=function(){this.u=new Map;this.j=new Map;this.B=new Map}; $u=function(a,b){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return g.ru(16)}; av=function(a,b,c){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.ru(16)}; bv=function(a,b){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.ru(16)}; cv=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.j=f}; Lra=function(a,b,c,d){this.B=a;this.Ye=null;this.u=b;this.j=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d}; dv=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.lu(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a}; ev=function(a,b){return b&&b.test(a)?!0:!1}; fv=function(a){return(a=Mra&&Mra.exec(a))?a[0]:""}; gv=function(a){var b=void 0===b?!1:b;return dv(ev(a,Nra),a,b,"Trusted Stream URL")}; g.hv=function(a){var b=void 0===b?!1:b;return dv(ev(a,Ora),a,b,"Trusted Image URL")}; Qra=function(a){var b=void 0===b?!1:b;return dv(ev(a,Pra),a,b,"Trusted Promoted Video Domain URL")}; Sra=function(a){var b=void 0===b?!1:b;return dv(ev(a,Rra),a,b,"Drm Licensor URL")}; Ura=function(a,b){b=void 0===b?!1:b;return dv(ev(a,Tra),a,b,"Captions URL")}; Vra=function(a){a=new g.Ai(a);g.Bi(a,document.location.protocol);g.Ci(a,document.location.hostname);document.location.port&&g.Di(a,document.location.port);return a.toString()}; iv=function(a){a=new g.Ai(a);g.Bi(a,document.location.protocol);return a.toString()}; g.kv=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=Wra++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||jv.AD_MARKER;this.namespace=c.namespace||"";if(a=c.color)a=a.toString(16),this.color="#"+Array(7-a.length).join("0")+a;this.tooltip=c.tooltip;this.icons=c.icons?c.icons.filter(function(d){return g.Sj(d.thumbnails,function(e){return g.hv(e.url)})}):null; this.visible=this.visible;this.style=this.style;this.start=this.start}; Xra=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()}; Yra=function(a,b){switch(a.style){case jv.CHAPTER_MARKER:return b?8:5;case jv.AD_MARKER:return 6;case jv.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; g.lv=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u}; g.mv=function(a){return"crn_"+a}; g.nv=function(a){return"crx_"+a}; ov=function(a,b,c,d,e){g.kv.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.j=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null}; pv=function(a){return"AD_PLACEMENT_KIND_START"==a.j}; Zra=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j}; $ra=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new Nn(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new Nn(Math.max(0,b.B-b.j),0x7ffffffffffff):new Nn(0x7ffffffffffff,0x8000000000000);case "AD_PLACEMENT_KIND_MILLISECONDS":var d=a.adTimeOffset;a=parseInt(d.offsetStartMilliseconds,10);d=parseInt(d.offsetEndMilliseconds,10);-1===d&&(d=b.B);if(c&&(d=a,a=Math.max(0,a-b.j),a==d))break;return new Nn(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d= b.Ye;a=1E3*d.startSecs;if(c){if(ae)return new uv("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={Am:new Nn(a,e),WC:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.vu=new Nn(a,e)}return d;default:return new uv("AdPlacementKind not supported in convertToRange.", {kind:e,adPlacementConfig:a})}}; vv=function(a,b){as.call(this,1,arguments);this.timer=b}; bsa=function(a,b){as.call(this,1,arguments);this.j=a;this.timer=b}; csa=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; dsa=function(a){var b=wv(a);if(b.aft)return b.aft;a=g.O((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=a.length,d=0;d1E5*Math.random()&&(c=new g.hr("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.lu(c)),!0):!1}; Ov=function(a){fsa(a);tsa();a||(g.O("TIMING_ACTION")&&wp("PREVIOUS_ACTION",g.O("TIMING_ACTION")),wp("TIMING_ACTION",""))}; Sv=function(a,b){b=void 0===b?{}:b;Pv(a);Iv(a);Ov(a);Bv(a).useGel=!0;Hv(a||"").info.actionType=a;b.cttAuthInfo&&(Bv(a).cttAuthInfo=b.cttAuthInfo);wp(a+"TIMING_ACTION",a);Qv("_start",b.startTime,a);b={actionType:Jv(a)};var c=g.wu();c&&"UNDEFINED_CSN"!==c&&(b.clientScreenNonce=c);Rv(b,a);Av(!0,a)}; g.Tv=function(a,b,c,d){null!==b&&(Cv(c)[a]=b,(a=ssa(a,b,c))&&Rv(a,c,d))}; Rv=function(a,b,c){if(!g.P("web_csi_via_jspb")||(void 0===c?0:c))c=Hv(b||""),Ru(c.info,a),Ru(Ev(b),a),c=Fv(b),b=Bv(b).cttAuthInfo,Lv().info(a,c,b);else{c=new lp;var d=Object.keys(a);a=Object.values(a);for(var e=0;e=zv()&&0c.duration?d:c},{duration:0}))&&0Hna()?!1:!("function"!==typeof window.fetch||!window.ReadableStream)}; rw=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length}; g.tw=function(a,b){this.id=a;this.Dc=b;this.captionTracks=[];this.j=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"}; uw=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.j=b||0}; g.ww=function(a,b,c,d){return new uw(g.vw[a]||0,g.vw[b]||0,c,d)}; xw=function(a){var b=g.vw.auto;return a.u===b&&a.j===b}; zw=function(a){return yw[a.j||a.u]||"auto"}; Csa=function(a,b){b=g.vw[b];return a.u<=b&&(!a.j||a.j>=b)}; Aw=function(a,b){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;b=g.r(this.j);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.Dc&&!a.has(c.Dc.id)){var d=new g.tw(c.id,c.Dc);a.add(c.Dc.id);this.audioTracks.push(d)}}}; Gsa=function(a,b,c,d,e){var f={},k=new Set,l={};if(Bw(c)){for(var m in c.j)c.j.hasOwnProperty(m)&&(a=c.j[m],l[a.info.j]=[a.info]);return l}for(var n in c.j)if(c.j.hasOwnProperty(n)){m=c.j[n];var p=m.info.Vb(),q=Cw(a,m.info,b,c.isLive,k);!0!==q?f[p]=q:(l[m.info.j]=l[m.info.j]||[],l[m.info.j].push(m.info))}e&&(d(f),d({bfflt:Dw(l)}));for(var t in l)l.hasOwnProperty(t)&&(c=t,l[c]&&l[c][0].isVideo()&&(l[c]=Dsa(a,l[c]),l[c]=Esa(l[c])));c=g.r(k.values());for(k=c.next();!k.done;k=c.next())(k=b.u.get(k.value))&& --k.cR;b=g.oe(l,function(u){return!!u.length}); e&&d({aftflt:Dw(l)});a.sb=Fsa(b,a);return b}; Cw=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?new Set:e;if(""===b.j)return"unkn";if(("304"===b.Vb()||"266"===b.Vb())&&a.Ya)return"blk2khfr";if(a.J&&b.video&&b.video.j>a.J)return"max"+a.J;if(a.P&&b.video&&b.video.jm&&(q=d));"9"===q&&l.h&&(d=Jw(l["9"]),Jw(l.h)>1.5*d&&(q="h"));a.Gb&&c.isLive&&"("===q&&l.H&&1440>Jw(l["("])&&(q="H");k&&e({vfmly:Gw(q)});a=l[q];if(!a.length)return k&&e({novfmly:Gw(q)}),bq();Iw(a, b);return cq(new Aw(a,b))}; Iw=function(a,b,c){c=void 0===c?[]:c;g.Zb(a,function(d,e){var f=e.video.height*e.video.width-d.video.height*d.video.width;if(!f&&c&&0b&&(a=g.Cl(a,function(c){return 32=c[0]&&((0,c[10])(c[new Date("Thursday 01 January 1970 00:01:08 UTC")/1E3],c[35]),c[46])(c[7],c[6])===(0,c[21])(c[72],c[71]),2=c[28]&&(0,c[46])(c[26])}catch(d){(0,c[69])((0,c[45])(c[-63433- -62*Math.pow(4,5)],c[65]),c[70],c[16],c[59]),(0,c[69])((0,c[45])(c[51], c[17]),c[67],c[26],c[47],(0,c[new Date("1969-12-31T16:00:52.000-08:00")/1E3])()),(0,c[57])(c[26],c[20])}try{5>=c[56]&&(0,c[38])((0,c[39])((0,c[34])(c[27],c[13]),c[62],(0,c[51])(c[45],c[2]),c[20]),c[63],(0,c[39])(c[7],c[15]),c[54],c[Math.pow(6,3)%5- -77],c[7])&((0,c[39])(c[49],c[58]),c[54])(c[57],c[53])^(0,c[28])(c[70],c[20]),c[22]<=21868-Math.pow(8,5)- -10903&&((0,c[6])(c[64],(0,c[39])(c[7],c[12]),(0,c[54])(c[18],c[53]),(0,c[51])(c[45],c[9]),c[32046+Math.pow(7,2)-32053],c[7]),c[46])(c[14],c[67]), c[55]>17*Math.pow(5,5)-53122&&((0,c[70])((0,c[35])(c[54],c[31]),c[2680+-97*Math.pow(3,3)],c[65],c[21]),(((((0,c[62])(((0,c[27])(c[54],c[Math.pow(8,5)%452-218]),c[73])(c[Math.pow(new Date("12/31/1969 16:00:05 PST")/1E3,2)- -14060+-14040],c[7]),c[23],c[65],c[46],(0,c[8])()),c[13])(c[15],c[14]),c[1])(c[69],c[41]),c[24])(c[69]),c[56])(c[61],c[67]),c[57])((0,c[4])((0,c[9])(c[64],c[new Date("Wednesday 31 December 1969 19:01:11 CDT")/1E3]),c[Math.pow(5,2)-46284+46291],(0,c[81])(c[15]),c[25],c[-56*Math.pow(1, 5)- -96]),c[21],c[11],c[41])}catch(d){((0,c[80])((0,c[82])(c[7],c[34],(0,c[61])()),c[9],c[40],c[63]),c[81])(c[7])}}catch(d){return"enh_exp_except_1JUBq-r-_w8_"+a}return b.join("")}; Ssa=function(a){a=a.split("");Kw.CU(a,6);Kw.CU(a,21);Kw.Ty(a,76);Kw.UD(a,2);Kw.Ty(a,30);Kw.UD(a,2);Kw.CU(a,69);Kw.Ty(a,49);Kw.UD(a,2);return a.join("")}; g.Lw=function(a,b){this.u=a;this.D=void 0===b?!1:b;this.C=this.path=this.B="";this.j={};this.url=""}; Usa=function(a){Tsa(a,Mw).length||Usa(a)}; Nw=function(a){a.url||(a.url=Vsa(a));return a.url}; Pw=function(a){Ow(a);return a.C}; Qw=function(a){return a.u?eb(a.u,"local"):"local"===a.B}; Wsa=function(a){Ow(a);return g.qe(a.j,function(b){return null!==b})}; Rw=function(a){Ow(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1a.getLastSegmentNumber())a.segments=[];else{var c=Ib(a.segments,function(d){return d.Ha>=b},a); 0c&&(c=a.totalLength-b);a.focus(b);if(!Zw(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.j[a.u].length-e);for(var f=0,k=d;k<=a.u;k++)e.set(a.j[k],f),f+=a.j[k].length;a.j.splice(d,a.u-d+1,e);Yw(a);a.focus(b)}d=a.j[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)}; $w=function(a,b,c){a=cta(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}; dta=function(a){a=$w(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;ce&&bf)fx[e++]=f;else{if(224>f)f=(f&31)<<6|a[b++]&63;else if(240>f)f=(f&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(1024===e+1){--b;break}f=(f&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;f-=65536;fx[e++]=55296|f>>10;f=56320|f&1023}fx[e++]=f}}f=String.fromCharCode.apply(String,fx); 1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")}; ix=function(a,b){var c;if(null==(c=hx)?0:c.encodeInto)return b=hx.encodeInto(a,b),b.reade?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296===(e&64512)&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return c}; jx=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.j=(this.u=e)?0:8;this.dataOffset=this.offset+this.j}; kx=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b}; lx=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b}; mx=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b}; nx=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b}; ox=function(a){var b=a.data;var c=a.offset+a.j;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.j+=8;return b}; px=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;ca.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-bc;c++){var d=a.getInt8(b+c);if(97>d||122=a.u.byteLength}; Kx=function(a,b,c){var d=new Ex(c);if(!Gx(d,a))return!1;d=Hx(d);if(!Ix(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.j;var e=Jx(d,!0);d=a+(d.start+d.j-b)+e;d=9b;b++)c=256*c+Px(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+Px(a),d*=128;return b?c-d:c}; Mx=function(a){var b=Jx(a,!0);a.j+=b}; yta=function(a){if(!Ix(a,440786851,!0))return null;var b=a.j;Jx(a,!1);var c=Jx(a,!0)+a.j-b;a.j=b+c;if(!Ix(a,408125543,!1))return null;Jx(a,!0);if(!Ix(a,357149030,!0))return null;var d=a.j;Jx(a,!1);var e=Jx(a,!0)+a.j-d;a.j=d+e;if(!Ix(a,374648427,!0))return null;var f=a.j;Jx(a,!1);var k=Jx(a,!0)+a.j-f,l=new Uint8Array(c+12+e+k),m=new DataView(l.buffer);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.u.buffer, a.u.byteOffset+d,e),c+12);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+f,k),c+12+e);return l}; Qx=function(a){var b=a.j;a.j=0;var c=1E6;Gx(a,[408125543,357149030,2807729])&&(c=Lx(a));a.j=b;return c}; zta=function(a,b){var c=a.j;a.j=0;if(160!==a.u.getUint8(a.j)&&!Rx(a)||!Ix(a,160))return a.j=c,NaN;Jx(a,!0);var d=a.j;if(!Ix(a,161))return a.j=c,NaN;Jx(a,!0);Px(a);var e=Px(a)<<8|Px(a);a.j=d;if(!Ix(a,155))return a.j=c,NaN;d=Lx(a);a.j=c;return(e+d)*b/1E9}; Rx=function(a){if(!Ata(a)||!Ix(a,524531317))return!1;Jx(a,!0);return!0}; Ata=function(a){if(a.Ru()){if(!Ix(a,408125543))return!1;Jx(a,!0)}return!0}; Gx=function(a,b){for(var c=0;cd.timedOut&&1>d.j)return!1;d=d.timedOut+d.j;a=Wx(a,b);c=Vx(c,Pw(a));return c.timedOut+c.j+ +(b.Jl&&!c.C)b.Rg?1E3*Math.pow(b.di,c-b.Rg):0;return 0===b?!0:a.J+b<(0,g.Q)()}; Yx=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.D=!1;this.J=0;this.C=this.B=null;this.info=b;this.u=new Hta(a)}; Zx=function(a,b,c,d){var e=g.r(a.info.id.split(";")),f=e.next().value;e=e.next().value;return(d?(c||"")+";":"")+f+";"+(b?0:a.info.lastModified)+";"+(void 0===e?"":e)}; $x=function(a,b){this.start=a;this.end=b;this.length=b-a+1}; ay=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new $x(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0=b.range.start+b.yb&&a.range.start+a.yb+a.u<=b.range.start+b.yb+b.u:a.Ha===b.Ha&&a.yb>=b.yb&&(a.yb+a.u<=b.yb+b.u||b.Vd)}; Sta=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.Hf()?(a=a.j.Dv(a),Wk(a,function(c){return Sta(c,b)})):a.Ha===b.Ha&&!!b.u&&b.yb+b.u>a.yb&&b.yb+b.u<=a.yb+a.u}; ky=function(a,b){var c=b.Ha;a.D="updateWithSegmentInfo";a.Ha=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,Lta(a)}; ly=function(a,b){this.j=a;this.B=null;this.D=this.Df=NaN;this.I=this.requestId=null;this.u=a[0].j.u;this.C=b||"";if(this.j[0].range&&0=c.B&&b<=c.C)return!0;return!1}; qy=function(a,b,c,d,e,f){f=void 0===f?0:f;Yx.call(this,a,b,d,void 0);this.I=c;this.bk=f;this.index=e||new Uw}; Yta=function(a,b,c,d,e){this.Ha=a;this.startSecs=b;this.durationSecs=c;this.j=d||NaN;this.u=e||NaN}; ry=function(a,b,c){for(;a;a=a.parentNode)if(a.attributes&&(!c||a.nodeName===c)){var d=a.getAttribute(b);if(d)return d}return""}; sy=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0=k)if(k=b.shift(),f=(f=l.exec(k))?+f[1]/1E3:0)k=(k=m.exec(k))?+k[1]:0,k+=1;else return;c.push(new Tw(n,e,f,NaN,"sq/"+(n+1)));e+=f;k--}a.index.append(c)}}; Ay=function(){this.count=0;this.B=1;this.u=!1;this.offsets=new Float64Array(128);this.j=new Float64Array(128)}; By=function(a){a.offsets.lengthe)b=!1;else{for(d=e-1;0<=d;d--)c.u.setUint8(c.j+d,b&255),b>>>=8;c.j=a;b=!0}else b=!1;return b}; Fy=function(a,b){b=void 0===b?!1:b;var c=pua(a);a=b?0:a.info.I;return c||a}; pua=function(a){g.Ey(a.info.j.info)||a.info.j.info.Oe();if(a.u&&6===a.info.type)return a.u.bk;if(g.Ey(a.info.j.info)){var b=Dy(a);var c=0;b=g.Dx(b,1936286840);b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=qta(d.value),c+=d.IJ[0]/d.NJ;c=c||NaN;if(!(0<=c))a:{c=Dy(a);b=a.info.j.j;for(var e=d=0,f=0;yx(c,d);){var k=zx(c,d);if(1836476516===k.type)e=g.vx(k);else if(1836019558===k.type){!e&&b&&(e=wx(b));if(!e){c=NaN;break a}var l=xx(k.data,k.dataOffset,1953653094),m=e,n=xx(l.data,l.dataOffset,1952868452); l=xx(l.data,l.dataOffset,1953658222);var p=mx(n);mx(n);p&2&&mx(n);n=p&8?mx(n):0;var q=mx(l),t=q&1;p=q&4;var u=q&256,x=q&512,y=q&1024;q&=2048;var z=nx(l);t&&mx(l);p&&mx(l);for(var D=t=0;D=c+d)break}e.length||g.R(new g.hr("b189619593",""+b,""+c,""+d));return new ly(e)}; Iy=function(a,b,c,d){this.sampleRate=a||0;this.numChannels=b||0;this.spatialAudioType=c||0;this.itag=d||""}; tua=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d}; Ky=function(a,b,c,d,e,f,k,l,m){this.width=a;this.height=b;this.quality=f||Jy(a,b);this.j=g.vw[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&0!==d&&1!==d?0:e;this.projectionType=d?2===d&&2===e?3:d:0;(a=k)||(a=g.vw[this.quality],0===a?a="Autom\u00e1tico":(b=this.fps,c=this.projectionType,a=a.toString()+(2===c||3===c||4===c?"s":"p")+(55=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"}; Oy=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0=b)return c}catch(d){}return-1}; fz=function(a,b){return 0<=ez(a,b)}; yua=function(a,b){if(!a)return NaN;b=ez(a,b);return 0<=b?a.start(b):NaN}; gz=function(a,b){if(!a)return NaN;b=ez(a,b);return 0<=b?a.end(b):NaN}; hz=function(a){return a&&a.length?a.end(a.length-1):NaN}; zua=function(a,b){a=gz(a,b);return 0<=a?a-b:0}; iz=function(a,b,c){for(var d=[],e=[],f=0;fc||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return cz(d,e)}; jz=function(a,b,c,d){g.Ut.call(this);var e=this;this.Md=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.jO={error:function(){!e.isDisposed()&&e.isActive&&e.W("error",e)}, updateend:function(){!e.isDisposed()&&e.isActive&&e.W("updateend",e)}}; g.Vt(this.Md,this.jO);this.Uz=this.isActive}; kz=function(a,b,c,d,e){g.Ut.call(this);var f=this;this.Xb=a;this.xf=b;this.id=c;this.containerType=d;this.isVideo=e;this.MO=this.dC=this.Be=null;this.appendWindowStart=this.timestampOffset=0;this.IM=cz([],[]);this.HA=!1;this.sz=Aua?[]:void 0;this.Lc=function(l){return f.W(l.type,f)}; var k;if(null==(k=this.Xb)?0:k.addEventListener)this.Xb.addEventListener("updateend",this.Lc),this.Xb.addEventListener("error",this.Lc)}; lz=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; mz=function(a,b){this.j=a;this.u=void 0===b?!1:b;this.B=!1}; nz=function(a,b,c){c=void 0===c?!1:c;g.I.call(this);this.mediaSource=a;this.xf=b;this.isView=c;this.B=0;this.callback=null;this.events=new g.Vy(this);g.J(this,this.events);this.Dy=new mz(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.xf.webkitMediaSourceURL,!0);a=this.mediaSource||this.xf;St(this.events,a,["sourceopen","webkitsourceopen"],this.E_);St(this.events,a,["sourceclose","webkitsourceclose"],this.D_)}; Bua=function(){return!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; Cua=function(a,b){oz(a)?g.zg(function(){b(a)}):a.callback=b}; oz=function(a){try{return"open"===pz(a)}catch(b){return!1}}; pz=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.xf.webkitSourceState){case a.xf.SOURCE_OPEN:return"open";case a.xf.SOURCE_ENDED:return"ended";default:return"closed"}}; qz=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)}; Dua=function(a,b,c,d){if(!a.j||!a.u)return null;var e=a.j.isView()?a.j.Md:a.j,f=a.u.isView()?a.u.Md:a.u,k=new nz(a.mediaSource,a.xf,!0);k.Dy=a.Dy;e=new jz(e,b,c,d);b=new jz(f,b,c,d);k.j=e;k.u=b;g.J(k,e);g.J(k,b);oz(a)||a.j.nD(a.j.pd());return k}; Eua=function(a,b){return rz(function(c,d){return g.$p(c,d,4,1E3)},a,b)}; g.Fua=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=ex(new Uint8Array(a.response))):b=a.responseText;return!b||2048a.U&&a.isLivePlayback;a.Ga=Number(ry(c,wz(a,"earliestMediaSequence")))||0;if(d=Date.parse($ta(ry(c,wz(a,"mpdResponseTime")))))a.ea=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Sj(c.getElementsByTagName("Period"),a.l0,a);a.state=2;a.W("loaded");Wua(a)}return a}).Ii(function(c){if(c instanceof Yp){var d=c.xhr; a.Z=d.status}a.state=3;a.W("loaderror");return Hg(d)})}; Yua=function(a,b,c){return Xua(new sz(a,b,c),a)}; xz=function(a){return a.isLive&&(0,g.Q)()-a.xa>=a.U}; Wua=function(a){var b=a.U;isFinite(b)&&(xz(a)?a.refresh():(b=Math.max(0,a.xa+b-(0,g.Q)()),a.B||(a.B=new g.K(a.refresh,b,a),g.J(a,a.B)),a.B.start(b)))}; Zua=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0}; yz=function(a){return a.I?a.I-(a.P||a.timestampOffset):0}; zz=function(a){return a.C?a.C-(a.P||a.timestampOffset):0}; Az=function(a){if(!isNaN(a.ma))return a.ma;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()){b=0;for(c=d.getFirstSegmentNumber();c<=d.getLastSegmentNumber();c++)b+=d.getDuration(c);b/=d.getNumberOfSegments();b=.5*Math.round(b/.5);d.getNumberOfSegments()>a.Pa&&(a.ma=b);return b}if(a.isLive&&(d=b[c],d.bk))return d.bk}return NaN}; $ua=function(a,b){a=pca(a.j,function(d){return d.index.isLoaded()}); if(!a)return NaN;a=a.index;var c=a.getSegmentNumberForTime(b);return a.getStartTime(c)===b?b:c(0,g.Q)()-1E3*a))return 0;a=g.Lu("yt-player-quality");if("string"===typeof a){if(a=g.vw[a],0a.previousQuality)return 1;if(a.quality=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;Ina()&&(b.isArm=1,a=240);if(c){var e,f;if(d=null==(e=c.videoInfos.find(function(k){return Ry(k)}))?void 0:null==(f=e.u)?void 0:f.powerEfficient)a=8192,b.isEfficient=1; c=c.videoInfos[0].video;e=Math.min(Fz("1",c.fps),Fz("1",30));b.perfCap=e;a=Math.min(a,e);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=Fz("1",30),b.perfCap30=c,a=Math.min(a,c),c=Fz("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a}; Iz=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.C=c;this.experiments=d;this.j={};this.u=this.keySystemAccess=null;this.I=this.J=-1;this.B=null;this.D="";this.P=!!d&&d.bb("edge_nonprefixed_eme");this.D=d?g.Hz(d,"html5_hdcp_probing_stream_url"):""}; Kz=function(a){return a.P?!1:!a.keySystemAccess&&!!Jz()&&"com.microsoft.playready"===a.keySystem}; Lz=function(a){return"com.microsoft.playready"===a.keySystem}; Mz=function(a){return!a.keySystemAccess&&!!Jz()&&"com.apple.fps.1_0"===a.keySystem}; Nz=function(a){return"com.youtube.fairplay"===a.keySystem}; g.Oz=function(a){return"fairplay"===a.flavor}; Jz=function(){var a=window,b=a.MSMediaKeys;mq()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null}; Qz=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.Zy&&!g.jq())return Pn("45");if(g.Nr||g.mc)return a.bb("edge_nonprefixed_eme");if(g.pw)return Pn("47");if(g.pr){if(a.bb("html5_enable_safari_fairplay"))return!1;if(a=g.Pz(a,"html5_safari_desktop_eme_min_version"))return Pn(a)}return!0}; rva=function(a,b,c,d){var e=kq(),f=(c=e||c&&mq())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&(f.unshift("com.youtube.widevine.l3"),e&&d&&f.unshift("com.youtube.widevine.forcehdcp"));return c?f:a?[].concat(g.v(f),g.v(Rz.playready)):[].concat(g.v(Rz.playready),g.v(f))}; Sz=function(a,b,c,d,e){d=void 0===d?!1:d;g.I.call(this);this.experiments=b;this.useCobaltWidevine=d;this.qa=e;this.j=[];this.u={};this.C={};this.callback=null;this.D=!1;this.B=[];this.initialize(a,!c)}; tva=function(a,b){a.callback=b;a.B=[];Qz(a.experiments)?Tz(a):sva(a)}; Tz=function(a){if(!a.isDisposed())if(0===a.j.length)a.callback(a.B);else{var b=a.j[0],c=a.u[b],d=uva(a,c);navigator.requestMediaKeySystemAccess(b,d).then(Dp(function(e){if(!a.isDisposed()){c.keySystemAccess=e;if(Lz(c)){e=Wy();for(var f=g.r(Object.keys(a.C[c.flavor])),k=f.next();!k.done;k=f.next())k=k.value,c.j[k]=!!e.canPlayType(k)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.r(e.audioCapabilities),k=f.next();!k.done;k=f.next())vva(a,c,k.value);if(e.videoCapabilities)for(e= g.r(e.videoCapabilities),f=e.next();!f.done;f=e.next())vva(a,c,f.value)}a.B.push(c);a.useCobaltWidevine?(a.j.shift(),Tz(a)):a.callback(a.B)}}),Dp(function(){a.D=!a.D&&"widevine"===a.u[a.j[0]].flavor; a.D||a.j.shift();Tz(a)}))}}; vva=function(a,b,c){a.K("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0}; uva=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};Lz(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.r(Object.keys(a.C[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),k=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==b.flavor||a.D?k.push({contentType:e}):f?k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.Zy&&hq("windows nt")&&!a.K("html5_drm_enable_moho")||k.push({contentType:e,robustness:"HW_SECURE_ALL"}), f=e,a.K("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),k.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.K("html5_query_sw_secure_crypto_for_android")&&(sq()||iq())&&(a.qa("swcrypto",{}),k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]}; sva=function(a){if(Jz()&&g.pr)a.B.push(new Iz("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=wva(),c=g.Jb(a.j,function(d){var e=a.u[d],f=!1,k=!1,l;for(l in a.C[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),k=k||0===l.indexOf("video/"));return f&&k}); c&&a.B.push(a.u[c]);a.j=[]}a.callback(a.B)}; wva=function(){var a=Jz();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=Wy(); return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}}; xva=function(){this.j=0}; yva=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Fp(b||"","&");a={};b=g.r(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a}; g.Pz=function(a,b){return Number(a.flags[b])||0}; g.Hz=function(a,b){return(a=a.flags[b])?a.toString():""}; Uz=function(a,b,c){this.experiments=a;this.Z=b;this.ea=void 0===c?!1:c;this.J=!!g.Ja("cast.receiver.platform.canDisplayType");this.I={};this.U=!1;this.u=new Map;this.P=!0;this.D=!this.experiments.bb("html5_disable_protected_hdr");this.j=this.B=!1;this.V=this.experiments.bb("html5_disable_vp9_encrypted");a=g.Ja("cast.receiver.platform.getValue");this.C=!this.J&&a&&a("max-video-resolution-vpx")||null}; Jsa=function(a,b,c){c=void 0===c?1:c;var d=b.Vb();if("0"===d)return!0;var e=b.mimeType;if(b.Oe()&&kq()&&a.experiments.bb("html5_appletv_disable_vp9"))return"dwebm";if(Ry(b)&&a.U)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(Ew(a,Fw.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||24=f&&f>d&&!0===Jsa(a,e,c)&&(d=f)}return d}; g.Wz=function(a,b){b=void 0===b?!1:b;return Vz(a)&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(Wy(),"application/x-mpegURL")?!0:!1}; Ew=function(a,b){b.name in a.I||(a.I[b.name]=Ava(a,b));return a.I[b.name]}; Ava=function(a,b){if(a.C)return!!a.C[b.name];if(b===Fw.BITRATE&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===Fw.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.invalid);if(b.video){var c='video/webm; codecs="vp9"';a.isTypeSupported(c)||(c='video/mp4; codecs="avc1.4d401e"')}else c='audio/webm; codecs="opus"', a.isTypeSupported(c)||(c='audio/mp4; codecs="mp4a.40.2"');return a.isTypeSupported(c+"; "+b.name+"="+b.valid)&&!a.isTypeSupported(c+"; "+b.name+"="+b.invalid)}; Bva=function(a){a.P=!1;a.j=!0}; Cva=function(a){a.B||(a.B=!0,a.j=!0)}; Dva=function(a,b){var c=0;a.u.has(b)&&(c=a.u.get(b).uW);a.u.set(b,{uW:c+1,cR:Math.pow(2,c+1)});a.j=!0}; Fva=function(a){return Eva.then(a)}; Xz=function(){var a=this;this.queue=[];this.C=0;this.j=this.u=!1;this.B=function(){a.u=!1;Gva(a)}}; Iva=function(a){a.j||(Hva(function(){Gva(a)}),a.j=!0)}; Gva=function(a){a.j=!1;if(a.queue.length&&!(a.u&&5>=a.queue.length&&15E3>(0,g.Q)()-a.C)){var b=a.queue.shift(),c=b.url;b=b.options;b.timeout=1E4;g.$p(c,b,3,1E3).then(a.B,a.B);a.u=!0;a.C=(0,g.Q)();5b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);$z=new Uint8Array(256);aA=Zz(256);bA=Zz(256);cA=Zz(256);dA=Zz(256);for(var f=0;256>f;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;$z[f]=e;b=e<<1^(e>>7&&283);var k=b^e;aA[f]=b<<24|e<<16|e<<8|k;bA[f]=k<<24|aA[f]>>>8;cA[f]=e<<24|bA[f]>>>8;dA[f]=e<<24|cA[f]>>>8}Jva=!0}e=Zz(44);for(c=0;4>c;c++)e[c]= a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;44>c;c++)a=e[c-1],c%4||(a=($z[a>>16&255]^d)<<24|$z[a>>8&255]<<16|$z[a&255]<<8|$z[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e}; Kva=function(a,b){for(var c=0;4>c;c++)a.counter[c]=b[4*c]<<24|b[4*c+1]<<16|b[4*c+2]<<8|b[4*c+3];a.j=16}; Lva=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],k=3;0<=k&&!(a.counter[k]=-~a.counter[k]);k--);for(var l,m,n=4;40>n;)k=aA[c>>>24]^bA[d>>16&255]^cA[e>>8&255]^dA[f&255]^b[n++],l=aA[d>>>24]^bA[e>>16&255]^cA[f>>8&255]^dA[c&255]^b[n++],m=aA[e>>>24]^bA[f>>16&255]^cA[c>>8&255]^dA[d&255]^b[n++],f=aA[f>>>24]^bA[c>>16&255]^cA[d>>8&255]^dA[e&255]^b[n++],c=k,d=l,e=m;a=a.u;k=b[40];a[0]=$z[c>>>24]^k>>>24;a[1]=$z[d>>16&255]^k>>16&255;a[2]=$z[e>>8&255]^ k>>8&255;a[3]=$z[f&255]^k&255;k=b[41];a[4]=$z[d>>>24]^k>>>24;a[5]=$z[e>>16&255]^k>>16&255;a[6]=$z[f>>8&255]^k>>8&255;a[7]=$z[c&255]^k&255;k=b[42];a[8]=$z[e>>>24]^k>>>24;a[9]=$z[f>>16&255]^k>>16&255;a[10]=$z[c>>8&255]^k>>8&255;a[11]=$z[d&255]^k&255;k=b[43];a[12]=$z[f>>>24]^k>>>24;a[13]=$z[c>>16&255]^k>>16&255;a[14]=$z[d>>8&255]^k>>8&255;a[15]=$z[e&255]^k&255}; hA=function(){if(!fA&&!g.Nr){if(gA)return gA;var a;gA=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=gA)?0:b.importKey)&&(null==(c=gA)?0:c.sign)&&(null==(d=gA)?0:d.encrypt))return gA;gA=void 0}}; g.iA=function(a){this.C=a}; g.jA=function(a){this.u=a}; kA=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.I=new Uint8Array(64);this.u=0;this.D.set(a);this.B.set(a);for(a=0;64>a;a++)this.D[a]^=92,this.B[a]^=54;this.reset()}; Mva=function(a,b,c){for(var d=a.J,e=a.j[0],f=a.j[1],k=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],t,u,x,y=0;64>y;)16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[y-2],u=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),d[y]=x),t=q+lA[y]+x+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),u=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&k^f&k),q=t+u,l+=t,y++,16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t= d[y-2],u=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),d[y]=x),t=p+lA[y]+x+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),u=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=t+u,k+=t,y++,16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[y-2],u=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),d[y]=x),t=n+lA[y]+x+((k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7))+(k&l^ ~k&m),u=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=t+u,f+=t,y++,16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[y-2],u=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),d[y]=x),t=m+lA[y]+x+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&k^~f&l),u=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),x=q,q=l,l=x,x=p,p=k,k=x,x=n,n=f,f=x,m=e+t,e=t+u,y++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=k+a.j[2]|0;a.j[3]= l+a.j[3]|0;a.j[4]=m+a.j[4]|0;a.j[5]=n+a.j[5]|0;a.j[6]=p+a.j[6]|0;a.j[7]=q+a.j[7]|0}; Ova=function(a){var b=new Uint8Array(32),c=64-a.u;55f;f++){var k=e%256;d[c-f]=k;e=(e-k)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.j[c]>>>24,b[4*c+1]=a.j[c]>>>16&255,b[4*c+2]=a.j[c]>>>8&255,b[4*c+3]=a.j[c]&255;Nva(a);return b}; Nva=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.J=[];a.J.length=64;a.C=0;a.u=0}; Pva=function(a){this.j=a}; Qva=function(a,b,c){a=new kA(a.j);a.update(b);a.update(c);b=Ova(a);a.update(a.D);a.update(b);b=Ova(a);a.reset();return b}; Rva=function(a){this.u=a}; Sva=function(a,b,c,d){var e,f,k,l;return g.B(function(m){switch(m.j){case 1:if(a.j){m.Oa(2);break}e=a;return g.A(m,d.importKey("raw",a.u,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:e.j=m.u;case 2:return f=new Uint8Array(b.length+c.length),f.set(b),f.set(c,b.length),k={name:"HMAC",hash:"SHA-256"},g.A(m,d.sign(k,a.j,f),4);case 4:return l=m.u,m.return(new Uint8Array(l))}})}; Tva=function(a,b,c){a.B||(a.B=new Pva(a.u));return Qva(a.B,b,c)}; Uva=function(a,b,c){var d,e;return g.B(function(f){if(1==f.j){d=hA();if(!d)return f.return(Tva(a,b,c));g.wa(f,3);return g.A(f,Sva(a,b,c,d),5)}if(3!=f.j)return f.return(f.u);e=g.ya(f);g.lu(e);fA=!0;return f.return(Tva(a,b,c))})}; nA=function(){this.B=this.j=0;this.u=Array.from({length:mA.length}).fill(0)}; Vva=function(){}; Wva=function(a){this.name=a;this.startTimeMs=(0,g.Q)();this.j=!1}; Xva=function(){this.profiles=new Vva}; oA=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new nA),a.profiles[b].Jg(c,d))}; pA=function(){}; qA=function(){g.iA.apply(this,arguments)}; rA=function(){g.jA.apply(this,arguments)}; Yva=function(a,b){this.encryptedClientKey=b;this.j=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)}; Zva=function(a){a.u||(a.u=new qA(a.j));return a.u}; sA=function(a){try{return nc(a)}catch(b){return null}}; $va=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?sA(b.clientKey):null;var c=b.encryptedClientKey?sA(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.Q)():null;a&&c&&d&&(this.j=new Yva(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=sA(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}}; tA=function(a){this.j=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)}; uA=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.u=!1;this.C=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;aNumber(d.get("dhmu",e.toString())));this.Hl=e;this.xa=bz();this.Um=g.HA;this.Wj=xq(!1,b?b.embedOptOutDeprecation:a.opt_out_deprecation);this.Oh=!(!b||!b.embedsEnablePfpImaIntegration|| this.K("embeds_pfp_ima_integration_killswitch"));this.Z=!!((null==b?0:b.embedsEnableAppendUtmParams)&&this.K("embeds_web_enable_utm_params"));this.pfpChazalUi=this.Oh||xq(!1,(b?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.K("embeds_pfp_chazal_ui_killswitch"));var k;b?void 0!==b.hideInfo&&(k=!b.hideInfo):k=a.showinfo;this.ll=g.IA(this)&&!this.Wj||xq(!JA(this)&&!KA(this)&&!this.D,k);this.dk=b?!!b.mobileIphoneSupportsInlinePlayback:xq(!1,a.playsinline);k=this.isMobile&&LA&&null!=MA&&0=MA;e=b?b.useNativeControls: a.use_native_controls;this.I=g.IA(this)&&this.isMobile;d=this.isMobile&&!this.I;e=NA(this)||!k&&xq(d,e)?"3":"1";d=b?b.controlsType:a.controls;this.controlsType="0"!==d&&0!==d?e:"0";this.Ue=this.isMobile;this.color=yq("red",b?b.progressBarColor:a.color,mwa);this.Sm="3"===this.controlsType||xq(!1,b?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.dc=!this.j;this.ol=(e=!this.dc&&!KA(this)&&!this.P&&!this.D&&!JA(this))&&!this.Sm&&"1"===this.controlsType;this.Kc=g.OA(this)&&e&&"0"=== this.controlsType&&!this.ol;this.Xm=this.Tm=k;this.lc=("3"===this.controlsType||this.isMobile||xq(!1,a.use_media_volume))&&!this.I;this.rl=PA&&!g.ic(601)?!1:!0;this.Gl=this.j||!1;this.Ge=KA(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=Aq("",b?b.widgetReferrer:a.widget_referrer);var l;b?b.disableCastApi&&(l=!1):l=a.enablecastapi;l=!this.B||xq(!0,l);k=!0;b&&b.disableMdxCast&&(k=!1);this.sb=this.K("enable_cast_for_web_unplugged")&&g.QA(this)&&k||this.K("enable_cast_on_music_web")&& g.RA(this)&&k||l&&k&&"1"===this.controlsType&&!this.isMobile&&(KA(this)||g.OA(this)||g.SA(this))&&!this.isMusic();this.Wm=$y()||az();l=b?!!b.supportsAutoplayOverride:xq(!1,a.autoplayoverride);this.di=!this.isMobile&&!hq("nintendo wiiu")&&!hq("nintendo 3ds")||l;l=b?!!b.enableMutedAutoplay:xq(!1,a.mutedautoplay);k=this.K("embeds_enable_muted_autoplay")&&g.IA(this);this.Te=l&&k&&this.xa&&!NA(this);l=(KA(this)||JA(this))&&"blazer"===this.playerStyle;this.Ph=b?!!b.disableFullscreen:!xq(!0,a.fs);this.Za= !this.Ph&&(l||g.Nt());this.Fj=this.K("uniplayer_block_pip")&&(iq()&&Pn(58)&&!sq()||pq);l=g.IA(this)&&!this.Wj;var m;b?void 0!==b.disableRelatedVideos&&(m=!b.disableRelatedVideos):m=a.rel;this.Gc=l||xq(!this.D,m);this.fl=xq(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.J=sq()&&0=MA?"_top":"_blank";this.Se=g.SA(this);this.Zh=xq("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":m="bl";break;case "gmail":m="gm";break;case "gac":m="ga"; break;case "books":m="gb";break;case "docs":m="gd";break;case "duo":m="gu";break;case "google-live":m="gl";break;case "google-one":m="go";break;case "play":m="gp";break;case "chat":m="hc";break;case "hangouts-meet":m="hm";break;case "photos-edu":case "picasaweb":m="pw";break;default:m="yt"}this.Ga=m;this.authUser=Aq("",b?b.authorizedUserIndex:a.authuser);this.xe=g.IA(this)&&(this.Sa||!xla()||this.Uj);var n;b?void 0!==b.disableWatchLater&&(n=!b.disableWatchLater):n=a.showwatchlater;this.wl=((m=!this.xe)|| !!this.authUser&&m)&&xq(!this.P,this.B?n:void 0);this.Rg=b?b.isMobileDevice||!!b.disableKeyboardControls:xq(!1,a.disablekb);this.loop=xq(!1,a.loop);this.pageId=Aq("",!this.K("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.Vm=xq(!0,a.canplaylive);this.Gb=xq(!1,a.livemonitor);this.disableSharing=xq(this.D,b?b.disableSharing:a.ss);(n=b&&this.K("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(m=n.split("x"),2!==m.length?n=null: (n=Number(m[0]),m=Number(m[1]),n=isNaN(n)||isNaN(m)||0>=n*m?null:new g.Lf(n,m))):n=null;this.lk=n;this.mute=b?!!b.startMuted:xq(!1,a.mute);this.storeUserVolume=!this.mute&&xq("0"!==this.controlsType,b&&!this.K("store_user_volume_override_from_wpcc_killswitch_2")?b.storeUserVolume:a.store_user_volume);n=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:yq(void 0,n,TA);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":Aq("",a.cc_lang_pref); n=yq(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,TA);"3"===this.controlsType&&2===n&&(n=3);this.Ya=n;this.Bf=b?b.hl||"en_US":Aq("en_US",a.hl);this.region=b?b.contentRegion||"US":Aq("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":Aq("en",a.host_language);this.xl=!this.Sa&&Math.random()Math.random();this.Uh=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new $va(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b&&!this.K("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.Hd=new gwa;g.J(this,this.Hd);this.Kj=xq(!1, a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.O("DATASYNC_ID");this.Kl=g.O("LOGGED_IN",!1);this.Qg=(null==b?void 0:b.allowWoffleManagement)||!1;this.embedsRct=Aq("",b?b.embedsRct:a.rct);this.embedsRctn=Aq("",b?b.embedsRctn:a.rctn);this.Yi=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.K("html5_high_res_logging")?this.U=2:1>4096*Math.random()&&(this.U=1);this.K("html5_ping_queue")&&(this.Yh=new Xz)}; VA=function(a,b,c){c=void 0===c?!1:c;a.jd=Aq(a.jd,b.video_id);a.Pa=Aq(a.Pa,b.eventid);a.Pa&&(pu=a.Pa);for(var d=[],e=g.r(Object.keys(qwa)),f=e.next();!f.done;f=e.next()){f=qwa[f.value];var k=b[f];null!=k&&(k!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=k)}!c&&0x.width*x.height*x.fps)x=G}else t.push(G)}else l[D]="disdrmhfr";u.reduce(function(aa, M){return M.Yf().isEncrypted()&&aa},!0)&&(q=p); e=Math.max(e,0);p=x||{};n=void 0===p.fps?0:p.fps;x=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;z=a.K("html5_native_audio_track_switching");u.push(Ewa(t,c,d,f,"93",x,p,n,m,"auto",e,q,y,z));Object.entries(l).length&&k(l);return yB(a.u,u,aB(a,b))}; Ewa=function(a,b,c,d,e,f,k,l,m,n,p,q,t,u){for(var x=0,y="",z=g.r(a),D=z.next();!D.done;D=z.next())D=D.value,y||(y=D.itag),D.audioChannels&&D.audioChannels>x&&(x=D.audioChannels,y=D.itag);e=new Oy(e,"application/x-mpegURL",{audio:new Iy(0,x,null,y),video:new Ky(f,k,l,null,void 0,n,void 0,t),Td:q});a=new uwa(a,b,c?[c]:[],d,!!u);a.C=p?p:1369843;return new AB(e,a,m)}; Bwa=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN}; Dwa=function(a,b){for(var c=g.r(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Td===b.Td&&!e.audioChannels)return d}return""}; Cwa=function(a){for(var b=new Set,c=g.r(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.r(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.r(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]}; BB=function(a,b){this.j=a;this.u=b}; Gwa=function(a,b,c,d){var e=[];c=g.r(c);for(var f=c.next();!f.done;f=c.next()){var k=f.value;if(k.url){f=new g.Lw(k.url,!0);if(k.s){var l=k.sp,m=Ssa(decodeURIComponent(k.s));f.set(l,encodeURIComponent(m))}l=g.r(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);k=vua(k.type,k.quality,k.itag,k.width,k.height);e.push(new BB(k,f))}}return yB(a.u,e,aB(a,b))}; CB=function(a,b){this.j=a;this.u=b}; Hwa=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=vua(e.type,"medium","0");d.push(new CB(f,e.url))}return yB(a.u,d,aB(a,b))}; Iwa=function(a){this.j=a.playback_progress_0s_url;this.B=a.playback_progress_2s_url;this.u=a.playback_progress_10s_url}; DB=function(){var a=Jwa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=vka.apply(null,[wka.apply(null,g.v(b))].concat(g.v(c)));this.store=yka(a,void 0,b)}; g.EB=function(a,b,c){for(var d=Object.assign({},a),e=g.r(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var k=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===k)d[f]=l;else if(Array.isArray(l)&&Array.isArray(k))d[f]=c?[].concat(g.v(k),g.v(l)):l;else if(!Array.isArray(l)&&g.Na(l)&&!Array.isArray(k)&&g.Na(k))d[f]=g.EB(k,l,c);else if(typeof l===typeof k)d[f]=l;else return b=new g.hr("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,Gka:k,updateValue:l}),g.R(b), a}return d}; FB=function(a){this.u=a;this.j=0;this.B=-1}; GB=function(a){var b=ax(a.u,a.j);++a.j;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=ax(a.u,a.j),++a.j,d*=128,c+=(b&127)*d;return c}; ZB=function(a,b){var c=a.B;for(a.B=-1;a.j+1<=a.u.totalLength;){0>c&&(c=GB(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.B=c;break}c=-1;switch(e){case 0:GB(a);break;case 1:a.j+=8;break;case 2:d=GB(a);a.j+=d;break;case 5:a.j+=4}}return!1}; $B=function(a,b){if(ZB(a,b))return GB(a)}; Kwa=function(a,b){if(ZB(a,b))return!!GB(a)}; aC=function(a,b){if(ZB(a,b)){b=GB(a);var c=$w(a.u,a.j,b);a.j+=b;return c}}; bC=function(a,b){if(a=aC(a,b))return g.gx(a)}; Lwa=function(a,b,c){if(a=aC(a,b))return c(new FB(new Vw([a])))}; cC=function(a,b){a=a instanceof Uint8Array?new Vw([a]):a;return b(new FB(a))}; Mwa=function(){this.j=0;this.B=[];this.u=new Uint8Array(4096);this.view=new DataView(this.u.buffer)}; dC=function(a,b){b=a.j+b;if(!(a.u.length>=b)){for(var c=2*a.u.length;cd;d++)a.view.setUint8(a.j,c&127|128),c>>=7,a.j+=1;b=Math.floor(b/268435456)}for(dC(a,4);127>=7,a.j+=1;a.view.setUint8(a.j,b);a.j+=1}; fC=function(a,b,c){void 0!==c&&(eC(a,b<<3|0),eC(a,c))}; gC=function(a,b,c){void 0!==c&&fC(a,b,c?1:0)}; hC=function(a,b,c){void 0!==c&&(eC(a,b<<3|2),b=c.length,eC(a,b),dC(a,b),a.u.set(c,a.j),a.j+=b)}; iC=function(a,b,c){void 0!==c&&(Nwa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),dC(a,1.2*c.length),b=ix(c,a.u.subarray(a.j)),a.j+b>a.u.length&&(dC(a,b),b=ix(c,a.u.subarray(a.j))),a.j+=b,Owa(a))}; Nwa=function(a,b,c){c=void 0===c?2:c;eC(a,b<<3|2);a.B.push(a.j);a.B.push(c);a.j+=c}; Owa=function(a){for(var b=a.B.pop(),c=a.B.pop(),d=a.j-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}}; jC=function(a,b,c,d,e){c&&(Nwa(a,b,void 0===e?3:e),d(a,c),Owa(a))}; kC=function(a,b){var c=new Mwa;b(c,a);return new Uint8Array(c.u.buffer,0,c.j)}; g.lC=function(a){var b=new FB(new Vw([nc(decodeURIComponent(a))]));a=bC(b,2);b=$B(b,4);var c=Pwa[b];if("undefined"===typeof c)throw a=new g.hr("Failed to recognize field number",{name:"EntityKeyHelperError",mka:b}),g.R(a),a;return{qW:b,entityType:c,entityId:a}}; g.mC=function(a,b){var c=new Mwa;iC(c,2,a);a=Qwa[b];if("undefined"===typeof a)throw b=new g.hr("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.R(b),b;fC(c,4,a);fC(c,5,1);b=new Uint8Array(c.u.buffer,0,c.j);return encodeURIComponent(g.kc(b))}; nC=function(a,b,c,d){if(void 0===d)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))}; Rwa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.EB(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))}; oC=function(a,b){this.type=a||"";this.id=b||""}; g.pC=function(a){return new oC(a.substr(0,2),a.substr(2))}; qC=function(a,b){for(var c={},d=g.r(Object.keys(Swa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.hv(f)&&(c[Swa[e]]=f)}return c}; rC=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url}); a.sort(function(l,m){return l.width-m.width||l.height-m.height}); for(var c=g.r(Object.keys(Twa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Twa[e];for(var f=g.r(a),k=f.next();!k.done;k=f.next())if(k=k.value,k.width>=e){e=Uwa(k.url);g.hv(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Uwa(a.url),g.hv(a)&&(b["maxresdefault.jpg"]=a));return b}; Uwa=function(a){return a.startsWith("//")?"https:"+a:a}; g.sC=function(a,b){this.u=a;this.author="";this.yx=null;this.playlistLength=0;this.j=this.sessionData=null;this.V={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=Fp(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.V=qC(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new oC("UU","PLAYER_"+c)).toString();break;default:if(a= b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.pC(c).toString();if(b=b.video)this.videoId=(b[0]||null).video_id||void 0}else b.playlist&&(this.playlistLength=b.playlist.toString().split(",").length)}}; g.tC=function(a,b){this.j=a;this.Lo=this.author="";this.yx=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Qr=this.lengthText="";this.sessionData=null;this.V={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Lo=b.Lo||"";if(a=b.endscreen_autoplay_session_data)this.yx=Fp(a,"&");this.zx=b.zx;this.isLivePlayback="1"===b.live_playback;this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds="string"===typeof a?Number(a):a;this.lengthText= b.lengthText||"";this.Qr=b.Qr||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=Fp(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.V=qC(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}}; Wwa=function(a,b){var c=g.Ja("ytDebugData.callbacks");c||(c={},g.Ia("ytDebugData.callbacks",c));if(g.P("web_dd_iu")||Vwa.includes(a))c[a]=b}; uC=function(a){this.j=new ko(a)}; Xwa=function(){if(void 0===vC){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.uo(g.ir()+"::yt-player"))){vC=new uC(a);break a}vC=void 0}}return vC}; g.wC=function(){var a=Xwa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}}; g.Ywa=function(a){var b=Xwa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))}; g.xC=function(a){return g.wC()[a]||0}; g.yC=function(a,b){var c=g.wC();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.Ywa(c))}; g.zC=function(a){return g.B(function(b){return b.return(g.Kr(Zwa(),a))})}; BC=function(a,b,c,d,e,f,k){var l,m,n,p,q,t;return g.B(function(u){switch(u.j){case 1:return l=g.xC(a),4===l?u.return(4):g.A(u,g.Rr(),2);case 2:m=u.u;if(!m)throw g.rr("wiac");if(!k||void 0===f){u.Oa(3);break}return g.A(u,$wa(k,f),4);case 4:f=u.u;case 3:return n=c.lastModified||"0",g.A(u,g.zC(m),5);case 5:return p=u.u,g.wa(u,6),AC++,g.A(u,g.Br(p,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",jc:!0},function(x){if(void 0!==e&&void 0!==f){var y=""+a+"|"+b.id+"|"+n+"|"+String(e).padStart(10, "0");y=g.Cr(x.objectStore("media"),f,y)}else y=g.tr.resolve(void 0);var z=axa(a,b.isVideo()),D=axa(a,!b.isVideo()),G={fmts:bxa(d),format:c||{}};z=g.Cr(x.objectStore("index"),G,z);var F=-1===d.downloadedEndTime;x=F?x.objectStore("index").get(D):g.tr.resolve(void 0);return g.tr.all([x,y,z]).then(function(L){L=g.r(L).next().value;AC--;var aa=g.xC(a);4!==aa&&F&&void 0!==L&&g.cxa(L.fmts)&&(aa=1,g.yC(a,aa));return aa})}),8); case 8:return u.return(u.u);case 6:q=g.ya(u);AC--;t=g.xC(a);if(4===t)return u.return(t);g.yC(a,4);throw q;}})}; g.dxa=function(a){var b,c;return g.B(function(d){if(1==d.j)return g.A(d,g.Rr(),2);if(3!=d.j){b=d.u;if(!b)throw g.rr("ri");return g.A(d,g.zC(b),3)}c=d.u;return d.return(g.Br(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return g.Ooa(e.objectStore("index"),f).then(function(k){return k.map(function(l){return l?l.format:{}})})}))})}; fxa=function(a,b,c,d,e){var f,k,l;return g.B(function(m){if(1==m.j)return g.A(m,g.Rr(),2);if(3!=m.j){f=m.u;if(!f)throw g.rr("rc");return g.A(m,g.zC(f),3)}k=m.u;l=g.Br(k,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)}); return e?m.return(l.then(function(n){return exa(e,n)})):m.return(l)})}; g.cxa=function(a){return a?a.includes("dlt=-1")||!a.includes("dlt="):!1}; axa=function(a,b){return""+a+"|"+(b?"v":"a")}; bxa=function(a){var b={};return Gp((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))}; hxa=function(a){var b={},c={};a=g.r(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.gxa)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.r(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(k){return k.start+"-"+k.end}).join(","); return c}; ixa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.Vz=sA(a.ustreamerConfig)||void 0)}; g.CC=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.j=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null}; g.EC=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.DC(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.j,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b}; g.FC=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode}; g.DC=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (Legendas autom\u00e1ticas)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")}; mxa=function(a,b,c,d){a||(a=b&&jxa.hasOwnProperty(b)&&kxa.hasOwnProperty(b)?kxa[b]+"_"+jxa[b]:void 0);b=a;if(!b)return null;a=b.match(lxa);if(!a||5!==a.length)return null;if(a=b.match(lxa)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(1===Number(a[1])&&8===e)&&0<=f.indexOf(e)}else a=!1;return c||d||a?b:null}; oxa=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return nxa[a];return null}; GC=function(a){return a&&a.baseUrl||""}; HC=function(a){a=g.Jp(a);for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a}; pxa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Sa=b)}; rxa=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.r(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=qxa(d.baseUrl);if(!e)return;d=new g.CC({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.rv(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.cF=b.audioTracks||[];a.QR=b.defaultAudioTrackIndex||0;a.dF=b.translationLanguages?g.Rj(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.rv(f.languageName)}}): []; a.Fq=!!b.contribute&&!!b.contribute.captionsMetadataRenderer}; sxa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(k){var l=k.unserializedPlayerResponse;if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(k=k.playerVars)return Object.assign({is_yto_interstitial:!0},Hp(k))}); d=g.r(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,il:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,il:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var f=Number(c.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:f,playerVars:e, il:0===f?5:7})}}}; txa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer}; uxa=function(a,b){b.subscribeCommand&&(a.subscribeCommand=b.subscribeCommand);b.unsubscribeCommand&&(a.unsubscribeCommand=b.unsubscribeCommand);b.addToWatchLaterCommand&&(a.addToWatchLaterCommand=b.addToWatchLaterCommand);b.removeFromWatchLaterCommand&&(a.removeFromWatchLaterCommand=b.removeFromWatchLaterCommand);b.getSharePanelCommand&&(a.getSharePanelCommand=b.getSharePanelCommand)}; Axa=function(a){var b=a.indexRange,c=a.initRange;b={itag:a.itag,url:a.url,index:b?b.start+"-"+b.end:"0-0",bitrate:a.bitrate,init:c?c.start+"-"+c.end:"0-0",type:a.mimeType,clen:a.contentLength,lmt:a.lastModified,xtags:a.xtags};if(c=a.audioTrack){var d=c.displayName;d&&(b.name=d,b.audio_track_id=c.id,c.audioIsDefault&&(b.isDefault="1"))}if(c=a.captionTrack)b.caption_display_name=c.displayName,b.caption_vss_id=c.vssId,b.caption_language_code=c.languageCode,b.caption_kind=c.kind;(c=a.cipher||a.signatureCipher)? (c=Hp(c),b.sp=c.sp,b.s=c.s,b.url=c.url):b.url=a.url;c=a.width;d=a.height;null!=c&&null!=d&&(b.size=c+"x"+d);(c=a.fps)&&(b.fps=c);(c=a.type)&&(b.stream_type=vxa[c]);(c=a.projectionType)&&(b.projection_type=wxa[c]);(c=a.stereoLayout)&&(b.stereo_layout=xxa[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=yxa[c]);if(d=a.drmFamilies){c=[];d=g.r(d);for(var e=d.next();!e.done;e=d.next())c.push(IC[e.value]);b.drm_families=c.join(",")}(c=a.qualityLabel)&&(b.quality_label=c);(c=a.targetDurationSec)&&(b.target_duration_sec= c);(c=a.maxDvrDurationSec)&&(b.max_dvr_duration_sec=c);(c=a.audioSampleRate)&&(b.audio_sample_rate=c);(c=a.audioChannels)&&(b.audio_channels=c);(c=oxa(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=zxa[a])&&(b.primaries=a);return g.nh(b)}; JC=function(a){g.Ut.call(this);this.j=null;this.B=new xo;this.j=null;this.J=new Set;this.D=a||""}; Bxa=function(a,b,c){for(c=KC(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(LC(d,b))&&(d=g.MC(d,b)))return d;c--}return g.MC(a.levels[0],b)}; Dxa=function(a,b,c){c=KC(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=LC(d,b),!d.isLoaded(e)){d=a;var f=c,k=f+"-"+e;d.J.has(k)||(d.J.add(k),d.B.enqueue(f,{UO:f,lP:e}))}Cxa(a)}; Cxa=function(a){if(!a.j&&!a.B.isEmpty()){var b=a.B.remove();a.j=Exa(a,b)}}; Exa=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=NC(a.levels[b.UO],b.lP);c.onload=function(){var d=b.UO,e=b.lP;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);Cxa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.nA()-1);e=[e,d];a.W("l",e[0],e[1])}; return c}; g.OC=function(a,b,c,d){this.level=a;this.C=b;this.loaded=new Set;this.level=a;this.C=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.frameCount=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.j=Math.floor(Number(a[5]));this.B=a[6];this.signature=a[7];this.videoLength=d}; LC=function(a,b){return Math.floor(b/(a.columns*a.rows))}; NC=function(a,b){var c=a.C;c=c.replace("$N",a.B);c=c.replace("$L",a.level.toString());c=c.replace("$M",b.toString());a.signature&&(c=g.ph(c,{sigh:a.signature}));return iv(c)}; g.MC=function(a,b){b>=a.zE()&&a.Jt();var c=LC(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Jt()+1-d*c;if(f=b)return a.C.set(b,d),d;a.C.set(b,c-1);return c-1}; QC=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.OC.call(this,a,b,c,0);this.u=null;this.D=d?2:0}; RC=function(a,b,c,d){PC.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;aMath.random()){for(var rm=!1,we=g.r(a.suggestions),Mk=we.next();!Mk.done;Mk=we.next())if(Mk.value.videoId===bd.videoId){rm=!0;break}rm||g.lu(new g.hr("Autonav video not in endscreen",{empty:!a.suggestions.length}))}a.Eq=bd;a.suggestions[0]=bd}null!=ad.countDownSecs&&(a.rQ=1E3*ad.countDownSecs);null!=ad.countDownSecsForFullscreen&&(a.bF=0<= ad.countDownSecsForFullscreen?1E3*ad.countDownSecsForFullscreen:-1);var MB;a.vS=null==(MB=ad.cancelButton)?void 0:MB.buttonRenderer}a.watchNextResponse.currentVideoThumbnail&&(a.V=rC(a.watchNextResponse.currentVideoThumbnail));if(!a.K("player_parse_profile_picture_from_watch_next_killswitch")){var NB,OB,PB,QB,Lo,aw=null==(NB=a.watchNextResponse)?void 0:null==(OB=NB.contents)?void 0:null==(PB=OB.twoColumnWatchNextResults)?void 0:null==(QB=PB.results)?void 0:null==(Lo=QB.results)?void 0:Lo.contents; if(aw&&aw[1]){var RB,Xr,SB,TB,Yr=null==(RB=aw[1].videoSecondaryInfoRenderer)?void 0:null==(Xr=RB.owner)?void 0:null==(SB=Xr.videoOwnerRenderer)?void 0:null==(TB=SB.thumbnail)?void 0:TB.thumbnails;Yr&&Yr.length&&(a.profilePicture=Yr[Yr.length-1].url)}}var Zr=a.watchNextResponse.onResponseReceivedEndpoints;if(Zr)for(var UB=g.r(Zr),bw=UB.next();!bw.done;bw=UB.next()){var sm=bw.value;sm.changeKeyedMarkersVisibilityCommand&&(a.NL=sm.changeKeyedMarkersVisibilityCommand);var tm=void 0;a.K("web_key_moments_markers")&& (null==(tm=sm.loadMarkersCommand)?0:tm.entityKeys)&&(a.ws=sm.loadMarkersCommand.entityKeys,sm.loadMarkersCommand.visibleOnLoadKeys&&(a.visibleOnLoadKeys=sm.loadMarkersCommand.visibleOnLoadKeys))}if(a.K("web_key_moments_markers")){var VB=g.bD.getState().entities,zK=g.mC("visibility_override","markersVisibilityOverrideEntity");var um=VB.markersVisibilityOverrideEntity?VB.markersVisibilityOverrideEntity[zK]||null:null;var AK=a.videoId||Cq(b);a.Wc=(null==um?void 0:um.videoId)===AK&&(null==um?0:um.visibilityOverrideMarkersKey)? um.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.v(a.Wc))}}}; aD=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)}; cD=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)}; fD=function(a){if(a.K("html5_single_format_policy")&&a.Xc)return a.Xc;var b=a.Ka,c=!!a.j&&a.j.dg,d=a.u,e=a.nH(),f=dD(a),k=a.WE,l=a.isOtf(),m=a.oF(),n=a.Gb,p=a.Te,q=new pva;if(sB(d)||d.K("html5_logging_format_selection"))q.B=!0;q.Sa=f;q.xa=k&&d.B;q.Te=p;hq("windows nt 5.1")&&!g.pw&&(q.j=!0);if(f=e)f=d.K("disable_html5_ambisonic_audio")||!(g.nB(d)||d.K("html5_enable_spherical")||d.K("html5_enable_spherical3d"))?!1:swa(d);f&&(q.Qa=!0);b&&(q.j=!0,q.dc=!0);l&&!d.K("html5_otf_prefer_vp9")&&(q.j=!0);n&& (q.j=!0);b=d.K("html5_ugc_vod_audio_51")&&!c;l=d.K("html5_ugc_live_audio_51")&&c;q.Ga=b||l;Ew(d.u,Fw.CHANNELS)&&(d.K("html5_enable_aac51")&&(q.Z=!0),d.K("html5_enable_ac3")&&(q.D=!0),d.K("html5_enable_eac3")&&(q.I=!0),d.K("html5_enable_ac3_gapless")&&(q.Ca=!0));d.K("html5_block_8k_hfr")&&(q.Za=!0);q.J=g.Pz(d.experiments,"html5_max_selectable_quality_ordinal");q.P=g.Pz(d.experiments,"html5_min_selectable_quality_ordinal");!d.K("html5_kaios_hd_killswitch")&&FA&&(q.Kb=480);if(c||e)q.Ya=!1;q.ib=!1;c= Gz(d,q.u);0c&&(lz()||d.K("html5_format_hybridization"))&&(q.u.supportsChangeType=+lz(),q.U=c);2160<=c&&(q.ea=!0);nva()&&(q.u.serveVp9OverAv1IfHigherRes=0,q.lc=!1);q.oF=m;q.Pa=g.Nr||tq()&&!m?!1:!0;q.ma=d.K("html5_format_hybridization");q.Gb=d.K("html5_disable_encrypted_vp9_live_non_2k_4k");kq()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.D=!0,q.I=!0);a.Ka&&a.isAd()&& (a.Vm&&(q.V=a.Vm),a.Um&&(q.C=a.Um));q.Ka=a.isLivePlayback&&eD(a)&&a.u.K("html5_drm_live_audio_51");return a.Xc=q}; Xxa=function(a){Qv("drm_pb_s",void 0,a.Ca);a.Bd||a.j&&Hw(a.j);var b={};a.j&&(b=Gsa(fD(a),a.u.u,a.j,function(c){return a.W("ctmp","fmtflt",c)},!0)); b=new Sz(b,a.u.experiments,a.LO,a.useCobaltWidevine?kq()?gD(a):!1:!1,function(c,d){a.qa(c,d)}); g.J(a,b);a.vl=!1;a.xa=!0;tva(b,function(c){Qv("drm_pb_f",void 0,a.Ca);for(var d=g.r(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.u=a.Bd;e.J=a.e2;e.I=a.Y1;break;case "widevine":e.B=a.TO}a.Xs=c;if(0p&&(p=u.Yf().audio.numChannels)}2=a.C.videoInfos.length)&&(b=Sy(a.C.videoInfos[0]),b!=("fairplay"==a.U.flavor)))for(c=g.r(a.Xs),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.U=d;break}}; kD=function(a,b){a.lc=b;hya(a,new Aw(g.Rj(a.lc,function(c){return c.Yf()})))}; iya=function(a){var b={cpn:a.clientPlaybackNonce,c:a.u.deviceParams.c,cver:a.u.deviceParams.cver};a.Rs&&(b.ptk=a.Rs,b.oid=a.VL,b.ptchn=a.UL,b.pltype=a.WL,a.Cr&&(b.m=a.Cr));return b}; g.lD=function(a){return YC(a)&&a.Bd?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.Td||null}; jya=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.rv(b.text):a.paidContentOverlayText}; mD=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?Xf(b.durationMs):a.paidContentOverlayDurationMs}; nD=function(a){var b="";if(a.qK)return a.qK;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.vf?"post":a.Yh?"window":"live");return b}; g.oD=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]}; pD=function(a){return!!(a.sb||a.adaptiveFormats||a.Kj||a.Fj||a.hlsvp)}; UC=function(a){if(a.K("html5_onesie")&&a.errorCode)return!1;var b=g.Lb(a.ea,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.xa&&(pD(a)||g.Lb(a.ea,"heartbeat")||b)}; iD=function(a,b){a=Ip(a);var c={};if(b){b=g.r(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.r(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a}; Uxa=function(a,b){a.showShareButton=!!b;var c,d,e=(null==b?void 0:null==(c=b.buttonRenderer)?void 0:c.navigationEndpoint)||(null==b?void 0:null==(d=b.buttonRenderer)?void 0:d.command);e&&(a.Al=!!e.copyTextEndpoint)}; Ixa=function(a,b){var c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.oh=c);if(a.oh){if(c=a.oh.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage),c.isShortsEligible&&(a.isShortsEligible=c.isShortsEligible);if(c=a.oh.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.Ya=d,a.D=!0,a.u.K("embeds_web_enable_epm_dni_parity_fix")&& (a.u.ea="EMBEDDED_PLAYER_MODE_PFP")):(a.Ya="",a.D=!1,a.u.K("embeds_web_enable_epm_dni_parity_fix")&&"EMBEDDED_PLAYER_MODE_PFP"===a.u.ea&&(a.u.ea="EMBEDDED_PLAYER_MODE_DEFAULT"));if(d=c.defaultThumbnail)a.V=rC(d),a.sampledThumbnailColor=d.sampledThumbnailColor;var e;(d=null==c?void 0:null==(e=c.videoDetails)?void 0:e.embeddedPlayerOverlayVideoDetailsRenderer)&&Vxa(a,b,d);var f;if(e=null==c?void 0:null==(f=c.videoDetails)?void 0:f.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.TH=e.title,a.HH=e.byline, e.musicVideoType&&(a.musicVideoType=e.musicVideoType);a.Rg=!!c.addToWatchLaterButton;Uxa(a,c.shareButton);var k,l,m;if(f=null==c?void 0:null==(k=c.playButton)?void 0:null==(l=k.buttonRenderer)?void 0:null==(m=l.navigationEndpoint)?void 0:m.watchEndpoint)Txa(a,f),a.videoId=f.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=Xf(c.videoDurationSeconds));c.webPlayerActionsPorting&&uxa(a,c.webPlayerActionsPorting);var n;if(k=null==c?void 0:null==(n=c.playlist)?void 0:n.playlistPanelRenderer){n= [];l=Number(k.currentIndex);if(k.contents)for(m=0,f=k.contents.length;m(b?parseInt(b[1],10):NaN);c=a.u;c=("TVHTML5_CAST"===WA(c)||"TVHTML5"===WA(c)&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.u.deviceParams.ctheme;!a.Ue&&(c||rwa(a.u))&&!b&& (b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.K("cast_prefer_audio_only_for_atv_and_uploads")||a.K("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.Ue=!0);return a.u.deviceIsAudioOnly||a.Ue&&a.u.B}; oya=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)}; DD=function(a){return!(!a.lk||!a.u.B)&&!!a.adaptiveFormats}; pya=function(a){return a.enablePreroll&&a.enableServerStitchedDai}; Rxa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.xC(b);return b&&!a.lk}; g.ED=function(a){if(!a.j||!a.B||!a.I)return!1;var b=a.j.j;return!!b[a.B.id]&&Qw(b[a.B.id].u.j)&&!!b[a.I.id]&&Qw(b[a.I.id].u.j)}; qya=function(a){return a.Ws?["OK","LIVE_STREAM_OFFLINE"].includes(a.Ws.status):!0}; kya=function(a){return(a=a.nk)&&a.showError?a.showError:!1}; hD=function(a,b){return a.K(b)?!0:(a.fflags||"").includes(b+"=true")}; rya=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null}; Nxa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.Zs=new Iwa(b));if(b=b.video_masthead_ad_quartile_urls)a.cE=b.quartile_0_url,a.fM=b.quartile_25_url,a.hM=b.quartile_50_url,a.jM=b.quartile_75_url,a.dM=b.quartile_100_url,a.Ys=b.quartile_0_urls,a.fE=b.quartile_25_urls,a.gE=b.quartile_50_urls,a.hE=b.quartile_75_urls,a.dE=b.quartile_100_urls}; XC=function(a,b){return b?Vz(a.u.u)?!0:FD&&5>GD?!1:!0:!1}; Mxa=function(a){var b={};a=g.r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b}; qxa=function(a){if(a){if(Ura(a))return a;a=Vra(a);if(Ura(a,!0))return a}return""}; g.sya=function(a){return a.captionsLanguagePreference||a.u.captionsLanguagePreference||g.oD(a,"yt:cc_default_lang")||a.u.Bf}; HD=function(a){return!!(a.K("enable_linear_player_handling")&&a.isLivePlayback&&a.hasProgressBarBoundaries())}; g.ID=function(a){if(a.K("web_player_decouple_autonav"))return a.Eq;var b;return(null==(b=a.suggestions)?void 0:b[0])||null}; JD=function(a,b){this.j=a;this.V=b||{};this.I=String(Math.floor(1E9*Math.random()));this.D={};this.U=this.P=0}; tya=function(a){return KD(a)&&1==a.getPlayerState(2)}; KD=function(a){a=a.Cc();return void 0!==a&&2==a.getPlayerType()}; LD=function(a){a=a.S();return XA(a)&&!g.iB(a)&&"desktop-polymer"==a.playerStyle}; MD=function(a,b){var c=a.S();NA(c)||"3"!=c.controlsType||a.Wa().xz(b)}; OD=function(a,b,c,d,e,f){c=void 0===c?{}:c;this.componentType=a;this.renderer=void 0===b?null:b;this.macros=c;this.layoutId=d;this.interactionLoggingClientData=e;this.j=f;this.id=ND(a)}; ND=function(a){return a+(":"+(yo.getInstance().j++).toString(36))}; PD=function(a){this.environmentData=a}; uya=function(a,b){if(0===b||1===b&&(a.environmentData.isMobile&&g.pr?0:a.environmentData.isMobile||g.iB(a.environmentData)||g.YA(a.environmentData)||ZA(a.environmentData)||!g.pr))return!0;a=g.dg("video-ads");return null!=a&&"none"!==Hk(a,"display")}; vya=function(a){switch(a){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; QD=function(){g.Ut.call(this);var a=this;this.j={};g.ge(this,function(){for(var b=g.r(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})}; SD=function(){if(null===RD){RD=new QD;Uj(dn).u="b";var a=Uj(dn),b="h"==Xm(a)||"b"==Xm(a),c=!(Zj(),!1);b&&c&&(a.C=!0,a.D=new uia)}return RD}; wya=function(a,b,c){a.j[b]=c}; xya=function(){}; TD=function(a,b,c){this.j=a;this.D=b;this.B=c;this.u=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0); c=0;for(a+=1;a=c*a.u.eE||d)&&qE(a,"first_quartile");(b>=c*a.u.YE||d)&&qE(a,"midpoint");(b>=c*a.u.aF||d)&&qE(a,"third_quartile")}; Pya=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.eE||d)&&qE(a,"unmuted_first_quartile");(b>=c*a.u.YE||d)&&qE(a,"unmuted_midpoint");(b>=c*a.u.aF||d)&&qE(a,"unmuted_third_quartile")}; uE=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(cd||d>c)return;qE(a,b)}; Mya=function(a,b,c){if(0m.I&&m.Li()}}; Zya=function(a,b){if(a.J&&a.V){a.V=!1;var c=a.B.j;if(LE(c)){var d=c.slot;c=c.layout;b=Xya(b);a=g.r(a.J.listeners);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=d,k=c,l=b;NE(e.j(),f,k,l);Yya(e.j(),f)}}else g.lu(Error("adMessageRenderer is not augmented on termination"))}}; Xya=function(a){switch(a){case "adabandonedreset":return"user_cancelled";case "adended":return"normal";case "aderror":return"error";case void 0:return"abandoned";default:return g.lu(Error("Unexpected eventType for adNotify exit")),"abandoned"}}; g.OE=function(a,b){for(var c={},d=g.r(Object.keys(b)),e=d.next();!e.done;c={VD:c.VD},e=d.next())e=e.value,c.VD=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.VD}}(c)); return a}; PE=function(a,b,c,d){this.j=a;this.C=b;this.u=hE(c);this.B=d}; $ya=function(a){for(var b={},c=g.r(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.u[d].toString();return Object.assign(b,a.C)}; aza=function(a,b,c,d){new PE(a,b,c,d)}; QE=function(a,b,c,d,e,f,k,l,m){DE.call(this,a,b,c,d,e,1);var n=this;this.XB=!0;this.J=m;this.B=b;this.D=f;this.V=new Rt(this);g.J(this,this.V);this.I=new g.K(function(){n.hm("load_timeout")},1E4); g.J(this,this.I);this.U=k}; bza=function(a){if(a.U&&(a.G.S().experiments.bb("enable_topsoil_wta_for_halftime")||a.G.S().experiments.bb("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.B.B,c=b.C,d=b.B,e=b.j;b=b.D;if(void 0===c)g.R(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.R(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,k){return f+k},0),Math.min(Math.max((d-c)/1E3-e,0),a.B.u)}}; TE=function(a,b){if(null!==a.J){var c=cza(a);a=g.r(a.J.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,k=!1;d.j||"aderror"!==f||(dza(d,e,[],!1),eza(d.B(),d.u),fza(d.B(),d.u),gza(d.B(),d.u),k=!0);if(d.j&&d.j.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}NE(d.B(),d.u,d.j,e);if(k){e=d.B();k=d.u;RE(e.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",k);e=g.r(e.ge);for(f=e.next();!f.done;f=e.next())f.value.ej(k);Yya(d.B(), d.u)}d.Da.get().G.S().K("html5_send_layout_unscheduled_signal_for_externally_managed")&&d.C&&SE(d.B(),d.u,d.j);d.u=null;d.j=null;d.C=!1}}}}; UE=function(a){return(a=a.G.getVideoData(2))?a.clientPlaybackNonce:""}; cza=function(a){if(a=a.B.j.elementId)return a;g.R(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""}; hza=function(a){function b(k,l){k=a.s0;var m=Object.assign({},{});m.FINAL=gE(We("1"));m.SLOT_POS=gE(We("0"));return jE(k,iE(m),l)} function c(k){return null==k?{create:function(){return null}}:{create:function(l,m,n){var p=b(l,m); m=a.XJ(l,p);l=k(l,p,m,n);g.J(l,m);return l}}} var d=c(function(k,l,m){return new GE(a.G,k,l,m,a.Cx,a.Xa)}),e=c(function(k,l,m){return new ME(a.G,k,l,m,a.Cx,a.Xa,a.Jk,a.Mn)}),f=c(function(k,l,m){return new JE(a.G,k,l,m,a.Cx,a.Xa)}); this.yV=new Uya({create:function(k,l){var m=jE(b(k,l),iE(Hya(k)));l=a.XJ(k,m);k=new QE(a.G,k,m,l,a.Cx,a.Xa,a.daiEnabled,function(){return new aza(a.Xa,m,a.G,a.Rj)},a.Nn,a.ph); g.J(k,l);return k}},d,e,f)}; VE=function(a,b){this.u=a;this.j={};this.B=void 0===b?!1:b}; iza=function(a,b){var c=a.startSecs+a.durationSecs;c=0>=c?null:c;if(null===c)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}b=Math.max(a.startSecs,0);return{bW:new Nn(b,c),tX:new cv(b,c-b,a.context,a.identifier,a.event,a.j)}}; WE=function(){this.j=[]}; XE=function(a,b,c){var d=g.Wb(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]}; jza=function(){this.j=new WE}; YE=function(a){this.j=a}; kza=function(a){a=[a,a.C].filter(function(d){return!!d}); for(var b=g.r(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a}; lza=function(a,b,c){this.B=a;this.u=b;this.j=c;a.getCurrentTime()}; mza=function(a,b,c){a.j&&ZE({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})}; nza=function(a,b){a.j&&ZE({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.GV}})}; oza=function(a,b){ZE({daiStateTrigger:{errorType:a,contentCpn:b}})}; ZE=function(a){g.cr("adsClientStateChange",a)}; $E=function(a){this.G=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.initialized=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; qza=function(a,b,c,d,e,f){f();var k=a.G.getVideoData(1),l=a.G.getVideoData(2);k&&(a.contentCpn=k.clientPlaybackNonce,a.videoId=k.videoId,a.j=k.J);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;0>=d?f():(a.actionType=a.C?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==a.actionType&&(a.initialized=!0,(a.G.K("send_csi_info_for_ad_to_video_killswitch")||lw("_start",a.actionType))&& pza(a)))}; pza=function(a){if(a.initialized)if(a.G.K("web_csi_via_jspb")){var b=new lp;g.E(b,21,rza(a.B));g.E(b,7,4);var c=new jp;g.E(c,8,2);cd(b,jp,22,c);g.E(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&g.E(b,76,a.contentCpn),a.videoId&&g.E(b,78,a.videoId)):(a.adCpn&&g.E(b,76,a.adCpn),a.adVideoId&&g.E(b,78,a.adVideoId));c=wsa(a.actionType);a.adFormat&&!c&&g.E(b,12,a.adFormat);a.contentCpn&&g.E(b,8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&g.E(b,28,a.adCpn);a.adVideoId&& g.E(b,20,a.adVideoId);kw(b,a.actionType)}else b={adBreakType:sza(a.B),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)),c=wsa(a.actionType),a.adFormat&&!c&&(b.adType=a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&& (b.videoId=a.videoId),a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),Rv(b,a.actionType)}; sza=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; rza=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return 1;case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return 2;case "AD_PLACEMENT_KIND_END":return 3;default:return 0}}; g.uza=function(a){return(a=tza[a.toString()])?a:"LICENSE"}; aF=function(){var a=this;this.j=this.u=jaa;this.promise=new g.Eg(function(b,c){a.u=b;a.j=c})}; bF=function(){g.I.call(this);this.u=null;this.P=this.J=!1;this.D=new g.Te;g.J(this,this.D)}; cF=function(a){a=a.Tx();return 1>a.length?NaN:a.end(a.length-1)}; vza=function(a){!a.B&&Bua()&&(a.C?a.C.then(function(){return vza(a)}):a.Zf()||(a.B=a.xr()))}; wza=function(a,b,c){a.Qm()||a.getCurrentTime()>b||10d.length||(d[0]in aAa&&(f.clientName=aAa[d[0]]),d[1]in bAa&&(f.platform=bAa[d[1]]),f.applicationState=k,f.clientVersion=2e&&(b+="0"));if(0f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d}; g.dH=function(a){return(!("button"in a)||"number"!==typeof a.button||0===a.button)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)}; eH=function(a,b,c,d,e,f,k){MG.call(this,a,b,{F:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e,f);this.videoAdDurationSeconds=k;this.u=null;this.hide()}; fH=function(a,b,c,d,e){KG.call(this,a,b,c,d,e,"ytp-video-ad-top-bar-title","ad-title")}; gH=function(a,b){this.u=a;this.j=b}; hH=function(a){return a.j-a.u}; iH=function(a,b){return a.u+b*hH(a)}; jH=function(a,b,c){return hH(a)?g.Ff((b-a.u)/hH(a),0,1):null!=c?c:Infinity}; kH=function(a,b){g.eG.call(this,{F:"div",L:"ytp-ad-persistent-progress-bar-container",R:[{F:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.J(this,this.u);this.progressBar=this.va("ytp-ad-persistent-progress-bar");this.j=-1;this.N(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; lH=function(a,b,c,d,e,f,k){fG.call(this,a,b,{F:"div",L:"ytp-ad-player-overlay",R:[{F:"div",L:"ytp-ad-player-overlay-flyout-cta"},{F:"div",L:"ytp-ad-player-overlay-instream-info"},{F:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{F:"div",L:"ytp-ad-player-overlay-progress-bar"},{F:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d,e);this.D=k;this.J=this.va("ytp-ad-player-overlay-flyout-cta");this.u=this.va("ytp-ad-player-overlay-instream-info");this.B=null;$Ba(this)&& (a=hg("div"),g.vn(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.u,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new fH(this.api,this.Xa,this.layoutId,this.interactionLoggingClientData,this.Ta),c.ra(a),c.init(ND("ad-title"),{text:b.title},this.macros),g.J(this,c)),this.B=a);this.C=this.va("ytp-ad-player-overlay-skip-or-preview");this.ma=this.va("ytp-ad-player-overlay-progress-bar");this.U=this.va("ytp-ad-player-overlay-instream-user-sentiment"); this.j=f;g.J(this,this.j);this.hide()}; $Ba=function(a){a=a.api.S();return g.RA(a)&&a.isMobile}; bCa=function(a,b){var c=void 0===c?!0:c;var d=g.O("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.jh(window.location.href);e&&d.push(e);e=g.jh(a);if(g.Lb(d,e)||!e&&eb(a,"/"))if(g.P("autoescape_tempdata_url")&&(d=document.createElement("a"),g.Cf(d,a),a=d.href),a&&(a=nea(a),d=a.indexOf("#"),a=0>d?a:a.slice(0,d)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.wu()},b)),f){var f=parseInt(f,10);isFinite(f)&&0a}; g.UH=function(a,b){var c=g.Pz(b.experiments,"bg_vm_reinit_threshold");b.K("always_reinit_bg_vm")&&(c=0);ECa(a.program,c)&&(mw("bg_i",void 0,"player_att"),g.PH.initialize(a,function(){var d=a.serverEnvironment;mw("bg_l",void 0,"player_att");RH=(0,g.Q)();for(var e=0;et.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:RCa[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:SCa[t[0]]||"UNKNOWN_INTERFACE", clientVersion:t[2]||"",platform:TCa[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(n){u=void 0;try{u=JSON.parse(n)}catch(z){g.lu(z)}u&&(t={params:[{key:"ms",value:u.ms}]},q.osName=u.os_name,q.userAgent=u.user_agent,q.windowHeightPoints=u.window_height_points,q.windowWidthPoints=u.window_width_points)}l.push({adSignalsInfo:t,remoteClient:q})}m.remoteContexts=l}a.sourceContainerPlaylistId&&(m.mdxPlaybackSourceContext={mdxPlaybackContainerInfo:{sourceContainerPlaylistId:a.sourceContainerPlaylistId}});k.mdxContext= m;m=b.width;0d&&(d=-(d+1));g.lg(a,b,d);b.setAttribute("data-layer",String(c))}; g.sI=function(a){var b=a.S();if(!b.Xc)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.K("allow_poltergust_autoplay"))&&!HD(c);d=c.isLivePlayback&&(!b.K("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.K("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.hasNext();var f=c.watchNextResponse&&c.watchNextResponse.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.D&&f;return!c.ypcPreview&& (!d||e)&&!g.Lb(c.ea,"ypc")&&!a&&(!g.IA(b)||f)}; jDa=function(a){a=g.tI(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||1080>b.B.video.j||b.uK)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.B.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.qa("iqss",{trigger:d},!0),!0):!1}; uI=function(a){g.I.call(this);this.api=a}; lDa=function(a){uI.call(this,a);var b=this;this.events=new g.Vy(a);g.J(this,this.events);this.K("enable_precise_embargos")&&(this.events.N(a,"videodatachange",function(){var c;(null==(c=b.api.getVideoData())?0:c.cueRanges)&&kDa(b)}),this.events.N(a,g.mv("embargo"),function(){b.api.Qf("heartbeat.stop",2,"This video isn't available in your current playback area")}))}; mDa=function(a){function b(d){return void 0!==(null==d?void 0:d.embargo)} var c;return null==(c=a.onEnter)?void 0:c.some(b)}; kDa=function(a){var b=a.api.getVideoData();if(null==b?0:HD(b)){var c;null==(c=b.cueRanges)||c.filter(function(d){return mDa(d)}).forEach(function(d){var e,f=Number(null==(e=d.playbackPosition)?void 0:e.utcTimeMillis)/1E3,k; d=f+Number(null==(k=d.duration)?void 0:k.seconds);a.api.addUtcCueRange("embargo",f,d,"embargo",!1)})}}; vI=function(a){uI.call(this,a);var b=this;this.useLivingRoomPoToken=!1;var c;this.useLivingRoomPoToken=!(null==(c=a.S().webPlayerContextConfig)||!c.useLivingRoomPoToken);this.K("html5_generate_session_po_token")&&!this.useLivingRoomPoToken&&(this.K("html5_webpo_idle_priority_job")?g.Rq(g.Tq(),function(){nDa(b)}):nDa(this)); a.pJ(this)}; nDa=function(a){var b=a.api.S(),c=a.K("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN",d=a.K("html5_po_token_enable_webpo_experimental")?"bxNLZUJrsnkb8KzwCOTR":"O43z0dpjhgX20SCx4KAo";c=g.YA(b)?c:d;a.K("html5_placeholder_po_tokens")&&(c="2ZCPXHYZSpebQXqOYNtj");try{if(a.j=Zfa({Lg:c,onError:function(f){g.lu(f)}}),!a.K("html5_generate_content_po_token")){a.j.ready().then(function(){oDa(a)}); var e=g.Pz(b.experiments,"html5_session_po_token_interval_time_ms");0=a.length?0:b}; uDa=function(a){var b=a.index-1;return 0>b?a.length-1:b}; g.CI=function(a,b,c,d){b=void 0!==b?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new g.TC(a.u,b),g.J(a,e),e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e}; DI=function(a,b){a.index=g.Ff(b,0,a.length-1);a.startSeconds=0}; EI=function(a,b){if(b.video&&b.video.length){a.title=b.title||"";a.description=b.description;a.views=b.views;a.likes=b.likes;a.dislikes=b.dislikes;a.author=b.author||"";var c=b.loop;c&&(a.loop=c);c=g.CI(a);a.items=[];for(var d=g.r(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}}; xDa=function(a,b){var c,d,e,f,k,l;return g.B(function(m){if(1==m.j){c=g.KH();var n=a.S(),p={context:g.ZH(a)};n.K("embeds_enable_sending_ancestor_origins_killswitch")||(p.playbackContext={contentPlaybackContext:{ancestorOrigins:n.ancestorOrigins}});n=n.embedConfig;var q=b.docid||b.video_id||b.videoId||b.id;if(!q){q=b.raw_embedded_player_response;if(!q&&!g.P("parse_video_id_from_serialized_embedded_player_response_killswitch")){var t=b.embedded_player_response;t&&(q=JSON.parse(t))}if(q){var u,x,y,z, D,G,F;q=(null==(u=q)?void 0:null==(x=u.embedPreview)?void 0:null==(y=x.thumbnailPreviewRenderer)?void 0:null==(z=y.playButton)?void 0:null==(D=z.buttonRenderer)?void 0:null==(G=D.navigationEndpoint)?void 0:null==(F=G.watchEndpoint)?void 0:F.videoId)||null}else q=null}u=(u=q)?u:void 0;x=a.playlistId?a.playlistId:b.list;y=b.listType;if(x){var L;"user_uploads"===y?L={username:x}:L={playlistId:x};vDa(n,u,b,L);p.playlistRequest=L}else b.playlist?(L={templistVideoIds:b.playlist.toString().split(",")},vDa(n, u,b,L),p.playlistRequest=L):u&&(L={videoId:u},n&&(L.serializedThirdPartyEmbedConfig=n),p.singleVideoRequest=L);d=p;e=g.vH(wDa);g.wa(m,2);return g.A(m,g.GF(c,d,e),4)}if(2!=m.j)return f=m.u,k=a.S(),b.raw_embedded_player_response=f,m.return(new g.TC(k,b));l=g.ya(m);g.R(l);return m.return(a)})}; vDa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)}; g.GI=function(a,b){FI.get(a);FI.set(a,b)}; g.HI=function(a){g.Ut.call(this);this.loaded=!1;this.player=a}; yDa=function(){this.u=[];this.j=[]}; g.II=function(a,b){return b?a.j.concat(a.u):a.j}; g.JI=function(a,b){switch(b.kind){case "asr":zDa(b,a.u);break;default:zDa(b,a.j)}}; zDa=function(a,b){g.Jb(b,function(c){return a.equals(c)})||b.push(a)}; g.KI=function(a){g.I.call(this);this.environmentData=a;this.u=new yDa;this.C=[]}; g.LI=function(a,b,c){g.KI.call(this,a);this.audioTrack=c;this.j=null;this.C=b.dF}; ADa=function(){this.j=10;this.Ji=!1}; BDa=function(a,b){var c=void 0===b?{}:b,d=void 0===c.lm?!1:c.lm;b=new ADa;b.Ji=(void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4)||d;if(a=g.Pz(a.experiments,"html5_time_based_consolidation_ms"))b.j=a;return b}; g.CDa=function(a){this.j=a;this.D=new ADa;this.Sm=this.Ll=!1;this.zl=2;this.J=20971520;this.V=8388608;this.I=120;this.lc=3145728;this.Ga=62914560;this.Fc=10485760;this.Gl=g.Pz(this.j.experiments,"html5_min_readbehind_secs");this.Lw=g.Pz(this.j.experiments,"html5_min_readbehind_cap_secs");this.Kw=g.Pz(this.j.experiments,"html5_max_readbehind_secs");this.Sw=this.j.K("html5_trim_future_discontiguous_ranges");this.Mb=NaN;this.Yi=0;this.Fq=this.Uj=this.tq=2;this.Pa=2097152;this.Eq=1048576;this.Za=!1;this.Ge= 1800;this.Al=this.xl=5;this.Ca=15;this.Ie=1;this.B=1.15;this.C=1.05;this.dk=1;this.Il=!0;this.ma=!1;this.Gq=.8;this.lk=this.Ya=!1;this.Gc=6;this.Z=this.Kb=!1;this.Oh=this.jd=0;this.vt=this.j.K("html5_append_init_while_paused");this.Tm=g.Pz(this.j.experiments,"html5_post_interrupt_readahead");this.Jl=!1;this.Wc=5E3;this.Zs=100;this.Te=10;this.ws=g.Pz(this.j.experiments,"html5_ssdai_failure_retry_limit")||3;this.ll=this.j.experiments.bb("html5_clone_original_for_fallback_location");this.Rw=this.j.experiments.bb("html5_ssdai_reset_on_video_only_killswitch"); this.Rg=1;this.di=1.6;this.Gb=!1;this.ea=.5;this.Bd=2;this.wd=this.Ws=0;this.Xs=1.5;this.Ys=this.ri=.5;this.Ue=15;this.wl=1;this.Cr=this.Kc=!1;this.yl=0;this.jn=this.Cs=this.pk=this.Vm=this.Kl=!1;this.Wm=0;this.Uh=2;this.Or=this.fl=!1;this.vj=0;this.Ph=this.uq=this.xa=this.Ss=this.Qh=!1;this.Sa=!0;this.Pg=this.hd=this.Um=this.Qa=!1;this.ol=!0;this.Zh=!1;this.u="";this.Mt=1048576;this.xe=[];this.Jw=this.j.K("html5_woffle_resume");this.ib=!0;this.nk=this.Fj=this.He=!1;this.vg=46800;this.jr=this.dl= this.Wj=this.Xm=this.Se=this.dc=!1;this.U=0;this.ql="";this.zt=this.j.K("html5_disable_codec_for_playback_on_error");this.Kj=this.ut=this.rl=this.Yh=!1;this.Bf=0;this.Pw=nq();this.Mr=this.vl=!1;this.wt=this.j.K("html5_skip_buffer_check_seek_to_head");this.Zd=!1;this.Hq=!this.j.K("html5_reset_media_stream_discontinuity_killswitch");this.Tj=!1;this.Qg=8192;this.Ka=this.Xc=!1;this.Iq=1;this.Tw=this.j.K("html5_update_readahead_from_real_byterates");this.qq=this.j.K("html5_onesie_live");this.Lr=this.j.K("html5_seek_for_index_reset_killswitch"); this.Mw=g.Pz(this.j.experiments,"html5_onesie_live_ttl_secs")||8;this.Hl=g.Pz(this.j.experiments,"html5_attach_num_random_bytes_to_bandaid");this.Qw=this.j.K("html5_self_init_consolidation");this.Rs=this.j.K("html5_stream_metadata");this.sb=this.j.K("html5_onesie_ads");this.xt=this.j.K("html5_live_partial_response_resumable");this.gf=this.j.K("html5_ssdai_log_ad_transition_info");this.Ow=g.Pz(this.j.experiments,"html5_onesie_request_timeout_ms")||3E3;this.Nw=this.j.K("html5_onesie_nonzero_playback_start"); this.rq=this.j.K("html5_ssdai_use_post_for_media");this.Hd=this.j.K("html5_ssdai_enable_new_seek_logic");this.P=!1}; DDa=function(a,b){1080Math.random()){var z=new g.hr("Unable to load player module",b,document.location&&document.location.origin);g.R(z)}ug(e);t&&t(y)}; var u=m,x=u.onreadystatechange;u.onreadystatechange=function(y){switch(u.readyState){case "loaded":case "complete":ug(f)}x&&x(y)}; l&&((k=a.G.S().cspNonce)&&m.setAttribute("nonce",k),g.Zh(m,g.gf(b)),k=g.ag("HEAD")[0]||document.body,k.insertBefore(m,k.firstChild),g.ge(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))}; $I=function(a,b,c){g.he.call(this,b,a);this.j=c}; g.aJ=function(a){bF.call(this);var b=this;this.j=a;this.I={};this.listener=function(c){b.dispatchEvent(new $I(b,c.type,c))}}; cJ=function(a,b,c,d,e){g.Ut.call(this);var f=this;this.target=a;this.MA=b;this.u=0;this.I=!1;this.C=new g.Jf(NaN,NaN);this.j=new g.Vy(this);this.ma=this.B=this.J=null;g.J(this,this.j);b=d||e?4E3:3E3;this.U=new g.K(function(){bJ(f,1,!1)},b,this); g.J(this,this.U);this.V=new g.K(function(){bJ(f,2,!1)},b,this); g.J(this,this.V);this.Z=new g.K(function(){bJ(f,512,!1)},b,this); g.J(this,this.Z);this.ea=c&&0=c.width||!c.height||0>=c.height||g.hv(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b}; YDa=function(a){var b=a.G.vb();b=b.isCued()||b.isError()?"none":g.mF(b)?"playing":"paused";a.mediaSession.playbackState=b}; qJ=function(a){g.V.call(this,{F:"div",L:"ytp-paid-content-overlay",T:{"aria-live":"assertive","aria-atomic":"true"}});this.G=a;this.videoId=null;this.B=!1;this.Od=this.j=null;var b=a.S();a.K("enable_new_paid_product_placement")&&!g.jB(b)?(this.u=new g.V({F:"a",L:"ytp-paid-content-overlay-link",T:{href:"{{href}}",target:"_blank"},R:[{F:"div",L:"ytp-paid-content-overlay-icon",X:"{{icon}}"},{F:"div",L:"ytp-paid-content-overlay-text",X:"{{text}}"},{F:"div",L:"ytp-paid-content-overlay-chevron",X:"{{chevron}}"}]}), this.N(this.u.element,"click",this.onClick)):this.u=new g.V({F:"div",Aa:["ytp-button","ytp-paid-content-overlay-text"],X:"{{text}}"});this.C=new g.PG(this.u,250,!1,100);g.J(this,this.u);this.u.ra(this.element);g.J(this,this.C);this.G.Vh(this.element,this);this.N(a,"videodatachange",this.onVideoDataChange);this.N(a,"presentingplayerstatechange",this.Uc)}; $Da=function(a,b){var c=jya(b),d=mD(b);b.gf&&a.G.im()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.qn(a.j),a.videoId=b.videoId,a.B=!!d,a.B&&c&&ZDa(a,d,c,b)):c&&d&&ZDa(a,d,c,b))}; ZDa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.K(a.Db,b,a);g.J(a,a.j);var e,f;b=null==(e=d.getPlayerResponse())?void 0:null==(f=e.paidContentOverlay)?void 0:f.paidContentOverlayRenderer;e=null==b?void 0:b.navigationEndpoint;var k;f=null==b?void 0:null==(k=b.icon)?void 0:k.iconType;var l;k=null==e?void 0:null==(l=e.urlEndpoint)?void 0:l.url;a.G.Wk(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!=k?k:"#",text:c,icon:"MONEY_HAND"===f?{F:"svg",T:{fill:"none",height:"100%", viewBox:"0 0 24 24",width:"100%"},R:[{F:"path",T:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z", fill:"white"}}]}:null,chevron:k?g.jG():null})}; aEa=function(a,b){a.j&&(g.U(b,8)&&a.B?(a.B=!1,a.md(),a.j.start()):(g.U(b,2)||g.U(b,64))&&a.videoId&&(a.videoId=null))}; rJ=function(a){g.V.call(this,{F:"div",L:"ytp-spinner",R:[hJ(),{F:"div",L:"ytp-spinner-message",X:"Se a reprodu\u00e7\u00e3o n\u00e3o come\u00e7ar em instantes, reinicie seu dispositivo."}]});this.api=a;this.message=this.va("ytp-spinner-message");this.j=new g.K(this.show,500,this);g.J(this,this.j);this.N(a,"presentingplayerstatechange",this.onStateChange);this.N(a,"playbackstalledatstart",this.u);a=a.vb();bEa(this,a)?this.j.start():this.hide()}; bEa=function(a,b){if(g.U(b,128))return!1;var c;return(null==(c=a.api.Cc())?0:c.Fp)?!1:g.U(b,16)||g.U(b,1)?!0:!1}; g.sJ=function(a,b,c,d){d=void 0===d?!1:d;g.eG.call(this,b);var e=this;this.G=a;this.ma=d;this.I=new g.Vy(this);this.P=new g.PG(this,c,!0,void 0,void 0,function(){e.u&&e.element&&(e.u.getAttribute("aria-haspopup"),e.u.setAttribute("aria-expanded","true"),e.focus())}); g.J(this,this.I);g.J(this,this.P)}; cEa=function(a){a.u&&(document.activeElement&&g.og(a.element,document.activeElement)&&(qg(a.u),a.u.focus()),a.u.setAttribute("aria-expanded","false"),a.u=void 0);g.Tt(a.I);a.J=void 0}; tJ=function(a,b,c){a.Xg()?a.Db():a.md(b,c)}; uJ=function(a){var b=g.Hz(a.S().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{F:"div",Aa:["ytp-unmute-icon"],R:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]}, {F:"div",Aa:["ytp-unmute-text"],X:"Toque para ativar som"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({F:"div",Aa:["ytp-unmute-box"],R:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.sJ.call(this,a,{F:"button",Aa:["ytp-unmute","ytp-popup","ytp-button"].concat(c),R:[{F:"div",L:"ytp-unmute-inner",R:d}]},100);this.j=this.clicked=!1;this.api=a;this.api.zb(this.element,this,51663);this.N(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.N(a, "presentingplayerstatechange",this.dh);this.Ja("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.IA(this.api.S());g.dG(this,a);a&&dEa(this);this.B=a}; dEa=function(a){a.j||(a.j=!0,a.api.Va(a.element,!0))}; g.wJ=function(a){g.Vy.call(this);var b=this;this.api=a;this.LH=!1;this.pm=null;this.WA=!1;this.jf=null;this.NF=this.BD=!1;this.UJ=this.WJ=null;this.PO=NaN;this.TJ=this.vx=!1;this.Iy=0;this.gF=[];this.BI=!1;this.PB={height:0,width:0};var c=a.S(),d=a.Wa();this.PB=a.getPlayerSize();this.CM=new g.K(this.XH,0,this);g.J(this,this.CM);c.isMusic()||(this.fn=new g.eJ(a),g.J(this,this.fn),g.rI(a,this.fn.element,4));if(eEa(this)){var e=new rJ(a);g.J(this,e);e=e.element;g.rI(a,e,4)}var f=a.getVideoData();this.Nd= new cJ(d,function(l){return b.MA(l)},f,c.Ue,lB(c)); g.J(this,this.Nd);this.Nd.subscribe("autohideupdate",this.Qk,this);if(!c.disablePaidContentOverlay){var k=new qJ(a);g.J(this,k);g.rI(a,k.element,4)}this.FD=new uJ(a);g.J(this,this.FD);g.rI(this.api,this.FD.element,2);this.aH=this.api.isMutedByMutedAutoplay();this.N(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.xD=new g.K(this.Rv,200,this);g.J(this,this.xD);this.wH=f.videoId;this.YQ=new g.K(function(){b.Iy=0},350); g.J(this,this.YQ);this.bB=new g.K(function(){b.TJ||vJ(b)},350,this); g.J(this,this.bB);f=a.getRootNode();f.setAttribute("aria-label","Player de v\u00eddeo do YouTube");switch(c.color){case "white":g.vn(f,"ytp-color-white")}c.isMusic()&&g.vn(f,"ytp-music-player");!a.K("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new oJ(a),g.J(this,f));this.N(a,"appresize",this.ub);this.N(a,"presentingplayerstatechange",this.dh);this.N(a,"videodatachange",this.onVideoDataChange);this.N(a,"videoplayerreset",this.OZ);this.N(a, "autonavvisibility",function(){b.Hm()}); this.N(a,"sizestylechange",function(){b.Hm()}); this.N(d,"click",this.l_,this);this.N(d,"dblclick",this.m_,this);c.Za&&(this.N(d,"gesturechange",this.n_,this),this.N(d,"gestureend",this.o_,this));this.Mp=[d.kx];this.fn&&this.Mp.push(this.fn.element);e&&this.Mp.push(e)}; xJ=function(a,b){if(!b)return!1;var c=a.api.Ed();if(c.Dq()&&(c=c.df())&&g.og(c,b))return c.controls;for(c=0;c1+b&&a.api.toggleFullscreen()}; eEa=function(a){a=iq()&&67<=yla()&&!a.api.S().I;return!hq("tizen")&&!FA&&!a&&!0}; AJ=function(a,b){b=void 0===b?2:b;g.Ut.call(this);this.api=a;this.j=null;this.Lc=new Rt(this);g.J(this,this.Lc);this.u=ZBa;this.Lc.N(this.api,"presentingplayerstatechange",this.Uc);this.j=this.Lc.N(this.api,"progresssync",this.Rb);this.il=b;1===this.il&&this.Rb()}; BJ=function(a){g.V.call(this,{F:"button",Aa:["ytp-button","ytp-back-button"],R:[{F:"div",L:"ytp-arrow-back-icon",R:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},R:[{F:"path",T:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",Ib:!0,T:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.G=a;g.dG(this,a.S().showBackButton);this.Ja("click",this.onClick)}; g.CJ=function(a){g.V.call(this,{F:"div",R:[{F:"div",L:"ytp-bezel-text-wrapper",R:[{F:"div",L:"ytp-bezel-text",X:"{{title}}"}]},{F:"div",L:"ytp-bezel",T:{role:"status","aria-label":"{{label}}"},R:[{F:"div",L:"ytp-bezel-icon",X:"{{icon}}"}]}]});this.G=a;this.u=new g.K(this.show,10,this);this.j=new g.K(this.hide,500,this);g.J(this,this.u);g.J(this,this.j);this.hide()}; EJ=function(a,b,c){if(0>=b){c=sG();b="som desativado";var d=0}else c=c?{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Ib:!0,T:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Ib:!0,T:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";DJ(a,c,b,d+"%")}; iEa=function(a,b){b=b?{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};var c=a.G.getPlaybackRate(),d=g.OE("A taxa de reprodu\u00e7\u00e3o \u00e9 $RATE",{RATE:String(c)});DJ(a,b,d,c+"x")}; jEa=function(a,b){b=b?"Legendas/legendas ocultas ativadas":"Legendas/legendas ocultas desativadas";DJ(a,RDa(),b)}; DJ=function(a,b,c,d){d=void 0===d?"":d;a.updateValue("label",void 0===c?"":c);lB(a.G.S())?a.updateValue("icon",null):a.updateValue("icon",b);g.qn(a.j);a.u.start();a.updateValue("title",d);g.N(a.element,"ytp-bezel-text-hide",!d)}; GJ=function(a,b,c){g.V.call(this,{F:"button",Aa:["ytp-button","ytp-cards-button"],T:{"aria-label":"Exibir cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.IA(a.S()))},R:[{F:"span",L:"ytp-cards-button-icon-default",R:[{F:"div",L:"ytp-cards-button-icon",R:[a.S().K("player_new_info_card_format")?wBa():{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {F:"div",L:"ytp-cards-button-title",X:"Informa\u00e7\u00f5es"}]},{F:"span",L:"ytp-cards-button-icon-shopping",R:[{F:"div",L:"ytp-cards-button-icon",R:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",L:"ytp-svg-shadow",T:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{F:"path",L:"ytp-svg-fill",T:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{F:"path",L:"ytp-svg-shadow-fill",T:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{F:"div", L:"ytp-cards-button-title",X:"Compras"}]}]});this.G=a;this.B=b;this.C=c;this.j=null;this.u=new g.PG(this,250,!0,100);g.J(this,this.u);g.N(this.C,"ytp-show-cards-title",g.IA(a.S()));this.hide();this.Ja("click",this.onClicked);this.Ja("mouseover",this.mZ);FJ(this,!0)}; FJ=function(a,b){b?a.j=g.HJ(a.B.Zb(),a.element):(a.j=a.j,a.j(),a.j=null)}; IJ=function(a,b,c){g.V.call(this,{F:"div",L:"ytp-cards-teaser",R:[{F:"div",L:"ytp-cards-teaser-box"},{F:"div",L:"ytp-cards-teaser-text",R:a.S().K("player_new_info_card_format")?[{F:"button",L:"ytp-cards-teaser-info-icon",T:{"aria-label":"Exibir cards","aria-haspopup":"true"},R:[wBa()]},{F:"span",L:"ytp-cards-teaser-label",X:"{{text}}"},{F:"button",L:"ytp-cards-teaser-close-button",T:{"aria-label":"Fechar"},R:[g.kG()]}]:[{F:"span",L:"ytp-cards-teaser-label",X:"{{text}}"}]}]});var d=this;this.G=a;this.U= b;this.kh=c;this.C=new g.PG(this,250,!1,250);this.j=null;this.J=new g.K(this.AZ,300,this);this.I=new g.K(this.zZ,2E3,this);this.D=[];this.u=null;this.P=new g.K(function(){d.element.style.margin="0"},250); this.onClickCommand=this.B=null;g.J(this,this.C);g.J(this,this.J);g.J(this,this.I);g.J(this,this.P);a.S().K("player_new_info_card_format")?(g.vn(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.N(this.va("ytp-cards-teaser-close-button"),"click",this.Mj),this.N(this.va("ytp-cards-teaser-info-icon"),"click",this.KJ),this.N(this.va("ytp-cards-teaser-label"),"click",this.KJ)):this.Ja("click",this.KJ);this.N(c.element,"mouseover",this.xL);this.N(c.element,"mouseout",this.wL);this.N(a,"cardsteasershow", this.L_);this.N(a,"cardsteaserhide",this.Db);this.N(a,"cardstatechange",this.XR);this.N(a,"presentingplayerstatechange",this.XR);this.N(a,"appresize",this.iK);this.N(a,"onShowControls",this.iK);this.N(a,"onHideControls",this.TV);this.Ja("mouseenter",this.VT)}; KJ=function(a){g.V.call(this,{F:"button",Aa:[JJ.BUTTON,JJ.TITLE_NOTIFICATIONS],T:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},R:[{F:"div",L:JJ.TITLE_NOTIFICATIONS_ON,T:{title:"Deixar de receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"},R:[g.oG()]},{F:"div",L:JJ.TITLE_NOTIFICATIONS_OFF,T:{title:"Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"}, R:[{F:"svg",T:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},R:[{F:"path",T:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=a;this.j=!1;a.zb(this.element,this,36927);this.Ja("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos")}; kEa=function(a,b){a.j=b;a.element.classList.toggle(JJ.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.UE:c.SE)?(a=a.api.Yl())?AH(a,b):g.Cp(Error("No innertube service available when updating notification preferences.")):g.Cp(Error("No update preferences command available.")):g.Cp(Error("No video data when updating notification preferences."))}; g.MJ=function(a,b,c,d,e,f,k,l,m,n,p,q,t){t=void 0===t?null:t;f&&(a=a.charAt(0)+a.substring(1).toLowerCase(),c=c.charAt(0)+c.substring(1).toLowerCase());if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var u=q.S();if(p){c={href:p,"aria-label":"Inscrever-se no canal"};if(g.OA(u)||g.SA(u))c.target=u.J;g.V.call(this,{F:"div",Aa:["ytp-button","ytp-sb"],R:[{F:"a",L:"ytp-sb-subscribe",T:c,R:[{F:"div",L:"ytp-sb-text",R:[{F:"div",L:"ytp-sb-icon"},a]},b?{F:"div",L:"ytp-sb-count",X:b}:""]}]});f&&g.vn(this.element, "ytp-sb-classic");this.channelId=k;this.j=t}else{p=u.userDisplayName&&g.OA(u)&&!u.K("subscribe_tooltipkillswitch");g.V.call(this,{F:"div",Aa:["ytp-button","ytp-sb"],R:[{F:"div",L:"ytp-sb-subscribe",T:p?{title:g.OE("Inscrever-se como $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Inscrever-se no canal","data-tooltip-image":pB(u),"data-tooltip-opaque":String(g.IA(u)),tabindex:"0",role:"button"}:{"aria-label":"Inscrever-se no canal"},R:[{F:"div",L:"ytp-sb-text",R:[{F:"div",L:"ytp-sb-icon"}, a]},b?{F:"div",L:"ytp-sb-count",X:b}:""]},{F:"div",L:"ytp-sb-unsubscribe",T:p?{title:g.OE("Inscrito como $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Cancelar inscri\u00e7\u00e3o no canal","data-tooltip-image":pB(u),"data-tooltip-opaque":String(g.IA(u)),tabindex:"0",role:"button"}:{"aria-label":"Cancelar inscri\u00e7\u00e3o no canal"},R:[{F:"div",L:"ytp-sb-text",R:[{F:"div",L:"ytp-sb-icon"},c]},d?{F:"div",L:"ytp-sb-count",X:d}:""]}]});var x=this;this.channelId=k;this.j=t;var y=this.va("ytp-sb-subscribe"), z=this.va("ytp-sb-unsubscribe");f&&g.vn(this.element,"ytp-sb-classic");if(e){l?this.u():this.B();var D=function(){var F=x.channelId;if(m||n){var L={c:F};if(q.S().K("embeds_botguard_with_subscribe_killswitch"))L="";else{var aa;g.PH.isInitialized()&&(aa=FCa(L));L=aa||""}if(aa=q.getVideoData())if(aa=aa.subscribeCommand){var M=q.Yl();M?(AH(M,aa,{botguardResponse:L,feature:m}),q.Ia("SUBSCRIBE",F)):g.Cp(Error("No innertube service available when updating subscriptions."))}else g.Cp(Error("No subscribe command in videoData.")); else g.Cp(Error("No video data available when updating subscription."))}z.focus();z.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},G=function(){var F=x.channelId; if(m||n){var L=q.getVideoData();AH(q.Yl(),L.unsubscribeCommand,{feature:m});q.Ia("UNSUBSCRIBE",F)}y.focus();y.removeAttribute("aria-hidden");z.setAttribute("aria-hidden","true")}; this.N(y,"click",D);this.N(z,"click",G);this.N(y,"keypress",function(F){13===F.keyCode&&D(F)}); this.N(z,"keypress",function(F){13===F.keyCode&&G(F)}); this.N(q,"SUBSCRIBE",this.u);this.N(q,"UNSUBSCRIBE",this.B);this.j&&p&&(this.tooltip=this.j.Zb(),LJ(this.tooltip),g.ge(this,g.HJ(this.tooltip,y)),g.ge(this,g.HJ(this.tooltip,z)))}else g.vn(y,"ytp-sb-disabled"),g.vn(z,"ytp-sb-disabled")}}; NJ=function(a,b){g.V.call(this,{F:"div",L:"ytp-title-channel",R:[{F:"div",L:"ytp-title-beacon"},{F:"a",L:"ytp-title-channel-logo",T:{href:"{{channelLink}}",target:a.S().J,"aria-label":"{{channelLogoLabel}}"}},{F:"div",L:"ytp-title-expanded-overlay",T:{"aria-hidden":"{{flyoutUnfocusable}}"},R:[{F:"div",L:"ytp-title-expanded-heading",R:[{F:"h2",L:"ytp-title-expanded-title",R:[{F:"a",X:"{{expandedTitle}}",T:{href:"{{channelTitleLink}}",target:a.S().J,tabIndex:"{{channelTitleFocusable}}"}}]},{F:"h3", L:"ytp-title-expanded-subtitle",X:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.I=b;this.channel=this.va("ytp-title-channel");this.j=this.va("ytp-title-channel-logo");this.C=this.va("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.D=g.IA(this.api.S());a.zb(this.j,this,36925);this.D&&lEa(this);this.N(a,"videodatachange",this.Ea);this.N(a,"videoplayerreset",this.Ea);this.Ea()}; lEa=function(a){var b=a.api.S(),c=a.api.getVideoData();if(!b.xe){var d=b.authUser?null:dCa(),e=new g.MJ("Inscreva-se",null,"Inscrito",null,!0,!1,c.gk,c.subscribed,"channel_avatar",null,d,a.api,a.I);a.subscribeButton=e;g.J(a,e);e.ra(a.C);a.api.zb(e.element,a,36926);e.hide();a.N(e.element,"click",function(){a.api.qb(e.element)}); var f=new KJ(a.api);a.u=f;g.J(a,f);f.ra(a.C);f.hide();a.N(a.api,"SUBSCRIBE",function(){c.Yi&&f.show()}); a.N(a.api,"UNSUBSCRIBE",function(){c.Yi&&(f.hide(),kEa(f,!1))})}a.updateValue("flyoutUnfocusable","true"); a.updateValue("channelTitleFocusable","-1");b.isMobile||b.Uj?a.N(a.j,"click",function(k){mEa(a)&&(k.preventDefault(),a.isExpanded()?a.HF():a.hG());a.api.qb(a.j)}):(a.N(a.channel,"mouseenter",a.hG),a.N(a.channel,"mouseleave",a.HF),a.N(a.channel,"focusin",a.hG),a.N(a.channel,"focusout",function(k){a.channel.contains(k.relatedTarget)||a.HF()}),a.N(a.j,"click",function(){a.api.qb(a.j)})); a.B=new g.K(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.Va(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.Va(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500); g.J(a,a.B);a.N(a.channel,nEa,function(){oEa(a)}); a.N(a.api,"onHideControls",a.ZI);a.N(a.api,"appresize",a.ZI);a.N(a.api,"fullscreentoggled",a.ZI)}; oEa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")}; mEa=function(a){var b=a.api.getPlayerSize();return a.D&&524<=b.width}; pEa=function(a,b){var c={};a.api.S().Z&&g.XH(c,a.api.S().loaderUrl);return g.ph(b,g.WH(c,"emb_ch_name_ex"))}; g.OJ=function(a,b,c,d){g.eG.call(this,a);this.priority=b;c&&this.jg(c);d&&this.Gd(d)}; g.PJ=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{F:c?"a":"div",Aa:b,T:a,R:[{F:"div",L:"ytp-menuitem-icon",X:"{{icon}}"},{F:"div",L:"ytp-menuitem-label",X:"{{label}}"},{F:"div",L:"ytp-menuitem-content",X:"{{content}}"}]}}; QJ=function(a,b){a.updateValue("icon",b)}; RJ=function(a,b,c,d,e,f){var k={F:"div",L:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={F:"div",L:"ytp-panel-header",R:[{F:"div",Aa:["ytp-panel-back-button-container"],R:[{T:{"aria-label":"Voltar ao menu anterior"},F:"button",Aa:["ytp-button",l]}]},{T:{tabindex:"0"},F:"span",Aa:[m],R:[c]}]};if(e){var p="ytp-panel-options";n.R.push({F:"button",Aa:["ytp-button",p],R:[d]})}k.R=[n]}d=!1;f&&(f={F:"div",L:"ytp-panel-footer",R:[f]},d=!0,k.R?k.R.push(f):k.R=[f]);g.eG.call(this, k);this.content=b;d&&k.R?b.ra(this.element,k.R.length-1):b.ra(this.element);this.hasHeader=!1;this.mO=d;c&&(c=this.va(l),m=this.va(m),this.N(c,"click",this.CP),this.N(m,"click",this.CP),this.hasHeader=!0,e&&(p=this.va(p),this.N(p,"click",e)));b.subscribe("size-change",this.JP,this);this.N(a,"fullscreentoggled",this.JP);g.N(this.element,"ytp-panel-min-width-killswitch",a.S().K("player_panel_min_width_killswitch"));this.G=a}; qEa=function(a,b){var c=new g.eG({F:"div",L:"ytp-multi-item-panel"});a.content.ra(c.element);b.ra(c.element);a.content=c;c.ra(a.element);g.J(a,c)}; g.SJ=function(a,b,c,d,e,f){b=void 0===b?null:b;var k={role:"menu"};b&&(k.id=b);b=new g.eG({F:"div",L:"ytp-panel-menu",T:k});RJ.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.J(this,this.menuItems)}; g.TJ=function(a){for(var b=g.r(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.pI,a);a.items=[];g.kg(a.menuItems.element);a.menuItems.W("size-change")}; rEa=function(a,b){return b.priority-a.priority}; UJ=function(a){var b=g.PJ({"aria-haspopup":"true"});g.OJ.call(this,b,a);this.Ja("keydown",this.j)}; VJ=function(a,b){a.element.setAttribute("aria-haspopup",String(b))}; WJ=function(a,b){g.OJ.call(this,g.PJ({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{F:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Ja("click",this.onClick)}; XJ=function(a,b){g.V.call(this,{F:"div",L:"ytp-user-info-panel",T:{"aria-label":"Informa\u00e7\u00f5es do usu\u00e1rio"},R:a.S().authUser&&!a.K("embeds_web_always_enable_signed_out_state")?[{F:"div",L:"ytp-user-info-panel-icon",X:"{{icon}}"},{F:"div",L:"ytp-user-info-panel-content",R:[{F:"div",L:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable}}",role:"text"},X:"{{watchingAsUsername}}"},{F:"div",L:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable2}}",role:"text"},X:"{{watchingAsEmail}}"}]}]: [{F:"div",L:"ytp-user-info-panel-icon",X:"{{icon}}"},{F:"div",L:"ytp-user-info-panel-content",R:[{F:"div",R:[{F:"text",T:{tabIndex:"{{userInfoFocusable}}"},X:"Conta desconectada"}]},{F:"div",L:"ytp-user-info-panel-login",R:[{F:"a",T:{tabIndex:"{{userInfoFocusable2}}",role:"button"},X:a.S().xe?"":"Fazer login no YouTube"}]}]}]});this.Ma=a;this.j=b;a.S().authUser||a.S().xe||(a=this.va("ytp-user-info-panel-login"),this.N(a,"click",this.ZT));this.closeButton=new g.V({F:"button",Aa:["ytp-collapse","ytp-button"], T:{title:"Fechar"},R:[g.CBa()]});this.closeButton.ra(this.element);g.J(this,this.closeButton);this.N(window,"blur",this.hide);this.N(document,"click",this.XT);this.Ea()}; YJ=function(a,b,c,d){g.SJ.call(this,a);this.gb=c;this.zc=d;this.getVideoUrl=new UJ(6);this.Gk=new UJ(5);this.Dk=new UJ(4);this.Lb=new UJ(3);this.qz=new g.OJ(g.PJ({href:"{{href}}",target:this.G.S().J},void 0,!0),2,"Resolver problemas de reprodu\u00e7\u00e3o");this.showVideoInfo=new g.OJ(g.PJ(),1,"Estat\u00edsticas para nerds");this.fu=new g.eG({F:"div",Aa:["ytp-copytext","ytp-no-contextmenu"],T:{draggable:"false",tabindex:"1"},X:"{{text}}"});this.cN=new RJ(this.G,this.fu);this.Qz=this.Ap=null;g.IA(this.G.S())&& this.G.K("embeds_web_enable_user_info_in_context_menu")&&(this.Zj=new g.OJ(g.PJ(),8,"Conta"),g.J(this,this.Zj),this.yc(this.Zj,!0),this.Zj.Ja("click",this.y_,this),a.zb(this.Zj.element,this.Zj,137682));this.G.S().ql&&(this.Hj=new WJ("Loop",7),g.J(this,this.Hj),this.yc(this.Hj,!0),this.Hj.Ja("click",this.tZ,this),a.zb(this.Hj.element,this.Hj,28661));g.J(this,this.getVideoUrl);this.yc(this.getVideoUrl,!0);this.getVideoUrl.Ja("click",this.jZ,this);a.zb(this.getVideoUrl.element,this.getVideoUrl,28659); g.J(this,this.Gk);this.yc(this.Gk,!0);this.Gk.Ja("click",this.kZ,this);a.zb(this.Gk.element,this.Gk,28660);g.J(this,this.Dk);this.yc(this.Dk,!0);this.Dk.Ja("click",this.iZ,this);a.zb(this.Dk.element,this.Dk,28658);g.J(this,this.Lb);this.yc(this.Lb,!0);this.Lb.Ja("click",this.hZ,this);g.J(this,this.qz);this.yc(this.qz,!0);this.qz.Ja("click",this.h_,this);g.J(this,this.showVideoInfo);this.yc(this.showVideoInfo,!0);this.showVideoInfo.Ja("click",this.z_,this);g.J(this,this.fu);this.fu.Ja("click",this.WY, this);g.J(this,this.cN);b=document.queryCommandSupported&&document.queryCommandSupported("copy");43<=Bb("Chromium")&&(b=!0);40>=Bb("Firefox")&&(b=!1);b&&(this.Ap=new g.V({F:"textarea",L:"ytp-html5-clipboard",T:{readonly:""}}),g.J(this,this.Ap),this.Ap.ra(this.element));var e;null==(e=this.Zj)||QJ(e,zBa());var f;null==(f=this.Hj)||QJ(f,{F:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},R:[{F:"path",T:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]}); QJ(this.Lb,{F:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},R:[{F:"path",T:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});QJ(this.qz,{F:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},R:[{F:"path",T:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z", fill:"white","fill-rule":"evenodd"}}]});QJ(this.showVideoInfo,vBa());this.N(a,"onLoopChange",this.onLoopChange);this.N(a,"videodatachange",this.onVideoDataChange);sEa(this);this.rJ(this.G.getVideoData())}; $J=function(a,b){var c=!1;if(a.Ap){var d=a.Ap.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.gb.Db():(a.fu.Gd(b,"text"),g.ZJ(a.gb,a.cN),iJ(a.fu.element),a.Ap&&(a.Ap=null,sEa(a)));return c}; sEa=function(a){var b=!!a.Ap;a.Lb.jg(b?"Copiar informa\u00e7\u00f5es de depura\u00e7\u00e3o":"Ver informa\u00e7\u00f5es sobre depura\u00e7\u00e3o");VJ(a.Lb,!b);a.Dk.jg(b?"Copiar c\u00f3digo de incorpora\u00e7\u00e3o":"Ver c\u00f3digo de incorpora\u00e7\u00e3o");VJ(a.Dk,!b);a.getVideoUrl.jg(b?"Copiar URL do v\u00eddeo":"Ver URL do v\u00eddeo");VJ(a.getVideoUrl,!b);a.Gk.jg(b?"Copiar URL do v\u00eddeo no momento atual":"Ver URL do v\u00eddeo no tempo atual");VJ(a.Gk,!b);QJ(a.Dk,b?tBa():null);QJ(a.getVideoUrl, b?mG():null);QJ(a.Gk,b?mG():null)}; g.aK=function(a,b){g.sJ.call(this,a,{F:"div",Aa:["ytp-popup",b||""]},100,!0);this.j=[];this.D=this.C=null;this.maxHeight=this.maxWidth=0;this.size=new g.Lf(0,0);this.Ja("keydown",this.aU)}; tEa=function(a){var b=a.j[a.j.length-1];if(b){g.Rk(a.element,a.maxWidth||"100%",a.maxHeight||"100%");b.G.S().K("player_panel_min_width_killswitch")&&g.Bk(b.element,"minWidth","250px");g.Bk(b.element,"width","");g.Bk(b.element,"height","");g.Bk(b.element,"maxWidth","100%");g.Bk(b.element,"maxHeight","100%");g.Bk(b.content.element,"height","");var c=g.Sk(b.element);c.width+=1;c.height+=1;g.Bk(b.element,"width",c.width+"px");g.Bk(b.element,"height",c.height+"px");g.Bk(b.element,"maxWidth","");g.Bk(b.element, "maxHeight","");var d=0;b.hasHeader&&(d=b.va("ytp-panel-header"),d=g.Sk(d).height);var e=0;b.mO&&(e=b.va("ytp-panel-footer"),g.Bk(e,"width",c.width+"px"),e=g.Sk(e).height);g.Bk(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];bK(a,b,c,!0)}}; bK=function(a,b,c,d){uEa(a);b&&(b.unsubscribe("size-change",a.Xv,a),b.unsubscribe("back",a.Gi,a));c.subscribe("size-change",a.Xv,a);c.subscribe("back",a.Gi,a);if(a.kb){g.vn(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.ra(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;tEa(a);g.Rk(a.element,e);a.C=new g.K(function(){vEa(a,b,c,d)},20,a); a.C.start()}else c.ra(a.element),b&&b.detach()}; vEa=function(a,b,c,d){a.C.dispose();a.C=null;g.vn(a.element,"ytp-popup-animating");d?(g.vn(b.element,"ytp-panel-animate-forward"),g.xn(c.element,"ytp-panel-animate-back")):(g.vn(b.element,"ytp-panel-animate-back"),g.xn(c.element,"ytp-panel-animate-forward"));g.Rk(a.element,a.size);a.D=new g.K(function(){g.xn(a.element,"ytp-popup-animating");b.detach();g.yn(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.D.dispose();a.D=null},250,a); a.D.start()}; uEa=function(a){a.C&&g.pn(a.C);a.D&&g.pn(a.D)}; g.dK=function(a,b,c){g.aK.call(this,a);this.ea=b;this.zc=c;this.B=new g.Vy(this);this.U=new g.K(this.Q_,1E3,this);this.V=this.panel=null;g.J(this,this.B);g.J(this,this.U);a.zb(this.element,this,28656);g.vn(this.element,"ytp-contextmenu");wEa(this);this.hide()}; wEa=function(a){g.Tt(a.B);if("gvn"!==a.G.S().playerStyle){var b=a.G.Wa();a.B.N(b,"contextmenu",a.SY);a.B.N(b,"touchstart",a.cU,null,!0);a.B.N(b,"touchmove",a.lQ,null,!0);a.B.N(b,"touchend",a.lQ,null,!0)}}; xEa=function(a){a.G.isFullscreen()?g.rI(a.G,a.element,10):a.ra(document.body)}; g.eK=function(a,b,c){c=void 0===c?240:c;g.V.call(this,{F:"button",Aa:["ytp-button","ytp-copylink-button"],T:{title:"{{title-attr}}","data-tooltip-opaque":String(g.IA(a.S()))},R:[{F:"div",L:"ytp-copylink-icon",X:"{{icon}}"},{F:"div",L:"ytp-copylink-title",X:"Copiar link",T:{"aria-hidden":"true"}}]});this.api=a;this.j=b;this.u=c;this.visible=!1;this.tooltip=this.j.Zb();b=a.S();LJ(this.tooltip);g.N(this.element,"ytp-show-copylink-title",g.IA(b)&&!b.isMusic());a.zb(this.element,this,86570);this.Ja("click", this.onClick);this.N(a,"videodatachange",this.Ea);this.N(a,"videoplayerreset",this.Ea);this.N(a,"appresize",this.Ea);this.Ea();g.ge(this,g.HJ(this.tooltip,this.element))}; yEa=function(a){a.updateValue("icon",hG());if(a.api.S().isMobile)fK(a.tooltip,a.element,"Link copiado para a \u00e1rea de transfer\u00eancia");else{a.updateValue("title-attr","Link copiado para a \u00e1rea de transfer\u00eancia");gK(a.tooltip);fK(a.tooltip,a.element);var b=a.Ja("mouseleave",function(){a.pc(b);a.Ea();a.tooltip.xk()})}}; zEa=function(a,b){return g.B(function(c){if(1==c.j)return g.wa(c,2),g.A(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.ya(c);var d=c.return,e=!1,f=g.ig("TEXTAREA");f.value=b;f.setAttribute("readonly","");var k=a.api.getRootNode();k.appendChild(f);if(pq){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}k.removeChild(f); return d.call(c,e)})}; hK=function(){g.V.call(this,{F:"div",L:"ytp-doubletap-ui",R:[{F:"div",Aa:["ytp-seek-info-container","ytp-seek-static-circle"],R:[{F:"div",L:"ytp-seek-arrows-container",R:[{F:"span",L:"ytp-seek-base-arrow"},{F:"span",L:"ytp-seek-base-arrow"},{F:"span",L:"ytp-seek-base-arrow"}]},{F:"div",L:"ytp-seek-tooltip",R:[{F:"div",L:"ytp-chapter-seek-text",X:"{{chapterSeekText}}"},{F:"div",L:"ytp-seek-tooltip-label",X:"{{seekTime}}"}]}]}]});this.u=new g.K(this.show,10,this);this.j=new g.K(this.hide,700,this); g.J(this,this.u);g.J(this,this.j);this.hide()}; iK=function(a){g.V.call(this,{F:"div",L:"ytp-doubletap-ui-legacy",R:[{F:"div",L:"ytp-doubletap-fast-forward-ve"},{F:"div",L:"ytp-doubletap-rewind-ve"},{F:"div",L:"ytp-doubletap-static-circle",R:[{F:"div",L:"ytp-doubletap-ripple"}]},{F:"div",L:"ytp-doubletap-overlay-a11y"},{F:"div",L:"ytp-doubletap-seek-info-container",R:[{F:"div",L:"ytp-doubletap-arrows-container",R:[{F:"span",L:"ytp-doubletap-base-arrow"},{F:"span",L:"ytp-doubletap-base-arrow"},{F:"span",L:"ytp-doubletap-base-arrow"}]},{F:"div", L:"ytp-doubletap-tooltip",R:[{F:"div",L:"ytp-chapter-seek-text-legacy",X:"{{seekText}}"},{F:"div",L:"ytp-doubletap-tooltip-label",X:"{{seekTime}}"}]}]}]});this.G=a;this.B=new g.K(this.show,10,this);this.u=new g.K(this.hide,700,this);this.j=this.va("ytp-doubletap-static-circle");g.J(this,this.B);g.J(this,this.u);this.hide();this.C=this.va("ytp-doubletap-fast-forward-ve");this.D=this.va("ytp-doubletap-rewind-ve");this.G.zb(this.C,this,28240);this.G.zb(this.D,this,28239);this.G.Va(this.C,!0);this.G.Va(this.D, !0)}; AEa=function(a,b){b=g.OE("$TOTAL_SEEK_TIME segundos",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)}; jK=function(a){var b=null;try{b=a.toLocaleString("pt-BR",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b}; kK=function(a,b){var c=0;a=g.r(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1}; BEa=function(a,b){for(var c=0,d=g.r(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b=e.timeRangeStartMillis&&bd;e={xo:e.xo},f++){e.xo=c[f];a:switch(e.xo.img||e.xo.iconId){case "facebook":var k={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},R:[{F:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",T:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z", fill:"#39579b"}}]};break a;case "twitter":k={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},R:[{F:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",T:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z", fill:"#01abf0"}}]};break a;default:k=null}k&&(k=new g.V({F:"a",Aa:["ytp-share-panel-service-button","ytp-button"],T:{href:e.xo.url,target:"_blank",title:e.xo.sname||e.xo.serviceName},R:[k]}),k.Ja("click",function(m){return function(n){if(g.dH(n)){var p=m.xo.url;var q=void 0===q?{}:q;q.target=q.target||"YouTube";q.width=q.width||"600";q.height=q.height||"600";var t=q;t||(t={});q=window;var u=p instanceof g.jf?p:g.mf("undefined"!=typeof p.href?p.href:String(p));var x=void 0!==self.crossOriginIsolated, y="strict-origin-when-cross-origin";window.Request&&(y=(new Request("/")).referrerPolicy);var z="unsafe-url"===y;y=t.noreferrer;if(x&&y){if(z)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");y=!1}p=t.target||p.target;x=[];for(var D in t)switch(D){case "width":case "height":case "top":case "left":x.push(D+"="+t[D]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(D+"="+(t[D]?1:0))}D=x.join(",");Fb()&& q.navigator&&q.navigator.standalone&&p&&"_self"!=p?(t=g.ig("A"),g.Cf(t,u),t.target=p,y&&(t.rel="noreferrer"),u=document.createEvent("MouseEvent"),u.initMouseEvent("click",!0,!0,q,1),t.dispatchEvent(u),q={}):y?(q=Df("",q,p,D),u=g.kf(u),q&&(g.mB&&g.ib(u,";")&&(u="'"+u.replace(/'/g,"%27")+"'"),q.opener=null,""===u&&(u="javascript:''"),u=g.xf(g.df("b/12014412, meta tag with sanitized URL"),''),(t=q.document)&& t.write&&(t.write(g.uf(u)),t.close()))):(q=Df(u,q,p,D))&&t.noopener&&(q.opener=null);q&&(q.opener||(q.opener=window),q.focus());g.Ys(n)}}}(e)),g.ge(k,g.HJ(a.tooltip,k.element)),a.j.push(k),d++)}var l=b.more||b.moreLink; b=new g.V({F:"a",Aa:["ytp-share-panel-service-button","ytp-button"],R:[{F:"span",L:"ytp-share-panel-service-button-more",R:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},R:[{F:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",T:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],T:{href:l,target:"_blank",title:"Mais"}});b.Ja("click",function(m){g.gJ(l,a.api,m)&&a.api.Ia("SHARE_CLICKED")}); g.ge(b,g.HJ(a.tooltip,b.element));a.j.push(b);a.updateValue("buttons",a.j)}; MEa=function(a){for(var b=g.r(a.j),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.ee(c);a.j=[]}; TK=function(a,b,c){c=void 0===c?!0:c;g.V.call(this,{F:"div",L:"ytp-suggested-action"});var d=this;this.G=a;this.Ya=b;this.Pa=this.J=this.j=this.D=this.C=this.u=this.expanded=this.enabled=this.B=!1;this.Ga=new g.K(function(){d.badge.element.style.width=""},200,this); this.V=new g.K(function(){RK(d);SK(d)},200,this); this.dismissButton=new g.V({F:"button",Aa:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.J(this,this.dismissButton);this.I=new g.V({F:"div",L:"ytp-suggested-action-badge-expanded-content-container",R:[{F:"label",L:"ytp-suggested-action-badge-title",X:"{{badgeLabel}}"},this.dismissButton]});g.J(this,this.I);this.badge=new g.V({F:"button",Aa:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],R:[c?{F:"div",L:"ytp-suggested-action-badge-icon"}: "",this.I]});g.J(this,this.badge);this.badge.ra(this.element);this.P=new g.PG(this.badge,250,!1,100);g.J(this,this.P);this.ma=new g.PG(this.I,250,!1,100);g.J(this,this.ma);this.Ka=new g.mn(this.Z0,null,this);g.J(this,this.Ka);this.ea=new g.mn(this.oW,null,this);g.J(this,this.ea);g.J(this,this.Ga);g.J(this,this.V);this.G.Vh(this.badge.element,this.badge,!0);this.G.Vh(this.dismissButton.element,this.dismissButton,!0);this.N(this.G,"onHideControls",function(){d.j=!1;SK(d);RK(d);d.pj()}); this.N(this.G,"onShowControls",function(){d.j=!0;SK(d);RK(d);d.pj()}); this.N(this.badge.element,"click",this.YH);this.N(this.dismissButton.element,"click",this.ZH);this.N(this.G,"pageTransition",this.gU);this.N(this.G,"appresize",this.pj);this.N(this.G,"fullscreentoggled",this.fZ);this.N(this.G,"cardstatechange",this.LY);this.N(this.G,"annotationvisibility",this.N1,this);this.N(this.G,"offlineslatestatechange",this.O1,this)}; RK=function(a){g.N(a.badge.element,"ytp-suggested-action-badge-with-controls",a.j||!a.u)}; SK=function(a,b){var c=a.J||a.j||!a.u;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.Ka.stop(),a.ea.stop(),a.Ga.stop(),a.Ka.start()):(g.dG(a.I,a.expanded),g.N(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),OEa(a))}; OEa=function(a){a.C&&a.G.Va(a.badge.element,a.Dz());a.D&&a.G.Va(a.dismissButton.element,a.Dz()&&(a.J||a.j||!a.u))}; PEa=function(a){var b=a.text||"";g.pg(g.dg("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Qa?a.Qa:"")}; QEa=function(a,b){b?a.D&&a.G.qb(a.dismissButton.element):a.C&&a.G.qb(a.badge.element)}; UK=function(a,b){TK.call(this,a,b);var c=this;this.U=this.xa=this.Ca=!1;this.N(this.G,g.mv("shopping_overlay_visible"),function(){c.nf(!0)}); this.N(this.G,g.nv("shopping_overlay_visible"),function(){c.nf(!1)}); this.N(this.G,g.mv("shopping_overlay_expanded"),function(){c.J=!0;SK(c)}); this.N(this.G,g.nv("shopping_overlay_expanded"),function(){c.J=!1;SK(c)}); this.N(this.G,"changeProductsInVideoVisibility",this.QZ);this.N(this.G,"videodatachange",this.onVideoDataChange);this.N(this.G,"paidcontentoverlayvisibilitychange",this.JZ)}; VK=function(a){a.G.yf("shopping_overlay_visible");a.G.yf("shopping_overlay_expanded")}; WK=function(a){g.sJ.call(this,a,{F:"button",Aa:["ytp-skip-intro-button","ytp-popup","ytp-button"],R:[{F:"div",L:"ytp-skip-intro-button-text",X:"Pular introdu\u00e7\u00e3o"}]},100);var b=this;this.D=!1;this.C=new g.K(function(){b.hide()},5E3); this.j=this.B=NaN;g.J(this,this.C);this.ea=function(){b.show()}; this.V=function(){b.hide()}; this.U=function(){var c=b.G.getCurrentTime();c>b.B/1E3&&c=f&&(p-=1/k);n-=2/k;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+q+"px "+t+"px/"+l+"px "+m+"px"}; g.cL=function(a){g.V.call(this,{F:"div",L:"ytp-storyboard-framepreview",R:[{F:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.va("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.Vy(this);this.j=new g.PG(this,100);g.J(this,this.events);g.J(this,this.j);this.N(this.api,"presentingplayerstatechange",this.Uc)}; dL=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.N(a.api,"videodatachange",function(){dL(a,a.api.ji())}),a.events.N(a.api,"progresssync",a.Ld),a.events.N(a.api,"appresize",a.D)),a.B=NaN,eL(a),a.j.show(200)):(c&&g.Tt(a.events),a.j.hide(),a.j.stop())}; eL=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.Wa().getPlayerSize(),e=KC(b,d.width);c=Fxa(b,e,c);c!==a.B&&(a.B=c,Dxa(b,c,d.width),b=Bxa(b,c,d.width),UEa(a.C,b,d.width,d.height))}; fL=function(a,b){g.V.call(this,{F:"button",Aa:["ytp-fullerscreen-edu-button","ytp-button"],R:[{F:"div",Aa:["ytp-fullerscreen-edu-text"],X:"Role para ver detalhes"},{F:"div",Aa:["ytp-fullerscreen-edu-chevron"],R:[{F:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},R:[{F:"path",T:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Ma=a;this.B=b;this.j=new g.PG(this,250,void 0,100);this.C=this.u=!1;a.zb(this.element,this,61214);this.B=b;g.J(this,this.j);this.N(a, "fullscreentoggled",this.Ea);this.N(a,"presentingplayerstatechange",this.Ea);this.Ja("click",this.onClick);this.Ea()}; g.gL=function(a,b){g.V.call(this,{F:"button",Aa:["ytp-fullscreen-button","ytp-button"],T:{title:"{{title}}"},X:"{{icon}}"});this.G=a;this.u=b;this.message=null;this.j=g.HJ(this.u.Zb(),this.element);this.B=new g.K(this.OV,2E3,this);g.J(this,this.B);this.N(a,"fullscreentoggled",this.Yj);this.N(a,"presentingplayerstatechange",this.Ea);this.Ja("click",this.onClick);g.Nt()&&(b=this.G.Wa(),this.N(b,Gqa(),this.iI),this.N(b,Qt(document),this.Qn));a.S().Za||a.S().I||this.disable();a.zb(this.element,this,139117); this.Ea();this.Yj(a.isFullscreen())}; hL=function(a,b,c){aL.call(this,a,b,c,"timedMarkerCueRange","Momentos importantes da visualiza\u00e7\u00e3o");this.N(a,g.nv("timedMarkerCueRange"),this.Rb);this.N(a,"updatemarkervisibility",this.updateVideoData)}; VEa=function(a){var b,c=null==(b=a.G.getVideoData())?void 0:b.Wc;if(c)for(a=a.C.Kc,c=g.r(c),b=c.next();!b.done;b=c.next())if(b=a[b.value])return b}; iL=function(a,b){g.V.call(this,{F:"button",Aa:["ytp-miniplayer-button","ytp-button"],T:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},R:[ABa()]});this.G=a;this.visible=!1;this.Ja("click",this.onClick);this.N(a,"fullscreentoggled",this.Ea);this.updateValue("title",jJ(a,"Miniplayer","i"));g.ge(this,g.HJ(b.Zb(),this.element));a.zb(this.element,this,62946);this.Ea()}; jL=function(a,b,c){g.V.call(this,{F:"button",Aa:["ytp-multicam-button","ytp-button"],T:{title:"Alternar c\u00e2mera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},R:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Ib:!0,T:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z", fill:"#fff"}}]}]});var d=this;this.G=a;this.j=!1;this.u=new g.K(this.B,400,this);this.tooltip=b.Zb();LJ(this.tooltip);g.J(this,this.u);this.Ja("click",function(){tJ(c,d.element,!1)}); this.N(a,"presentingplayerstatechange",function(){d.Ea(!1)}); this.N(a,"videodatachange",this.onVideoDataChange);this.Ea(!0);g.ge(this,g.HJ(this.tooltip,this.element))}; kL=function(a){g.sJ.call(this,a,{F:"div",L:"ytp-multicam-menu",T:{role:"dialog"},R:[{F:"div",L:"ytp-multicam-menu-header",R:[{F:"div",L:"ytp-multicam-menu-title",R:["Alternar c\u00e2mera",{F:"button",Aa:["ytp-multicam-menu-close","ytp-button"],T:{"aria-label":"Fechar"},R:[g.kG()]}]}]},{F:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.Vy(this);this.items=this.va("ytp-multicam-menu-items");this.j=[];g.J(this,this.B);a=this.va("ytp-multicam-menu-close");this.N(a,"click",this.Db);this.hide()}; lL=function(){g.I.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.mn(this.j,null,this);g.J(this,this.delay)}; WEa=function(a,b){if("path"===b.F)return b.T.d;if(b.R)for(var c=0;c=l)break}a.B=e;a.frameCount=b.nA();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.B.length;)e= void 0,null==(e=a.thumbnails.pop())||e.dispose();for(;a.thumbnails.lengthc.length;)d=void 0,null==(d=a.j.pop())||d.dispose();for(;a.j.length< c.length;)d=new vL,a.j.push(new vL),g.J(a,d);c=g.r(c.entries());for(d=c.next();!d.done;d=c.next())e=g.r(d.value),d=e.next().value,e=e.next().value,a.j[d].update({chapterTitle:e.title}),e=Math.round(e.startTime/b.j),f=Math.floor(e/b.rows),g.Bk(a.j[d].element,"transform","translateX("+e%b.rows*160*a.scale+"px)"),a.j[d].ra(a.thumbnails[f].element);a.U=!0}}}; uL=function(a,b){a.update({seekTime:g.cH(b)});var c=160*a.scale;b=b-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval}; lFa=function(a){return-((a.J.offsetWidth||160*(a.frameCount-1)*a.scale)-a.progressBarWidth/2)}; jFa=function(){g.V.call(this,{F:"div",L:"ytp-fine-scrubbing-thumbnail"})}; vL=function(){g.V.call(this,{F:"div",L:"ytp-fine-scrubbing-chapter-title",R:[{F:"div",L:"ytp-fine-scrubbing-chapter-title-content",X:"{{chapterTitle}}"}]})}; wL=function(a){g.V.call(this,{F:"div",L:"ytp-heat-map-chapter",R:[{F:"svg",L:"ytp-heat-map-svg",T:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},R:[{F:"defs",R:[{F:"clipPath",T:{id:"{{id}}"},R:[{F:"path",L:"ytp-heat-map-path",T:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{F:"rect",L:"ytp-heat-map-graph",T:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{F:"rect",L:"ytp-heat-map-hover",T:{"clip-path":"url(#hm_1)", height:"100%",x:"0",y:"0"}},{F:"rect",L:"ytp-heat-map-play",T:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.I=this.va("ytp-heat-map-svg");this.D=this.va("ytp-heat-map-path");this.C=this.va("ytp-heat-map-graph");this.B=this.va("ytp-heat-map-play");this.u=this.va("ytp-heat-map-hover");this.isValid=!1;this.j=60;this.setId(""+g.Ra(this))}; oFa=function(a,b,c,d){d=void 0===d?!1:d;b=new nFa(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.j:b.j),y:a.y+.2*((void 0===d?0:d)?-1*b.u:b.u)}}; nFa=function(a,b){this.u=this.j=0;this.j=b.x-a.x;this.u=b.y-a.y}; xL=function(){g.V.call(this,{F:"div",L:"ytp-chapter-hover-container",R:[{F:"div",L:"ytp-progress-bar-padding"},{F:"div",L:"ytp-progress-list",R:[{F:"div",Aa:["ytp-play-progress","ytp-swatch-background-color"]},{F:"div",L:"ytp-progress-linear-live-buffer"},{F:"div",L:"ytp-load-progress"},{F:"div",L:"ytp-hover-progress"},{F:"div",L:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.C=this.va("ytp-progress-linear-live-buffer");this.B=this.va("ytp-ad-progress-list"); this.D=this.va("ytp-load-progress");this.I=this.va("ytp-play-progress");this.u=this.va("ytp-hover-progress");this.j=this.va("ytp-chapter-hover-container")}; yL=function(a,b){g.Bk(a.j,"width",b)}; zL=function(a,b){g.Bk(a.j,"margin-right",b+"px")}; AL=function(a,b){return"PLAY_PROGRESS"===b?a.I:"LOAD_PROGRESS"===b?a.D:"LIVE_BUFFER"===b?a.C:a.u}; pFa=function(){this.B=this.position=this.C=this.j=this.D=this.u=this.width=NaN}; BL=function(){g.V.call(this,{F:"div",L:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.DL=function(a,b){g.eG.call(this,{F:"div",L:"ytp-progress-bar-container",T:{"aria-disabled":"true"},R:[{F:"div",Aa:["ytp-heat-map-container"],R:[{F:"div",L:"ytp-heat-map-edu"}]},{F:"div",Aa:["ytp-progress-bar"],T:{tabindex:"0",role:"slider","aria-label":"Bot\u00e3o deslizante de busca","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},R:[{F:"div",L:"ytp-chapters-container"},{F:"div",L:"ytp-marker-crenellation-list"},{F:"div", L:"ytp-timed-markers-container"},{F:"div",L:"ytp-clip-start-exclude"},{F:"div",L:"ytp-clip-end-exclude"},{F:"div",L:"ytp-scrubber-container",R:[{F:"div",Aa:["ytp-scrubber-button","ytp-swatch-background-color"],R:[{F:"div",L:"ytp-scrubber-pull-indicator"}]}]}]},{F:"div",T:{tabindex:"0"},Aa:["ytp-fine-scrubbing-container"]},{F:"div",L:"ytp-bound-time-left",X:"{{boundTimeLeft}}"},{F:"div",L:"ytp-bound-time-right",X:"{{boundTimeRight}}"},{F:"div",L:"ytp-clip-start",T:{title:"{{clipstarttitle}}"},X:"{{clipstarticon}}"}, {F:"div",L:"ytp-clip-end",T:{title:"{{clipendtitle}}"},X:"{{clipendicon}}"}]});this.api=a;this.Ie=!1;this.progressBarWidth=this.Bf=0;this.Qa=1;this.Zd=this.J=0;this.I=null;this.ma=this.Wc=0;this.Ya=this.va("ytp-marker-crenellation-list");this.Ka={};this.Gc={};this.clipEnd=Infinity;this.dc=this.va("ytp-clip-end");this.jd=new g.Yt(this.dc,!0);this.Se=this.va("ytp-clip-end-exclude");this.Qg=this.va("ytp-clip-start-exclude");this.clipStart=0;this.lc=this.va("ytp-clip-start");this.wd=new g.Yt(this.lc, !0);this.V=this.ib=0;this.progressBar=this.va("ytp-progress-bar");this.Gb={};this.Kc={};this.hd=this.va("ytp-chapters-container");this.vg=this.va("ytp-timed-markers-container");this.j=[];this.P=[];this.He={};this.Te=null;this.Sa=-1;this.sb=this.xa=0;this.U=null;this.xe=this.va("ytp-scrubber-button");this.Rg=this.va("ytp-scrubber-container");this.Fc=new g.Jf;this.Ue=new pFa;this.B=new gH(0,0);this.jb=null;this.C=this.Xc=!1;this.gf=null;this.Za=this.va("ytp-fine-scrubbing-container");this.ea=this.va("ytp-heat-map-container"); this.Bd=this.va("ytp-heat-map-edu");this.D=[];this.Ga=this.Hd=this.Ca=!1;this.heatMarkersDecorations=[];this.u=void 0;this.tooltip=b.Zb();g.ge(this,g.HJ(this.tooltip,this.dc));g.J(this,this.jd);this.jd.subscribe("hoverstart",this.FP,this);this.jd.subscribe("hoverend",this.EP,this);this.N(this.dc,"click",this.aD);g.ge(this,g.HJ(this.tooltip,this.lc));g.J(this,this.wd);this.wd.subscribe("hoverstart",this.FP,this);this.wd.subscribe("hoverend",this.EP,this);this.N(this.lc,"click",this.aD);qFa(this);this.N(a, "resize",this.ub);this.N(a,"presentingplayerstatechange",this.kU);this.N(a,"videodatachange",this.xp);this.N(a,"videoplayerreset",this.SW);this.N(a,"cuerangesadded",this.bS);this.N(a,"cuerangesremoved",this.D0);this.N(a,"cuerangemarkersupdated",this.bS);this.N(a,"onLoopRangeChange",this.AL);this.N(a,"innertubeCommand",this.onClickCommand);this.N(a,g.mv("timedMarkerCueRange"),this.O_);this.N(a,"updatemarkervisibility",this.ZR);this.updateVideoData(a.getVideoData(),!0);this.AL(a.getLoopRange());CL(this)&& !this.u&&(this.u=new sL(this.api,this.tooltip,this.progressBarWidth),this.u.ra(this.Za),g.J(this,this.u),this.N(this.u.dismissButton,"click",this.yN),this.N(this.u.playButton,"click",this.mG),this.N(this.u.element,"dblclick",this.mG));this.api.zb(this.ea,this,139609,!0);this.api.zb(this.Bd,this,140127,!0);this.api.zb(this.Ya,this,145078,!0)}; qFa=function(a){if(0===a.j.length){var b=new xL;a.j.push(b);g.J(a,b);b.ra(a.hd,0)}for(;1=f&&z<=k&&d.push(t)}0l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q= c,t=p.j[q-1];void 0!==t&&0a.sb&&(a.sb=m/f),d=!0)}c++}}return d}; JL=function(a){if(a.progressBarWidth){var b=a.api.getProgressState(),c=a.api.getVideoData();if(a.api.K("web_player_enable_preroll_for_ssdai_killswitch")||!c||!c.enableServerStitchedDai||!c.enablePreroll||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:HD(d))&&b.airingStart&&b.airingEnd?wFa(a,b.airingStart,b.airingEnd):wFa(a,b.seekableStart,b.seekableEnd);d=jH(c,b.loaded,0);b=jH(c,b.current,0);var e=a.B.u!==c.u||a.B.j!==c.j;a.B=c;KL(a,b,d);e&&LL(a);xFa(a)}}}; wFa=function(a,b,c){return ML(a)?new gH(Math.max(b,a.jb.startTimeMs/1E3),Math.min(c,a.jb.endTimeMs/1E3)):new gH(b,c)}; yFa=function(a,b){var c;!a.api.K("web_repeating_chapters")||"repeatChapter"!==(null==(c=a.jb)?void 0:c.type)&&"repeatChapter"!==(null==b?void 0:b.type)||(b&&(b=a.j[kK(a.j,b.startTimeMs)],g.N(b.j,"ytp-repeating-chapter",!1)),a.jb&&(b=a.j[kK(a.j,a.jb.startTimeMs)],g.N(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.N(d.j,"ytp-exp-chapter-hover-container",!a.jb)}))}; OL=function(a,b){var c=iH(a.B,b.B);if(1=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.B.j*(a.progressBarWidth-(a.C?3:2)*a.xa)}; AFa=function(a,b,c,d){b=g.Ff(b,0,a.C?60:40);a.J=b;var e=a.Qa;a.Qa=b/(a.C?60:40)*(Math.max(hH(a.B)/a.progressBarWidth,1)-1)+1;b=a.progressBarWidth*a.Qa;a.ma=g.Ff(d*b-c,0,b-a.progressBarWidth);e!==a.Qa&&LL(a)}; LL=function(a){if(1!==a.j.length||CL(a))a.xe.style.removeProperty("height");else{var b=IL(a),c=-b.u/b.j,d=(-b.u+b.width)/b.j,e=qda(a.Ya),f=0;if(a.J>.2*(a.C?60:40)){for(var k=d*(hH(a.B)/60),l=Math.ceil(c*(hH(a.B)/60));l=f;c--)g.mg(e[c]);a.element.style.height=a.J+(a.C?8:5)+"px";a.W("height-change",a.J);a.xe.style.height=a.J+(a.C?20:13)+"px"}e=g.r(Object.keys(a.Ka));for(f=e.next();!f.done;f=e.next())BFa(a,f.value);PL(a);KL(a,a.V,a.ib)}; IL=function(a){var b=a.Fc.x,c=a.progressBarWidth*a.Qa;b=g.Ff(b,0,a.progressBarWidth);a.Ue.update(b,a.progressBarWidth,-a.ma,-(c-a.ma-a.progressBarWidth));return a.Ue}; QL=function(a){return(a.C?135:90)-(a.C?54:48)}; KL=function(a,b,c){a.V=b;a.ib=c;var d=IL(a),e=a.B.j,f=iH(a.B,a.V),k=g.OE("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.cH(f,!0),DURATION:g.cH(e,!0)}),l=kK(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.B.u),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+k:k});e=a.clipStart;f=a.clipEnd;a.jb&&2!==a.api.getPresentingPlayerType()&&(e=a.jb.startTimeMs/1E3,f=a.jb.endTimeMs/1E3);e=jH(a.B,e,0);l=jH(a.B,f,1);k=a.api.getVideoData();f=g.Ff(b,e,l);c=(null==k?0:g.ED(k))?1:g.Ff(c,e, l);b=uFa(a,b,d);g.Bk(a.Rg,"transform","translateX("+b+"px)");RL(a,d,e,f,"PLAY_PROGRESS");(null==k?0:HD(k))?(b=a.api.getProgressState().seekableEnd)&&RL(a,d,f,jH(a.B,b),"LIVE_BUFFER"):RL(a,d,e,c,"LOAD_PROGRESS");if(a.api.K("web_player_heat_map_played_bar")){var m;null!=(m=a.D[0])&&m.B.setAttribute("width",(100*f).toFixed(2)+"%")}}; RL=function(a,b,c,d,e){var f=a.j.length,k=b.j-a.xa*(a.C?3:2),l=c*k;c=NL(a,l);var m=d*k;k=NL(a,m);"HOVER_PROGRESS"===e&&(k=NL(a,b.j*d,!0),m=b.j*d-CFa(a,b.j*d)*(a.C?3:2));b=Math.max(l-DFa(a,c),0);for(d=c;d=a.j.length)return a.progressBarWidth;for(var c=0,d=0;de.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d}; uFa=function(a,b,c){for(var d=b*a.B.j*1E3,e=-1,f=g.r(a.j),k=f.next();!k.done;k=f.next())k=k.value,d>k.startTime&&0e?0:e)+c.u}; CFa=function(a,b){for(var c=a.j.length,d=0,e=g.r(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.C?3:2,d++;else break;return d===c?c-1:d}; g.TL=function(a,b,c,d){var e=a.progressBarWidth!==c,f=a.C!==d;a.Bf=b;a.progressBarWidth=c;a.C=d;CL(a)&&null!=(b=a.u)&&(b.scale=d?1.5:1);LL(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.GL(a);a.u&&(a.u.progressBarWidth=a.progressBarWidth,f&&CL(a)&&(a.u.isEnabled&&(c=a.C?135:90,d=c-(a.C?54:48),a.Za.style.height=c+"px",g.Bk(a.ea,"transform","translateY("+-d+"px)"),g.Bk(a.progressBar,"transform","translateY("+-d+"px)")),kFa(a.u)))}; PL=function(a){var b=!!a.jb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.jb?(c=a.jb.startTimeMs/1E3,d=a.jb.endTimeMs/1E3):(e=c>a.B.u,f=0a.V);g.N(a.xe,"ytp-scrubber-button-hover",c===d&&1=this.settingsMenu.AD&&(c.showMiniplayerButton&&!a.S().K("web_player_pip")&&(this.D=new iL(a,b),g.J(this,this.D),this.D.ra(e.element)),this.V.ra(e.element),l.ME||this.V.hide(),c.Kb||(l=new EM(a,b),g.J(this,l),l.ra(e.element)),c.sb&&(l=new VL(a,b,this.settingsMenu),g.J(this,l),l.ra(e.element)),c.dl&&(c=new XK(a,b),g.J(this, c),c.ra(e.element)));g.J(this,this.Ga);this.Ga.ra(e.element);g.J(this,this.me);this.N(a,"appresize",this.ub);this.N(a,"fullscreentoggled",this.ub);this.N(a,"presentingplayerstatechange",this.GE);this.N(a,"videodatachange",this.onVideoDataChange);this.ub()}; UFa=function(a,b){a.G.vb().isCued()||b?b&&(a.Z.hide(),a.ea.hide(),a.muteButton&&a.muteButton.hc(!1),a.C&&a.C.hc(!1),a.D&&a.D.hc(!1),a.B.Zb().xk(a.u.element)):b||(a.Z.show(),a.ea.show(),a.muteButton&&a.muteButton.hc(!0),a.C&&a.C.hc(!0),a.D&&a.D.hc(!0),a.Qk())}; VFa=function(a){var b=a.G.Wa().getPlayerSize().width;return Math.max(b-2*PM(a),100)}; PM=function(a){var b=a.B.Ff();return 12*(a.G.getVideoData().D?0:b?2:1)}; QM=function(a){var b=a.B.Ff()?72:50;a=a.G.S();g.gB(a)&&(b=62,g.OA(a)&&(b=54));return b}; RM=function(a,b){TK.call(this,a,b,!1);var c=this;this.N(this.G,"videodatachange",this.onVideoDataChange);this.N(this.G,g.mv("suggested_action_button_visible"),function(){c.nf(!0)}); this.N(this.G,g.nv("suggested_action_button_visible"),function(){c.nf(!1)})}; SM=function(a){a.G.yf("suggested_action_button_visible")}; UM=function(a){var b={F:"div",L:TM.SUBTEXT,R:[{F:"a",L:TM.CHANNEL_NAME,T:{href:"{{channelLink}}",target:"_blank"},X:"{{channelName}}"}]};a.S().C&&(b={F:"div",L:TM.SUBTEXT,R:[{F:"span",L:TM.CHANNEL_NAME,X:"{{channelName}}"}]});g.V.call(this,{F:"div",L:TM.TITLE,R:[{F:"div",L:TM.TEXT,R:[{F:"a",Aa:[TM.LINK,TM.SESSIONLINK],T:{target:a.S().J,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},X:"{{title}}"},b]}]});this.api=a;this.j=null;this.link=this.va(TM.LINK); a.zb(this.element,this,23851);this.N(a,"videodatachange",this.Ea);this.N(a,"videoplayerreset",this.Ea);this.Ea()}; WFa=function(a){a.updateValue("channelLink","");a.updateValue("channelName","");a.updateValue("channelTitleFocusable","-1")}; g.VM=function(a,b){g.V.call(this,{F:"div",R:[{F:"div",L:"ytp-tooltip-text-wrapper",T:{"aria-hidden":"{{ariaHidden}}"},R:[{F:"div",L:"ytp-tooltip-image"},{F:"div",L:"ytp-tooltip-title",R:[{F:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},R:[{F:"g",R:[{F:"rect",T:{fill:"none",height:"24",width:"24",x:"0"}}]},{F:"g",R:[{F:"g",R:[{F:"polygon",T:{points:"19,9 20.25,6.25 23,5 20.25,3.75 19,1 17.75,3.75 15,5 17.75,6.25"}},{F:"polygon",T:{points:"19,15 17.75,17.75 15,19 17.75,20.25 19,23 20.25,20.25 23,19 20.25,17.75"}}, {F:"path",T:{d:"M11.5,9.5L9,4L6.5,9.5L1,12l5.5,2.5L9,20l2.5-5.5L17,12L11.5,9.5z M9.99,12.99L9,15.17l-0.99-2.18L5.83,12l2.18-0.99 L9,8.83l0.99,2.18L12.17,12L9.99,12.99z"}}]}]}]},{F:"span",X:"{{title}}"}]},{F:"span",L:"ytp-tooltip-text",X:"{{text}}"}]},{F:"div",L:"ytp-tooltip-bg",R:[{F:"div",L:"ytp-tooltip-duration",X:"{{duration}}"}]}]});var c=this;this.api=a;this.Ca=b;this.env=this.api.S();this.xa=this.env.isMobile;this.bg=this.va("ytp-tooltip-bg");this.image=this.va("ytp-tooltip-image");this.text= this.va("ytp-tooltip-text");this.title=this.va("ytp-tooltip-title");this.U=function(d){(d=Ws(d))&&g.og(c.u,d)||c.Dl()}; this.C=function(d){3===c.type&&c.Dl();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.C),d.addEventListener("mouseout",c.U),d.removeEventListener("focus",c.C),d.addEventListener("blur",c.U),XFa(c,d,2))}; this.V=function(){c.Dl()}; this.u=null;this.D=new g.PG(this,100);this.type=null;this.P=!1;this.j=null;this.B=NaN;this.I="";this.progressBarWidth=this.api.Wa().getPlayerSize().width;this.J=!0;this.scale=1;this.ea=new g.K(this.FX,250,this);this.ma=new g.K(this.Dl,5E3,this);g.J(this,this.D);g.J(this,this.ea);g.J(this,this.ma);EA&&(a=this.va("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))}; LJ=function(a){a.element.setAttribute("aria-live","polite")}; TFa=function(a,b){if(null!=a.type)if(b)switch(a.type){case 3:case 2:WM(a);a.D.show();break;default:a.D.show()}else a.D.hide();a.J=b}; $Fa=function(a,b,c,d,e,f,k,l){if(!a.xa||a.env.I){3===a.type&&a.Dl();1!==a.type&&(g.tn(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.J&&a.D.show(),a.j&&a.j.dispose(),a.j=a.api.ji(),a.j&&a.j.subscribe("l",a.PP,a));a.update({text:d,title:null!=k?k:""});g.N(a.text,"ytp-tooltip-text-no-title",1===a.type&&!k);g.N(a.element,"ytp-text-detail",!!e);d=-1;a.j&&(d=KC(a.j,160*a.scale),a.env.K("web_l3_storyboard")&&4===a.j.levels.length&&(d=a.j.levels.length-1),d=Fxa(a.j,d,c));YFa(a,d);if(l)switch(c=g.Sk(a.element).width, l){case 1:a.title.style.right="0";a.title.style.textAlign="left";break;case 2:a.title.style.right=c+"px";a.title.style.textAlign="right";break;case 3:a.title.style.right=c/2+"px",a.title.style.textAlign="center"}ZFa(a,!!e,b,f)}}; g.XM=function(a){1===a.type&&a.Dl()}; g.HJ=function(a,b){if(a.xa)return function(){}; b.addEventListener("mouseover",a.C);b.addEventListener("focus",a.C);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.u===b&&a.Dl();b.removeEventListener("mouseover",a.C);b.removeEventListener("focus",a.C)}}; fK=function(a,b,c){if(a.type)if(3===a.type)a.Dl();else return;XFa(a,b,3,c)}; XFa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.hr("showElementTooltip called with non-element.",b.toString()),g.R(a);else{isNaN(a.B)||(a.B=NaN,a.bg.style.background="");a.u=b;a.P=!!d;d?a.I=d:(a.I=b.getAttribute("title"),b.removeAttribute("title"));g.tn(a.element,"ytp-tooltip");a.env.K("web_rounded_containers")&&g.vn(a.element,"ytp-rounded-tooltip");var e=b.getAttribute("data-tooltip-image");e&&(a.image.style.backgroundImage="url("+e+")");d?a.update({ariaHidden:"false"}):a.update({ariaHidden:"true"}); g.N(a.element,"ytp-tooltip-image-enabled",!!e);b=b.getAttribute("data-tooltip-opaque");g.N(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.V);a.J&&(WM(a),a.D.show(0))}}; WM=function(a){var b;a.u&&(b=a.u.getAttribute("data-tooltip-text"));if(b&&!a.P){var c=a.u;a.updateValue("text",b);var d=c.getAttribute("data-duration");a.update({title:a.I,duration:d});c=c.getAttribute("data-preview");var e=160*a.scale,f=90*a.scale,k=160*a.scale,l=90*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=c?"url("+c+")":"";a.bg.style.backgroundPosition=(e-k)/2+"px "+(f-l)/2+"px";a.bg.style.backgroundSize=k+"px "+l+"px";g.wn(a.element,["ytp-text-detail", "ytp-preview"]);g.N(a.element,"ytp-has-duration",!!d)}else a.updateValue("text",a.I),g.yn(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);ZFa(a,!!b)}; ZFa=function(a,b,c,d){var e=Math.min(a.progressBarWidth,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Ca.ys(a.element,a.u,c,1===a.type,d);a.element.style.top?g.vn(a.element,"ytp-bottom"):a.element.style.bottom&&g.vn(a.element,"ytp-top");3===a.type&&a.ma.start()}; gK=function(a){a.u&&!a.P&&a.u.hasAttribute("title")&&(a.I=a.u.getAttribute("title")||"",a.u.removeAttribute("title"),a.J&&WM(a))}; YFa=function(a,b){g.N(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.B)){a.B=b;b=160*a.scale;var c=160*a.scale,d=Bxa(a.j,a.B,b);UEa(a.bg,d,b,c,!0);a.ea.start()}}; aGa=function(a){var b=a.u;3===a.type&&a.ma.stop();a.api.removeEventListener("appresize",a.V);a.P||b.setAttribute("title",a.I);a.I="";a.u=null}; g.YM=function(a,b){g.V.call(this,{F:"button",Aa:["ytp-watch-later-button","ytp-button"],T:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.IA(a.S()))},R:[{F:"div",L:"ytp-watch-later-icon",X:"{{icon}}"},{F:"div",L:"ytp-watch-later-title",X:"Assistir mais tarde"}]});this.G=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;this.tooltip=b.Zb();LJ(this.tooltip);a.zb(this.element,this,28665);this.Ja("click",this.onClick,this);this.N(a,"videoplayerreset",this.uU); this.N(a,"appresize",this.vA);this.N(a,"videodatachange",this.vA);this.N(a,"presentingplayerstatechange",this.vA);this.vA();a=this.G.S();var c=g.Lu("yt-player-watch-later-pending");a.j&&c?(kva(),bGa(this)):this.Ea(2);g.N(this.element,"ytp-show-watch-later-title",g.IA(a));g.ge(this,g.HJ(b.Zb(),this.element))}; cGa=function(a,b){g.pH(function(){kva({videoId:b});window.location.reload()},"wl_button",g.bB(a.G.S()))}; bGa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ea(3);var b=a.G.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.G.Yl(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ea(2);a.G.S().B&&a.G.Ia("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0; a.isRequestPending=!1;a.Ea(1);a.G.S().isMobile&&fK(a.tooltip,a.element);a.G.S().B&&a.G.Ia("WATCH_LATER_VIDEO_ADDED")}; AH(c,b).then(d,function(){a.isRequestPending=!1;dGa(a,"Ocorreu um erro. Tente novamente mais tarde.")})}}; dGa=function(a,b){a.Ea(4,b);a.G.S().B&&a.G.Ia("WATCH_LATER_ERROR",b)}; eGa=function(a,b){var c=a.G.S();if(b!==a.icon){switch(b){case 3:var d=hJ();break;case 1:d=hG();break;case 2:d={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:d=c.K("watch_later_iconchange_killswitch")?{F:"svg",T:{height:"100%",version:"1.1", viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Ib:!0,T:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",d);a.icon= b}}; ZM=function(a){g.wJ.call(this,a);var b=this;this.UB=(this.Gr=g.IA(this.api.S()))&&(this.api.S().isMobile||sq()||qq());this.FF=48;this.GF=69;this.Sl=null;this.Np=[];this.zc=new g.CJ(this.api);this.wx=this.api.K("web_player_deprecate_double_tap_ux")?new hK:new iK(this.api);this.lj=new g.V({F:"div",L:"ytp-chrome-top"});this.Nz=[];this.tooltip=new g.VM(this.api,this);this.backButton=this.vv=null;this.channelAvatar=new NJ(this.api,this);this.title=new UM(this.api,this);this.Lh=new g.aG({F:"div",L:"ytp-chrome-top-buttons"}); this.lh=this.shareButton=this.Ki=null;this.kh=new GJ(this.api,this,this.lj.element);this.overflowButton=this.fh=null;this.Rf="1"===this.api.S().controlsType?new OM(this.api,this,this.Nd):null;this.contextMenu=new g.dK(this.api,this,this.zc);this.wF=!1;this.nB=new g.V({F:"div",T:{tabindex:"0"}});this.mB=new g.V({F:"div",T:{tabindex:"0"}});this.iz=null;this.LH=this.WA=!1;var c=a.Wa(),d=a.S(),e=a.getVideoData();this.Gr&&(g.vn(a.getRootNode(),"ytp-embed"),g.vn(a.getRootNode(),"ytp-embed-playlist"),this.UB&& (g.vn(a.getRootNode(),"ytp-embed-overlays-autohide"),g.vn(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.FF=60,this.GF=89);this.api.S().isMobile&&(g.vn(a.getRootNode(),"ytp-mobile"),this.api.S().I&&g.vn(a.getRootNode(),"ytp-embed-mobile-exp"));this.oh=e&&e.oh;g.J(this,this.zc);g.rI(a,this.zc.element,4);g.J(this,this.wx);g.rI(a,this.wx.element,4);e=new g.V({F:"div",L:"ytp-gradient-top"});g.J(this,e);g.rI(a,e.element,1);this.SJ=new g.PG(e,250,!0,100);g.J(this,this.SJ);g.J(this,this.lj); g.rI(a,this.lj.element,1);this.RJ=new g.PG(this.lj,250,!0,100);g.J(this,this.RJ);g.J(this,this.tooltip);g.rI(a,this.tooltip.element,4);var f=new tK(a);g.J(this,f);g.rI(a,f.element,5);f.subscribe("show",function(m){b.Wo(f,m)}); this.Nz.push(f);this.vv=new uK(a,this,f);g.J(this,this.vv);d.showBackButton&&(this.backButton=new BJ(a),g.J(this,this.backButton),this.backButton.ra(this.lj.element));this.Gr||this.vv.ra(this.lj.element);this.channelAvatar.ra(this.lj.element);g.J(this,this.channelAvatar);g.J(this,this.title);this.title.ra(this.lj.element);g.J(this,this.Lh);this.Lh.ra(this.lj.element);d.C||(this.Ki=new g.YM(a,this),g.J(this,this.Ki),this.Ki.ra(this.Lh.element));var k=new g.QK(a,this);g.J(this,k);g.rI(a,k.element,5); k.subscribe("show",function(m){b.Wo(k,m)}); this.Nz.push(k);d.C||(this.shareButton=new g.PK(a,this,k),g.J(this,this.shareButton),this.shareButton.ra(this.Lh.element),this.lh=new g.eK(a,this),g.J(this,this.lh),this.lh.ra(this.Lh.element));d.Al&&(e=new WK(a),g.J(this,e),g.rI(a,e.element,4));this.Gr&&this.vv.ra(this.Lh.element);g.J(this,this.kh);this.kh.ra(this.Lh.element);d.C||(e=new IJ(a,this,this.kh),g.J(this,e),e.ra(this.Lh.element));this.fh=new qK(a,this);g.J(this,this.fh);g.rI(a,this.fh.element,5);this.fh.subscribe("show",function(){b.Wo(b.fh, b.fh.Xg())}); this.Nz.push(this.fh);this.overflowButton=new pK(a,this,this.fh);g.J(this,this.overflowButton);this.overflowButton.ra(this.Lh.element);this.Rf&&g.J(this,this.Rf);"3"===d.controlsType&&(e=new OK(a,this),g.J(this,e),g.rI(a,e.element,9));g.J(this,this.contextMenu);this.contextMenu.subscribe("show",this.fS,this);e=new kH(a,new AJ(a));g.J(this,e);g.rI(a,e.element,4);this.nB.Ja("focus",this.yW,this);g.J(this,this.nB);this.mB.Ja("focus",this.zW,this);g.J(this,this.mB);var l;(this.Kn=d.Ue?null:new g.mK(a, c,this.contextMenu,this.Nd,this.zc,this.wx,function(){return b.Vl()},null==(l=this.Rf)?void 0:l.progressBar))&&g.J(this,this.Kn); this.Gr||(this.pR=new UK(this.api,this),g.J(this,this.pR),g.rI(a,this.pR.element,4));this.AR=new RM(this.api,this);g.J(this,this.AR);g.rI(a,this.AR.element,4);this.Mp.push(this.zc.element);this.N(a,"fullscreentoggled",this.Qn);this.N(a,"offlineslatestatechange",function(){b.api.qy()&&bJ(b.Nd,128,!1)}); this.N(a,"cardstatechange",function(){b.fk()}); this.N(a,"resize",this.TY);this.N(a,"showpromotooltip",this.vZ)}; fGa=function(a){var b=a.api.S(),c=g.U(a.api.vb(),128);return b.j&&c&&!a.api.isFullscreen()}; $M=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Hk(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=$M(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndexa;a++){var b=g.ig("VIDEO");b.load();jN.push(new g.aJ(b))}}; rGa=function(){this.u=200;this.j=12}; sGa=function(a){var b=new rGa;b.u=g.Pz(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.j=g.Pz(a.experiments,"html5_gapless_max_played_ranges");return b}; g.kN=function(a,b,c,d){d=void 0===d?!1:d;bF.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d}; tGa=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};c=f.C;if(b.Ri()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};if(a.j&&((b=b.Ed())&&b.isView()&&(b=b.mediaElement),b&&b.yr().length>a.j&&g.lD(e)))return{msg:"played-ranges"};if(!e.C)return null;if(!e.C.j||!c.j)return{msg:"non-dash"};if(e.C.videoInfos[0].containerType!==c.videoInfos[0].containerType)return{msg:"container"};if(g.lD(f)&& g.lD(e))return{msg:"content-protection"};a=c.j[0];e=e.C.j[0];f=a.audio;b=e.audio;return f.sampleRate===b.sampleRate||g.Zy?(f.numChannels||2)!==(b.numChannels||2)?{msg:"channel-count"}:null:{msg:"sample-rate",ci:a.Vb(),cr:f.sampleRate,ni:e.Vb(),nr:b.sampleRate}}; lN=function(a,b,c,d){g.I.call(this);var e=this;this.policy=a;this.j=b;this.u=c;this.C=this.B=null;this.D=-1;this.I=!1;this.Fm=new aF;this.al=d-1E3*b.pd();this.Fm.then(void 0,function(){}); this.timeout=new g.K(function(){e.zf("timeout")},1E4); g.J(this,this.timeout);this.J=isFinite(d);this.status={status:0,error:null}}; yGa=function(a){var b,c,d,e,f,k,l,m,n;return g.B(function(p){if(1==p.j){if(a.isDisposed())return p.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.mN.gq("gtfta");return g.A(p,a.Fm,2)}g.mN.Zo(b);c=a.j.Ed();if(c.Cg())return a.zf("ended_in_finishTransition"),p.return(Promise.reject(Error(a.status.error||"")));if(!a.C||!oz(a.C))return a.zf("next_mse_closed"),p.return(Promise.reject(Error(a.status.error||"")));if(a.u.xr()!==a.C)return a.zf("next_mse_mismatch"),p.return(Promise.reject(Error(a.status.error|| "")));d=uGa(a);e=d.tP;f=d.jN;k=d.sP;a.j.Gh(!1,!0);l=vGa(c,e,k,!a.u.getVideoData().isAd());a.u.setMediaElement(l);a.J&&(a.u.seekTo(a.u.getCurrentTime()+.001,{Dr:!0,QJ:3,Xd:"gapless_pseudo"}),l.play()||cq());m=c.Lb();m.cpn=a.j.getVideoData().clientPlaybackNonce;m.st=""+e;m.et=""+k;a.u.qa("gapless",m);a.j.qa("gaplessTo",{cpn:a.u.getVideoData().clientPlaybackNonce});n=a.j.getPlayerType()===a.u.getPlayerType();wGa(a.j,f,!1,n,a.u.getVideoData().clientPlaybackNonce);wGa(a.u,a.u.getCurrentTime(),!0,n,a.j.getVideoData().clientPlaybackNonce); g.zg(function(){!a.u.getVideoData().ib&&g.mF(a.u.getPlayerState())&&xGa(a.u)}); nN(a,6);a.dispose();return p.return(Promise.resolve())})}; BGa=function(a){if(a.u.getVideoData().C){oN(a.u,a.C);nN(a,3);zGa(a);var b=AGa(a),c=b.oR;b=b.V0;c.subscribe("updateend",a.Lt,a);b.subscribe("updateend",a.Lt,a);a.Lt(c);a.Lt(b)}}; zGa=function(a){a.j.unsubscribe("internalvideodatachange",a.Oq,a);a.u.unsubscribe("internalvideodatachange",a.Oq,a);a.j.unsubscribe("mediasourceattached",a.Oq,a);a.u.unsubscribe("statechange",a.Uc,a)}; vGa=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.kN(a,b,c,d)}; nN=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.Fm.resolve(void 0))}; uGa=function(a){var b=a.j.Ed();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:pN(a.j,!0);c=Math.min(a.al/1E3,c)+b;var d=a.J?100:0;a=c-a.u.Ri()+d;return{dW:b,tP:a,jN:c,sP:Infinity}}; AGa=function(a){return{oR:a.B.j.Md,V0:a.B.u.Md}}; qN=function(a){g.I.call(this);var b=this;this.app=a;this.D=this.u=this.j=null;this.J=!1;this.C=null;this.P=sGa(this.app.S());this.B=null;this.I=function(){g.zg(function(){CGa(b)})}}; DGa=function(a,b,c,d){d=void 0===d?0:d;a.Tu()||rN(a);a.C=new aF;a.j=b;var e=c,f=a.app.Cc(),k=f.getVideoData().isLivePlayback?Infinity:1E3*pN(f,!0);e>k&&(e=k-a.P.u,a.J=!0);f.getCurrentTime()>=e/1E3?a.I():(a.u=f,f=e,e=a.u,a.app.Ma.addEventListener(g.mv("vqueued"),a.I),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.kv(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.D));f=d/=1E3;e=b.getVideoData().j;if(d&&e&&a.u){k=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/1E3, pN(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),k=Math.min(d,pN(b)+l));f=$ua(e,k)||d;f!==d&&a.j.qa("qvaln",{st:d,at:f,rm:l,ct:k})}b=f;d=a.j;d.getVideoData().Ge=!0;d.getVideoData().Ka=!0;g.sN(d,!0);e={};a.u&&(e=g.tN(a.u.logging.u),f=a.u.getVideoData().clientPlaybackNonce,e={crt:(1E3*e).toFixed(),cpn:f});d.qa("queued",e);0!==b&&d.seekTo(b+.01,{Dr:!0,QJ:3,Xd:"videoqueuer_queued"});a.B=new lN(a.P,a.app.Cc(),a.j,c);c=a.B;Infinity!==c.status.status&&(nN(c,1),c.j.subscribe("internalvideodatachange",c.Oq, c),c.u.subscribe("internalvideodatachange",c.Oq,c),c.j.subscribe("mediasourceattached",c.Oq,c),c.u.subscribe("statechange",c.Uc,c),c.j.subscribe("newelementrequired",c.UP,c),c.Oq());return a.C}; CGa=function(a){var b,c,d;g.B(function(e){switch(e.j){case 1:if(a.isDisposed()||!a.C||!a.j)return e.return();a.J&&uN(a.app.Cc(),!0,!1);b=null;if(!a.B){e.Oa(2);break}g.wa(e,3);return g.A(e,yGa(a.B),5);case 5:g.xa(e,2);break;case 3:b=c=g.ya(e);case 2:if(!a.j)return e.return();g.mN.SI("vqsp",function(){vN(a.app,a.j)}); g.mN.SI("vqpv",function(){a.app.playVideo()}); b&&EGa(a.j,b.message);d=a.C;rN(a);return e.return(d.resolve(void 0))}})}; rN=function(a){if(a.u){var b=a.u;a.app.Ma.removeEventListener(g.mv("vqueued"),a.I);b.removeCueRange(a.D);a.u=null;a.D=null}a.B&&(a.B.isFinished()||(b=a.B,Infinity!==b.status.status&&b.zf("Canceled")),a.B=null);a.C=null;a.j&&a.j!==g.tI(a.app,1)&&a.j!==a.app.Cc()&&a.j.dispose();a.j=null;a.J=!1}; FGa=function(){var a=Vpa();return!(!a||"visible"===a)}; HGa=function(a){var b=GGa();b&&document.addEventListener(b,a,!1)}; IGa=function(a){var b=GGa();b&&document.removeEventListener(b,a,!1)}; GGa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Os+"VisibilityState"])return"";a=Os+"visibilitychange"}return a}; wN=function(){g.Ut.call(this);var a=this;this.fullscreen=0;this.u=this.pictureInPicture=this.j=this.B=this.inline=!1;this.C=function(){a.nf()}; HGa(this.C);this.D=this.getVisibilityState(this.ag(),this.isFullscreen(),this.lf(),this.isInline(),this.Su(),this.Pu())}; JGa=function(a){this.end=this.start=a}; g.AN=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.environmentData=b;this.oa=c;this.ea=new Map;this.Pa=new Map;this.ma=new Map;this.C=new Map;this.B=[];this.D=[];this.u=new Map;this.Fc=new Map;this.J=new Map;this.lc=NaN;this.Kb=this.Ya=null;this.dc=new g.K(function(){xN(d,d.lc)}); this.events=new g.Vy(this);this.isLiveNow=!0;this.Hd=g.Pz(this.environmentData.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.Z=new g.K(function(){d.V=!0;var e=d.oa,f=d.Hd;e.qa("sdai",{aftimeout:f});e.rd(new uB("ad.fetchtimeout",{timeout:f}));yN(d);d.Zx(!1)},this.Hd); this.V=!1;this.xa=new Map;this.Gb=[];this.U=null;this.Bd=new Set;this.Ka=[];this.Gc=[];this.jd=[];this.Xc=[];this.j=void 0;this.Sa=0;this.Qa=!0;this.I=!1;this.Za=[];this.hd=new Set;this.wd=new Set;this.sb=new Set;this.Aj=0;this.P=null;this.ib=new Set;this.Wc=0;this.Ga=this.Uo=this.Kc=!1;this.oa.getPlayerType();KGa(this.oa,this);this.Ca=sB(this.environmentData);g.J(this,this.dc);g.J(this,this.events);g.J(this,this.Z);zN(this)||(this.events.N(this.api,g.mv("serverstitchedcuerange"),this.onCueRangeEnter), this.events.N(this.api,g.nv("serverstitchedcuerange"),this.onCueRangeExit))}; NGa=function(a,b,c,d,e,f,k){var l=LGa(a,e,e+d);a.environmentData.K("html5_ssdai_log_ad_transition_info")&&a.oa.qa("sdai",{attl:1,len:(d/1E3).toFixed(3),enter:(e/1E3).toFixed(3),abid:k});a.V&&a.oa.qa("sdai",{adaftto:1});var m=a.environmentData.K("web_player_ssdai_reject_invalid_ads_killswitch"),n=a.oa;f=void 0===f?e+d:f;e===f&&!d&&a.environmentData.K("html5_allow_zero_duration_ads_on_timeline")&&a.oa.qa("sdai",{attl0d:1});if(e>f&&(BN(a,{reason:"enterTime_greater_than_return",qc:e,Oc:f}),m))return""; var p=1E3*n.getMinSeekableTime();if(en&&(BN(a,{reason:"parent_return_greater_than_content_duration",Oc:f,Ika:n}),m))return"";n=null;if(m)for(m=g.r(a.D),p=m.next();!p.done;p=m.next()){p=p.value;if(e>=p.qc&&ep.qc||f===p.qc)return CN(a,b.video_id||"",e,f,p),"";e===p.Oc&&(n=p)}else m=g.Wb(a.D,{Oc:e},function(t,u){return t.Oc-u.Oc}),0<=m&&(n=a.D[m],n.Oc>e&&CN(a,b.video_id||"",e, f,n)); if(l&&n)for(m=g.r(a.Ka.entries()),p=m.next();!p.done;p=m.next()){var q=g.r(p.value);p=q.next().value;q=q.next().value;if(q.identifier===l.identifier){a.Ka.splice(p,1);break}}else if(l&&a.environmentData.K("web_player_ss_timeout_skip_ads"))return a.oa.qa("sdai",{rejectAttl:1}),k&&!Wk(a.Xc,function(t){return t===k})&&(a.oa.qa("sdai",{rejectAdBreakAttl:1}),a.Xc.push(k)),a.environmentData.K("web_player_stop_timer_for_timedout_ab_killswitch")||DN(a),""; l="ss_childplayback_"+MGa++;b.cpn||(b.cpn=g.ru(16));m=b.cpn;b=new g.TC(a.environmentData,b);b.xc=l;c={xc:l,playerType:c,durationMs:d,qc:e,Oc:f,cpn:m,videoData:b,errorCount:0};g.bc(a.D,c,function(t,u){return t.qc-u.qc}); a.u.set(m,c);a.Fc.set(l,c);a.oa.qa("sdai",{attlDone:f-e,acpn:m});k?c.vk=k:n?c.vk=n.vk:c.vk=c.cpn;if(e=c.vk)(d=a.J.get(e))?(d.push(c),g.Zb(d,function(t,u){return t.qc-u.qc})):a.J.set(e,[c]); a.Z.isActive()&&(a.V=!1,a.Z.stop(),yN(a),a.Zx(!0));return l}; EN=function(a,b,c){return a.environmentData.experiments.bb("html5_ssdai_log_ad_transition_info")&&c?{ssvc:b,cpn:c.cpn,vid:c.videoData.videoId}:{ssvc:b}}; OGa=function(a,b,c){return new g.kv(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})}; FN=function(a){return{cpn:a.oa.getVideoData().clientPlaybackNonce,durationMs:0,qc:0,playerType:1,Oc:0,videoData:a.oa.getVideoData(),errorCount:0}}; HN=function(a,b,c){var d=a.I,e=FN(a),f=a.Ga;a.Ga=!1;var k=b.Tf-c.Tf;.5d?-1*(d+2):d;return 0<=d&&(a=a.D[d],a.Oc>=c)?{Ql:a,Yr:b}:{Ql:void 0,Yr:b}}; JN=function(a,b){var c="";zN(a)?(c=b/1E3-a.zn(),c=a.oa.Iu(c)):(b=PGa(a,b))&&(c=b.getId());return c?a.u.get(c):void 0}; PGa=function(a,b){a=g.r(a.C.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c}; xN=function(a,b){var c=a.Kb||a.api.Cc().getPlayerState();KN(a,!0);var d=b;a.environmentData.K("web_player_ssdai_seek_without_offset_killswitch")&&(d=IN(a,b).Yr);a.oa.seekTo(d);a=a.api.Cc();b=a.getPlayerState();g.mF(c)&&!g.mF(b)?a.playVideo():g.U(c,4)&&!g.U(b,4)&&a.pauseVideo()}; KN=function(a,b){a.lc=NaN;a.dc.stop();a.Ya&&b&&LN(a.Ya);a.Kb=null;a.Ya=null}; MN=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=[],k=g.r(a.D),l=k.next();!l.done;l=k.next())l=l.value,(l.qce)&&f.push(l);a.D=f;d=b;e=c;f=g.r(a.C.values());for(k=f.next();!k.done;k=f.next())k=k.value,k.start>=d&&k.end<=e&&(a.oa.removeCueRange(k),a.C.delete(k.getId()),a.oa.qa("sdai",{rmAdCR:1}));d=IN(a,b/1E3);b=d.Ql;d=d.Yr;b&&(d=1E3*d-b.qc,e=b.qc+d,b.durationMs=d,b.Oc=e,QGa(a,b));if(b=IN(a,c/1E3).Ql){var m;d="playback_timelinePlaybackId_"+b.xc+"_video_id_"+(null== (m=b.videoData)?void 0:m.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.qc+"_parentReturnTimeMs_"+b.Oc;a.Ay("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; RGa=function(a){a.ea.clear();a.Pa.clear();a.ma.clear();a.C.clear();a.B=[];a.D=[];a.u.clear();a.Fc.clear();a.J.clear();a.xa.clear();a.Gb=[];a.U=null;a.Bd.clear();a.Ka=[];a.Gc=[];a.jd=[];a.Xc=[];a.Za=[];a.hd.clear();a.wd.clear();a.sb.clear();a.ib.clear();a.isLiveNow=!0;a.V=!1;a.j=void 0;a.Sa=0;a.Qa=!0;a.I=!1;a.Aj=0;a.P=null;a.Wc=0;a.Kc=!1;a.Uo=!1;a.Ga=!1}; QGa=function(a,b){var c=a.C.get(b.cpn);if(c){a=g.r(a.B);for(var d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.qc+b.durationMs:d.end===c.start&&(d.end=b.qc);c.start=b.qc;c.end=b.qc+b.durationMs}}; ON=function(a,b,c,d){var e=a.xa.get(c);if(!e){b+=a.zn();b=IN(a,b,1);var f;a.environmentData.K("web_player_keep_decorating_last_chunk_killswitch")||b.Ql||2!==(null==(f=NN(a,c-1,null!=d?d:2))?void 0:f.Ww)?e=b.Ql:e=a.xa.get(c-1)}return e}; SGa=function(a){for(var b=g.r(a.C.values()),c=b.next();!c.done;c=b.next())a.oa.removeCueRange(c.value);b=g.r(a.B);for(c=b.next();!c.done;c=b.next())a.oa.removeCueRange(c.value);a.C.clear();a.B=[];a.ea.clear();a.Pa.clear();a.ma.clear();a.Qa=!0}; NN=function(a,b,c){if(1===c&&a.ea.has(b))return a.ea.get(b);if(2===c&&a.Pa.has(b))return a.Pa.get(b);if(3===c&&a.ma.has(b))return a.ma.get(b)}; PN=function(a,b,c,d){if(d)for(d=0;dc){var f=e.end;e.end=b;TGa(a,c,f)}else if(e.start>=b&&e.startc)e.start=c;else if(e.end>b&&e.end<=c&&e.start=b&&e.end<=c){a.oa.removeCueRange(e);if(a.Za.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else TGa(a,b,c)}; TGa=function(a,b,c){b=OGa(b,c);c=!0;g.bc(a.B,b,function(k,l){return k.start-l.start}); for(var d=0;d=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.oa.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.oa.addCueRange(b),b=a.oa.Bx("serverstitchedcuerange",36E5),b=g.r(b),c=b.next();!c.done;c=b.next())a.C.delete(c.value.getId())}; QN=function(a,b,c){if(void 0===c||!c){c=g.r(a.Gb);for(var d=c.next();!d.done;d=c.next()){d=d.value;if(b>=d.start&&b<=d.end)return;if(b===d.end+1){d.end+=1;return}}a.Gb.push(new JGa(b))}}; g.UGa=function(a,b){a=g.r(a.Gb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1}; CN=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",Fka:b,qc:c,Oc:d,ika:e.xc,jka:(null==(f=e.videoData)?void 0:f.videoId)||"",fka:e.durationMs,gka:e.qc,hka:e.Oc};BN(a,b)}; BN=function(a,b){a=a.oa;a.qa("timelineerror",b);a.rd(new uB("dai.timelineerror",b))}; VGa=function(a,b){var c=[];a=a.J.get(b);if(!a)return[];a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c}; WGa=function(a,b,c){var d=0;a=a.J.get(c);if(!a)return-1;a=g.r(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1}; XGa=function(a,b){var c=[];a=a.J.get(b);if(!a)return[];a=g.r(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=null==(b=d.value.videoData)?void 0:b.videoId)&&c.push(d);return c}; YGa=function(a,b){var c=0;a=a.J.get(b);if(!a)return 0;a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Oc!==b.qc&&c++;return c}; ZGa=function(a,b,c){var d=!1;if(c&&(c=a.J.get(c))){c=g.r(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Oc!==e.qc&&(e=e.cpn,b===e&&(d=!0),d&&!a.wd.has(e)&&(a.oa.qa("sdai",{decoratedAd:e}),a.wd.add(e)))}}; yN=function(a){a.Ca&&a.oa.qa("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Wc)+"_isTimeout_"+a.V})}; LGa=function(a,b,c){if(a.Ka.length)for(var d={},e=g.r(a.Ka),f=e.next();!f.done;d={mq:d.mq},f=e.next()){d.mq=f.value;f=1E3*d.mq.startSecs;var k=1E3*d.mq.durationSecs+f;if(b>f&&bf&&cf)return SN(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),k,l),"";var n=1E3*m.getMinSeekableTime();if(en)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+ m.pd(),SN(a,m,k,l),"";n=null;for(var p=g.r(a.u),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.qc&&eq.qc)return SN(a,"overlappingReturn",k,l),"";if(f===q.qc)return SN(a,"outOfOrder",k,l),"";e===q.Oc&&(n=q)}k="cs_childplayback_"+aHa++;l={Jd:TN(d,!0),al:Infinity,target:null};var t={xc:k,playerVars:b,playerType:c,durationMs:d,qc:e,Oc:f,Yo:l};a.u=a.u.concat(t).sort(function(y,z){return y.qc-z.qc}); n?bHa(a,n,{Jd:TN(n.durationMs,!0),al:a.environmentData.K("timeline_manager_transition_killswitch")?Infinity:n.Yo.al,target:t}):(b={Jd:TN(e,!1),al:e,target:t},a.I.set(b.Jd,b),m.addCueRange(b.Jd));b=a.environmentData.K("html5_gapless_preloading");if(a.j===a.api.Cc()&&(m=1E3*m.getCurrentTime(),m>=t.qc&&mb)break;if(f>b)return{Ql:d,Yr:b-e};c=f-d.Oc/1E3}return{Ql:null,Yr:b-c}}; $Ga=function(a,b){var c=a.D||a.api.Cc().getPlayerState();XN(a,!0);b=a.environmentData.K("html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.j.Ek();var d=WN(a,b);b=d.Ql;d=d.Yr;var e=b&&!UN(a,b)||!b&&a.j!==a.api.Cc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||VN(a);b?cHa(a,b,d,c):YN(a,d,c)}; YN=function(a,b,c){var d=a.j,e=a.api.Cc();d!==e&&a.api.Un();d.seekTo(b,{Xd:"application_timelinemanager"});hHa(a,c)}; cHa=function(a,b,c,d){var e=UN(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new g.TC(a.environmentData,b.playerVars);f.xc=b.xc;a.api.Ip(f,b.playerType)}f=a.api.Cc();e||f.addCueRange(b.Yo.Jd);f.seekTo(c,{Xd:"application_timelinemanager"});hHa(a,d)}; hHa=function(a,b){a=a.api.Cc();var c=a.getPlayerState();g.mF(b)&&!g.mF(c)?a.playVideo():g.U(b,4)&&!g.U(c,4)&&a.pauseVideo()}; XN=function(a,b){a.U=NaN;a.P.stop();a.C&&b&&LN(a.C);a.D=null;a.C=null}; UN=function(a,b){a=a.api.Cc();return!!a&&a.getVideoData().xc===b.xc}; iHa=function(a){var b=a.u.find(function(e){return UN(a,e)}); if(b){var c=a.api.Cc();VN(a);var d=new g.gF(8);b=gHa(a,b)/1E3;YN(a,b,d);c.qa("forceParentTransition",{childPlayback:1});a.j.qa("forceParentTransition",{parentPlayback:1})}}; ZN=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.r(a.I),k=f.next();!k.done;k=f.next()){var l=g.r(k.value);k=l.next().value;l=l.next().value;l.al>=d&&l.target&&l.target.Oc<=e&&(a.j.removeCueRange(k),a.I.delete(k))}d=b;e=c;f=[];k=g.r(a.u);for(l=k.next();!l.done;l=k.next())if(l=l.value,l.qc>=d&&l.Oc<=e){var m=a;m.J===l&&VN(m);UN(m,l)&&m.api.Un()}else f.push(l);a.u=f;d=WN(a,b/1E3);b=d.Ql;d=d.Yr;b&&(d*=1E3,jHa(a,b,d,b.Oc===b.qc+b.durationMs?b.qc+d:b.Oc));(b=WN(a,c/1E3).Ql)&& SN(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.xc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.qc+" parentReturnTimeMs="+b.Oc+"}.Child playbacks can only have duration updated not their start."))}; jHa=function(a,b,c,d){b.durationMs=c;b.Oc=d;d={Jd:TN(c,!0),al:c,target:null};bHa(a,b,d);UN(a,b)&&1E3*a.api.Cc().getCurrentTime()>c&&(b=gHa(a,b)/1E3,c=a.api.Cc().getPlayerState(),YN(a,b,c))}; SN=function(a,b,c,d){a.j.qa("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})}; lHa=function(a){a&&"web"!==a&&kHa.includes(a)}; bO=function(a,b){g.I.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.j=new g.K(function(){$N(c);aO(c)}); g.J(this,this.j)}; dO=function(a){var b;if(b=void 0===b?!1:b)for(var c=g.r(a.data),d=c.next();!d.done;d=c.next())cO(a,d.value,b);a.data=[];aO(a)}; $N=function(a){var b=(0,g.Q)();a.data.forEach(function(c){c.expire=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.u=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.u.observe(a)}; oO=function(a){g.V.call(this,{F:"div",Aa:["html5-video-player"],T:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},R:[{F:"div",L:g.nO.VIDEO_CONTAINER,T:{"data-layer":"0"}}]});var b=this;this.app=a;this.kx=this.va(g.nO.VIDEO_CONTAINER);this.xv=new g.yk(0,0,0,0);this.Fb=null;this.TC=new g.yk(0,0,0,0);this.LG=this.OH=this.NH=NaN;this.MB=this.QC=this.JI=this.SM=!1;this.KF=NaN;this.qH=!1;this.By=null;this.hI=function(){b.element.focus()}; this.EC=function(){b.app.Ma.W("playerUnderlayVisibilityChange","visible");b.Fb.classList.remove(g.nO.VIDEO_CONTAINER_TRANSITIONING);b.Fb.removeEventListener(pHa,b.EC);b.Fb.removeEventListener("transitioncancel",b.EC)}; var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,k,l){c.apply(b.element,[f,k,l])}; this.removeEventListener=function(f,k,l){d.apply(b.element,[f,k,l])}; var e=a.S();e.transparentBackground&&this.Ho("ytp-transparent");"0"===e.controlsType&&this.Ho("ytp-hide-controls");g.vn(this.element,"ytp-exp-bottom-control-flexbox");e.K("html5_player_bottom_linear_gradient")&&g.vn(this.element,"ytp-linear-gradient-bottom-experiment");e.K("enable_new_paid_product_placement")&&!g.jB(e)&&g.vn(this.element,"ytp-exp-ppp-update");lB(e)&&g.vn(this.element,"ytp-exp-hybrid-controls");Dqa(this.element,"version",qHa(a));this.qR=!1;this.Ex=new g.Lf(NaN,NaN);rHa(this);this.N(a.Ma, "onMutedAutoplayChange",this.onMutedAutoplayChange)}; rHa=function(a){function b(){a.Fb&&pO(a);qO(a)!==a.qH&&a.resize()} function c(k,l){a.xp(k,l)} function d(k){k.getVideoData()&&a.updateVideoData(k.getVideoData())} function e(){a.TC=new g.yk(0,0,0,0);a.xv=new g.yk(0,0,0,0)} var f=a.app.Ma;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.ge(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})}; sHa=function(a){var b=g.tI(a.app);if(b=b?b.getVideoData():null){if(g.sD(b)||g.tD(b)||g.vD(b))return 16/9;if(cD(b)&&b.C.j)return a=b.C.videoInfos[0].video,rO(a.width,a.height)}return(a=a.Fb)?rO(a.videoWidth,a.videoHeight):16/9}; tHa=function(a,b,c,d){var e=c,f=rO(b.width,b.height);a.SM?e=cf?{width:b.width,height:b.width/e,aspectRatio:e}:ee?a.width=a.height*c:cMath.abs(sO*b-a)||1>Math.abs(sO/a-b)?sO:a/b}; qO=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.tI(a.app);if(!b||b.im())return!1;var c=a.app.Ma.vb();a=!g.U(c,2)||!a.app.S().K("html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Ka;b=g.U(c,1024);return c&&a&&!b&&!c.isCued()}; pO=function(a){var b="3"===a.app.S().controlsType&&!a.MB&&qO(a)&&!a.app.Gy||!1;a.Fb.controls=b;a.Fb.tabIndex=b?0:-1;b?a.Fb.removeEventListener("focus",a.hI):a.app.S().K("disable_focus_redirect")||a.Fb.addEventListener("focus",a.hI)}; uHa=function(a){var b=a.oi(),c=1,d=!1,e=tHa(a,b,a.getVideoAspectRatio()),f=a.app.S(),k=f.K("enable_desktop_player_underlay"),l=oq(),m=g.Pz(f.experiments,"player_underlay_min_player_width");m=k&&a.JI&&a.getPlayerSize().width>m;if(qO(a)){var n=sHa(a);var p=isNaN(n)||g.Nr||tO&&g.pr||m;pq&&!g.ic(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.K("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.yk(p,0,b.width,b.height)):p=new g.yk(0, 0,b.width,b.height):(c=e.aspectRatio/n,p=new g.yk((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.pr&&(n=p.width-b.height*n,0Math.max(p.width-e.width,p.height-e.height));if(l||a.qR)a.Fb.style.display="";a.qH=!0}else{p=-b.height;pq?p*=window.devicePixelRatio:g.mB&&(p-=window.screen.height);p=new g.yk(0,p,b.width,b.height);if(l||a.qR)a.Fb.style.display="none";a.qH=!1}zk(a.TC, p)||(a.TC=p,g.QA(f)?(a.Fb.style.setProperty("width",p.width+"px","important"),a.Fb.style.setProperty("height",p.height+"px","important")):g.Rk(a.Fb,p.getSize()),d=new g.Jf(p.left,p.top),g.Kk(a.Fb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.yk((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);zk(a.xv,b)||(a.xv=b,d=!0);g.Bk(a.Fb,"transform",1===c?"":"scaleX("+c+")");k&&m!==a.QC&&(m&&(a.Fb.addEventListener(pHa,a.EC),a.Fb.addEventListener("transitioncancel",a.EC),a.Fb.classList.add(g.nO.VIDEO_CONTAINER_TRANSITIONING)), a.QC=m,a.app.Ma.W("playerUnderlayVisibilityChange",a.QC?"transitioning":"hidden"));return d}; vHa=function(){this.csn=g.wu();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.j=new Set;this.u=new Set}; wHa=function(a,b){a.elements.has(b);a.elements.delete(b);a.B.delete(b);a.j.delete(b);a.u.delete(b)}; xHa=function(a){if(a.csn!==g.wu())if("UNDEFINED_CSN"===a.csn)a.csn=g.wu();else{var b=g.wu(),c=g.vu();if(b&&c){a.csn=b;for(var d=g.r(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.Au(void 0,b,c,[e])}if(b)for(a=g.r(a.j),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.Bu(b,c)}}; uO=function(a,b,c,d,e){g.V.call(this,{F:"div",L:"ytp-horizonchart"});this.D=b;this.sampleCount=c;this.B=d;this.C=e;this.index=0;this.heightPx=-1;this.u=this.ctx=null;this.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.D+"em"}; vO=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.ig("CANVAS"),a.ctx=c.getContext("2d")}catch(e){}if(a.ctx){var d=a.j*a.sampleCount;a.u=c;a.u.width=d;a.u.style.width=d+"px";a.element.appendChild(a.u)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.j*=4,c=0;c=k&&a.ua.seekCount?(a.seekCount++,a.Fa.qa("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.u,actual:k,duration:l,isVideo:c}),a.seek(a.u)):(a.Fa.qa("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.u,actual:k}),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Fa.oa.seekTo(k+.1,{Dr:!0,Xd:"chunkSelectorSynchronizeMedia",Ko:!0})))}})}; DHa=function(a,b,c){if(!a.cg())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.getSegmentNumberForTime(a.u);return(wy(c,a.j.Pe)||b.Ha===a.j.Pe)&&dc||c===a.B)&&!isNaN(a.D)?a.D:b}; MHa=function(a,b,c,d){LHa(a.I,d,c,b);LHa(a.xa,d,c,b);Bz(a.P,d,!0);Bz(a.P,d,!1);a.qa("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})}; NHa=function(a,b){if(a.j){var c=a.j.Ye.durationSecs-(b.startTime+a.J-a.j.Ye.startSecs);0>=c||(c=new cv(a.j.Ye.startSecs-(isNaN(a.J)?0:a.J),c,a.j.Ye.context,a.j.Ye.identifier,"stop",a.j.Ye.j+1E3*b.duration),a.qa("cuepointdiscontinuity",{segNum:b.Ha}),HO(a,c,b.Ha))}}; IO=function(a,b,c){a.u!==b&&(a.qa("sdai",{setsst:b,old:a.u,r:c}),a.u=b)}; JO=function(a,b,c,d){(void 0===d?0:d)?IO(a,1,"sk2h"):a.policy.Hd?0b)return!0;a.Z.clear()}return!1}; VHa=function(a,b){return new KO(a.J,a.u,b||a.j.reason)}; SHa=function(a){a.Ga?a.Ga=!1:a.U=(0,g.Q)();a.P=!1;return new KO(a.J,a.u,a.j.reason)}; WHa=function(a,b){var c={};b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.j,f=c[e],k=f&&Ry(f)&&f.video.j>a.policy.U,l=e<=a.policy.U?Ry(d):Py(d);if(!f||k||l)c[e]=d}return c}; LO=function(a,b){a.j=b;var c=a.I.videoInfos;if(!a.j.isLocked()){var d=(0,g.Q)();c=g.Cl(c,function(q){if(q.Mb>this.policy.Mb)return!1;var t=this.C.j[q.id],u=t.info.j;return this.policy.zt&&this.Pa.has(u)||this.Z.get(q.id)>d||4=q.video.width&&480>=q.video.height}))}c.length||(c=a.I.videoInfos); var e=g.Cl(c,b.C,b),f="m"===b.reason||"s"===b.reason;a.policy.rl&&tO&&g.pr&&(!f||1080>b.j)&&(e=e.filter(function(q){return q.video&&(!q.u||q.u.powerEfficient)})); if(0c.Xz.video.width?(g.Nb(e,b),b--):OO(a,c.Wz)*a.policy.B>OO(a,c.Xz)&&(g.Nb(e,b-1),b--);c=e[e.length-1];a.Sa=!!a.u&&!!a.u.info&&a.u.info.j!==c.j;a.D=e;DDa(a.policy,c)}; PHa=function(a,b){b?a.B=a.C.j[b]:(b=(b=g.Jb(a.I.j,function(c){return!!c.Dc&&c.Dc.isDefault}))||a.I.j[0],a.B=a.C.j[b.id]); MO(a)}; XHa=function(a,b){for(var c=0;c+1d}; MO=function(a){if(!a.B||!a.policy.u)if(!a.B||!a.B.info.Dc)if(a.B=a.C.j[a.I.j[0].id],1a.j.j:XHa(a,a.B);b&&(a.B=a.C.j[g.Hb(a.I.j).id])}}; NO=function(a){a.policy.Yh&&(a.Ca=a.Ca||new g.K(function(){a.policy.Yh&&a.u&&!QO(a)&&1===Math.floor(10*Math.random())?(PO(a,a.u),a.P=!0):a.Ca.start()},6E4),g.on(a.Ca)); if(!a.nextVideo||!a.policy.u)if(a.j.isLocked())a.nextVideo=360>=a.j.j?a.C.j[a.D[0].id]:a.C.j[g.Hb(a.D).id];else{for(var b=Math.min(a.videoIndex,a.D.length-1),c=AO(a.ea),d=OO(a,a.B.info),e=c/a.policy.C-d;0=f);b++);a.nextVideo=a.C.j[a.D[b].id];a.videoIndex!==b&&a.logger.info(function(){var k=a.j;return"Adapt to: "+wua(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+ f.toFixed(0)+", constraint: ["+(k.u+"-"+k.j+", override: "+(k.B+", reason: "+k.reason+"]"))}); a.videoIndex=b}}; QHa=function(a){var b=a.policy.C,c=AO(a.ea),d=c/b-OO(a,a.B.info);b=g.Kb(a.D,function(e){return OO(this,e)b&&(b=0);a.videoIndex=b;a.nextVideo=a.C.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+wua(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})}; RHa=function(a){if(a.Ya.length){var b=a.Ya,c=function(d,e){if("f"===d.info.j||b.includes(Zx(d,a.C.isLive,a.Fa.Vg(),a.policy.sb)))return d;for(var f={},k=0;ka.policy.jd&&(c*=1.5);return c}; YHa=function(a,b){a=pca(a.C.j,function(c){return c.info.Vb()===b}); if(!a)throw Error("Itag "+b+" from server not known.");return a}; ZHa=function(a){var b=[];if("m"===a.j.reason||"s"===a.j.reason)return b;if(Nua(a.C)){for(var c=Math.max(0,a.videoIndex-2);c=d.length)return;if(0>c)throw Error("Missing data");a.B=a.C;a.u=0}for(e={};c=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0$O.length&&$O.push(m)}t= void 0}m=t;if(null!==m){var u=m;break a}}catch(x){}}c+=e}u=null}catch(x){u=null}}if(null!=u){b=g.Oc(u,7);null==b||a.Oe||(a.cryptoPeriodIndex=b);b=g.Oc(u,10);null!=b&&0=a.j.totalLength)throw Error();return ax(a.j,a.offset++)}; lIa=function(a,b){b=void 0===b?!1:b;var c=cP(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=cP(a);-1===b&&255!==d&&(b=0);-1e&&d>c;e++)c=256*c+cP(a),d*=128;return b?c:c-d}; fP=function(a,b,c){var d=this;this.Fa=a;this.policy=b;this.D=c;this.logger=new g.eO("dash");this.u=[];this.j=null;this.Z=-1;this.P=0;this.ma=NaN;this.U=0;this.B=NaN;this.Ca=this.Ga=0;this.Qa=-1;this.xa=this.C=this.I=this.ea=null;this.Sa=this.Pa=NaN;this.J=this.V=this.Ka=this.Ya=null;this.Za=!1;this.timestampOffset=0;if(this.policy.u){var e=this.D,f=this.policy.u;this.J=new SO(this.policy,e,function(k,l,m){dP(a,new aP(d.policy.u,2,{gz:new kIa(f,k,e.info,l,m)}))}); this.J.P.promise.then(function(k){d.J=null;1===k&&dP(a,new aP(d.policy.u,k))},function(k){var l=(k.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); k instanceof YO&&!k.j?(d.logger.info(function(){return"Assertion failed: "+l}),eP(d),dP(a,new aP(d.policy.u,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.Fa.qa("dldbwerr",{em:l}),eP(d),dP(a,new aP(d.policy.u,4,{OB:!0})))})}}; mIa=function(a){return a.u.length?a.u[0]:null}; gP=function(a){return a.u.length?a.u[a.u.length-1]:null}; qIa=function(a,b,c){if(a.C){var d=a.C.yb+a.C.u;if(0=a.Z&&0===a.P){var f=a.j.j, k=-1;e=-1;if(c){for(var l=0;l+8e&&(k=-1)}else{f=new bP(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var q=lIa(p,!0),t=lIa(p,!1);var u=q;var x=t}catch(z){x=u=-1}p=u;var y=x;if(!(0k&&(k=n),m))break;163===p&&(k=Math.max(0,k),e=f.getOffset()+y);if(160===p){0>k&&(e=k=f.getOffset()+ y);break}f.skip(y)}}0>k&&(e=-1)}if(0>k)break;a.Z=k;a.P=e-k}if(a.Z>d)break;a.Z?(d=oIa(a,a.Z),d.D&&pIa(a,d),nIa(a,b,d),kP(a,d),a.Z=0):a.P&&(d=oIa(a,0>a.P?Infinity:a.P),a.P-=d.j.totalLength,kP(a,d))}}a.j&&a.j.info.Vd&&(kP(a,a.j),a.j=null)}; jP=function(a,b){!b.info.j.tm()&&0===b.info.yb&&(g.Ey(b.info.j.info)||b.info.j.info.Oe())&&rua(b);if(1===b.info.type)try{pIa(a,b),rIa(a,b)}catch(d){g.R(d);var c=iy(b.info);c.hms="1";a.Fa.handleError("fmt.unparseable",c||{},1)}b.info.j.SG(b);a.J&&cIa(a.J,b)}; eP=function(a){var b;null==(b=a.J)||b.dispose();a.J=null}; sIa=function(a){var b=a.u.reduce(function(c,d){return c+d.j.totalLength},0); a.j&&(b+=a.j.j.totalLength);return b}; lP=function(a){return g.Rj(a.u,function(b){return b.info})}; oIa=function(a,b){var c=a.j;b=Math.min(b,c.j.totalLength);if(b===c.j.totalLength)return a.j=null,c;c=kua(c,b);a.j=c[1];return c[0]}; pIa=function(a,b){var c=Dy(b);if(Qy(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new Ex(c);Gx(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.j,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;Py(d)&&!Qy(d)&&(d=Dy(b),(new Ex(d)).Ru(),Kx([408125543,374648427,174,224],21936,d));b.info.j.info.isVideo()&&(d=b.info.j,d.info&&d.info.video&&4===d.info.video.projectionType&&!d.B&&(g.Ey(d.info)?d.B=pta(c):d.info.Oe()&&(d.B=wta(c))));b.info.j.info.Oe()&& b.info.isVideo()&&(c=Dy(b),(new Ex(c)).Ru(),Kx([408125543,374648427,174,224],30320,c)&&Kx([408125543,374648427,174,224],21432,c));if(a.policy.Pw&&b.info.j.info.Oe()){c=Dy(b);var e=new Ex(c);if(Gx(e,[408125543,374648427,174,29637])){d=Jx(e,!0);e=e.start+e.j;for(var f=0;fm||(e&&b.skip(4),f&&b.skip(4),e=nx(b),b.skip((m-1)*(4+(k?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.j,e))}}if(b=a.ea&&!!a.ea.D.C)if(b=c.info.isVideo())b=qua(c),k=a.ea,mP?(l=1/b,b=nP(a,b)>=nP(k)+l):b=a.getDuration()>=k.getDuration(),b=!b;b&&tIa(c)&&(b=a.ea,mP?(l=qua(c),k=1/l,l=nP(a,l),b=nP(b)+k-l):b=b.getDuration()- a.getDuration(),b=1+b/c.info.duration,ota(Dy(c),b))}else{k=!1;a.I||(rua(c),c.u&&(a.I=c.u,k=!0,l=c.info,e=c.u.j,l.D="updateWithEmsg",l.Ha=e,l=c.u,l.C&&(a.D.index.B=!l.C),l=c.info.j.info,e=Dy(c),g.Ey(l)?Cx(e,1701671783):l.Oe()&&Kx([408125543],307544935,e)));a:{if(e=l=Fy(c,a.policy.Ka))e=c.info.j.info.Oe()&&160===ax(c.j,0);if(e)a.U+=l,a.B=a.policy.Xc?a.B+l:NaN;else{if(a.policy.Or){var n=a.Fa.Ko(mua(c),1);e=n;if(0<=a.B&&6!==c.info.type){if(a.policy.Xc&&isNaN(a.Pa)){g.lu(new g.hr("Missing duration while processing previous chunk", jy(c.info)));hP(a,"m");break a}f=n-a.B;var p=f-a.Ca;d=c.info.Ha;var q=a.xa?a.xa.Ha:-1,t=a.Sa,u=a.Pa;var x=a.policy.vj&&f>a.policy.vj;var y=a.policy.Bf&&p>a.policy.Bf;if(1E-4x&&d>a.Qa)&&z&&(d=Math.max(.95,Math.min(1.05,(l-(y-f))/l)),ota(Dy(c),d),d=Fy(c,a.policy.Ka),m=l-d,l=d));a.Ca=f+m}}else e=isNaN(a.B)?c.info.startTime:a.B;nua(c,e)?(isNaN(a.ma)&&(a.ma=e),a.U+=l,a.B=e+l):(l=iy(c.info),l.smst="1",a.Fa.handleError("fmt.unparseable",l||{},1))}}a.xa=c.info;a.Pa=pua(c);0<=c.C&&(a.Sa=c.C);if(k&&a.I){k=uIa(a,!0);ky(c.info,k);a.j&&ky(a.j.info,k);b=g.r(b.info.j);for(l=b.next();!l.done;l=b.next())ky(l.value, k);(c.info.Vd||a.j&&a.j.info.Vd)&&6!==c.info.type||(a.V=k,b=a.Fa,b.j.isManifestless&&vIa(b,k,null,!!a.D.info.video),a.policy.Zd||wIa(a))}}rIa(a,c);a.timestampOffset&&oua(c,a.timestampOffset)}; kP=function(a,b){if(b.info.Vd){a.Ya=b.info;if(a.I){var c=a.I,d=uIa(a,!1),e=null;if(a.I.gy()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=jta(c),k=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.r(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())k.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=g.r(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n= m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.r(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new gIa(e,f,k,l,g.kta(c),g.lta(c))}a.Fa.oI(a.D,d,e);a.V||a.policy.Zd||wIa(a);a.V=null}iP(a)}a.J&&cIa(a.J,b);if(c=gP(a))if(c=lua(c,b,a.policy.Wj)){a.u.pop();a.u.push(c);return}a.u.push(b)}; iP=function(a){a.j=null;a.Z=-1;a.P=0;a.I=null;a.ma=NaN;a.U=0;a.V=null}; hP=function(a,b){b={rst4disc:b,cd:a.Ca.toFixed(3),sq:a.xa?a.xa.Ha:-1};a.B=NaN;a.Ca=0;a.Qa=-1;a.xa=null;a.Sa=NaN;a.Pa=NaN;a.Ka=null;a.Fa.qa("mdstm",b)}; rIa=function(a,b){if(a.D.info.Td){if(b.info.j.info.Oe()){var c=new Ex(Dy(b));if(Gx(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=Jx(c,!0);c=16!==d?null:Ox(c,d)}else c=null;d="webm"}else b.info.J=eIa(Dy(b)),c=fIa(b.info.J),d="cenc";c&&c.length&&(c=new ZO(c,d),c.Oe=b.info.j.info.Oe(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),b.u&&b.u.B&&(c.j=b.u.B),a.Fa.fv(c))}}; wIa=function(a){var b=a.I,c=hta(b);c&&(c.startSecs+=a.ma,a.Fa.nI(a.D,c,b.j,b.gy()))}; uIa=function(a,b){var c,d=a.I;if(c=hta(d))c.startSecs+=a.ma;return new Tw(d.j,a.ma,b?d.bk:a.U,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)}; tIa=function(a){return a.info.j.tm()&&a.info.Ha===a.info.j.index.getLastSegmentNumber()}; nP=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.D.C&&b&&(b+=a.D.C.j);return b+a.getDuration()}; xIa=function(a,b){0>b||(a.u.forEach(function(c){oua(c,b)}),a.timestampOffset=b)}; oP=function(a,b){this.info=a;this.callback=b;this.state=1;this.P=!1;this.C=0;this.D=!1;this.j=this.lastError=null}; yIa=function(a){return g.Sj(a.info.j,function(b){return 3===b.type})}; pP=function(a,b){var c=a.state;a.state=b;a.onStateChange(c);a.callback&&a.callback(a,c)}; qP=function(a,b){b&&a.state=b&&(e.u.pop(),e.B-=Fy(l,e.policy.Ka),f=l.info)}f&&(e.C=0c?FO(a,d):a.u=a.j.Fo(b-1,!1).j[0]}; DP=function(a,b){var c;for(c=0;c=a.U:c}; KIa=function(a){var b;return yP(a)||!(null==(b=gP(a.C))||!dy(b.info))}; xP=function(a){var b=[],c=uP(a);c&&b.push(c);b=g.Qb(b,lP(a.C));c=g.r(a.B);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e={},f=g.r(d.info.j),k=f.next();!k.done;e={qt:e.qt},k=f.next())e.qt=k.value,d.P&&(b=g.Cl(b,function(l){return function(m){return!Rta(m,l.qt)}}(e))),(fy(e.qt)||4===e.qt.type)&&b.push(e.qt)}a.u&&!Mta(a.u,g.Hb(b),a.u.j.tm())&&b.push(a.u); return b}; HIa=function(a,b){if(!a.length)return!1;for(b+=1;b=b){b=f;break a}}b=e}return 0>b?NaN:HIa(a,c?b:0)?a[b].startTime:NaN}; EP=function(a){return!(!a.u||a.u.j===a.j)}; LIa=function(a){return EP(a)&&a.j.Hf()&&a.u.j.info.Mbb&&a.Cb)return!0;var c=a.getLastSegmentNumber();return bb)return 1;c=a.getLastSegmentNumber();return be.policy.j&&(e.callbacks.hs(f,e.B),e.D=f)},function(){},d.body||null)}; UIa=function(a,b){var c=this;this.j=a;this.callbacks=b;this.loaded=this.status=0;this.error="";a=ay(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new Vw;TIa(this).then(function(){c.callbacks.Wp()},function(d){c.error=""+d||"unknown_err"; c.callbacks.Wp()})}; TIa=function(a){var b,c,d,e,f,k,l,m,n,p,q,t,u,x,y;return g.B(function(z){if(1==z.j){a.status=200;b=a.j.get("docid");c=Pf(a.j.get("fmtid")||"");d=a.j.get("lmt")||"0";e=+(a.j.get("csz")||0);if(!b||!c||!e)throw Error("Invalid local URL");a.j.get("ck")&&a.j.get("civ")&&(f=new $Ha(a.j.get("ck"),a.j.get("civ")));k=a.range;l=Math.floor(k.start/e);m=Math.floor(k.end/e);n=l}if(5!=z.j)return n<=m?g.A(z,fxa(b,c,d,n,f),5):z.Oa(0);p=z.u;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;t=(n+1)*e; u=Math.max(0,k.start-q);x=Math.min(k.end+1,t)-(u+q);y=new Uint8Array(p.buffer,u,x);a.u.append(y);a.loaded+=x;a.loadede?(a.B+=d,.2d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=KP(a)?d+b:d+Math.max(b,c);a.U=d}; MP=function(a,b){for(var c="";4095>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))}; OP=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.U=d;this.status=0;this.response=void 0;this.P=this.u=0;this.I=this.J=!1;this.errorMessage="";this.Z=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.Bm=f.body.getReader(),e.isDisposed()?e.Bm.cancel().catch(function(){}):(e.D=f.headers,e.callbacks.ov(),dJa(e)); else e.onDone()}; this.V=function(f){var k=(0,g.Q)();e.isDisposed()||(e.C&&(e.j.append(e.C),e.C=void 0),f.done?(e.Bm=void 0,e.onDone()):(f=f.value,e.u+=f.length,e.C=f,f=(0,g.Q)(),f-e.P>e.policy.j&&(e.P=f,e.callbacks.hs(k,e.u)),dJa(e)))}; this.onError=function(f){e.errorMessage=String(f);e.J=!0;e.onDone()}; this.j=new Vw;this.B=window.AbortController?new AbortController:void 0;this.start(a)}; dJa=function(a){a.Bm.read().then(a.V,a.onError).then(void 0,br)}; PP=function(a,b,c){var d=this;c=void 0===c?{}:c;this.callbacks=b;this.u=this.status=0;this.isDisposed=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.r(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.hv(f)}; a=Dp(function(f){d.onDone(f)}); this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);c.body?this.xhr.send(c.body):this.xhr.send();this.xhr.addEventListener("progress",Dp(function(f){d.Ld(f)}),!1)}; SP=function(a,b,c,d,e,f){var k=void 0===f?{}:f;f=void 0===k.bz?[]:k.bz;var l=void 0===k.Gz?!1:k.Gz,m=void 0===k.Sq?0:k.Sq,n=void 0===k.poToken?"":k.poToken,p=void 0===k.ls?void 0:k.ls;k=void 0===k.kz?"":k.kz;oP.call(this,b,e);var q=this;this.policy=a;this.logger=new g.eO("dash/request");this.V=this.B=0;this.xa=!1;this.J=this.I=null;this.ma=!1;this.timing=new GP(this,c);this.Z=d;this.Gz=l;this.u=g.py(this.info,this.policy,this.Z);this.u.set("rn",this.timing.requestNumber.toString());this.u.set("rbuf", (1E3*m).toFixed().toString());this.Gz&&this.u.set("smb","1");this.policy.Tj&&n&&this.u.set("pot",n);k&&this.u.set("bbs",k);this.bz=f||null;this.ls=p;this.D=eJa(this);this.ea=1*this.policy.Ge;this.U=new g.K(this.G0,this.ea,this);this.info.u.J=(0,g.Q)();Eta(QP(this));a=void 0;this.policy.rq&&(a={method:"POST",body:this.info.Ck()});try{this.xhr=fJa(this,a),this.U.start()}catch(t){g.lu(t),this.lastError="net.ssl",g.zg(function(){RP(q)})}}; eJa=function(a){if(!(oy(a.info)&&a.info.cn()&&a.policy.Kc&&a.bz)||2<=a.info.u.u||0a.policy.yl||a.D&&!a.policy.Rs?0:qw())?rw()?new FP(c,a.policy.D,a.timing,b):new OP(c,a.policy.D,a.timing,b):new PP(c,a.timing,b)}; jJa=function(a){if(!a.policy.D.Ji||!isNaN(a.info.Df)&&0a.info.j[0].Ha?!1:!0}; UP=function(a,b,c,d,e,f,k,l,m,n,p,q){g.I.call(this);this.Fa=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.I=e;this.B=f;this.timing=k;this.J=l;this.schedule=m;this.j=n;this.D=p;this.ea=q;this.ma=!1;this.kz="";this.C=this.Bi=null;this.U="";this.V=0;this.Df=NaN;this.xa=!1;this.u=null;this.Z=NaN;this.P=0;this.logger=new g.eO("dash");0f&&(c=d.j.It(d,e-k.u)))),d=c):(0>d.Ha&&(c=iy(d),c.pr=""+b.B.length,a.Fa.cg()&&(c.sk="1"),c.snss=d.D,a.Fa.qa("nosq",c)),d=k.Bw(d));if(a.policy.P)for(c=g.r(d.j),e=c.next();!e.done;e=c.next())e.value.type=6}else d.j.tm()?(c=zO(a.J,b.j.info.Mb,c.j.info.Mb,0),d=d.j.It(d,c)):d=d.j.Bw(d);if(a.u&&(c=a.B,e=d.j[0].Ha, c=0>e&&!isNaN(c.B)?c.B:e,k=KHa(a.B,d.j[0].B,c),f=b===a.audioTrack?1:2,e=a.u.Ck(k,c,d.j[0].j.info.id,f),0>c&&(a.policy.Rw||2===f)&&JO(a.B,0,0,!0),e)){k={decurl_itag:d.j[0].j.info.Vb(),sg:c,st:k.toFixed(3)};if(a.policy.Mr&&b.isRequestPending(c-1)){a.Fa.qa("sdai",{wt_daistate_on_sg:c-1});return}a.Fa.qa("sdai",k);e&&(d.B=new g.Lw(e))}a.policy.dl&&-1!==d.j[0].Ha&&d.j[0].Ha=a.policy.wl)return ZP(a,"toomany"),!1;if(!a.policy.Kl&&0=a.policy.zl)return ZP(a,"maxpending"),!1;d=b.u;if(!d)return!0;4===d.type&&d.j.Hf()&&(b.u=g.Hb(d.j.Dv(d)),d=b.u);if(!dy(d)&&!d.j.Eo(d))return ZP(a,"notready"),!1;var e=a.j.vf||a.j.D;if(a.j.isManifestless&&e){e=b.j.index.getLastSegmentNumber();var f=c.j.index.getLastSegmentNumber(); e=Math.min(e,f);if(0=e)return b.U=e,c.U=e,ZP(a,"postlive"),!1}if(d.j.info.audio&&4===d.type)return ZP(a,"toomanyaudio"),!1;if(LIa(b)&&!a.policy.Za)return ZP(a,""),!0;if(dy(d))return ZP(a,"eos"),!1;if(zP(b)&&zP(b)+zP(c)>a.policy.lc)return ZP(a,"maxheap"),!1;e=!b.D&&!c.D;f=d.C;f=!!(c.u&&!dy(c.u)&&c.u.ClJa(a,b))return ZP(a,"maxtime;"+d.C.toFixed(3)+";"+lJa(a,b)),!1;if((b=b.Xb)&&b.isLocked())return ZP(a,"locked"),!1;ZP(a,"");return!0}; ZP=function(a,b){a.policy.gf&&a.u&&(a.U=b)}; lJa=function(a,b){var c=a.B;c=c.j?c.j.Ye:null;if(a.policy.P&&c)return c.startSecs+c.durationSecs+15;b=WP(a.Fa,b,!0);!a.Fa.Qd.j.isLocked()&&0a.Fa.getCurrentTime())return c.start/1E3;return Infinity}; $P=function(a,b,c){a:if(b=b.info,b.B)c=null;else{var d=b.j[0];if(b.range)var e=by(b.range.start,Math.min(4096,my(b)));else{if(b.C&&0<=b.C.indexOf("/range/")||"1"===b.u.C.get("defrag")||"1"===b.u.C.get("otf")){c=null;break a}e=by(0,4096)}e=new ly([new cy(5,d.j,e,"createProbeRequestInfo"+d.D,d.Ha)],b.C);e.I=c;e.B=b.B;c=e}c&&YP(a,c)}; YP=function(a,b){nJa(a.Fa,b);var c=Uta(b);c={Th:a.schedule,Ak:c,IC:yHa(a.J,c),cn:ey(b.j[0]),Gn:Qw(b.u.j),bG:a.policy.Z};a.Bi&&(c.Ha=b.j[0].Ha,c.Df=b.Df,c.Bi=a.Bi);var d={Sq:Vta(b,a.Fa.getCurrentTime()),bz:a.policy.Kc&&oy(b)&&b.j[0].j.info.video?ZHa(a.D):void 0,Gz:a.policy.P,poToken:a.Fa.GG(),ls:a.Fa.DB(),kz:a.kz};return new SP(a.policy,b,c,a.I,function(e,f){try{a:{a.policy.gf&&a.u&&(a.C=e);var k=e.info.j[0].j,l=k.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.C||!(!a.Fa.mediaSource|| a.Fa.isSuspended||3=n)$P(a,e,!1),a.xa=!0;else{var p=a.policy.Uh;if(p&&!(mf){if(a.policy.Kb){var x=Object.assign(HP(e.timing),{rst:""+e.state,strm:""+e.xhr.Pv(),d:bJa(e.timing)});a.Fa.qa("rqs",x)}e.xa&&a.Fa.qa("sbwe3",{},!0)}if(!a.isDisposed()&& 2<=e.state){var y=a.timing,z=e.info.j[0].j,D=!y.D&&z.info.video,G=!y.u&&z.info.audio;3===e.state?D?y.tick("vrr"):G&&y.tick("arr"):4===e.state?D?(y.D=g.Tx(e.u),g.Tq(),Vq(4)):G&&(y.u=g.Tx(e.u)):e.Hw()&&D&&(g.Tq(),Vq(4));if(3===e.state){DP(l,e);oy(e.info)&&aQ(a,l,k,!0);if(a.u){var F=e.info.Ck();F&&a.u.Ik(e.info.j[0].Ha,k.info.id,F)}a.Fa.uj()}else if(e.isComplete()&&5===e.info.j[0].type){if(4===e.state){var L=(e.info.j[0].j.info.video?a.videoTrack:a.audioTrack).B[0]||null;L&&L instanceof SP&&L.C&&iJa(L, !0)}e.dispose()}else{if(!e.isFailed()&&e.D&&2<=e.state&&3!==e.state){var aa=e.xhr.getResponseHeader("X-Response-Itag");if(aa){var M=YHa(a.D,aa),qa=my(e.info);if(qa){var ua=qa-M.AG();M.D=!0;e.info.j[0].j.D=!1;var Z=M.mp(ua);e.info=Z;if(e.j){var pa=e.j,Qa=Z.j;pa.j=Qa;var Pa=Qa[0].range,Ya=new Vw;for(f=0;fob.B&&(ob.B=NaN,ob.D=NaN),ob.j&&ob.j.Ha===zd.j[0].Ha){var Tf=ob.j,yf=Tf.Ye;Qe.Rp(yf)&&"predictStart"!==yf.event?Tf.gy?IO(ob,4,"cue"):(ob.B=zd.j[0].Ha,ob.D=zd.j[0].B,ob.qa("sdai",{joinad:ob.u,sg:ob.B,st:ob.D.toFixed(3)}),ob.U=Date.now(), IO(ob,2,"join"),Qe.NG(Tf.Ye)):IO(ob,5,"nogab")}else 1===ob.u&&IO(ob,5,"noad")}}else if(a.policy.ma&&e.wv()&&!e.isComplete()&&!bQ(a,e)&&!e.isFailed())break a;e.isFailed()&&a.Ku(e);a.Fa.uj();if(a.policy.Wc&&e.isComplete()&&e.canRetry()&&Xx(e.info.u,a.policy,a.I)){var Ag=a.I;var re=Pw(e.info.u.j);var Xb=Vx(Ag,re);Xb.B+a.policy.Wc*Gta(Xb,a.policy,!0)>(0,g.Q)()||$P(a,e,!1)}}}}}}catch(Uf){M=a.ma?1:0,a.ma=!0,e=vB(M),M=wB(Uf,M),a.Fa.handleError(M.errorCode,M.details,M.severity),e||a.Fa.Pi()}},d)}; bQ=function(a,b){try{var c=b.info.j[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.j.isManifestless&&d){a.P=0;d.J&&(b.isDisposed(),b.isComplete()||b.wv(),d.J=!1);b.uG()&&a.Fa.QA.Rh(1,b.uG());var e=b.DL(),f=b.NN(),k=a.j,l;for(l in k.j){var m=k.j[l].index;m.Nl&&(e&&(m.Cw=Math.max(m.Cw,e)),f&&(m.u=Math.max(m.u||0,f)))}}if(b.info.cn()&&!ny(b.info))for(var n=g.r(b.HE()),p=n.next();!p.done;p=n.next()){var q=p.value;if(1===q.info.type)if(c.info.video){var t=a.timing;t.V||(t.V=(0,g.Q)(),xI("vis_r",t.V, t.j))}else{var u=a.timing;u.J||(u.J=(0,g.Q)(),xI("ais_r",u.J,u.j))}jP(d.C,q)}wP(d,a.Fa.getCurrentTime());return!!d.gg()}catch(x){return b=b.yu(),b.origin="hrhs",oJa(a.Fa,x,b),!1}}; pJa=function(a){var b=a.videoTrack.j.index;a.Bi=new QIa({jn:a.policy.jn,Ji:a.policy.D.Ji,Jh:b.Jh,getLastSegmentNumber:function(){return b.getLastSegmentNumber()}, rr:function(){return b.rr()}})}; aQ=function(a,b,c,d){if(!(c.Hf()||c.Vu()||c.D)&&Jta(c.u,a.policy)&&"f"!==c.info.j){if(d){d=a.J;var e=c.info,f=zHa(d,e.video?d.policy.tq:d.policy.Uj,e.Mb);d=d.policy.Yi&&e.video?Math.max(f,d.policy.Yi):f}else d=0;d=c.mp(d);a=YP(a,d);ny(d)&&vP(b,a);c.D=!0}}; qJa=function(a,b,c,d,e){this.Fa=a;this.policy=b;this.schedule=c;this.P=d;this.V=e;this.Z=NaN;this.u=this.J=this.C=null;this.j=this.D=this.I=this.startTimeSecs=NaN;this.B=!1;this.U=NaN}; rJa=function(a,b,c,d,e){return b.Gb&&b.xa&&3===Qsa(b)?new qJa(a,b,c,d,e):null}; sJa=function(a,b){if(a.policy.Ss){var c=b.info.Mb,d=zA(a.schedule);b=b.index.Jh;c=Math.max(1,d/c);a.U=Math.round(1E3*Math.max(((c-1)*b+a.policy.ea)/c,b-a.policy.Bd))}}; vJa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.I,f=e>=a.policy.ri,k=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e=a.policy.Bd&&!a.B;if(!f&&!c&&tJa(a,b))return NaN;c&&(a.B=!0);a:{d=k;c=Date.now()/1E3-(a.P.wh()||0)-a.J.u-a.policy.ea;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){cQ(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.wd;d1E3*a.policy.Mw){a.qa("ombttl",{});return}if(a.j.Pe&&a.j.D||a.j.isPremiere)return}e=a.Vg();if(a.U&&rP(a.U,Zx(c,d,e,a.policy.sb))){d=Zx(c,d,e,a.policy.sb);e=yJa(a.U,d);if(a.j.isLive&&a.policy.qq)var f=c.yn(Infinity);else{if(!c.indexRange||!c.initRange)return;var k=c.indexRange.length+c.initRange.length,l=zJa(a.U,d);if(!l){a.qa("ombooo",{});return}k=l-k;if(0(0,g.Q)()-d.U;var e=d.nextVideo&&3*OO(d,d.nextVideo.info)c*(10-e)/AO(b)}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0a.currentTime||360(e?e.Ha:-1));if(f)return a.policy.Hd&&a.D.cg()&&kQ(a),!1;lQ(a,b,c,d.info);if(a.j.u&&0===d.info.yb){if(null==c.ip()){e=uP(b);if(!(f=!e||e.j!==d.info.j)){b:if(e=e.J,f=d.info.J,e.length!==f.length)e=!1;else{for(var k=0;ke)||(a.policy.dc&&(!d.info.yb||d.info.Vd||10>d.info.B)&&a.qa("sba",c.Lb({as:jy(d.info)})),e=d.D||d.B?d.info.j.j:null,f=$w(d.j),d.B&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),c=HJa(a,c,f,d.info,e),"s"===c?(a.xa=0,a=!0):("i"===c||"x"===c?IJa(a,"checked",c,d.info):("q"===c&&(d.info.isVideo()?(e=a.policy, e.J=Math.floor(.8*e.J),e.Ga=Math.floor(.8*e.Ga),e.I=Math.floor(.8*e.I)):(e=a.policy,e.V=Math.floor(.8*e.V),e.Fc=Math.floor(.8*e.Fc),e.I=Math.floor(.8*e.I)),PO(a.Qd,d.info.j)),jQ(a.oa,{reattachOnAppend:c})),a=!1),e=!a);if(e)return!1;b.gj(d);return!0}; IJa=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",d.j.info.video&&!QO(a.Qd)&&PO(a.Qd,d.j)):"i"===c&&(15>a.xa?(a.xa++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=iy(d);var k;d.mrs=null==(k=a.mediaSource)?void 0:pz(k);d.origin=b;d.reason=c;a.handleError(e,d,f)}; vIa=function(a,b,c,d){var e=a.j,f=!1,k=-1;for(n in e.j){var l=Ty(e.j[n].info.mimeType)||e.j[n].info.isVideo();if(d===l)if(f=e.j[n].index,wy(f,b.Ha)){l=b;var m=f.Wl(l.Ha);m&&m.startTime!==l.startTime?(f.segments=[],f.yE(l),f=!0):f=!1;f&&(k=b.Ha)}else f.yE(b),f=!0}if(0<=k){var n={};e.W("clienttemp","resetMflIndex",(n[d?"v":"a"]=k,n),!1)}GHa(a.D,b,d,f);a.B.oI(b,c,d)}; lQ=function(a,b,c,d){b=uP(b);!b||b.Vd||gy(b,d)||c.abort();!c.Lx()||lz()?c.fK(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.Lx()&&a.qa("ctu",{ct:lz(),prev_c:c.Lx(),curr_c:d.j.info.containerType});b=d.j.C;a.policy.ol&&b&&(d=0+b.duration,b=-b.j,0===c.sB()&&d===c.rG()||c.mJ(0,d),b!==c.pd()&&(c.nD(b),mP&&xIa(a.audioTrack.C,c.HG())))}; mQ=function(a,b,c){c.info.j.Hf();var d=c.info.j.j;if(!d||!b.LA()||b.ip()===d)return!1;var e=d,f=b.wB();if(a.policy.Zh&&f&&b.isView()&&g.Ey(c.info.j.info)){var k=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=uta(k,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.qa("fenc",{})}f=null;(k=c.info.j.mp(0))&&(f=k.j[0]);a.policy.dc&&a.qa("sbi",b.Lb({as:jy(c.info)}));a.policy.Kj&&b.abort();d=HJa(a,b,e,f,d);if("s"!==d)return IJa(a,"sepInit",d,c.info),!0;c.info.isVideo()?(a=a.timing,a.U||(a.U= (0,g.Q)(),xI("vis_a",a.U,a.j))):(a=a.timing,a.I||(a.I=(0,g.Q)(),xI("ais_a",a.I,a.j)));return b.wi()}; HJa=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(f instanceof DOMException){if(11===f.code)return"i";if(12===f.code)return"x";if(22===f.code||0===f.message.indexOf("Not enough storage"))return b=Object.assign({name:"QuotaExceededError",buffered:dz(b.Xf()).replace(/,/g,"_"),message:g.lc(f.message),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},wJa()),a.handleError("player.exception",b),"q";g.R(f)}return"u"}return a.mediaSource.Gf()?"m":"s"}; dP=function(a,b){a.oa.zC(b)}; WP=function(a,b,c){if(a.isSuspended)return 1;var d=b.j.info.audio?a.policy.V:a.policy.J;!a.policy.Za&&a.Qd.j.isLocked()&&(d=Math.max(d,b.j.info.audio?a.policy.Fc:a.policy.Ga));c&&(d+=a.policy.lc);c=a.Qd.j.isLocked()?b.u?b.u.j.info.Mb:b.j.info.Mb:b.Mb*a.policy.dk;d/=c;0=b&&xJa(a,d.startTime,!1)}); return c&&c.startTimed;d++)c[2*d]=''.charCodeAt(d);a=a.B.createSession("video/mp4",b,c);return new wQ(null,null,null,null,a)}; yQ=function(a,b){var c=a.I[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.I[b.sessionId]=c);return c}; oKa=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e=a&&(c=.75*a),b=.5*(a-c),c=new qQ(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new AQ(a.bb("disable_license_delay"),!a.bb("h5_widevine_keyrotationagent_optimization_killswitch"), b,this);break a;default:c=null}if(this.D=c)g.J(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.xM,this),this.D.subscribe("log_qoe",this.Nh,this);Qz(this.environmentData.experiments);this.Nh({cks:this.j.Yf()});c=this.j;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.D&&(this.Ka=new zQ(this.videoData.Bd,this.environmentData.experiments),g.J(this,this.Ka))}; tKa=function(a){var b=a.C.attach();b?b.then(Dp(function(){uKa(a)}),Dp(function(c){if(!a.isDisposed()){g.Cp(c); var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.W("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.Nh({mdkrdy:1}),a.U=!0); a.V&&(b=a.V.attach())}; wKa=function(a,b,c){a.Ga=!0;c=new ZO(b,c);a.environmentData.K("html5_eme_loader_sync")&&(a.I.get(b)||a.I.set(b,c));vKa(a,c)}; vKa=function(a,b){if(!a.isDisposed()){a.Nh({onInitData:1});if(a.environmentData.K("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.J.get(b.initData);b=a.I.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.I.remove(c);a.J.remove(c)}a.Nh({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.ma&&!a.videoData.isLivePlayback)EQ(a);else{if(!(a.environmentData.K("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Oe)){a.ma=!0;c=b.cryptoPeriodIndex;var d=b.j;iIa(b);b.Oe|| (d&&b.j!==d?a.W("ctmp","cpsmm",{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.W("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.W("widevine_set_need_key_info",b)}}else a.xM(b)}}; uKa=function(a){if(!a.isDisposed())if(a.environmentData.K("html5_drm_set_server_cert")&&!g.YA(a.environmentData)){var b=a.C.setServerCertificate();b?b.then(Dp(function(c){sB(a.environmentData)&&a.W("ctmp","ssc",{success:c})}),Dp(function(c){a.W("ctmp","ssce",{n:c.name, m:c.message})})).then(Dp(function(){FQ(a)})):FQ(a)}else FQ(a)}; FQ=function(a){a.isDisposed()||(a.U=!0,a.Nh({onmdkrdy:1}),EQ(a))}; xKa=function(a){return"widevine"===a.j.flavor&&a.videoData.K("html5_drm_cpi_license_key")}; EQ=function(a){if(a.Ga&&a.U&&!a.ea){for(;a.B.length;){var b=a.B[0],c=xKa(a)?jIa(b):g.kc(b.initData);if(a.u.get(c))if("fairplay"===a.j.flavor)a.u.delete(c);else{a.B.shift();continue}iIa(b);break}a.B.length&&a.createSession(a.B[0])}}; yKa=function(a){var b;if(b=g.jq()){var c;b=!(null==(c=a.C.u)||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.gx(b),a.W("ctmp","drm",{metrics:b}))}; HQ=function(a){g.I.call(this);var b=this;this.oa=a;this.j=this.oa.S();this.videoData=this.oa.getVideoData();this.wy=0;this.I=this.B=!1;this.D=0;this.C=g.Pz(this.j.experiments,"html5_delayed_retry_count");this.u=new g.K(function(){GQ(b.oa)},g.Pz(this.j.experiments,"html5_delayed_retry_delay_ms")); g.J(this,this.u)}; JQ=function(a,b,c){var d=a.videoData.B,e=a.videoData.I;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.oa.eh.C&&d&&"22"===d.Vb())return a.oa.eh.C=!0,a.rd("qoe.restart",{reason:"fmt.unplayable.22"}),IQ(a.oa),!0;var f=!1,k=a.wy+3E4<(0,g.Q)()||a.u.isActive();if(a.j.K("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.rd("auth",c),!0;var l;if(l=!k)l=a.oa.vp(),l=!!(l.lf()||l.isInline()||l.isBackground()|| l.Su()||l.Pu());l&&(c.nonfg="paused",k=!0,a.oa.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:Isa(e)||Hsa(e))&&(Dva(a.j.u,e.j),c.acfallexp=e.j,f=k=!0);!k&&0=a.j.ib)return!1;b.exiled=""+a.j.ib;a.rd("qoe.start15s",b);a.oa.W("playbackstalledatstart");return!0}; CKa=function(a){if("GAME_CONSOLE"!==a.j.deviceParams.cplatform)try{window.close()}catch(b){}}; AKa=function(a){return a.B?!0:"yt"!==a.j.Ga?!1:a.videoData.ib?25>a.videoData.dc:!a.videoData.dc}; BKa=function(a){if(!a.B){a.B=!0;var b=a.oa.getPlayerState();b=g.U(b,4)||b.isSuspended();a.oa.Vn();b&&!DD(a.videoData)||a.oa.W("signatureexpired")}}; DKa=function(a,b){if((a=a.oa.Ed())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.qk();b.details.merr=c?c.toString():"0";b.details.msg=a.kf()}}; FKa=function(a,b){if("403"===b.details.rc){var c=b.errorCode;c="net.badstatus"===c||"manifest.net.retryexhausted"===c}else c=!1;if(!c&&!a.B)return!1;b.details.sts="19156";if(AKa(a))return vB(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new uB("qoe.restart",b)),a.rd(b.errorCode,b.details),BKa(a),!0;6048E5<(0,g.Q)()-a.j.He&&EKa(a,"signature");return!1}; EKa=function(a,b){try{window.location.reload();a.rd("qoe.restart",{detail:"pr."+b});return}catch(c){}a.j.K("tvhtml5_retire_old_players")&&g.YA(a.j)&&CKa(a)}; GKa=function(a,b){var c=a.j.u;c.D=!1;c.j=!0;a.rd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});GQ(a.oa,!0)}; HKa=function(a,b,c,d){this.videoData=a;this.j=b;this.reason=c;this.u=d}; KQ=function(a,b,c){this.environmentData=a;this.Ez=b;this.oa=c;this.U=this.I=this.J=this.u=this.j=this.D=this.P=this.B=0;this.playbackRate=1;this.C=!1}; JKa=function(a,b,c){!a.environmentData.K("html5_tv_ignore_capable_constraint")&&g.YA(a.environmentData)&&(c=c.compose(IKa(a,b)));return c}; KKa=function(a,b){var c=!0,d=a.playbackRate;if(a.K("html5_cap_quality_for_tv_hfr")){var e;c=LQ(a,null==(e=b.j)?void 0:e.videoInfos);d=a.oa.getPlaybackRate()}return 1(0,g.Q)()-a.D?0:f||0k?a.u+1:0;if(!e||g.YA(a.environmentData))return!1;a.j=d>e?a.j+1:0;if(3!==a.j)return!1;NKa(a,b.videoData.B);a.oa.qa("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},PKa()));return!0}; RKa=function(a,b){return 0>=g.Pz(a.environmentData.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32=e){d=e;break}return new uw(0,d,!1,"b")}; TKa=function(a){a=a.oa.vp();return a.isInline()?new uw(0,480,!1,"v"):a.isBackground()&&60e?(c&&(d=UKa(a,c,d)),new uw(0,d,!1,"e")):SC}; UKa=function(a,b,c){if(a.K("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;ba.B)){var b=g.tN(a.j),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.oF(a.playerState)&&!g.U(a.playerState,16)&&(a.rebufferTimeSecs+=c)}}; OQ=function(a,b){b?YKa.test(a):(a=g.Jp(a),Object.keys(a).includes("cpn"))}; PQ=function(a,b,c,d,e,f,k){var l={format:"RAW"},m={};if(Mp(a)&&Np()){if(k){var n;2!==(null==(n=ZKa.uaChPolyfill)?void 0:n.state.type)?k=null:(k=ZKa.uaChPolyfill.state.data.values,k={"Synth-Sec-CH-UA-Arch":k.architecture,"Synth-Sec-CH-UA-Model":k.model,"Synth-Sec-CH-UA-Platform":k.platform,"Synth-Sec-CH-UA-Platform-Version":k.platformVersion,"Synth-Sec-CH-UA-Full-Version":k.uaFullVersion});m=Object.assign(m,k);l.withCredentials=!0}k=g.O("EOM_VISITOR_DATA");b.K("enable_web_eom_visitor_data")&&k?m["X-Goog-EOM-Visitor-Id"]= k:d?m["X-Goog-Visitor-Id"]=d:b.K("enable_visitor_header_for_vss")&&g.O("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.O("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);e&&(m.Authorization="Bearer "+e);k||m["X-Goog-Visitor-Id"]||e||c?l.withCredentials=!0:b.K("html5_send_cpn_with_options")&&YKa.test(a)&&(l.withCredentials=!0)}0a.J.uP+100&&a.J){var d=a.J,e=d.isAd;c=1E3*c-d.uP;a.xa=1E3*b-d.M0-c-d.B0;if(!a.j.videoData.K("web_player_dai_csi_killswitch")){c=(0,g.Q)()-c;b=a.xa;d=a.j.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var k={};!d.K("web_player_csi_ctt_killswitch")&&d.J&&(k.cttAuthInfo={token:d.J,videoId:d.videoId});k.startTime=c-b;Sv(f,k);Rv({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce}, f);Qv("pbs",c,f)}else c=a.j.oa.Qi(),c.J!==d.clientPlaybackNonce?(c.I=d.clientPlaybackNonce,c.B=b):g.lu(new g.hr("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}))}a.qa("gllat",{l:a.xa.toFixed(),prev_ad:+e});delete a.J}}; UQ=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.tN(a.j);var c=a.j.oa.GB();if(!isNaN(a.Z)&&!isNaN(c.j)){var d=c.j-a.Z;0a.u)&&2=e&&(g.R(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},a.environmentData.K("html5_validate_yt_now")),c=b(); a.j=function(){return Math.round(b()-c)/1E3}; a.oa.tI()}return a.j}; aLa=function(a){if(navigator.connection&&navigator.connection.type)return yLa[navigator.connection.type]||yLa.other;if(g.YA(a.environmentData)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0}; ZQ=function(a){var b=new wLa;b.C=a.Si().cc||"-";b.playbackRate=a.oa.getPlaybackRate();var c=a.oa.getVisibilityState();0!==c&&(b.visibilityState=c);a.environmentData.Wc&&(b.u=1);c=a.oa.getAudioTrack();c.Dc&&c.Dc.id&&"und"!==c.Dc.id&&(b.B=c.Dc.id);b.connectionType=aLa(a);b.volume=a.Si().volume;b.muted=a.Si().muted;b.clipId=a.Si().clipid||"-";b.j=a.videoData.cM||"-";return b}; g.lR=function(a){g.I.call(this);var b=this;this.u=a;this.qoe=this.j=null;this.Ug=void 0;this.B=new Map;this.u.videoData.isValid()&&!this.u.videoData.Fj&&(this.j=new eR(this.u),g.J(this,this.j),this.qoe=new g.SQ(this.u),g.J(this,this.qoe),this.u.videoData.enableServerStitchedDai&&(this.Ug=this.u.videoData.clientPlaybackNonce)&&this.B.set(this.Ug,this.j));this.C=new MQ(this.u,function(c){b.qa("h5h",c)}); g.J(this,this.C)}; zLa=function(a){if(a.u.videoData.enableServerStitchedDai&&a.Ug){var b;null!=(b=a.B.get(a.Ug))&&$Q(b.u)}else a.j&&$Q(a.j.u)}; ALa=function(a){a.C.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.Od&&(b.Od="N");var c=g.tN(b.j);g.RQ(b,c,"vps",[b.Od]);b.I||(0<=b.B&&(b.u.user_intent=[b.B.toString()]),b.I=!0);sB(b.j.environmentData)&&b.qa("finalized",{});b.ma=!0;b.reportStats(c)}}if(a.u.videoData.enableServerStitchedDai)for(b=g.r(a.B.values()),c=b.next();!c.done;c=b.next())jR(c.value);else a.j&&jR(a.j);a.dispose()}; BLa=function(a,b){a.j&&vLa(a.j,b)}; CLa=function(a){if(!a.j)return null;var b=fR(a.j,"atr");return function(c){a.j&&vLa(a.j,c,b)}}; DLa=function(a,b,c,d){c.adFormat=c.jd;var e=b.oa;b=new eR(new kR(c,b.environmentData,{getDuration:function(){return c.lengthSeconds}, getCurrentTime:function(){return e.getCurrentTime()}, Ri:function(){return e.Ri()}, GB:function(){return e.GB()}, getPlayerSize:function(){return e.getPlayerSize()}, getAudioTrack:function(){return c.getAudioTrack()}, getPlaybackRate:function(){return e.getPlaybackRate()}, Vx:function(){return e.Vx()}, getVisibilityState:function(){return e.getVisibilityState()}, Qi:function(){return e.Qi()}, tI:function(){e.tI()}, Qy:function(){e.Qy()}},b.Si)); b.playbackStartTime=d;g.J(a,b);return b}; ELa=function(){this.Sq=0;this.D=this.C=this.j=this.B=NaN;this.u={};this.bandwidthEstimate=NaN}; FLa=function(){this.u=g.lv;this.j=[]}; HLa=function(a,b,c){var d=[];for(b=GLa(a,b);bc)break}return d}; ILa=function(a,b){var c=[];a=g.r(a.j);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c}; JLa=function(a){return a.j.slice(GLa(a,0x7ffffffffffff),a.j.length)}; GLa=function(a,b){a=Yb(a.j,function(c){return b-c.start||1}); return 0>a?-(a+1):a}; KLa=function(a,b){var c=NaN;a=g.r(a.j);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.endb&&(isNaN(c)||d.starta.mediaTime+a.C&&b(d||!a.B?1500:400);a.mediaTime=b;a.u=c;return!1}; OLa=function(a,b){this.videoData=a;this.j=b}; PLa=function(a,b,c){return gya(b,c).then(function(){return cq(new OLa(b,b.C))},function(d){d instanceof Error&&Ep(d); d=b.isLivePlayback&&!g.Wz(a.u,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e=b.isLivePlayback&&!g.Wz(a.u,!0)?2:1,f={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.sb,drm:""+ +eD(b),f18:""+ +(0<=b.Kj.indexOf("itag=18")),c18:""+ +Xy('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.j&&(eD(b)?(f.f142=""+ +!!b.j.j["142"],f.f149=""+ +!!b.j.j["149"],f.f279=""+ +!!b.j.j["279"]):(f.f133=""+ +!!b.j.j["133"],f.f140=""+ +!!b.j.j["140"],f.f242=""+ +!!b.j.j["242"]),f.cAVC=""+ +Yy('video/mp4; codecs="avc1.42001E"'), f.cAAC=""+ +Yy('audio/mp4; codecs="mp4a.40.2"'),f.cVP9=""+ +Yy('video/webm; codecs="vp9"'));if(b.U){f.drmsys=b.U.keySystem;var k=0;b.U.j&&(k=Object.keys(b.U.j).length);f.drmst=""+k}return new uB(d,f,e)})}; QLa=function(a){this.D=a;this.B=this.u=0;this.C=new hO(50)}; qR=function(a,b,c){g.Ut.call(this);this.videoData=a;this.experiments=b;this.P=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.I=0;c=new RLa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.Gb?c.u=3:g.qD(a)&&(c.u=2);b.bb("html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.P=!0);var d=Zxa(a);c.D=2===d||-1===d;c.D&&(c.Z++,21530001===jD(a)&&(c.I=g.Pz(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(hq("trident/")||hq("edge/"))c.B=Math.max(c.B,g.Pz(b,"html5_platform_minimum_readahead_seconds")|| 3);g.Pz(b,"html5_minimum_readahead_seconds")&&(c.B=g.Pz(b,"html5_minimum_readahead_seconds"));g.Pz(b,"html5_maximum_readahead_seconds")&&(c.U=g.Pz(b,"html5_maximum_readahead_seconds"));b.bb("html5_force_adaptive_readahead")&&(c.C=!0);g.Pz(b,"html5_allowable_liveness_drift_chunks")&&(c.j=g.Pz(b,"html5_allowable_liveness_drift_chunks"));g.Pz(b,"html5_readahead_ratelimit")&&(c.V=g.Pz(b,"html5_readahead_ratelimit"));switch(jD(a)){case 21530001:c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2),c.J=b.bb("html5_live_smoothly_extend_max_seekable_time")}this.policy= c;this.J=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Gb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(jD(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.j=pR(this,b)}; SLa=function(a,b){var c=a.j;(void 0===b?0:b)&&a.policy.J&&3===Zxa(a.videoData)&&--c;return rR(a)*c}; sR=function(a,b){var c=a.Ek(),d=a.policy.j;a.D||(d=Math.max(d-1,0));a=d*rR(a);return b>=c-a}; TLa=function(a,b,c){b=sR(a,b);c||b?b&&(a.B=!0):a.B=!1;a.J=2===a.policy.u||3===a.policy.u&&a.B}; ULa=function(a,b){b=sR(a,b);a.D!==b&&a.W("livestatusshift",b);a.D=b}; rR=function(a){return a.videoData.j?Az(a.videoData.j)||5:5}; pR=function(a,b){b=Math.max(Math.max(a.policy.Z,Math.ceil(a.policy.B/rR(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.U/rR(a))),b)}; RLa=function(){this.Z=1;this.B=0;this.U=Infinity;this.V=0;this.C=!0;this.j=2;this.u=1;this.D=!1;this.I=NaN;this.J=this.P=!1}; vR=function(a){g.I.call(this);this.oa=a;this.environmentData=this.oa.S();this.C=this.j=0;this.B=new g.K(this.D,1E3,this);this.xa=new tR({delayMs:g.Pz(this.environmentData.experiments,"html5_seek_timeout_delay_ms")});this.U=new tR({delayMs:g.Pz(this.environmentData.experiments,"html5_long_rebuffer_threshold_ms")});this.Ca=uR(this,"html5_seek_set_cmt");this.Z=uR(this,"html5_seek_jiggle_cmt");this.ea=uR(this,"html5_seek_new_elem");this.Qa=uR(this,"html5_unreported_seek_reseek");this.J=uR(this,"html5_long_rebuffer_jiggle_cmt"); this.P=new tR({delayMs:2E4});this.I=uR(this,"html5_ads_preroll_lock_timeout");this.Ga=new tR({delayMs:g.Pz(this.environmentData.experiments,"html5_skip_slow_ad_delay_ms")||5E3,ju:!this.environmentData.K("html5_report_slow_ads_as_error")});this.Ka=new tR({delayMs:g.Pz(this.environmentData.experiments,"html5_skip_slow_ad_delay_ms")||5E3,ju:!this.environmentData.K("html5_skip_slow_buffering_ad")});this.ma=uR(this,"html5_seek_over_discontinuities");this.Pa=new tR({delayMs:g.Pz(this.environmentData.experiments, "html5_slow_start_timeout_delay_ms")});this.V=uR(this,"html5_slow_start_no_media_source");this.u={};g.J(this,this.B)}; uR=function(a,b){var c=g.Pz(a.environmentData.experiments,b+"_delay_ms");a=a.environmentData.K(b+"_cfl");return new tR({delayMs:c,ju:a})}; VLa=function(a,b,c,d,e,f,k){var l=ez(c,Math.max(d-3.5,0)),m=0<=l&&d>c.end(l)-1.1&&l+1c.start(l+1)-c.end(l);m=f&&k&&m;var n=l+1b.fD,c=b.j&&c-b.j>b.VI||f?b.B=!0:!1):c=!1,c&&(c=Object.assign({},a.Lb(b)),c.wn=k,c.we=e,c.wsuc=d,a.oa.qa("workaroundReport",c),d&&(b.reset(),a.u[e]=!1)))}; tR=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.VI?1E3:b.VI,d=void 0===b.fD?3E4:b.fD;b=void 0===b.ju?!1:b.ju;this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.VI=c;this.fD=d;this.ju=b}; WLa=function(a,b){if(!a.C||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.Q)();if(!a.startTimestamp)a.startTimestamp=b,a.u=0;else if(a.u>=a.C)return a.triggerTimestamp=b,!0;a.u+=1;return!1}; yR=function(a){g.I.call(this);var b=this;this.oa=a;this.environmentData=this.oa.S();this.videoData=this.oa.getVideoData();this.policy=new XLa(this.environmentData);this.V=new vR(this.oa);this.playbackData=null;this.Ka=new g.Vy;this.I=this.u=this.Fa=this.mediaElement=null;this.j=NaN;this.C=0;this.ma=NaN;this.B=null;this.xa=NaN;this.D=this.J=null;this.U=this.P=!1;this.ea=new g.K(function(){YLa(b,!1)},2E3); this.Sa=new g.K(function(){xR(b)}); this.Ga=new g.K(function(){b.P=!0;ZLa(b)}); this.timestampOffset=0;this.Pa=!0;this.Ca=0;this.Qa=NaN;this.Z=new g.K(function(){var c=b.environmentData.Hd;c.j+=1E4/36E5;c.j-c.B>1/6&&(fwa(c),c.B=c.j);b.Z.start()},1E4); g.J(this,this.V);g.J(this,this.Ka);g.J(this,this.ea);g.J(this,this.Ga);g.J(this,this.Sa);g.J(this,this.Z)}; $La=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.I=new QLa(function(){a:{if(a.playbackData&&a.playbackData.j.j){if($C(a.videoData)&&a.Fa){var c=a.Fa.QA.wh()||0;break a}if(a.videoData.j){c=a.videoData.j.ea;break a}}c=0}return c}),a.u=new qR(a.videoData,a.environmentData.experiments,function(){return a.Dd(!0)})); a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9=e.u&&cd.C||g.Ua()-d.I=a.Dd()-.1)a.j=a.Dd(),a.B.resolve(a.Dd()),uN(a.oa);else try{var c=a.j-a.timestampOffset; a.mediaElement.seekTo(c);a.V.j=c;a.xa=c;a.C=a.j}catch(d){}}}; fMa=function(a){if(!a.mediaElement||0===a.mediaElement.Mi()||0>31));fC(a,16,b.DX);fC(a,18,b.WV);fC(a,19,b.VV);fC(a,21,b.b1);fC(a,23,b.KV);fC(a,34,b.visibility);jC(a,38,b.mediaCapabilities,nMa,3);fC(a,39,b.A1);fC(a,40,b.rN)}; pMa=function(a){for(var b=[];ZB(a,2);)b.push(GB(a));return{vF:b.length?b:void 0,videoId:bC(a,3),lK:$B(a,4)}}; nMa=function(a,b){var c;if(b.kK)for(c=0;ca;a++)NR[a]=255>=a?9:7;OR.length=32;OR.fill(5);PR.length=286;PR.fill(0);for(a=261;285>a;a++)PR[a]=Math.floor((a-261)/4);QR[257]=3;for(a=258;285>a;a++){var b=QR[a-1];b+=1<a;a++)RR[a]=3>=a?0:Math.floor((a-2)/2);for(a=SR[0]=1;30>a;a++)b=SR[a-1],b+=1<a.C.length&&(a.C=new Uint8Array(2*a.B),a.B=0,a.u=0,a.D=!1,a.j=0,a.register=0)}a.C.length!==a.B&&(a.C=a.C.subarray(0,a.B));return a.error?new Uint8Array(0):a.C}; FMa=function(a,b,c){b=UR(b);c=UR(c);for(var d=a.data,e=a.C,f=a.B,k=a.register,l=a.j,m=a.u;;){if(15>l){if(m>d.length){a.error=!0;break}k|=(d[m+1]<<8)+d[m]<n)for(k>>=7;0>n;)n=b[(k&1)-n],k>>=1;else k>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=k,a.j=l,a.u=m,256a.j){var c=a.data,d=a.u;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<>4;for(VR(a,7);0>c;)c=b[TR(a,1)-c];return c>>4}; TR=function(a,b){for(;a.j=a.data.length)return a.error=!0,0;a.register|=a.data[a.u++]<>=b;a.j-=b;return c}; VR=function(a,b){a.j-=b;a.register>>=b}; UR=function(a){for(var b=[],c=g.r(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var k=1;k>m&1;l=f<<4|k;if(7>=k)for(m=1<<7-k;m--;)d[m<>=7;k--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d}; IMa=function(a){var b,c,d,e,f,k,l;return g.B(function(m){switch(m.j){case 1:if(!("DecompressionStream"in window))return m.return(g.GMa(new g.CMa(a)));b=new DecompressionStream("gzip");c=b.writable.getWriter();c.write(a);c.close();d=b.readable.getReader();e=new Vw([]);case 2:return g.A(m,d.read(),4);case 4:f=m.u;k=f.value;if(l=f.done){m.Oa(3);break}e.append(k);m.Oa(2);break;case 3:return m.return($w(e))}})}; KMa=function(a,b){var c=[];b=g.r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=JMa[d]||0;a.j&&e>a.j||c.push(d)}return c}; NMa=function(a,b){var c=a[a.length-1];a.push.apply(a,g.v(LMa[c]||[]));b.K("html5_early_media_for_drm")&&a.push.apply(a,g.v(MMa[c]||[]))}; SMa=function(a,b){var c=fD(a),d=a.S().u;if(WR&&!d.j)return WR;for(var e=[],f=[],k={},l=g.r(OMa),m=l.next();!m.done;m=l.next()){var n=!1;m=g.r(m.value);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=PMa(p);!q||!q.video||Ry(q)&&!c.ea&&q.video.j>c.U||(n?e.push(p):(q=Cw(c,q,d),!0===q?(n=!0,e.push(p)):k[p]=q))}e&&NMa(e,a)}l=g.r(QMa);for(n=l.next();!n.done;n=l.next()){n=g.r(n.value);for(p=n.next();!p.done;p=n.next())if(m=p.value,(p=RMa(m))&&p.audio)if(p=Cw(c,p,d),!0===p){f.push(m);break}else k[m]= p;f&&NMa(f,a)}c.B&&b("orfmts",k);WR={video:e,audio:f};d.j=!1;return WR}; PMa=function(a){var b=TMa[Ny[a]],c=UMa[a];if(!c||!b)return null;var d=new Ky(c.width,c.height,c.fps);b=Pua(b,d);return new Oy(a,b,{video:d,Mb:c.bitrate/8})}; RMa=function(a){var b=TMa[Ny[a]],c=VMa[a];return c&&b?new Oy(a,b,{audio:new Iy(c.audioSampleRate,c.numChannels)}):null}; WMa=function(a){this.xd=a;this.logger=new g.eO("onesie");this.B={};this.j={};this.C=!0;this.u=null;this.queue=new KR(this)}; YR=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.u&&(b.j.length=0);b=g.r(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next())c=c.value,a.j[c].lO||BMa(a.queue,c)}; XMa=function(a,b){var c=b.totalLength,d=!1;switch(a.u){case 0:a.sI(b,a.C).then(function(e){var f=a.xd;f.Jc("oprr");f.playerResponse=e;f.KH||(f.Cv=!1);ZR(f)},function(e){a.xd.fail(e)}); break;case 2:a.Jc("ormk");b=$w(b);a.queue.decrypt(b);break;default:d=!0}a.xd.Vi&&a.xd.qa("ombup","id.11;pt."+a.u+";len."+c+(d?";ignored.1":""));a.u=null}; YMa=function(a,b,c){var d=ax(b,0);a.xd.Vi&&a.xd.qa("ombup","id."+(c?12:21)+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=b.split(1).Ps,d=a.B[d]||null)&&(a.po(a.j[d].En?"oafs_r":"ovfs_r"),a.queue.enqueue(d,b,c))}; aNa=function(a,b,c,d){var e={},f=Dz(0);f&&(e.DX=f,e.lastManualDirection=hva(),f=wra()||0,0c?1:192>c?2:224>c?3:240>c?4:5}else c=0;if(1>c||!(b+c<=a.totalLength))return[-1,b];if(1===c)a=ax(a,b++);else if(2===c)c=ax(a,b++),a=ax(a,b++),a=(c&63)+64*a;else if(3===c){c=ax(a,b++);var d=ax(a,b++);a=ax(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=ax(a,b++);d=ax(a,b++);var e=ax(a,b++);a=ax(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),Zw(a,c,4)?a=bta(a).getUint32(c-a.B,!0):(d=ax(a,c+2)+256*ax(a,c+3),a=ax(a,c)+256*(ax(a,c+1)+ 256*d)),b+=5;return[a,b]}; $R=function(a){this.callbacks=a;this.j=new Vw}; fNa=function(a,b){var c=g.Hz(b.environmentData.experiments,"debug_bandaid_hostname");if(c)b=dN(b,c);else if(c=b.j.get(0)){var d=c;if(b.environmentData.K("html5_onesie_host_racing_during_prewarming")){var e=b.j.values();e=g.r(e);for(var f=e.next();!f.done;f=e.next())f=f.value,iN(f)Math.random())try{g.lu(new g.hr("b/152131571",btoa(d)))}catch(y){}return x.return(Promise.reject(new uB(t,{backend:"gvi"},u)))}})}; wNa=function(a,b){var c,d,e,f,k,l,m,n,p,q,t,u,x,y;return g.B(function(z){if(1==z.j)return a.fetchType="gvi",c=a.S(),(f=JCa(a))?(d={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:f},e=Lp(b,{action_display_post:1})):(d={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},e=b),k={},c.sendVisitorIdHeader&&a.visitorData&&(k["X-Goog-Visitor-Id"]=a.visitorData),(l=g.Hz(c.experiments,"debug_sherlog_username"))&&(k["X-Youtube-Sherlog-Username"]=l),0t.u&&3!==t.j.oa.getVisibilityState()&&NQ(t);q.qoe&& (q=q.qoe,q.Ga&&0>q.B&&q.j.environmentData.Zd&&YQ(q));p.Fa&&dS(p);p.environmentData.Hl&&!p.videoData.backgroundable&&p.mediaElement&&!p.ag()&&(p.isBackground()&&p.mediaElement.qA()?(p.qa("bgmobile",{suspend:1}),p.Vn(!0)):p.isBackground()||eS(p)&&p.qa("bgmobile",{resume:1}))}; this.nh=new mR(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,t){q!==g.mv("endcr")||g.U(p.playerState,32)||uN(p); e(q,t,p.playerType)}); g.J(this,this.nh);g.J(this,this.Vc);ANa(this,m);this.videoData.subscribe("dataupdated",this.Z_,this);this.videoData.subscribe("dataloaded",this.EF,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.qa,this);this.videoData.subscribe("ctmpstr",this.TI,this);BNa(this);HGa(this.nf);this.visibility.subscribe("visibilitystatechange",this.nf);this.videoData.Ka&&CNa(this);!kya(this.videoData)&&qya(this.videoData)||DNa(this);1===this.playerType&&fS.isActive()&& this.UC.start();this.videoData.Te=this.getUserAudio51Preference();this.K("html5_generate_content_po_token")&&ENa(this)}; ANa=function(a,b){if(2===a.playerType||a.environmentData.Jl)b.FK=!0;var c=mxa(b.jd,b.ut,a.environmentData.j,a.environmentData.B);c&&(b.adFormat=c);2===a.playerType&&(b.zm=!0);if(a.isFullscreen()||a.environmentData.j)c=g.Lu("yt-player-autonavstate"),b.autonavState=c||(a.environmentData.j?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&hS(a,b.endSeconds)}; BNa=function(a){!a.logging||a.logging.isDisposed();a.logging=new g.lR(new kR(a.videoData,a.environmentData,a,function(){return a.yg.Si()}))}; xE=function(a){return a.mediaElement&&a.mediaElement.Dq()?a.mediaElement.df():null}; iS=function(a){if(a.videoData.isValid())return!0;a.Qf("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; CNa=function(a){var b=a.yg.Cc();a.videoData.Um=a.videoData.Um||(null==b?void 0:b.vG());a.videoData.Vm=a.videoData.Vm||(null==b?void 0:b.wG())}; g.sN=function(a,b){b=void 0===b?!1:b;if(!b){var c=a.logging;NQ(c.C);c.qoe&&YQ(c.qoe)}a.Fp=b;!iS(a)||a.Rn.started?g.YA(a.environmentData)&&a.videoData.isLivePlayback&&a.Rn.started&&!a.Rn.isFinished()&&!a.Fp&&a.EF():(a.Rn.start(),b=a.logging,g.tN(b.u),b.qoe&&dLa(b.qoe),a.EF())}; FNa=function(a){var b=a.videoData;zNa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=wB(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Qf("auth",2,unescape(a.videoData.errorReason),tB(c.details),a.videoData.errorDetail,a.videoData.zk||void 0):a.handleError(c))})}; KGa=function(a,b){a.Zc=b;a.Fa&&KJa(a.Fa,new g.oQ(b))}; GNa=function(a){if(!g.U(a.playerState,128))if(a.videoData.isLoaded(),4!==a.playerType&&(a.Qj=g.Rb(a.videoData.ea)),pD(a.videoData)){a.xb.tick("bpd_s");jS(a).then(function(){a.xb.tick("bpd_c");if(!a.isDisposed()){a.Fp&&(a.Pb(iF(iF(a.playerState,512),1)),eS(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&hS(a,c.endSeconds);a.Rn.finished=!0;kS(a,"dataloaded");a.Sn.started&&lS(a);WKa(a.eh,a.qf)}}); a.K("html5_log_media_perf_info")&&a.qa("loudness",{v:a.videoData.Se.toFixed(3)},!0);var b=rya(a.videoData);b&&a.qa("playerResponseExperiment",{id:b},!0);a.rF()}else kS(a,"dataloaded")}; jS=function(a){mS(a);a.qf=null;var b=PLa(a.environmentData,a.videoData,a.ag());a.Zy=b;a.Zy.then(function(c){HNa(a,c)},function(c){a.isDisposed()||(c=wB(c),a.visibility.isBackground()?(nS(a,"vp_none_avail"),a.Zy=null,a.Rn.reset()):(a.Rn.finished=!0,a.Qf(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",tB(c.details))))}); return b}; IQ=function(a){jS(a).then(function(){return eS(a)}); g.mF(a.playerState)&&a.playVideo()}; HNa=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.qf=b;$La(a.Vc,a.qf);if(a.videoData.isLivePlayback){var c=(a.K("html5_onesie_ads")?mHa(a.yg.Vr,a.videoData.videoId):!!a.videoData.ll)||a.Fa&&!isNaN(a.Fa.Z);c=a.K("html5_onesie_live")&&c;0CA(b.environmentData.Hd,"sticky-lifetime")?"auto":yw[Dz()]:d=yw[Dz()],d=g.ww("auto",d,!1,"s");if(xw(d)){d=IKa(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var k=g.r(f.videoInfos),l=k.next();!l.done;l=k.next()){l=l.value;var m=void 0;if(null==(m=l.u)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;Ina()&&!g.YA(b.environmentData)&& Py(c.j.videoInfos[0])&&(f=Math.min(f,g.vw.large));d=e.call(d,new uw(0,f,!1,"o"));e=d.compose;f=4320;!b.environmentData.isMobile||g.OA(b.environmentData)||oq()||b.environmentData.K("hls_for_vod")||(f=b.environmentData.K("mweb_default_hd720")?g.vw.hd720:g.vw.medium);(k=g.Pz(b.environmentData.experiments,"html5_default_quality_cap"))&&c.j.j&&!c.videoData.gh&&!c.videoData.Td&&(f=Math.min(f,k));k=g.Pz(b.environmentData.experiments,"html5_random_playback_cap");l=/[a-h]$/;k&&l.test(c.videoData.clientPlaybackNonce)&& (f=Math.min(f,k));if(l=k=g.Pz(b.environmentData.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=g.r(l.videoInfos),m=l.next();!m.done;m=l.next())if(32f&&0!==f&&b.j===f)){e=!0;f=c.playbackRate;if(c.K("html5_cap_quality_for_tv_hfr")){var k;e=LQ(c,null==(k=d.j)?void 0:k.videoInfos);f=c.oa.getPlaybackRate()}1b.j&&"b"===b.reason;c=a.Qd.Sa&&!lz();d||e||b||c?jQ(a.oa,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):kQ(a)}}}; dS=function(a){a.K("html5_update_constraint")?qS(a):pS(a)}; KNa=function(a){var b;return!!(a.K("html5_native_audio_track_switching")&&g.pr&&(null==(b=a.videoData.B)?0:Sy(b)))}; LNa=function(a){if(!KNa(a))return!1;var b;a=null==(b=a.mediaElement)?void 0:b.audioTracks();return!!(a&&1n&&(n+=f.j);for(var p=0;pa.mediaSource.getDuration()&&a.mediaSource.Vk(c)):a.mediaSource.Vk(d);var e=a.Fa,f=a.mediaSource;e.policy.P&&(e.Pi(),e.policy.P=!1);DJa(e);if(!f.j&&!f.u){var k=e.videoTrack.gg(),l=k?k.info.j:e.videoTrack.j,m=e.audioTrack.gg(),n=l.info.mimeType+e.policy.ql,p=(m?m.info.j:e.audioTrack.j).info.mimeType,q,t= null==(q=f.mediaSource)?void 0:q.addSourceBuffer(p),u,x="fakesb"===n.split(";")[0]?void 0:null==(u=f.mediaSource)?void 0:u.addSourceBuffer(n);f.xf&&(f.xf.webkitSourceAddId("0",p),f.xf.webkitSourceAddId("1",n));var y=new kz(t,f.xf,"0",My(p),!1),z=new kz(x,f.xf,"1",My(n),!0);f.j=y;f.u=z;g.J(f,y);g.J(f,z)}tP(e.videoTrack,f.u||null);tP(e.audioTrack,f.j||null);e.mediaSource=f;e.resume();g.Vt(f.j,e.ma,e);g.Vt(f.u,e.ma,e);try{e.uj()}catch(D){g.R(D)}a.W("mediasourceattached")}}catch(D){g.lu(D),a.handleError(new uB("fmt.unplayable", {msi:"1",ename:D.name},1))}})}; QNa=function(a){a.Fa?a.Fa.seek(a.getCurrentTime()-a.pd()).Ii(function(){}):oS(a)}; GQ=function(a,b){b=void 0===b?!1:b;return g.B(function(c){if(1==c.j)return!a.K("html5_reset_daistate_on_newelement_killswitch")&&a.Fa&&a.Fa.Ar(),a.Fa&&a.Fa.isDisposed()&&mS(a),a.Pb(iF(a.playerState,2048)),a.W("newelementrequired"),b?g.A(c,jS(a),2):c.Oa(2);g.U(a.playerState,8)&&a.playVideo();g.va(c)})}; EGa=function(a,b){a.qa("newelem",{r:b});GQ(a)}; yS=function(a){a.xb.D.aI();g.U(a.playerState,32)||(a.Pb(iF(a.playerState,32)),g.U(a.playerState,8)&&a.pauseVideo(!0),a.W("beginseeking",a));a.Rb()}; LN=function(a){g.U(a.playerState,32)?(a.Pb(kF(a.playerState,16,32)),a.W("endseeking",a)):g.U(a.playerState,2)||a.Pb(iF(a.playerState,16));a.xb.D.fI(a.videoData,g.U(a.playerState,4))}; DNa=function(a){var b=a.videoData.errorDetail;a.Qf("auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.zk||void 0)}; kS=function(a,b){a.W("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)}; RNa=function(a){for(var b=g.r("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),c=b.next();!c.done;c=b.next())a.Zv.N(a.mediaElement,c.value,a.yI,a);a.environmentData.dl&&a.mediaElement.Dq()&&(a.Zv.N(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.xY,a),a.Zv.N(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.yY,a))}; SNa=function(a){window.clearInterval(a.NC);zS(a)||(a.NC=g.Tp(function(){return zS(a)},100))}; zS=function(a){var b=a.mediaElement;b&&a.uC&&!a.videoData.ib&&!lw("vfp",a.xb.timerName)&&2<=b.Mi()&&!b.Cg()&&0b.u&&(b.u=c,b.delay.start());b.B=c;b.D=c;g.on(a.tF);a.W("playbackstarted");g.Uq()&& ((a=g.Ja("yt.scheduler.instance.clearPriorityThreshold"))?a():Vq(0))}; TNa=function(a){var b=a.getCurrentTime(),c=a.yg.Sc();!lw("pbs",a.xb.timerName)&&xv.measure&&xv.getEntriesByName&&(xv.getEntriesByName("mark_nr")[0]?vsa("mark_nr"):vsa());c.videoId&&a.xb.info("docid",c.videoId);c.eventId&&a.xb.info("ei",c.eventId);c.clientPlaybackNonce&&!a.K("web_player_early_cpn")&&a.xb.info("cpn",c.clientPlaybackNonce);0a.NO+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&xz(a.videoData.j))){var b=a.logging;if(b.qoe){b=b.qoe;var c=b.j.oa.GB(),d=g.tN(b.j);bLa(b,d,c);c=c.D;isNaN(c)||g.RQ(b,d,"e2el",[c.toFixed(3)])}}g.iB(a.environmentData)&&a.qa("rawlat",{l:kO(a.EJ,"rawlivelatency").toFixed(3)});a.NO=Date.now()}a.videoData.B&&Sy(a.videoData.B)&&(b=xE(a))&&b.videoHeight!==a.vH&&(a.vH=b.videoHeight,uS(a,"a",JNa(a,a.videoData.Za)))}; JNa=function(a,b){if("auto"===b.j.video.quality&&Sy(b.Yf())&&a.videoData.lc)for(var c=g.r(a.videoData.lc),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.vH&&"auto"!==d.j.video.quality)return d.Yf();return b.Yf()}; cS=function(a){if(!a.videoData.isLivePlayback)return NaN;var b=0;a.Fa&&a.videoData.j&&(b=$C(a.videoData)?a.Fa.QA.wh()||0:a.videoData.j.ea);return Date.now()/1E3-a.getIngestionTime()-b}; WNa=function(a){!a.K("html5_ignore_airplay_events_on_new_video_killswitch")&&a.mediaElement&&a.mediaElement.ag()&&(a.cC=(0,g.Q)());a.environmentData.Um?g.Sp(function(){AS(a)},0):AS(a)}; AS=function(a){if(a.mediaElement)try{a.MC=a.mediaElement.playVideo()}catch(c){nS(a,"err."+c)}if(a.MC){var b=a.MC;b.then(void 0,function(c){if(!(g.U(a.playerState,4)||g.U(a.playerState,256)||a.MC!==b||c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))){var d="promise";c&&c.name&&(d+=";m."+c.name);nS(a,d);a.EM=!0;a.videoData.fR=!0}})}}; nS=function(a,b){g.U(a.playerState,128)||(a.Pb(kF(a.playerState,1028,9)),a.qa("dompaused",{r:b}),a.W("onAutoplayBlocked"))}; eS=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=PNa(a);var d;null==(d=a.Fa)||d.resume()}else mS(a),a.videoData.Za&&(c=a.videoData.Za.Dw());b=c;d=a.mediaElement.qA();c=!1;d&&d.equals(b)||(XNa(a,b),c=!0);g.U(a.playerState,2)||(b=a.Vc,b.D||!(0=c&&b<=d}; sOa=function(a){if(!(g.U(a.ob.getPlayerState(),64)&&a.Sc().isLivePlayback&&5E3>a.jb.startTimeMs)){if(a.K("web_repeating_chapters")&&"repeatChapter"===a.jb.type){var b,c=null==(b=gI(a.fb()))?void 0:b.xu(),d;b=null==(d=a.getVideoData())?void 0:d.Qg;c instanceof g.wJ&&b&&(d=b[kK(b,a.jb.startTimeMs)],c.UI(0,d.title));isNaN(Number(a.jb.loopCount))?a.jb.loopCount=0:a.jb.loopCount++;1===a.jb.loopCount&&a.G.Ia("innertubeCommand",a.getVideoData().RS)}a.ob.seekTo(.001*a.jb.startTimeMs,{Xd:"application_loopRangeStart"})}}; jOa=function(a,b){var c=a.Ma.getAvailablePlaybackRates();b=Number(b.toFixed(2));a=c[0];c=c[c.length-1];b<=a?b=a:b>=c?b=c:(a=Math.floor(100*b+.001)%5,b=0===a?b:Math.floor(100*(b-.01*a)+.001)/100);return b}; YS=function(a,b,c){if(a.Ae(c)){c=c.getVideoData();if(XS(a))c=b;else{a=a.Zc;for(var d=g.r(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.xc===e.xc){b+=e.qc/1E3;break}d=b;a=g.r(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.xc===e.xc)break;var f=e.qc/1E3;if(fd?e=!0:1=b?b:0;this.j=a=l?function(){return new uv("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:k})}:function(m,n){var p=FPa(m,c,d,function(q){var t=n(q),u=q.slotId; q=jV(k);u=av(e.Ra.get(),"LAYOUT_TYPE_SURVEY",u);var x={layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",Ua:"core"},y=new lV(e.j,d),z=new mV(e.j,u),D=new nV(e.j,u),G=new GPa(e.j);return{layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",Ob:new Map,qd:[y,G],Mc:[z],Hc:[],Nc:[D],Pc:[],Ua:"core",ya:new iT([new VT(k),new JT(b),new uU(l/1E3),new yU(q)]),uc:t(x),adLayoutLoggingData:k.adLayoutLoggingData}}); m=EPa(a,c,p.slotId,d,e,m,n);return m instanceof uv?m:[p].concat(g.v(m))}}; PPa=function(a,b,c,d,e){var f=[];try{var k=[];if(c.renderer.linearAdSequenceRenderer)var l=function(u){u=IPa(u.slotId,c,b,e(u),d);k=u.j1;return u.eW}; else if(c.renderer.instreamVideoAdRenderer)l=function(u){var x=u.slotId;u=e(u);var y=c.config.adPlacementConfig,z=JPa(y),D=z.uN;z=z.xN;var G=c.renderer.instreamVideoAdRenderer,F;if(null==G?0:null==(F=G.playerOverlay)?0:F.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var L=KPa(G);F=Math.min(D+1E3*L.videoLengthSeconds,z);z=new TD(0,[L.videoLengthSeconds],F);var aa=L.videoLengthSeconds,M=L.playerVars,qa=L.instreamAdPlayerOverlayRenderer,ua=L.adVideoId, Z=LPa(c),pa=L.Ob;L=L.tM;var Qa=null==G?void 0:G.adLayoutLoggingData;G=null==G?void 0:G.sodarExtensionData;x=av(b.Ra.get(),"LAYOUT_TYPE_MEDIA",x);var Pa={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",Ua:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",Ob:pa,qd:[new oV(b.j)],Mc:[],Hc:[],Nc:[],Pc:[],Ua:"core",ya:new iT([new PT(d),new gU(aa),new hU(M),new jU(D),new kU(F),qa&&new QT(qa),new JT(y),new NT(ua),new KT(z),new pU(Z),G&&new iU(G),new cU({current:null}),new mU({}),new BU(L)].filter(MPa)), uc:u(Pa),adLayoutLoggingData:Qa}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var m=NPa(a,d,l);f.push(m);for(var n=g.r(k),p=n.next();!p.done;p=n.next()){var q=p.value,t=q(a,e);if(t instanceof uv)return t;f.push.apply(f,g.v(t))}}catch(u){return new uv(u,{errorMessage:u.message,AdPlacementRenderer:c,numberOfSurveyRenderers:OPa(c)})}return f}; OPa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=b.instreamVideoAdRenderer)?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0}; IPa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,k=JPa(f),l=k.uN,m=k.xN;k=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==k||!k.length)throw new TypeError("Expected linear ads");var n=[],p={yR:l,zR:0,e1:n};k=k.map(function(t){return QPa(a,t,p,c,d,f,e,m)}).map(function(t,u){u=new TD(u,n,m); return t(u)}); var q=k.map(function(t){return t.fW}); return{eW:RPa(c,a,l,q,f,LPa(b),d,m),j1:k.map(function(t){return t.h1})}}; QPa=function(a,b,c,d,e,f,k,l){var m=KPa(b.instreamVideoAdRenderer),n=c.yR,p=c.zR,q=Math.min(n+1E3*m.videoLengthSeconds,l);c.yR=q;c.zR++;c.e1.push(m.videoLengthSeconds);var t,u,x=null==(t=b.instreamVideoAdRenderer)?void 0:null==(u=t.playerOverlay)?void 0:u.instreamSurveyAdRenderer;if("nPpU29QrbiU"===m.adVideoId&&null==x)throw new TypeError("Survey slate media has no survey overlay");return function(y){var z=m.playerVars;2<=y.u&&(z.slot_pos=y.j);z.autoplay="1";var D,G;z=m.videoLengthSeconds;var F=m.playerVars, L=m.Ob,aa=m.tM,M=m.instreamAdPlayerOverlayRenderer,qa=m.adVideoId,ua=null==(D=b.instreamVideoAdRenderer)?void 0:D.adLayoutLoggingData;D=null==(G=b.instreamVideoAdRenderer)?void 0:G.sodarExtensionData;G=av(d.Ra.get(),"LAYOUT_TYPE_MEDIA",a);var Z={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",Ua:"adapter"};y={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",Ob:L,qd:[],Mc:[],Hc:[],Nc:[],Pc:[],Ua:"adapter",ya:new iT([new PT(k),new gU(z),new hU(F),new jU(n),new kU(q),new lU(p),new cU({current:null}),M&&new QT(M), new JT(f),new NT(qa),new KT(y),D&&new iU(D),x&&new AU(x),new mU({}),new BU(aa)].filter(MPa)),uc:e(Z),adLayoutLoggingData:ua};z=HPa(b.instreamVideoAdRenderer,f,k,y.layoutId,d);return{fW:y,h1:z}}}; KPa=function(a){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var b=Hp(a.playerVars),c=Number(b.length_seconds);if(isNaN(c))throw new TypeError("Expected valid length seconds in player vars");var d=Number(a.trimmedMaxNonSkippableAdDurationMs);c=isNaN(d)?c:Math.min(c,d/1E3);d=a.playerOverlay||{};d=void 0===d.instreamAdPlayerOverlayRenderer?null:d.instreamAdPlayerOverlayRenderer;var e=b.video_id;e|| (e=(e=a.externalVideoId)?e:void 0);if(!e)throw new TypeError("Expected valid video id in IVAR");return{playerVars:b,videoLengthSeconds:c,instreamAdPlayerOverlayRenderer:d,adVideoId:e,Ob:a.pings?WD(a.pings):new Map,tM:VD(a.pings)}}; LPa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a}; JPa=function(a){var b=a.adTimeOffset||{};a=b.offsetEndMilliseconds;b=Number(b.offsetStartMilliseconds);if(isNaN(b))throw new TypeError("Expected valid start offset");a=Number(a);if(isNaN(a))throw new TypeError("Expected valid end offset");return{uN:b,xN:a}}; TPa=function(a,b,c,d,e,f,k){var l=c.pings;return l?[SPa(a,f,e,function(m){var n=m.slotId;m=k(m);var p=c.adLayoutLoggingData;n=av(b.Ra.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",n);var q={layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Ua:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Ob:WD(l),qd:[new pV(b.j,f)],Mc:[],Hc:[],Nc:[],Pc:[],Ua:"core",ya:new iT([new JT(d)]),uc:m(q),adLayoutLoggingData:p}})]:new uv("VideoAdTrackingRenderer without VideoAdTracking pings filled.", {videoAdTrackingRenderer:c})}; VPa=function(a,b,c,d,e,f,k,l){a=UPa(a,c,f,k,d,function(m){var n=m.slotId;m=l(m);n=av(b.Ra.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Ua:"core"},q=new Map,t=e.impressionUrls;t&&q.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Ob:q,qd:[new qV(b.j,n)],Mc:[],Hc:[],Nc:[],Pc:[],Ua:"core",ya:new iT([new oU(e),new JT(c)]),uc:m(p)}}); return a instanceof uv?a:[a]}; XPa=function(a,b,c,d,e,f,k,l){a=WPa(a,c,f,k,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=av(b.Ra.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=rV(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,sV(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=av(b.Ra.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=rV(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,sV(b,n,p))):q.imageOverlayAdContentRenderer?(q=av(b.Ra.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", p),n=sV(b,n,p),n.push(new tV(b.j,q)),n=rV(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new JU("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new JU("InvideoOverlayAdRenderer without contentSupportedRenderer");return n}); return a instanceof uv?a:[a]}; $Pa=function(a,b,c,d,e,f,k){var l=Number(d.durationMilliseconds);return isNaN(l)?new uv("Expected valid duration for AdActionInterstitialRenderer."):function(m){return YPa(b,m.slotId,c,l,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,k(m),function(n){return ZPa(a,n,e,function(p,q){var t=p.slotId;p=k(p);t=av(b.Ra.get(),"LAYOUT_TYPE_ENDCAP",t); return kV(b,t,q,c,p,"LAYOUT_TYPE_ENDCAP",[new TT(d)],d.adLayoutLoggingData)})},d.adLayoutLoggingData,f)}}; aQa=function(a,b,c,d){if(!c.playerVars)return new uv("No playerVars available in AdIntroRenderer.");var e=Hp(c.playerVars);e.autoplay="1";return function(f){var k=f.slotId;f=d(f);k=av(a.Ra.get(),"LAYOUT_TYPE_MEDIA",k);var l={layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",Ua:"adapter"};return{Ns:{layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",Ob:new Map,qd:[],Mc:[],Hc:[],Nc:[],Pc:[],Ua:"adapter",ya:new iT([new nU({}),new JT(b),new cU({current:null}),new hU(e)]),uc:f(l)},au:[new uV(a.j,k,["error"])],Yq:[],UA:[], TA:[]}}}; cQa=function(a,b,c,d,e,f,k,l){var m=iV(e);if(!yPa(e))return new uv("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=m)return new uv("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var n=BPa(a,b,e,f,c,d,k);return n instanceof uv?n:function(p){return bQa(b,p.slotId,c,m,jV(e),k(p),n,l)}}; dQa=function(a,b,c,d,e,f,k){function l(p){return ZPa(a,p,d,m)} function m(p,q){var t=p.slotId;p=k(p);t=av(b.Ra.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return kV(b,t,q,c,p,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new UT(e),f],e.adLayoutLoggingData)} if(!(!isNaN(Number(e.timeoutSeconds))&&e.text&&e.ctaButton&&e.ctaButton.buttonRenderer&&e.brandImage&&e.backgroundImage&&e.backgroundImage.thumbnailLandscapePortraitRenderer&&e.backgroundImage.thumbnailLandscapePortraitRenderer.landscape))return new uv("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var n=1E3*e.timeoutSeconds;return function(p){var q={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},t= k(p);p=vV(b,p.slotId,c,n,q,new Map,t,l);q=new $T(p.AI);return{Ns:{layoutId:p.layoutId,layoutType:p.layoutType,Ob:p.Ob,qd:[],Mc:[],Hc:[],Nc:[],Pc:[],Ua:p.Ua,ya:new iT([].concat(g.v(p.jx),[q])),uc:p.uc,adLayoutLoggingData:p.adLayoutLoggingData},au:[],Yq:p.Hc,UA:p.Nc,TA:p.Pc,Fi:p.Fi}}}; gQa=function(a,b,c,d,e,f,k,l,m,n,p,q,t,u){d=$u(d,"SLOT_TYPE_PLAYER_BYTES");a=eQa(e,a,k,c,d,m,n);if(a instanceof uv)return a;var x;k=null==(x=W(a.ya,"metadata_type_fulfilled_layout"))?void 0:x.layoutId;if(!k)return new uv("Invalid adNotify layout");b=fQa(k,e,f,c,l,b,m,p,q,t,u);return b instanceof uv?b:[a].concat(g.v(b))}; fQa=function(a,b,c,d,e,f,k,l,m,n,p){c=hQa(c,d,f,k,l,m,n,p);if(c instanceof uv)return c;a=iQa(b,a,k,e,c);return a instanceof uv?a:[].concat(g.v(a.Dh),[a.xs])}; kQa=function(a,b,c,d,e,f,k,l,m,n,p){b=hQa(b,c,e,f,l,m,n,p);if(b instanceof uv)return b;a=jQa(a,c,f,k,d,l.dg,b);return a instanceof uv?a:a.Dh.concat(a.xs)}; hQa=function(a,b,c,d,e,f,k,l){var m=wV(c);return m instanceof JU?new uv(m):function(n){var p=new TD(0,[m.zA]),q=lQa(m.playerVars,m.SQ,e,l,p);n=f(n);var t=k.get(m.JD.externalVideoId);p=mQa(a,"core",m.JD,b,q,m.zA,d,p,n,t);return{layout:{layoutId:p.layoutId,layoutType:p.layoutType,Ob:p.Ob,qd:p.qd,Mc:p.Mc,Hc:p.Hc,Nc:p.Nc,Pc:p.Pc,Ua:p.Ua,ya:new iT(p.YM),uc:p.uc,adLayoutLoggingData:p.adLayoutLoggingData},Dh:[]}}}; wV=function(a){if(!a.playerVars)return new JU("No playerVars available in InstreamVideoAdRenderer.");var b;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null==(b=a.playerOverlay)?void 0:b.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new JU("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=Hp(a.playerVars);var c=Number(b.length_seconds);isNaN(c)&&(c=0,S("Expected valid length seconds in player vars but got NaN")); return{JD:a,playerVars:b,SQ:a.playerVars,zA:c}}; lQa=function(a,b,c,d,e){a.iv_load_policy=d;b=Hp(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){S(f)}c.gh&&(a.ctrl=c.gh);c.Fh&&(a.ytr=c.Fh);c.Zm&&(a.ytrcc=c.Zm);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.qj&&(a.vss_credentials_token_type=c.qj),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.j);a.autoplay="1";return a}; oQa=function(a,b,c,d,e,f,k,l,m,n,p,q,t,u,x,y){a=$u(a,"SLOT_TYPE_PLAYER_BYTES");d=eQa(b,k,d,e,a,n,p);if(d instanceof uv)return d;var z;k=null==(z=W(d.ya,"metadata_type_fulfilled_layout"))?void 0:z.layoutId;if(!k)return new uv("Invalid adNotify layout");b=nQa(k,b,c,e,f,m,l,n,q,t,u,x,y);return b instanceof uv?b:[d].concat(g.v(b))}; nQa=function(a,b,c,d,e,f,k,l,m,n,p,q,t){c=pQa(b,c,d,f,k,l,m,n,p,q);xV(t,"enable_post_ad_perception_survey_in_desktop")&&qQa(f)?(t=new uV(b.j,a,["normal"]),a=$u(b.Ra.get(),"SLOT_TYPE_IN_PLAYER"),f=av(b.Ra.get(),"LAYOUT_TYPE_SURVEY",a),l=yV(b,t,l),b=[].concat(g.v(l.Sb),[new zV(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,Hb:l.Hb,Qb:l.Qb,Sb:b,Ua:l.Ua},{slotId:a,layoutId:f}),e=a instanceof uv?a:{xs:Object.assign({},l,{Sb:b,ya:new iT([new qU(a.layout)]), adSlotLoggingData:e}),Dh:a.Dh}):e=iQa(b,a,l,e,c);return e instanceof uv?e:[].concat(g.v(e.Dh),[e.xs])}; sQa=function(a,b,c,d,e,f,k,l,m,n,p,q){b=pQa(a,b,c,e,f,k,m,n,p,q);qQa(e)?(c=rQa(a,c,k,l),c instanceof uv?d=c:(e=$u(a.Ra.get(),"SLOT_TYPE_IN_PLAYER"),k=av(a.Ra.get(),"LAYOUT_TYPE_SURVEY",e),a=[].concat(g.v(c.Sb),[new zV(a.j,k)]),e=b({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,Ua:c.Ua,Hb:c.Hb,Qb:c.Qb,Sb:a},{slotId:e,layoutId:k}),d=e instanceof uv?e:{xs:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,Hb:c.Hb,Qb:c.Qb,Sb:a,Ua:c.Ua,ya:new iT([new qU(e.layout)]), adSlotLoggingData:d},Dh:e.Dh})):d=jQa(a,c,k,l,d,m.dg,b);return d instanceof uv?d:d.Dh.concat(d.xs)}; qQa=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())if(b.value.instreamSurveyAdRenderer)return!0;return!1}; pQa=function(a,b,c,d,e,f,k,l,m,n){return function(p,q){a:{b:{var t=[];for(var u=g.r(d),x=u.next();!x.done;x=u.next())if(x=x.value,x.instreamVideoAdRenderer){x=wV(x.instreamVideoAdRenderer);if(x instanceof JU){t=new uv(x);break b}t.push(x.zA)}}if(t instanceof uv)q=t;else{u=0;x=[];for(var y=[],z=[],D=[],G=[],F=[],L=new dU({current:null}),aa=new MT({current:null}),M=!1,qa=[],ua=g.r(d),Z=ua.next();!Z.done;Z=ua.next())if(Z=Z.value,Z.adIntroRenderer){Z=aQa(b,c,Z.adIntroRenderer,l);if(Z instanceof uv){q= Z;break a}Z=Z(p);x.push(Z.Ns);y=[].concat(g.v(Z.au),g.v(y));z=[].concat(g.v(Z.Yq),g.v(z));Z.Fi&&(qa=[Z.Fi].concat(g.v(qa)))}else if(Z.instreamVideoAdRenderer){var pa=wV(Z.instreamVideoAdRenderer);if(pa instanceof JU){q=new uv(pa);break a}var Qa=new TD(u,t);Z=b;var Pa=pa.JD,Ya=lQa(pa.playerVars,pa.SQ,k,n,Qa),lb=l(p),fc=m.get(pa.JD.externalVideoId);pa=mQa(Z,"adapter",Pa,c,Ya,pa.zA,f,Qa,lb,fc);Qa=pa.Mc;Ya=pa.YM;Pa.adPodSkipTarget&&0=l)return new uv("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new dU({current:null}),n=BPa(a,b,c,m,d,f,k);return tQa(a,d,f,l,e,function(p,q){var t=p.slotId,u=jV(c);p=k(p);t=av(b.Ra.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ua:"core"},y=n(t, q);W(y.ya,"metadata_type_fulfilled_layout")||S("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new JT(d),new vU(l),new yU(u),m];return{SX:{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ob:new Map,qd:[new qV(b.j,t)],Mc:[new mV(b.j,q.layoutId)],Hc:[],Nc:[new nV(b.j,q.layoutId)],Pc:[],Ua:"core",ya:new iT(u),uc:p(x)},pX:y}})}; vQa=function(a){if(!nPa(a))return!1;var b=a.adVideoStart.adMessageRenderer;return b?a.linearAd.instreamVideoAdRenderer&&LE(b)?!0:(S("Invalid Sandwich with notify"),!1):!1}; wQa=function(a){if(null==a.linearAds)return!1;var b;a=null==(b=a.adStart)?void 0:b.adMessageRenderer;return a?LE(a)?!0:(S("Invalid LASR with notify"),!1):!1}; xQa=function(a){if(!mPa(a))return!1;var b;a=null==(b=a.adStart)?void 0:b.adMessageRenderer;return a?LE(a)?!0:(S("Invalid LASR with notify"),!1):!1}; AV=function(a,b,c,d,e,f,k,l){this.Ra=a;this.wb=b;this.eb=c;this.Da=d;this.rb=e;this.j=f;this.Xh=k;this.loadPolicy=void 0===l?1:l}; Hra=function(a,b,c,d,e,f,k){var l=[];if(0===b.length&&0===c.length)return l;b=b.filter(eV);for(var m=c.filter(eV),n=new Map,p=new Map,q=g.r(b),t=q.next();!t.done;t=q.next())(t=t.value.renderer.remoteSlotsRenderer)&&t.hostElementId&&p.set(t.hostElementId,t);q=g.r(b);for(t=q.next();!t.done;t=q.next()){t=t.value;var u=yQa(a,n,t,d,e,f,k,p);u instanceof uv?S(u,void 0,void 0,{renderer:t.renderer,config:t.config.adPlacementConfig,kind:t.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):l.push.apply(l, g.v(u))}zQa(a.Da.get())||(e=AQa(a,m,d,k,p,n),l.push.apply(l,g.v(e)));if(null===a.j||f&&!k.kN){var x,y,z;a=k.dg&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(x=b[0].config)?void 0:null==(y=x.adPlacementConfig)?void 0:y.kind)&&(null==(z=b[0].renderer)?void 0:z.adBreakServiceRenderer);if(!l.length&&!a){var D,G,F,L;S("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,"first APR kind":null==(D=b[0])?void 0:null== (G=D.config)?void 0:null==(F=G.adPlacementConfig)?void 0:F.kind,renderer:null==(L=b[0])?void 0:L.renderer})}return l}x=c.filter(eV);l.push.apply(l,g.v(uPa(n,x,a.wb.get(),a.j,d)));if(!l.length){var aa,M,qa,ua;S("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f.toString(),"first APR kind":null==(aa=b[0])?void 0:null==(M=aa.config)?void 0:null==(qa=M.adPlacementConfig)?void 0:qa.kind,renderer:null==(ua=b[0])?void 0:ua.renderer})}return l}; AQa=function(a,b,c,d,e,f){function k(t){return oT(a.rb.get(),t)} var l=[];b=g.r(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&vQa(p)?(q=p.adVideoStart.adMessageRenderer,p=p.linearAd.instreamVideoAdRenderer,fV(f,n,m.config.adPlacementConfig.kind),m=fQa(q.layout.layoutId,a.wb.get(),a.eb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,k,e,a.loadPolicy,a.Da.get()),m instanceof uv?S(m):l.push.apply(l,g.v(m))):q&&(!q.adLayoutMetadata&&wQa(q)||q.adLayoutMetadata&&xQa(q))&& (fV(f,n,m.config.adPlacementConfig.kind),m=nQa(q.adStart.adMessageRenderer.layout.layoutId,a.wb.get(),a.eb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,dV(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,k,e,a.loadPolicy,a.Da.get()),m instanceof uv?S(m):l.push.apply(l,g.v(m)))}return l}; yQa=function(a,b,c,d,e,f,k,l){function m(y){return oT(a.rb.get(),y)} var n=c.renderer,p=c.config.adPlacementConfig,q=p.kind,t=c.adSlotLoggingData,u=k.kN&&"AD_PLACEMENT_KIND_START"===q;u=f&&!u;if(null!=n.adsEngagementPanelRenderer)return hV(b,c.elementId,q,n.adsEngagementPanelRenderer.shouldRemoveCommandTriggeredCompanions,n.adsEngagementPanelRenderer.isContentVideoEngagementPanel,n.adsEngagementPanelRenderer.adVideoId,n.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,p,t,function(y,z,D,G){var F;if(null==(F=n.adsEngagementPanelRenderer)?0:F.shouldRemoveCommandTriggeredCompanions){F= a.eb.get();var L=n.adsEngagementPanelRenderer,aa=oT(a.rb.get(),y);y=BV(F,y.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new BT(L),z,D,L.impressionPings,aa,n.adsEngagementPanelRenderer.adLayoutLoggingData,G)}else G=a.eb.get(),F=n.adsEngagementPanelRenderer,L=oT(a.rb.get(),y),y=CV(G,y.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new BT(F),z,D,F.impressionPings,L,n.adsEngagementPanelRenderer.adLayoutLoggingData);return y}),[]; if(null!=n.actionCompanionAdRenderer)hV(b,c.elementId,q,n.actionCompanionAdRenderer.shouldRemoveCommandTriggeredCompanions,n.actionCompanionAdRenderer.isContentVideoCompanion,n.actionCompanionAdRenderer.adVideoId,n.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,p,t,function(y,z,D,G){var F;if(null==(F=n.actionCompanionAdRenderer)?0:F.shouldRemoveCommandTriggeredCompanions){F=a.eb.get();var L=n.actionCompanionAdRenderer,aa=oT(a.rb.get(),y);y=BV(F,y.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new AT(L),z,D,L.impressionPings,aa,n.actionCompanionAdRenderer.adLayoutLoggingData,G)}else G=a.eb.get(),F=n.actionCompanionAdRenderer,L=oT(a.rb.get(),y),y=CV(G,y.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new AT(F),z,D,F.impressionPings,L,n.actionCompanionAdRenderer.adLayoutLoggingData);return y}); else if(n.imageCompanionAdRenderer)hV(b,c.elementId,q,n.imageCompanionAdRenderer.shouldRemoveCommandTriggeredCompanions,n.imageCompanionAdRenderer.isContentVideoCompanion,n.imageCompanionAdRenderer.adVideoId,n.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,p,t,function(y,z,D,G){var F;if(null==(F=n.imageCompanionAdRenderer)?0:F.shouldRemoveCommandTriggeredCompanions){F=a.eb.get();var L=n.imageCompanionAdRenderer,aa=oT(a.rb.get(),y);y=BV(F,y.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE", new FT(L),z,D,L.impressionPings,aa,n.imageCompanionAdRenderer.adLayoutLoggingData,G)}else G=a.eb.get(),F=n.imageCompanionAdRenderer,L=oT(a.rb.get(),y),y=CV(G,y.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new FT(F),z,D,F.impressionPings,L,n.imageCompanionAdRenderer.adLayoutLoggingData);return y}); else if(n.shoppingCompanionCarouselRenderer)hV(b,c.elementId,q,n.shoppingCompanionCarouselRenderer.shouldRemoveCommandTriggeredCompanions,n.shoppingCompanionCarouselRenderer.isContentVideoCompanion,n.shoppingCompanionCarouselRenderer.adVideoId,n.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,p,t,function(y,z,D,G){var F;if(null==(F=n.shoppingCompanionCarouselRenderer)?0:F.shouldRemoveCommandTriggeredCompanions){F=a.eb.get();var L=n.shoppingCompanionCarouselRenderer,aa=oT(a.rb.get(), y);y=BV(F,y.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new GT(L),z,D,L.impressionPings,aa,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData,G)}else G=a.eb.get(),F=n.shoppingCompanionCarouselRenderer,L=oT(a.rb.get(),y),y=CV(G,y.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new GT(F),z,D,F.impressionPings,L,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData);return y}); else if(n.adBreakServiceRenderer){if(!qPa(c))return[];if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==q)return pPa(a.wb.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Xh)return new uv("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");k.dg||S("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:q,adPlacementConfig:p,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(k.dg),clientPlaybackNonce:k.clientPlaybackNonce}); BQa(a.Xh,{adPlacementRenderer:c,contentCpn:d,bN:e})}else{if(n.clientForecastingAdRenderer)return VPa(a.wb.get(),a.eb.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return XPa(a.wb.get(),a.eb.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if((n.linearAdSequenceRenderer||n.instreamVideoAdRenderer)&&u)return PPa(a.wb.get(),a.eb.get(),c,d,m);if(n.linearAdSequenceRenderer&&!u){fV(b,n,q);if(n.linearAdSequenceRenderer.adLayoutMetadata){if(!mPa(n.linearAdSequenceRenderer))return new uv("Received invalid LinearAdSequenceRenderer.")}else if(null== n.linearAdSequenceRenderer.linearAds)return new uv("Received invalid LinearAdSequenceRenderer.");var x;if(null==(x=n.linearAdSequenceRenderer.adStart)?0:x.adMessageRenderer){b=n.linearAdSequenceRenderer.adStart.adMessageRenderer;if(!Vya(b))return new uv("Invalid AdMessageRenderer.");c=n.linearAdSequenceRenderer.linearAds;return oQa(a.Ra.get(),a.wb.get(),a.eb.get(),a.rb.get(),p,t,b,dV(n.linearAdSequenceRenderer.adLayoutMetadata)?n.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,k,m,l,a.loadPolicy, a.Da.get())}return sQa(a.wb.get(),a.eb.get(),p,t,n.linearAdSequenceRenderer.linearAds,dV(n.linearAdSequenceRenderer.adLayoutMetadata)?n.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,k,m,l,a.loadPolicy,a.Da.get())}if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!u)return fV(b,n,q),kQa(a.wb.get(),a.eb.get(),p,t,n.instreamVideoAdRenderer,d,e,k,m,l,a.loadPolicy,a.Da.get());if(n.instreamSurveyAdRenderer)return uQa(a.wb.get(),a.eb.get(),n.instreamSurveyAdRenderer,p,t,d,m);if(null!=n.sandwichedLinearAdRenderer)return nPa(n.sandwichedLinearAdRenderer)? n.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer?(b=n.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer,Vya(b)?(c=n.sandwichedLinearAdRenderer.linearAd.instreamVideoAdRenderer)?gQa(b,c,p,a.Ra.get(),a.wb.get(),a.eb.get(),a.rb.get(),t,d,e,k,m,l,a.loadPolicy,a.Da.get()):new uv("Missing IVAR from Sandwich"):new uv("Invalid AdMessageRenderer.")):sQa(a.wb.get(),a.eb.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart,n.sandwichedLinearAdRenderer.linearAd],void 0,d,e,k,m,l,a.loadPolicy, a.Da.get()):new uv("Received invalid SandwichedLinearAdRenderer.");if(null!=n.videoAdTrackingRenderer)return TPa(a.wb.get(),a.eb.get(),n.videoAdTrackingRenderer,p,t,d,m)}}return[]}; DV=function(a){g.I.call(this);this.j=a}; Uu=function(a,b,c,d){a.j().Di(b,d);c=c();a=a.j();EV(a.Tb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.r(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;RE(d.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);RE(d.Tb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.fb(c.slotId))throw new uv("Slot ID was empty");if(HU(e,c))throw new uv("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Hb.triggerType});if(!e.re.vn.has(c.slotType))throw new uv("No fulfillment adapter factory registered for slot of type: "+ c.slotType);if(!e.re.jo.has(c.slotType))throw new uv("No SlotAdapterFactory registered for slot of type: "+c.slotType);YU(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Hb?[c.Hb]:[]);YU(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.Qb);YU(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.Sb);var f=d.j,k=c.slotType+"_"+c.slotPhysicalPosition,l=TU(f,k);if(HU(f,c))throw new uv("Duplicate slots not supported");l.set(c.slotId,new hPa(c));f.j.set(k,l)}catch(ua){S(ua,c,void 0,void 0,ua.Nq);break a}HU(d.j,c).I=!0;try{var m=d.j,n=HU(m, c),p=c.Hb,q=m.re.nj.get(p.triggerType);q&&(q.Vj("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.ea.set(p.triggerId,q));for(var t=g.r(c.Qb),u=t.next();!u.done;u=t.next()){var x=u.value,y=m.re.nj.get(x.triggerType);y&&(y.Vj("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.V.set(x.triggerId,y))}for(var z=g.r(c.Sb),D=z.next();!D.done;D=z.next()){var G=D.value,F=m.re.nj.get(G.triggerType);F&&(F.Vj("TRIGGER_CATEGORY_SLOT_EXPIRATION",G,c,null),n.U.set(G.triggerId,F))}var L=m.re.vn.get(c.slotType).get().Le(m.B, c);n.J=L;var aa=m.re.jo.get(c.slotType).get().Le(m.D,c);aa.init();n.u=aa}catch(ua){S(ua,c,void 0,void 0,ua.Nq);EU(d,c,!0);break a}RE(d.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Ch(c);for(var M=g.r(d.ge),qa=M.next();!qa.done;qa=M.next())qa.value.Ch(c);MU(d,c)}}; FV=function(a,b,c,d){this.qo=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)}; GV=function(a,b,c,d){g.I.call(this);var e=this;this.Nb=a;this.wb=b;this.Yb=c;this.j=new Map;d.get().addListener(this);g.ge(this,function(){d.get().removeListener(e)})}; Era=function(a,b){var c=0x8000000000000;for(var d=0,e=g.r(b.Qb),f=e.next();!f.done;f=e.next())f=f.value,f instanceof FV?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):S("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new Nn(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.Yb.get().addCueRange(d,c.start,c.end,!1,a)}; HV=function(){g.I.apply(this,arguments);this.Wi=!0;this.ij=new Map;this.j=new Map}; CQa=function(a,b){a=g.r(a.ij.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1}; DQa=function(a,b){a=g.r(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.r(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}S("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.fb(b)),layoutId:b})}; zV=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)}; uV=function(a,b,c){this.rf=b;this.j=c;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)}; lV=function(a,b){this.rf=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)}; oV=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)}; IV=function(a,b){this.j=b;this.slotType="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)}; JV=function(a,b){this.j=b;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)}; qV=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)}; pV=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)}; EQa=function(a,b){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=b;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=a(this.triggerType)}; GPa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)}; KV=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)}; LV=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)}; MV=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)}; mV=function(a,b){this.rf=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)}; nV=function(a,b){this.rf=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)}; tV=function(a,b){this.durationMs=45E3;this.rf=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)}; FQa=function(a){var b=[new ZT(a.Sv),new QT(a.instreamAdPlayerOverlayRenderer),new bU(a.wQ),new JT(a.adPlacementConfig),new gU(a.videoLengthSeconds),new uU(a.JH)];a.wM&&b.push(new MT(a.wM));return b}; GQa=function(a,b,c,d,e,f){a=c.cH?c.cH:av(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var k={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ua:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ob:new Map,qd:[new lV(function(l){return bv(f,l)},c.Sv)], Mc:[],Hc:[],Nc:[],Pc:[],Ua:b,ya:d,uc:e(k),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}}; NV=function(a){var b=this;this.Ra=a;this.j=function(c){return bv(b.Ra.get(),c)}}; HQa=function(a,b,c,d,e,f){c=new iT([new RT(c),new JT(d)]);b=av(a.Ra.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ua:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ob:new Map,qd:[new lV(function(k){return bv(a.Ra.get(),k)},e)], Mc:[],Hc:[],Nc:[],Pc:[],Ua:"core",ya:c,uc:f(d),adLayoutLoggingData:void 0}}; OV=function(a,b,c,d,e){var f=FQa(d);return GQa(b,c,d,new iT(f),e,a.Ra.get())}; IQa=function(a,b,c,d,e){var f=FQa(d);f.push(new HT(d.AV));f.push(new IT(d.CV));return GQa(b,c,d,new iT(f),e,a.Ra.get())}; BV=function(a,b,c,d,e,f,k,l,m,n){b=av(a.Ra.get(),c,b);var p={layoutId:b,layoutType:c,Ua:"core"},q=new Map;k&&q.set("impression",k);k=[new IV(a.j,e)];n&&k.push(new uV(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Ob:q,qd:k,Mc:[],Hc:[],Nc:[],Pc:[],Ua:"core",ya:new iT([d,new JT(f),new ZT(e)]),uc:l(p),adLayoutLoggingData:m}}; CV=function(a,b,c,d,e,f,k,l,m){b=av(a.Ra.get(),c,b);var n={layoutId:b,layoutType:c,Ua:"core"},p=new Map;k&&p.set("impression",k);return{layoutId:b,layoutType:c,Ob:p,qd:[new qV(a.j,b),new IV(a.j,e)],Mc:[],Hc:[],Nc:[],Pc:[],Ua:"core",ya:new iT([d,new JT(f),new ZT(e)]),uc:l(n),adLayoutLoggingData:m}}; sV=function(a,b,c){var d=[];d.push(new JV(a.j,c));b&&d.push(b);return d}; rV=function(a,b,c,d,e,f,k){var l={layoutId:b,layoutType:c,Ua:"core"};return{layoutId:b,layoutType:c,Ob:new Map,qd:k,Mc:[new zV(a.j,b)],Hc:[],Nc:[],Pc:[],Ua:"core",ya:new iT([new ET(d),new JT(e)]),uc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}}; kV=function(a,b,c,d,e,f,k,l){var m={layoutId:b,layoutType:f,Ua:"core"};return{layoutId:b,layoutType:f,Ob:new Map,qd:[new lV(a.j,c)],Mc:[],Hc:[],Nc:[],Pc:[],Ua:"core",ya:new iT([new JT(d)].concat(g.v(k))),uc:e(m),adLayoutLoggingData:l}}; YPa=function(a,b,c,d,e,f,k,l,m,n){a=vV(a,b,c,d,e,f,k,l,m,n);return{Ns:{layoutId:a.layoutId,layoutType:a.layoutType,Ob:a.Ob,qd:[],Mc:[],Hc:[],Nc:[],Pc:[],Ua:a.Ua,ya:new iT(a.jx),uc:a.uc,adLayoutLoggingData:a.adLayoutLoggingData},au:a.Mc,Yq:a.Hc,UA:a.Nc,TA:a.Pc,Fi:a.Fi}}; bQa=function(a,b,c,d,e,f,k,l){b=vV(a,b,c,d,e,new Map,f,function(m){return k(m,l)}); a=new nV(a.j,b.AI);c=new $T(b.AI);return{Ns:{layoutId:b.layoutId,layoutType:b.layoutType,Ob:b.Ob,qd:[],Mc:[],Hc:[],Nc:[],Pc:[],Ua:b.Ua,ya:new iT([].concat(g.v(b.jx),[c])),uc:b.uc,adLayoutLoggingData:b.adLayoutLoggingData},au:b.Mc,Yq:b.Hc,UA:[].concat(g.v(b.Nc),[a]),TA:b.Pc,Fi:b.Fi}}; vV=function(a,b,c,d,e,f,k,l,m,n){b=av(a.Ra.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ua:"adapter"};l=l(b);var q=W(l.ya,"metadata_type_fulfilled_layout");q||S("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new JT(c),new vU(d),new yU(e)];n&&c.push(new lU(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ob:f,qd:[],Mc:[new mV(a.j,q)],Hc:[],Nc:[],Pc:[],Ua:"adapter", jx:c,uc:k(p),adLayoutLoggingData:m,Fi:l,AI:q}}; mQa=function(a,b,c,d,e,f,k,l,m,n){var p=c.elementId,q={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",Ua:b};d=[new JT(d),new KT(l),new NT(c.externalVideoId),new PT(k),new QT(c.playerOverlay.instreamAdPlayerOverlayRenderer),new yU({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new hU(e),new cU({current:null}),new gU(f)];(e=c.playerUnderlay)&&d.push(new RT(e));e=$u(a.Ra.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)? f:av(a.Ra.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new $T(f));d.push(new aU(e));d.push(new lU(l.j));c.adNextParams&&d.push(new CT(c.adNextParams));c.shrunkenPlayerBytesConfig&&d.push(new ST(c.shrunkenPlayerBytesConfig));c.clickthroughEndpoint&&d.push(new DT(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new wU(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new iU(c.sodarExtensionData));n&&d.push(new tU(n));d.push(new BU(VD(c.pings)));return{layoutId:p, layoutType:"LAYOUT_TYPE_MEDIA",Ob:WD(c.pings),qd:[new qV(a.j,p)],Mc:c.skipOffsetMilliseconds?[new mV(a.j,f)]:[],Hc:[new mV(a.j,f)],Nc:[],Pc:[],Ua:b,YM:d,uc:m(q),adLayoutLoggingData:c.adLayoutLoggingData}}; RPa=function(a,b,c,d,e,f,k,l){d.every(function(n){return KE(n,[],["LAYOUT_TYPE_MEDIA"])})||S("Unexpect subLayout type for DAI composite layout"); b=av(a.Ra.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var m={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Ua:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Ob:new Map,qd:[new oV(a.j)],Mc:[],Hc:[],Nc:[],Pc:[],Ua:"core",ya:new iT([new jU(c),new kU(l),new eU(d),new JT(e),new pU(f),new mU({})]),uc:k(m)}}; MPa=function(a){return null!=a}; PV=function(a,b,c){this.qo=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)}; QV=function(a,b,c){this.rf=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)}; RV=function(a,b){this.rf=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)}; JQa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)}; KQa=function(a,b,c,d,e){this.qo=b;this.j=c;this.visible=d;this.layoutId=e;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=a(this.triggerType)}; SV=function(a,b,c){this.qo=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)}; TV=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)}; UV=function(a,b){this.Ng=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)}; VV=function(a,b){this.Ng=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)}; WV=function(a,b){this.Ng=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)}; XV=function(a,b){this.Ng=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)}; YV=function(a,b){this.Ng=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)}; ZV=function(a,b){this.Ng=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)}; $V=function(a,b,c){var d=this;this.Ra=a;this.eb=b;this.Da=c;this.j=function(e){return bv(d.Ra.get(),e)}}; oPa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var k=$u(a.Ra.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.vu&&d.vu.start!==d.Am.start&&l.push(new FV(a.j,c,new Nn(d.vu.start,d.Am.start),!1));l.push(new FV(a.j,c,new Nn(d.Am.start,d.Am.end),d.WC));d={getAdBreakUrl:b.getAdBreakUrl,RQ:d.Am.start,QQ:d.Am.end};b=new XV(a.j,k);f=[new rU(d)].concat(g.v(f));return{slotId:k,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Hb:b,Qb:l,Sb:[new pV(a.j,c),new VV(a.j,k),new WV(a.j,k)],Ua:"core",ya:new iT(f), adSlotLoggingData:e}}; MQa=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())d.push(LQa(a,b,e.value));return d}; LQa=function(a,b,c){return null!=c.Ng&&c.Ng===a?c.clone(b):c}; APa=function(a,b,c,d,e){return NQa(a,b,c,d,e)}; ZPa=function(a,b,c,d){var e=$u(a.Ra.get(),"SLOT_TYPE_IN_PLAYER");return NQa(a,e,b,c,d)}; NQa=function(a,b,c,d,e){var f=new RV(a.j,c),k=[new UV(a.j,b)];a=[new VV(a.j,b),new pV(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Hb:f,Qb:k,Sb:a,Ua:"core",ya:new iT([new qU(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ua:"core",Hb:f,Qb:k,Sb:a},c))]),adSlotLoggingData:void 0}}; tQa=function(a,b,c,d,e,f){var k=$u(a.Ra.get(),"SLOT_TYPE_PLAYER_BYTES"),l=$u(a.Ra.get(),"SLOT_TYPE_IN_PLAYER"),m=av(a.Ra.get(),"LAYOUT_TYPE_SURVEY",l);b=aW(a,b,c,d);d=[new UV(a.j,k)];a=[new VV(a.j,k),new pV(a.j,c),new zV(a.j,m)];if(b instanceof uv)return b;f=f({slotId:k,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ua:"core",Hb:b,Qb:d,Sb:a},{slotId:l,layoutId:m});l=f.pX;return[{slotId:k,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Hb:b,Qb:d,Sb:a,Ua:"core",ya:new iT([new qU(f.SX)]), adSlotLoggingData:e},l]}; OQa=function(a,b,c,d,e){e=e?e:$u(a.Ra.get(),"SLOT_TYPE_IN_PLAYER");c=new RV(a.j,c);var f=[new UV(a.j,e)];a=[new pV(a.j,b),new VV(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Hb:c,Qb:f,Sb:a,Ua:"core",ya:new iT([new qU(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ua:"core",Hb:c,Qb:f,Sb:a}))])}}; PQa=function(a,b,c,d){var e=$u(a.Ra.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new RV(a.j,c);var f=[new UV(a.j,e)];a=[new pV(a.j,b),new VV(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Hb:c,Qb:f,Sb:a,Ua:"core",ya:new iT([new qU(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Ua:"core",Hb:c,Qb:f,Sb:a}))])}}; eQa=function(a,b,c,d,e,f,k){var l=$u(a.Ra.get(),"SLOT_TYPE_IN_PLAYER"),m=av(a.Ra.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=QQa(a,d,f,k,m);if(d instanceof uv)return d;k=[new UV(a.j,l)];e=[new pV(a.j,f),new UV(a.j,e),new ZV(a.j,e)];c=oT(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ua:"core",Hb:d,Qb:k,Sb:e});a=a.eb.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Ua:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Ob:new Map,qd:[new KV(a.j,m, b.durationMs)],Mc:[new MV(a.j,m,b.durationMs)],Pc:[new LV(a.j,m)],Hc:[],Nc:[],Ua:"core",ya:new iT([new xU(b)]),uc:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ua:"core",Hb:d,Qb:k,Sb:e,ya:new iT([new qU(b)])}}; WPa=function(a,b,c,d,e,f){b=aW(a,b,c,d);if(b instanceof uv)return b;var k=b instanceof FV?new SV(a.j,c,b.j):null;d=$u(a.Ra.get(),"SLOT_TYPE_IN_PLAYER");var l=[new UV(a.j,d)];a=[new pV(a.j,c),new VV(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ua:"core",Hb:b,Qb:l,Sb:a},k);return f instanceof JU?new uv(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Hb:b,Qb:l,Sb:a,Ua:"core",ya:new iT([new qU(f)]),adSlotLoggingData:e}}; FPa=function(a,b,c,d){var e=$u(a.Ra.get(),"SLOT_TYPE_IN_PLAYER");c=new RV(a.j,c);var f=[new UV(a.j,e)],k=[new VV(a.j,e),new pV(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ua:"core",Hb:c,Qb:f,Sb:k};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Hb:c,Qb:[new UV(a.j,e)],Sb:[new pV(a.j,b),new VV(a.j,e)],Ua:"core",ya:new iT([new qU(d(f))])}}; DPa=function(a,b,c,d,e){var f=$u(a.Ra.get(),"SLOT_TYPE_IN_PLAYER");c=new QV(a.j,d,c);d=[new UV(a.j,f)];a=[new pV(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Hb:c,Qb:d,Sb:a,Ua:"core",ya:new iT([new qU(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ua:"core",Hb:c,Qb:d,Sb:a}))])}}; gV=function(a,b,c,d,e,f){var k=$u(a.Ra.get(),b);return bW(a,k,b,new RV(a.j,d),c,e,d,f)}; sPa=function(a,b,c,d,e,f,k){var l=$u(a.Ra.get(),b);return bW(a,l,b,new uV(a.j,e,["normal"]),c,f,d,k)}; SPa=function(a,b,c,d){var e=$u(a.Ra.get(),"SLOT_TYPE_PLAYBACK_TRACKING");b=new Xu(a.j,b);var f=[new UV(a.j,e)];a=[new VV(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,Hb:b,Qb:f,Sb:a,Ua:"core",ya:new iT([new qU(d({slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,Ua:"core",Hb:b,Qb:f,Sb:a}))]),adSlotLoggingData:c}}; tPa=function(a,b,c,d,e,f,k){return bW(a,c,b,new TV(a.j,c),d,f,e,k)}; NPa=function(a,b,c){var d=$u(a.Ra.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new JQa(a.j),f=[new YV(a.j,d)];a=[new pV(a.j,b)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Hb:e,Qb:f,Sb:a,Ua:"core",ya:new iT([new qU(c({slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ua:"core",Hb:e,Qb:f,Sb:a})),new mU({})])}}; iQa=function(a,b,c,d,e){b=new uV(a.j,b,["normal"]);a=yV(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Hb:a.Hb,Qb:a.Qb,Sb:a.Sb,Ua:a.Ua});return e instanceof uv?e:{xs:Object.assign({},a,{ya:new iT([new qU(e.layout)]),adSlotLoggingData:d}),Dh:e.Dh}}; jQa=function(a,b,c,d,e,f,k){a=rQa(a,b,c,d);if(a instanceof uv)return a;k=k({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Hb:a.Hb,Qb:a.Qb,Sb:a.Sb,Ua:a.Ua});if(k instanceof uv)return k;b=[new qU(k.layout)];f&&b.push(new zU({}));return{xs:{slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Hb:a.Hb,Qb:a.Qb,Sb:a.Sb,Ua:a.Ua,ya:new iT(b),adSlotLoggingData:e},Dh:k.Dh}}; yV=function(a,b,c){var d=$u(a.Ra.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new UV(a.j,d)];a=[new VV(a.j,d),new pV(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Hb:b,Qb:e,Sb:a,Ua:"core"}}; rQa=function(a,b,c,d){b=aW(a,b,c,d);return b instanceof uv?b:yV(a,b,c)}; UPa=function(a,b,c,d,e,f){var k=$u(a.Ra.get(),"SLOT_TYPE_FORECASTING");b=aW(a,b,c,d);if(b instanceof uv)return b;d=[new UV(a.j,k)];a=[new VV(a.j,k),new pV(a.j,c)];return{slotId:k,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Hb:b,Qb:d,Sb:a,Ua:"core",ya:new iT([new qU(f({slotId:k,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Ua:"core",Hb:b,Qb:d,Sb:a}))]),adSlotLoggingData:e}}; RQa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new Xu(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=asa(b,d),a instanceof uv?a:e(a.Am,f);case "AD_PLACEMENT_KIND_END":return new PV(a.j,c,f);default:return new uv("Cannot construct entry trigger",{kind:b.kind})}}; QQa=function(a,b,c,d,e){return RQa(a,b,c,d,function(f,k){return new KQa(a.j,c,f,k,e)})}; aW=function(a,b,c,d){return RQa(a,b,c,d,function(e,f){return new FV(a.j,c,e,f)})}; bW=function(a,b,c,d,e,f,k,l){var m=[new YV(a.j,b)];a=[new pV(a.j,e),new VV(a.j,b),new uV(a.j,k,["error"])];return{slotId:b,slotType:c,slotPhysicalPosition:1,Hb:d,Qb:m,Sb:a,Ua:"core",ya:new iT([new qU(l({slotId:b,slotType:c,slotPhysicalPosition:1,Ua:"core",Hb:d,Qb:m,Sb:a}))]),adSlotLoggingData:f}}; cW=function(a,b){g.I.call(this);this.Da=a;this.j=b;this.eventCount=0}; RE=function(a,b,c){EV(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData)}; IU=function(a,b,c,d){EV(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)}; $Oa=function(a,b,c,d){xV(a.Da.get(),"html5_log_trigger_events_with_debug_data")&&!nT(a.j.get())||EV(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)}; EV=function(a,b,c,d,e,f,k,l,m,n){try{if(a.u()&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var p=nT(a.j.get()),q=SQa(a,p,b,c,d,e,f,k,l,m,n);g.cr("adsClientStateChange",{adsClientEvent:q})}}catch(t){g.Rq(g.Tq(),function(){S(t instanceof Error?t:String(t),f,k,{pacf_message:"exception during pacf logging"})})}}; SQa=function(a,b,c,d,e,f,k,l,m,n,p){c={eventType:c,eventOrder:++a.eventCount};var q={};k&&(q.slotData=lT(b,k));l&&(q.layoutData=POa(b,l));m&&(q.triggerData=kT(m.trigger,m.category));d&&(q.opportunityData=QOa(b,d,e,f));b={organicPlaybackContext:{contentCpn:a.Na.get().Cf(1).clientPlaybackNonce}};b.organicPlaybackContext.isLivePlayback=a.Na.get().Cf(1).dg;var t;b.organicPlaybackContext.isMdxPlayback=null==(t=a.Na.get().Cf(1))?void 0:t.isMdxPlayback;var u;if(a=null==(u=a.Na.get().Cf(2))?void 0:u.clientPlaybackNonce)b.adVideoPlaybackContext= {adVideoCpn:a};b&&(q.externalContext=b);c.adClientData=q;n&&(c.serializedSlotAdServingData=n.serializedSlotAdServingDataEntry);p&&(c.serializedAdServingData=p.serializedAdServingDataEntry);return c}; dW=function(a,b,c){cW.call(this,a,b);this.Da=a;this.Na=c}; eW=function(){this.j=new Map}; fW=function(a,b,c,d,e){g.I.call(this);this.G=a;this.u=b;this.Ba=c;this.Na=d;this.ye=e;this.listeners=[];var f=new Rt(this);g.J(this,f);f.N(a,"internalAbandon",this.kI);g.ge(this,function(){g.Tt(f)})}; gW=function(a){g.I.call(this);this.G=a;this.j=new Map;this.u=new Rt(this);g.J(this,this.u);this.u.N(this.G,g.mv("ad"),this.onCueRangeEnter,this);this.u.N(this.G,g.nv("ad"),this.onCueRangeExit,this)}; TQa=function(a,b,c,d,e){g.kv.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})}; hW=function(a){this.G=a}; iW=function(a){this.G=a}; xV=function(a,b){return a.G.S().K(b)}; jW=function(a){var b,c,d;return(null==(b=a.G.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1}; UQa=function(a){return a.G.S().K("html5_enable_vod_lasr_with_notify_pacf")}; zQa=function(a){return a.G.S().K("html5_enable_vod_slar_with_notify_pacf")}; YOa=function(a){if(g.iB(a.G.S()))return a.G.S().K("html5_enable_vod_lsar_ivar_pacf_unplugged");if(XA(a.G.S())||g.YA(a.G.S()))return!0;S("Composite VOD on legacy path.");return!1}; VQa=function(a){return a.G.S().K("html5_recognize_predict_start_cue_point")}; kW=function(a){return a.G.S().K("enable_lr_home_infeed_ads_inline_playback_progress_pings")}; WQa=function(a){return a.G.S().experiments.bb("enable_desktop_player_underlay")}; lW=function(a,b){this.Ba=a;this.G=b;this.j=new Map;SD().subscribe("adactiveviewmeasurable",this.My,this);SD().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Ly,this);SD().subscribe("adviewableimpression",this.Ny,this);SD().subscribe("adaudioaudible",this.Jy,this);SD().subscribe("adaudiomeasurable",this.Ky,this)}; nW=function(a,b,c,d,e){e=void 0===e?null:e;a.j.has(b)?S("Unexpected registration of layout in LidarApi"):(a.j.set(b,e),Hja(Uj(dn),c),wya(SD(),b,{Kx:function(){return d?{currentTime:a.Ba.get().getCurrentTimeSec(2,!1),duration:d,isPlaying:2===a.Ba.get().getPresentingPlayerType()&&1===mW(a.Ba.get(),2),wka:!1,xka:!0,volume:a.Ba.get().isMuted()?0:a.Ba.get().getVolume()/100}:{}}}))}; oW=function(a,b){a.j.has(b)?(a.j.delete(b),delete SD().j[b]):S("Unexpected unregistration of layout in LidarApi")}; pW=function(a,b,c){this.B=c;this.C=a;this.D=b}; qW=function(a,b,c,d){var e=void 0===e?new pW(function(){var f=a.getVideoData(1);return f?g.CD(f):""},function(){return a.S().pageId},function(f){return a.S().K(f)}):e; this.G=a;this.u=b;this.Ab=c;this.Na=d;this.Mq=e;this.vD=null;this.j=new Map;this.Rj=new mE(e);this.B=a.S().experiments.bb("html5_disable_lidar")}; YQa=function(a,b,c,d,e){d=void 0===d?[]:d;var f=DQa(a.u.get(),c);f?(c=rW(a,XQa(f),f,void 0,e),b.hasOwnProperty("baseUrl")?a.Mq.send(b,c):a.Rj.send(b,c,{},d)):S("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})}; sW=function(a,b){g.cr("adsClientStateChange",b)}; tW=function(a,b){a.j.has(b.Nx())?S("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.Nx(),b)}; uW=function(a,b){a.j.delete(b.Nx())||S("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; XQa=function(a){var b=W(a.ya,"metadata_type_ad_placement_config");a=W(a.ya,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,gP:a}}; rW=function(a,b,c,d,e){var f=c?ZQa(a):{};c=c?$Qa(a,c.layoutId):{};var k=a.G.S().K("enable_macro_substitution_on_html5")?aRa(a):{},l={},m={};f=Object.assign({},hE(a.G,d),Eya(b.adPlacementConfig),(l.SLOT_POS=gE(function(){return(b.gP||0).toString()}),l),c,f,k,(m.FINAL=gE(function(){return"1"}),m.AD_CPN=gE(function(){var n; return(null==(n=a.Na.get().Cf(2))?void 0:n.clientPlaybackNonce)||""}),m)); d={};e=Object.assign({},f,e);f=g.r(Object.values(bRa));for(c=f.next();!c.done;c=f.next())c=c.value,k=e[c],null!=k&&null!=k.toString()&&(d[c]=k.toString());return d}; ZQa=function(a){var b={},c,d=null==(c=a.vD)?void 0:c.Fl/1E3;null!=d&&(b.SURVEY_ELAPSED_MS=gE(function(){return Math.round(1E3*d).toString()})); b.SURVEY_LOCAL_TIME_EPOCH_S=gE(function(){return Math.round(Date.now()/1E3).toString()}); return b}; $Qa=function(a,b){a=a.j.get(b);if(!a)return{};a=a.qG();if(!a)return{};b={};return b.YT_ERROR_CODE=a.MD.toString(),b.ERRORCODE=a.Rz.toString(),b.ERROR_MSG=a.errorMessage,b}; aRa=function(a){var b={},c=a.G.getVideoData(1);b.ASR=gE(function(){var d;return null!=(d=null==c?void 0:c.ol)?d:null}); b.EI=gE(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null}); return b}; vW=function(a,b,c){g.I.call(this);this.G=a;this.td=b;this.Da=c;this.listeners=[];this.zH=null;this.mF=new Map;b=new g.Vy(this);g.J(this,b);b.N(a,"videodatachange",this.Y_);b.N(a,"serverstitchedvideochange",this.v_);this.ir=this.Cf()}; dRa=function(a,b,c){var d=cRa(a,b,c);a.ir=d;a.listeners.forEach(function(e){e.ZP(d)})}; cRa=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,k=b.xc,l=b.title,m=b.gh,n=b.Fh,p=b.isMdxPlayback,q=b.qj,t=b.mdxEnvironment,u=b.qm,x=b.Gv,y=b.zm,z=b.Tq,D=b.videoId||"",G=b.profilePicture||"",F=b.gk||"";b=b.Zm||void 0;k=a.td.get().j.get(k)||{layoutId:null,slotId:null};var L=a.G.getVideoData(1),aa=L.dg();L=L.getPlayerResponse();c=1E3*a.G.getDuration(c);a=1E3*a.G.getDuration(1);var M,qa,ua=(null==L?void 0:null==(M=L.playerConfig)?void 0:null==(qa=M.daiConfig)?void 0:qa.enableDai)|| !1,Z,pa;M=(null==L?void 0:null==(Z=L.playerConfig)?void 0:null==(pa=Z.daiConfig)?void 0:pa.enablePreroll)||!1;return Object.assign({},k,{videoId:D,author:d,clientPlaybackNonce:e,playbackDurationMs:c,bN:a,daiEnabled:ua,kN:M,isListed:f,dg:aa,profilePicture:G,title:l,gk:F,gh:m,Fh:n,Zm:b,isMdxPlayback:p,qj:q,mdxEnvironment:t,qm:u,Gv:x,zm:y,Tq:z})}; wW=function(a,b,c){g.I.call(this);this.G=a;this.Na=b;this.Da=c;this.listeners=[];this.VA=[];this.lr=function(){S("Called 'doUnlockPreroll' before it's initialized.")}; b=new Rt(this);c=new g.Vy(this);g.J(this,c);g.J(this,b);b.N(a,"progresssync",this.YZ);b.N(a,"presentingplayerstatechange",this.PZ);b.N(a,"fullscreentoggled",this.onFullscreenToggled);b.N(a,"onVolumeChange",this.onVolumeChange);b.N(a,"minimized",this.ah);b.N(a,"resize",this.ub);c.N(a,g.mv("appad"),this.Pk)}; eRa=function(a,b){a.VA=a.VA.filter(function(c){return c!==b})}; xW=function(a,b){var c;b=null!=(c=a.Na.get().mF.get(b))?c:null;if(null===b)return S("Expected ad video start time on playback timeline"),0;a=a.G.getCurrentTime(2,!0);return a=.25*d||c)&&kX(a,"first_quartile"),(b>=.5*d||c)&&kX(a,"midpoint"),(b>=.75*d||c)&&kX(a,"third_quartile"),a=a.ma,b*=1E3,c=a.D())){for(;a.Ce&&k.Vv(p,e-d);return p}; fSa=function(a,b){var c=W(b.ya,"metadata_type_sodar_extension_data");if(c)try{jRa(0,c)}catch(d){S("Unexpected error when loading Sodar",a,b,{error:d})}}; gSa=function(a,b,c,d,e,f){SX(a,b,new g.AE(c,new g.gF),d,e,!1,f)}; SX=function(a,b,c,d,e,f,k){f=void 0===f?!0:f;gX(c)&&hX(e,0,null)&&(!RW(a,"impression")&&k&&k(),OW(a,"impression"));RW(a,"impression")&&(g.CE(c,4)&&!g.CE(c,2)&&a.Af("pause"),0>BE(c,4)&&!(0>BE(c,2))&&a.Af("resume"),g.CE(c,16)&&.5<=e&&a.Af("seek"),f&&g.CE(c,2)&&TX(a,c.state,b,d,e))}; TX=function(a,b,c,d,e,f){if(RW(a,"impression")){var k=1>=Math.abs(d-e);UX(a,b,k?d:e,c,d,f);k&&OW(a,"complete")}}; UX=function(a,b,c,d,e,f){QW(a,1E3*c);0>=e||0>=c||(null==b?0:g.U(b,16))||(null==b?0:g.U(b,32))||(hX(c,.25*e,d)&&(f&&!RW(a,"first_quartile")&&f("first"),OW(a,"first_quartile")),hX(c,.5*e,d)&&(f&&!RW(a,"midpoint")&&f("second"),OW(a,"midpoint")),hX(c,.75*e,d)&&(f&&!RW(a,"third_quartile")&&f("third"),OW(a,"third_quartile")))}; hSa=function(a,b){RW(a,"impression")&&a.Af(b?"fullscreen":"end_fullscreen")}; iSa=function(a){RW(a,"impression")&&a.Af("clickthrough")}; jSa=function(a){a.Af("active_view_measurable")}; kSa=function(a){RW(a,"impression")&&!RW(a,"seek")&&a.Af("active_view_fully_viewable_audible_half_duration")}; lSa=function(a){RW(a,"impression")&&!RW(a,"seek")&&a.Af("active_view_viewable")}; mSa=function(a){RW(a,"impression")&&!RW(a,"seek")&&a.Af("audio_audible")}; nSa=function(a){RW(a,"impression")&&!RW(a,"seek")&&a.Af("audio_measurable")}; oSa=function(a,b,c,d,e,f,k,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.qe=d;this.j=e;this.Ba=f;this.td=k;this.Ab=l;this.Yd=m;this.Da=n;this.La=p;this.Na=q;this.XB=!0;this.xc=this.u=null}; pSa=function(a,b,c){var d;a.La.get().Ai("ads_qua","cpn."+W(a.layout.ya,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Na.get().Cf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; qSa=function(a,b){var c;a.La.get().Ai("ads_imp","cpn."+W(a.layout.ya,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Na.get().Cf(2))?void 0:c.clientPlaybackNonce)+";clr."+b)}; VX=function(a){return{enterMs:W(a.ya,"metadata_type_layout_enter_ms"),exitMs:W(a.ya,"metadata_type_layout_exit_ms")}}; WX=function(a,b,c,d,e,f,k,l,m,n,p,q,t,u){PX.call(this,a,b,c,d,e,k,l,m,n,q);this.td=f;this.Yd=p;this.Ab=t;this.Da=u;this.xc=this.u=null}; rSa=function(a,b){var c;a.La.get().Ai("ads_imp","acpn."+(null==(c=a.Na.get().Cf(2))?void 0:c.clientPlaybackNonce)+";clr."+b)}; sSa=function(a,b,c){var d;a.La.get().Ai("ads_qua","cpn."+W(a.layout.ya,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Na.get().Cf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; XX=function(a,b,c,d,e,f,k,l,m,n,p,q,t,u,x,y,z,D,G){this.We=a;this.u=b;this.Na=c;this.qe=d;this.Ba=e;this.La=f;this.td=k;this.ye=l;this.Ab=m;this.Yd=n;this.ke=p;this.Yb=q;this.Cd=t;this.Rc=u;this.Ve=x;this.Cb=y;this.bf=z;this.Da=D;this.j=G}; YX=function(a){g.I.call(this);this.j=a;this.Jb=new Map}; ZX=function(a,b){for(var c=[],d=g.r(a.Jb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&QU(a.j(),c)}; $X=function(a,b){g.I.call(this);var c=this;this.C=a;this.u=new Map;this.B=new Map;this.j=null;b.get().addListener(this);g.ge(this,function(){b.get().removeListener(c)}); var d;this.j=(null==(d=b.get().ir)?void 0:d.slotId)||null}; tSa=function(a,b){var c=[];a=g.r(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c}; aY=function(a){this.G=a}; uSa=function(a,b,c,d,e){OD.call(this,"image-companion",a,b,c,d,e)}; bY=function(a,b,c,d,e,f,k,l){TW.call(this,a,b,c,d);this.La=e;this.We=f;this.J=l;this.Wi=!0;this.C=null;this.D=W(c.ya,"metadata_type_linked_player_bytes_layout_id");DU(this.We(),this);a=W(c.ya,"metadata_type_ad_placement_config");this.I=new LW(c.Ob,this.La,a,c.layoutId)}; vSa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];MW().forEach(function(b){a.push(b)}); return{je:a,wf:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; wSa=function(a,b,c,d,e){OD.call(this,"shopping-companion",a,b,c,d,e)}; cY=function(a,b,c,d,e,f,k,l){TW.call(this,a,b,c,d);this.La=e;this.We=f;this.J=l;this.Wi=!0;this.C=null;this.D=W(c.ya,"metadata_type_linked_player_bytes_layout_id");DU(this.We(),this);a=W(c.ya,"metadata_type_ad_placement_config");this.I=new LW(c.Ob,this.La,a,c.layoutId)}; xSa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];MW().forEach(function(b){a.push(b)}); return{je:a,wf:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; ySa=function(a,b,c,d,e){OD.call(this,"ads-engagement-panel",a,b,c,d,e)}; dY=function(a,b,c,d,e,f,k,l){TW.call(this,a,b,c,d);this.La=e;this.We=f;this.J=l;this.Wi=!0;this.C=null;this.D=W(c.ya,"metadata_type_linked_player_bytes_layout_id");DU(this.We(),this);a=W(c.ya,"metadata_type_ad_placement_config");this.I=new LW(c.Ob,this.La,a,c.layoutId)}; zSa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];MW().forEach(function(b){a.push(b)}); return{je:a,wf:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; ASa=function(a,b,c,d,e){this.Ub=a;this.La=b;this.We=c;this.j=d;this.Ab=e}; eY=function(a,b,c){OD.call(this,"player-underlay",a,{},b,c);this.interactionLoggingClientData=c}; fY=function(a,b,c,d){TW.call(this,a,b,c,d)}; BSa=function(a){this.Ub=a}; CSa=function(a,b,c,d){OD.call(this,"survey-interstitial",a,b,c,d)}; gY=function(a,b,c,d,e){TW.call(this,c,a,b,d);this.La=e;a=W(b.ya,"metadata_type_ad_placement_config");this.C=new LW(b.Ob,e,a,b.layoutId)}; hY=function(a){return Math.round(a.width)+"x"+Math.round(a.height)}; jY=function(a,b,c){c=void 0===c?iY:c;c.widtha.width*a.height*.2)return{MD:3,Rz:501,errorMessage:"ad("+hY(c)+") to container("+hY(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{MD:3,Rz:501,errorMessage:"ad("+hY(c)+") covers container("+hY(a)+") center."}}; DSa=function(a,b){var c=W(a.ya,"metadata_type_ad_placement_config");return new LW(a.Ob,b,c,a.layoutId)}; kY=function(a){return W(a.ya,"metadata_type_invideo_overlay_ad_renderer")}; lY=function(a,b,c,d){OD.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d}; mY=function(a,b,c,d,e,f,k,l,m,n,p,q){TW.call(this,f,a,b,e);this.La=c;this.C=k;this.Ba=l;this.Cb=m;this.Da=n;this.I=p;this.D=q;this.P=DSa(b,c)}; ESa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];MW().forEach(function(b){a.push(b)}); return{je:a,wf:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; nY=function(a,b,c,d,e,f,k,l,m,n,p,q,t){TW.call(this,f,a,b,e);this.La=c;this.C=k;this.P=l;this.Ba=m;this.Cb=n;this.Da=p;this.I=q;this.D=t;this.U=DSa(b,c)}; FSa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.r(MW()),c=b.next();!c.done;c=b.next())a.push(c.value);return{je:a,wf:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; oY=function(a){this.Ba=a;this.j=!1}; GSa=function(a,b,c){OD.call(this,"survey",a,{},b,c)}; pY=function(a,b,c,d,e,f,k){TW.call(this,c,a,b,d);this.C=e;this.Ba=f;this.Da=k}; HSa=function(a,b,c,d,e,f,k,l,m,n){this.Ub=a;this.Ba=b;this.La=c;this.C=d;this.Ab=e;this.u=f;this.B=k;this.Cb=l;this.Da=m;this.j=n}; qY=function(a){g.I.call(this);this.B=a;this.Wi=!0;this.Jb=new Map;this.j=new Map;this.u=new Map}; ISa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())(d=a.u.get(d.value.triggerId))&&c.push(d)}return c}; JSa=function(a,b,c,d,e){g.I.call(this);var f=this;this.Ra=X(function(){return new Zu}); g.J(this,this.Ra);this.eb=X(function(){return new NV(f.Ra)}); g.J(this,this.eb);this.wc=X(function(){return new HV}); g.J(this,this.wc);this.Nb=X(function(){return new DV(a)}); g.J(this,this.Nb);this.wb=X(function(){return new $V(f.Ra,f.eb,f.Da)}); g.J(this,this.wb);this.td=X(function(){return new eW}); g.J(this,this.td);this.Ve=X(function(){return new PD(b.S())}); g.J(this,this.Ve);this.Ub=X(function(){return new JX(b)}); g.J(this,this.Ub);this.Cb=X(function(){return new bV(e)}); g.J(this,this.Cb);this.Cd=X(function(){return new $E(b)}); g.J(this,this.Cd);this.Yb=X(function(){return new gW(b)}); g.J(this,this.Yb);this.ke=X(function(){return new MX(b)}); g.J(this,this.ke);this.Rc=X(function(){return new hW(b)}); g.J(this,this.Rc);this.Da=X(function(){return new iW(b)}); g.J(this,this.Da);this.Je=X(function(){return new IX(d)}); g.J(this,this.Je);this.rb=X(function(){return new pT(f.Da)}); g.J(this,this.rb);this.yd=X(function(){return new AV(f.Ra,f.wb,f.eb,f.Da,f.rb,"SLOT_TYPE_ABOVE_FEED",f.Xh)}); g.J(this,this.yd);this.bf=X(function(){return new NX(b)}); g.J(this,this.bf);this.oe=X(function(){return new OX}); g.J(this,this.oe);this.wm=X(function(){return new AW}); g.J(this,this.wm);this.Na=X(function(){return new vW(b,f.td,f.Da)}); g.J(this,this.Na);this.Tb=new dW(this.Da,this.rb,this.Na);g.J(this,this.Tb);this.ye=X(function(){return new LX(b,f.Da,f.La)}); g.J(this,this.ye);this.qe=X(function(){return new aY(b)}); g.J(this,this.qe);this.Ba=X(function(){return new wW(b,f.Na,f.Da)}); g.J(this,this.Ba);this.Yd=X(function(){return new BW}); this.Ab=X(function(){return new lW(f.Ba,b)}); g.J(this,this.Ab);this.La=X(function(){return new qW(b,f.wc,f.Ab,f.Na)}); g.J(this,this.La);this.Gg=new tX(uX,rY,function(l,m,n,p){return OV(f.eb.get(),l,m,n,p)},this.Nb,this.wb,this.eb,this.rb,this.Da,this.Na); g.J(this,this.Gg);this.Ac=new Yu(this.Nb,this.yd,c,this.Da,a,this.Na,this.Ba);g.J(this,this.Ac);var k=new fW(b,this.Ac,this.Ba,this.Na,this.ye);this.hf=X(function(){return k}); this.Qp=k;this.Xh=new sX(this.Nb,this.wb,this.hf,this.ye,this.Ba,this.Da,this.La,this.qe);g.J(this,this.Xh);this.ue=new GV(this.Nb,this.wb,this.Yb,this.hf);g.J(this,this.ue);this.Bc=new Tu(this.Nb,this.wb,this.yd,this.Na,this.ue,c);g.J(this,this.Bc);this.xg=X(function(){return new HW(f.Je,f.eb,f.rb,f.qe)}); g.J(this,this.xg);this.kd=X(function(){return new IW}); g.J(this,this.kd);this.Ke=new zX(a,this.Ub);g.J(this,this.Ke);this.tb=new AX(a);g.J(this,this.tb);this.Xq=new YX(a);g.J(this,this.Xq);this.Xe=new BX(a,this.hf);g.J(this,this.Xe);this.Ud=new CX(a,this.Yb,this.Ba,this.Na);g.J(this,this.Ud);this.Rr=new $X(a,this.Na);g.J(this,this.Rr);this.Qc=new EX(a);g.J(this,this.Qc);this.Eg=new FX(a);g.J(this,this.Eg);this.Qs=new qY(a);g.J(this,this.Qs);this.fd=X(function(){return new vX}); g.J(this,this.fd);this.Hg=X(function(){return new wX(f.Ba)}); g.J(this,this.Hg);this.sM=X(function(){return new ASa(f.Ub,f.La,a,f.wc,f.Ab)}); g.J(this,this.sM);this.wg=X(function(){return new KW(f.Bc)}); g.J(this,this.wg);this.zg=X(function(){return new SW(f.La,f.Qc,f.Ab)}); g.J(this,this.zg);this.Fg=X(function(){return new XX(a,f.Qc,f.Na,f.qe,f.Ba,f.La,f.td,f.ye,f.Ab,f.Yd,f.ke,f.Yb,f.Cd,f.Rc,f.Ve,f.Cb,f.bf,f.Da,f.wc)}); g.J(this,this.Fg);this.vQ=X(function(){return new aSa(f.Ba,f.La,f.Da)}); g.J(this,this.vQ);this.Kk=X(function(){return new HSa(f.Ub,f.Ba,f.La,f.wc,f.Ab,f.Xq,f.Qs,f.Cb,f.Da,c)}); g.J(this,this.Kk);this.VR=X(function(){return new BSa(f.Ub)}); g.J(this,this.VR);this.jF=new GX(a,this.wm,this.Ra);g.J(this,this.jF);this.Uk=new HX(a,this.oe,this.rb,this.Na,this.Ra,this.Da);g.J(this,this.Uk);this.re={qs:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Bc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Xh],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Gg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Ac],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ue]]),vn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.xg],["SLOT_TYPE_ABOVE_FEED",this.kd],["SLOT_TYPE_FORECASTING",this.kd],["SLOT_TYPE_IN_PLAYER",this.kd],["SLOT_TYPE_PLAYER_BYTES",this.kd],["SLOT_TYPE_PLAYER_UNDERLAY",this.kd],["SLOT_TYPE_PLAYBACK_TRACKING",this.kd]]),nj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ke],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Ke],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.tb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.tb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.tb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.tb], ["TRIGGER_TYPE_SLOT_ID_ENTERED",this.tb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.tb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.tb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.tb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.tb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.tb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Xq],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xe],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Ud],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.Ud],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Ud],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ud],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ud],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Ud],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Rr],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Rr],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Qc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Qc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xe],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED", this.Eg],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Qs]]),jo:new Map([["SLOT_TYPE_ABOVE_FEED",this.fd],["SLOT_TYPE_AD_BREAK_REQUEST",this.fd],["SLOT_TYPE_FORECASTING",this.fd],["SLOT_TYPE_IN_PLAYER",this.fd],["SLOT_TYPE_PLAYER_BYTES",this.Hg],["SLOT_TYPE_PLAYER_UNDERLAY",this.fd],["SLOT_TYPE_PLAYBACK_TRACKING",this.fd]]),Ln:new Map([["SLOT_TYPE_ABOVE_FEED",this.sM],["SLOT_TYPE_AD_BREAK_REQUEST",this.wg],["SLOT_TYPE_FORECASTING",this.zg],["SLOT_TYPE_PLAYER_BYTES",this.Fg],["SLOT_TYPE_PLAYBACK_TRACKING", this.vQ],["SLOT_TYPE_IN_PLAYER",this.Kk],["SLOT_TYPE_PLAYER_UNDERLAY",this.VR]])};this.listeners=[this.wc.get()];this.Pr={Bc:this.Bc,Ml:this.Qc,Nn:this.oe.get(),ph:this.Da.get(),Ta:this.Cb.get(),Xp:this.Ba.get(),Ac:this.Ac,Jk:this.Ra.get(),Mn:this.wm.get(),Jj:this.Ke,xi:this.wc.get(),Tk:this.Na.get()}}; KSa=function(a,b,c,d,e,f,k,l,m,n){this.Ub=a;this.Ba=b;this.La=c;this.C=d;this.Ab=e;this.u=f;this.B=k;this.Cb=l;this.Da=m;this.j=n}; LSa=function(a,b,c,d,e){g.I.call(this);var f=this;this.Ra=X(function(){return new Zu}); g.J(this,this.Ra);this.eb=X(function(){return new NV(f.Ra)}); g.J(this,this.eb);this.wc=X(function(){return new HV}); g.J(this,this.wc);this.Nb=X(function(){return new DV(a)}); g.J(this,this.Nb);this.wb=X(function(){return new $V(f.Ra,f.eb,f.Da)}); g.J(this,this.wb);this.td=X(function(){return new eW}); g.J(this,this.td);this.Ve=X(function(){return new PD(b.S())}); g.J(this,this.Ve);this.Ub=X(function(){return new JX(b)}); g.J(this,this.Ub);this.Cb=X(function(){return new bV(e)}); g.J(this,this.Cb);this.Cd=X(function(){return new $E(b)}); g.J(this,this.Cd);this.Yb=X(function(){return new gW(b)}); g.J(this,this.Yb);this.ke=X(function(){return new MX(b)}); g.J(this,this.ke);this.Rc=X(function(){return new hW(b)}); g.J(this,this.Rc);this.Da=X(function(){return new iW(b)}); g.J(this,this.Da);this.Je=X(function(){return new IX(d)}); g.J(this,this.Je);this.rb=X(function(){return new pT(f.Da)}); g.J(this,this.rb);this.yd=X(function(){return new AV(f.Ra,f.wb,f.eb,f.Da,f.rb,null,f.Xh)}); g.J(this,this.yd);this.bf=X(function(){return new NX(b)}); g.J(this,this.bf);this.oe=X(function(){return new OX}); g.J(this,this.oe);this.wm=X(function(){return new AW}); g.J(this,this.wm);this.Na=X(function(){return new vW(b,f.td,f.Da)}); g.J(this,this.Na);this.Tb=new dW(this.Da,this.rb,this.Na);g.J(this,this.Tb);this.ye=X(function(){return new LX(b,f.Da,f.La)}); this.Ba=X(function(){return new wW(b,f.Na,f.Da)}); g.J(this,this.Ba);this.Ab=X(function(){return new lW(f.Ba,b)}); g.J(this,this.Ab);this.La=X(function(){return new qW(b,f.wc,f.Ab,f.Na)}); g.J(this,this.La);this.Yd=X(function(){return new BW}); g.J(this,this.Yd);this.Gg=new tX(uX,rY,function(l,m,n,p){return OV(f.eb.get(),l,m,n,p)},this.Nb,this.wb,this.eb,this.rb,this.Da,this.Na); g.J(this,this.Gg);this.Ac=new Yu(this.Nb,this.yd,c,this.Da,a,this.Na,this.Ba);g.J(this,this.Ac);var k=new fW(b,this.Ac,this.Ba,this.Na,this.ye);this.hf=X(function(){return k}); this.Qp=k;this.Xh=new sX(this.Nb,this.wb,this.hf,this.ye,this.Ba,this.Da,this.La);g.J(this,this.Xh);this.ue=new GV(this.Nb,this.wb,this.Yb,this.hf);g.J(this,this.ue);this.Bc=new Tu(this.Nb,this.wb,this.yd,this.Na,this.ue,c);g.J(this,this.Bc);this.xg=X(function(){return new HW(f.Je,f.eb,f.rb)}); g.J(this,this.xg);this.kd=X(function(){return new IW}); g.J(this,this.kd);this.Ke=new zX(a,this.Ub);g.J(this,this.Ke);this.tb=new AX(a);g.J(this,this.tb);this.Xq=new YX(a);g.J(this,this.Xq);this.Xe=new BX(a,this.hf);g.J(this,this.Xe);this.Ud=new CX(a,this.Yb,this.Ba,this.Na);g.J(this,this.Ud);this.Qc=new EX(a);g.J(this,this.Qc);this.Eg=new FX(a);g.J(this,this.Eg);this.Qs=new qY(a);g.J(this,this.Qs);this.fd=X(function(){return new vX}); g.J(this,this.fd);this.Hg=X(function(){return new wX(f.Ba)}); g.J(this,this.Hg);this.wg=X(function(){return new KW(f.Bc)}); g.J(this,this.wg);this.zg=X(function(){return new SW(f.La,f.Qc,f.Ab)}); g.J(this,this.zg);this.Kk=X(function(){return new KSa(f.Ub,f.Ba,f.La,f.wc,f.Ab,f.Xq,f.Qs,f.Cb,f.Da,c)}); g.J(this,this.Kk);this.Fg=X(function(){return new rX(a,f.Qc,f.La,f.Ab,f.Yd,f.ke,f.Na,f.Ba,f.Yb,f.Cd,f.Rc,f.Ve,f.Cb,f.bf,f.Da)}); g.J(this,this.Fg);this.jF=new GX(a,this.wm,this.Ra);g.J(this,this.jF);this.Uk=new HX(a,this.oe,this.rb,this.Na,this.Ra,this.Da);g.J(this,this.Uk);this.re={qs:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Bc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Xh],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Gg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Ac],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ue]]),vn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.xg],["SLOT_TYPE_FORECASTING",this.kd],["SLOT_TYPE_IN_PLAYER",this.kd],["SLOT_TYPE_PLAYER_BYTES",this.kd]]),nj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ke],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.tb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.tb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.tb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.tb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.tb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.tb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.tb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY", this.tb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.tb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.tb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Xq],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xe],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ud],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ud],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Ud],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Qc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Qc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Xe],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Eg],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Qs]]),jo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fd],["SLOT_TYPE_FORECASTING",this.fd],["SLOT_TYPE_IN_PLAYER",this.fd],["SLOT_TYPE_PLAYER_BYTES",this.Hg]]),Ln:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wg],["SLOT_TYPE_FORECASTING",this.zg],["SLOT_TYPE_IN_PLAYER",this.Kk],["SLOT_TYPE_PLAYER_BYTES",this.Fg]])};this.listeners=[this.wc.get()];this.Pr={Bc:this.Bc,Ml:null,Nn:this.oe.get(), ph:this.Da.get(),Ta:this.Cb.get(),Xp:this.Ba.get(),Ac:this.Ac,Jk:this.Ra.get(),Mn:this.wm.get(),Jj:this.Ke,xi:this.wc.get(),Tk:this.Na.get()}}; MSa=function(a,b,c,d,e){g.I.call(this);var f=this;this.Ra=X(function(){return new Zu}); g.J(this,this.Ra);this.eb=X(function(){return new NV(f.Ra)}); g.J(this,this.eb);this.wc=X(function(){return new HV}); g.J(this,this.wc);this.Nb=X(function(){return new DV(a)}); g.J(this,this.Nb);this.wb=X(function(){return new $V(f.Ra,f.eb,f.Da)}); g.J(this,this.wb);this.td=X(function(){return new eW}); g.J(this,this.td);this.Ve=X(function(){return new PD(b.S())}); g.J(this,this.Ve);this.Ub=X(function(){return new JX(b)}); g.J(this,this.Ub);this.Cb=X(function(){return new bV(e)}); g.J(this,this.Cb);this.Cd=X(function(){return new $E(b)}); g.J(this,this.Cd);this.Yb=X(function(){return new gW(b)}); g.J(this,this.Yb);this.ke=X(function(){return new MX(b)}); g.J(this,this.ke);this.Rc=X(function(){return new hW(b)}); g.J(this,this.Rc);this.Da=X(function(){return new iW(b)}); g.J(this,this.Da);this.Je=X(function(){return new IX(d)}); g.J(this,this.Je);this.rb=X(function(){return new pT(f.Da)}); g.J(this,this.rb);this.yd=X(function(){return new AV(f.Ra,f.wb,f.eb,f.Da,f.rb,null,null)}); g.J(this,this.yd);this.bf=X(function(){return new NX(b)}); g.J(this,this.bf);this.oe=X(function(){return new OX}); g.J(this,this.oe);this.Na=X(function(){return new vW(b,f.td,f.Da)}); g.J(this,this.Na);this.Tb=new dW(this.Da,this.rb,this.Na);g.J(this,this.Tb);this.Ba=X(function(){return new wW(b,f.Na,f.Da)}); g.J(this,this.Ba);this.Ab=X(function(){return new lW(f.Ba,b)}); g.J(this,this.Ab);this.La=X(function(){return new qW(b,f.wc,f.Ab,f.Na)}); g.J(this,this.La);this.Yd=X(function(){return new BW}); g.J(this,this.Yd);this.Gg=new tX(uX,rY,function(l,m,n,p){return OV(f.eb.get(),l,m,n,p)},this.Nb,this.wb,this.eb,this.rb,this.Da,this.Na); g.J(this,this.Gg);this.Ac=new Yu(this.Nb,this.yd,c,this.Da,a,this.Na,this.Ba);g.J(this,this.Ac);var k=new fW(b,this.Ac,this.Ba,this.Na);this.hf=X(function(){return k}); this.Qp=k;this.ue=new GV(this.Nb,this.wb,this.Yb,this.hf);g.J(this,this.ue);this.Bc=new Tu(this.Nb,this.wb,this.yd,this.Na,this.ue,c);g.J(this,this.Bc);this.xg=X(function(){return new HW(f.Je,f.eb,f.rb)}); g.J(this,this.xg);this.kd=X(function(){return new IW}); g.J(this,this.kd);this.Ke=new zX(a,this.Ub);g.J(this,this.Ke);this.tb=new AX(a);g.J(this,this.tb);this.Xe=new BX(a,this.hf);g.J(this,this.Xe);this.Ud=new CX(a,this.Yb,this.Ba,this.Na);g.J(this,this.Ud);this.Qc=new EX(a);g.J(this,this.Qc);this.Eg=new FX(a);g.J(this,this.Eg);this.fd=X(function(){return new vX}); g.J(this,this.fd);this.Hg=X(function(){return new wX(f.Ba)}); g.J(this,this.Hg);this.wg=X(function(){return new KW(f.Bc)}); g.J(this,this.wg);this.zg=X(function(){return new SW(f.La,f.Qc,f.Ab)}); g.J(this,this.zg);this.qQ=X(function(){return new $W(f.Ub,f.Ba,f.La,f.wc,c)}); g.J(this,this.qQ);this.Fg=X(function(){return new rX(a,f.Qc,f.La,f.Ab,f.Yd,f.ke,f.Na,f.Ba,f.Yb,f.Cd,f.Rc,f.Ve,f.Cb,f.bf,f.Da)}); g.J(this,this.Fg);this.Uk=new HX(a,this.oe,this.rb,this.Na,this.Ra,this.Da);g.J(this,this.Uk);this.re={qs:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Bc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Gg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Ac],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ue]]),vn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xg],["SLOT_TYPE_FORECASTING",this.kd],["SLOT_TYPE_IN_PLAYER",this.kd],["SLOT_TYPE_PLAYER_BYTES", this.kd]]),nj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ke],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.tb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.tb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.tb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.tb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.tb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.tb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.tb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.tb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.tb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.Xe],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ud],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ud],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Qc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Qc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xe],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Eg]]),jo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fd],["SLOT_TYPE_ABOVE_FEED",this.fd],["SLOT_TYPE_FORECASTING",this.fd],["SLOT_TYPE_IN_PLAYER",this.fd],["SLOT_TYPE_PLAYER_BYTES", this.Hg]]),Ln:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wg],["SLOT_TYPE_FORECASTING",this.zg],["SLOT_TYPE_IN_PLAYER",this.qQ],["SLOT_TYPE_PLAYER_BYTES",this.Fg]])};this.listeners=[this.wc.get()];this.Pr={Bc:this.Bc,Ml:null,Nn:this.oe.get(),ph:this.Da.get(),Ta:this.Cb.get(),Xp:this.Ba.get(),Ac:this.Ac,Jk:this.Ra.get(),Mn:null,Jj:this.Ke,xi:this.wc.get(),Tk:this.Na.get()}}; NSa=function(a,b,c,d,e){g.I.call(this);var f=this;this.Ra=X(function(){return new Zu}); g.J(this,this.Ra);this.eb=X(function(){return new NV(f.Ra)}); g.J(this,this.eb);this.wc=X(function(){return new HV}); g.J(this,this.wc);this.Nb=X(function(){return new DV(a)}); g.J(this,this.Nb);this.wb=X(function(){return new $V(f.Ra,f.eb,f.Da)}); g.J(this,this.wb);this.td=X(function(){return new eW}); g.J(this,this.td);this.Ve=X(function(){return new PD(b.S())}); g.J(this,this.Ve);this.Ub=X(function(){return new JX(b)}); g.J(this,this.Ub);this.Cb=X(function(){return new bV(e)}); g.J(this,this.Cb);this.Cd=X(function(){return new $E(b)}); g.J(this,this.Cd);this.Yb=X(function(){return new gW(b)}); g.J(this,this.Yb);this.ke=X(function(){return new MX(b)}); g.J(this,this.ke);this.Rc=X(function(){return new hW(b)}); g.J(this,this.Rc);this.Da=X(function(){return new iW(b)}); g.J(this,this.Da);this.Je=X(function(){return new IX(d)}); g.J(this,this.Je);this.rb=X(function(){return new pT(f.Da)}); g.J(this,this.rb);this.yd=X(function(){return new AV(f.Ra,f.wb,f.eb,f.Da,f.rb,null,null)}); g.J(this,this.yd);this.bf=X(function(){return new NX(b)}); g.J(this,this.bf);this.oe=X(function(){return new OX}); g.J(this,this.oe);this.Na=X(function(){return new vW(b,f.td,f.Da)}); g.J(this,this.Na);this.Tb=new dW(this.Da,this.rb,this.Na);g.J(this,this.Tb);this.Ba=X(function(){return new wW(b,f.Na,f.Da)}); g.J(this,this.Ba);this.Ab=X(function(){return new lW(f.Ba,b)}); g.J(this,this.Ab);this.La=X(function(){return new qW(b,f.wc,f.Ab,f.Na)}); g.J(this,this.La);this.Yd=X(function(){return new BW}); g.J(this,this.Yd);this.Gg=new tX(uX,rY,function(l,m,n,p){return OV(f.eb.get(),l,m,n,p)},this.Nb,this.wb,this.eb,this.rb,this.Da,this.Na); g.J(this,this.Gg);this.Ac=new Yu(this.Nb,this.yd,c,this.Da,a,this.Na,this.Ba);g.J(this,this.Ac);var k=new fW(b,this.Ac,this.Ba,this.Na);this.hf=X(function(){return k}); this.Qp=k;this.ue=new GV(this.Nb,this.wb,this.Yb,this.hf);g.J(this,this.ue);this.Bc=new Tu(this.Nb,this.wb,this.yd,this.Na,this.ue,c);g.J(this,this.Bc);this.xg=X(function(){return new HW(f.Je,f.eb,f.rb)}); g.J(this,this.xg);this.kd=X(function(){return new IW}); g.J(this,this.kd);this.Ke=new zX(a,this.Ub);g.J(this,this.Ke);this.tb=new AX(a);g.J(this,this.tb);this.Xe=new BX(a,this.hf);g.J(this,this.Xe);this.Ud=new CX(a,this.Yb,this.Ba,this.Na);g.J(this,this.Ud);this.Qc=new EX(a);g.J(this,this.Qc);this.Eg=new FX(a);g.J(this,this.Eg);this.fd=X(function(){return new vX}); g.J(this,this.fd);this.Hg=X(function(){return new wX(f.Ba)}); g.J(this,this.Hg);this.wg=X(function(){return new KW(f.Bc)}); g.J(this,this.wg);this.zg=X(function(){return new SW(f.La,f.Qc,f.Ab)}); g.J(this,this.zg);this.Kk=X(function(){return new $W(f.Ub,f.Ba,f.La,f.wc,c)}); g.J(this,this.Kk);this.Fg=X(function(){return new rX(a,f.Qc,f.La,f.Ab,f.Yd,f.ke,f.Na,f.Ba,f.Yb,f.Cd,f.Rc,f.Ve,f.Cb,f.bf,f.Da)}); g.J(this,this.Fg);this.Uk=new HX(a,this.oe,this.rb,this.Na,this.Ra,this.Da);g.J(this,this.Uk);this.re={qs:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Bc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Gg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Ac],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ue]]),vn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xg],["SLOT_TYPE_FORECASTING",this.kd],["SLOT_TYPE_IN_PLAYER",this.kd],["SLOT_TYPE_PLAYER_BYTES", this.kd]]),nj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ke],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.tb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.tb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.tb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.tb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.tb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.tb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.tb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.tb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.tb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.Xe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ud],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Qc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Qc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xe],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Eg]]),jo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fd],["SLOT_TYPE_FORECASTING",this.fd],["SLOT_TYPE_IN_PLAYER",this.fd],["SLOT_TYPE_PLAYER_BYTES",this.Hg]]),Ln:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wg],["SLOT_TYPE_FORECASTING", this.zg],["SLOT_TYPE_IN_PLAYER",this.Kk],["SLOT_TYPE_PLAYER_BYTES",this.Fg]])};this.listeners=[this.wc.get()];this.Pr={Bc:this.Bc,Ml:null,Nn:this.oe.get(),ph:this.Da.get(),Ta:this.Cb.get(),Xp:this.Ba.get(),Ac:this.Ac,Jk:this.Ra.get(),Mn:null,Jj:this.Ke,xi:this.wc.get(),Tk:this.Na.get()}}; sY=function(a,b,c,d,e,f,k,l,m){YW.call(this,a,b,c,d,e,f,k,m);this.wk=l}; OSa=function(){var a=xRa();a.je.push("metadata_type_ad_info_ad_metadata");return a}; PSa=function(a,b,c,d,e,f){this.Ub=a;this.Ba=b;this.La=c;this.u=d;this.wk=e;this.j=f}; QSa=function(a,b,c,d,e){g.I.call(this);var f=this;this.Ra=X(function(){return new Zu}); g.J(this,this.Ra);this.eb=X(function(){return new NV(f.Ra)}); g.J(this,this.eb);this.wc=X(function(){return new HV}); g.J(this,this.wc);this.Nb=X(function(){return new DV(a)}); g.J(this,this.Nb);this.wb=X(function(){return new $V(f.Ra,f.eb,f.Da)}); g.J(this,this.wb);this.td=X(function(){return new eW}); g.J(this,this.td);this.wk=X(function(){return new ZRa(b)}); g.J(this,this.wk);this.Ve=X(function(){return new PD(b.S())}); g.J(this,this.Ve);this.Ub=X(function(){return new JX(b)}); g.J(this,this.Ub);this.Cb=X(function(){return new bV(e)}); g.J(this,this.Cb);this.Cd=X(function(){return new $E(b)}); g.J(this,this.Cd);this.Yb=X(function(){return new gW(b)}); g.J(this,this.Yb);this.ke=X(function(){return new MX(b)}); g.J(this,this.ke);this.Rc=X(function(){return new hW(b)}); g.J(this,this.Rc);this.Da=X(function(){return new iW(b)}); g.J(this,this.Da);this.Je=X(function(){return new IX(d)}); g.J(this,this.Je);this.rb=X(function(){return new pT(f.Da)}); g.J(this,this.rb);this.yd=X(function(){return new AV(f.Ra,f.wb,f.eb,f.Da,f.rb,null,null)}); g.J(this,this.yd);this.bf=X(function(){return new NX(b)}); g.J(this,this.bf);this.oe=X(function(){return new OX}); g.J(this,this.oe);this.Na=X(function(){return new vW(b,f.td,f.Da)}); g.J(this,this.Na);this.Tb=new dW(this.Da,this.rb,this.Na);g.J(this,this.Tb);this.Ba=X(function(){return new wW(b,f.Na,f.Da)}); g.J(this,this.Ba);this.Ab=X(function(){return new lW(f.Ba,b)}); g.J(this,this.Ab);this.La=X(function(){return new qW(b,f.wc,f.Ab,f.Na)}); g.J(this,this.La);this.Yd=X(function(){return new BW}); g.J(this,this.Yd);this.Gg=new tX(LRa,rY,function(l,m,n,p){return IQa(f.eb.get(),l,m,n,p)},this.Nb,this.wb,this.eb,this.rb,this.Da,this.Na); g.J(this,this.Gg);this.Ac=new Yu(this.Nb,this.yd,c,this.Da,a,this.Na,this.Ba);g.J(this,this.Ac);var k=new fW(b,this.Ac,this.Ba,this.Na);this.hf=X(function(){return k}); this.Qp=k;this.ue=new GV(this.Nb,this.wb,this.Yb,this.hf);g.J(this,this.ue);this.Bc=new Tu(this.Nb,this.wb,this.yd,this.Na,this.ue,c);g.J(this,this.Bc);this.xg=X(function(){return new HW(f.Je,f.eb,f.rb)}); g.J(this,this.xg);this.kd=X(function(){return new IW}); g.J(this,this.kd);this.Ke=new zX(a,this.Ub);g.J(this,this.Ke);this.tb=new AX(a);g.J(this,this.tb);this.Xe=new BX(a,this.hf);g.J(this,this.Xe);this.Ud=new CX(a,this.Yb,this.Ba,this.Na);g.J(this,this.Ud);this.Qc=new EX(a);g.J(this,this.Qc);this.Eg=new FX(a);g.J(this,this.Eg);this.fd=X(function(){return new vX}); g.J(this,this.fd);this.Hg=X(function(){return new wX(f.Ba)}); g.J(this,this.Hg);this.wg=X(function(){return new KW(f.Bc)}); g.J(this,this.wg);this.zg=X(function(){return new SW(f.La,f.Qc,f.Ab)}); g.J(this,this.zg);this.Fg=X(function(){return new rX(a,f.Qc,f.La,f.Ab,f.Yd,f.ke,f.Na,f.Ba,f.Yb,f.Cd,f.Rc,f.Ve,f.Cb,f.bf,f.Da)}); g.J(this,this.Fg);this.lS=X(function(){return new PSa(f.Ub,f.Ba,f.La,f.wc,f.wk,c)}); g.J(this,this.lS);this.Uk=new HX(a,this.oe,this.rb,this.Na,this.Ra,this.Da);g.J(this,this.Uk);this.re={qs:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Bc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Gg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Ac],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ue]]),vn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xg],["SLOT_TYPE_FORECASTING",this.kd],["SLOT_TYPE_IN_PLAYER",this.kd],["SLOT_TYPE_PLAYER_BYTES", this.kd]]),nj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ke],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.tb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.tb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.tb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.tb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.tb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.tb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.tb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.tb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.tb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.Xe],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ud],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ud],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Qc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Qc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xe],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Eg]]),jo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fd],["SLOT_TYPE_FORECASTING",this.fd],["SLOT_TYPE_IN_PLAYER",this.fd],["SLOT_TYPE_PLAYER_BYTES",this.Hg]]),Ln:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.wg],["SLOT_TYPE_FORECASTING",this.zg],["SLOT_TYPE_IN_PLAYER",this.lS],["SLOT_TYPE_PLAYER_BYTES",this.Fg]])};this.listeners=[this.wc.get()];this.Pr={Bc:this.Bc,Ml:null,Nn:this.oe.get(),ph:this.Da.get(),Ta:this.Cb.get(),Xp:this.Ba.get(),Ac:this.Ac,Jk:this.Ra.get(),Mn:null,Jj:this.Ke,xi:this.wc.get(),Tk:this.Na.get()}}; RSa=function(a,b,c,d,e,f){this.Ub=a;this.Ba=b;this.La=c;this.u=d;this.wk=e;this.j=f}; SSa=function(a,b,c,d,e){g.I.call(this);var f=this;this.Ra=X(function(){return new Zu}); g.J(this,this.Ra);this.eb=X(function(){return new NV(f.Ra)}); g.J(this,this.eb);this.wc=X(function(){return new HV}); g.J(this,this.wc);this.Nb=X(function(){return new DV(a)}); g.J(this,this.Nb);this.wb=X(function(){return new $V(f.Ra,f.eb,f.Da)}); g.J(this,this.wb);this.td=X(function(){return new eW}); g.J(this,this.td);this.wk=X(function(){return new ZRa(b)}); g.J(this,this.wk);this.Ve=X(function(){return new PD(b.S())}); g.J(this,this.Ve);this.Ub=X(function(){return new JX(b)}); g.J(this,this.Ub);this.Cb=X(function(){return new bV(e)}); g.J(this,this.Cb);this.Cd=X(function(){return new $E(b)}); g.J(this,this.Cd);this.Yb=X(function(){return new gW(b)}); g.J(this,this.Yb);this.ke=X(function(){return new MX(b)}); g.J(this,this.ke);this.Rc=X(function(){return new hW(b)}); g.J(this,this.Rc);this.Da=X(function(){return new iW(b)}); g.J(this,this.Da);this.Je=X(function(){return new IX(d)}); g.J(this,this.Je);this.rb=X(function(){return new pT(f.Da)}); g.J(this,this.rb);this.yd=X(function(){return new AV(f.Ra,f.wb,f.eb,f.Da,f.rb,null,f.Xh,3)}); g.J(this,this.yd);this.bf=X(function(){return new NX(b)}); g.J(this,this.bf);this.oe=X(function(){return new OX}); g.J(this,this.oe);this.Na=X(function(){return new vW(b,f.td,f.Da)}); g.J(this,this.Na);this.Tb=new dW(this.Da,this.rb,this.Na);g.J(this,this.Tb);this.ye=X(function(){return new LX(b,f.Da,f.La)}); g.J(this,this.ye);this.qe=X(function(){return new aY(b)}); g.J(this,this.qe);this.Ba=X(function(){return new wW(b,f.Na,f.Da)}); g.J(this,this.Ba);this.Yd=X(function(){return new BW}); this.Ab=X(function(){return new lW(f.Ba,b)}); g.J(this,this.Ab);this.La=X(function(){return new qW(b,f.wc,f.Ab,f.Na)}); g.J(this,this.La);this.Ac=new Yu(this.Nb,this.yd,c,this.Da,a,this.Na,this.Ba);g.J(this,this.Ac);var k=new fW(b,this.Ac,this.Ba,this.Na,this.ye);this.hf=X(function(){return k}); this.Qp=k;this.Gg=new tX(MRa,rY,function(l,m,n,p){return IQa(f.eb.get(),l,m,n,p)},this.Nb,this.wb,this.eb,this.rb,this.Da,this.Na); g.J(this,this.Gg);this.Xh=new sX(this.Nb,this.wb,this.hf,this.ye,this.Ba,this.Da,this.La,this.qe);g.J(this,this.Xh);this.ue=new GV(this.Nb,this.wb,this.Yb,this.hf);g.J(this,this.ue);this.Bc=new Tu(this.Nb,this.wb,this.yd,this.Na,this.ue,c);g.J(this,this.Bc);this.xg=X(function(){return new HW(f.Je,f.eb,f.rb,f.qe)}); g.J(this,this.xg);this.kd=X(function(){return new IW}); g.J(this,this.kd);this.Ke=new zX(a,this.Ub);g.J(this,this.Ke);this.tb=new AX(a);g.J(this,this.tb);this.Xe=new BX(a,this.hf);g.J(this,this.Xe);this.Ud=new CX(a,this.Yb,this.Ba,this.Na);g.J(this,this.Ud);this.Rr=new $X(a,this.Na);g.J(this,this.Rr);this.Qc=new EX(a);g.J(this,this.Qc);this.Eg=new FX(a);g.J(this,this.Eg);this.fd=X(function(){return new vX}); g.J(this,this.fd);this.Hg=X(function(){return new wX(f.Ba)}); g.J(this,this.Hg);this.wg=X(function(){return new KW(f.Bc)}); g.J(this,this.wg);this.zg=X(function(){return new SW(f.La,f.Qc,f.Ab)}); g.J(this,this.zg);this.Fg=X(function(){return new XX(a,f.Qc,f.Na,f.qe,f.Ba,f.La,f.td,f.ye,f.Ab,f.Yd,f.ke,f.Yb,f.Cd,f.Rc,f.Ve,f.Cb,f.bf,f.Da,f.wc)}); g.J(this,this.Fg);this.Kk=X(function(){return new RSa(f.Ub,f.Ba,f.La,f.wc,f.wk,c)}); g.J(this,this.Kk);this.Uk=new HX(a,this.oe,this.rb,this.Na,this.Ra,this.Da);g.J(this,this.Uk);this.re={qs:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Bc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Xh],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Gg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Ac],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ue]]),vn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xg],["SLOT_TYPE_FORECASTING",this.kd], ["SLOT_TYPE_IN_PLAYER",this.kd],["SLOT_TYPE_PLAYER_BYTES",this.kd]]),nj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ke],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.tb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.tb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.tb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.tb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.tb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.tb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.tb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.tb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED", this.tb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xe],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ud],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ud],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Rr],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Rr],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Qc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Qc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xe],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Eg]]),jo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.fd],["SLOT_TYPE_FORECASTING",this.fd],["SLOT_TYPE_IN_PLAYER",this.fd],["SLOT_TYPE_PLAYER_BYTES",this.Hg]]),Ln:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wg],["SLOT_TYPE_FORECASTING",this.zg],["SLOT_TYPE_PLAYER_BYTES",this.Fg],["SLOT_TYPE_IN_PLAYER",this.Kk]])};this.listeners=[this.wc.get()];this.Pr={Bc:this.Bc,Ml:null,Nn:this.oe.get(),ph:this.Da.get(),Ta:this.Cb.get(),Xp:this.Ba.get(),Ac:this.Ac,Jk:this.Ra.get(),Mn:null,Jj:this.Ke,xi:this.wc.get(),Tk:this.Na.get()}}; tY=function(a,b,c,d){g.I.call(this);var e=this;this.j=TSa(function(){return e.u},a,b,c,d); g.J(this,this.j);this.u=(new $U(this.j)).B();g.J(this,this.u)}; uY=function(a){return a.j.Pr}; TSa=function(a,b,c,d,e){try{var f=b.S();if(g.gB(f))var k=new JSa(a,b,c,d,e);else if(g.jB(f))k=new LSa(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===WA(f))k=new NSa(a,b,c,d,e);else if(ZA(f))k=new MSa(a,b,c,d,e);else if(g.RA(f))k=new QSa(a,b,c,d,e);else if(g.QA(f))k=new SSa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return k}catch(l){return k=b.S(),S("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:k.deviceParams.cplatform,interface:k.deviceParams.c, tka:k.deviceParams.cver,ska:k.deviceParams.ctheme,rka:k.deviceParams.cplayer,Lka:k.playerStyle}),new iRa(a,b,c,d,e)}}; vY=function(a,b){this.j=a;this.Ml=b}; wY=function(a){EG.call(this,a)}; xY=function(a,b,c,d,e,f){MG.call(this,a,b,{F:"div",L:"ytp-ad-timed-pie-countdown-container",R:[{F:"svg",L:"ytp-ad-timed-pie-countdown",T:{viewBox:"0 0 20 20"},R:[{F:"circle",L:"ytp-ad-timed-pie-countdown-background",T:{r:"10",cx:"10",cy:"10"}},{F:"circle",L:"ytp-ad-timed-pie-countdown-inner",T:{r:"5",cx:"10",cy:"10"}},{F:"circle",L:"ytp-ad-timed-pie-countdown-outer",T:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e,f);this.B=this.va("ytp-ad-timed-pie-countdown-inner");this.u=Math.ceil(10* Math.PI);this.hide()}; yY=function(a,b,c,d,e,f,k){fG.call(this,a,b,{F:"div",L:"ytp-ad-action-interstitial",T:{tabindex:"0"},R:[{F:"div",L:"ytp-ad-action-interstitial-background-container"},{F:"div",L:"ytp-ad-action-interstitial-slot",R:[{F:"div",L:"ytp-ad-action-interstitial-card",R:[{F:"div",L:"ytp-ad-action-interstitial-image-container"},{F:"div",L:"ytp-ad-action-interstitial-headline-container"},{F:"div",L:"ytp-ad-action-interstitial-description-container"},{F:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]}, "ad-action-interstitial",c,d,e);this.wJ=f;this.pD=k;this.navigationEndpoint=this.j=this.skipButton=this.u=this.actionButton=null;this.Ca=this.va("ytp-ad-action-interstitial-image-container");this.C=new AG(this.api,this.Xa,this.layoutId,this.interactionLoggingClientData,this.Ta,"ytp-ad-action-interstitial-image");g.J(this,this.C);this.C.ra(this.Ca);this.xa=this.va("ytp-ad-action-interstitial-headline-container");this.J=new KG(this.api,this.Xa,this.layoutId,this.interactionLoggingClientData,this.Ta, "ytp-ad-action-interstitial-headline");g.J(this,this.J);this.J.ra(this.xa);this.ma=this.va("ytp-ad-action-interstitial-description-container");this.D=new KG(this.api,this.Xa,this.layoutId,this.interactionLoggingClientData,this.Ta,"ytp-ad-action-interstitial-description");g.J(this,this.D);this.D.ra(this.ma);this.Ka=this.va("ytp-ad-action-interstitial-background-container");this.U=new AG(this.api,this.Xa,this.layoutId,this.interactionLoggingClientData,this.Ta,"ytp-ad-action-interstitial-background", !0);g.J(this,this.U);this.U.ra(this.Ka);this.Ga=this.va("ytp-ad-action-interstitial-action-button-container");this.B=new Rt;g.J(this,this.B);this.hide()}; USa=function(a){var b=g.dg("html5-video-player");b&&g.N(b,"ytp-ad-display-override",a)}; zY=function(a,b,c,d,e){fG.call(this,a,b,{F:"div",L:"ytp-ad-overlay-slot",R:[{F:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d,e);this.J=[];this.Sa=this.xa=this.C=this.Ga=this.ma=null;this.Ka=!1;this.D=null;this.U=0;a=this.va("ytp-ad-overlay-container");this.Ca=new VG(a,45E3,6E3,.3,.4);g.J(this,this.Ca);this.B=VSa(this);g.J(this,this.B);this.B.ra(a);this.u=WSa(this);g.J(this,this.u);this.u.ra(a);this.j=XSa(this);g.J(this,this.j);this.j.ra(a);this.hide()}; VSa=function(a){var b=new g.eG({F:"div",L:"ytp-ad-text-overlay",R:[{F:"div",L:"ytp-ad-overlay-ad-info-button-container"},{F:"div",L:"ytp-ad-overlay-close-container",R:[{F:"button",L:"ytp-ad-overlay-close-button",R:[tG(AY)]}]},{F:"div",L:"ytp-ad-overlay-title",X:"{{title}}"},{F:"div",L:"ytp-ad-overlay-desc",X:"{{description}}"},{F:"div",Aa:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],X:"{{displayUrl}}"}]});a.N(b.va("ytp-ad-overlay-title"),"click",function(c){return BY(a,b.element,c)}); a.N(b.va("ytp-ad-overlay-link"),"click",function(c){return BY(a,b.element,c)}); a.N(b.va("ytp-ad-overlay-close-container"),"click",a.Mj);b.hide();return b}; WSa=function(a){var b=new g.eG({F:"div",Aa:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],R:[{F:"div",L:"ytp-ad-overlay-ad-info-button-container"},{F:"div",L:"ytp-ad-overlay-close-container",R:[{F:"button",L:"ytp-ad-overlay-close-button",R:[tG(AY)]}]},{F:"div",L:"ytp-ad-overlay-text-image",R:[{F:"img",T:{src:"{{imageUrl}}"}}]},{F:"div",L:"ytp-ad-overlay-title",X:"{{title}}"},{F:"div",L:"ytp-ad-overlay-desc",X:"{{description}}"},{F:"div",Aa:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], X:"{{displayUrl}}"}]});a.N(b.va("ytp-ad-overlay-title"),"click",function(c){return BY(a,b.element,c)}); a.N(b.va("ytp-ad-overlay-link"),"click",function(c){return BY(a,b.element,c)}); a.N(b.va("ytp-ad-overlay-close-container"),"click",a.Mj);a.N(b.va("ytp-ad-overlay-text-image"),"click",a.M_);b.hide();return b}; XSa=function(a){var b=new g.eG({F:"div",L:"ytp-ad-image-overlay",R:[{F:"div",L:"ytp-ad-overlay-ad-info-button-container"},{F:"div",L:"ytp-ad-overlay-close-container",R:[{F:"button",L:"ytp-ad-overlay-close-button",R:[tG(AY)]}]},{F:"div",L:"ytp-ad-overlay-image",R:[{F:"img",T:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.N(b.va("ytp-ad-overlay-image"),"click",function(c){return BY(a,b.element,c)}); a.N(b.va("ytp-ad-overlay-close-container"),"click",a.Mj);b.hide();return b}; CY=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.R(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.dg("video-ads ytp-ad-module")||null,null==b)g.R(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.xa=new g.eG({F:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.J(a,a.xa),a.xa.ra(b),b=new JG(a.api,a.Xa,a.layoutId,a.interactionLoggingClientData,a.Ta,a.xa.element,!1),g.J(a,b),b.init(ND("ad-info-hover-text-button"), c,a.macros),a.D){b.ra(a.D,0);b.subscribe("f",a.oY,a);b.subscribe("e",a.qI,a);a.N(a.D,"click",a.pY);var d=g.dg("ytp-ad-button",b.element);a.N(d,"click",function(){var e,f,k;if(null==(e=c.button)?0:null==(f=e.buttonRenderer)?0:null==(k=f.serviceEndpoint)?0:k.adInfoDialogEndpoint)a.Ka=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)}); a.Sa=b}else g.R(Error("Ad info button container within overlay ad was not present."))}else g.lu(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; YSa=function(a,b){if(DY(a,EY)||a.api.lf())return!1;var c=gG(b.title),d=gG(b.description);if(g.fb(c)||g.fb(d))return!1;a.Vh(a.B.element,b.trackingParams||null);a.B.updateValue("title",gG(b.title));a.B.updateValue("description",gG(b.description));a.B.updateValue("displayUrl",gG(b.displayUrl));b.navigationEndpoint&&g.Sb(a.J,b.navigationEndpoint);a.B.show();a.Ca.start();a.Va(a.B.element,!0);a.N(a.B.element,"mouseover",function(){a.U++}); return!0}; ZSa=function(a,b){if(DY(a,EY)||a.api.lf())return!1;var c=gG(b.title),d=gG(b.description);if(g.fb(c)||g.fb(d))return!1;a.Vh(a.u.element,b.trackingParams||null);a.u.updateValue("title",gG(b.title));a.u.updateValue("description",gG(b.description));a.u.updateValue("displayUrl",gG(b.displayUrl));a.u.updateValue("imageUrl",mBa(b.image));b.navigationEndpoint&&g.Sb(a.J,b.navigationEndpoint);a.Ga=b.imageNavigationEndpoint||null;a.u.show();a.Ca.start();a.Va(a.u.element,!0);a.N(a.u.element,"mouseover",function(){a.U++}); return!0}; $Sa=function(a,b){if(a.api.lf())return!1;var c=nBa(b.image),d=c;c.widthdocument.documentMode)c=rf;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.ig("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=gka(d.style)}b=Rca(c,Qca({"background-image":'url("'+b+'")'}));a.style.cssText=qf(b)}}; kTa=function(a){var b=g.dg("html5-video-player");b&&g.N(b,"ytp-ad-display-override",a)}; vZ=function(a,b,c,d){EG.call(this,a);this.api=a;this.Ta=c;this.u={};this.J=b;a=new g.V({F:"div",Aa:["video-ads","ytp-ad-module"]});g.J(this,a);FA&&g.vn(a.element,"ytp-ads-tiny-mode");this.D=new ZF(a.element);g.J(this,this.D);g.rI(this.api,a.element,4);WQa(d)&&(d=new g.V({F:"div",Aa:["ytp-ad-underlay"]}),g.J(this,d),this.B=new ZF(d.element),g.J(this,this.B),g.rI(this.api,d.element,0));g.J(this,GBa())}; lTa=function(a,b){a=g.Ce(a.u,b.id,null);null==a&&g.lu(Error("Component not found for element id: "+b.id));return a||null}; wZ=function(a){g.HI.call(this,a);var b=this;this.u=this.Xa=null;this.created=!1;this.Jq=new FF(this.player);this.B=function(){function d(){return b.Xa} if(null!=b.u)return b.u;var e=NAa({dn:a.getVideoData(1)});e=new VOa({BV:new vY(function(){return b.Xa},uY(b.j).Ml), Mq:e.BW(),SV:d,fY:d,Jj:uY(b.j).Jj,Rj:e.CG(),Tk:uY(b.j).Tk,G:b.player,ph:uY(b.j).ph,La:b.j.j.La,xi:uY(b.j).xi,Rc:b.j.j.Rc});b.u=e.BU;return b.u}; this.j=new tY(this.player,this,this.Jq,this.B);g.J(this,this.j);var c=a.S();!XA(c)||g.QA(c)||ZA(c)||(g.J(this,new vZ(a,function(){return b.Xa},uY(this.j).Ta,uY(this.j).ph)),g.J(this,new wY(a)))}; mTa=function(a){a.created!==a.loaded&&S("Created and loaded are out of sync")}; xZ=function(a,b){b===a.Ot&&(a.Ot=void 0)}; nTa=function(a){a.Xa?uY(a.j).Ac.WG()||a.Xa.WG()||uY(a.j).Xp.lr():S("AdService is null when calling maybeUnlockPrerollIfReady")}; oTa=function(a){a=g.r(uY(a.j).xi.ij.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&"core"===b.Ua)return!0;return!1}; yZ=function(a){a=g.r(uY(a.j).xi.ij.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1}; Fra=function(a,b,c){c=void 0===c?"":c;var d=uY(a.j).ph,e=a.player.getVideoData(1),f=e&&e.getPlayerResponse()||{};f=f&&f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;e=e&&e.dg()||!1;d=pTa(b,d,f,e,uY(a.j).Jk);Ira(uY(a.j).Bc,c,d.KC,b);a.Xa&&0>>0)+"_",e=0;return b}); ia("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;cb?-c:c}}); ia("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); ia("Array.prototype.entries",function(a){return a?a:function(){return Ea(this,function(b,c){return[b,c]})}}); ia("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}}); ia("Object.setPrototypeOf",function(a){return a||oa}); ia("Array.prototype.keys",function(a){return a?a:function(){return Ea(this,function(b){return b})}}); ia("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Fa(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0=e}}); ia("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Fa(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var k=0;k=f}}); ia("String.prototype.repeat",function(a){return a?a:function(b){var c=Fa(this,null,"repeat");if(0>b||1342177279>>=1)c+=c;return d}}); ia("Set",function(a){function b(c){this.j=new Map;if(c){c=g.r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size} if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.r([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(k){return!1}}())return a; b.prototype.add=function(c){c=0===c?0:c;this.j.set(c,c);this.size=this.j.size;return this}; b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c}; b.prototype.clear=function(){this.j.clear();this.size=0}; b.prototype.has=function(c){return this.j.has(c)}; b.prototype.entries=function(){return this.j.entries()}; b.prototype.values=function(){return this.j.values()}; b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})}; return b}); ia("Array.prototype.values",function(a){return a?a:function(){return Ea(this,function(b,c){return c})}}); ia("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l}; var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var k=0;!(f=b.next()).done;)e.push(c.call(d,f.value,k++))}else for(f=b.length,k=0;kc&&(c=Math.max(c+e,0));cc&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);cc?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(cd;)--e in this?this[--c]=this[e]:delete this[--c];return this}}); ia("Int8Array.prototype.copyWithin",Ha);ia("Uint8Array.prototype.copyWithin",Ha);ia("Uint8ClampedArray.prototype.copyWithin",Ha);ia("Int16Array.prototype.copyWithin",Ha);ia("Uint16Array.prototype.copyWithin",Ha);ia("Int32Array.prototype.copyWithin",Ha);ia("Uint32Array.prototype.copyWithin",Ha);ia("Float32Array.prototype.copyWithin",Ha);ia("Float64Array.prototype.copyWithin",Ha);ia("Number.parseInt",function(a){return a||parseInt}); Ah=Ah||{};g.C=this||self;Oa="closure_uid_"+(1E9*Math.random()>>>0);gaa=0;var Xa={};g.Va($a,Error);$a.prototype.name="CustomError";var jda;g.Va(ab,$a);ab.prototype.name="AssertionError";var Ed=void 0,Dd,wba="undefined"!==typeof TextDecoder,maa,laa="undefined"!==typeof TextEncoder;var kb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},raa=/&/g,saa=//g,uaa=/"/g,vaa=/'/g,waa=/\x00/g,qaa=/[\x00&<>"']/;var wTa=g.Ja("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var rb;if(null!=wTa&&wTa){var xTa=g.C.navigator;rb=xTa?xTa.userAgentData||null:null}else rb=null;var Faa,Tj,Wk;Faa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0); for(var c=0;cc&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1}; g.cc=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;fparseFloat(EZ)){DZ=String(GZ);break a}}DZ=EZ}var hc=DZ,Qaa={},HZ;if(g.C.document&&g.mc){var CTa=Paa();HZ=CTa?CTa:parseInt(hc,10)||void 0}else HZ=void 0;var Raa=HZ;var PA,FD;g.pw=yb();PA=Eb()||tb("iPod");FD=tb("iPad");g.HA=yaa();g.Zy=zb();g.pr=Ab()&&!Fb();var Taa={},oc=null;var pc="undefined"!==typeof Uint8Array,Waa,sc={};var Yaa;tc.prototype.isEmpty=function(){return null==this.bd};var xc="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;var jd,Pc=Object.freeze(Ac([])),DTa="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;g.h=id.prototype;g.h.toJSON=function(){var a=this.ze;return jd?a:Lc(a,eba)}; g.h.clone=function(){var a=Lc(this.ze);hd=a;a=new this.constructor(a);hd=null;md(a,this);return a}; g.h.isMutable=function(a){Za(a);return!Ec(this)}; g.h.Ep=function(a){Za(a);return Ec(this)}; g.h.toString=function(){return this.ze.toString()}; var hd;var rba,oba;rba="function"===typeof Uint8Array.prototype.slice;g.pd=0;g.qd=0;oba="function"===typeof BigInt;g.h=g.rd.prototype;g.h.init=function(a,b,c,d){d=void 0===d?{}:d;this.BA=void 0===d.BA?!1:d.BA;a&&(a=od(a),this.u=a.buffer,this.D=a.Ep,this.C=b||0,this.B=void 0!==c?this.C+c:this.u.length,this.j=this.C)}; g.h.clear=function(){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.BA=!1}; g.h.reset=function(){this.j=this.C}; g.h.advance=function(a){sd(this,this.j+a)}; g.h.lA=ca(0);var tba=[];yd.prototype.reset=function(){this.j.reset();this.B=this.j.j;this.u=this.C=-1}; yd.prototype.advance=function(a){this.j.advance(a)}; var $O=[];var zba;Gd.prototype.length=function(){return this.j.length}; Gd.prototype.end=function(){var a=this.j;this.j=[];return a};g.w(Nd,id);Nd.prototype.Mz=function(){return this}; if(DTa){var ETa={};Object.defineProperties(Nd,(ETa[Symbol.hasInstance]=Zaa(function(){throw Error("Cannot perform instanceof checks for MutableMessage");}),ETa))};var Od,Sd,Rd,Qd,FTa,IZ,GTa,MZ,HTa,NZ,ITa;Od=Symbol();Sd=Symbol();Rd=Symbol();Qd=Symbol();FTa=g.Vd(function(a,b,c){if(1!==a.u)return!1;a=g.wd(a.j);Vc(b,c,a,0);return!0},g.Xd); IZ=g.Vd(function(a,b,c){if(0!==a.u)return!1;a=g.td(a.j);Vc(b,c,a,0);return!0},g.Yd); GTa=g.Vd(function(a,b,c){if(0!==a.u)return!1;a=g.ud(a.j);Vc(b,c,a,0);return!0},g.Zd); g.JZ=g.Vd(function(a,b,c){if(2!==a.u)return!1;g.E(b,c,g.Fd(a));return!0},g.$ba); g.KZ=g.Vd(function(a,b,c,d,e){if(2!==a.u)return!1;g.Cd(a,fd(b,c,d),e);return!0},function(a,b,c,d,e){b=$c(b,d,c); if(null!=b)for(d=0;d>>0);return!0},function(a,b,c){b=g.Oc(b,c); null!=b&&null!=b&&(g.Kd(a,c,0),Hd(a.j,b))}); ITa=g.Vd(function(a,b,c){if(0!==a.u)return!1;g.E(b,c,g.ud(a.j));return!0},function(a,b,c){b=g.Oc(b,c); null!=b&&(b=parseInt(b,10),g.Kd(a,c,0),Cba(a.j,b))});g.w(g.H,Nd);g.H.prototype.Mz=function(a){Za(a);if(Ec(this)){a={OF:!0};var b=Ec(this);if(b&&!a.OF)throw Error("copyRepeatedFields must be true for frozen messages");var c=new this.constructor;this.Dp&&(c.Dp=this.Dp.slice());for(var d=this.ze,e=0;e>>0);g.Va(g.Te,g.I);g.Te.prototype[kca]=!0;g.h=g.Te.prototype;g.h.addEventListener=function(a,b,c,d){g.Le(this,a,b,c,d)}; g.h.removeEventListener=function(a,b,c,d){zca(this,a,b,c,d)}; g.h.dispatchEvent=function(a){var b=this.Ga;if(b){var c=[];for(var d=1;b;b=b.Ga)c.push(b),++d}b=this.sb;d=a.type||a;if("string"===typeof a)a=new g.he(a,b);else if(a instanceof g.he)a.target=a.target||b;else{var e=a;a=new g.he(d,b);g.Ge(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var k=a.currentTarget=c[f];e=Ue(k,d,!0,a)&&e}a.u||(k=a.currentTarget=b,e=Ue(k,d,!0,a)&&e,a.u||(e=Ue(k,d,!1,a)&&e));if(c)for(f=0;!a.u&&fl?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.j.cookie=a+"="+b+c+k+l+d+(null!=e?";samesite="+ e:"")}; g.h.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;ed&&this.Cau||401===u||0===u);x&&(c.u=y.concat(c.u),c.ma||c.j.enabled||c.j.start());b&&b("net-send-failed",u)},t=function(){c.Pa?c.Pa.send(n,p,q):c.ib(n,p,q)}; m?m.then(function(u){n.Fs["Content-Encoding"]="gzip";n.Fs["Content-Type"]="application/binary";n.body=u;n.LV=2;t()},function(){t()}):t()}}}}; g.h.lG=function(){this.flush()}; g.w(Sea,g.he);Mea.prototype.Le=function(a,b){b=void 0===b?0:b;var c=this.j.clone();var d=Date.now().toString();c=g.E(c,4,d);a=ed(c,Jh,3,a);b&&g.E(a,14,b);return a};Wea.prototype.Le=function(){var a=new Lh(this.I,this.ea?this.ea:Yg,"0",this.J,this.B,this.C,!1,this.Ca,void 0,void 0,this.P?this.P:void 0);this.V&&Kh(a.I,this.V);if(this.u){var b=this.u,c=Mh(a.I);g.E(c,7,b)}this.D&&(a.P=this.D);this.j&&(a.V=this.j);this.U&&((b=this.U)?(a.C||(a.C=new Zg),b=kd(b),g.E(a.C,4,b)):a.C&&Tc(a.C,4));this.ma&&(b=this.ma,a.C||(a.C=new Zg),gba(a.C,2,b));this.Z&&(b=this.Z,a.Qa=!0,Pea(a,b));this.xa&&Uea(a.I,this.xa);return a};Nh.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new Vda,c=[],d=0;d>>3;1!=f.B&&2!=f.B&&15!=f.B&&Qi(f,k,l,"unexpected tag");f.j=1;f.u=0;f.C=0} function c(m){f.C++;5==f.C&&m&240&&Qi(f,k,l,"message length too long");f.u|=(m&127)<<7*(f.C-1);m&128||(f.j=2,f.P=0,"undefined"!==typeof Uint8Array?f.D=new Uint8Array(f.u):f.D=Array(f.u),0==f.u&&e())} function d(m){f.D[f.P++]=m;f.P==f.u&&e()} function e(){if(15>f.B){var m={};m[f.B]=f.D;f.J.push(m)}f.j=0} for(var f=this,k=a instanceof Array?a:new Uint8Array(a),l=0;lb||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?Xi(this,7):7==c?Xi(this,8):d||Xi(this,3)),this.u||(this.u=Mfa(this.j),null==this.u&&Xi(this,5)),2this.B){var k=a.length;c=[];try{if(this.u.yA())for(var l=0;lthis.B){l=e.slice(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){Xi(this,5);Yi(this);break a}}4==b?(0!=e.length|| this.U?Xi(this,2):Xi(this,4),Yi(this)):Xi(this,1)}}}catch(p){Xi(this,6),Yi(this)}};g.h=Nfa.prototype;g.h.on=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this}; g.h.addListener=function(a,b){this.on(a,b);return this}; g.h.removeListener=function(a,b){var c=this.u[a];c&&g.Ob(c,b);(a=this.j[a])&&g.Ob(a,b);return this}; g.h.once=function(a,b){var c=this.j[a];c||(c=[],this.j[a]=c);c.push(b);return this}; g.h.YY=function(a){var b=this.u.data;b&&Ofa(a,b);(b=this.j.data)&&Ofa(a,b);this.j.data=[]}; g.h.G_=function(){switch(this.B.getStatus()){case 1:Zi(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Zi(this,"error");break;case 8:Zi(this,"close");break;case 2:Zi(this,"end")}};Pfa.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Qfa(function(k){var l=k.yB(),m=k.getMetadata(),n=Tfa(e,!1);m=Ufa(e,m,n,f+l.getName());var p=Vfa(n,l.u,!0);k=l.j(k.j);n.send(m,"POST",k);return p},this.C).call(this,tfa(d,b,c))};$i.prototype.create=function(a,b){return hi(this.j,"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},ZTa)}; $i.prototype.ping=function(a,b){return hi(this.j,"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},$Ta)};var Xfa={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);0=this.I&&this.B.resolve();var b=new Qh(this.logger,"C");a=new sfa(this.C(a.lx));b.done();if(void 0===a.j)return a;b=a.j;var c=this.j;c=Zc(c,$d,3===Xc(c,OZ)?3:-1);c||(c=new $d,a=nc(a.B),g.E(c,2,a),dd(this.j,$d,3,OZ,c));g.E(c,1,b);return g.Ud(this.j,NTa)}; g.w(hj,ej);hj.prototype.bv=function(){return this.j}; g.w(ij,ej);ij.prototype.bv=function(){if(this.j){var a=this.j;this.j=void 0;return a}return this.C}; cj.prototype.isReady=function(){return!!this.j}; cj.prototype.ready=function(){var a=this;return g.B(function(b){return g.A(b,a.u.promise,0)})}; cj.prototype.bv=function(a){if(!this.j)throw Error("SGK:Not ready");var b=new Qh(this.logger,this.j.u);try{return this.j.bv(a)}catch(e){b=new Qh(this.logger,"e");var c=new dj(5,e);this.logger.zy(c.code);var d;null==(d=this.onError)||d.call(this,c);return(new ij(c)).bv()}finally{b.done()}};var il;il=["av.default","js","unreleased"].slice(-1)[0];var Yk=document,Fj=window;var jga={NONE:0,X7:1},Rga={HS:0,zfa:1,yfa:2,Afa:3},Qga={B3:"a",O7:"d",VIDEO:"v"};qj.prototype.isVisible=function(){return this.Hr?.3<=this.zd:.5<=this.zd};var Aj={z4:0,r8:1},Oga={NONE:0,N9:1,N8:2};rj.prototype.getValue=function(){return this.bd}; g.w(sj,rj);sj.prototype.setValue=function(a){if(null!==this.bd||!g.ye(this.u,a))return!1;this.bd=a;return!0}; g.w(tj,rj);tj.prototype.setValue=function(a){if(null!==this.bd||"number"!==typeof a)return!1;this.bd=a;return!0}; g.w(uj,rj);uj.prototype.setValue=function(a){if(null!==this.bd||"string"!==typeof a)return!1;this.bd=a;return!0};vj.prototype.disable=function(){this.u=!1}; vj.prototype.enable=function(){this.u=!0}; vj.prototype.isEnabled=function(){return this.u}; vj.prototype.reset=function(){this.j={};this.u=!0;this.B={}};var Sha=!g.mc&&!Ab();Cj.prototype.now=function(){return 0}; Cj.prototype.u=function(){return 0}; Cj.prototype.B=function(){return 0}; Cj.prototype.j=function(){return 0};g.w(Ej,Cj);Ej.prototype.now=function(){return Dj()&&Fj.performance.now?Fj.performance.now():Cj.prototype.now.call(this)}; Ej.prototype.u=function(){return Dj()&&Fj.performance.memory?Fj.performance.memory.totalJSHeapSize||0:Cj.prototype.u.call(this)}; Ej.prototype.B=function(){return Dj()&&Fj.performance.memory?Fj.performance.memory.usedJSHeapSize||0:Cj.prototype.B.call(this)}; Ej.prototype.j=function(){return Dj()&&Fj.performance.memory?Fj.performance.memory.jsHeapSizeLimit||0:Cj.prototype.j.call(this)};var mga=Ye(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); g.C.addEventListener("test",null,b)}catch(c){}return a});nga.prototype.isVisible=function(){return 1===Ij(Yk)};g.df("csi.gstatic.com");g.df("googleads.g.doubleclick.net");g.df("partner.googleadservices.com");g.df("pubads.g.doubleclick.net");g.df("securepubads.g.doubleclick.net");g.df("tpc.googlesyndication.com");var rga=/https?:\/\/[^\/]+/,pga={N2:"allow-forms",O2:"allow-modals",P2:"allow-orientation-lock",Q2:"allow-pointer-lock",R2:"allow-popups",S2:"allow-popups-to-escape-sandbox",T2:"allow-presentation",U2:"allow-same-origin",V2:"allow-scripts",W2:"allow-top-navigation",X2:"allow-top-navigation-by-user-activation"},uga=Ye(function(){return qga()});var yga=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Vj.prototype.setInterval=function(a,b){return Fj.setInterval(a,b)}; Vj.prototype.clearInterval=function(a){Fj.clearInterval(a)}; Vj.prototype.setTimeout=function(a,b){return Fj.setTimeout(a,b)}; Vj.prototype.clearTimeout=function(a){Fj.clearTimeout(a)};Kga.prototype.getContext=function(){if(!this.j){if(!Fj)throw Error("Context has not been set and window is undefined.");this.j=Uj(Vj)}return this.j};g.w(Xj,g.H);var Sia=[Xj,1,FTa,2,IZ,3,IZ,4,IZ,5,GTa];var Pga={Sea:1,uV:2,Bca:3};g.gf(cf(g.df("https://pagead2.googlesyndication.com/pagead/osd.js")));Sga.prototype.LI=function(a){if("string"===typeof a&&0!=a.length){var b=this.featureSet;if(b.u){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);1=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; g.h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this}; g.h.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this}; g.h.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; g.h.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};vk.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.B==a.B&&tk(this.j,a.j)&&!0};wk.prototype.equals=function(a,b){return this.C.equals(a.C,void 0===b?!1:b)&&this.P==a.P&&tk(this.B,a.B)&&tk(this.I,a.I)&&this.j==a.j&&this.D==a.D&&this.u==a.u&&this.J==a.J};var hUa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Tl={pV:"start",OS:"firstquartile",XU:"midpoint",qV:"thirdquartile",AS:"complete",ERROR:"error",WU:"metric",PAUSE:"pause",eV:"resume",iV:"skip",tV:"viewable_impression",ZU:"mute",sV:"unmute",PS:"fullscreen",MS:"exitfullscreen",yS:"bufferstart",xS:"bufferfinish",QS:"fully_viewable_audible_half_duration_impression",VU:"measurable_impression",qS:"abandon",JS:"engagedview",US:"impression",BS:"creativeview",UU:"loaded",afa:"progress", CLOSE:"close",o4:"collapse",Yda:"overlay_resize",Zda:"overlay_unmeasurable_impression",aea:"overlay_unviewable_impression",cea:"overlay_viewable_immediate_impression",bea:"overlay_viewable_end_of_session_impression",CS:"custom_metric_viewable",Tda:"verification_debug",sS:"audio_audible",uS:"audio_measurable",tS:"audio_impression"},Eja="start firstquartile midpoint thirdquartile resume loaded".split(" "),Fja=["start","firstquartile","midpoint","thirdquartile"],sia=["abandon"],Am={UNKNOWN:-1,pV:0,OS:1, XU:2,qV:3,AS:4,WU:5,PAUSE:6,eV:7,iV:8,tV:9,ZU:10,sV:11,PS:12,MS:13,QS:14,VU:15,qS:16,JS:17,US:18,BS:19,UU:20,CS:21,yS:22,xS:23,tS:24,uS:25,sS:26};var eha={B2:"addEventListener",P8:"getMaxSize",Q8:"getScreenSize",S8:"getState",T8:"getVersion",qfa:"removeEventListener",j$:"isViewable"};g.h=g.yk.prototype;g.h.clone=function(){return new g.yk(this.left,this.top,this.width,this.height)}; g.h.contains=function(a){return a instanceof g.Jf?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height}; g.h.distance=function(a){var b=a.x=this.P?a:this;b!==this.j?(this.I=this.j.I,cl(this)):this.I!==this.j.I&&(this.I=this.j.I,cl(this))}; g.h.yp=function(a){if(a.u===this.j){var b=!this.C.equals(a,this.U);this.C=a;b&&wha(this)}}; g.h.Dm=function(){return this.U}; g.h.dispose=function(){this.ma=!0}; g.h.isDisposed=function(){return this.ma};g.h=dl.prototype;g.h.wE=function(){return!0}; g.h.yw=function(){}; g.h.dispose=function(){if(!this.isDisposed()){var a=this.u;g.Ob(a.D,this);a.U&&this.Dm()&&vha(a);this.yw();this.V=!0}}; g.h.isDisposed=function(){return this.V}; g.h.kp=function(){return this.u.kp()}; g.h.An=function(){return this.u.An()}; g.h.Au=function(){return this.u.Au()}; g.h.ey=function(){return this.u.ey()}; g.h.Lu=function(){}; g.h.yp=function(){this.No()}; g.h.Dm=function(){return this.Z};g.h=el.prototype;g.h.An=function(){return this.j.An()}; g.h.Au=function(){return this.j.Au()}; g.h.ey=function(){return this.j.ey()}; g.h.create=function(a,b,c){var d=null;this.j&&(d=this.mA(a,b,c),bl(this.j,d));return d}; g.h.mL=function(){return this.zw()}; g.h.zw=function(){return!1}; g.h.init=function(a){return this.j.initialize()?(bl(this.j,this),this.C=a,!0):!1}; g.h.Lu=function(a){0==a.An()&&this.C(a.Au(),this)}; g.h.yp=function(){}; g.h.Dm=function(){return!1}; g.h.dispose=function(){this.D=!0}; g.h.isDisposed=function(){return this.D}; g.h.kp=function(){return{}};fl.prototype.add=function(a,b,c){++this.B;a=new xha(a,b,c);this.j.push(new xha(a.j,a.bd,a.u+this.B/4096));this.u=!0;return this};Cha.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=hl(this.j);0=k;k=!(0=k)||c;this.j[e].update(f&&l,d,!f||k)}};ql.prototype.update=function(a,b,c,d){this.J=-1!=this.J?Math.min(this.J,b.zd):b.zd;this.Z=Math.max(this.Z,b.zd);this.ea=-1!=this.ea?Math.min(this.ea,b.Hi):b.Hi;this.xa=Math.max(this.xa,b.Hi);this.Ya.update(b.Hi,c.Hi,b.j,a,d);this.u.update(b.zd,c.zd,b.j,a,d);c=d||c.Hr!=b.Hr?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Ka.update(c,a,b)}; ql.prototype.Jn=function(){return this.Ka.B>=this.Sa};if(Yk&&Yk.URL){var RZ=Yk.URL,SZ;if(SZ=!!RZ){var TZ;a:{if(RZ){var iUa=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var UZ=iUa.exec(decodeURIComponent(RZ));if(UZ){TZ=UZ[1]&&1=(this.Hr()?.3:.5),this.hK(f,a,d),this.lastUpdateTime=b,0=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0=a.bottom||a.left>=a.right?new rk(0,0,0,0):a;a=this.u.C;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.DO(c)?c=new rk(0,0,0,0):(d=Xk().C,b=new rk(0,d.height,d.width,0),d=ul(c,this.j),e=ul(c,Xk().j),b=ul(c,b)));c=c.top>=c.bottom||c.left>=c.right?new rk(0,0,0, 0):uk(c,-this.j.left,-this.j.top);Zk()||(e=d=0);this.J=new wk(a,this.element,this.j,c,d,e,this.timestamp,b)}; g.h.getName=function(){return this.u.getName()};var nUa=new rk(0,0,0,0);g.w(Ml,Ll);g.h=Ml.prototype;g.h.wE=function(){this.B();return!0}; g.h.yp=function(){Ll.prototype.No.call(this)}; g.h.KM=function(){}; g.h.AF=function(){}; g.h.No=function(){this.B();Ll.prototype.No.call(this)}; g.h.Lu=function(a){a=a.isActive();a!==this.I&&(a?this.B():(Xk().j=new rk(0,0,0,0),this.j=new rk(0,0,0,0),this.C=new rk(0,0,0,0),this.timestamp=-1));this.I=a};var YZ={},qia=(YZ.firstquartile=0,YZ.midpoint=1,YZ.thirdquartile=2,YZ.complete=3,YZ);g.w(Ol,vl);g.h=Ol.prototype;g.h.Dm=function(){return!0}; g.h.In=function(){return 2==this.Zg}; g.h.RN=function(a){return Uha(this,a,Math.max(1E4,this.B/3))}; g.h.Ea=function(a,b,c,d,e,f,k){var l=this,m=this.J(this)||{};g.Ge(m,e);this.B=m.duration||this.B;this.U=m.isVpaid||this.U;this.Ga=m.isYouTube||this.Ga;e=iia(this,b);1===hia(this)&&(f=e);vl.prototype.Ea.call(this,a,b,c,d,m,f,k);this.Ur&&this.Ur.u&&g.cc(this.I,function(n){n.D(l)})}; g.h.hK=function(a,b,c){vl.prototype.hK.call(this,a,b,c);Rl(this).update(a,b,this.fg,c);this.Ya=zl(this.fg)&&zl(b);-1==this.xa&&this.Sa&&(this.xa=this.yh().B.j);this.Vf.B=0;a=this.Jn();b.isVisible()&&Fl(this.Vf,"vs");a&&Fl(this.Vf,"vw");Vk(b.volume)&&Fl(this.Vf,"am");zl(b)&&Fl(this.Vf,"a");this.Nu&&Fl(this.Vf,"f");-1!=b.u&&(Fl(this.Vf,"bm"),1==b.u&&Fl(this.Vf,"b"));zl(b)&&b.isVisible()&&Fl(this.Vf,"avs");this.Ya&&a&&Fl(this.Vf,"avw");0this.j.P&&(this.j=this,cl(this)),this.P=a);return 2==a};pm.prototype.sample=function(){xm(this,hm(),!1)}; pm.prototype.C=function(){var a=Zk(),b=mk();a?(ok||(pk=b,g.cc(gm.j,function(c){var d=c.yh();d.Ga=Il(d,b,1!=c.Zg)})),ok=!0):(this.J=Ria(this,b),ok=!1,ria=b,g.cc(gm.j,function(c){c.cB&&(c.yh().P=b)})); xm(this,hm(),!a)}; var qm=Uj(pm);var Uia=null,Vm="",Um=!1;var Xia=Wia().Rl,zm=Wia().Tl;var $ia={t8:"visible",C3:"audible",oha:"time",pha:"timetype"},aja={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)}, audible:function(a){return"0"==a||"1"==a}, timetype:function(a){return"mtos"==a||"tos"==a}, time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}}; Zia.prototype.setTime=function(a,b,c){"ms"==b?(this.B=a,this.C=-1):(this.B=-1,this.C=a);this.D=void 0===c?"tos":c;return this};g.w(Dm,Jl);Dm.prototype.getId=function(){return this.J}; Dm.prototype.I=function(){return!0}; Dm.prototype.j=function(a){var b=a.yh(),c=a.getDuration();return Wk(this.P,function(d){if(void 0!=d.j)var e=cja(d,b);else b:{switch(d.D){case "mtos":e=d.u?b.D.B:b.B.j;break b;case "tos":e=d.u?b.D.j:b.B.j;break b}e=0}0==e?d=!1:(d=-1!=d.B?d.B:void 0!==c&&0=d);return d})};g.w(Em,dja);Em.prototype.u=function(){return null}; Em.prototype.B=function(){return[]};g.w(Fm,cia);Fm.prototype.j=function(a){var b=new Dl;b.j=El(a,kUa);b.u=El(a,mUa);return b};g.w(Gm,Jl);Gm.prototype.j=function(a){return kia(a)};g.w(Hm,dja);g.w(Im,Jl);Im.prototype.j=function(a){return a.yh().Jn()};g.w(Jm,Kl);Jm.prototype.j=function(a){var b=g.Lb(this.J,yj(Zj().featureSet,"ovms"));return!a.Gp&&(0!=a.Zg||b)};g.w(Km,Hm);Km.prototype.u=function(){return new Jm(this.j)}; Km.prototype.B=function(){return[new Im("viewable_impression",this.j),new Gm(this.j)]};g.w(Lm,Ml);Lm.prototype.B=function(){var a=g.Ja("ima.admob.getViewability"),b=yj(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)}; Lm.prototype.getName=function(){return"gsv"};g.w(Mm,el);Mm.prototype.getName=function(){return"gsv"}; Mm.prototype.zw=function(){var a=Xk();Zj();return a.u&&!1}; Mm.prototype.mA=function(a,b,c){return new Lm(this.j,b,c)};g.w(Nm,Ml);Nm.prototype.B=function(){var a=this,b=g.Ja("ima.bridge.getNativeViewability"),c=yj(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Ae(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=pha(d.opt_nativeViewBounds||{});var k=a.u.C;k.j=f?nUa.clone():pha(e);a.timestamp=d.opt_nativeTime||-1;Xk().j=k.j;d=d.opt_nativeVolume;void 0!==d&&(k.volume=d)})}; Nm.prototype.getName=function(){return"nis"};g.w(Om,el);Om.prototype.getName=function(){return"nis"}; Om.prototype.zw=function(){var a=Xk();Zj();return a.u&&!1}; Om.prototype.mA=function(a,b,c){return new Nm(this.j,b,c)};g.w(Pm,al);g.h=Pm.prototype;g.h.xw=function(){return null!=this.u.Nk}; g.h.ON=function(){var a={};this.Ca&&(a.mraid=this.Ca);this.ea&&(a.mlc=1);a.mtop=this.u.Y0;this.J&&(a.mse=this.J);this.Ga&&(a.msc=1);a.mcp=this.u.compatibility;return a}; g.h.bq=function(a){var b=g.Da.apply(1,arguments);try{return this.u.Nk[a].apply(this.u.Nk,b)}catch(c){lk(538,c,.01,function(d){d.method=a})}}; g.h.initialize=function(){var a=this;if(this.isInitialized)return!this.ey();this.isInitialized=!0;if(2===this.u.compatibility)return this.J="ng",this.fail("w"),!1;if(1===this.u.compatibility)return this.J="mm",this.fail("w"),!1;Xk().P=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?hja(this):sl(this.B,"load",function(){Wj().setTimeout(kk(292,function(){return hja(a)}),100)},292); return!0}; g.h.kL=function(){var a=Xk(),b=mja(this,"getMaxSize");a.j=new rk(0,b.width,b.height,0)}; g.h.lL=function(){Xk().C=mja(this,"getScreenSize")}; g.h.dispose=function(){jja(this);al.prototype.dispose.call(this)};g.h=Rm.prototype;g.h.qx=function(a){wl(a,!1);Eia(a)}; g.h.HB=function(){}; g.h.pz=function(a,b,c,d){var e=this;b=c?b:-1;c=this.eN();a=new Ol(Fj,a,b,7,this.SF(),c.u(),c.B());a.Ig=d;hga(a.featureSet);xj(a.featureSet,"queryid",a.Ig);a.LI("");Xha(a,function(){return e.eO.apply(e,g.v(g.Da.apply(0,arguments)))},function(){return e.ZW.apply(e,g.v(g.Da.apply(0,arguments)))}); (d=Uj(im).j)&&Tha(a,d);a.Wh.Jp&&Uj(Nia);return a}; g.h.Lu=function(a){switch(a.An()){case 0:if(a=Uj(im).j)a=a.j,g.Ob(a.D,this),a.U&&this.Dm()&&vha(a);Tm();break;case 2:wm()}}; g.h.yp=function(){}; g.h.Dm=function(){return!1}; g.h.ZW=function(a,b){a.Gp=!0;switch(a.Zl()){case 1:sja(a,b);break;case 2:this.WI(a)}this.lJ()}; g.h.iX=function(a){var b=a.J(a);b&&(b=b.volume,a.Za=Vk(b)&&0a&&Number.isInteger(a)&&this.data_[a]!==b&&(this.data_[a]=b,this.j=-1)}; ln.prototype.get=function(a){return!!this.data_[a]};g.Va(g.mn,g.I);g.h=g.mn.prototype;g.h.start=function(){this.stop();this.C=!1;var a=Rja(this),b=Sja(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.j=g.Le(this.u,"MozBeforePaint",this.B),this.u.mozRequestAnimationFrame(null),this.C=!0):this.j=a&&b?a.call(this.u,this.B):this.u.setTimeout(Bca(this.B),20)}; g.h.stop=function(){if(this.isActive()){var a=Rja(this),b=Sja(this);a&&!b&&this.u.mozRequestAnimationFrame?Pe(this.j):a&&b?b.call(this.u,this.j):this.u.clearTimeout(this.j)}this.j=null}; g.h.isActive=function(){return null!=this.j}; g.h.HT=function(){this.C&&this.j&&Pe(this.j);this.j=null;this.I.call(this.D,g.Ua())}; g.h.Y=function(){this.stop();g.mn.Ee.Y.call(this)};g.Va(g.K,g.I);g.h=g.K.prototype;g.h.Aw=0;g.h.Y=function(){g.K.Ee.Y.call(this);this.stop();delete this.j;delete this.u}; g.h.start=function(a){this.stop();this.Aw=g.Mg(this.B,void 0!==a?a:this.Wg)}; g.h.stop=function(){this.isActive()&&g.C.clearTimeout(this.Aw);this.Aw=0}; g.h.isActive=function(){return 0!=this.Aw}; g.h.oL=function(){this.Aw=0;this.j&&this.j.call(this.u)};rn.prototype[Symbol.iterator]=function(){return this}; rn.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.u.call(void 0,a.value),done:a.done}};zn.prototype.Ni=function(){return new An(this.u())}; zn.prototype[Symbol.iterator]=function(){return new Bn(this.u())}; zn.prototype.j=function(){return new Bn(this.u())}; g.w(An,g.xl);An.prototype.next=function(){return this.u.next()}; An.prototype[Symbol.iterator]=function(){return new Bn(this.u)}; An.prototype.j=function(){return new Bn(this.u)}; g.w(Bn,zn);Bn.prototype.next=function(){return this.B.next()};g.h=g.Dn.prototype;g.h.Cj=function(){Fn(this);for(var a=[],b=0;b2*this.size&&Fn(this),!0):!1}; g.h.get=function(a,b){return En(this.u,a)?this.u[a]:b}; g.h.set=function(a,b){En(this.u,a)||(this.size+=1,this.j.push(a),this.lq++);this.u[a]=b}; g.h.forEach=function(a,b){for(var c=this.xn(),d=0;d=d.j.length)return g.VZ;var f=d.j[b++];return g.yl(a?f:d.u[f])}; return e};g.Va(g.Gn,g.Te);g.h=g.Gn.prototype;g.h.isPlaying=function(){return 1==this.j}; g.h.wC=function(){this.Bj("begin")}; g.h.Ry=function(){this.Bj("end")}; g.h.onFinish=function(){this.Bj("finish")}; g.h.Bj=function(a){this.dispatchEvent(a)};var uUa=Ye(function(){if(g.mc)return g.ic("10.0");var a=g.ig("DIV"),b=g.je?"-webkit":Ck?"-moz":g.mc?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!TTa.test("div"))throw Error("");if("DIV"in VTa)throw Error("");b=void 0;var d="";if(c)for(k in c)if(Object.prototype.hasOwnProperty.call(c,k)){if(!TTa.test(k))throw Error("");var e=c[k];if(null!=e){var f=k;if(e instanceof bf)e=cf(e);else if("style"==f.toLowerCase()){if(!g.Na(e))throw Error(""); e instanceof pf||(e=Qca(e));e=qf(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in UTa)if(e instanceof ff)e=Ica(e).toString();else if(e instanceof g.jf)e=g.kf(e);else if("string"===typeof e)e=g.mf(e).Ui();else throw Error("");}e.mm&&(e=e.Ui());f=f+'="'+gb(String(e))+'"';d+=" "+f}}var k="":(b=$ca(b),k+=">"+g.uf(b).toString()+"");k=vf(k);g.cda(a,k);return""!=g.Gk(a.firstChild,"transition")});g.Va(Hn,g.Gn);g.h=Hn.prototype;g.h.play=function(){if(this.isPlaying())return!1;this.wC();this.Bj("play");this.startTime=g.Ua();this.j=1;if(uUa())return g.Bk(this.u,this.J),this.C=g.Mg(this.q0,void 0,this),!0;this.xE(!1);return!1}; g.h.q0=function(){g.Sk(this.u);Xja(this.u,this.P);g.Bk(this.u,this.D);this.C=g.Mg((0,g.Sa)(this.xE,this,!1),1E3*this.I)}; g.h.stop=function(){this.isPlaying()&&this.xE(!0)}; g.h.xE=function(a){g.Bk(this.u,"transition","");g.C.clearTimeout(this.C);g.Bk(this.u,this.D);this.endTime=g.Ua();this.j=0;if(a)this.Bj("stop");else this.onFinish();this.Ry()}; g.h.Y=function(){this.stop();Hn.Ee.Y.call(this)}; g.h.pause=function(){};var Zja={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0};In("Element","attributes")||In("Node","attributes");In("Element","innerHTML")||In("HTMLElement","innerHTML");In("Node","nodeName");In("Node","nodeType");In("Node","parentNode");In("Node","childNodes");In("HTMLElement","style")||In("Element","style");In("HTMLStyleElement","sheet");var eka=aka("getPropertyValue"),fka=aka("setProperty");In("Element","namespaceURI")||In("Node","namespaceURI");var dka={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Ln.prototype.clone=function(){return new g.Ln(this.j,this.J,this.B,this.D,this.C,this.I,this.u,this.P)}; g.Ln.prototype.equals=function(a){return this.j==a.j&&this.J==a.J&&this.B==a.B&&this.D==a.D&&this.C==a.C&&this.I==a.I&&this.u==a.u&&this.P==a.P};Nn.prototype.clone=function(){return new Nn(this.start,this.end)}; Nn.prototype.includePoint=function(a){this.start=Math.min(this.start,a);this.end=Math.max(this.end,a)};var vUa=new WeakMap;(function(){if(EOa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.qb()))?a[1]:"0"}return tO?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.qb()))?a[0].replace(/_/g,"."):"10"):g.rq?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.qb()))?a[1]:""):zTa||ATa||BTa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.qb()))?a[1].replace(/_/g,"."):""):""})();var mka=function(){if(g.pw)return On(/Firefox\/([0-9.]+)/);if(g.mc||g.Nr||g.GA)return hc;if(g.Zy){if(Fb()||Gb()){var a=On(/CriOS\/([0-9.]+)/);if(a)return a}return On(/Chrome\/([0-9.]+)/)}if(g.pr&&!Fb())return On(/Version\/([0-9.]+)/);if(PA||FD){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.qb()))return a[1]+"."+a[2]}else if(g.HA)return(a=On(/Android\s+([0-9.]+)/))?a:On(/Version\/([0-9.]+)/);return""}();g.Va(g.Qn,g.I);g.h=g.Qn.prototype;g.h.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.I;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.I=e+3;d.push(e);return e}; g.h.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.pg(a)}return!1}; g.h.pg=function(a){var b=this.j[a];if(b){var c=this.u[b];0!=this.C?(this.B.push(a),this.j[a+1]=function(){}):(c&&g.Ob(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b}; g.h.W=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e=c.length)return g.VZ;var e=c.key(b++);if(a)return g.yl(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.yl(e)}; return d}; g.h.clear=function(){this.j.clear()}; g.h.key=function(a){return this.j.key(a)};g.Va(oo,no);g.Va(ska,no);g.Va(qo,mo);var tka={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},po=null;g.h=qo.prototype;g.h.isAvailable=function(){return!!this.j}; g.h.set=function(a,b){this.j.setAttribute(ro(a),b);so(this)}; g.h.get=function(a){a=this.j.getAttribute(ro(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; g.h.remove=function(a){this.j.removeAttribute(ro(a));so(this)}; g.h.Ni=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.xl;d.next=function(){if(b>=c.length)return g.VZ;var e=c[b++];if(a)return g.yl(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.yl(e)}; return d}; g.h.clear=function(){for(var a=this.j.XMLDocument.documentElement,b=a.attributes.length;0=b)){if(1==b)a.length=0;else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a>1;){var f=2*a+1,k=2*a+2;f=ke.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}}; g.h.Cj=function(){for(var a=this.j,b=[],c=a.length,d=0;d=L.Jo)||l.j.version>=aa||l.j.objectStoreNames.contains(F)||D.push(F)}m=D;if(0===m.length){y.Oa(5);break}n=Object.keys(c.options.Xr);p= l.objectStoreNames();if(c.Ic.options.version+1)throw t.close(),c.C=!1,Xoa(c,u);return y.return(t);case 10:throw b(),q instanceof Error&&!g.P("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+k.substring(k.indexOf("\n")+1)),qr(q,c.name,"",null!=(x=c.options.version)?x:-1);}})} function b(){c.j===d&&(c.j=void 0)} var c=this;if(!this.C)throw Xoa(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()}, closed:b,q1:b,upgrade:this.options.upgrade};return this.j=d=a()};var Lr=new Jr("YtIdbMeta",{Xr:{databases:{Jo:1}},upgrade:function(a,b){b(1)&&g.zr(a,"databases",{keyPath:"actualName"})}});var Pr,Or=new function(){}(new function(){});new g.Vh;g.h=Tr.prototype;g.h.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(Sr(this)&&this.initialized){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Pf.set(d,this.Me).then(function(e){d.id=e;c.Jf.mf()&&Ur(c,d)}).catch(function(e){Ur(c,d); Vr(c,e)})}else this.Xn(a,b)}; g.h.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(Sr(this)&&this.initialized){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.bb&&this.bb("nwl_skip_retry")&&(e.skipRetry=c);if(this.Jf.mf()||this.bb&&this.bb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){}; b.onError=function(k,l){return g.B(function(m){if(1==m.j)return g.A(m,d.Pf.set(e,d.Me).catch(function(n){Vr(d,n)}),2); f(k,l);g.va(m)})}}this.Xn(a,b,e.skipRetry)}else this.Pf.set(e,this.Me).catch(function(k){d.Xn(a,b,e.skipRetry); Vr(d,k)})}else this.Xn(a,b,this.bb&&this.bb("nwl_skip_retry")&&c)}; g.h.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(Sr(this)&&this.initialized){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){}; d.options.onSuccess=function(k,l){void 0!==d.id?c.Pf.ou(d.id,c.Me):e=!0;c.Jf.Pn&&c.bb&&c.bb("vss_network_hint")&&c.Jf.Pn(!0);f(k,l)}; this.Xn(d.url,d.options);this.Pf.set(d,this.Me).then(function(k){d.id=k;e&&c.Pf.ou(d.id,c.Me)}).catch(function(k){Vr(c,k)})}else this.Xn(a,b)}; g.h.Kz=function(){var a=this;if(!Sr(this))throw g.rr("throttleSend");this.j||(this.j=this.Lk.Tg(function(){var b;return g.B(function(c){if(1==c.j)return g.A(c,a.Pf.SN("NEW",a.Me),2);if(3!=c.j)return b=c.u,b?g.A(c,Ur(a,b),3):(a.MM(),c.return());a.j&&(a.j=0,a.Kz());g.va(c)})},this.ER))}; g.h.MM=function(){this.Lk.zj(this.j);this.j=0};bs.prototype.toString=function(){return this.topic};var zUa=g.Ja("ytPubsub2Pubsub2Instance")||new g.Qn;g.Qn.prototype.subscribe=g.Qn.prototype.subscribe;g.Qn.prototype.unsubscribeByKey=g.Qn.prototype.pg;g.Qn.prototype.publish=g.Qn.prototype.W;g.Qn.prototype.clear=g.Qn.prototype.clear;g.Ia("ytPubsub2Pubsub2Instance",zUa);var es=g.Ja("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ia("ytPubsub2Pubsub2SubscribedKeys",es);var fs=g.Ja("ytPubsub2Pubsub2TopicToKeys")||{};g.Ia("ytPubsub2Pubsub2TopicToKeys",fs);var ppa=g.Ja("ytPubsub2Pubsub2IsAsync")||{}; g.Ia("ytPubsub2Pubsub2IsAsync",ppa);g.Ia("ytPubsub2Pubsub2SkipSubKey",null);g.w(is,Jr);is.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.shared?fpa:epa)(a,b,Object.assign({},c))}; is.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.shared?jpa:gpa)(this.name,a)};var ks;var AUa={},ypa=g.js("ServiceWorkerLogsDatabase",{Xr:(AUa.SWHealthLog={Jo:1},AUa),shared:!0,upgrade:function(a,b){b(1)&&g.Er(g.zr(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var qs={},Epa=0;rs.prototype.requestComplete=function(a,b){b&&(this.u=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)}; rs.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.u?!0:null}; rs.prototype.removeParams=function(a){return a.split("?")[0]}; rs.prototype.removeParams=rs.prototype.removeParams;rs.prototype.isEndpointCFR=rs.prototype.isEndpointCFR;rs.prototype.requestComplete=rs.prototype.requestComplete;rs.getInstance=ts;var us;var Lpa=g.yp("network_polling_interval",3E4);g.w(ws,g.Te);g.h=ws.prototype;g.h.mf=function(){if(g.P("use_shared_nsm")&&this.j){var a;return null==(a=this.j)?void 0:a.mf()}return this.u}; g.h.Pn=function(a){if(g.P("use_shared_nsm")&&this.j){var b;null!=(b=this.j)&&(b.j=a)}else a!==this.u&&(this.u=a)}; g.h.XX=function(a){!g.P("use_shared_nsm")&&(this.C=!0,void 0===a?0:a)&&(this.P||Kpa(this))}; g.h.KG=function(){var a=window.navigator.onLine;return void 0===a?!0:a}; g.h.lW=function(){this.I=!0}; g.h.Ja=function(a,b){return g.P("use_shared_nsm")&&this.j?this.j.Ja(a,b):g.Te.prototype.Ja.call(this,a,b)}; g.h.Yn=function(a){var b=this;if(g.P("use_shared_nsm")&&this.j){var c=hn(this.j,a);c.then(function(d){g.P("use_cfr_monitor")&&ts().requestComplete("generate_204",d)}); return c}return this.D?this.D:this.D=new Promise(function(d){var e,f,k,l;return g.B(function(m){switch(m.j){case 1:return e=window.AbortController?new window.AbortController:void 0,k=null==(f=e)?void 0:f.signal,l=!1,g.wa(m,2,3),e&&(b.J=g.kn.Tg(function(){e.abort()},a||2E4)),g.A(m,fetch("/generate_204",{method:"HEAD", signal:k}),5);case 5:l=!0;case 3:g.za(m);g.P("use_cfr_monitor")&&ts().requestComplete("generate_204",l);b.D=void 0;b.J&&g.kn.zj(b.J);l!==b.u&&(b.u=l,b.u&&b.C?b.dispatchEvent("ytnetworkstatus-online"):b.C&&b.dispatchEvent("ytnetworkstatus-offline"));d(l);g.Aa(m,0);break;case 2:g.ya(m),l=!1,m.Oa(3)}})})}; ws.prototype.sendNetworkCheckRequest=ws.prototype.Yn;ws.prototype.listen=ws.prototype.Ja;ws.prototype.enableErrorFlushing=ws.prototype.lW;ws.prototype.getWindowStatus=ws.prototype.KG;ws.prototype.monitorNetworkStatusChange=ws.prototype.XX;ws.prototype.networkStatusHint=ws.prototype.Pn;ws.prototype.isNetworkAvailable=ws.prototype.mf;ws.getInstance=Jpa;g.w(g.xs,g.Te);g.xs.prototype.mf=function(){var a=g.Ja("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.j)():!0}; g.xs.prototype.Pn=function(a){var b=g.Ja("yt.networkStatusManager.instance.networkStatusHint").bind(this.j);b&&b(a)}; g.xs.prototype.Yn=function(a){var b=this,c;return g.B(function(d){c=g.Ja("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.j);return g.P("skip_network_check_if_cfr")&&ts().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Pn((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.mf())})):c?d.return(c(a)):d.return(!0)})};var As;g.w(ys,Tr);ys.prototype.writeThenSend=function(a,b){b||(b={});g.jr()||(this.initialized=!1);Tr.prototype.writeThenSend.call(this,a,b)}; ys.prototype.sendThenWrite=function(a,b,c){b||(b={});g.jr()||(this.initialized=!1);Tr.prototype.sendThenWrite.call(this,a,b,c)}; ys.prototype.sendAndWrite=function(a,b){b||(b={});g.jr()||(this.initialized=!1);Tr.prototype.sendAndWrite.call(this,a,b)}; ys.prototype.awaitInitialization=function(){return this.u.promise};var Is=0,Ks=0,Ls,Js=g.C.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,potentialEsfErrorCounter:Ks};g.Ia("ytNetworklessLoggingInitializationOptions",Js);g.Ms.prototype.isReady=function(){!this.config_&&koa()&&(this.config_=g.Mq());return!!this.config_};var xqa={appSettingsCaptured:!0,visualElementAttached:!0,visualElementGestured:!0,visualElementHidden:!0,visualElementShown:!0,flowEvent:!0,visualElementStateChanged:!0,playbackAssociated:!0,youThere:!0,accountStateChangeSignedIn:!0,accountStateChangeSignedOut:!0},wqa={latencyActionBaselined:!0,latencyActionInfo:!0,latencyActionTicked:!0,bedrockRepetitiveActionTimed:!0,adsClientStateChange:!0,streamzIncremented:!0,mdxDialAdditionalDataUpdateEvent:!0,tvhtml5WatchKeyEvent:!0,tvhtml5VideoSeek:!0,tokenRefreshEvent:!0, adNotify:!0,adNotifyFilled:!0,tvhtml5LaunchUrlComponentChanged:!0,bedrockResourceConsumptionSnapshot:!0,deviceStartupMetrics:!0,mdxSignIn:!0,tvhtml5KeyboardLogging:!0,tvhtml5StartupSoundEvent:!0,tvhtml5LiveChatStatus:!0,tvhtml5DeviceStorageStatus:!0,tvhtml5LocalStorage:!0,directSignInEvent:!0,finalPayload:!0,tvhtml5SearchCompleted:!0,tvhtml5KeyboardPerformance:!0,adNotifyFailure:!0,latencyActionSpan:!0,tvhtml5AccountDialogOpened:!0,tvhtml5ApiTest:!0};var BUa=0,Os=g.je?"webkit":Ck?"moz":g.mc?"ms":g.GA?"o":"",CUa=g.Ja("ytDomDomGetNextId")||function(){return++BUa}; g.Ia("ytDomDomGetNextId",CUa);var Wpa={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};Qs.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; Qs.prototype.CO=function(){return this.event?!1===this.event.returnValue:!1}; Qs.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; Qs.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Rs=g.C.ytEventsEventsListeners||{};g.Ia("ytEventsEventsListeners",Rs);var Zpa=g.C.ytEventsEventsCounter||{count:0};g.Ia("ytEventsEventsCounter",Zpa);var Hqa=Ye(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a}),$pa=Ye(function(){var a=!1; try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a});var wA=window.ytcsi&&window.ytcsi.now?window.ytcsi.now:window.performance&&window.performance.timing&&window.performance.now&&window.performance.timing.navigationStart?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};g.Va(bt,g.I);bt.prototype.U=function(a){void 0===a.j&&Xpa(a);var b=a.j;void 0===a.u&&Xpa(a);this.j=new g.Jf(b,a.u)}; bt.prototype.qp=function(){return this.j||new g.Jf}; bt.prototype.V=function(){if(this.j){var a=wA();if(0!=this.C){var b=this.I,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.C);this.u[this.B]=.5c;c++)b+=this.u[c]||0;3<=b&&this.J();this.D=d}this.C=a;this.I=this.j;this.B=(this.B+1)%4}}; bt.prototype.Y=function(){window.clearInterval(this.P);g.Ts(this.Z)};var et={};var DUa,ht,kt;DUa=g.C.ytPubsubPubsubInstance||new g.Qn;ht=g.C.ytPubsubPubsubSubscribedKeys||{};kt=g.C.ytPubsubPubsubTopicToKeys||{};g.jt=g.C.ytPubsubPubsubIsSynchronous||{};g.Qn.prototype.subscribe=g.Qn.prototype.subscribe;g.Qn.prototype.unsubscribeByKey=g.Qn.prototype.pg;g.Qn.prototype.publish=g.Qn.prototype.W;g.Qn.prototype.clear=g.Qn.prototype.clear;g.Ia("ytPubsubPubsubInstance",DUa);g.Ia("ytPubsubPubsubTopicToKeys",kt);g.Ia("ytPubsubPubsubIsSynchronous",g.jt); g.Ia("ytPubsubPubsubSubscribedKeys",ht);var ot=g.C.window;ot.ytExports||(ot.ytExports={logging:{transport:{leaderQueueLength:0,leaderChosen:!1}}});var mqa=g.yp("initial_gel_batch_timeout",2E3),vqa=Math.pow(2,16)-1,pt=!1,At=void 0,Ct=new gqa,Bt=new gqa,It=!0,vt=g.C.ytLoggingTransportGELQueue_||new Map;g.Ia("ytLoggingTransportGELQueue_",vt);var xt=new Map,zt=g.C.ytLoggingTransportGELProtoQueue_||new Map;g.Ia("ytLoggingTransportGELProtoQueue_",zt);var Ht=g.C.ytLoggingTransportTokensToCttTargetIds_||{}; g.Ia("ytLoggingTransportTokensToCttTargetIds_",Ht);var Gt=g.C.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.Ia("ytLoggingTransportTokensToJspbCttTargetIds_",Gt);var Jt=g.C.ytLoggingGelSequenceIdObj_||{};g.Ia("ytLoggingGelSequenceIdObj_",Jt);var Aqa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Fqa={};g.w(Rt,g.I);Rt.prototype.N=function(a,b,c,d,e){c=Dp((0,g.Sa)(c,d||this.Sa));c={target:a,name:b,callback:c};var f;e&&Hqa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.I.push(c);return c}; Rt.prototype.pc=function(a){for(var b=0;b=this.start&&(aMUa.length)f_=void 0;else{var g_=LUa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);f_=g_&&6==g_.length?Number(g_[5].replace("_",".")):0}var GD=f_,yJ=0<=GD;yJ&&0<=g.qb().search("Safari")&&g.qb().search("Version");g.w(uv,$a);g.w(vv,as);g.w(bsa,as);var isa=new bs("aft-recorded",vv),NUa=new bs("timing-sent",bsa);var h_=window,xv=h_.performance||h_.mozPerformance||h_.msPerformance||h_.webkitPerformance||new csa;var hsa=!1,ow={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc", 'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",'script[name="mobile_blazer_watch_mod"]':"mbwj"}, tsa=(0,g.Sa)(xv.clearResourceTimings||xv.webkitClearResourceTimings||xv.mozClearResourceTimings||xv.msClearResourceTimings||xv.oClearResourceTimings||g.Xe,xv);var i_={},nsa=(i_.auto_search="LATENCY_ACTION_AUTO_SEARCH",i_.ad_to_ad="LATENCY_ACTION_AD_TO_AD",i_.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",i_["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",i_.app_startup="LATENCY_ACTION_APP_STARTUP",i_["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",i_["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",i_["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",i_["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS", i_.browse="LATENCY_ACTION_BROWSE",i_.cast_splash="LATENCY_ACTION_CAST_SPLASH",i_.channels="LATENCY_ACTION_CHANNELS",i_.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",i_["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",i_["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",i_["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",i_["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",i_["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", i_["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",i_["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",i_["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",i_["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",i_["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",i_["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",i_["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",i_.chips="LATENCY_ACTION_CHIPS", i_["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",i_["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",i_["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",i_.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",i_.embed="LATENCY_ACTION_EMBED",i_.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",i_.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",i_.explore="LATENCY_ACTION_EXPLORE", i_.home="LATENCY_ACTION_HOME",i_.library="LATENCY_ACTION_LIBRARY",i_.live="LATENCY_ACTION_LIVE",i_.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",i_.onboarding="LATENCY_ACTION_ONBOARDING",i_.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",i_.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",i_.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",i_.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",i_["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS", i_["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",i_.prebuffer="LATENCY_ACTION_PREBUFFER",i_.prefetch="LATENCY_ACTION_PREFETCH",i_.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",i_.profile_switcher="LATENCY_ACTION_LOGIN",i_.reel_watch="LATENCY_ACTION_REEL_WATCH",i_.results="LATENCY_ACTION_RESULTS",i_.search_ui="LATENCY_ACTION_SEARCH_UI",i_.search_suggest="LATENCY_ACTION_SUGGEST",i_.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",i_.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",i_.seek= "LATENCY_ACTION_PLAYER_SEEK",i_.settings="LATENCY_ACTION_SETTINGS",i_.store="LATENCY_ACTION_STORE",i_.tenx="LATENCY_ACTION_TENX",i_.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",i_.watch="LATENCY_ACTION_WATCH",i_.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",i_["watch,watch7"]="LATENCY_ACTION_WATCH",i_["watch,watch7_html5"]="LATENCY_ACTION_WATCH",i_["watch,watch7ad"]="LATENCY_ACTION_WATCH",i_["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",i_.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",i_.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING", i_["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",i_["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",i_["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",i_["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",i_["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",i_["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",i_["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",i_["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION", i_["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",i_.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",i_.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",i_.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",i_),j_={},osa=(j_.ad_allowed="adTypesAllowed",j_.yt_abt="adBreakType",j_.ad_cpn="adClientPlaybackNonce",j_.ad_docid="adVideoId",j_.yt_ad_an="adNetworks",j_.ad_at="adType",j_.aida="appInstallDataAgeMs",j_.browse_id="browseId",j_.p="httpProtocol", j_.t="transportProtocol",j_.cs="commandSource",j_.cpn="clientPlaybackNonce",j_.ccs="creatorInfo.creatorCanaryState",j_.ctop="creatorInfo.topEntityType",j_.csn="clientScreenNonce",j_.docid="videoId",j_.GetHome_rid="requestIds",j_.GetSearch_rid="requestIds",j_.GetPlayer_rid="requestIds",j_.GetWatchNext_rid="requestIds",j_.GetBrowse_rid="requestIds",j_.GetLibrary_rid="requestIds",j_.is_continuation="isContinuation",j_.is_nav="isNavigation",j_.b_p="kabukiInfo.browseParams",j_.is_prefetch="kabukiInfo.isPrefetch", j_.is_secondary_nav="kabukiInfo.isSecondaryNav",j_.nav_type="kabukiInfo.navigationType",j_.prev_browse_id="kabukiInfo.prevBrowseId",j_.query_source="kabukiInfo.querySource",j_.voz_type="kabukiInfo.vozType",j_.yt_lt="loadType",j_.mver="creatorInfo.measurementVersion",j_.yt_ad="isMonetized",j_.nr="webInfo.navigationReason",j_.nrsu="navigationRequestedSameUrl",j_.pnt="performanceNavigationTiming",j_.prt="playbackRequiresTap",j_.plt="playerInfo.playbackType",j_.pis="playerInfo.playerInitializedState", j_.paused="playerInfo.isPausedOnLoad",j_.yt_pt="playerType",j_.fmt="playerInfo.itag",j_.yt_pl="watchInfo.isPlaylist",j_.yt_pre="playerInfo.preloadType",j_.yt_ad_pr="prerollAllowed",j_.pa="previousAction",j_.yt_red="isRedSubscriber",j_.rce="mwebInfo.responseContentEncoding",j_.rc="resourceInfo.resourceCache",j_.scrh="screenHeight",j_.scrw="screenWidth",j_.st="serverTimeMs",j_.ssdm="shellStartupDurationMs",j_.br_trs="tvInfo.bedrockTriggerState",j_.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType", j_.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",j_.label="tvInfo.label",j_.is_mdx="tvInfo.isMdx",j_.preloaded="tvInfo.isPreloaded",j_.aac_type="tvInfo.authAccessCredentialType",j_.upg_player_vis="playerInfo.visibilityState",j_.query="unpluggedInfo.query",j_.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",j_.yt_vst="videoStreamType",j_.vph="viewportHeight",j_.vpw="viewportWidth",j_.yt_vis="isVisible",j_.rcl="mwebInfo.responseContentLength",j_.GetSettings_rid="requestIds",j_.GetTrending_rid= "requestIds",j_.GetMusicSearchSuggestions_rid="requestIds",j_.REQUEST_ID="requestIds",j_),psa="isContinuation isNavigation kabukiInfo.earlyBrowseRequestInfo.adopted kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized navigationRequestedSameUrl performanceNavigationTiming playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "),k_={},qsa=(k_.ccs="CANARY_STATE_",k_.mver="MEASUREMENT_VERSION_",k_.pis= "PLAYER_INITIALIZED_STATE_",k_.yt_pt="LATENCY_PLAYER_",k_.pa="LATENCY_ACTION_",k_.ctop="TOP_ENTITY_TYPE_",k_.yt_vst="VIDEO_STREAM_TYPE_",k_),rsa="all_vc ap aq c cbr cbrand cbrver cmodel cos cosver cplatform ctheme cver ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" ");var T={LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING:179,LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC:173,LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC:172,LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC:171, LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC:170,LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC:169,LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC:168,LATENCY_ACTION_GET_OFFERS_RPC:167,LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC:166,LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC:165,LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC:164,LATENCY_ACTION_GET_OFFER_DETAILS_RPC:163,LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC:162,LATENCY_ACTION_GET_TIP_MODULE_RPC:161,LATENCY_ACTION_HANDLE_TRANSACTION_RPC:160,LATENCY_ACTION_COMPLETE_TRANSACTION_RPC:159, LATENCY_ACTION_GET_CART_RPC:158,LATENCY_ACTION_THUMBNAIL_FETCH:156,LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK:154,LATENCY_ACTION_SHARE_VIDEO:153,LATENCY_ACTION_AD_TO_VIDEO_INT:152,LATENCY_ACTION_ABANDONED_BROWSE:151,LATENCY_ACTION_PLAYER_ROTATION:150,LATENCY_ACTION_SHOPPING_IN_APP:124,LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,LATENCY_ACTION_BLOCKS_PERFORMANCE:148,LATENCY_ACTION_ASSISTANT_QUERY:138,LATENCY_ACTION_ASSISTANT_SETTINGS:137, LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,LATENCY_ACTION_ENTITY_TRANSFORM:131,LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95,LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81,LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79, LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65,LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58,LATENCY_ACTION_CHANNEL_SUBSCRIBE:56,LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45,LATENCY_ACTION_LOAD_COMMENT_REPLIES:26, LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,LATENCY_ACTION_NEW_COMMENT:23,LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_STREAM_TRANSFER:178,LATENCY_ACTION_MDX_CAST:120,LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_REEL_SELECT_SEGMENT:136,LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING:157, LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING:146,LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155,LATENCY_ACTION_SHORTS_GALLERY:107,LATENCY_ACTION_SHORTS_TRIM:105,LATENCY_ACTION_SHORTS_EDIT:104,LATENCY_ACTION_SHORTS_CAMERA:103,LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102,LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101,LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72, LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71,LATENCY_ACTION_STORE:175,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,LATENCY_ACTION_LIVE_PAGINATION:117,LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92,LATENCY_ACTION_KIDS_SECRET_CODE:91,LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89,LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62, LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38,LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51,LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50,LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33,LATENCY_ACTION_CREATOR_SONG_ANALYTICS:176,LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110, LATENCY_ACTION_CREATOR_POST_COMMENTS:111,LATENCY_ACTION_CREATOR_LIVE_STREAMING:108,LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT:174,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT:177,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113, LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49,LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54,LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35, LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,LATENCY_ACTION_VIDEO_THUMBNAIL:8,LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_PREBUFFER_VIDEO:144, LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_DIRECT_PLAYBACK:132,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,LATENCY_ACTION_HOME:1,LATENCY_ACTION_STARTUP:106,LATENCY_ACTION_UNKNOWN:0};T[T.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER"; T[T.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";T[T.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";T[T.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";T[T.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";T[T.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";T[T.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS"; T[T.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";T[T.LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING";T[T.LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC]="LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC";T[T.LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC]="LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC";T[T.LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC]="LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC"; T[T.LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC]="LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC";T[T.LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC]="LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC";T[T.LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC]="LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC";T[T.LATENCY_ACTION_GET_OFFERS_RPC]="LATENCY_ACTION_GET_OFFERS_RPC";T[T.LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC";T[T.LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC"; T[T.LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC]="LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC";T[T.LATENCY_ACTION_GET_OFFER_DETAILS_RPC]="LATENCY_ACTION_GET_OFFER_DETAILS_RPC";T[T.LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC]="LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC";T[T.LATENCY_ACTION_GET_TIP_MODULE_RPC]="LATENCY_ACTION_GET_TIP_MODULE_RPC";T[T.LATENCY_ACTION_HANDLE_TRANSACTION_RPC]="LATENCY_ACTION_HANDLE_TRANSACTION_RPC"; T[T.LATENCY_ACTION_COMPLETE_TRANSACTION_RPC]="LATENCY_ACTION_COMPLETE_TRANSACTION_RPC";T[T.LATENCY_ACTION_GET_CART_RPC]="LATENCY_ACTION_GET_CART_RPC";T[T.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";T[T.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";T[T.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";T[T.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";T[T.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE"; T[T.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";T[T.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";T[T.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";T[T.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";T[T.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";T[T.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";T[T.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY"; T[T.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";T[T.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";T[T.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";T[T.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";T[T.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION"; T[T.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";T[T.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";T[T.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";T[T.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";T[T.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";T[T.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";T[T.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP"; T[T.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";T[T.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";T[T.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";T[T.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";T[T.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";T[T.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT"; T[T.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";T[T.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";T[T.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";T[T.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";T[T.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";T[T.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE"; T[T.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";T[T.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";T[T.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";T[T.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";T[T.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";T[T.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";T[T.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT"; T[T.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";T[T.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";T[T.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";T[T.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";T[T.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";T[T.LATENCY_ACTION_MDX_STREAM_TRANSFER]="LATENCY_ACTION_MDX_STREAM_TRANSFER";T[T.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";T[T.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND"; T[T.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";T[T.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";T[T.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";T[T.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";T[T.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";T[T.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK"; T[T.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";T[T.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";T[T.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";T[T.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";T[T.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";T[T.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";T[T.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD"; T[T.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";T[T.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";T[T.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";T[T.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";T[T.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";T[T.LATENCY_ACTION_STORE]="LATENCY_ACTION_STORE"; T[T.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";T[T.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";T[T.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";T[T.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";T[T.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";T[T.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";T[T.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";T[T.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN"; T[T.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";T[T.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";T[T.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";T[T.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";T[T.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";T[T.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY"; T[T.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";T[T.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";T[T.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";T[T.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";T[T.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC"; T[T.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";T[T.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";T[T.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";T[T.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";T[T.LATENCY_ACTION_CREATOR_SONG_ANALYTICS]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS";T[T.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST"; T[T.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";T[T.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";T[T.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";T[T.LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT";T[T.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";T[T.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES"; T[T.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";T[T.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";T[T.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";T[T.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT";T[T.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";T[T.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION"; T[T.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";T[T.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";T[T.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";T[T.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";T[T.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";T[T.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE"; T[T.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";T[T.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";T[T.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";T[T.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";T[T.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";T[T.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD"; T[T.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";T[T.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";T[T.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";T[T.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";T[T.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";T[T.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";T[T.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";T[T.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME"; T[T.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";T[T.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";T[T.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";T[T.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";T[T.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";T[T.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";T[T.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY"; T[T.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";T[T.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";T[T.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";T[T.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";T[T.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";T[T.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";T[T.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";T[T.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD"; T[T.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";T[T.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";T[T.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";T[T.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";T[T.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";T[T.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";T[T.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";T[T.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";T[T.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME"; T[T.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";T[T.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var Uv={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};Uv[Uv.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";Uv[Uv.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";Uv[Uv.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN"; var Vv={CONN_INVALID:31,CONN_CELLULAR_5G_NSA:12,CONN_CELLULAR_5G_SA:11,CONN_WIFI_METERED:10,CONN_CELLULAR_5G:9,CONN_DISCO:8,CONN_CELLULAR_UNKNOWN:7,CONN_CELLULAR_4G:6,CONN_CELLULAR_3G:5,CONN_CELLULAR_2G:4,CONN_WIFI:3,CONN_NONE:2,CONN_UNKNOWN:1,CONN_DEFAULT:0};Vv[Vv.CONN_INVALID]="CONN_INVALID";Vv[Vv.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";Vv[Vv.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";Vv[Vv.CONN_WIFI_METERED]="CONN_WIFI_METERED";Vv[Vv.CONN_CELLULAR_5G]="CONN_CELLULAR_5G"; Vv[Vv.CONN_DISCO]="CONN_DISCO";Vv[Vv.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";Vv[Vv.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";Vv[Vv.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";Vv[Vv.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";Vv[Vv.CONN_WIFI]="CONN_WIFI";Vv[Vv.CONN_NONE]="CONN_NONE";Vv[Vv.CONN_UNKNOWN]="CONN_UNKNOWN";Vv[Vv.CONN_DEFAULT]="CONN_DEFAULT"; var Wv={DETAILED_NETWORK_TYPE_NR_NSA:126,DETAILED_NETWORK_TYPE_NR_SA:125,DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED:124,DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT:123,DETAILED_NETWORK_TYPE_DISCONNECTED:122,DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN:121,DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN:120,DETAILED_NETWORK_TYPE_WIMAX:119,DETAILED_NETWORK_TYPE_ETHERNET:118,DETAILED_NETWORK_TYPE_BLUETOOTH:117,DETAILED_NETWORK_TYPE_WIFI:116,DETAILED_NETWORK_TYPE_LTE:115,DETAILED_NETWORK_TYPE_HSPAP:114,DETAILED_NETWORK_TYPE_EHRPD:113, DETAILED_NETWORK_TYPE_EVDO_B:112,DETAILED_NETWORK_TYPE_UMTS:111,DETAILED_NETWORK_TYPE_IDEN:110,DETAILED_NETWORK_TYPE_HSUPA:109,DETAILED_NETWORK_TYPE_HSPA:108,DETAILED_NETWORK_TYPE_HSDPA:107,DETAILED_NETWORK_TYPE_EVDO_A:106,DETAILED_NETWORK_TYPE_EVDO_0:105,DETAILED_NETWORK_TYPE_CDMA:104,DETAILED_NETWORK_TYPE_1_X_RTT:103,DETAILED_NETWORK_TYPE_GPRS:102,DETAILED_NETWORK_TYPE_EDGE:101,DETAILED_NETWORK_TYPE_UNKNOWN:0};Wv[Wv.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA"; Wv[Wv.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";Wv[Wv.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";Wv[Wv.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";Wv[Wv.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";Wv[Wv.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";Wv[Wv.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN"; Wv[Wv.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";Wv[Wv.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";Wv[Wv.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";Wv[Wv.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";Wv[Wv.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";Wv[Wv.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";Wv[Wv.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";Wv[Wv.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B"; Wv[Wv.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";Wv[Wv.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";Wv[Wv.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";Wv[Wv.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";Wv[Wv.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";Wv[Wv.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";Wv[Wv.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";Wv[Wv.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA"; Wv[Wv.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";Wv[Wv.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";Wv[Wv.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";Wv[Wv.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var Xv={LATENCY_PLAYER_RTSP:7,LATENCY_PLAYER_HTML5_INLINE:6,LATENCY_PLAYER_HTML5_FULLSCREEN:5,LATENCY_PLAYER_HTML5:4,LATENCY_PLAYER_FRAMEWORK:3,LATENCY_PLAYER_FLASH:2,LATENCY_PLAYER_EXO:1,LATENCY_PLAYER_UNKNOWN:0}; Xv[Xv.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";Xv[Xv.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";Xv[Xv.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";Xv[Xv.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";Xv[Xv.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";Xv[Xv.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";Xv[Xv.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";Xv[Xv.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN"; var Yv={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};Yv[Yv.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";Yv[Yv.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";Yv[Yv.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";Yv[Yv.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var fw={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0}; fw[fw.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";fw[fw.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var gw={LIVE_STREAM_MODE_WINDOW:5,LIVE_STREAM_MODE_POST:4,LIVE_STREAM_MODE_LP:3,LIVE_STREAM_MODE_LIVE:2,LIVE_STREAM_MODE_DVR:1,LIVE_STREAM_MODE_UNKNOWN:0};gw[gw.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";gw[gw.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";gw[gw.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP"; gw[gw.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";gw[gw.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";gw[gw.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var hw={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};hw[hw.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";hw[hw.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";hw[hw.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";hw[hw.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED"; var iw={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};iw[iw.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";iw[iw.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";iw[iw.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var jw={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};jw[jw.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN"; jw[jw.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";jw[jw.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var usa="actionVisualElement spinnerInfo resourceInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo prefetchInfo accelerationSession webInfo tvInfo kabukiInfo mwebInfo musicInfo".split(" ");var Mv=g.C.ytLoggingLatencyUsageStats_||{};g.Ia("ytLoggingLatencyUsageStats_",Mv);Kv.prototype.tick=function(a,b,c,d){Nv(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.P("web_csi_via_jspb")?(d=new op,g.E(d,1,a),g.E(d,2,b),a=new rp,dd(a,op,5,ju,d),iu(a,c)):g.cr("latencyActionTicked",{tickName:a,clientActionNonce:b},c))}; Kv.prototype.info=function(a,b,c){var d=Object.keys(a).join("");Nv(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.cr("latencyActionInfo",a,{cttAuthInfo:c}))}; Kv.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{ZG:b,Ps:c}}; Vw.prototype.isFocused=function(a){return a>=this.B&&aa.Ha&&this.index.getFirstSegmentNumber()<=a.Ha+1}; g.h.update=function(a,b,c){this.index.append(a);$sa(this.index,c);this.index.B=b}; g.h.Hf=function(){return this.Vu()?!0:Yx.prototype.Hf.call(this)}; g.h.Fo=function(a,b){var c=this.index.getSegmentURL(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0c&&(this.segments=this.segments.slice(b))}}; g.h.wu=function(a){if(!this.Nl)return Uw.prototype.wu.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a=b.endTime)b=b.Ha+Math.floor((a-b.endTime)/this.Jh+1);else{b=Yb(this.segments,function(d){return a=d.endTime?1:0}); if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Ha-b.Ha-1))+1)+b.Ha}return this.Wl(b)}; g.h.Wl=function(a){if(!this.Nl)return Uw.prototype.Wl.call(this,a);if(!this.segments.length)return null;var b=vy(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Jh;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ha-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ha-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ha-d.Ha-1),d=d.endTime+(a-d.Ha-1)*b);return new Tw(a,d,b,0,"sq/"+a,void 0,void 0, !0)};g.w(yy,qy);g.h=yy.prototype;g.h.py=function(){return!0}; g.h.Hf=function(){return!0}; g.h.Eo=function(a){return this.Ir()&&a.u&&!a.Vd||!a.j.index.pH(a.Ha)}; g.h.mp=function(){}; g.h.yn=function(a,b){return"number"!==typeof a||isFinite(a)?qy.prototype.yn.call(this,a,void 0===b?!1:b):new ly([new cy(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.bk,void 0,this.bk*this.info.Mb)],"")}; g.h.Fo=function(a,b){var c=void 0===c?!1:c;if(wy(this.index,a))return qy.prototype.Fo.call(this,a,b);var d=this.index.getStartTime(a);return new ly([new cy(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,b?0:this.bk*this.info.Mb,!b)],0<=a?"sq/"+a:"")};g.w(zy,Yx);g.h=zy.prototype;g.h.tm=function(){return!1}; g.h.Ir=function(){return!1}; g.h.py=function(){return!1}; g.h.mp=function(){return new ly([new cy(1,this,void 0,"otfInit")],this.I)}; g.h.It=function(){return null}; g.h.Bw=function(a){this.Eo(a);return hua(this,hy(a),!1)}; g.h.yn=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return hua(this,a,!0)}; g.h.SG=function(a){1===a.info.type&&(this.j||(this.j=dta(a.j)),a.u&&"http://youtube.com/streaming/otf/durations/112015"===a.u.uri&&iua(this,a.u))}; g.h.Eo=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ha&&this.index.getFirstSegmentNumber()<=a.Ha+1}; g.h.AG=function(){return 0}; g.h.HI=function(){return!1};g.h=Ay.prototype;g.h.getOffset=function(a){return this.offsets[a]}; g.h.getStartTime=function(a){return this.j[a]/this.B}; g.h.getStartTimeInPeriod=function(){return 0}; g.h.getIngestionTime=function(){return NaN}; g.h.getDuration=function(a){a=this.getDurationTicks(a);return 0<=a?a/this.B:-1}; g.h.getDurationTicks=function(a){return a+1=this.getLastSegmentNumber())return 0;var c=0;for(b=this.getStartTime(a)+b;athis.getStartTime(a);a++)c=Math.max(c,this.getByteLength(a)/this.getDuration(a));return c}; g.h.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.j;this.j=new Float64Array(a+1);for(a=0;athis.info.u||4===this.info.type)return!0;var b=Dy(this),c=b.getUint32(0,!1);b=b.getUint32(4,!1);a.infotype=this.info.type.toString();a.slicesize=c.toString();a.boxtype=b.toString();if(2===this.info.type)return c===this.info.u&&1936286840===b;if(3===this.info.type&&0===this.info.yb)return 1836019558===b||1936286840=== b||1937013104===b||1718909296===b||1701671783===b||1936419184===b}else if(2===this.info.j.info.containerType){if(4>this.info.u||4===this.info.type)return!0;c=Dy(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.yb)return 524531317===c||440786851===c}return!0};g.w(Gy,Yx);g.h=Gy.prototype;g.h.mp=function(a){var b=new cy(2,this,this.indexRange,"indexInfo"),c=[new cy(1,this,this.initRange,"initInfo"),b];0=this.index.getOffset(c+1);)c++;return Hy(this,c,b,a.u).j}; g.h.Eo=function(a){dy(a);return this.Hf()?!0:a.range.end+1this.info.contentLength&&(b=new $x(b.start,this.info.contentLength-1)),new ly([new cy(4,a.j,b,"getNextRequestInfoByLength")]);4===a.type&&(a=this.Dv(a),a=a[a.length-1]);var c=0,d=a.range.start+a.yb+a.u;3===a.type&&(dy(a),c=a.Ha,d===a.range.end+1&&(c+=1));return Hy(this,c,d,b)}; g.h.Bw=function(){return null}; g.h.yn=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return Hy(this,a,this.index.getOffset(a),0)}; g.h.tm=function(){return!0}; g.h.Ir=function(){return!0}; g.h.py=function(){return!1}; g.h.AG=function(){return this.indexRange.length+this.initRange.length}; g.h.HI=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};Iy.prototype.isMultiChannelAudio=function(){return 2this.sB()?(this.Xb.appendWindowEnd=b,this.Xb.appendWindowStart=a):(this.Xb.appendWindowStart=a,this.Xb.appendWindowEnd=b))}; g.h.HG=function(){return this.timestampOffset}; g.h.nD=function(a){mP?this.timestampOffset=a:this.supports(1)&&(this.Xb.timestampOffset=a)}; g.h.pd=function(){return mP?this.timestampOffset:this.supports(1)?this.Xb.timestampOffset:0}; g.h.Xf=function(a){if(void 0===a?0:a)return this.HA||this.wi()||(this.IM=this.Xf(!1),this.HA=!0),this.IM;try{return this.Xb?this.Xb.buffered:this.xf?this.xf.webkitSourceBuffered(this.id):cz([0],[Infinity])}catch(b){return cz([],[])}}; g.h.wi=function(){var a;return(null==(a=this.Xb)?void 0:a.updating)||!1}; g.h.ip=function(){return this.dC}; g.h.wB=function(){return this.MO}; g.h.fK=function(a,b){this.containerType!==a&&(this.supports(4),lz()&&this.Xb.changeType(b));this.containerType=a}; g.h.xB=function(){return this.Be}; g.h.isView=function(){return!1}; g.h.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.Xb)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.Xb)||!c.appendBuffer);case 2:var d;return!(null==(d=this.Xb)||!d.remove);case 3:var e,f;return!!((null==(e=this.Xb)?0:e.addEventListener)&&(null==(f=this.Xb)?0:f.removeEventListener));case 4:return!(!this.Xb||!this.Xb.changeType);default:return!1}}; g.h.LA=function(){return!this.wi()}; g.h.isLocked=function(){return!1}; g.h.Lb=function(a){a.to=this.pd();a.up=this.wi();var b,c=(null==(b=this.Xb)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.Xb)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=dz(this.Xf())}catch(e){}return a}; g.h.Y=function(){this.supports(3)&&(this.Xb.removeEventListener("updateend",this.Lc),this.Xb.removeEventListener("error",this.Lc));g.Ut.prototype.Y.call(this)}; g.h.DD=function(a,b,c){if(!this.supports(2)||this.wi())return!1;var d=this.Xf(),e=ez(d,a);if(0>e)return!1;try{if(b&&e+1eVa){t_=eVa;break a}}var fVa=u_.match("("+g.ve(cVa).join("|")+")");t_=fVa?cVa[fVa[0]]:0}else t_=void 0}var MA=t_,LA=0<=MA;var mwa={RED:"red",xja:"white"};var kwa={L2:"adunit",F7:"detailpage",V7:"editpage",Y7:"embedded",d8:"embedded_unbranded",P$:"leanback",Wea:"previewpage",Zea:"profilepage",dia:"unplugged",Lea:"playlistoverview",Xga:"sponsorshipsoffer",Dga:"shortspage"};yva.prototype.bb=function(a){return"true"===this.flags[a]};Uz.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;pq?a=a||gVa[b]:2.2===MA?a=a||hVa[b]:iq()&&(a=a||iVa[b]);return!!a}; Uz.prototype.isTypeSupported=function(a){return this.J?window.cast.receiver.platform.canDisplayType(a):Yy(a)}; var hVa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},iVa={"application/x-mpegURL":"maybe"},gVa={"application/x-mpegURL":"maybe"};var Eva=Promise.resolve(),Hva=window.queueMicrotask?window.queueMicrotask.bind(window):Fva;Xz.prototype.enqueue=function(a,b){this.queue.push({url:a,options:b});Iva(this)}; Xz.prototype.flush=function(){for(;this.queue.length;){var a=this.queue.shift();g.Xp(a.url,a.options)}};g.w(Yz,g.Ut);Yz.prototype.add=function(a,b){!this.items[a]&&(b.ix||b.NA||b.Oz)&&(this.items[a]=sca(b),this.W("vast_info_card_add",a))}; Yz.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b}; Yz.prototype.get=function(a){return this.items[a]||null}; Yz.prototype.isEmpty=function(){return g.Ae(this.items)};var TA={jaa:1,maa:2,naa:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var Jva=!1,$z,aA,bA,cA,dA;eA.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.u,d=0;dthis.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d=this.j&&(this.u=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.j;this.C=!0}; uA.prototype.wh=function(){return this.D?(vA(this,this.B-this.D)+vA(this,this.B)+vA(this,this.B+this.D))/3:vA(this,this.B)};g.w(gwa,g.I);var lwa="blogger gac books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),qwa={O3:"cbrand",P3:"cbr",Q3:"cbrver",J9:"c",M9:"cver",L9:"ctheme",K9:"cplayer",Aca:"cmodel",Ada:"cnetwork",Wda:"cos",Xda:"cosver",Dea:"cplatform"};g.w($A,g.I);g.h=$A.prototype;g.h.K=function(a){return this.experiments.bb(a)}; g.h.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.cB(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.QA(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,pq&&(a=Wka())&&(b.ebc=a));return g.ph(d,b)}; g.h.getVideoEmbedCode=function(a,b,c){a="https://"+g.cB(this)+"/embed/"+a;c&&(a=g.ph(a,{list:c}));c=b.width;b=b.height;a=g.Qf(a);return''}; g.h.isMusic=function(){return"music-embed"===this.playerStyle}; g.h.supportsGaplessAudio=function(){return g.Zy&&!pq&&74<=yla()||g.pw&&g.ic(68)?!0:!1}; g.h.getPlayerType=function(){return this.deviceParams.cplayer}; var twa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"];g.h=xB.prototype;g.h.Yf=function(){return this.j}; g.h.Dw=function(){return null}; g.h.qL=function(){var a=this.Dw();return a?(a=g.Jp(a.j),Number(a.expire)):NaN}; g.h.hJ=function(){}; g.h.Vb=function(){return this.j.Vb()}; g.h.getHeight=function(){return this.j.video.height};uwa.prototype.Le=function(){xwa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.r(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.Dc){if(e.Dc.getIsDefault()){c=e.Dc.getId();break a}c||(c=e.Dc.getId())}}d=g.r(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.I||!e.Dc||e.Dc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.r(this.u);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.j])for(e=g.r(e),f=e.next();!f.done;f= e.next()){var k=a,l=k.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Dc){p=f.Dc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=zB(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(wwa(f,d)+'",URI="'+(q+'"'));l.call(k,m)}c=g.r(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=jVa,d=(k=d.Dc)?'#EXT-X-MEDIA:URI="'+zB(this,d.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+k.getId()+'",NAME="'+k.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0f.getHeight())&&c.push(f)}return c}; PC.prototype.I=function(a,b,c,d){return new g.OC(a,b,c,d)};g.w(QC,g.OC);g.h=QC.prototype;g.h.nA=function(){return this.u.getNumberOfSegments()}; g.h.oA=function(a){var b=this.rows*this.columns*this.D,c=this.u,d=c.getLastSegmentNumber();a=c.getSegmentNumberForTime(a);return a>d-b?-1:a}; g.h.Jt=function(){return this.u.getLastSegmentNumber()}; g.h.zE=function(){return this.u.getFirstSegmentNumber()}; g.h.rL=function(a){this.u=a};g.w(RC,PC);RC.prototype.u=function(a,b){return PC.prototype.u.call(this,"$N|"+a,b)}; RC.prototype.I=function(a,b,c){return new QC(a,b,c,this.isLive)};g.w(g.TC,g.Ut);g.h=g.TC.prototype;g.h.S=function(){return this.u}; g.h.K=function(a){return this.u.K(a)}; g.h.Of=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.h.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.Xc)||!a.sb)}; g.h.NP=function(){this.isDisposed()||(this.j.u||this.j.unsubscribe("refresh",this.NP,this),this.UM(-1))}; g.h.UM=function(a){if(!this.isLivePlayback||!this.U||"fairplay"!=this.U.flavor){var b=Rua(this.j,this.pK);if(0=this.U&&(g.R(Error("durationMs was specified incorrectly with a value of: "+this.U)),this.Li());this.Hk();this.G.addEventListener("progresssync",this.Z)}; g.h.gm=function(){DE.prototype.gm.call(this);this.Sf("adabandonedreset",!0)}; g.h.Hk=function(){var a=this.G.S();mw("apbs",void 0,"video_to_ad");g.Tv("ad_at","0_0","video_to_ad");DE.prototype.Hk.call(this);this.D=a.K("disable_rounding_ad_notify")?this.G.getCurrentTime():Math.floor(this.G.getCurrentTime());this.I=this.D+this.U/1E3;g.YA(a)?this.G.Ia("onAdMessageChange",{renderer:this.B.j,startTimeSecs:this.D}):Sya(this,[new Wya(this.B.j)]);a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.wu(),c=this.B.j.videoAdBreakOffsetMsInt64;b&&g.cr("adNotify",{clientScreenNonce:b, adMediaTimeMs:Math.floor(1E3*this.I),timeToAdBreakSec:Math.ceil(this.I-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.J){this.V=!0;b=this.B.j;if(!LE(b)){g.lu(Error("adMessageRenderer is not augmented on ad started"));return}a=b.slot;b=b.layout;c=g.r(this.J.listeners);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a,f=b;gza(d.j(),e);PU(d.j(),e,f)}}g.U(this.G.vb(1),512)&&(g.lu(Error("player stuck during adNotify")),a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce|| "",b=g.wu(),c=this.B.j.videoAdBreakOffsetMsInt64,b&&g.cr("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.I),timeToAdBreakSec:Math.ceil(this.I-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.Li())}; g.h.Li=function(){DE.prototype.Li.call(this);this.Sf("adended",!0)}; g.h.hm=function(a){g.lu(new g.hr("Player error during adNotify.",{errorCode:a}));DE.prototype.hm.call(this,a);this.Sf("aderror",!0)}; g.h.Sf=function(a,b){(void 0===b?0:b)||g.lu(Error("TerminateAd directly called from other class during adNotify."));this.G.removeEventListener("progresssync",this.Z);this.Uq();Zya(this,a);"adended"===a||"aderror"===a?this.W("adnotifyexitednormalorerror"):this.W(a)}; g.h.dispose=function(){this.G.removeEventListener("progresssync",this.Z);Zya(this);DE.prototype.dispose.call(this)}; g.h.Uq=function(){g.YA(this.G.S())?this.G.Ia("onAdMessageChange",{renderer:null,startTimeSecs:this.D}):DE.prototype.Uq.call(this)};PE.prototype.sendAdsPing=function(a){this.B.send(a,$ya(this),{})}; PE.prototype.tf=function(a){var b=this;if(a){var c=$ya(this);Array.isArray(a)?a.forEach(function(d){return b.j.executeCommand(d,c)}):this.j.executeCommand(a,c)}};g.w(QE,DE);g.h=QE.prototype;g.h.Kx=function(){return{currentTime:this.G.getCurrentTime(2,!1),duration:this.B.u,isPlaying:tya(this.G),isVpaid:!1,isYouTube:!0,volume:this.G.isMuted()?0:this.G.getVolume()/100}}; g.h.pA=function(){var a=this.B.j.legacyInfoCardVastExtension,b=this.B.Vg();a&&b&&this.G.S().V.add(b,{ix:a});try{var c=this.B.j.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{fga(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.df("//tpc.googlesyndication.com/sodar/%{path}");g.lu(new g.hr("Load Sodar Error.",d instanceof bf,d.constructor===bf,{Message:e.message,"Escaped injector basename":g.Qf(c.siub),"BG vm basename":c.bgub}));if(d.constructor===bf)throw e;}}catch(e){g.R(e)}MD(this.G,!1);a= zya(this.B);b=this.G.S();a.iv_load_policy=b.isMobile||g.YA(b)||g.iB(b)?3:1;b=this.G.getVideoData(1);b.gh&&(a.ctrl=b.gh);b.Fh&&(a.ytr=b.Fh);b.Zm&&(a.ytrcc=b.Zm);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.qj&&(a.vss_credentials_token_type=b.qj),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.W("adunstarted",-1);this.U?this.I.start():(this.G.cueVideoByPlayerVars(a,2),this.I.start(),this.G.playVideo(2))}; g.h.Xx=function(){DE.prototype.Xx.call(this);this.W("adpause",2)}; g.h.Yx=function(){DE.prototype.Yx.call(this);this.W("adplay",1)}; g.h.Hk=function(){DE.prototype.Hk.call(this);this.I.stop();this.V.N(this.G,g.mv("bltplayback"),this.JT);var a=new g.kv(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.G.Sd([a],2);a=UE(this);this.D.xa=a;if(this.G.isMuted()){a=this.j;var b=this.G.isMuted();oE(a)||qE(a,b?"mute":"unmute")}this.W("adplay",1);if(null!==this.J){a=null!==this.D.j.getVideoData(1)?this.D.j.getVideoData(1).clientPlaybackNonce:"";b=cza(this);for(var c=this.B,d=bza(this),e=g.r(this.J.listeners), f=e.next();!f.done;f=e.next()){f=f.value;var k=b,l=c,m=d,n=[],p=l.Vg(),q=l.getVideoUrl();p&&n.push(new NT(p));q&&n.push(new OT(q));(q=(p=l.j)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new QT(q)),(q=q.elementId)&&n.push(new $T(q))):S("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new RT(p));l.j.adNextParams&&n.push(new CT(l.j.adNextParams||""));(p=l.ma)&&n.push(new DT(p));(p=f.Na.get().Cf(2))?(n.push(new HT({channelId:p.gk, channelThumbnailUrl:p.profilePicture,channelTitle:p.author,videoTitle:p.title})),n.push(new IT(p.isListed))):S("Expected meaningful PlaybackData on ad started.");n.push(new KT(l.B));n.push(new gU(l.u));n.push(new PT(a));n.push(new cU({current:this}));p=l.Ga;null!=p.kind&&n.push(new JT(p));(p=l.Ca)&&n.push(new tU(p));void 0!==m&&n.push(new uU(m));f.j?S(f.j.layoutId===k?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):dza(f,k,n,!0,l.j.adLayoutLoggingData)}}this.G.Ia("onAdStart", UE(this));a=g.r(this.B.j.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)}; g.h.JT=function(a){"bltcompletion"==a.getId()&&(this.G.yf("bltplayback",2),rE(this.j,this.getDuration()),TE(this,"adended"))}; g.h.Li=function(){DE.prototype.Li.call(this);this.Sf("adended");for(var a=g.r(this.B.j.completeCommands||[]),b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)}; g.h.gm=function(){DE.prototype.gm.call(this);this.Sf("adabandoned")}; g.h.eD=function(){var a=this.j;nE(a)||vE(a,"clickthrough");this.C||(a=this.j,nE(a)||vE(a,"unmuted_clickthrough"))}; g.h.Wy=function(){this.OG()}; g.h.OG=function(){DE.prototype.OG.call(this);this.Sf("adended")}; g.h.hm=function(a){DE.prototype.hm.call(this,a);this.Sf("aderror")}; g.h.Sf=function(a){this.I.stop();MD(this.G,!0);"adabandoned"!=a&&this.G.Ia("onAdComplete");TE(this,a);this.G.Ia("onAdEnd",UE(this));this.W(a)}; g.h.Uq=function(){var a=this.G.S();g.YA(a)&&(g.iB(a)||a.K("enable_topsoil_wta_for_halftime")||a.K("enable_topsoil_wta_for_halftime_live_infra")||g.YA(a))?this.G.Ia("onAdInfoChange",null):DE.prototype.Uq.call(this)}; g.h.aR=function(){this.BX&&this.G.playVideo()}; g.h.BX=function(){return 2==this.G.getPlayerState(2)}; g.h.tN=function(a,b){if(!Number.isFinite(a))return g.R(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.R(Error("Start time is not earlier than end time")),"";var c=1E3*this.B.u,d=zya(this.B);d=this.G.Rt(d,2,c,a,b);a+c>b&&this.G.Vv(d,b-a);return d}; g.h.dispose=function(){tya(this.G)&&!this.U&&this.G.stopVideo(2);TE(this,"adabandoned");DE.prototype.dispose.call(this)};VE.prototype.reduce=function(a){switch(a.event){case "start":case "continue":case "predictStart":case "stop":break;case "unknown":return;default:return}var b=a.identifier;var c=this.j[b];c?b=c:(c={nx:null,SO:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(cGD&&(a=Math.max(.1,a)),this.tA(a))}; g.h.stopVideo=function(){var a=this;if(!this.B)if(M_){if(!this.C){var b=new aF;b.then(void 0,function(){}); this.C=b;vVa&&this.pause();g.Sp(function(){a.C===b&&(eF(a),b.resolve())},200)}}else eF(this)}; g.h.Fu=function(){var a=this.Ag();return 0b.j.getCurrentTime(2,!1)&&!b.j.S().K("html5_dai_pseudogapless_seek_killswitch")))){c= b.ad;if(c.oy()){var d=b.B.G.S().K("html5_dai_enable_active_view_creating_completed_adblock");Jja(c.I,d)}b.ad.D.seek=!0}0>BE(a,4)&&!(0>BE(a,2))&&(b=this.j,c=b.j,nE(c)||zE(c,"resume"),b.C||(b=b.j,nE(b)||zE(b,"unmuted_resume")));!this.G.S().experiments.bb("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.CE(a,512)&&!g.oF(a.state)&&this.D.Nv()}}}; g.h.onVideoDataChange=function(){return this.daiEnabled?Bza(this):!1}; g.h.resume=function(){this.j&&this.j.aR()}; g.h.Xo=function(){this.j&&this.j.Sf("adended")}; g.h.Ul=function(){this.Xo()}; g.h.Sj=function(a){this.Sg.Sj(a)}; g.h.KT=function(a){this.Sg.j.Ia("onAdUxUpdate",a)}; g.h.onAdUxClicked=function(a){this.j.Bg(a)}; g.h.GN=function(){return 0}; g.h.HN=function(){return 1}; g.h.YJ=function(a){this.daiEnabled&&this.u.I&&this.u.j.start<=a&&a=this.C?this.B.j:this.B.j.slice(this.C)).some(function(a){return a.Qu()})}; g.h.vy=function(){return this.I instanceof YD||this.I instanceof HE}; g.h.uQ=function(){this.daiEnabled?KD(this.G)&&Bza(this):nAa(this)}; g.h.Ew=function(a){var b=mAa(a);this.I&&b&&this.P!==b&&(b?dBa(this.Sg):fBa(this.Sg),this.P=b);this.I=a;this.daiEnabled&&(this.C=this.B.j.findIndex(function(c){return c===a})); qF.prototype.Ew.call(this,a)}; g.h.CH=function(a){var b=this;qF.prototype.CH.call(this,a);a.subscribe("adnotifyexitednormalorerror",function(){return void uF(b)})}; g.h.Ul=function(){this.C=this.B.j.length;this.j&&this.j.Sf("adended");uF(this)}; g.h.Xo=function(){this.onAdEnd()}; g.h.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Sj(0),a?uF(this,b):nAa(this))}; g.h.yP=function(){if(1==this.B.u)this.I instanceof IE&&g.lu(Error("AdNotify error with FailureMode.TERMINATING")),uF(this);else this.onAdEnd()}; g.h.CB=function(){var a=0>=this.C?this.B.j:this.B.j.slice(this.C);return 0BE(a,16)&&(this.J.forEach(this.eI,this),this.J.clear())}; g.h.X_=function(){if(this.u)this.u.onVideoDataChange()}; g.h.b0=function(){if(KD(this.j)&&this.u){var a=this.j.getCurrentTime(2,!1),b=this.u;b.j&&Tya(b.j,a)}}; g.h.iY=function(){this.Pa=!0;if(this.u){var a=this.u;a.j&&a.j.gm()}}; g.h.uY=function(a){if(this.u)this.u.onAdUxClicked(a)}; g.h.d0=function(){if(2==this.j.getPresentingPlayerType()&&this.u){var a=this.u.j,b=a.j,c=a.G.isMuted();oE(b)||qE(b,c?"mute":"unmute");a.C||(b=a.G.isMuted(),qE(a.j,b?"unmuted_mute":"unmuted_unmute"))}}; g.h.gZ=function(a){if(this.u){var b=this.u.j,c=b.j;nE(c)||vE(c,a?"fullscreen":"end_fullscreen");b.C||(b=b.j,nE(b)||vE(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}}; g.h.Kg=function(a,b){this.j.Kg(a,b);a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.Lq.delete(b),this.B.delete(b)}; g.h.Q1=function(){for(var a=[],b=g.r(this.Lq),c=b.next();!c.done;c=b.next())c=c.value,pv(c)||a.push(c);b=this.j.app;1!==b.getPresentingPlayerType()||JS(b,"cuerangemarkersupdated",a)}; g.h.Sj=function(a){this.j.Sj(a);switch(a){case 1:this.RB=1;break;case 0:this.RB=0}}; g.h.yJ=function(){var a=this.j.getVideoData(2);return a?a.isListed&&!this.P:!1}; g.h.Xo=function(){this.u&&this.u.Fr()&&this.u.Xo()}; g.h.Ul=function(){this.u&&this.u.Fr()&&this.u.Ul()}; g.h.kB=function(){}; g.h.PA=function(){}; g.h.Rb=function(a){if(this.u){var b=this.u;b.j&&Tya(b.j,a)}}; g.h.executeCommand=function(a,b,c){this.ib.executeCommand(a,b,aBa(this,void 0===c?null:c))}; g.h.isDaiEnabled=function(){return!1}; g.h.EN=function(){return this.ma}; g.h.FN=function(){return this.Ca};g.w(YF,g.I);YF.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.j.appendChild(a.j)}; g.w(ZF,YF);g.w(iBa,g.I);var kBa=1;g.w(g.aG,g.I);g.h=g.aG.prototype; g.h.createElement=function(a,b){b=b||"svg"===a.F;var c=a.L,d=a.Aa;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.F);g.mB&&(a.T||(a.T={}),a.T.focusable="false")}else e=g.ig(a.F);if(c){if(c=bG(this,e,"class",c))cG(this,e,"class",c),this.Kb[c]=e}else if(d){c=g.r(d);for(var f=c.next();!f.done;f=c.next())this.Kb[f.value]=e;cG(this,e,"class",d.join(" "))}d=a.X;c=a.R;if(d)b=bG(this,e,"child",d),void 0!==b&&e.appendChild(g.jg(b));else if(c)for(d=0,c=g.r(c),f=c.next();!f.done;f=c.next())if(f= f.value)if("string"===typeof f)f=bG(this,e,"child",f),null!=f&&e.appendChild(g.jg(f));else if(f.element)e.appendChild(f.element);else{var k=f;f=this.createElement(k,b);e.appendChild(f);k.Ib&&(k=$F(),f.id=k,f=document.createElementNS("http://www.w3.org/2000/svg","use"),f.setAttribute("class","ytp-svg-shadow"),f.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+k),g.lg(e,f,d++))}if(a=a.T)for(b=e,d=g.r(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],cG(this,b,c,"string"===typeof f? bG(this,b,c,f):f);return e}; g.h.va=function(a){return this.Kb[a]}; g.h.ra=function(a,b){"number"===typeof b?g.lg(a,this.element,b):a.appendChild(this.element)}; g.h.detach=function(){g.mg(this.element)}; g.h.update=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.updateValue(c,a[c])}; g.h.updateValue=function(a,b){(a=this.Ge["{{"+a+"}}"])&&cG(this,a[0],a[1],b)}; g.h.Y=function(){this.Kb={};this.Ge={};this.detach();g.I.prototype.Y.call(this)};g.w(g.V,g.aG);g.h=g.V.prototype;g.h.Gd=function(a,b){this.updateValue(b||"content",a)}; g.h.show=function(){this.kb||(g.Bk(this.element,"display",""),this.kb=!0)}; g.h.hide=function(){this.kb&&(g.Bk(this.element,"display","none"),this.kb=!1)}; g.h.hc=function(a){this.Z=a}; g.h.Ja=function(a,b,c){return this.N(this.element,a,b,c)}; g.h.N=function(a,b,c,d){c=(0,g.Sa)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d}; g.h.pc=function(a){var b=this;this.listeners.forEach(function(c,d){c===a&&(c=b.listeners.splice(d,1)[0],c.target.removeEventListener(c.type,c.listener))})}; g.h.focus=function(){var a=this.element;qg(a);a.focus()}; g.h.Y=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.aG.prototype.Y.call(this)};g.w(g.eG,g.V);g.eG.prototype.subscribe=function(a,b,c){return this.Pa.subscribe(a,b,c)}; g.eG.prototype.unsubscribe=function(a,b,c){return this.Pa.unsubscribe(a,b,c)}; g.eG.prototype.pg=function(a){return this.Pa.pg(a)}; g.eG.prototype.W=function(a){return this.Pa.W.apply(this.Pa,[a].concat(g.v(g.Da.apply(1,arguments))))};var xVa=new WeakSet;g.w(fG,g.eG);g.h=fG.prototype;g.h.bind=function(a){if(!this.Qa&&a.renderer){var b=this.api.S().K("enable_macro_substitution_on_html5")?{}:Object.assign({},hBa(this.api),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()}; g.h.init=function(a,b,c){this.Qa=a;this.element.setAttribute("id",this.Qa);this.Za&&g.vn(this.element,this.Za);this.P=b&&b.adRendererCommands;this.macros=c;this.I=b.trackingParams||null;null!=this.I&&this.Vh(this.element,this.I)}; g.h.clear=function(){}; g.h.hide=function(){g.eG.prototype.hide.call(this);null!=this.I&&this.Va(this.element,!1)}; g.h.show=function(){g.eG.prototype.show.call(this);if(!this.ib){this.ib=!0;var a=this.P&&this.P.impressionCommand;a&&this.jD(a,null)}null!=this.I&&this.Va(this.element,!0)}; g.h.onClick=function(a){if(this.I&&!xVa.has(a)){var b=this.element;this.api.Dn(b)&&this.kb&&this.api.qb(b,this.interactionLoggingClientData);xVa.add(a)}if(a=this.P&&this.P.clickCommand)a=this.EQ(a),this.jD(a,this.JN())}; g.h.EQ=function(a){return a}; g.h.JN=function(){return null}; g.h.QT=function(a){var b=this.V;b.J=!0;b.u=a.touches.length;b.j.isActive()&&(b.j.stop(),b.D=!0);a=a.touches;b.I=jBa(b,a)||1!=a.length;var c=a.item(0);b.I||!c?(b.P=Infinity,b.U=Infinity):(b.P=c.clientX,b.U=c.clientY);for(c=b.B.length=0;cMath.pow(5,2))b.C=!0}; g.h.OT=function(a){if(this.V){var b=this.V,c=a.changedTouches;c&&b.J&&1==b.u&&!b.C&&!b.D&&!b.I&&jBa(b,c)&&(b.V=a,b.j.start());b.u=a.touches.length;0===b.u&&(b.J=!1,b.C=!1,b.B.length=0);b.D=!1}}; g.h.jD=function(a){this.api.S().K("enable_macro_substitution_on_html5")?(0Math.random())&&g.lu(Error("Found AdImage without valid image URL")):(this.j?g.Bk(this.element,"backgroundImage","url("+c+")"):eg(this.element,{src:c}),eg(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"), this.show())}; AG.prototype.clear=function(){this.hide()};g.w(BG,fG);g.h=BG.prototype;g.h.hide=function(){fG.prototype.hide.call(this);this.B&&this.B.focus()}; g.h.show=function(){this.B=document.activeElement;fG.prototype.show.call(this);this.C.focus()}; g.h.init=function(a,b,c){fG.prototype.init.call(this,a,b,c);this.u=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.R(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.R(Error("ConfirmDialogRenderer.cancelLabel was not set.")):JBa(this,b):g.R(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.h.clear=function(){g.Tt(this.j);this.hide()}; g.h.bI=function(){this.hide()}; g.h.AE=function(){var a=this.u.cancelEndpoint;a&&(this.api.S().K("enable_macro_substitution_on_html5")?this.layoutId?this.Ta.executeCommand(a,this.layoutId):g.R(Error("Missing layoutId for confirm dialog.")):GG(this.Ta,a,this.macros));this.hide()}; g.h.cI=function(){var a=this.u.confirmNavigationEndpoint||this.u.confirmEndpoint;a&&(this.api.S().K("enable_macro_substitution_on_html5")?this.layoutId?this.Ta.executeCommand(a,this.layoutId):g.R(Error("Missing layoutId for confirm dialog.")):GG(this.Ta,a,this.macros));this.hide()};g.w(CG,fG);g.h=CG.prototype; g.h.init=function(a,b,c){fG.prototype.init.call(this,a,b,c);this.u=b;if(null==b.defaultText&&null==b.defaultIcon)g.R(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.R(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.vn(this.B,a)}a={};b.defaultText? (c=g.rv(b.defaultText),g.fb(c)||(a.buttonText=c,this.j.setAttribute("aria-label",c))):g.Tk(this.ma,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.U.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=tG(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.J=!0,c=tG(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.Tk(this.D,!0),g.Tk(this.C,!1)),g.Tk(this.j,!1)):g.Tk(this.U,!1);g.Ae(a)||this.update(a); b.isToggled&&(g.vn(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));DG(this);this.N(this.element,"change",this.sL);this.show()}}; g.h.onClick=function(a){0a&&g.R(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Ka&&g.vn(this.u.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.ma=null==a||0===a?this.j.Ix():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.B.init(ND("ad-text"),d,c);(d=this.api.getVideoData(1))&& d.zl&&b.thumbnail?this.D.init(ND("ad-image"),b.thumbnail,c):this.J.hide()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){this.u.hide();this.B.hide();this.D.hide();OG(this);MG.prototype.hide.call(this)}; g.h.show=function(){NG(this);this.u.show();this.B.show();this.D.show();MG.prototype.show.call(this)}; g.h.zs=function(){this.hide()}; g.h.Yp=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ca&&a>=this.ma?(this.U.hide(),this.Ca=!0,this.W("i")):this.B&&this.B.isTemplated()&&(a=Math.max(0,Math.ceil((this.ma-a)/1E3)),a!=this.Ga&&(LG(this.B,{TIME_REMAINING:String(a)}),this.Ga=a)))}};g.w(TG,MG);g.h=TG.prototype; g.h.init=function(a,b,c){MG.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.actionButton&&b.actionButton.buttonRenderer&&b.actionButton.buttonRenderer.navigationEndpoint){a=this.api.getVideoData(2);if(null!=a)if(b.image&&b.image.thumbnail){var d=b.image.thumbnail.thumbnails;null!=d&&0=this.ma&&(OG(this),g.xn(this.element,"ytp-flyout-cta-inactive"))}}; g.h.zs=function(){this.clear()}; g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.uL.bind(this))}; g.h.show=function(){this.u&&this.u.show();MG.prototype.show.call(this)}; g.h.hide=function(){this.u&&this.u.hide();MG.prototype.hide.call(this)}; g.h.uL=function(a){"hidden"==a?this.show():this.hide()};g.w(UG,fG);g.h=UG.prototype; g.h.init=function(a,b,c){fG.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(this.B.init(ND("toggle-button"),this.j.likeButton.toggleButtonRenderer,c),this.u.init(ND("toggle-button"),this.j.dislikeButton.toggleButtonRenderer,c),this.N(this.element,"change",this.vL),this.C.show(100),this.show(),a=g.r(this.j&&this.j.impressionCommands||[]),b=a.next();!b.done;b=a.next())b=b.value,this.api.S().K("enable_macro_substitution_on_html5")?this.layoutId?this.Ta.executeCommand(b,this.layoutId): g.R(Error("Missing layoutId for instream user sentiment.")):GG(this.Ta,b,this.macros)}; g.h.clear=function(){this.hide()}; g.h.hide=function(){this.B.hide();this.u.hide();fG.prototype.hide.call(this)}; g.h.show=function(){this.B.show();this.u.show();fG.prototype.show.call(this)}; g.h.vL=function(){Vja(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.Ia("onYtShowToast",this.j.postMessageAction);this.C.hide()}; g.h.onClick=function(a){0=this.J&&YBa(this,!0)};g.w(YG,uG);YG.prototype.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.rv(b.text),a=!g.fb(a));a?null==b.navigationEndpoint?g.lu(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.lu(Error("Button style was not a link-style type in renderer,")):this.show():g.lu(Error("No visit advertiser text was present in the renderer."))};g.w(ZG,fG); ZG.prototype.init=function(a,b,c){fG.prototype.init.call(this,a,b,c);a=b.text;g.fb(gG(a))?g.lu(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.j&&(b=this.api.S(),b=a.text+" "+(b&&b.isMobile?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a.targetId&&(b.targetId=a.targetId),a=new KG(this.api,this.Xa,this.layoutId,this.interactionLoggingClientData,this.Ta),a.init(ND("simple-ad-badge"),b,c),a.ra(this.element),g.J(this,a)),this.show())}; ZG.prototype.clear=function(){this.hide()};g.w($G,OD);g.w(aH,g.Ut);g.h=aH.prototype;g.h.Ix=function(){return this.durationMs}; g.h.stop=function(){this.j&&this.Lc.pc(this.j)}; g.h.Rb=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.W("h")}; g.h.getProgressState=function(){return this.u}; g.h.Uc=function(a){g.CE(a,2)&&this.W("g")};g.w(bH,g.Ut);g.h=bH.prototype;g.h.Ix=function(){return this.durationMs}; g.h.start=function(){this.u||(this.u=!0,this.timer.start())}; g.h.stop=function(){this.u&&(this.u=!1,this.timer.stop())}; g.h.Rb=function(){this.j+=100;var a=!1;this.j>this.durationMs&&(this.j=this.durationMs,this.timer.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.j/1E3};this.Xa&&this.Xa.Rb(this.B.current);this.W("h");a&&this.W("g")}; g.h.getProgressState=function(){return this.B};g.w(eH,MG);g.h=eH.prototype;g.h.init=function(a,b,c){MG.prototype.init.call(this,a,b,c);var d;if(null==b?0:null==(d=b.templatedCountdown)?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){Ep(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.u=new KG(this.api,this.Xa,this.layoutId,this.interactionLoggingClientData,this.Ta);this.u.init(ND("ad-text"),a,{});this.u.ra(this.element);g.J(this,this.u)}this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){OG(this);MG.prototype.hide.call(this)}; g.h.zs=function(){this.hide()}; g.h.Yp=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&this.u&&(a=(this.j instanceof aH?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.j instanceof bH?a.seekableEnd:this.api.getDuration(2,!1))-a.current,LG(this.u,{FORMATTED_AD_DURATION_REMAINING:String(g.cH(a)),TIME_REMAINING:String(Math.ceil(a))}))}}; g.h.show=function(){NG(this);MG.prototype.show.call(this)};g.w(fH,KG);fH.prototype.onClick=function(a){KG.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.w(kH,g.eG);kH.prototype.Rb=function(){var a=this.u.getProgressState();this.progressBar.style.width=100*jH(new gH(a.seekableStart,a.seekableEnd),a.current,0)+"%"}; kH.prototype.onStateChange=function(){g.QA(this.api.S())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.u.subscribe("h",this.Rb,this),this.Rb()):-1!==this.j&&(this.hide(),this.u.pg(this.j),this.j=-1))};g.w(lH,fG); lH.prototype.init=function(a,b,c,d){fG.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new XG(this.api,this.Xa,this.layoutId,this.interactionLoggingClientData,this.Ta,this.j,this.D),c.ra(this.C),c.init(ND("skip-button"),a.skipAdRenderer,this.macros),g.J(this,c)):a.adPreviewRenderer&&(c=new RG(this.api,this.Xa,this.layoutId,this.interactionLoggingClientData,this.Ta,this.j,!1),c.ra(this.C),c.init(ND("ad-preview"),a.adPreviewRenderer,this.macros), SG(c),g.J(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=new UG(this.api,this.Xa,this.layoutId,this.interactionLoggingClientData,this.Ta),c.ra(this.U),c.init(ND("instream-user-sentiment"),a,this.macros),g.J(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new TG(this.api,this.Xa,this.layoutId,this.interactionLoggingClientData,this.Ta,this.j),g.J(this,c),c.ra(this.J),c.init(ND("flyout-cta"),a.flyoutCtaRenderer,this.macros))); d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"An\u00fancio",isTemplated:!1}}),c=new ZG(this.api,this.Xa,this.layoutId,this.interactionLoggingClientData,this.Ta,!0),g.J(this,c),c.ra(this.u),c.init(ND("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new eH(this.api, this.Xa,this.layoutId,this.interactionLoggingClientData,this.Ta,this.j,d),g.J(this,d),d.ra(this.u),d.init(ND("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new JG(this.api,this.Xa,this.layoutId,this.interactionLoggingClientData,this.Ta,this.element),g.J(this,a),a.ra(this.u),a.init(ND("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=$Ba(this)&& this.B?this.B:this.u))&&(a=new YG(this.api,this.Xa,this.layoutId,this.interactionLoggingClientData,this.Ta),g.J(this,a),a.ra(d),a.init(ND("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.S())&&!NA(b)&&"3"==b.controlsType&&(b=new kH(this.api,this.j),b.ra(this.ma),g.J(this,b));this.api.S().K("enable_updated_html5_player_focus_style")&&g.vn(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; lH.prototype.clear=function(){this.hide()};g.Ia("yt.pubsub.publish",g.nt);var sH=Symbol("injectionDeps");qH.prototype.toString=function(){return"InjectionToken("+this.name+")"}; fCa.prototype.resolve=function(a){return a instanceof rH?tH(this,a.key,[],!0):tH(this,a,[])};var JH;var zH={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var O_={},jCa=(O_.WEB_UNPLUGGED="^unplugged/",O_.WEB_UNPLUGGED_ONBOARDING="^unplugged/",O_.WEB_UNPLUGGED_OPS="^unplugged/",O_.WEB_UNPLUGGED_PUBLIC="^unplugged/",O_.WEB_CREATOR="^creator/",O_.WEB_KIDS="^kids/",O_.WEB_EXPERIMENTS="^experiments/",O_.WEB_MUSIC="^music/",O_.WEB_REMIX="^music/",O_.WEB_MUSIC_EMBEDDED_PLAYER="^music/",O_.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",O_);wH.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?zH:c;var d={context:g.AF(a.clickTrackingParams,!1,this.C)};var e=this.j(a);if(e){this.u(d,e,b);var f;b=g.vH(this.B());var k;(e=null==(f=a.commandMetadata)?void 0:null==(k=f.webCommandMetadata)?void 0:k.apiUrl)&&(b=e);f=Tna(uq(b));a=g.P("kevlar_response_command_processor_page")?Object.assign({},{command:a},void 0):Object.assign({},void 0);d={input:f,Gs:vq(f),nm:d,config:a};d.config.Qq?d.config.Qq.identity=c:d.config.Qq={identity:c};return d}g.R(new g.hr("Error: Failed to create Request from Command.", a))}; g.fa.Object.defineProperties(wH.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.w(xH,wH);xH.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",Gs:vq("/getDatasyncIdsEndpoint","GET"),nm:{}}}; xH.prototype.B=function(){return[]}; xH.prototype.j=function(){}; xH.prototype.u=function(){};var yVa={},lCa=(yVa.GET_DATASYNC_IDS=uH(xH),yVa);var qCa="tokens consistency mss client_location entities response_received_commands store PLAYER_PRELOAD".split(" ");g.w(BH,wH);BH.prototype.B=function(){return IUa}; BH.prototype.j=function(a){return a.subscribeEndpoint}; BH.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)}; g.fa.Object.defineProperties(BH.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(CH,wH);CH.prototype.B=function(){return JUa}; CH.prototype.j=function(a){return a.unsubscribeEndpoint}; CH.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)}; g.fa.Object.defineProperties(CH.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(DH,wH);DH.prototype.B=function(){return FUa}; DH.prototype.j=function(a){return a.feedbackEndpoint}; DH.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))}; g.fa.Object.defineProperties(DH.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(EH,wH);EH.prototype.B=function(){return GUa}; EH.prototype.j=function(a){return a.modifyChannelNotificationPreferenceEndpoint}; EH.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.w(FH,wH);FH.prototype.B=function(){return HUa}; FH.prototype.j=function(a){return a.playlistEditEndpoint}; FH.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.w(GH,wH);GH.prototype.B=function(){return EUa}; GH.prototype.j=function(a){return a.webPlayerShareEntityServiceEndpoint}; GH.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var eCa=new qH("NETWORK_SLI_TOKEN");HH.prototype.fetch=function(a,b){var c=this,d,e;return g.B(function(f){c.j&&(d=gh(g.ih(5,xh(a,"key")))||"/UNKNOWN_PATH",c.j.start(d));e=new window.Request(a,b);return g.P("web_fetch_promise_cleanup_killswitch")?f.return(Promise.resolve(fetch(e).then(function(k){return c.handleResponse(k)}).catch(function(k){g.lu(k)}))):f.return(fetch(e).then(function(k){return c.handleResponse(k)}).catch(function(k){g.lu(k)}))})}; HH.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))}); a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.failure(),b=b.then(function(c){g.lu(new g.hr("Error: API fetch failed",a.status,a.url,c));return Object.assign({},c,{errorMetadata:{status:a.status}})})); return b}; HH[sH]=[new rH];var sCa=new qH("NETWORK_MANAGER_TOKEN");var IH;LH.prototype.fetch=function(a,b,c){var d=this;return new Promise(function(e){var f=new XMLHttpRequest;f.onerror=function(){e(d.handleResponse(a,f.status,f.response))}; f.onload=function(){e(d.handleResponse(a,f.status,f.response))}; if(null==c?0:c.hv)f.onreadystatechange=function(p){c.hv(f,p)}; var k;f.open(null!=(k=b.method)?k:"GET",a,!0);f.responseType="text";f.withCredentials=!0;if(b.headers){k=g.r(Object.entries(b.headers));for(var l=k.next();!l.done;l=k.next()){var m=g.r(l.value);l=m.next().value;m=m.next().value;f.setRequestHeader(l,m)}}var n;f.send(null!=(n=b.body)?n:null)})}; LH.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.lu(new g.hr("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.lu(new g.hr("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};var uCa=[],MH=!1;NH.getInstance=function(){var a=g.Ja("ytglobal.storage_");a||(a=new NH,g.Ia("ytglobal.storage_",a));return a}; NH.prototype.estimate=function(){var a,b,c;return g.B(function(d){a=navigator;return(null==(b=a.storage)?0:b.estimate)?d.return(a.storage.estimate()):(null==(c=a.webkitTemporaryStorage)?0:c.queryUsageAndQuota)?d.return(xCa()):d.return()})}; g.Ia("ytglobal.storageClass_",NH);Zq.prototype.Ay=function(a){this.handleError(a)}; Zq.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.P("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.P("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":zCa(this,b);break;case "TRANSACTION_ENDED":this.B&&this.j("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({}, b,{hasWindowUnloaded:this.u}),this.j("idbTransactionAborted",a)}};g.h=OH.prototype; g.h.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterScript)?d:null,f;d=null!=(f=a.interpreterUrl)?f:null;a.interpreterSafeScript&&(e=a.interpreterSafeScript,g.df("From proto message. b/166824318"),e=Gca(e.privateDoNotAccessOrElseSafeScriptWrappedValue||"").toString());a.interpreterSafeUrl&&(f=a.interpreterSafeUrl,g.df("From proto message. b/166824318"),d=g.gf(f.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());BCa(this,e,d,a.program,b,c)}else g.lu(Error("Cannot initialize botguard without program"))}; g.h.isInitialized=function(){return!!this.Wx()}; g.h.getState=function(){return this.state}; g.h.isLoading=function(){return 2===this.state}; g.h.invoke=function(a){a=void 0===a?{}:a;var b=this.Wx();if(b){var c={lx:a};if(b.aB)throw Error("Already disposed");a=Th();var d;null!=(d=b.Wq)&&d.u.j.Bq("/client_streamz/bg/fsc",d.Lg);d=b.n1([c.lx,c.X0]);var e;null!=(e=b.Wq)&&e.B.Jg(Th()-a,e.Lg);b=d}else b=null;return b}; g.h.dispose=function(){this.Y()}; g.h.Y=function(){this.sJ(null);this.state=8}; g.h.Wx=function(){return this.j}; g.h.sJ=function(a){g.ee(this.j);this.j=a};g.w(QH,OH);QH.prototype.Y=function(){this.state=8}; QH.prototype.Wx=function(){return DCa()}; QH.prototype.sJ=function(a){g.ee(DCa());g.Ia("yt.abuse.playerAttLoader",a)};var RH,TH;g.PH=new QH;RH=0;TH=[];var HCa=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var RCa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},SCa={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},TCa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},QCa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},OCa={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF", 2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},PCa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};var P_={},zVa=(P_["api.invalidparam"]=2,P_.auth=150,P_["drm.auth"]=150,P_["heartbeat.net"]=150,P_["heartbeat.servererror"]=150,P_["heartbeat.stop"]=150,P_["html5.unsupportedads"]=5,P_["fmt.noneavailable"]=5,P_["fmt.decode"]=5,P_["fmt.unplayable"]=5,P_["html5.missingapi"]=5,P_["html5.unsupportedlive"]=5,P_["drm.unavailable"]=5,P_);g.w(dI,g.I);g.h=dI.prototype; g.h.handleExternalCall=function(a,b,c){var d=this.D[a],e=this.J[a],f=d;if(e)if(c&&ev(c,KUa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.S();d.xl&&!this.U.has(a)&&(this.U.add(a),g.cr("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:c||void 0,playerStyle:d.playerStyle||void 0}));if(f){c=!1;d=g.r(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.lu(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this, b)}throw Error('Unknown API method: "'+a+'".');}; g.h.isExternalMethodAvailable=function(a,b){return this.D[a]?!0:!!(this.J[a]&&b&&ev(b,KUa))}; g.h.getBandwidthEstimate=function(){return zA(this.app.S().schedule)}; g.h.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.tI(this.app);b&&(a={gpu:(0,g.XQ)(),d:a},b.handleError(new uB("feedback",a)))}; g.h.getApiInterface=function(){return this.P.slice()}; g.h.getInternalApiInterface=function(){return g.ve(this.u)}; g.h.FV=function(a,b){if("string"===typeof b){var c=function(){var d=g.Da.apply(0,arguments);g.Ja(b).apply(window,d)}; this.I[b]=c}else c=b;this.app.un.subscribe(a,c)}; g.h.C0=function(a,b){if("string"===typeof b){var c=this.I[b];g.Be(this.I,b);b=c}this.app.un.unsubscribe(a,b)}; g.h.getPlayerState=function(){return tOa(this.app)}; g.h.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)}; g.h.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)}; g.h.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e)}; g.h.seekTo=function(a,b,c){this.j&&aT(this.app,!0,this.playerType);eT(this.app,a,b,c,this.playerType)}; g.h.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)}; g.h.startSeekCsiAction=function(){this.app.Qi().D.j=(0,g.Q)()}; g.h.seekToStreamTime=function(a,b,c){this.j&&aT(this.app,!0,this.playerType);var d=this.app,e=this.playerType;b=void 0===b?!0:b;var f=void 0===f?!1:f;var k=g.tI(d,e),l=0;k&&k.getStreamTimeOffset()&&!k.pd()&&(l=k.getStreamTimeOffset());eT(d,a-l,b,c,e,f)}; g.h.getStreamTimeOffset=function(){var a=g.tI(this.app,1);return a?a.getStreamTimeOffset():0}; g.h.seekToLiveHead=function(a,b){var c=g.tI(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&eT(this.app,Infinity,a,b,this.playerType)}; g.h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)}; g.h.getMediaReferenceTime=function(){var a=this.app.getIngestionTime(this.playerType);return isNaN(a)?this.getCurrentTime():a}; g.h.getDuration=function(){return this.app.getDuration(this.playerType)}; g.h.getVolume=function(){return this.app.hh.volume}; g.h.setVolume=function(a){bDa(this,a)}; g.h.isMuted=function(){return this.app.hh.muted}; g.h.mute=function(){cDa(this)}; g.h.unMute=function(){dDa(this)}; g.h.getPlayerMode=function(){var a={};this.app.getVideoData().D&&(a.pfp={enableIma:this.app.S().Oh&&this.app.Sc().allowImaMonetization,autoplay:AD(this.app.Sc()),mutedAutoplay:this.app.Sc().mutedAutoplay});return a}; g.h.playVideo=function(){this.j&&aT(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Ae()){var b=UI(this.app.fb());if(!oTa(b)){b.ym("control_play");return}if(yZ(b))return}3===a?nI(this.app.fb()).ym("control_play"):this.app.playVideo(a)}; g.h.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Ae()){var b=UI(this.app.fb());if(!oTa(b)){b.ym("control_pause");return}}3===a?nI(this.app.fb()).ym("control_pause"):this.app.pauseVideo(a)}; g.h.stopVideo=function(){var a=this.app;a.environmentData.dc&&a.Ma.W("pageTransition");a.stopVideo()}; g.h.clearVideo=function(){}; g.h.getPlaybackRate=function(){return g.tI(this.app,1).getPlaybackRate()}; g.h.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)}; g.h.getAvailablePlaybackRates=function(){var a=this.app.S();if(a.Bd){var b=a.j||a.K("web_player_admin_origin_killswitch")?a.ancestorOrigins[0]:window.location.origin;a=["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(b)||a.zl?PUa:OUa}else a=[1];return a}; g.h.getPlaybackQuality=function(a){return(a=g.tI(this.app,a))?a.getPlaybackQuality():"unknown"}; g.h.setPlaybackQuality=function(){}; g.h.getAvailableQualityLevels=function(){var a=g.tI(this.app,this.playerType);return a?(a=g.Rj(a.fp(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]}; g.h.getAvailableQualityLabels=function(){var a=g.tI(this.app,this.playerType);return a?g.Rj(a.fp(),function(b){return b.qualityLabel}):[]}; g.h.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()}; g.h.getVideoBytesTotal=function(){return 1}; g.h.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()}; g.h.getVideoStartBytes=function(){return 0}; g.h.getSize=function(){var a=this.app.Wa().getPlayerSize();return{width:a.width,height:a.height}}; g.h.setSize=function(){this.app.Wa().resize()}; g.h.channelSubscribed=function(){this.Ia("SUBSCRIBE",this.app.Sc().gk)}; g.h.channelUnsubscribed=function(){this.Ia("UNSUBSCRIBE",this.app.Sc().gk)}; g.h.getStatsForNerds=function(){return this.app.getStatsForNerds()}; g.h.setScreenLayer=function(a){this.app.setScreenLayer(a)}; g.h.getCurrentPlaylistSequence=function(){return g.tI(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())}; g.h.getPlaylistSequenceForTime=function(a){return g.tI(this.app).getPlaylistSequenceForTime(a)}; g.h.shouldSendVisibilityState=function(){return!0}; g.h.updateFullerscreenEduButtonVisibility=function(a){var b=KOa(this.app);b&&(b.u=a,b.Ea())}; g.h.updateFullerscreenEduButtonSubtleModeState=function(a){var b=KOa(this.app);b&&(g.N(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Role para ver detalhes"),g.ge(b,g.HJ(b.B.Zb(),b.element)),b.C=!0))}; g.h.confirmYpcRental=function(){var a=g.tI(this.app,this.playerType);a&&a.cf("ypc_clickwrap")}; g.h.setHomeGroupInfo=function(a){this.app.S().homeGroupInfo=a}; g.h.setConnectedRemoteApps=function(a){this.app.S().yl=a}; g.h.setLivingRoomAppMode=function(a){this.app.S().livingRoomAppMode=yq("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,pwa)}; g.h.setEnablePrivacyFilter=function(a){this.app.S().enablePrivacyFilter=void 0===a?!1:a}; g.h.isPictureInPictureAllowed=function(){return this.app.Sc().Sw}; g.h.togglePictureInPicture=function(){this.app.togglePictureInPicture()}; g.h.loadModule=function(a){"captions"===a&&(a=g.PI(this.app.fb()))&&!a.loaded&&a.load()}; g.h.unloadModule=function(a){"captions"===a&&(a=g.PI(this.app.fb()))&&a.loaded&&a.M1()}; g.h.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(aI(a,b,c),this.playerType),this.j&&aT(this.app,a,this.playerType))}; g.h.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(aI(a,b,c),this.playerType)}; g.h.loadVideoByUrl=function(a,b,c){a=ZCa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.j&&aT(this.app,a,this.playerType)}; g.h.cueVideoByUrl=function(a,b,c){a=ZCa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)}; g.h.getVideoUrl=function(){var a=this.app.S();if(a.P)return"";var b=this.app.Sc(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)}; g.h.getDebugText=function(){return this.app.getDebugText()}; g.h.getVideoEmbedCode=function(){var a=this.app.S();return a.P?"":a.getVideoEmbedCode(this.app.Sc().videoId,this.app.Wa().getPlayerSize(),this.getPlaylistId()||void 0)}; g.h.addCueRange=function(a,b,c){return cT(this.app,a,b,c)}; g.h.addUtcCueRange=function(a,b,c,d,e){return AOa(this.app,a,b,c,d,e)}; g.h.removeCueRange=function(a){return BOa(this.app,a)}; g.h.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.j&&aT(this.app,!0,this.playerType)}; g.h.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)}; g.h.nextVideo=function(){this.app.nextVideo();this.j&&aT(this.app,!0,this.playerType)}; g.h.previousVideo=function(){this.app.previousVideo();this.j&&aT(this.app,!0,this.playerType)}; g.h.playVideoAt=function(a){this.app.playVideoAt(a);this.j&&aT(this.app,!0,this.playerType)}; g.h.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)}; g.h.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)}; g.h.HW=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c=c.lc.length)c=!1;else{d=g.r(c.lc);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof AB)){c=!1;break a}var f=a.Dc.getId();e.B&&(vwa(e.B,f),e.u=null)}c.yl=a;c=!0}c&&eS(b)&&(b.W("internalaudioformatchange",b.videoData,!0),b.qa("hlsaudio",{id:a.id}))}}}; g.h.tW=function(){return this.getAvailableAudioTracks()}; g.h.getAvailableAudioTracks=function(){return g.tI(this.app,this.playerType).getAvailableAudioTracks()}; g.h.getMaxPlaybackQuality=function(){var a=g.tI(this.app,this.playerType);return a&&a.getVideoData().B?zw(a.qf?JKa(a.eh,a.qf,a.Eu()):SC):"unknown"}; g.h.getUserPlaybackQualityPreference=function(){var a=g.tI(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"}; g.h.getSubtitlesUserSettings=function(){var a=g.PI(this.app.fb());return a?a.JW():null}; g.h.resetSubtitlesUserSettings=function(){g.PI(this.app.fb()).I0()}; g.h.setMinimized=function(a){this.app.setMinimized(a)}; g.h.setInlinePreview=function(a){this.app.setInlinePreview(a)}; g.h.setGlobalCrop=function(a){this.app.Wa().setGlobalCrop(a)}; g.h.getVisibilityState=function(){var a=this.lf();return this.app.getVisibilityState(this.ag(),this.isFullscreen()||NA(this.app.S()),a,this.isInline(),this.app.Su(),this.app.Pu())}; g.h.isMutedByMutedAutoplay=function(){return this.app.Gy}; g.h.isInline=function(){return this.app.isInline()}; g.h.setInternalSize=function(a,b){this.app.Wa().setInternalSize(new g.Lf(a,b))}; g.h.pd=function(){var a=g.tI(this.app);return a?a.pd():0}; g.h.lf=function(){return this.app.lf()}; g.h.ag=function(){var a=g.tI(this.app,this.playerType);return!!a&&a.ag()}; g.h.isFullscreen=function(){return this.app.isFullscreen()}; g.h.setSafetyMode=function(a){this.app.S().enableSafetyMode=a}; g.h.canPlayType=function(a){return this.app.canPlayType(a)}; g.h.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!==a.list)if(this.K("player_enable_playback_playlist_change"))c=!0;else return;void 0!==a.external_list&&this.app.setIsExternalPlaylist(a.external_list);var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.CI(b).videoId||(a.index=b.index)):PS(this.app,{list:a.list,index:a.index,playlist_length:d.length});EI(this.app.getPlaylist(),a);this.Ia("onPlaylistUpdate")}else this.app.updatePlaylist()}; g.h.updateVideoData=function(a,b){var c=g.tI(this.app,this.playerType||1);c&&g.WC(c.getVideoData(),a,b)}; g.h.updateEnvironmentData=function(a){VA(this.app.S(),a,!1)}; g.h.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)}; g.h.setCardsVisible=function(a,b,c){var d=g.YI(this.app.fb());d&&d.Sh()&&d.setCardsVisible(a,b,c)}; g.h.productsInVideoVisibilityUpdated=function(a){this.W("changeProductsInVideoVisibility",a)}; g.h.setInline=function(a){this.app.setInline(a)}; g.h.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)}; g.h.getVideoAspectRatio=function(){return this.app.Wa().getVideoAspectRatio()}; g.h.getPreferredQuality=function(){var a=g.tI(this.app);return a?a.getPreferredQuality():"unknown"}; g.h.setPlaybackQualityRange=function(a,b){var c=g.tI(this.app,this.playerType);c&&g.INa(c,g.ww(a,b||a,!0,"m"),!0)}; g.h.onAdUxClicked=function(a,b){this.W("aduxclicked",a,b)}; g.h.showAirplayPicker=function(){this.app.showAirplayPicker()}; g.h.addBgVersionChangeCallback=function(a){this.app.addBgVersionChangeCallback(a)}; g.h.dispatchReduxAction=function(a){g.bD.dispatch(a)}; g.h.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.Wc.includes(e)||(c.Wc.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.Ob(c.Wc,e)&&(d=!0)}); d&&this.W("updatemarkervisibility")}; g.h.W=function(a){var b=g.Da.apply(1,arguments);this.app.S().B&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.un.W.apply(this.app.un,[a].concat(g.v(b)));this.app.Tn.W.apply(this.app.Tn,[a].concat(g.v(b)))}; g.h.Ia=function(a){var b=g.Da.apply(1,arguments);this.app.un.W.apply(this.app.un,[a].concat(g.v(b)));this.app.Tn.W.apply(this.app.Tn,[a].concat(g.v(b)))}; g.h.getFeedbackProductData=function(){return this.app.getFeedbackProductData()}; g.h.logImaAdEvent=function(a,b){this.app.S().Oh&&this.app.Sc().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.lea(this.app.S().loaderUrl),eventType:a,youtubeHost:g.jh(this.app.S().ma)||""},g.cr("embedsAdEvent",a))}; g.h.K=function(a){return this.app.S().K(a)}; g.h.Y=function(){if(this.element){var a=this.element,b;for(b in this.u)this.u.hasOwnProperty(b)&&(a[b]=null);this.element=null}this.C={};this.I={};g.I.prototype.Y.call(this)};g.w(jI,dI);g.h=jI.prototype;g.h.addCueRange=function(a,b,c,d,e){return cT(this.app,a,b,c,d,e)}; g.h.getPlayerState=function(a){return tOa(this.app,a)}; g.h.nextVideo=function(a,b){this.app.nextVideo(a,b)}; g.h.previousVideo=function(a){this.app.previousVideo(a)}; g.h.seekBy=function(a,b,c){eT(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)}; g.h.seekTo=function(a,b,c,d){eT(this.app,a,b,c,d||this.playerType)}; g.h.getStoryboardFormat=function(){return this.app.getStoryboardFormat()}; g.h.IB=function(a){a=void 0===a?this.playerType:a;var b=dI.prototype.IB.call(this,a)||{};if(a=g.tI(this.app,a)){a=a.getVideoData();b.backgroundable=a.backgroundable;b.eventId=a.eventId;b.cpn=a.clientPlaybackNonce;b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isLive=a.isLivePlayback;b.isPremiere=a.isPremiere;b.isWindowedLive=a.Yh;b.isManifestless=$C(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;b.itct=a.ma;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)? 0:c.utcTimeMillis)?Xf(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?Xf(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.SS;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=jya(a);b.paidContentOverlayDurationMs=mD(a);null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.j&&Bw(a.j)&&(b.usingLocalMedia= "true");eD(a)&&(b.isEncrypted=!0);if(a.C)for(e=g.r(a.C.videoInfos),c=e.next();!c.done;c=e.next())if(d=void 0,null==(d=c.value.video)?0:d.isHdr()){b.isHdr=!0;break}var f,k;b.isMultiChannelAudio=!!(null==(f=a.I)?0:null==(k=f.audio)?0:k.isMultiChannelAudio())}return b}; g.h.getCurrentTime=function(a,b){if(2===this.app.getAppState()&&5===this.getPlayerState()){var c;return(null==(c=this.app.getVideoData())?void 0:c.startSeconds)||0}return a?this.app.getCurrentTime(a,b):dI.prototype.getCurrentTime.call(this)}; g.h.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c;return(null==(c=nI(this.app.fb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):dI.prototype.getDuration.call(this)}; g.h.getProgressState=function(a){if(3===this.getPresentingPlayerType())return nI(this.app.fb()).getProgressState();var b=this.app.getVideoData(),c=(g.tI(this.app,a)||g.tI(this.app)).getPlayerType();a:{var d=this.app.getVideoData();var e;if(null==(e=d.progressBarStartPosition)?0:e.utcTimeMillis)if(d=Number(d.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(d)){d=gDa(this,d,a);break a}d=0}var f;a:{e=this.app.getVideoData();if(null==(f=e.progressBarEndPosition)?0:f.utcTimeMillis)if(f=Number(e.progressBarEndPosition.utcTimeMillis)/ 1E3,!isNaN(f)){f=gDa(this,f,a);break a}f=0}e=this.getCurrentTime(a);a=this.getDuration(a);var k=this.app.getIngestionTime(c),l=this.app.isAtLiveHead(c),m=this.app.Fu(),n=this.app.getMinSeekableTime(c);var p=this.app;(c=g.tI(p,c))?(c=MS(p,c),c=YS(p,pN(c),c)):c=0;return{airingStart:d,airingEnd:f,allowSeeking:this.app.Of(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:e,displayedStart:-1,duration:a,ingestionTime:k,isAtLiveHead:l,loaded:m,seekableStart:n,seekableEnd:c}}; g.h.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)}; g.h.getCurrentBroadcastId=function(){return null}; g.h.handleGlobalKeyDown=function(a,b,c,d,e,f,k){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.hI(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,k)}; g.h.handleGlobalKeyUp=function(a,b,c,d,e,f,k){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.hI(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,k)}; g.h.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)}; g.h.showControls=function(){var a=g.hI(this);a&&a.showControls(!0)}; g.h.hideControls=function(){var a=g.hI(this);a&&a.showControls(!1)}; g.h.getVideoContentRect=function(a){a=this.app.Wa().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}}; g.h.setFauxFullscreen=function(a){g.Nt();this.app.Yj(a?2:0)}; g.h.toggleFullscreen=function(){function a(c){g.lu(c)} var b=this.app.S();if(b.externalFullscreen){if(!g.jB(b))return this.isFullscreen()?Pt(window.document.documentElement):Mt(window.document.documentElement).catch(a)}else if(g.Nt()||b.I)return this.isFullscreen()?Pt(Ot()):"3"!==b.controlsType&&g.Nt()?Mt(this.app.Wa().element).catch(a):(b=this.app.Ed().df())?Mt(b).catch(a):Promise.reject(Error("Media element missing"));this.Ia("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)}; g.h.cancelPlayback=function(){var a=UI(this.app.fb());a&&a.created&&a.destroy();(a=g.tI(this.app))&&a.stopVideo();(a=this.app.fb().Pd.get("endscreen"))&&a.vX()&&g.mI(this.app.Ma,!0)}; g.h.stopVideo=function(){var a=this.app.S();!a.K("disable_new_pause_state3")&&eB(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():dI.prototype.stopVideo.call(this)}; g.h.getVideoStats=function(){return g.tI(this.app,this.playerType).Lb(!0)}; g.h.toggleSubtitles=function(){var a=g.PI(this.app.fb());a&&a.B1()}; g.h.getDebugText=function(a){return this.app.getDebugText(a)}; g.h.setSphericalProperties=function(a){if(a){var b=g.pI(this.app.fb());b&&b.setSphericalProperties(a,!0)}}; g.h.getSphericalProperties=function(){var a=g.pI(this.app.fb());return a?a.getSphericalProperties():{}}; g.h.setVolume=function(a,b){bDa(this,a,b)}; g.h.mute=function(a){cDa(this,a)}; g.h.unMute=function(a){dDa(this,a)}; g.h.mutedAutoplay=function(){this.K("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()}; g.h.loadModule=function(a){if("annotations_module"===a){var b=g.YI(this.app.fb());b&&!b.loaded&&b.load()}dI.prototype.loadModule.call(this,a)}; g.h.unloadModule=function(a){if("annotations_module"===a){var b=g.YI(this.app.fb());b&&b.loaded&&b.unload()}dI.prototype.unloadModule.call(this,a)}; g.h.setOption=function(a,b,c){if(!b)return null;var d=this.app.fb();switch(a){case "ad":return(a=UI(d))&&a.Wf&&a.Wf(b,c);case "kids":return(a=VI(d))&&a.Wf(b,c);case "remote":return(a=nI(d))&&a.Wf(b,c);case "unplugged":return(a=g.WI(d))&&a.Wf(b,c);case "annotations_module":return(a=g.YI(d))&&a.Wf(b,c);case "creatorendscreen":return(a=ZI(d))&&a.Wf(b,c)}return dI.prototype.setOption.call(this,a,b,c)}; g.h.getOptions=function(a){var b=this.app.fb();switch(a){case "ad":var c,d;return(null==(c=UI(b))?void 0:null==(d=c.getOptions)?void 0:d.call(c))||null;case "remote":var e,f;return(null==(e=nI(b))?void 0:null==(f=e.getOptions)?void 0:f.call(e))||null;case "annotations_module":var k,l;return(null==(k=g.YI(b))?void 0:null==(l=k.getOptions)?void 0:l.call(k))||null;case "creatorendscreen":var m,n;return(null==(m=ZI(b))?void 0:null==(n=m.getOptions)?void 0:n.call(m))||null;case "unplugged":var p,q;return(null== (p=g.WI(b))?void 0:null==(q=p.getOptions)?void 0:q.call(p))||null;case "kids":var t,u;return(null==(t=VI(b))?void 0:null==(u=t.getOptions)?void 0:u.call(t))||null}if(!a){a=dI.prototype.getOptions.call(this);if(!a)return a;UI(b)&&a.push("ad");nI(b)&&a.push("remote");g.YI(b)&&a.push("annotations_module");ZI(b)&&a.push("creatorendscreen");g.WI(b)&&a.push("unplugged");VI(b)&&a.push("kids");return a}return dI.prototype.getOptions.call(this,a)}; g.h.getPlayerSize=function(){var a=this.app.Wa().getPlayerSize();return{width:a.width,height:a.height}}; g.h.wakeUpControls=function(){var a=g.hI(this);a&&a.Gm()}; g.h.setCenterCrop=function(a){this.app.Wa().setCenterCrop(a)}; g.h.getLoopVideo=function(){return this.app.getLoopVideo()}; g.h.setLoopVideo=function(a){this.app.setLoopVideo(a)}; var eDa="BASE_URL BASE_YT_URL adformat allow_embed authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pipable playsinline plid post_live_playback postid ps public rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "), fDa="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");g.w(g.kI,jI);g.h=g.kI.prototype;g.h.jl=function(a,b,c,d,e,f,k){return this.app.jl(a,b,c,d,e,f,k)}; g.h.Fx=function(){return this.app.Fx()}; g.h.ep=ca(4);g.h.fb=function(){return this.app.fb()}; g.h.Ne=function(){var a=this.fb().Pd.get("endscreen");return!!a&&a.Ne()}; g.h.getRootNode=function(){return this.Wa().element}; g.h.S=function(){return this.app.S()}; g.h.Gu=ca(6);g.h.Yl=function(a){return this.app.Yl(a)}; g.h.tp=function(){return this.settingsMenu}; g.h.Sx=function(){return this.BE}; g.h.vb=function(a){return this.app.vb(a)}; g.h.Wa=function(){return this.app.Wa()}; g.h.getPlaylist=function(){return this.app.getPlaylist()}; g.h.getVideoData=function(a){var b=g.tI(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a){a=this.app;if(null==(b=a.Fd))b=void 0;else{var d=a.getCurrentTime();b=b.Uo?void 0:null==(c=JN(b,1E3*d))?void 0:c.videoData}c=b||a.getVideoData()}else c=b;return c}; g.h.ji=function(a){return this.app.ji(a)}; g.h.isWidescreen=function(){return this.app.isWidescreen()}; g.h.isHdr=function(){var a=g.tI(this.app);return a?a.isHdr():!1}; g.h.uy=function(){return this.app.uy()}; g.h.Kv=function(a){this.app.Kv(a)}; g.h.Qf=function(a,b,c,d,e){this.app.zf(a,b,c,d,e)}; g.h.ao=function(a,b){this.app.ao(a,b)}; g.h.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){nI(this.app.fb()).ym("control_play");return}if(2===this.getPresentingPlayerType()){var b=UI(this.app.fb());if(b&&yZ(b))return}}catch(c){g.R(c)}this.app.playVideo(a)}; g.h.stopVideo=function(a){g.tI(this.app,a).stopVideo()}; g.h.Vn=function(a){g.tI(this.app,a).Vn()}; g.h.addEventListener=function(a,b){this.app.Tn.subscribe(a,b)}; g.h.removeEventListener=function(a,b){this.app.Tn.unsubscribe(a,b)}; g.h.W=function(a){jI.prototype.W.call.apply(jI.prototype.W,[this,a].concat(g.v(g.Da.apply(1,arguments))))}; g.h.Sj=function(a){this.app.Sj(a)}; g.h.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)}; g.h.fp=function(){var a={},b=g.tI(this.app).fp();b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a}; g.h.Px=ca(10);g.h.gD=function(a){this.app.gD(a);a&&GOa(this.app,a)}; g.h.getDebugText=function(a){return this.app.getDebugText(a)}; g.h.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var k;a||d.isLivePlayback||(k=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,k,b,c)}; g.h.Qx=ca(12);g.h.Sk=ca(16);g.h.Yu=function(a,b){this.fb().Yu(a,b)}; g.h.Sh=function(){var a=g.YI(this.fb());return!!a&&a.Sh()}; g.h.Ol=function(){var a=g.YI(this.fb());return!!a&&a.Ol()}; g.h.setCardsVisible=function(a,b,c){var d=g.YI(this.fb());d&&d.setCardsVisible(a,b,c)}; g.h.productsInVideoVisibilityUpdated=function(a){this.W("changeProductsInVideoVisibility",a)}; g.h.Hv=ca(17);g.h.Vs=function(){var a=g.tI(this.app);a&&a.Vs()}; g.h.xz=function(a){this.Ia("onVideoAreaChange");this.Ia(a?"onShowControls":"onHideControls")}; g.h.Dj=function(a,b){var c=g.hI(this);if(c)return c.Dj(a,b);a=this.app.Wa().oi();return new g.yk(0,0,a.width,a.height)}; g.h.vp=function(){return this.app.vp()}; g.h.qy=function(){var a=this.fb().Pd.get("heartbeat");return!!a&&a.qy()}; g.h.Of=function(){var a=this.S();if(a.Ca||a.disableSeek)return!1;a=g.tI(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.qD(b)||2===this.getPresentingPlayerType()&&!this.app.Ae()||a.im()&&3!==this.getPresentingPlayerType()?!1:!0}; g.h.ly=function(){var a;return(null==(a=g.tI(this.app))?void 0:a.ly)||!1}; g.h.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()}; g.h.eq=function(){var a=g.tI(this.app);a&&a.eq()}; g.h.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)}; g.h.Sd=function(a,b,c){this.app.Xw(a,b,c)}; g.h.Kg=function(a,b){this.app.bD(a,b)}; g.h.yf=function(a,b){var c=this.app,d=g.tI(c,b);d&&(a=d.nh.yf(a),b&&c.getPresentingPlayerType()!==b||JS(c,"cuerangesremoved",a))}; g.h.cf=function(a,b){(b=g.tI(this.app,b))&&b.cf(a)}; g.h.im=function(){var a=g.tI(this.app);return a?a.im():!0}; g.h.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)}; g.h.setVolume=function(a){a=g.Ff(a,0,100);fI(this.app,{volume:a,muted:this.isMuted()},!0)}; g.h.mute=function(){fI(this.app,{muted:!0,volume:this.getVolume()},!0)}; g.h.unMute=function(){fI(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)}; g.h.setLoopVideo=function(a){this.app.setLoopVideo(a)}; g.h.getLoopVideo=function(){return this.app.getLoopVideo()}; g.h.Ed=function(){return this.app.Ed()}; g.h.Qi=function(){return this.app.Qi()}; g.h.gi=function(a){return this.app.gi(a)}; g.h.getBandwidthEstimate=function(){return zA(this.S().schedule)}; g.h.zb=function(a,b,c,d){this.S().Qa&&this.app.Cp.zb(a,b,c,void 0===d?!1:d)}; g.h.Vh=function(a,b,c){this.S().Qa&&this.app.Cp.Vh(a,b,void 0===c?!1:c)}; g.h.Wk=function(a,b){this.S().Qa&&this.app.Cp.Wk(a,b)}; g.h.qb=function(a,b){this.S().Qa&&this.app.Cp.click(a,b)}; g.h.Va=function(a,b,c){if(this.S().Qa){var d=this.app.Cp;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.wu(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.Eu(e,[f]):g.Fu(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.Bu(e,f,c),d.B.add(a))}}; g.h.Dn=function(a){return this.S().Qa?this.app.Cp.Dn(a):!1}; g.h.Cc=function(){return g.tI(this.app)}; g.h.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)}; g.h.Un=function(){this.app.Un()}; g.h.Ro=function(a,b){return this.app.Ro(a,b)}; g.h.Em=function(a){this.app.Em(a)}; g.h.FH=function(){this.app.FH()}; g.h.Rt=function(a,b,c,d,e,f){return this.app.Rt(a,b,c,d,e,f)}; g.h.iy=function(a,b,c,d,e,f){return this.app.iy(a,b,c,d,e,f)}; g.h.Vp=function(a){this.app.Vp(a)}; g.h.Vq=function(a,b){b=void 0===b?Infinity:b;this.app.Vq(void 0===a?-1:a,b)}; g.h.Vv=function(a,b,c){this.app.Vv(a,b,c)}; g.h.jp=function(){return this.app.jp()}; g.h.eB=function(a,b,c){this.app.eB(a,b,void 0===c?0:c)}; g.h.Tu=function(){return this.app.Tu()}; g.h.clearQueue=function(){this.app.clearQueue()}; g.h.Ae=function(){return this.app.Ae()}; g.h.Ip=function(a,b,c){return this.app.Ip(a,b,c)}; g.h.qa=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.tI(this.app,d))||e.qa(a,b,c)}; g.h.oD=function(){return this.app.oD()}; g.h.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)}; g.h.WH=function(a,b){this.W("aduxmouseover",a,b)}; g.h.VH=function(a,b){this.W("aduxmouseout",a,b)}; g.h.qI=function(a,b){this.W("muteadaccepted",a,b)}; g.h.YB=function(){return this.app.Wa().YB()}; g.h.Lv=function(a){this.app.Wa().Lv(a)}; g.h.Xk=function(){var a=g.tI(this.app);return a?a.Xk():!1}; g.h.pJ=function(a){this.app.pJ(a)};g.w(uI,g.I);uI.prototype.K=function(a){return this.api.K(a)};g.w(lDa,uI);g.w(vI,uI);vI.prototype.Y=function(){this.u&&(window.clearInterval(this.u),this.u=void 0);uI.prototype.Y.call(this)}; vI.prototype.oG=function(a){var b=this;return g.B(function(c){return b.j?c.return(b.j.ready().then(function(){return pDa(b,a)})):c.return(Promise.reject("web po not ready"))})};g.w(qDa,g.I);wI.prototype.aI=function(){this.u=(0,g.Q)()}; wI.prototype.reset=function(){this.j=this.u=NaN}; wI.prototype.fI=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.1>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};!this.environmentData.K("web_player_csi_ctt_killswitch")&&a.J&&(c.cttAuthInfo={token:a.J,videoId:a.videoId});Sv("seek",c);g.Tv("cpn",a.clientPlaybackNonce,"seek");isNaN(this.u)||Qv("pl_ss",this.u,"seek");Qv(b,(0,g.Q)(),"seek")}this.reset()}};yI.prototype.reset=function(){Ov(this.timerName)}; yI.prototype.tick=function(a,b){Qv(a,b,this.timerName)}; yI.prototype.po=function(a){var b=this.timerName;lw(a,b)?a=!1:(Qv(a,void 0,b),a=!0);return a}; yI.prototype.info=function(a,b){g.Tv(a,b,this.timerName)};g.w(AI,g.Ut);g.h=AI.prototype;g.h.hasNext=function(a){return this.loop||!!a||this.index+1([^<>]+)<\/a>/;g.w(oJ,g.Vy);oJ.prototype.dh=function(){YDa(this)}; oJ.prototype.onVideoDataChange=function(){var a=this,b=this.G.getVideoData();if(b.isValid()){var c=this.G.S(),d=[],e="";if(!c.P){var f=WDa(this);c.K("enable_web_media_session_metadata_fix")&&g.RA(c)&&f?(d=XDa(f.thumbnailDetails),f.album&&(e=g.rv(f.album))):d=[{src:b.uf("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}YDa(this);VDa(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.oI(this.G)&&(this.j.delete("nexttrack"),this.j.delete("previoustrack"), b=function(){a.G.nextVideo()},c=function(){a.G.previousVideo()}); pJ(this,"nexttrack",b);pJ(this,"previoustrack",c)}}; oJ.prototype.Y=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.r(this.j),b=a.next();!b.done;b=a.next())pJ(this,b.value,null);g.Vy.prototype.Y.call(this)};g.w(qJ,g.V);g.h=qJ.prototype;g.h.onClick=function(a){g.fJ(a,this.G,!0);this.G.qb(this.element)}; g.h.onVideoDataChange=function(a,b){$Da(this,b);this.Od&&aEa(this,this.Od)}; g.h.Uc=function(a){var b=this.G.getVideoData();this.videoId!==b.videoId&&$Da(this,b);this.j&&aEa(this,a.state);this.Od=a.state}; g.h.md=function(){this.C.show();this.G.W("paidcontentoverlayvisibilitychange",!0);this.G.Va(this.element,!0)}; g.h.Db=function(){this.C.hide();this.G.W("paidcontentoverlayvisibilitychange",!1);this.G.Va(this.element,!1)};g.w(rJ,g.V);rJ.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.V.prototype.hide.call(this)}; rJ.prototype.onStateChange=function(a){bEa(this,a.state)?this.j.start():this.hide()}; rJ.prototype.u=function(){this.message.style.display="block"};g.w(g.sJ,g.eG);g.h=g.sJ.prototype;g.h.show=function(){var a=this.Xg();g.eG.prototype.show.call(this);this.ma&&(this.I.N(window,"blur",this.Db),this.I.N(document,"click",this.UT));a||this.W("show",!0)}; g.h.hide=function(){var a=this.Xg();g.eG.prototype.hide.call(this);cEa(this);a&&this.W("show",!1)}; g.h.md=function(a,b){this.u=a;this.P.show();b?(this.J||(this.J=this.I.N(this.G,"appresize",this.yM)),this.yM()):this.J&&(this.I.pc(this.J),this.J=void 0)}; g.h.yM=function(){var a=g.hI(this.G);this.u&&a.ys(this.element,this.u)}; g.h.Db=function(){var a=this.Xg();cEa(this);this.P.hide();a&&this.W("show",!1)}; g.h.UT=function(a){var b=Vs(a);b&&(g.og(this.element,b)||this.u&&g.og(this.u,b)||!g.dH(a))||this.Db()}; g.h.Xg=function(){return this.kb&&4!==this.P.state};g.w(uJ,g.sJ);uJ.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(dEa(this),this.md()):(this.j&&this.qb(),this.Db()))}; uJ.prototype.dh=function(a){this.api.isMutedByMutedAutoplay()&&g.CE(a,2)&&this.Db()}; uJ.prototype.onClick=function(){this.api.unMute();this.qb()}; uJ.prototype.qb=function(){this.clicked||(this.clicked=!0,this.api.qb(this.element))};g.w(g.wJ,g.Vy);g.h=g.wJ.prototype;g.h.init=function(){var a=this.api,b=a.vb();this.PB=a.getPlayerSize();this.Pb(b);this.Hm();this.ub()}; g.h.onVideoDataChange=function(a,b){var c=this.wH!==b.videoId;if(c||"newdata"===a)a=this.api,a.isFullscreen()||(this.PB=a.getPlayerSize());c&&(this.wH=b.videoId,c=this.Nd,c.ea=b&&0=b){this.vx=!0;b=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=10*(this.Iy-1);02*b&&d<3*b&&(this.Av(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.Ys(a)}this.PO=Date.now();this.YQ.start()}}; g.h.l_=function(a){if(!gEa(this,a)){if(!fEa(this)&&zJ(this,a)&&!this.bB.isActive()){if(g.jB(this.api.S())&&this.api.vb().isCued()){var b=void 0===b?{}:b;Pv();Iv();Ov();Av(!1);b.cttAuthInfo&&(Bv().cttAuthInfo=b.cttAuthInfo);wp("TIMING_AFT_KEYS",[]);b.vka?Rv({loadType:"hot"}):Rv({loadType:"warm"});wp("TIMING_ACTION","");delete g.O("TIMING_INFO",{}).yt_lt;Qv("_start",b.startTime,void 0);b=["pbs","pbu"];Hv("").info.actionType="watch";b&&wp("TIMING_AFT_KEYS",b);wp("TIMING_ACTION","watch");Asa();b=Cv(); var c=Ev();if("cold"===b.yt_lt||"cold"===c.loadType){var d=wv(),e=Dv();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var f in d)f in e||Qv(f,d[f]);f={};d=!1;e=g.r(Object.keys(b));for(var k=e.next();!k.done;k=e.next())k=k.value,(k=ssa(k,b[k]))&&!ksa(Ev(),k)&&(Ru(c,k),Ru(f,k),d=!0);d&&Rv(f)}Av(!0);b=g.O("TIMING_ACTION");g.Ja("ytglobal.timingready_")&&b&&lw("_start")&&dsa()&&jsa()}vJ(this);g.Ys(a)}this.vx&&(this.vx=!1)}}; g.h.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.cr("embedsRequestStorageAccessResult",{resolved:!0});mva(!0);Lt();window.location.reload()},function(){g.cr("embedsRequestStorageAccessResult",{resolved:!1}); a.Rv()})}; g.h.NB=function(){}; g.h.Ls=function(){}; g.h.Av=function(){}; g.h.UI=function(){}; g.h.Rv=function(){var a=this.api.vb();g.U(a,2)&&g.lI(this.api)||(g.mF(a)?this.api.pauseVideo():(this.api.FH(),this.api.playVideo(),this.fn&&document.activeElement===this.fn.C.element&&this.api.getRootNode().focus()))}; g.h.m_=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!xJ(this,Vs(a)))if(a=this.api.S(),this.api.S().K("player_doubletap_to_seek")&&this.vx)this.vx=!1;else if(a.Za&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.by(d)})}catch(d){this.by(d)}}; g.h.by=function(a){String(a).includes("fullscreen error")?g.lu(a):g.R(a)}; g.h.n_=function(a){hEa(this,.3,a.scale);g.Ys(a)}; g.h.o_=function(a){hEa(this,.1,a.scale)}; g.h.ub=function(){var a=this.api.Wa().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Nd.resize();g.N(b,"ytp-fullscreen",this.api.isFullscreen());g.N(b,"ytp-large-width-mode",c);g.N(b,"ytp-small-mode",this.eg());g.N(b,"ytp-tiny-mode",this.ZB());g.N(b,"ytp-big-mode",this.Ff());this.jf&&this.jf.resize(a)}; g.h.dh=function(a){this.Pb(a.state);this.Hm()}; g.h.zz=ca(30);g.h.yG=function(){var a=!!this.wH&&!this.api.Ne()&&!this.BI,b=2===this.api.getPresentingPlayerType(),c=this.api.S();if(b){if(ATa&&c.K("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=UI(this.api.fb());return a&&b.yJ()}return a&&(c.ll||this.api.isFullscreen()||c.Kb)}; g.h.Hm=function(){var a=this.yG();this.pm!==a&&(this.pm=a,g.N(this.api.getRootNode(),"ytp-hide-info-bar",!a))}; g.h.Pb=function(a){var b=a.isCued()||this.api.im()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.WJ&&this.pc(this.WJ),this.WJ=this.N(this.api.Wa(),"touchstart",this.p_,void 0,b));var c=a.isPlaying()&&!g.U(a,32)||this.api.qy();bJ(this.Nd,128,!c);c=3===this.api.getPresentingPlayerType();bJ(this.Nd,256,c);c=this.api.getRootNode();if(g.U(a,2))var d=[K_.ENDED];else d=[],g.U(a,8)?d.push(K_.PLAYING):g.U(a,4)&&d.push(K_.PAUSED),g.U(a,1)&&!g.U(a,32)&&d.push(K_.BUFFERING),g.U(a, 32)&&d.push(K_.SEEKING),g.U(a,64)&&d.push(K_.UNSTARTED);g.ac(this.gF,d)||(g.yn(c,this.gF),this.gF=d,g.wn(c,d));d=this.api.S();var e=g.U(a,2);a:{var f=this.api.S();var k=f.controlsType;switch(k){case "2":case "0":f=!1;break a}f="3"===k&&!g.U(a,2)||this.isCued||f.K("enable_post_ad_perception_survey_in_desktop")&&(2!==this.api.getPresentingPlayerType()?0:yZ(UI(this.api.fb())))||f.K("embeds_web_enable_hide_standard_controls_for_ad")&&g.IA(f)&&2===this.api.getPresentingPlayerType()?!1:!0}g.N(c,"ytp-hide-controls", !f);g.N(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.aH);g.U(a,128)&&!g.IA(d)?(this.jf||(this.jf=new g.kJ(this.api),g.J(this,this.jf),g.rI(this.api,this.jf.element,4)),this.jf.u(a.getData()),this.jf.show()):this.jf&&(this.jf.dispose(),this.jf=null)}; g.h.Vl=function(){return this.api.Sh()&&this.api.Ol()?(this.api.setCardsVisible(!1,!1),!0):this.api.Ne()?(g.mI(this.api,!0),!0):!1}; g.h.onMutedAutoplayChange=function(a){this.aH=a;this.fk()}; g.h.Ff=function(){return!1}; g.h.eg=function(){return!this.Ff()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)}; g.h.ZB=function(){return this.eg()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)}; g.h.sy=function(){var a=this.api.S();if(!g.IA(a)||!a.K("embeds_enable_allow_watch_again_endscreen_for_eligible_shorts")||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(a.ea||"EMBEDDED_PLAYER_MODE_DEFAULT")||this.api.getPlaylist())return!1;a=this.PB;var b;return!(null==(b=this.api.getVideoData())||!b.isShortsEligible)&&a.width<=a.height}; g.h.Ej=function(){return this.BD}; g.h.tp=function(){return null}; g.h.Sx=function(){return null}; g.h.Dj=function(){var a=this.api.Wa().getPlayerSize();return new g.yk(0,0,a.width,a.height)}; g.h.handleGlobalKeyDown=function(){return!1}; g.h.handleGlobalKeyUp=function(){return!1}; g.h.ys=function(){}; g.h.showControls=function(a){void 0!==a&&this.api.Wa().xz(a)}; g.h.Gm=function(){}; g.h.VN=function(){return null};g.w(AJ,g.Ut);g.h=AJ.prototype;g.h.Ix=function(){return 1E3*this.api.getDuration(this.il,!1)}; g.h.stop=function(){this.j&&this.Lc.pc(this.j)}; g.h.Rb=function(){var a=this.api.getProgressState(this.il);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.S().K("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.il,!1)};this.W("h")}; g.h.getProgressState=function(){return this.u}; g.h.Uc=function(a){g.CE(a,2)&&this.W("g")};g.w(BJ,g.V);BJ.prototype.onClick=function(){this.G.Ia("BACK_CLICKED")};g.w(g.CJ,g.V);g.CJ.prototype.show=function(){g.V.prototype.show.call(this);g.on(this.j)}; g.CJ.prototype.hide=function(){this.u.stop();g.V.prototype.hide.call(this)}; g.CJ.prototype.Ls=function(a){a?g.U(this.G.vb(),64)||DJ(this,pG(),"Reproduzir"):(a=this.G.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?DJ(this,DBa(),"Interromper reprodu\u00e7\u00e3o ao vivo"):DJ(this,yBa(),"Pausa"))};g.w(GJ,g.V);g.h=GJ.prototype;g.h.md=function(){this.G.S().K("player_new_info_card_format")&&g.un(this.G.getRootNode(),"ytp-cards-teaser-shown")&&!g.IA(this.G.S())||(this.u.show(),g.nt("iv-button-shown"))}; g.h.Db=function(){g.nt("iv-button-hidden");this.u.hide()}; g.h.Xg=function(){return this.kb&&4!==this.u.state}; g.h.Y=function(){this.j&&this.j();g.V.prototype.Y.call(this)}; g.h.mZ=function(){g.nt("iv-button-mouseover")}; g.h.onClicked=function(a){this.G.Sh();var b=g.un(this.G.getRootNode(),"ytp-cards-teaser-shown");g.nt("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.G.setCardsVisible(!this.G.Ol(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.w(IJ,g.V);g.h=IJ.prototype;g.h.XR=function(){this.G.Sh()&&this.G.Ol()&&this.Xg()&&this.Db()}; g.h.KJ=function(){this.Db();!this.G.Sh()&&this.G.S().K("enable_error_corrections_infocards_icon_web")&&this.kh.Db();g.nt("iv-teaser-clicked",null!=this.j);this.onClickCommand?this.G.Ia("innertubeCommand",this.onClickCommand):this.G.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}; g.h.VT=function(){g.nt("iv-teaser-mouseover");this.j&&this.j.stop()}; g.h.L_=function(a){this.G.S().K("player_new_info_card_format")&&!g.IA(this.G.S())?this.kh.Db():this.G.S().K("enable_error_corrections_infocards_icon_web")&&this.kh.md();this.j||!a||this.G.Ol()||this.u&&this.u.isActive()||(this.md(a),g.nt("iv-teaser-shown"))}; g.h.md=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.Kn(a.teaserText));this.C.show();this.u=new g.K(function(){g.vn(this.G.getRootNode(),"ytp-cards-teaser-shown");this.G.K("player_new_info_card_format")&&!g.IA(this.G.S())&&this.kh.Db();this.iK()},0,this); this.u.start();FJ(this.kh,!1);this.j=new g.K(this.Db,580+a.durationMs,this);this.j.start();this.D.push(this.Ja("mouseover",this.xL,this));this.D.push(this.Ja("mouseout",this.wL,this))}; g.h.iK=function(){if(!this.G.S().K("player_new_info_card_format")&&g.IA(this.G.S())&&this.kb){var a=this.kh.element.offsetLeft,b=g.dg("ytp-cards-button-icon"),c=this.G.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.kh.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}}; g.h.TV=function(){g.IA(this.G.S())&&this.U.eg()&&this.kb&&this.P.start()}; g.h.xL=function(){this.I.stop();this.j&&this.j.isActive()&&this.J.start()}; g.h.wL=function(){this.J.stop();this.j&&!this.j.isActive()&&this.I.start()}; g.h.AZ=function(){this.j&&this.j.stop()}; g.h.zZ=function(){this.Db()}; g.h.Mj=function(){this.Db()}; g.h.Db=function(){!this.j||this.B&&this.B.isActive()||(g.nt("iv-teaser-hidden"),this.C.hide(),g.xn(this.G.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.K(function(){for(var a=g.r(this.D),b=a.next();!b.done;b=a.next())this.pc(b.value);this.D=[];this.j&&(this.j.dispose(),this.j=null);FJ(this.kh,!0);!this.G.Sh()&&this.G.S().K("enable_error_corrections_infocards_icon_web")&&this.kh.Db()},330,this),this.B.start())}; g.h.Xg=function(){return this.kb&&4!==this.C.state}; g.h.Y=function(){var a=this.G.getRootNode();a&&g.xn(a,"ytp-cards-teaser-shown");g.fe(this.u,this.B,this.j);g.V.prototype.Y.call(this)};var R_={},JJ=(R_.BUTTON="ytp-button",R_.TITLE_NOTIFICATIONS="ytp-title-notifications",R_.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",R_.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",R_.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",R_);g.w(KJ,g.V); KJ.prototype.onClick=function(){this.api.qb(this.element);var a=!this.j;this.updateValue("label",a?"Deixar de receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos":"Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos");this.updateValue("pressed",a);kEa(this,a)};g.w(g.MJ,g.V);g.MJ.prototype.u=function(){g.vn(this.element,"ytp-sb-subscribed")}; g.MJ.prototype.B=function(){g.xn(this.element,"ytp-sb-subscribed")};g.w(NJ,g.V);g.h=NJ.prototype;g.h.ZI=function(){oEa(this);this.channel.classList.remove("ytp-title-expanded")}; g.h.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")}; g.h.hG=function(){if(mEa(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.B&&this.B.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.Va(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.u&&a.Yi&&a.subscribed&&(this.u.show(),this.api.Va(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}; g.h.HF=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.B&&this.B.start()}; g.h.Ea=function(){var a=this.api.getVideoData(),b=this.api.S(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Kc&&!!a.profilePicture:g.IA(b)&&(c=!!a.videoId&&!!a.Kc&&!!a.profilePicture&&!(a.D&&b.pfpChazalUi)&&!b.C&&!(b.I&&200>this.api.getPlayerSize().width));var d=g.qB(this.api.S())+a.Kc;g.IA(b)&&(d=pEa(this,d));var e=a.Kc,f=a.profilePicture;b=g.IA(b)?a.expandedTitle:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;if(c){var k=this.api.S();e= g.qB(k)+e;g.IA(k)&&(e=pEa(this,e));this.J!==f&&(this.j.style.backgroundImage="url("+f+")",this.J=f);this.updateValue("channelLink",e);this.updateValue("channelLogoLabel",g.OE("Foto do canal $CHANNEL_NAME",{CHANNEL_NAME:b}));g.vn(this.api.getRootNode(),"ytp-title-enable-channel-logo")}else g.xn(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Va(this.j,c&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=a.gk);this.updateValue("expandedTitle",a.expandedTitle);this.updateValue("channelTitleLink", d);this.updateValue("expandedSubtitle",a.expandedSubtitle)};g.w(g.OJ,g.eG);g.OJ.prototype.jg=function(a){this.updateValue("label",a)}; g.OJ.prototype.updateValue=function(a,b){g.eG.prototype.updateValue.call(this,a,b);this.W("size-change")};g.w(RJ,g.eG);RJ.prototype.JP=function(){this.W("size-change")}; RJ.prototype.focus=function(){this.content.focus()}; RJ.prototype.CP=function(){this.W("back")};g.w(g.SJ,RJ);g.SJ.prototype.yc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.Wb(this.items,a,rEa);if(0<=b)return;b=~b;g.Ub(this.items,b,0,a);g.lg(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.pI,this);this.menuItems.W("size-change")}; g.SJ.prototype.Mf=function(a){a.unsubscribe("size-change",this.pI,this);this.isDisposed()||(g.Ob(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.W("size-change"))}; g.SJ.prototype.pI=function(){this.menuItems.W("size-change")}; g.SJ.prototype.focus=function(){for(var a=0,b=0;bb.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(k=b,e=5,65==(e&65)&&(a.x=d.right)&&(e&=-2),132==(e&132)&&(a.y=d.bottom)&&(e&= -5),a.xd.right&&(k.width=Math.min(d.right-a.x,f+k.width-d.left),k.width=Math.max(k.width,0))),a.x+k.width>d.right&&e&1&&(a.x=Math.max(d.right-k.width,d.left)),a.yd.bottom&&(k.height=Math.min(d.bottom-a.y,f+k.height-d.top),k.height=Math.max(k.height,0))),a.y+k.height>d.bottom&&e&4&&(a.y=Math.max(d.bottom-k.height,d.top)));d=new g.yk(0,0,0,0);d.left= a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Kk(this.element,new g.Jf(d.left,d.top));g.Tt(this.B);this.B.N(document,"contextmenu",this.cZ);this.B.N(this.G,"fullscreentoggled",this.onFullscreenToggled);this.B.N(this.G,"pageTransition",this.bU)}; g.h.cZ=function(a){if(!g.Zs(a)){var b=Vs(a);g.og(this.element,b)||this.Db();this.G.S().disableNativeContextMenu&&g.Ys(a)}}; g.h.onFullscreenToggled=function(){this.Db();xEa(this)}; g.h.bU=function(){this.Db()};g.w(g.eK,g.V);g.eK.prototype.onClick=function(){var a=this,b,c,d,e;return g.B(function(f){if(1==f.j)return b=a.api.S(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.A(f,zEa(a,e),2);f.u&&yEa(a);a.api.qb(a.element);g.va(f)})}; g.eK.prototype.Ea=function(){var a=this.api.S(),b=this.api.getVideoData();this.updateValue("icon",{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copiar link");var c=this.api.Wa().getPlayerSize().width; this.visible=!!b.videoId&&c>=this.u&&b.Al&&!(b.D&&a.pfpChazalUi);g.N(this.element,"ytp-copylink-button-visible",this.visible);g.dG(this,this.visible);gK(this.tooltip);this.api.Va(this.element,this.visible&&this.Z)}; g.eK.prototype.hc=function(a){g.V.prototype.hc.call(this,a);this.api.Va(this.element,this.visible&&a)}; g.eK.prototype.Y=function(){g.V.prototype.Y.call(this);g.xn(this.element,"ytp-copylink-button-visible")};g.w(hK,g.V);g.h=hK.prototype;g.h.show=function(){g.V.prototype.show.call(this);g.on(this.j)}; g.h.hide=function(){this.u.stop();g.xn(this.element,"ytp-chapter-seek");g.xn(this.element,"ytp-time-seeking");g.V.prototype.hide.call(this)}; g.h.Av=function(a,b,c,d){this.Bv(a,d)}; g.h.Bv=function(a,b){g.qn(this.j);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.xn(this.element,"ytp-chapter-seek");this.updateValue("chapterSeekText","");a=g.OE("$TOTAL_SEEK_TIME segundos",{TOTAL_SEEK_TIME:b.toString()});this.updateValue("seekTime",a)}; g.h.dD=function(a,b){g.qn(this.j);this.u.start();switch(a){case -1:a="back";break;case 1:a="forward";break;default:a=""}this.element.setAttribute("data-side",a);g.vn(this.element,"ytp-chapter-seek");this.updateValue("chapterSeekText",b);this.updateValue("seekTime","")};g.w(iK,g.V);g.h=iK.prototype;g.h.show=function(){g.V.prototype.show.call(this);g.on(this.u)}; g.h.hide=function(){this.B.stop();g.xn(this.element,"ytp-chapter-seek");g.xn(this.element,"ytp-time-seeking");g.V.prototype.hide.call(this)}; g.h.Av=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&this.G.qb(e);g.qn(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.G.Wa().getPlayerSize().height;e=this.G.Wa().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";1===a?(this.j.style.left="",this.j.style.right=e+"px"):-1===a&&(this.j.style.right="",this.j.style.left=e+"px");var k=2.5*f;f=k/2;var l=this.va("ytp-doubletap-ripple");l.style.width=k+"px";l.style.height= k+"px";1===a?(a=this.G.Wa().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.va("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");AEa(this,d)}; g.h.Bv=function(a,b){var c=this.G.Wa().getPlayerSize();g.qn(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.vn(this.element,"ytp-time-seeking");this.j.style.width="110px";this.j.style.height="110px";1===a?(this.j.style.right="",this.j.style.left=.8*c.width-30+"px"):-1===a&&(this.j.style.right="",this.j.style.left=.1*c.width-15+"px");this.j.style.top=.5*c.height+15+"px";AEa(this,b)}; g.h.dD=function(a,b){g.qn(this.u);this.B.start();switch(a){case -1:a="back";break;case 1:a="forward";break;default:a=""}this.element.setAttribute("data-side",a);this.j.style.width="0";this.j.style.height="0";g.vn(this.element,"ytp-chapter-seek");this.updateValue("seekText",b);this.updateValue("seekTime","")};var BVa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(BVa).reduce(function(a,b){a[BVa[b]]=b;return a},{}); var CVa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(CVa).reduce(function(a,b){a[CVa[b]]=b;return a},{}); var DVa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(DVa).reduce(function(a,b){a[DVa[b]]=b;return a},{});var S_,EVa;S_=[{option:"#fff",text:"Branco"},{option:"#ff0",text:"Amarelo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Ciano"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Vermelho"},{option:"#080808",text:"Preto"}];EVa=[{option:0,text:jK(0)},{option:.25,text:jK(.25)},{option:.5,text:jK(.5)},{option:.75,text:jK(.75)},{option:1,text:jK(1)}]; g.nK=[{option:"fontFamily",text:"Estilo de fonte",options:[{option:1,text:"Serifada monoespa\u00e7ada"},{option:2,text:"Serifada proporcional"},{option:3,text:"Sem serifa monoespa\u00e7ada"},{option:4,text:"Sem serifa proporcional"},{option:5,text:"Casual"},{option:6,text:"Cursiva"},{option:7,text:"Versalete"}]},{option:"color",text:"Cor da fonte",options:S_},{option:"fontSizeIncrement",text:"Tamanho da fonte",options:[{option:-2,text:jK(.5)},{option:-1,text:jK(.75)},{option:0,text:jK(1)},{option:1, text:jK(1.5)},{option:2,text:jK(2)},{option:3,text:jK(3)},{option:4,text:jK(4)}]},{option:"background",text:"Cor de fundo",options:S_},{option:"backgroundOpacity",text:"Opacidade de fundo",options:EVa},{option:"windowColor",text:"Cor da janela",options:S_},{option:"windowOpacity",text:"Opacidade da janela",options:EVa},{option:"charEdgeStyle",text:"Estilo de borda do caractere",options:[{option:0,text:"Nenhuma"},{option:4,text:"Sombra projetada"},{option:1,text:"Aumentada"},{option:2,text:"Reduzida"}, {option:3,text:"Circunscrito"}]},{option:"textOpacity",text:"Opacidade da fonte",options:[{option:.25,text:jK(.25)},{option:.5,text:jK(.5)},{option:.75,text:jK(.75)},{option:1,text:jK(1)}]}];g.w(g.mK,g.Vy);g.h=g.mK.prototype; g.h.fO=function(a){var b=!1,c=g.$s(a),d=Vs(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=this.api.S();g.Zs(a)?(e=!1,k=!0):l.Rg&&(e=!1);if(9===c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"===d.tagName||"A"===d.tagName||"INPUT"===d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!==m&&"button"!==m&&0!==m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"===d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"), d=38===c?d.previousSibling:d.nextSibling,"slider"===m?b=!0:e&&("option"===m?(d&&"option"===d.getAttribute("role")&&d.focus(),f=b=!0):m&&0===m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0===d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);EJ(this.zc,f,!1);this.api.setVolume(f);k=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);EJ(this.zc,f,!0);this.api.setVolume(f);k=f=!0;break;case 36:this.api.Of()&&(this.api.startSeekCsiAction(), this.api.seekTo(0),k=f=!0);break;case 35:this.api.Of()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),k=f=!0)}}b&&lK(this,!0);(b||k)&&this.Nd.Gm();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.Ys(a);l.B&&(a={keyCode:g.$s(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.Zs(a),fullscreen:this.api.isFullscreen()},this.api.Ia("onKeyPress",a))}; g.h.gO=function(a){this.handleGlobalKeyUp(g.$s(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)}; g.h.handleGlobalKeyUp=function(a){var b=!1,c=g.pI(this.api.fb());c&&(c=c.fq)&&c.kb&&(c.bO(a),b=!0);9===a&&(lK(this,!0),b=!0);return b}; g.h.handleGlobalKeyDown=function(a,b,c,d,e,f){var k=!1;e=this.api.S();if(e.Rg)return k;var l=g.pI(this.api.fb());if(l&&(l=l.fq)&&l.kb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:k=l.aO(a)}e.D||k||(k=f||String.fromCharCode(a).toLowerCase(),this.u+=k,0==="awesome".indexOf(this.u)?(k=!0,7===this.u.length&&Vja(this.api.getRootNode(),"ytp-color-party")):(this.u=k,k=0==="awesome".indexOf(this.u)));if(!k){l=this.api.getVideoData();var m,n;f=null==(m=this.progressBar)?void 0: null==(n=m.u)?void 0:n.isEnabled;m=l?l.Qg:[];n=tO?d:c;switch(a){case 80:b&&!e.Ca&&(DJ(this.zc,BBa(),"Anterior"),this.api.previousVideo(),k=!0);break;case 78:b&&!e.Ca&&(DJ(this.zc,nG(),"Pr\u00f3ximo"),this.api.nextVideo(),k=!0);break;case 74:this.api.Of()&&(this.api.startSeekCsiAction(),this.j?this.j.Bv(-1,10):DJ(this.zc,{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate()),k=!0);break;case 76:this.api.Of()&&(this.api.startSeekCsiAction(),this.j?this.j.Bv(1,10):DJ(this.zc,{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate()),k=!0);break;case 37:this.api.Of()&&(this.api.startSeekCsiAction(),n?(n=DEa(m,1E3*this.api.getCurrentTime()),-1!==n&&null!=this.j&&(this.j.dD(-1,m[n].title),this.api.seekTo(m[n].startTime/1E3),k=!0)):(this.j?this.j.Bv(-1,5):DJ(this.zc,{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate()),k=!0));break;case 39:this.api.Of()&&(this.api.startSeekCsiAction(),n?(n=CEa(m,1E3*this.api.getCurrentTime()),-1!==n&&null!=this.j&&(this.j.dD(1,m[n].title),this.api.seekTo(m[n].startTime/1E3),k=!0)):(null!=this.j?this.j.Bv(1,5):DJ(this.zc,{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate()),k=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),EJ(this.zc,this.api.getVolume(),!1)):(this.api.mute(),EJ(this.zc,0,!0));k=!0;break;case 32:case 75:e.Ca||(f?this.progressBar.mG():(k=!g.mF(this.api.vb()),this.zc.Ls(k),k?this.api.playVideo():this.api.pauseVideo()),k=!0);break;case 190:b?e.Bd&&(k=this.api.getPlaybackRate(),this.api.setPlaybackRate(k+.25,!0),iEa(this.zc,!1),k=!0):this.api.Of()&&(GEa(this,1),k=!0);break;case 188:b?e.Bd&&(k=this.api.getPlaybackRate(), this.api.setPlaybackRate(k-.25,!0),iEa(this.zc,!0),k=!0):this.api.Of()&&(GEa(this,-1),k=!0);break;case 70:QDa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),k=!0); break;case 27:f?(this.progressBar.yN(),k=!0):this.C()&&(k=!0)}if("3"!==e.controlsType)switch(a){case 67:g.PI(this.api.fb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),jEa(this.zc,!e||e&&!e.displayName),k=!0);break;case 79:oK(this,"textOpacity");break;case 87:oK(this,"windowOpacity");break;case 187:case 61:oK(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:oK(this,"fontSizeIncrement",!0,!0)}var p;b||c||d||(48<=a&&57>=a?p=a-48:96<=a&&105>=a&&(p=a-96));null!=p&&this.api.Of()&& (this.api.startSeekCsiAction(),a=this.api.getProgressState(),this.api.seekTo(p/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),k=!0);k&&this.Nd.Gm()}return k}; g.h.Y=function(){g.qn(this.B);g.Vy.prototype.Y.call(this)};g.w(pK,g.V);pK.prototype.Ea=function(){var a=g.IA(this.G.S())&&g.oI(this.G)&&g.U(this.G.vb(),128),b=this.G.getPlayerSize();this.visible=this.j.eg()&&!a&&240<=b.width&&!(this.G.getVideoData().D&&this.G.S().pfpChazalUi);g.N(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&gK(this.tooltip);this.G.Va(this.element,this.visible&&this.Z)}; pK.prototype.hc=function(a){g.V.prototype.hc.call(this,a);this.G.Va(this.element,this.visible&&a)}; pK.prototype.Y=function(){g.V.prototype.Y.call(this);g.xn(this.element,"ytp-overflow-button-visible")};g.w(qK,g.sJ);g.h=qK.prototype;g.h.dU=function(a){a=Vs(a);g.og(this.element,a)&&(g.og(this.j,a)||g.og(this.closeButton,a)||tJ(this))}; g.h.Db=function(){g.sJ.prototype.Db.call(this);this.tooltip.xk(this.element)}; g.h.show=function(){this.kb&&this.G.W("OVERFLOW_PANEL_OPENED");g.sJ.prototype.show.call(this);this.element.setAttribute("aria-modal","true");HEa(this,!0)}; g.h.hide=function(){g.sJ.prototype.hide.call(this);this.element.removeAttribute("aria-modal");HEa(this,!1)}; g.h.onFullscreenToggled=function(a){!a&&this.Xg()&&tJ(this)}; g.h.focus=function(){for(var a=g.r(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.kb){b.focus();break}};g.w(sK,g.V);sK.prototype.onClick=function(a){g.fJ(a,this.api)&&this.api.playVideoAt(this.index)};g.w(tK,g.sJ);g.h=tK.prototype;g.h.show=function(){g.sJ.prototype.show.call(this);this.B.N(this.api,"videodatachange",this.CE);this.B.N(this.api,"onPlaylistUpdate",this.CE);this.CE()}; g.h.hide=function(){g.sJ.prototype.hide.call(this);g.Tt(this.B);this.updatePlaylist(null)}; g.h.CE=function(){this.updatePlaylist(this.api.getPlaylist())}; g.h.hD=function(){var a=this.playlist,b=a.B;if(b===this.C)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{for(var c=g.r(this.j),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;this.j=[];for(d=0;dthis.api.Wa().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.OE("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.OE("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.kb||(this.show(),gK(this.tooltip)),this.visible=!0,this.hc(!0)): this.kb&&(this.hide(),this.hc(!1),gK(this.tooltip))}; uK.prototype.hc=function(a){g.V.prototype.hc.call(this,a);this.api.Va(this.element,this.visible&&a)}; uK.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ea,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ea,this);this.Ea()};g.w(vK,g.V);g.h=vK.prototype;g.h.VY=function(){this.C?MK(this):wK(this)}; g.h.UY=function(){this.C?(NK(this),this.I=!0):wK(this)}; g.h.jY=function(){this.D=!0;xK(this,1);this.G.W("promotooltipacceptbuttonclicked",this.acceptButton);NK(this);this.u&&this.G.qb(this.acceptButton)}; g.h.bZ=function(){this.D=!0;xK(this,2);NK(this);this.u&&this.G.qb(this.dismissButton)}; g.h.eU=function(a){if(1===this.G.getPresentingPlayerType()||2===this.G.getPresentingPlayerType()&&this.P){var b=!0,c=g.dg("ytp-ad-overlay-ad-info-dialog-container"),d=Vs(a);if(this.B&&d&&g.og(this.B,d))this.B=null;else{1===this.G.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)}); var e=KEa(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.og(this.element,d));else{var k;"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null==(k=this.tooltipRenderer.dismissStrategy)?void 0:k.type)&&(b=e?!1:b&&g.og(this.element,d))}this.j&&this.kb&&!c&&(!d||b&&g.dH(a))&&(this.D=!0,NK(this))}}}; g.h.ub=function(){this.I||(this.j||(this.j=IEa(this)),MK(this))}; var JEa={"ytp-settings-button":g.rG()};g.w(OK,g.V);OK.prototype.onStateChange=function(a){g.dG(this,g.U(a.state,2))}; OK.prototype.onClick=function(){this.G.vb();this.G.playVideo()};g.w(g.PK,g.V);g.PK.prototype.onClick=function(){var a=this.api.S(),b=this.api.getVideoData(this.api.getPresentingPlayerType()),c=this.api.getPlaylistId();a=a.getVideoUrl(b.videoId,c,void 0,!0);if(navigator.share)try{var d=navigator.share({title:b.title,url:a});d instanceof Promise&&d.catch(LEa)}catch(e){e instanceof Error&&LEa(e)}else this.j.Vl(),tJ(this.B,this.element,!1);this.api.qb(this.element)}; g.PK.prototype.Ea=function(){var a=this.api.S(),b=this.api.getVideoData(),c=g.IA(a)&&g.oI(this.api)&&g.U(this.api.vb(),128);this.updateValue("icon",{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});a=a.disableSharing&&2!==this.api.getPresentingPlayerType()|| !b.showShareButton||b.Al||c||b.D&&a.pfpChazalUi;c=this.api.Wa().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.u&&!a;g.N(this.element,"ytp-share-button-visible",this.visible);g.dG(this,this.visible);gK(this.tooltip);this.api.Va(this.element,this.visible&&this.Z)}; g.PK.prototype.hc=function(a){g.V.prototype.hc.call(this,a);this.api.Va(this.element,this.visible&&a)}; g.PK.prototype.Y=function(){g.V.prototype.Y.call(this);g.xn(this.element,"ytp-share-button-visible")};g.w(g.QK,g.sJ);g.h=g.QK.prototype;g.h.fU=function(a){a=Vs(a);g.og(this.D,a)||g.og(this.closeButton,a)||tJ(this)}; g.h.Db=function(){g.sJ.prototype.Db.call(this);this.tooltip.xk(this.element)}; g.h.show=function(){var a=this.kb;g.sJ.prototype.show.call(this);this.Ea();a||this.api.Ia("onSharePanelOpened")}; g.h.JX=function(){this.kb&&this.Ea()}; g.h.Ea=function(){var a=this;g.vn(this.element,"ytp-share-panel-loading");g.xn(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&AH(this.api.Yl(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.xn(a.element,"ytp-share-panel-loading"),NEa(a,d))}); b=this.api.getVideoUrl(!0,!0,!1,!1);this.api.S().isMusic()&&(b=g.ph(b,g.WH({},"emb_share")));this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.OE("Compartilhar o link $URL",{URL:b}));iJ(this.B)}; g.h.onFullscreenToggled=function(a){!a&&this.Xg()&&tJ(this)}; g.h.focus=function(){this.B.focus()}; g.h.Y=function(){g.sJ.prototype.Y.call(this);MEa(this)};g.w(TK,g.V);g.h=TK.prototype;g.h.YH=function(){}; g.h.ZH=function(){}; g.h.Dz=function(){return!0}; g.h.Z0=function(){if(this.expanded){this.ma.show();var a=this.I.element.scrollWidth}else a=this.I.element.scrollWidth,this.ma.hide();this.Sa=34+a;g.N(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Sa)+"px";this.ea.start()}; g.h.oW=function(){this.badge.element.style.width=(this.expanded?this.Sa:34)+"px";this.Ga.start()}; g.h.O1=function(){g.N(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)}; g.h.pj=function(){this.Dz()?this.P.show():this.P.hide();OEa(this)}; g.h.gU=function(){this.enabled=!1;this.pj()}; g.h.N1=function(){this.pj()}; g.h.LY=function(a){this.Pa=1===a;this.pj();g.N(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}; g.h.fZ=function(){g.N(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.G.isFullscreen());this.pj()};g.w(UK,TK);g.h=UK.prototype;g.h.Y=function(){VK(this);TK.prototype.Y.call(this)}; g.h.YH=function(a){a.target!==this.dismissButton.element&&(QEa(this,!1),this.G.Ia("innertubeCommand",this.onClickCommand))}; g.h.ZH=function(){this.B=!0;QEa(this,!0);this.pj()}; g.h.QZ=function(a){this.Ca=a;this.pj()}; g.h.JZ=function(a){var b=this.G.getVideoData();b&&b.videoId===this.videoId&&this.xa&&(this.U=a,a||(a=3+this.G.getCurrentTime(),this.Sd(a)))}; g.h.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.B=!1,this.j=!0,this.U=this.xa=this.u=this.J=!1,VK(this);if(a||!b.videoId)this.D=this.C=!1;a=b.shoppingOverlayRenderer;this.Ca=this.enabled=!1;if(a){this.enabled=!0;if(!this.C){var c,d=null==(c=a.badgeInteractionLogging)?void 0:c.trackingParams;(this.C=!!d)&&this.G.Wk(this.badge.element,d||null)}if(!this.D){var e;if(this.D=!(null==(e=a.dismissButton)||!e.trackingParams)){var f;this.G.Wk(this.dismissButton.element, (null==(f=a.dismissButton)?void 0:f.trackingParams)||null)}}this.text=g.rv(a.text);var k;if(c=null==(k=a.dismissButton)?void 0:k.a11yLabel)this.Qa=g.rv(c);this.onClickCommand=a.onClickCommand;this.timing=a.timing;mD(b)?this.U=this.xa=!0:this.Sd()}PEa(this);SK(this);this.pj()}; g.h.Dz=function(){return!this.Ca&&this.enabled&&!this.B&&!this.Ya.eg()&&!this.Pa&&!this.U&&(this.u||this.j)}; g.h.nf=function(a){(this.u=a)?(RK(this),SK(this,!1)):(VK(this),this.V.start());this.pj()}; g.h.Sd=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.kv(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.kv(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.G.Sd(b)};g.w(WK,g.sJ);WK.prototype.show=function(){g.sJ.prototype.show.call(this);this.C.start()}; WK.prototype.hide=function(){g.sJ.prototype.hide.call(this);this.C.stop()}; WK.prototype.xp=function(a,b){"dataloaded"===a&&((this.B=b.iM,this.j=b.gM,isNaN(this.B)||isNaN(this.j))?this.D&&(this.G.yf("intro"),this.G.removeEventListener(g.mv("intro"),this.ea),this.G.removeEventListener(g.nv("intro"),this.V),this.G.removeEventListener("onShowControls",this.U),this.hide(),this.D=!1):(this.G.addEventListener(g.mv("intro"),this.ea),this.G.addEventListener(g.nv("intro"),this.V),this.G.addEventListener("onShowControls",this.U),a=new g.kv(this.B,this.j,{priority:9,namespace:"intro"}), this.G.Sd([a]),this.D=!0))};g.w(XK,g.V);XK.prototype.onClick=function(){this.G.eq()}; XK.prototype.Ea=function(){var a=!0;g.IA(this.G.S())&&(a=a&&480<=this.G.Wa().getPlayerSize().width);g.dG(this,a);this.updateValue("icon",this.G.ag()?{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Ib:!0,T:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}: {F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};new Oq("yt.autonav");g.w(YK,g.V);g.h=YK.prototype; g.h.Fw=function(){var a;if(a=3!==this.G.getPresentingPlayerType()&&g.sI(this.G)&&400<=this.G.Wa().getPlayerSize().width)a=this.Sc(),a=this.G.S().K("client_respect_autoplay_switch_button_renderer")?!!a.autoplaySwitchButtonRenderer:!1!==a.zS;if(a)this.j||(this.j=!0,g.dG(this,this.j),this.G.S().K("web_player_autonav_toggle_always_listen")||REa(this),a=this.Sc(),this.yL(a.autonavState),this.G.Va(this.element,this.j));else if(this.j=!1,g.dG(this,this.j),!this.G.S().K("web_player_autonav_toggle_always_listen")){this.G.S().K("web_player_autonav_toggle_always_listen");a= g.r(this.u);for(var b=a.next();!b.done;b=a.next())this.pc(b.value)}}; g.h.yL=function(a){TEa(this)?this.isChecked=1!==a:((a=1!==a)||(g.Iq.getInstance(),a=g.P("web_autonav_allow_off_by_default")&&!g.Jq(0,141)&&g.O("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Jq(0,140)),this.isChecked=a);SEa(this)}; g.h.onClick=function(){this.isChecked=!this.isChecked;this.G.gD(this.isChecked?2:1);SEa(this);if(TEa(this)){var a=this.Sc().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.G.Ia("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.G.Ia("innertubeCommand",a.onDisabledCommand)}this.G.qb(this.element)}; g.h.getValue=function(){return this.isChecked}; g.h.setValue=function(a){this.isChecked=a;this.va("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))}; g.h.Sc=function(){var a;this.G.S().K("web_player_autonav_toggle_app_video_data_killswitch")||(a=1);return this.G.getVideoData(a)};g.w(g.$K,g.V);g.$K.prototype.Y=function(){this.ctx=null;g.V.prototype.Y.call(this)};g.w(aL,g.V);aL.prototype.onClick=function(){this.G.Ia("innertubeCommand",this.j)}; aL.prototype.J=function(a){a!==this.D&&(this.update({title:a}),this.D=a);a?this.show():this.hide()}; aL.prototype.I=function(){this.B.disabled=null==this.j;g.N(this.B,"ytp-chapter-container-disabled",this.B.disabled);this.Rb()};g.w(bL,aL);bL.prototype.onClickCommand=function(a){(null==a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Rb()}; bL.prototype.updateVideoData=function(a,b){var c;this.j=null==(c=b.IS)?void 0:c.command;aL.prototype.I.call(this)}; bL.prototype.Rb=function(){var a="",b=this.C.j,c=this.G.getLoopRange();c=!this.G.K("web_repeating_chapters")&&c||"clips"===(null==c?void 0:c.type);if(1d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.iI()}}; g.h.disable=function(){var a=this;if(!this.message){var b=(null!=Ps(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"Tela cheia indispon\u00edvel. $BEGIN_LINKSaiba mais$END_LINK":"Seu navegador n\u00e3o tem suporte para tela cheia. $BEGIN_LINKSaiba mais$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.sJ(this.G,{F:"div",Aa:["ytp-popup","ytp-generic-popup"],T:{role:"alert",tabindex:"0"},R:[b[0],{F:"a",T:{href:"https://support.google.com/youtube/answer/6276924", target:this.G.S().J},X:b[2]},b[4]]},100,!0);this.message.hide();g.J(this,this.message);this.message.subscribe("show",function(c){a.u.uu(a.message,c)}); g.rI(this.G,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}}; g.h.Ea=function(){var a=QDa(this.G),b=this.G.S().I&&250>this.G.getPlayerSize().width;g.dG(this,a&&!b);this.G.Va(this.element,this.kb)}; g.h.Yj=function(a){if(a){var b={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"g",L:"ytp-fullscreen-button-corner-2",R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{F:"g",L:"ytp-fullscreen-button-corner-3",R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{F:"g",L:"ytp-fullscreen-button-corner-0",R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{F:"g", L:"ytp-fullscreen-button-corner-1",R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=jJ(this.G,"Sair da tela inteira","f");document.activeElement===this.element&&this.G.getRootNode().focus()}else b={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{F:"g",L:"ytp-fullscreen-button-corner-0",R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{F:"g",L:"ytp-fullscreen-button-corner-1",R:[{F:"path", Ib:!0,L:"ytp-svg-fill",T:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{F:"g",L:"ytp-fullscreen-button-corner-2",R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{F:"g",L:"ytp-fullscreen-button-corner-3",R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=jJ(this.G,"Tela inteira","f");a=this.message?null:a;this.update({title:a,icon:b});gK(this.u.Zb())}; g.h.Y=function(){this.message||((0,this.j)(),this.j=null);g.V.prototype.Y.call(this)};g.w(hL,aL);hL.prototype.onClickCommand=function(a){(null==a?0:a.changeMarkersVisibilityCommand)&&this.Rb()}; hL.prototype.updateVideoData=function(){var a,b;this.j=null==(a=VEa(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;aL.prototype.I.call(this)}; hL.prototype.Rb=function(){var a="",b=this.C.P,c,d=null==(c=VEa(this))?void 0:c.headerTitle;c=d?g.rv(d):"";d=this.G.getLoopRange();d=!this.G.K("web_repeating_chapters")&&d||"clips"===(null==d?void 0:d.type);1a&&this.delay.start()}; var FVa=new g.Ln(0,0,.4,0,.2,1,1,1),$Ea=/[0-9.-]+|[^0-9.-]+/g;g.w(g.nL,g.V);g.h=g.nL.prototype;g.h.zL=function(a){this.visible=300<=a.width;g.dG(this,this.visible);this.G.Va(this.element,this.visible&&this.Z)}; g.h.BZ=function(){this.G.S().xa?this.G.isMuted()?this.G.unMute():this.G.mute():tJ(this.message,this.element,!0);this.G.qb(this.element)}; g.h.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)}; g.h.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.G.S();a=0===d?1:50(0,g.Q)()-this.ea;if(5>Math.abs(this.D)&&!a){this.ea=(0,g.Q)();a=this.I+this.D;var b=this.progressBarWidth/2-a;this.FE(a);this.EE(a+b);tL(this)}tL(this)}; g.h.play=function(){this.api.seekTo(mFa(this,this.u));this.api.playVideo()}; g.h.onScroll=function(a){0=lFa(this)?(this.api.seekTo(a,!1),g.Bk(this.J,"transform","translateX("+this.u+"px)"),this.update({seekTime:g.cH(a)})):this.u=this.C)}; g.h.enable=function(){this.isEnabled||(this.isEnabled=!0,this.ma=this.api.getCurrentTime(),g.N(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.V=this.N(this.element,"wheel",this.jU))}; g.h.disable=function(){this.isEnabled=!1;this.hide();g.N(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.V&&this.pc(this.V)}; g.h.reset=function(){this.disable();this.B=[];this.U=!1}; g.h.Y=function(){for(;this.j.length;){var a=void 0;null==(a=this.j.pop())||a.dispose()}g.V.prototype.Y.call(this)}; g.w(jFa,g.V);g.w(vL,g.V);g.w(wL,g.V);wL.prototype.setId=function(a){this.update({id:a});a="url(#"+a+")";this.C.setAttribute("clip-path",a);this.B.setAttribute("clip-path",a);this.u.setAttribute("clip-path",a)};g.w(xL,g.V);pFa.prototype.update=function(a,b,c,d){this.width=b;this.u=c;this.D=d;this.j=b-c-d;this.position=g.Ff(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.w(BL,g.V);g.w(g.DL,g.eG);g.h=g.DL.prototype; g.h.ZR=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.yf("timedMarkerCueRange");EL(this);for(var c=g.r(b.Wc),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.Kc[d])?void 0:e.markers;if(f){a=g.r(f);for(e=a.next();!e.done;e=a.next()){f=e.value;e=new BL;var k=void 0;e.title=(null==(k=f.title)?void 0:k.simpleText)||"";e.timeRangeStartMillis=Number(f.startMillis);e.j=Number(f.durationMillis);var l=k=void 0;e.onActiveCommand=null!=(l=null==(k=f.onActive)?void 0: k.innertubeCommand)?l:void 0;tFa(this,e)}FL(this,this.P);a=this.P;e=this.He;f=[];k=null;for(l=0;lm&&(k.end=m);m=EEa(m,m+p);f.push(m);k=m;e[m.id]=a[l].onActiveCommand}}this.api.Sd(f);this.Te=this.Kc[d];a=!0}}b.KO=this.P;return a}; g.h.ub=function(){g.GL(this);JL(this);FL(this,this.P);var a;null==(a=this.u)||uL(a,this.api.getCurrentTime())}; g.h.onClickCommand=function(a){if(a=null==a?void 0:a.changeKeyedMarkersVisibilityCommand){var b=a.key;a.isVisible&&b&&HL(this,b)}}; g.h.O_=function(a){this.api.Ia("innertubeCommand",this.He[a.id])}; g.h.Rb=function(){JL(this);var a=this.api.getCurrentTime();(athis.clipEnd)&&this.aD()}; g.h.lU=function(a){if(!g.Zs(a)){var b=!1;switch(g.$s(a)){case 36:this.api.seekTo(0);b=!0;break;case 35:this.api.seekTo(Infinity);b=!0;break;case 34:this.api.seekBy(-60);b=!0;break;case 33:this.api.seekBy(60);b=!0;break;case 38:this.api.seekBy(5);b=!0;break;case 40:this.api.seekBy(-5),b=!0}b&&g.Ys(a)}}; g.h.xp=function(a,b){this.updateVideoData(b,"newdata"===a)}; g.h.SW=function(){this.xp("newdata",this.api.getVideoData())}; g.h.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(HD(a)||ML(this)?this.Xc=!1:this.Xc=a.allowLiveDvr,g.N(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!HD(a))));GFa(this,this.api.Of());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;PL(this);for(KL(this,this.V,this.ib);0m&&(c=m,b=-this.ma,m=jH(this.B,m)*IL(this).j+b,a.position= m),b=this.B.u;ML(this)&&(b=this.B.u);m=f||g.cH(this.Xc?c-this.B.j:c-b);b=a.position+this.Bf;c-=this.api.pd();var n;if(null==(n=this.u)||!n.isEnabled)if(this.api.ji()){if(1= d&&p.timeRangeStartMillis=k.visibleTimeRangeStartMillis&&p<=k.visibleTimeRangeEndMillis&&(n=k.label,m=g.cH(k.decorationTimeMillis/1E3),d=!0);this.Hd!==d&&(this.Hd=d,this.api.Va(this.Bd,this.Hd));g.N(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.C?8.55:5.7);d=e<=d?e:d;e=d<160*this.tooltip.scale;k=3;!e&&d/2>a.position&&(k=1);!e&&d/2>this.progressBarWidth- a.position&&(k=2);this.api.S().I&&(l-=10);this.D.length&&this.D[0].isValid&&(l-=14*(this.C?2:1),this.Ca||(this.Ca=!0,this.api.Va(this.ea,this.Ca)));var q;if(CL(this)&&((null==(q=this.u)?0:q.isEnabled)||0=.5*b?(this.u.enable(),uL(this.u,this.api.getCurrentTime()),FFa(this,b)):UL(this)}else if(this.Wc=0,g.xn(this.element,"ytp-pull-ui"),g.xn(this.element,"ytp-pulling"),this.I&&(this.I.dispose(),this.I=null),0l||1l&&a.I.start();a.Ga&&(a.Ga=!1,a.api.Va(a.Ya, a.Ga))}); this.I.start()}if(g.U(this.api.vb(),32)||3===this.api.getPresentingPlayerType()){var d;if(null==(d=this.u)?0:d.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(1=e.visibleTimeRangeStartMillis&&1E3*b<=e.visibleTimeRangeEndMillis&&this.api.qb(this.Bd)}g.xn(this.element,"ytp-drag"); this.Ie&&!g.U(this.api.vb(),2)&&this.api.playVideo()}}}; g.h.VZ=function(a,b){var c=this,d=!1,e=!1;a=IL(this);1===this.j.length&&!CL(this)&&3600<=hH(this.B)&&(AFa(this,this.Zd-b-10,a.position,a.B),e=!0,d=this.J>.1*(this.C?60:40),a=IL(this));g.N(this.element,"ytp-pull-ui",e);d&&g.vn(this.element,"ytp-pulling");d=0;a.u&&0>=a.position?d=-1:a.D&&a.position>=a.width&&(d=1);if(this.Wc!==d&&(this.Wc=d,this.I&&(this.I.dispose(),this.I=null),d)){var f=(0,g.Q)();this.I=new g.mn(function(){var l=c.progressBarWidth*(c.Qa-1);c.ma=g.Ff(c.ma+c.Wc*((0,g.Q)()-f)*.3,0,l); LL(c);c.api.seekTo(OL(c,IL(c)),!1);0=this.Yc.items.length&&this.hide();this.Yc.Mf(a);a=this.Wn;a.u=0=b;g.dG(this,a);this.G.Va(this.element,a)}; cM.prototype.B=function(){if(this.gb.kb)this.gb.Db();else{var a=g.PI(this.G.fb());a&&!a.loaded&&(a.Wf("tracklist",{includeAsr:!0}).length||a.load());this.G.qb(this.element);this.gb.md(this.element)}}; cM.prototype.updateBadge=function(){var a=this.G.isHdr(),b=this.G.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.qI(this.G),e=c&&!!g.pI(this.G.fb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.G.getPlaybackQuality();g.N(this.element,"ytp-hdr-quality-badge",a);g.N(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.N(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.N(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.N(this.element,"ytp-8k-quality-badge", !a&&"highres"===c);g.N(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.N(this.element,"ytp-3d-badge",!a&&e&&d)};g.w(eM,WJ);eM.prototype.isLoaded=function(){var a=g.YI(this.G.fb());return void 0!==a&&a.loaded}; eM.prototype.Ea=function(){void 0!==g.YI(this.G.fb())&&3!==this.G.getPresentingPlayerType()?this.j||(this.gb.yc(this),this.j=!0):this.j&&(this.gb.Mf(this),this.j=!1);this.setValue(this.isLoaded())}; eM.prototype.onSelect=function(a){this.isLoaded();a?this.G.loadModule("annotations_module"):this.G.unloadModule("annotations_module");this.G.W("annotationvisibility",a)}; eM.prototype.Y=function(){this.j&&this.gb.Mf(this);WJ.prototype.Y.call(this)};g.w(g.fM,g.OJ);g.h=g.fM.prototype;g.h.open=function(){g.ZJ(this.gb,this.panel)}; g.h.tj=function(a){IFa(this);this.options[a].element.setAttribute("aria-checked","true");this.Gd(this.rk(a));this.u=a}; g.h.zF=function(a,b,c){var d=this;b=new g.OJ({F:"div",Aa:["ytp-menuitem"],T:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},R:[{F:"div",Aa:["ytp-menuitem-label"],X:"{{label}}"}]},b,this.rk(a,!0));b.Ja("click",function(){d.rg(a)}); return b}; g.h.enable=function(a){this.B?a||(this.B=!1,this.Kt(!1)):a&&(this.B=!0,this.Kt(!0))}; g.h.Kt=function(a){a?this.gb.yc(this):this.gb.Mf(this)}; g.h.rg=function(a){this.W("select",a)}; g.h.rk=function(a){return a.toString()}; g.h.mU=function(a){g.Zs(a)||39!==g.$s(a)||(this.open(),g.Ys(a))}; g.h.Y=function(){this.B&&this.gb.Mf(this);g.OJ.prototype.Y.call(this);for(var a=g.r(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.w(hM,g.fM);hM.prototype.Ea=function(){var a=this.G.getAvailableAudioTracks();1(a.deltaX||-a.deltaY)?-this.D:this.D;this.Js(b);g.Ys(a)}; g.h.oU=function(a){a=(a-g.Pk(this.u).x)/this.J*this.range+this.minimumValue;this.Js(a)}; g.h.Js=function(a,b){b=void 0===b?"":b;a=g.Ff(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.P.style.left=(a-this.minimumValue)/this.range*(this.J-this.V)+"px";this.j=a}; g.h.focus=function(){this.ea.focus()};g.w(uM,sM);uM.prototype.U=function(){this.G.setPlaybackRate(this.j,!0)}; uM.prototype.Js=function(a){sM.prototype.Js.call(this,a,vM(this,a).toString());this.B&&(tM(this),this.ma())}; uM.prototype.updateValues=function(){var a=this.G.getPlaybackRate();vM(this,this.j)!==a&&(this.Js(a),tM(this))};g.w(wM,g.eG);wM.prototype.focus=function(){this.j.focus()};g.w(KFa,RJ);g.w(xM,g.fM);g.h=xM.prototype;g.h.rk=function(a){return"1"===a?"Normal":a.toLocaleString()}; g.h.Ea=function(){var a=this.G.getPresentingPlayerType();this.enable(2!==a&&3!==a);NFa(this)}; g.h.Kt=function(a){g.fM.prototype.Kt.call(this,a);a?(this.I=this.N(this.G,"onPlaybackRateChange",this.onPlaybackRateChange),NFa(this),LFa(this,this.G.getPlaybackRate())):(this.pc(this.I),this.I=null)}; g.h.onPlaybackRateChange=function(a){var b=this.G.getPlaybackRate();this.D.includes(b)||MFa(this,b);LFa(this,a)}; g.h.rg=function(a){g.fM.prototype.rg.call(this,a);a===this.j?this.G.setPlaybackRate(this.C,!0):this.G.setPlaybackRate(Number(a),!0);this.gb.Gi()};g.w(zM,g.fM);g.h=zM.prototype;g.h.tj=function(a){g.fM.prototype.tj.call(this,a)}; g.h.getKey=function(a){return a.option.toString()}; g.h.getOption=function(a){return this.settings[a]}; g.h.rk=function(a){return this.getOption(a).text||""}; g.h.rg=function(a){g.fM.prototype.rg.call(this,a);this.W("settingChange",this.setting,this.settings[a].option)};g.w(AM,g.SJ);AM.prototype.og=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Lp[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.tj(e),c.C.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}}; AM.prototype.Ei=function(a,b){this.W("settingChange",a,b)};g.w(BM,g.fM);BM.prototype.getKey=function(a){return a.languageCode}; BM.prototype.rk=function(a){return this.languages[a].languageName||""}; BM.prototype.rg=function(a){this.W("select",a);this.G.qb(this.element);g.cK(this.gb)};g.w(CM,g.fM);g.h=CM.prototype;g.h.getKey=function(a){return g.Ae(a)?"__off__":a.displayName}; g.h.rk=function(a){return"__off__"===a?"Desativado":"__translate__"===a?"Traduzir automaticamente":"__contribute__"===a?"Adicionar legendas/CC":("__off__"===a?{}:this.tracks[a]).displayName}; g.h.rg=function(a){"__translate__"===a?this.j.open():"__contribute__"===a?(this.G.pauseVideo(),this.G.isFullscreen()&&this.G.toggleFullscreen(),a=g.VH(this.G.S(),this.G.getVideoData()),g.oH(a)):(this.G.qb(this.element),this.G.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.fM.prototype.rg.call(this,a),this.gb.Gi())}; g.h.Ea=function(){var a=this.G.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.G.getVideoData();b=b&&b.Fq;var c,d=!(null==(c=this.G.getVideoData())||!g.ED(c));c={};if(a||b){if(a){var e=this.G.getOption("captions","track");c=this.G.getOption("captions","tracklist",{includeAsr:!0});var f=d?[]:this.G.getOption("captions","translationLanguages");this.tracks=g.dc(c,this.getKey,this);d=g.Rj(c,this.getKey);if(f.length&&!g.Ae(e)){var k=e.translationLanguage;if(k&&k.languageName){var l=k.languageName; k=f.findIndex(function(m){return m.languageName===l}); Naa(f,k)}PFa(this.j,f);d.push("__translate__")}f=this.getKey(e)}else this.tracks={},d=[],f="__off__";d.unshift("__off__");this.tracks.__off__={};b&&d.unshift("__contribute__");this.tracks[f]||(this.tracks[f]=e,d.push(f));g.gM(this,d);this.tj(f);e&&e.translationLanguage?this.j.tj(this.j.getKey(e.translationLanguage)):IFa(this.j);a&&this.C.og(this.G.getSubtitlesUserSettings());this.I.Gd(c&&c.length?" ("+c.length+")":"");this.W("size-change");this.G.Va(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.h.qU=function(a){var b=this.G.getOption("captions","track");b=g.Ee(b);b.translationLanguage=this.j.languages[a];this.G.setOption("captions","track",b)}; g.h.Ei=function(a,b){if("reset"===a)this.G.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.G.updateSubtitlesUserSettings(c)}QFa(this,!0);this.D.start();this.C.og(this.G.getSubtitlesUserSettings())}; g.h.x_=function(a){a||g.qn(this.D)}; g.h.Y=function(){g.qn(this.D);g.fM.prototype.Y.call(this)};g.w(DM,g.aK);g.h=DM.prototype;g.h.initialize=function(){if(!this.isInitialized){this.isInitialized=!0;this.BH=new kM(this.G,this);g.J(this,this.BH);var a=new oM(this.G,this);g.J(this,a);a=new CM(this.G,this);g.J(this,a);this.G.S().C||(a=new eM(this.G,this),g.J(this,a));this.G.S().Bd&&(a=new xM(this.G,this),g.J(this,a));this.G.S().Xc&&!this.G.S().K("web_player_move_autonav_toggle")&&(a=new iM(this.G,this),g.J(this,a));a=new hM(this.G,this);g.J(this,a);dM(this.settingsButton,this.Yc.items.length)}}; g.h.yc=function(a){this.initialize();this.Yc.yc(a);dM(this.settingsButton,this.Yc.items.length)}; g.h.Mf=function(a){this.kb&&1>=this.Yc.items.length&&this.hide();this.Yc.Mf(a);dM(this.settingsButton,this.Yc.items.length)}; g.h.md=function(a){this.initialize();0=b;g.dG(this,c);this.G.Va(this.element,c);a&&this.updateValue("pressed",this.isEnabled())};g.w(g.HM,g.V);g.h=g.HM.prototype; g.h.Rb=function(){var a=this.api.Wa().getPlayerSize().width,b=this.J;this.api.S().I&&(b=400);b=a>=b&&(!JM(this)||!g.U(this.api.vb(),64));g.dG(this,b);g.N(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.S().K("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1);this.u&&(c-=a.airingStart);IM(this)&&(c-=this.jb.startTimeMs/1E3);c=g.cH(c);this.B!==c&&(this.updateValue("currenttime",c),this.B= c);b=IM(this)?g.cH((this.jb.endTimeMs-this.jb.startTimeMs)/1E3):g.cH(this.api.S().K("halftime_ux_killswitch")?a.duration:this.api.getDuration(b,!1));this.C!==b&&(this.updateValue("duration",b),this.C=b)}a=a.isAtLiveHead;!JM(this)||this.I===a&&this.D===this.isPremiere||(this.I=a,this.D=this.isPremiere,this.Rb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Gd(this.isPremiere?"Estreia":"Ao vivo"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Pular para transmiss\u00e3o ao vivo.", this.j=g.HJ(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.jb!==a;this.jb=a;b&&GM(this)}; g.h.onLoopRangeChange=function(a){var b=this.jb!==a;this.jb=a;b&&(this.Rb(),GM(this))}; g.h.e0=function(){this.api.setLoopRange(null)}; g.h.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.S().K("enable_topsoil_wta_for_halftime")||this.api.S().K("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Rb();GM(this)}; g.h.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.Gb;this.u=HD(a);this.isPremiere=a.isPremiere;g.N(this.element,"ytp-live",JM(this))}; g.h.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())}; g.h.Y=function(){this.j&&this.j();g.V.prototype.Y.call(this)};g.w(MM,g.V);g.h=MM.prototype;g.h.Qn=function(){var a=this.j.Ff();this.C!==a&&(this.C=a,LM(this,this.api.getVolume(),this.api.isMuted()))}; g.h.CL=function(a){g.dG(this,350<=a.width)}; g.h.tU=function(a){if(!g.Zs(a)){var b=g.$s(a),c=null;37===b?c=this.volume-5:39===b?c=this.volume+5:36===b?c=0:35===b&&(c=100);null!==c&&(c=g.Ff(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.Ys(a))}}; g.h.rU=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(0>b?-10:10)):this.api.setVolume(this.volume+g.Ff(b/10,-10,10));g.Ys(a)}; g.h.C_=function(){KM(this,this.u,!0,this.B,this.j.Ej());this.U=this.volume;this.api.isMuted()&&this.api.unMute()}; g.h.sU=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Pk(this.P).x;this.api.setVolume(100*g.Ff((a-c/2)/(b-c),0,1))}; g.h.B_=function(){KM(this,this.u,!1,this.B,this.j.Ej());0===this.volume&&(this.api.mute(),this.api.setVolume(this.U))}; g.h.onVolumeChange=function(a){LM(this,a.volume,a.muted)}; g.h.VM=function(){KM(this,this.u,this.isDragging,this.B,this.j.Ej())}; g.h.Y=function(){g.V.prototype.Y.call(this);g.xn(this.J,"ytp-volume-slider-active")};g.w(g.NM,g.V);g.NM.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).D,b=this.api.S();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.dG(this,this.visible);this.api.Va(this.element,this.visible&&this.Z);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",a))}; g.NM.prototype.onClick=function(a){var b=this.api.S(),c=this.api.getVideoUrl(!g.dH(a),!1,!0,!0);if(g.IA(b)||b.isMusic()){var d={};b.Z&&g.IA(b)&&g.XH(d,b.loaderUrl);c=g.ph(c,g.WH(d,"emb_logo"))}g.gJ(c,this.api,a);this.api.qb(this.element)}; g.NM.prototype.ub=function(){var a={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},R:[{F:"path",Ib:!0,L:"ytp-svg-fill",T:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}; if(this.api.S().isMusic()){var b=this.va("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{F:"svg",T:{fill:"none",height:"24",width:"24"},R:[{F:"circle",T:{cx:"12",cy:"12",fill:"red",r:"12"}},{F:"ellipse",T:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{F:"path",T:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{F:"svg",T:{viewBox:"0 0 80 24"},R:[{F:"ellipse",T:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{F:"ellipse", T:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{F:"path",T:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09zM37.43 9.64c-.57 2.85-1.01 6.33-1.25 7.77h-.16c-.18-1.48-.62-4.94-1.22-7.75L33.31 2.67h-4.52v18.85h2.80V5.98l.27 1.45 2.85 14.08h2.80l2.80-14.08.3-1.45v15.54h2.80V2.67h-4.56l-1.43 6.96zM51.01 18.69c-.25.51-.81.87-1.36.87-.64 0-.90-.49-.90-1.70V7.75H45.54v10.29c0 2.54.85 3.70 2.75 3.70 1.29 0 2.33-.56 3.05-1.90h.07l.27 1.68h2.50V7.75h-3.19v10.94h.00zM60.39 13.19c-1.04-.74-1.69-1.23-1.69-2.31 0-.76.37-1.19 1.25-1.19.90 0 1.20.60 1.22 2.67l2.68-.11c.20-3.34-.92-4.74-3.87-4.74-2.73 0-4.07 1.19-4.07 3.63 0 2.22 1.11 3.23 2.92 4.56 1.55 1.16 2.45 1.82 2.45 2.76 0 .72-.46 1.21-1.27 1.21-.95 0-1.50-.87-1.36-2.40l-2.71.04c-.41 2.85.76 4.51 3.91 4.51 2.75 0 4.19-1.23 4.19-3.70-.00-2.24-1.16-3.14-3.66-4.94zM68.87 7.75h-3.05v13.77h3.06V7.75zM67.36 2.31c-1.18 0-1.73.42-1.73 1.91 0 1.52.55 1.90 1.73 1.90 1.20 0 1.73-.38 1.73-1.90 0-1.41-.53-1.91-1.73-1.91zM79.15 16.56l-2.80-.13c0 2.42-.27 3.21-1.22 3.21-.95 0-1.11-.87-1.11-3.73v-2.67c0-2.76.18-3.63 1.13-3.63.88 0 1.11.83 1.11 3.39l2.77-.17c.18-2.13-.09-3.59-.94-4.42-.62-.60-1.57-.89-2.89-.89-3.10 0-4.37 1.61-4.37 6.15v1.93c0 4.67 1.08 6.17 4.26 6.17 1.34 0 2.27-.27 2.89-.85.90-.81 1.24-2.20 1.18-4.34z", fill:"#fff"}}]};g.N(b,"ytp-youtube-music-logo-icon-only",c)}this.updateValue("logoSvg",a)}; g.NM.prototype.hc=function(a){g.V.prototype.hc.call(this,a);this.api.Va(this.element,this.visible&&a)};g.w(OM,g.Vy);g.h=OM.prototype;g.h.Ld=function(){this.progressBar.Rb();this.Kh.Rb()}; g.h.Qk=function(){this.GE();if(this.Nd.u){this.Ld();var a;null==(a=this.P)||a.show()}else{g.XM(this.progressBar.tooltip);var b;null==(b=this.P)||b.hide()}}; g.h.Zr=function(){this.Ld();this.me.start()}; g.h.GE=function(){var a=!this.G.S().isMobile&&300>g.HFa(this.progressBar)&&this.G.vb().isPlaying()&&!!window.requestAnimationFrame,b=!a;this.Nd.u||(a=b=!1);b?this.J||(this.J=this.N(this.G,"progresssync",this.Ld)):this.J&&(this.pc(this.J),this.J=null);a?this.me.isActive()||this.me.start():this.me.stop()}; g.h.ub=function(){var a=this.B.Ff(),b=this.G.Wa().getPlayerSize(),c=PM(this),d=Math.max(b.width-2*c,100);if(this.Pa!==b.width||this.Ka!==a){this.Pa=b.width;this.Ka=a;var e=VFa(this);this.u.element.style.width=e+"px";this.u.element.style.left=c+"px";g.TL(this.progressBar,c,e,a);this.B.Zb().progressBarWidth=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-QM(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.maxHeight=e;c.Xv();this.GE();!this.G.S().K("html5_player_bottom_linear_gradient")&& this.G.S().K("html5_player_dynamic_bottom_gradient")&&g.ZK(this.Qa,b.height)}; g.h.onVideoDataChange=function(){var a=this.G.getVideoData();this.ma.style.background=a.D?a.Ya:"";g.dG(this.V,a.ME)};g.w(RM,TK);g.h=RM.prototype;g.h.YH=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.G.Ia("innertubeCommand",this.onClickCommand),this.B=!0,this.P.hide())}; g.h.ZH=function(){this.B=!0;this.P.hide()}; g.h.onVideoDataChange=function(a,b){"newdata"===a&&(this.u=this.B=!1,SM(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.j=this.J=this.enabled=!0;this.text=(b=a.title)?g.rv(b):"View Chapters";var c;if(b=null==(c=a.trigger)?void 0:c.suggestedActionTimeRangeTrigger){c=[];var d=b.timeRangeStartMillis;b=b.timeRangeEndMillis;null!=d&&null!=b&&c.push(new g.kv(d,b,{priority:9,namespace:"suggested_action_button_visible"}));this.G.Sd(c)}this.onClickCommand=a.tapCommand;PEa(this);SK(this); this.pj()}}; g.h.Dz=function(){return!this.B&&this.enabled&&(this.u||this.j)}; g.h.nf=function(a){this.B||((this.u=a)?RK(this):(SM(this),this.V.start()),this.pj())}; g.h.Y=function(){SM(this);TK.prototype.Y.call(this)};var T_={},TM=(T_.CHANNEL_NAME="ytp-title-channel-name",T_.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",T_.LINK="ytp-title-link",T_.SESSIONLINK="yt-uix-sessionlink",T_.SUBTEXT="ytp-title-subtext",T_.TEXT="ytp-title-text",T_.TITLE="ytp-title",T_);g.w(UM,g.V);UM.prototype.onClick=function(a){this.api.qb(this.element);var b=this.api.S(),c=this.api.getVideoUrl(!g.dH(a),!1,!0);if(g.IA(b)){var d={};b.Z&&g.XH(d,b.loaderUrl);c=g.ph(c,g.WH(d,"emb_title"))}g.gJ(c,this.api,a)}; UM.prototype.Ea=function(){var a=this.api.getVideoData(),b=this.api.S();this.updateValue("title",a.title);WFa(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.Kc&&c.profilePicture?(this.updateValue("channelLink",c.Kc),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):WFa(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.Kb;g.N(this.link,TM.FULLERSCREEN_LINK,c);b.P||!a.videoId||c||a.D&&b.pfpChazalUi|| b.C?this.j&&(this.updateValue("url",null),this.pc(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.N(this.link,"click",this.onClick)));b.C&&this.updateValue("channelName",g.IA(b)?a.expandedTitle:a.author)};g.w(g.VM,g.V);g.h=g.VM.prototype;g.h.PP=function(a,b){a<=this.B&&this.B<=b&&(a=this.B,this.B=NaN,YFa(this,a))}; g.h.FX=function(){Dxa(this.j,this.B,160*this.scale)}; g.h.Dl=function(){switch(this.type){case 2:var a=this.u;a.removeEventListener("mouseout",this.U);a.addEventListener("mouseover",this.C);a.removeEventListener("blur",this.U);a.addEventListener("focus",this.C);aGa(this);break;case 3:aGa(this);break;case 1:this.j&&(this.j.unsubscribe("l",this.PP,this),this.j=null),this.api.removeEventListener("videoready",this.V),this.ea.stop()}this.type=null;this.J&&this.D.hide()}; g.h.xk=function(){if(this.u)for(var a=0;a(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"}; g.h.Qk=function(a){a&&(this.tooltip.xk(this.lj.element),this.Rf&&this.tooltip.xk(this.Rf.u.element));this.UB&&(g.N(this.contextMenu.element,"ytp-autohide",a),g.N(this.contextMenu.element,"ytp-autohide-active",!0));g.wJ.prototype.Qk.call(this,a)}; g.h.XH=function(){g.wJ.prototype.XH.call(this);this.UB&&(g.N(this.contextMenu.element,"ytp-autohide-active",!1),this.UB&&(this.contextMenu.hide(),this.fh&&this.fh.hide()))}; g.h.Dj=function(a,b){var c=this.api.Wa().getPlayerSize();c=new g.yk(0,0,c.width,c.height);if(a||this.Nd.u&&!this.cq()){if(this.api.S().ll||b)a=this.Ff()?this.GF:this.FF,c.top+=a,c.height-=a;this.Rf&&(c.height-=QM(this.Rf))}return c}; g.h.Qn=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","Player de v\u00eddeo do YouTube em tela cheia"),this.api.S().externalFullscreen||(b.parentElement.insertBefore(this.nB.element,b),b.parentElement.insertBefore(this.mB.element,b.nextSibling))):g.Cp(Error("Player not in DOM.")):(b.setAttribute("aria-label","Player de v\u00eddeo do YouTube"),this.nB.detach(),this.mB.detach());this.ub();this.Hm()}; g.h.Ff=function(){var a=this.api.S();return this.api.isFullscreen()&&!a.I||!1}; g.h.showControls=function(a){this.WA=!a;this.fk()}; g.h.ub=function(){var a=this.Ff();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.N(this.contextMenu.element,"ytp-big-mode",a);this.fk();if(this.eg()&&this.fh)this.Ki&&rK(this.fh,this.Ki),this.shareButton&&rK(this.fh,this.shareButton),this.lh&&rK(this.fh,this.lh);else{if(this.fh){a=this.fh;for(var b=g.r(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.Ki&&!g.og(this.Lh.element,this.Ki.element)&&this.Ki.ra(this.Lh.element);this.shareButton&&!g.og(this.Lh.element, this.shareButton.element)&&this.shareButton.ra(this.Lh.element);this.lh&&!g.og(this.Lh.element,this.lh.element)&&this.lh.ra(this.Lh.element)}this.Hm();g.wJ.prototype.ub.call(this)}; g.h.yG=function(){if(fGa(this)&&!g.oI(this.api))return!1;var a=this.api.getVideoData();return!g.IA(this.api.S())||2===this.api.getPresentingPlayerType()||!this.oh||((a=this.oh||a.oh)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.wJ.prototype.yG.call(this):!1}; g.h.Hm=function(){g.wJ.prototype.Hm.call(this);this.api.Va(this.title.element,!!this.pm);this.vv&&this.vv.hc(!!this.pm);this.channelAvatar.hc(!!this.pm);this.overflowButton&&this.overflowButton.hc(this.eg()&&!!this.pm);this.shareButton&&this.shareButton.hc(!this.eg()&&!!this.pm);this.Ki&&this.Ki.hc(!this.eg()&&!!this.pm);this.lh&&this.lh.hc(!this.eg()&&!!this.pm);if(!this.pm){this.tooltip.xk(this.lj.element);for(var a=0;a=b)return m.return();if(!a.environmentData.K("html5_onesie_host_racing_during_prewarming"))return(c=a.j.get(0))&&lGa(a,c),m.Oa(0);d=g.Pz(a.environmentData.experiments,"html5_onesie_prewarm_cooldown_ms");e=a.j.values();f=g.r(e);k=f.next()}if(4!=m.j){if(k.done)return m.Oa(0);l=k.value;if(a.isDisposed())return m.return();lGa(a, l);return d?g.A(m,iGa(d),4):m.Oa(4)}k=f.next();return m.Oa(3)})}; hN.prototype.start=function(){this.startTimestamp=(0,g.Q)()}; hN.prototype.end=function(){this.endTimestamp=(0,g.Q)()};var jN=[],bOa=!1;g.XQ=Ye(function(){var a="";try{var b=g.ig("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.w(g.kN,bF);g.h=g.kN.prototype;g.h.isView=function(){return!0}; g.h.YI=function(){var a=this.mediaElement.getCurrentTime();if(ae?this.zf("next_player_future"):(this.D=d,this.B=Dua(a,c,d,!0),this.C=Dua(a,e,k,!1),a=this.u.getVideoData().clientPlaybackNonce,this.j.qa("gaplessPrep",{cpn:a}),oN(this.j,this.B),this.j.setMediaElement(vGa(b,c,d,!this.j.getVideoData().isAd())), nN(this,2),BGa(this))))}else this.zf("no-elem")}; g.h.Lt=function(a){var b=a===AGa(this).oR,c=b?this.B.j:this.B.u;b=b?this.C.j:this.C.u;if(c.isActive&&!b.isActive){var d=this.D;fz(a.Xf(),d-.01)&&(nN(this,4),c.isActive=!1,c.Uz=c.Uz||c.isActive,this.u.qa("sbh",{}),b.isActive=!0,b.Uz=b.Uz||b.isActive);a=this.C.u;this.C.j.isActive&&a.isActive&&nN(this,5)}}; g.h.UP=function(){4<=this.status.status&&6>this.status.status&&this.zf("player-reload-after-handoff")}; g.h.zf=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&!this.isFinished()){var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.j&&this.u){var d=this.u.getVideoData().clientPlaybackNonce;this.j.rd(new uB("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.al,msg:a})));a=this.j;a.videoData.Ka=!1;c&&GQ(a);a.Fa&&CJa(a.Fa)}this.Fm.reject(void 0);this.dispose()}}; g.h.Y=function(){zGa(this);this.j.unsubscribe("newelementrequired",this.UP,this);if(this.B){var a=this.B.u;this.B.j.Md.unsubscribe("updateend",this.Lt,this);a.Md.unsubscribe("updateend",this.Lt,this)}g.I.prototype.Y.call(this)}; g.h.Uc=function(a){g.CE(a,128)&&this.zf("player-error-event")};g.w(qN,g.I);qN.prototype.clearQueue=function(){this.C&&this.C.reject("Queue cleared");rN(this)}; qN.prototype.Tu=function(){return!this.j}; qN.prototype.Y=function(){rN(this);g.I.prototype.Y.call(this)};g.w(wN,g.Ut);g.h=wN.prototype;g.h.getVisibilityState=function(a,b,c,d,e,f){return a?4:FGa()?3:b?2:c?1:d?5:e?7:f?8:0}; g.h.Yj=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.nf())}; g.h.setMinimized=function(a){this.B!==a&&(this.B=a,this.nf())}; g.h.setInline=function(a){this.inline!==a&&(this.inline=a,this.nf())}; g.h.Jv=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.nf())}; g.h.setImmersivePreview=function(a){this.u!==a&&(this.u=a,this.nf())}; g.h.ag=function(){return this.j}; g.h.isFullscreen=function(){return 0!==this.fullscreen}; g.h.Cu=function(){return this.fullscreen}; g.h.lf=function(){return this.B}; g.h.isInline=function(){return this.inline}; g.h.isBackground=function(){return FGa()}; g.h.Su=function(){return this.pictureInPicture}; g.h.Pu=function(){return this.u}; g.h.nf=function(){this.W("visibilitychange");var a=this.getVisibilityState(this.ag(),this.isFullscreen(),this.lf(),this.isInline(),this.Su(),this.Pu());a!==this.D&&this.W("visibilitystatechange");this.D=a}; g.h.Y=function(){IGa(this.C);g.Ut.prototype.Y.call(this)};g.w(g.AN,g.I);g.h=g.AN.prototype; g.h.onCueRangeEnter=function(a){this.Za.push(a);var b=a.getId(),c=""===b;this.ib.add(a.u);c||this.oa.qa("sdai",{enterAdCueRange:1});if(this.Qa){this.Qa=!1;if(!c){var d=this.u.get(b);d&&(this.environmentData.K("web_player_ss_record_join_mid_ad_break_killswitch")||(c=this.oa.getCurrentTime(),HN(this,{Jd:a,isAd:!0,Fn:!0,Tf:c,adCpn:b},{isAd:!1,Fn:!1,Tf:c})),this.api.W("serverstitchedvideochange",d.xc,d.Go),this.oa.qa("sdai",EN(this,"midab",d)),this.Aj=1)}this.I=!1}else if(this.j){if(this.j.Fn)this.oa.qa("sdai",{a_pair_of_same_transition_occurs_enter:1, acpn:this.j.adCpn,transitionTime:this.j.Tf,cpn:b,currentTime:this.oa.getCurrentTime()}),this.environmentData.K("web_player_same_transition_fallback_killswitch")||(d=this.oa.getCurrentTime(),a={Jd:a,isAd:!c,Fn:!0,Tf:d,adCpn:b},b={Jd:this.j.Jd,isAd:this.j.isAd,Fn:!1,Tf:d,adCpn:this.j.adCpn},this.j.Jd&&this.ib.delete(this.j.Jd.u),HN(this,a,b));else{if(this.j.Jd===a){this.oa.qa("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Tf,cpn:b,currentTime:this.oa.getCurrentTime(),cueRangeStartTime:a.start, cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.oa.qa("sdai",{dchtsc:b});this.j=void 0;return}a={Jd:a,isAd:!c,Fn:!0,Tf:this.oa.getCurrentTime(),adCpn:b};HN(this,a,this.j)}this.j=void 0;this.I=!1}else this.j={Jd:a,isAd:!c,Fn:!0,Tf:this.oa.getCurrentTime(),adCpn:b}}; g.h.onCueRangeExit=function(a){if(this.environmentData.K("web_player_same_transition_fallback_killswitch")||this.ib.has(a.u)){this.ib.delete(a.u);this.Za=this.Za.filter(function(d){return d!==a}); this.Qa&&(this.I=this.Qa=!1,this.oa.qa("sdai",{cref:1}));var b=a.getId(),c=""===b;if(this.j){if(this.j.Fn){if(this.j.Jd===a){this.oa.qa("sdai",{same_cue_range_pair_exit:1,acpn:this.j.adCpn,transitionTime:this.j.Tf,cpn:b,currentTime:this.oa.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.oa.qa("sdai",{dchtsc:b});this.j=void 0;return}c={Jd:a,isAd:!c,Fn:!1,Tf:this.oa.getCurrentTime(),adCpn:b};HN(this,this.j,c)}else this.oa.qa("sdai", {a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.Tf,upcomingCpn:b,contentCpn:this.oa.getVideoData().clientPlaybackNonce,currentTime:this.oa.getCurrentTime()});this.j=void 0;this.I=!1}else this.j={Jd:a,isAd:!c,Fn:!1,Tf:this.oa.getCurrentTime(),adCpn:b};this.environmentData.K("web_player_halftime_dai")&&(b=this.u.get(b),this.isLiveNow&&b&&this.oa.getCurrentTime()=a.sD&&m.set("skipsq",""+a.sD);(k=this.oa.getVideoData().clientPlaybackNonce)&&m.set("cpn",k);q=[];a.vk&&(q=VGa(this,a.vk),0=b+f)b=a.end;else{if(k=!1,a?bthis.B;)(c=this.data.shift())&&cO(this,c,!0);aO(this)}; bO.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a}); c&&(cO(this,c,b),g.Pb(this.data,function(d){return d.key===a}),aO(this))}; bO.prototype.Y=function(){var a=this;g.I.prototype.Y.call(this);this.data.forEach(function(b){cO(a,b,!0)}); this.data=[]};g.eO.prototype.info=function(){};g.w(fO,g.I);fO.prototype.vB=function(a){if(a)return this.u.get(a)}; fO.prototype.Y=function(){dO(this.j);dO(this.u);g.I.prototype.Y.call(this)};g.w(gO,g.Qn);gO.prototype.W=function(a){var b=g.Da.apply(1,arguments);if(this.D.has(a))return this.D.get(a).push(b),!0;var c=!1;try{for(b=[b],this.D.set(a,b);b.length;)c=g.Qn.prototype.W.call.apply(g.Qn.prototype.W,[this,a].concat(g.v(b.shift())))}finally{this.D.delete(a)}return c};hO.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a}; hO.prototype.forEach=function(a){for(var b=this.j+1;bc?new g.Lf(b.width*g.Pz(this.app.S().experiments,"player_underlay_video_width_fraction"),b.height):b}; g.h.getVideoAspectRatio=function(){return isNaN(this.NH)?sHa(this):this.NH}; g.h.getVideoContentRect=function(a){var b=this.oi();a=tHa(this,b,this.getVideoAspectRatio(),a);return new g.yk((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)}; g.h.Lv=function(a){this.JI=a;this.resize()}; g.h.YB=function(){return this.QC}; g.h.onMutedAutoplayChange=function(){pO(this)}; g.h.setInternalSize=function(a){g.Mf(this.Ex,a)||(this.Ex=a,this.resize())}; g.h.Y=function(){this.KF&&g.mt(this.KF);this.Gh();g.V.prototype.Y.call(this)};g.h=vHa.prototype;g.h.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.wu();c&&a.visualElement&&g.Gu(c,a.visualElement,b)}; g.h.zb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=hra(c);a.visualElement=c;var f=g.wu(),k=g.vu();f&&k&&g.Au(void 0,f,k,[c]);g.ge(b,function(){wHa(e,a)}); d&&this.u.add(a)}; g.h.Vh=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.ge(b,function(){wHa(d,a)}); c&&this.u.add(a)}; g.h.fN=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,Mza(wF(),a),xHa(this))}; g.h.Wk=function(a,b){this.elements.has(a);b&&(a.visualElement=g.ou(b))}; g.h.Dn=function(a){return this.elements.has(a)};g.w(uO,g.V); uO.prototype.setValue=function(a,b){for(var c=0;c+2this.policy.U&&(null==(c=this.u)?0:Ry(c.info))&&(null==(d=this.nextVideo)||!Ry(d.info))&&(this.P=!0)}};SO.prototype.dispose=function(){this.Z=!0}; SO.prototype.isDisposed=function(){return this.Z}; g.w(YO,Error);bP.prototype.skip=function(a){this.offset+=a}; bP.prototype.getOffset=function(){return this.offset};fP.prototype.Pi=function(){this.u=[];iP(this);eP(this)}; fP.prototype.gj=function(a){this.Ka=this.u.shift().info;a.info.equals(this.Ka)}; fP.prototype.En=function(){return!!this.D.info.audio}; fP.prototype.getDuration=function(){return this.D.index.getMaxKnownEndTime()};g.h=oP.prototype;g.h.uG=function(){return 0}; g.h.DL=function(){return null}; g.h.NN=function(){return null}; g.h.isComplete=function(){return 3<=this.state}; g.h.isFailed=function(){return 5===this.state}; g.h.onStateChange=function(){}; g.h.isDisposed=function(){return-1===this.state}; g.h.dispose=function(){this.info.j[0].j.D=!1;pP(this,-1)}; g.h.FG=function(){return 0};g.w(CO,oP);g.h=CO.prototype;g.h.onStateChange=function(){this.isDisposed()&&(IR(this.Wd,this.u),this.B.dispose())}; g.h.yu=function(){var a=zJa(this.Wd,this.u),b;var c=(null==(b=this.Wd.Rd.get(this.u))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.Wd.Rd.get(this.u))?void 0:d.GA)||0;var e;d=(null==(e=this.Wd.Rd.get(this.u))?void 0:e.Ce.totalLength)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:d,isEnded:this.Wd.Cg(this.u)}}; g.h.KN=function(){return 0}; g.h.Hw=function(){return!0}; g.h.HE=function(){this.wp();this.P=!0;return BIa(this.j)}; g.h.EL=function(){this.wp();return this.j.Ce}; g.h.wv=function(){var a,b;return!!(null==(a=this.j)?0:null==(b=a.Ce)?0:b.length)||this.Wd.Yg(this.u)}; g.h.wp=function(){for(;this.Wd.Yg(this.u);){var a=this.j,b=this.Wd.gj(this.u),c=this.Wd.Rd.get(this.u);AIa(a,b,c.Gf&&!c.Ce.totalLength&&DIa(this.Wd,this.u))}};g.h=sP.prototype;g.h.gg=function(){return mIa(this.C)}; g.h.gj=function(a){this.C.gj(a);a=a.info;var b=a.j.info.Mb;this.policy.Tw&&a.Vd&&a.duration&&(b=Math.max(b,(a.yb+a.u)/a.duration));this.Mb=Math.max(this.Mb,b||0)}; g.h.getDuration=function(){return this.j.index.getMaxKnownEndTime()}; g.h.Pi=function(){DO(this);this.C.Pi()}; g.h.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.j[0].Ha:!1};g.h=FP.prototype;g.h.hv=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.callbacks.ov()}; g.h.onError=function(){this.C=!0;this.onDone()}; g.h.onDone=function(){this.isDisposed||(this.u&&(this.j.append(this.u),delete this.u),this.callbacks.Wp())}; g.h.Br=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED}; g.h.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}}; g.h.Gx=function(){return+this.getResponseHeader("content-length")}; g.h.Fk=function(){return this.B}; g.h.lz=function(){return 200<=this.status&&300>this.status&&!!this.B}; g.h.Yg=function(){return 0a-this.C&&KP(this)||ZIa(this,a,b);this.callbacks.hs(a,b)}; g.h.Wp=function(){this.callbacks.Wp()}; g.h.deactivate=function(){this.isActive&&(this.isActive=!1)}; g.h.now=function(){return(0,g.Q)()};g.h=OP.prototype;g.h.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.U);this.B&&(b.signal=this.B.signal);a=new Request(a,b);fetch(a).then(this.Z,this.onError).then(void 0,br)}; g.h.onDone=function(){this.isDisposed()||this.callbacks.Wp()}; g.h.getResponseHeader=function(a){return this.D?this.D.get(a):null}; g.h.Br=function(){return!!this.D}; g.h.Fk=function(){return this.u}; g.h.Gx=function(){return+this.getResponseHeader("content-length")}; g.h.lz=function(){return 200<=this.status&&300>this.status&&!!this.u}; g.h.Yg=function(){return!!this.j.totalLength}; g.h.gj=function(){this.Yg();var a=this.j;this.j=new Vw;return a}; g.h.gg=function(){this.Yg();return this.j}; g.h.isDisposed=function(){return this.I}; g.h.abort=function(){this.Bm&&this.Bm.cancel().catch(function(){}); this.B&&this.B.abort();this.I=!0}; g.h.Pv=function(){return!0}; g.h.YC=function(){return this.J}; g.h.kf=function(){return this.errorMessage};g.h=PP.prototype;g.h.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.j=!0;this.callbacks.Wp()}}; g.h.hv=function(){2===this.xhr.readyState&&this.callbacks.ov()}; g.h.Ld=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.u=a.loaded),this.callbacks.hs((0,g.Q)(),a.loaded))}; g.h.Br=function(){return 2<=this.xhr.readyState}; g.h.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return Ep(Error("Could not read XHR header "+a)),""}}; g.h.Gx=function(){return+this.getResponseHeader("content-length")}; g.h.Fk=function(){return this.u}; g.h.lz=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.u}; g.h.Yg=function(){return this.j&&!!this.response&&!!this.response.byteLength}; g.h.gj=function(){this.Yg();var a=this.response;this.response=void 0;return new Vw([new Uint8Array(a)])}; g.h.gg=function(){this.Yg();return new Vw([new Uint8Array(this.response)])}; g.h.abort=function(){this.isDisposed=!0;this.xhr.abort()}; g.h.Pv=function(){return!1}; g.h.YC=function(){return!1}; g.h.kf=function(){return""};g.w(SP,oP);g.h=SP.prototype;g.h.yu=function(){var a=HP(this.timing);a.shost=Pw(this.u.Oi);this.B&&(a.rc=this.B.toString());a.itag=this.info.j[0].j.info.Vb();a.ml=""+ +this.info.j[0].j.Hf();a.sq=""+this.info.j[0].Ha;this.u&&(a.ifi=""+ +Rw(this.info.u.C));410!==this.B&&500!==this.B&&503!==this.B||(a.fmt_unav="true");var b,c=null==(b=this.xhr)?void 0:b.kf();c&&(a.msg=c);this.Gz&&(a.smb="1");this.j&&(b=this.j.Ce,b.length&&jua(b[0],a));this.info.Ck()&&(a.sdai="1");return a}; g.h.KN=function(){return cJa(this.timing)}; g.h.kf=function(){return this.xhr.kf()||""}; g.h.Hw=function(){var a;(a=this.isComplete())||(a=this.timing,a=a.u>a.IC&&LP(a,a.u));return a}; g.h.hs=function(){!this.isDisposed()&&this.xhr&&(this.B=this.xhr.status,this.wv()?qP(this,2):!this.ma&&this.Hw()&&(qP(this),this.ma=!0))}; g.h.ov=function(){if(!this.isDisposed()&&this.xhr){if(!this.V&&this.xhr.Br()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.V=((0,g.Q)()-a)/1E3}this.xhr.Br()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Cs&&!lva()&&g.Ku("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.I=a||this.I;this.J=b||this.J}}; g.h.Wp=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.U.stop(),this.B=a.status,a=hJa(this,a),5===a?RP(this):pP(this,a))}; g.h.canRetry=function(){this.isDisposed();var a=QP(this),b=this.info.Ck()?this.policy.ws:this.policy.Te;return a.timedOut=.8*this.ea?(this.C++,b=this.C>=this.policy.Al):this.C=0):(b=this.timing,b.Bi&&NP(b,b.now()),a-=b.P,this.policy.Uh&&01E3*b);this.C&&this.callback&&this.callback(this,this.state);b?iJa(this,!1):this.U.start()}}; g.h.dispose=function(){oP.prototype.dispose.call(this);this.U.dispose();this.policy.Se||TP(this)}; g.h.HE=function(){if(!this.EL().length)return[];this.P=!0;return BIa(this.j)}; g.h.wv=function(){if(1>this.state)return!1;if(this.j&&this.j.Ce.length)return!0;var a;return(null==(a=this.xhr)?0:a.Yg())?!0:!1}; g.h.EL=function(){this.wp(!1);return this.j?this.j.Ce:[]}; g.h.wp=function(a){if(a||this.xhr.Br()&&this.xhr.Yg()&&!gJa(this)&&!this.D){if(!this.j){var b;this.xhr.Pv()?b=my(this.info):b=this.xhr.Fk();this.j=new zIa(this.info.j,b)}for(;this.xhr.Yg();)AIa(this.j,this.xhr.gj(),a&&!this.xhr.Yg())}}; g.h.Fk=function(){return this.xhr.Fk()}; g.h.uG=function(){return this.V}; g.h.gp=function(){return jJa(this)?2:1}; g.h.FG=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.h.DL=function(){this.xhr&&(this.I=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.I}; g.h.NN=function(){this.xhr&&(this.J=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.J};g.w(UP,g.I); UP.prototype.Ku=function(a){var b=a.info.j[0].j,c=a.lastError;if(Qw(b.u.j)){var d=g.lc(a.kf());this.Fa.qa("dldbrerr",{em:d||"none"})}d=a.info.j[0].Ha;var e=KHa(this.B,a.info.j[0].B,d);"net.badstatus"===c&&(this.P+=1);if(a.canRetry()){if(!(a.info.u.u>=this.policy.ws&&this.u&&a.info.Ck()&&"net.badstatus"===a.lastError&&this.u.Ku(e,d))){d=(b.info.video&&1b&&d.u.pop();a.B.length?a.u=g.Hb(g.Hb(a.B).info.j):a.C.u.length?a.u=gP(a.C).info:a.u=uP(a);a.u&&bb||b!==d)&&this.qa("sbu_mismatch",{b:dz(a),c:this.currentTime,s:jy(c)})}}this.uj()}; g.h.CY=function(a){if(this.mediaSource){var b=uP(a===this.mediaSource.j?this.audioTrack:this.videoTrack);if(a=a.DG())for(var c=0;c=c||cthis.B&&(this.B=c,g.Ae(this.j)||(this.j={},this.C.stop(),this.u.stop())),this.j[b]=a,g.on(this.u))}}; qQ.prototype.D=function(){for(var a=g.r(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.W;for(var d=this.B,e=this.j[c].match(hh),f=[],k=g.r(e[6].split("&")),l=k.next();!l.done;l=k.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.Of(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=2*c.length;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e=a.size||(a.forEach(function(c,d){var e=Lz(b.u)?d:c;d=new Uint8Array(Lz(b.u)?c:d);Lz(b.u)&&jKa(d);c=g.kc(d,4);jKa(d);d=g.kc(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),hKa(this,","),rQ(this,{onkeystatuschange:1}),this.status="kc",this.W("keystatuseschange",this))}; g.h.error=function(a,b,c,d){this.isDisposed()||(this.W("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.I)/1E3,this.I=NaN,this.W("ctmp","provf",{et:a.toFixed(3)})));vB(b)&&this.dispose()}; g.h.shouldRetry=function(a,b){return this.xa&&this.J?!1:!a&&this.requestNumber===b.requestNumber}; g.h.Y=function(){this.j={};g.Ut.prototype.Y.call(this)}; g.h.Lb=function(){var a={ctype:this.P.contentType||"",length:this.P.initData.length,requestedKeyIds:this.ma,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.j);return a}; g.h.Yf=function(){var a=this.D.join();if(tQ(this)){var b=new Set,c;for(c in this.j)"usable"!==this.j[c].status&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};g.w(wQ,g.I);g.h=wQ.prototype;g.h.wU=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}}; g.h.Up=function(){this.J&&this.J(this.j.keyStatuses)}; g.h.cQ=function(a){this.D&&this.D(a.message,"license-request")}; g.h.bQ=function(a){if(this.B){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode,a=a.systemCode;this.B("t.prefixedKeyError;c."+b+";sc."+a,b,a)}}; g.h.aQ=function(){this.I&&this.I()}; g.h.update=function(a){var b=this;if(this.j)return this.j.update(a).then(null,Dp(function(c){nKa(b,"t.update",c)})); this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.P.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.P.keySystem,a,this.initData,this.sessionId);return cq()}; g.h.Y=function(){this.j&&this.j.close();this.element=null;g.I.prototype.Y.call(this)};g.w(xQ,g.I);g.h=xQ.prototype;g.h.attach=function(){var a=this;if(this.j.keySystemAccess)return this.j.keySystemAccess.createMediaKeys().then(function(b){a.isDisposed()||(a.u=b,a.element.setMediaKeys(b))}); Kz(this.j)?this.B=new (Jz())(this.j.keySystem):Mz(this.j)?(this.B=new (Jz())(this.j.keySystem),this.element.webkitSetMediaKeys(this.B)):(St(this.D,this.element,["keymessage","webkitkeymessage"],this.zU),St(this.D,this.element,["keyerror","webkitkeyerror"],this.yU),St(this.D,this.element,["keyadded","webkitkeyadded"],this.xU));return null}; g.h.setServerCertificate=function(){return"widevine"===this.j.flavor&&this.j.B&&this.u.setServerCertificate?this.u.setServerCertificate(this.j.B):null}; g.h.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.u.createSession();Nz(this.j)&&(c=oKa(c,this.j.u));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new wQ(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},Dp(function(f){nKa(e,"t.generateRequest",f)})); return e}if(Kz(this.j))return qKa(this,c);if(Mz(this.j))return pKa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.j.keySystem,c):this.element.webkitGenerateKeyRequest(this.j.keySystem,c);return this.C=new wQ(this.element,this.j,c,null,null)}; g.h.zU=function(a){var b=yQ(this,a);b&&b.cQ(a)}; g.h.yU=function(a){var b=yQ(this,a);b&&b.bQ(a)}; g.h.xU=function(a){var b=yQ(this,a);b&&b.aQ(a)}; g.h.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a}; g.h.Y=function(){this.B=this.u=null;var a;null==(a=this.C)||a.dispose();a=g.r(Object.values(this.I));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.I={};g.I.prototype.Y.call(this);delete this.element};g.w(zQ,g.I); zQ.prototype.init=function(){var a=this,b,c;return g.B(function(d){if(1==d.j)return g.Bk(a.j,{position:"absolute",width:"1px",height:"1px",display:"block"}),a.j.src=a.B.D,document.body.appendChild(a.j),a.C.N(a.j,"encrypted",a.I),b=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.A(d,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",b),2);c=d.u;a.B.keySystemAccess=c;a.u=new xQ(a.j, a.B);g.J(a,a.u);a.u.attach();g.va(d)})}; zQ.prototype.I=function(a){if(!this.isDisposed()){var b=new Uint8Array(a.initData);a=new ZO(b,a.initDataType);var c=OJa(b).replace("skd://","https://"),d={},e=this.u.createSession(a,function(){}); e&&(g.J(this,e),this.D.push(e),ZJa(e,function(f){lKa(f,e.j,c,d)},function(){},function(){},function(){}))}}; zQ.prototype.Y=function(){this.D=[];this.j&&this.j.parentNode&&this.j.parentNode.removeChild(this.j);g.I.prototype.Y.call(this)};g.w(AQ,pQ); AQ.prototype.I=function(a){var b;if(!(b=!this.C)){a:{if((b=a.cryptoPeriodIndex)&&0=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c=!c}c?c=0:(c=a.j,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.W("log_qoe",{wvagt:"delay."+ c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length});this.C&&0>=c?rKa(this,a):(this.j.push({time:b+c,info:a}),g.on(this.u,c))}}; AQ.prototype.Y=function(){this.j=[];pQ.prototype.Y.call(this)};BQ.prototype.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null}; BQ.prototype.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))}; BQ.prototype.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))}; BQ.prototype.findIndex=function(a){return g.Kb(this.keys,function(b){return g.ac(a,b)})};g.w(DQ,g.Ut);g.h=DQ.prototype;g.h.AU=function(a){this.Nh({onecpt:1});a.initData&&wKa(this,new Uint8Array(a.initData),a.initDataType)}; g.h.DZ=function(a){this.Nh({onndky:1});wKa(this,a.initData,a.contentType)}; g.h.fv=function(a){this.Nh({onneedkeyinfo:1});this.environmentData.K("html5_eme_loader_sync")&&(this.J.get(a.initData)||this.J.set(a.initData,a));vKa(this,a)}; g.h.xM=function(a){this.B.push(a);EQ(this)}; g.h.createSession=function(a){var b=xKa(this)?jIa(a):g.kc(a.initData);this.u.get(b);this.ea=!0;a=new sQ(this.videoData,this.environmentData,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.DP,this);a.subscribe("keystatuseschange",this.Up,this);a.subscribe("licenseerror",this.xC,this);a.subscribe("newlicense",this.WP,this);a.subscribe("newsession",this.XP,this);a.subscribe("sessionready",this.jQ,this);a.subscribe("fairplay_next_need_key_info",this.OP,this);aKa(a,this.C)}; g.h.WP=function(a){this.isDisposed()||(this.Nh({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.W("heartbeatparams",a)))}; g.h.XP=function(){this.isDisposed()||(this.Nh({newlcssn:1}),this.B.shift(),this.ea=!1,EQ(this))}; g.h.jQ=function(){if(Kz(this.j)&&(this.Nh({onsnrdy:1}),this.Ca--,0===this.Ca)){var a=this.V;a.element.msSetMediaKeys(a.B)}}; g.h.Up=function(a){if(!this.isDisposed()){!this.xa&&this.videoData.K("html5_log_drm_metrics_on_key_statuses")&&(yKa(this),this.xa=!0);this.Nh({onksch:1});if(!tQ(a)&&g.Nr&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(tQ(a))for(var d=g.r(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,"usable"===a.j[e].status&&b.push(a.j[e].type),"unknown"!==a.j[e].status&&(c=!1);if(!tQ(a)||c)b=a.D;b=g.Lb(b,"UHD2")||g.Lb(b,"UHD2HDR")? "highres":g.Lb(b,"UHD1")||g.Lb(b,"UHD1HDR")?"hd2160":g.Lb(b,"HD")||g.Lb(b,"HDHDR")?"hd1080":g.Lb(b,"HD720")||g.Lb(b,"HD720HDR")?"hd720":"large"}a:{c=g.ww("auto",b,!1,"l");if(this.videoData.Qh){if(this.P.equals(c))break a}else if(Csa(this.P,b))break a;this.P=c;this.W("qualitychange");this.Nh({updtlq:b})}this.W("keystatuseschange",a)}}; g.h.DP=function(a,b){this.isDisposed()||this.W("ctmp",a,b)}; g.h.OP=function(a,b){this.isDisposed()||this.W("fairplay_next_need_key_info",a,b)}; g.h.xC=function(a,b,c,d){this.isDisposed()||(this.videoData.K("html5_log_drm_metrics_on_error")&&yKa(this),this.W("licenseerror",a,b,c,d))}; g.h.Eu=function(){return this.P}; g.h.Y=function(){this.j.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.r(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.DP,this),b.unsubscribe("keystatuseschange",this.Up,this),b.unsubscribe("licenseerror",this.xC,this),b.unsubscribe("newlicense",this.WP,this),b.unsubscribe("newsession",this.XP,this),b.unsubscribe("sessionready",this.jQ,this),b.unsubscribe("fairplay_next_need_key_info",this.OP,this),b.dispose(); this.u.clear();CQ(this.I);CQ(this.J);this.heartbeatParams=null;g.Ut.prototype.Y.call(this)}; g.h.Lb=function(){for(var a={systemInfo:this.j.Lb(),sessions:[]},b=g.r(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Lb());return a}; g.h.Yf=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.Yf()+(this.D?"/KR":"")}; g.h.Nh=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(tB(a),(sB(this.environmentData)||b)&&this.W("ctmp","drmlog",a))};g.w(HQ,g.I);HQ.prototype.aC=function(){return this.B}; HQ.prototype.handleError=function(a){var b=this;DKa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!JQ(this,a.errorCode,a.details))&&!FKa(this,a))if(vB(a.severity)){var c,d=null==(c=this.oa.Fa)?void 0:c.Qd.j;if("net.badstatus"===a.errorCode&&(1===a.severity||a.details.fmt_unav)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.j.D&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.oa.Qf(a.errorCode, a.severity,e,tB(a.details),f)}else this.oa.W("nonfatalerror",a),c=/^pp/.test(this.videoData.clientPlaybackNonce),this.rd(a.errorCode,a.details),c&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.Q)(),bN(a,"manifest",function(k){b.I=!0;b.qa("pathprobe",k)},function(k){b.rd(k.errorCode,k.details)}))}; HQ.prototype.qa=function(a,b){this.oa.logging.qa(a,b)}; HQ.prototype.rd=function(a,b){b=tB(b);this.oa.logging.rd(a,b)};KQ.prototype.setPlaybackRate=function(a){this.playbackRate=a}; KQ.prototype.K=function(a){return this.environmentData.K(a)};g.w(MQ,g.I);MQ.prototype.Uc=function(a){XKa(this);this.playerState=a.state;0<=this.B&&g.CE(a,16)&&this.seekCount++;a.state.isError()&&this.send()}; MQ.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(IVa)?this.networkErrorCount++:this.nonNetworkErrorCount++)}; MQ.prototype.send=function(){if(!(this.C||0>this.u)){XKa(this);var a=g.tN(this.j)-this.u,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.U(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.U(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.U(this.playerState,16)||g.U(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.U(this.playerState,1)&&g.U(this.playerState, 4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.U(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.U(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.U(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=UNa[nD(this.j.videoData)];a:switch(this.j.environmentData.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=0>this.B?a:this.B- this.u;a=this.j.environmentData.He+36E5<(0,g.Q)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.j.videoData.isAd(),liveMode:c,hasDrm:!!g.lD(this.j.videoData),isGapless:this.j.videoData.Ka,isServerStitchedDai:this.j.videoData.enableServerStitchedDai};a||g.cr("html5PlayerHealthEvent", b);this.j.K("html5_health_to_qoe")&&(b.muted=a,this.J(b));this.C=!0;this.dispose()}}; MQ.prototype.Y=function(){this.C||this.send();g.I.prototype.Y.call(this)}; var IVa=/\bnet\b/;var ZKa=window;var YKa=/[?&]cpn=/;g.w(g.SQ,g.I);g.h=g.SQ.prototype;g.h.UW=function(){var a=g.tN(this.j);TQ(this,a)}; g.h.Mx=function(){return this.xa}; g.h.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.tN(this.j),-1<["PL","B","S"].indexOf(this.Od)&&(!g.Ae(this.u)||a>=this.C+30)&&(g.RQ(this,a,"vps",[this.Od]),this.C=a),!g.Ae(this.u))){7E3===this.sequenceNumber&&g.lu(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){UQ(this,a);var b=a,c=this.j.oa.Vx(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.Za,k=e&&!this.Gb;d>c.totalVideoFrames||5E3=this.playTimeSecs&&(this.j.oa.Qy(),this.u.qoealert=["1"],this.Pa=!0)),"B"!==a||"PL"!==this.Od&&"PB"!==this.Od||(this.ea=!0),this.C=c),"PL"===this.Od&&("B"===a|| "S"===a)||sB(this.j.environmentData)?UQ(this,c):TQ(this,c),"PL"===a&&g.on(this.lc),g.RQ(this,c,"vps",[a]),this.Od=a,this.C=this.Qa=c,this.D=!0);a=b.getData();g.U(b,128)&&a&&eLa(this,c,a.errorCode,a.gB,a.OQ);(g.U(b,2)||g.U(b,128))&&this.reportStats(c);b.isPlaying()&&!this.I&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.I=!0);VQ(this)}; g.h.Xy=function(a){var b=g.tN(this.j);g.RQ(this,b,"vfs",[a.j.id,a.u,this.Kb,a.reason]);this.Kb=a.j.id;var c=this.j.oa.getPlayerSize();if(0b-this.lastUpdateTime+2||mLa(this,a,b))){var d=this.j.Si();c=d.volume;var e=c!==this.V;d=d.muted;d!==this.U?(this.U=d,c=!0):(!e||0<=this.D||(this.V=c,this.D=b),c=b-this.D,0<=this.D&&2=this.j.videoData.Fc;a&&(this.C&&this.j.videoData.Fc&&(a=fR(this,"delayplay"),a.He=!0,a.send(),this.U=!0),sLa(this))}; g.h.Uc=function(a){this.isDisposed()||(g.U(a.state,2)?(this.currentPlayerState="paused",g.CE(a,2)&&this.C&&iR(this).send()):g.U(a.state,8)?(this.currentPlayerState="playing",this.C&&isNaN(this.B)&&gR(this,!1)):this.currentPlayerState="paused")}; g.h.Y=function(){g.I.prototype.Y.call(this);g.Up(this.B);this.B=NaN;kLa(this.u)}; g.h.Lb=function(){return cR(fR(this,"playback"))}; g.h.Wv=function(){this.j.videoData.P.eventLabel=yD(this.j.videoData);this.j.videoData.P.playerStyle=this.j.environmentData.playerStyle;this.j.videoData.He&&(this.j.videoData.P.feature="pyv");this.j.videoData.P.vid=this.j.videoData.videoId;var a=this.j.videoData.P;var b=this.j.videoData;b=b.isAd()||!!b.He;a.isAd=b}; g.h.gi=function(a){var b=fR(this,"engage");b.U=a;return nLa(b,xLa(this.j))};wLa.prototype.isEmpty=function(){return this.endTime===this.startTime};kR.prototype.K=function(a){return this.environmentData.K(a)}; var yLa={other:1,none:2,wifi:3,cellular:7};g.w(g.lR,g.I);g.h=g.lR.prototype;g.h.Uc=function(a){if(g.CE(a,1024)||g.CE(a,512)||g.CE(a,4)){var b=this.C;0<=b.B||(b.u=-1,b.delay.stop());this.qoe&&(b=this.qoe,b.I||(b.B=-1))}if(this.u.videoData.enableServerStitchedDai&&this.Ug){var c;null==(c=this.B.get(this.Ug))||c.Uc(a)}else this.j&&this.j.Uc(a);this.qoe&&this.qoe.Uc(a);this.C.Uc(a)}; g.h.Ld=function(){if(this.u.videoData.enableServerStitchedDai&&this.Ug){var a;null==(a=this.B.get(this.Ug))||a.Ld()}else this.j&&this.j.Ld()}; g.h.rd=function(a,b){this.qoe&&fLa(this.qoe,a,b);this.C.onError(a)}; g.h.Xy=function(a){this.qoe&&this.qoe.Xy(a)}; g.h.Oy=function(a){this.qoe&&this.qoe.Oy(a)}; g.h.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)}; g.h.Tp=ca(36);g.h.qa=function(a,b,c){this.qoe&&this.qoe.qa(a,b,c)}; g.h.nz=function(a,b,c){this.qoe&&this.qoe.nz(a,b,c)}; g.h.mz=function(a){this.qoe&&this.qoe.mz(a)}; g.h.zv=function(a,b,c){this.qoe&&this.qoe.zv(a,b,c)}; g.h.Sp=ca(39);g.h.Sk=ca(14);g.h.Mx=function(){if(this.qoe)return this.qoe.Mx()}; g.h.Lb=function(){if(this.u.videoData.enableServerStitchedDai&&this.Ug){var a;null==(a=this.B.get(this.Ug))||a.Lb()}else if(this.j)return this.j.Lb();return{}}; g.h.gi=function(a){return this.j?this.j.gi(a):function(){}}; g.h.Wv=function(){this.j&&this.j.Wv()};g.w(mR,g.I);g.h=mR.prototype;g.h.Sd=function(a,b){this.El();b&&2E3<=this.j.j.length&&this.Bx("captions",1E4);b=this.j;if(1b.j.length)b.j=b.j.concat(a),b.j.sort(b.u);else{a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.j.length||0a&&this.C.start()))}; g.h.dG=function(a){var b=[];if(!a.length)return b;for(var c=0;ca&&(a=(a-this.u)/this.Z(),this.C.start(a)))}}; g.h.zO=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.U(a,32)&&this.V.start();for(var b=g.U(this.D(),2)?0x8000000000000:1E3*this.P(),c=g.U(a,2),d=[],e=[],f=g.r(this.B),k=f.next();!k.done;k=f.next())k=k.value,k.active&&(c?0x8000000000000>k.end:!k.contains(b))&&e.push(k);d=d.concat(this.gG(e));f=e=null;c?(a=ILa(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=JLa(this.j)):a=this.u<=b&&nF(a)?HLa(this.j,this.u,b):ILa(this.j,b); d=d.concat(this.dG(a));e&&(d=d.concat(this.gG(e)));f&&(d=d.concat(this.dG(f)));this.u=b;MLa(this,d)}}; g.h.Y=function(){this.B=[];this.j.j=[];g.I.prototype.Y.call(this)}; g.mN.TB(mR,{Sd:"crmacr",dG:"crmncr",gG:"crmxcr",zO:"crmis",Kg:"crmrcr"});g.w(qR,g.Ut);qR.prototype.Hn=function(){return this.J}; qR.prototype.Ek=function(){return Math.max(this.P()-SLa(this,!0),this.videoData.getMinSeekableTime())};g.w(vR,g.I);vR.prototype.Uc=function(){g.on(this.B)}; vR.prototype.D=function(){var a=this,b=this.oa.Ed(),c=this.oa.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.U(c,8)&&g.U(c,16),k=this.oa.vp().isBackground()||c.isSuspended();wR(this,this.xa,f&&!k,e,"qoe.slowseek",function(){},"timeout"); f=f&&isFinite(this.j)&&0d+5;q=p&&m&&q;wR(this,this.J,q&&!k,p&&!m,"qoe.longrebuffer",n,"jiggle_cmt");wR(this,this.P,q&&!k,p&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(f){var u=f.getCurrentTime();n=b.yr();n=yua(n,u);n=!f.cg()&&d===n;wR(this,this.Qa,p&&m&&n&&!k,p&&!m&&!n,"qoe.longrebuffer",function(){b.seekTo(u)},"seek_to_loader")}wR(this,this.U,p&&m&&!k,p&&!m,"qoe.longrebuffer",function(){}, "timeout"); n=c.isSuspended();n=g.Lb(this.oa.Qj,"ad")&&!n;wR(this,this.I,n,!n,"qoe.start15s",function(){a.oa.cf("ad")},"ads_preroll_timeout"); n=this.oa.getVideoData();q=.5>d-this.C;t=n.isAd()&&p&&!m&&q;p=function(){var x=a.oa,y=x.yg.Cc();(!y||!x.videoData.isAd()||y.getVideoData().xc!==x.getVideoData().xc)&&x.videoData.Ae||x.Qf("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+x.videoData.videoId)}; wR(this,this.Ga,t,!t,"ad.rebuftimeout",p,"skip_slow_ad");m=n.isAd()&&m&&fz(b.Ag(),d+5)&&q;wR(this,this.Ka,m,!m,"ad.rebuftimeout",p,"skip_slow_ad_buf");wR(this,this.Pa,g.mF(c)&&g.U(c,64)&&!k,e,"qoe.start15s",function(){},"timeout"); wR(this,this.V,!!f&&!f.mediaSource&&g.mF(c),e,"qoe.start15s",l,"newElemMse");this.C=d;this.B.start()}}; vR.prototype.rd=function(a,b,c){b=this.Lb(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.oa.rd(new uB(a,b));this.u[a]=!0}; vR.prototype.Lb=function(a){a=Object.assign(this.oa.Lb(!0),a.Lb());this.j&&(a.stt=this.j.toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a}; tR.prototype.reset=function(){this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1}; tR.prototype.Lb=function(){var a={},b=(0,g.Q)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.triggerTimestamp&&(a.wtd=(b-this.triggerTimestamp).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.w(yR,g.I);g.h=yR.prototype;g.h.setMediaElement=function(a){g.Tt(this.Ka);(this.mediaElement=a)?(gMa(this),xR(this)):AR(this)}; g.h.Uc=function(a){this.V.Uc(a);this.K("html5_exponential_memory_for_sticky")&&(a.state.isPlaying()?g.on(this.Z):this.Z.stop());if(this.mediaElement)if(8===a.Op.state&&nF(a.state)&&g.oF(a.state)){a=this.mediaElement.getCurrentTime();var b=this.mediaElement.Ag();var c=this.K("manifestless_post_live_ufph")||this.K("manifestless_post_live")?ez(b,Math.max(a-3.5,0)):ez(b,a-3.5);0<=c&&a>b.end(c)-1.1&&c+1b.start(c+1)-b.end(c)&&(c=b.start(c+1)+.2,.2>Math.abs(this.Qa-c)||(this.oa.qa("seekover", {b:dz(b,"_"),cmt:a}),this.Qa=c,this.seekTo(c,{Dr:!0,Xd:"playbacktimeline_postLiveDisc"})))}else(null==(b=a.state)?0:8===b.state)&&!this.videoData.ib&&0=this.Dd())||!g.qD(this.videoData))||this.oa.qa("seeknotallowed",{st:t,mst:this.Dd()});if(!l)return this.B&&(this.B=null,DR(this)),Gg(this.getCurrentTime());if(.005>Math.abs(a-this.j)&&this.P)return this.D;k&&(t=a,(2<= this.environmentData.U||this.K("html5_log_seek_reasons"))&&this.oa.qa("seekreason",{reason:k,tgt:t}));this.P&&AR(this);this.D||(this.D=new aF);a&&!isFinite(a)&&zR(this,!1);if(k=!c)k=a,k=CR(this)&&!(this.mediaElement&&0e.videoData.endSeconds&&isFinite(f)&&sS(e);fb.start&&sS(this.oa);return this.D}; g.h.Dd=function(a){if(!this.videoData.isLivePlayback)return this.videoData.Dd();var b;if(!this.K("html5_linear_live_max_seekable_killswitch")&&HD(this.videoData)&&(null==(b=this.mediaElement)?0:b.Qm())&&this.videoData.j)return a=this.getCurrentTime(),oya(1E3*this.getIngestionTime(a))+a;if($C(this.videoData)&&this.videoData.Yh&&this.videoData.j)return this.videoData.j.Dd()+this.timestampOffset;if(this.videoData.C&&this.videoData.C.j){if(!a&&this.u)return this.u.Ek();a=this.videoData.Dd();this.policy.j&& this.mediaElement&&(a=Math.max(a,Aza(this.mediaElement)));return a+this.timestampOffset}return this.mediaElement?kq()?oya(this.mediaElement.rA().getTime()):cF(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.h.getMinSeekableTime=function(){var a=this.videoData?this.videoData.getMinSeekableTime()+this.timestampOffset:this.timestampOffset;if(HD(this.videoData)&&this.videoData.j){var b,c=Number(null==(b=this.videoData.progressBarStartPosition)?void 0:b.utcTimeMillis)/1E3;b=this.getCurrentTime();b=this.getIngestionTime(b)-b;if(!isNaN(c)&&!isNaN(b))return Math.max(a,c-b)}return a}; g.h.Y=function(){BR(this,null);this.V.dispose();g.I.prototype.Y.call(this)}; g.h.Lb=function(){var a={};this.Fa&&Object.assign(a,this.Fa.Lb());this.mediaElement&&Object.assign(a,this.mediaElement.Lb());return a}; g.h.Xk=function(a){var b=this;this.oa.qa("sdai",{skipad:1,t:a.toFixed(3)});this.ma=a;this.C=this.j=a+=1;DR(this).then(function(c){dMa(b,c)},function(){AR(b)})}; g.h.wI=function(a){this.timestampOffset=a}; g.h.getStreamTimeOffset=function(){return $C(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0}; g.h.pd=function(){return this.timestampOffset}; g.h.getIngestionTime=function(a){return this.videoData.j.getIngestionTime(a-this.timestampOffset)}; g.h.vr=function(){if(!this.mediaElement)return 0;if(rD(this.videoData)){var a=Aza(this.mediaElement)+this.timestampOffset-this.getMinSeekableTime(),b=this.Dd()-this.getMinSeekableTime();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.vr()}; g.h.yC=function(a){this.I&&(this.I.j=a.audio.index)}; g.h.K=function(a){return this.environmentData&&this.environmentData.K(a)};ER.prototype.isFinished=function(){return this.finished}; ER.prototype.start=function(){this.started=!0}; ER.prototype.reset=function(){this.finished=this.started=!1};FR.prototype.encrypt=function(a){return(new rA(this.j.j)).encrypt(a,this.iv)}; FR.prototype.decrypt=function(a,b){return(new rA(this.j.j)).decrypt(a,b)};g.w(GR,g.I);g.h=GR.prototype;g.h.Yg=function(a){var b;return!(null==(b=this.Rd.get(a))||!b.Ce.totalLength)}; g.h.gj=function(a){a=this.Rd.get(a);var b=a.Ce;a.GA+=b.totalLength;a.Ce=new Vw;return b}; g.h.Gf=function(a){return this.Rd.get(a).Gf}; g.h.Cg=function(a){return this.Rd.get(a).Cg}; g.h.Uy=function(a){(a=this.Rd.get(a))&&!a.Cg&&(a.Cg=!0)}; g.h.Y=function(){g.I.prototype.Y.call(this);for(var a=g.r(this.Rd.keys()),b=a.next();!b.done;b=a.next())HR(this,b.value);this.Rd.clear()};KR.prototype.decrypt=function(a){var b=this,c,d,e,f,k,l;return g.B(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.u=!0;b.Ij.Jc("omd_s");c=new Uint8Array(16);hA()?d=new qA(a):e=new rA(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Oa(3);break}f=b.j.shift();if(!d){k=e.decrypt($w(f.buffer),c);m.Oa(4);break}return g.A(m,d.decrypt($w(f.buffer),c),5);case 5:k=m.u;case 4:l=k;for(var n=0;n=e.FA||0>=e.lD||0>=e.durationMs||0>e.startTimeMs?IR(a,f):c.fP.push(e))),ZR(b))):(this.j[f]={lO:!1,En:m,headers:[k]},b=this.xd,b.If?(e=f.split(";")[0],b.If.has(e)||(a= new GR(b),b.If.set(e,a),g.J(b,a)),null==(d=b.If.get(e))||lMa(d,f,m)):null==(e=b.Wd)||lMa(e,f,m));break;case 21:YMa(this,b,!1);break;case 12:YMa(this,b,!0);break;case 22:this.Uy(b);break;case 37:b=cC(b,pMa);if(b.vF||b.lK)f=this.xd,f.qr=b,b.videoId&&f.CN.set(b.videoId,b);break;default:this.xd.Vi&&this.xd.qa("ombup","id."+a+";len."+c+";ignored.1")}}; g.h.Uy=function(a){var b=ax(a,0);this.xd.Vi&&this.xd.qa("ombup","id.22;len."+a.totalLength+";hid."+b);(a=this.B[b]||null)&&this.xd.Uy(a);a&&(b=this.j[a],1===b.headers.length&&b.headers[0].fC||BMa(this.queue,a))}; g.h.sI=function(a,b){var c=this,d,e,f,k,l,m,n,p,q,t,u;return g.B(function(x){switch(x.j){case 1:c.xd.sI();d=$w(a);if(!b){f=d;x.Oa(2);break}return g.A(x,hNa(c.xd,d,c.iv),3);case 3:f=x.u;case 2:e=f;if(!c.xd.enableCompression){x.Oa(4);break}return g.A(x,IMa(e),5);case 5:e=x.u,c.xd.qa("decompression",{ds:"DecompressionStream"in window});case 4:try{k=cC(e,zMa)}catch(y){return l=y instanceof Error?{name:y.name,message:y.message}:{},l.webcrypto=""+ +!!hA(),l.enc=""+ +c.C,m=new uB("onesie.response.parse", l),x.return(Promise.reject(m))}if(1!==k.onesieProxyStatus)return n={st:k.onesieProxyStatus,webcrypto:""+ +!!hA(),textencoder:""+ +!!g.C.TextEncoder},p=new uB("onesie.response.badproxystatus",n),x.return(Promise.reject(p));if(200!==k.httpStatus)return q={st:k.httpStatus},t=new uB("onesie.response.badstatus",q),x.return(Promise.reject(t));u=g.gx(k.body);return x.return(u)}})}; g.h.Jc=function(a){this.xd.Jc(a)}; g.h.po=function(a){return this.xd.po(a)};$R.prototype.feed=function(a){for(Ww(this.j,a);;){var b=0;b=g.r(eNa(this.j,b));a=b.next().value;b=b.next().value;b=g.r(eNa(this.j,b));var c=b.next().value;b=b.next().value;if(0>a||0>c||!(b+c<=this.j.totalLength))break;b=this.j.split(b).Ps.split(c);c=b.Ps;this.callbacks.Ij.feed(a,b.ZG);this.j=c}}; $R.prototype.dispose=function(){this.j=new Vw};g.w(aS,g.I);g.h=aS.prototype;g.h.Jc=function(a){this.oa.Jc(a)}; g.h.po=function(a){return this.oa.po(a)}; g.h.gI=function(){this.Jc("orfb");this.WB=!0;if(iNa(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.Fk(),rt:(1E3*cJa(this.Cm)).toFixed(),shost:g.jh(this.tv),trigger:"o1"};this.qa("pathprobe",tB(a))}}; g.h.sI=function(){this.Jc("orpr");this.Jc("opr_r");this.nO=!0}; g.h.mI=function(){if(this.If)for(var a=g.r(this.If.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.If.get(b.value))||JR(c)}else null==(a=this.Wd)||JR(a)}; g.h.qa=function(a,b,c){this.oa.qa(a,b,void 0===c?!1:c)}; g.h.Uy=function(a){var b;null==(b=LR(this,a))||b.Uy(a)}; g.h.fetch=function(){var a=this,b,c,d,e,f,k,l,m,n,p,q,t,u,x;return g.B(function(y){switch(y.j){case 1:a.qv.start();a.Jc("ogpd");a.Jc("or_i");if(b=fNa(a.videoData,a.zp)){y.Oa(2);break}return g.A(y,gNa(a.videoData,a.zp),3);case 3:b=y.u;case 2:if(!b)return a.logger.info("Onesie URL creation failed."),c={url:"0"},d=new uB("onesie.unavailable.hotconfig",c),a.fail(d),y.return(a.Fm);a.iR=Pw(b);var z=a.playerRequest,D=a.environmentData,G=a.videoData,F=fN(a.iR);F=void 0===F?!1:F;var L=D.Qh,aa="https://youtubei.googleapis.com/youtubei/"+ L.innertubeApiVersion+"/player",M=g.CD(G);L.jH&&M||(aa=aa+"?key="+L.innertubeApiKey);L=[{name:"Content-Type",value:"application/json"}];M&&L.push({name:"Authorization",value:"Bearer "+M});L.push({name:"User-Agent",value:g.qb()});D.K("enable_web_eom_visitor_data")&&g.O("EOM_VISITOR_DATA")?L.push({name:"X-Goog-EOM-Visitor-Id",value:g.O("EOM_VISITOR_DATA")}):(G=G.visitorData||g.O("VISITOR_DATA"))&&L.push({name:"X-Goog-Visitor-Id",value:G});(G=g.Hz(D.experiments,"debug_sherlog_username"))&&L.push({name:"X-Youtube-Sherlog-Username", value:G});z=JSON.stringify(z);hx?z=hx.encode(z):(G=new Uint8Array(Math.ceil(1.2*z.length)),M=ix(z,G),G.lengthM&&(G=G.subarray(0,M)),z=G);D=D.K("html5_onesie_prefer_trusted_host");f={url:aa,httpHeaders:L,postBody:z,proxiedByTrustedBandaid:D&&F,skipResponseEncryption:D&&F};g.wa(y,4);if(!hA()||!a.K("html5_use_native_crypto_for_request")){L=a.environmentData;z=a.videoData;G=a.oa.getPlayerSize();M=a.oa.getVisibilityState();F=a.UF.onesieUstreamerConfig;aa=null== (k=a.videoData.TL)?void 0:k.Vz;var qa=a.GC,ua=kC(f,yMa);D={encryptedClientKey:qa.j.encryptedClientKey,serializeResponseAsJson:!0,enableAdPlacementsPreroll:L.K("html5_onesie_ads"),enableCompressionResponseOnly:bNa(L,!!f.skipResponseEncryption)};f.skipResponseEncryption?D.unencryptedOnesieInnertubeRequest=ua:(ua=qa.encrypt(ua),D.encryptedOnesieInnertubeRequest=ua,D.hmac=Qva(new Pva(qa.j.B),ua,qa.iv),D.iv=qa.iv);L=aNa(L,z,G,M);e={kH:D,XM:L,onesieUstreamerConfig:F,Vz:aa};y.Oa(6);break}return g.A(y,dNa(f, a.GC,a.environmentData,a.videoData,a.oa.getPlayerSize(),a.oa.getVisibilityState(),a.UF.onesieUstreamerConfig,null==(l=a.videoData.TL)?void 0:l.Vz),7);case 7:e=y.u;case 6:g.xa(y,5);break;case 4:return m=g.ya(y),a.logger.info("Failed to create OnesieRequestProto."),a.fail(m),y.return(a.Fm);case 5:return a.enableCompression=e.kH.enableCompressionResponseOnly,a.Jc("osor"),n=BDa(a.environmentData),p=kC(e,wMa),q={method:"POST",body:p,headers:{"Content-Type":"text/plain",Referer:location.origin}},t=a.K("html5_onesie_media_capabilities"), F=b,D=a.videoData,aa=kNa(a),L=t,L=void 0===L?!1:L,F.set("ack","1"),F.set("cpn",D.clientPlaybackNonce),F.set("opr","1"),z=D.S(),z.K("html5_onesie_ads")||(F.set("oaad","0"),F.set("oavd","0")),F.set("por","1"),hA()||F.set("onem","1"),0=a.start);return a}; g.h.Hn=function(){return this.Vc.Hn()}; g.h.isPlaying=function(){return this.playerState.isPlaying()}; g.h.getPlayerState=function(){return this.playerState}; g.h.getPlayerType=function(){return this.playerType}; g.h.getPreferredQuality=function(){if(this.qf){var a=this.qf;a=a.videoData.uq.compose(a.videoData.TQ);a=zw(a)}else a="auto";return a}; g.h.Px=ca(9);g.h.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.h.setMediaElement=function(a){if(this.mediaElement&&a.df()===this.mediaElement.df()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.Tt(this.Zv),this.mediaElement=a,RNa(this),this.Vc.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Gh();if(!this.playerState.isError()){var b=jF(this.playerState,512);g.U(b,8)&&!g.U(b,2)&&(b=iF(b,1));a.isView()&&(b=jF(b,64));this.Pb(b)}this.mediaElement=a;this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate); RNa(this);this.Vc.setMediaElement(this.mediaElement);this.K("html5_prewarm_media_source")&&!this.yk.wy&&vza(this.mediaElement)}}; g.h.Gh=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(this.mediaElement){var c=this.getCurrentTime();0this.mediaElement.getCurrentTime()&&this.Fa)return;break;case "resize":aOa(this);this.videoData.B&&"auto"===this.videoData.B.video.quality&&this.W("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.EM&&g.U(this.playerState,8)&&!g.U(this.playerState,1024)&&0===this.getCurrentTime()&&g.pr){nS(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Zf()===b){this.W("videoelementevent",a);b=this.playerState;if(!g.U(b,128)){c=this.ex;var e=this.mediaElement; d=b.state;e=e?e:a.target;var f=e.getCurrentTime();if(!g.U(b,64)||"ended"!==a.type&&"pause"!==a.type){var k=e.Cg()||1Math.abs(f-e.getDuration()),l="pause"===a.type&&e.Cg();f="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.U(b,4)&&!nR(c,f);if(l||k&&f)0a-this.cC))this.cC=a,b!==this.ag()&&(a=this.visibility,a.j!==b&&(a.j=b,a.nf()),this.qa("airplay",{rbld:b}),IQ(this)),this.W("airplayactivechange")}; g.h.Zx=function(a){if(this.Fa){var b=this.Fa,c=b.B,d=b.currentTime,e=Date.now()-c.U;c.U=NaN;c.qa("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.D)&&MHa(c,d,c.D,c.B);IO(c,4,"adf");kQ(b)}}; g.h.Rb=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){aMa(this.Vc,this.isPlaying());var c=this.getCurrentTime();this.Fa&&(g.U(this.playerState,4)&&g.qD(this.videoData)||LJa(this.Fa,c));5Math.abs(m-k)?(b.qa("setended",{ct:k,bh:l,dur:m,live:n}),n&&b.K("html5_set_ended_in_pfx_live_cfl")||(b.mediaElement.wr()?b.seekTo(0,{Xd:"videoplayer_loop"}):uN(b))):(g.oF(b.playerState)||CS(b,"progress_fix"),b.Pb(iF(b.playerState, 1)))):(m&&!n&&!p&&0n-1&&b.qa("misspg",{t:k.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),g.U(b.playerState,4)&&g.oF(b.playerState)&&5BE(b,8)||g.CE(b,1024))&&this.Sr.stop();!g.CE(b,8)||this.videoData.ib||g.U(b.state,1024)||this.Sr.start();g.U(b.state,8)&& 0>BE(b,16)&&!g.U(b.state,32)&&!g.U(b.state,2)&&this.playVideo();g.U(b.state,2)&&rD(this.videoData)&&(this.Vk(this.getCurrentTime()),this.Rb(!0));g.CE(b,2)&&this.iJ(!0);g.CE(b,128)&&this.Vn();this.videoData.j&&this.videoData.isLivePlayback&&!this.aS&&(0>BE(b,8)?(a=this.videoData.j,a.B&&a.B.stop()):g.CE(b,8)&&this.videoData.j.resume());this.Vc.Uc(b);this.logging.Uc(b);if(c&&!this.isDisposed())try{for(var k=g.r(this.PC),l=k.next();!l.done;l=k.next()){var m=l.value;this.nh.Uc(m);this.W("statechange", m)}}finally{this.PC.length=0}}}; g.h.Qy=function(){this.videoData.isLivePlayback||this.W("connectionissue")}; g.h.tI=function(){this.xb.tick("qoes")}; g.h.xC=function(a,b,c,d){a:{var e=this.yk;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=vB(b);"drm.keyerror"===a&&this.le&&1e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())GKa(e,a);else{if(e.oa.Qf(a,b,d,c),zKa(e,{detail:c}))break a}else e.rd(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.qa("retrydrm",{sessionLimitExhausted:1}),e.D++,YNa(e.oa))}}; g.h.oZ=function(){var a=this,b=g.Pz(this.environmentData.experiments,"html5_license_constraint_delay"),c=tq();b&&c?(b=new g.K(function(){pS(a);kS(a)},b),g.J(this,b),b.start()):(pS(this),kS(this))}; g.h.Sy=function(a){this.W("heartbeatparams",a)}; g.h.Up=function(a){this.qa("keystatuses",uQ(a));var b="auto",c=!1;this.videoData.B&&(b=this.videoData.B.video.quality,c=this.videoData.B.video.isHdr());if(this.K("html5_drm_check_all_key_error_states")){var d=iKa(b,c);d=tQ(a)?vQ(a,d):a.D.includes(d)}else{a:{b=iKa(b,c);for(d in a.j)if("output-restricted"===a.j[d].status){var e=a.j[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}b=a.Z&&d;c&&!b?GKa(this.yk):d||vQ(a,"AUDIO")&&vQ(a,"SD")||(a=uQ(a),this.cJ?(this.W("drmoutputrestricted"), this.K("html5_report_fatal_drm_restricted_error_killswitch")||this.Qf("drm.keyerror",2,void 0,"info."+a)):(this.cJ=!0,this.rd(new uB("qoe.restart",Object.assign({},{retrydrm:1},a))),qS(this),YNa(this)))}; g.h.rZ=function(){if(!this.videoData.ib&&this.mediaElement&&!this.isBackground()){var a="0";0=c.u.size){var d="ns;";c.U||(d+="nr;");c=d+="ql."+c.B.length}else c=uQ(c.u.values().next().value),c=tB(c);b.drmp=c}var e;Object.assign(a,(null==(e=this.Fa)?void 0:e.Lb())||{});var f;Object.assign(a,(null==(f=this.mediaElement)?void 0: f.Lb())||{})}this.logging.rd("qoe.start15s",tB(a));this.W("loadsofttimeout")}}; g.h.Vk=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,kS(this))}; g.h.iJ=function(a){var b=this;a=void 0===a?!1:a;if(!this.DA){lw("att_s","player_att")||mw("att_s",void 0,"player_att");var c=new g.KCa(this.videoData);if("c1a"in c.j&&!g.PH.isInitialized()&&(mw("att_wb",void 0,"player_att"),2===this.sF&&.01>Math.random()&&g.lu(Error("Botguard not available after 2 attempts")),!a&&5>this.sF)){g.on(this.tF);this.sF++;return}if("c1b"in c.j){var d=CLa(this.logging);d&&NCa(c).then(function(e){e&&!b.DA&&d?(mw("att_f",void 0,"player_att"),d(e),b.DA=!0):mw("att_e",void 0, "player_att")},function(){mw("att_e",void 0,"player_att")})}else(a=g.LCa(c))?(mw("att_f",void 0,"player_att"),BLa(this.logging,a),this.DA=!0):mw("att_e",void 0,"player_att")}}; g.h.Dd=function(a){return this.Vc.Dd(void 0===a?!1:a)}; g.h.getMinSeekableTime=function(){return this.Vc.getMinSeekableTime()}; g.h.pd=function(){return this.Vc?this.Vc.pd():0}; g.h.getStreamTimeOffset=function(){return this.Vc?this.Vc.getStreamTimeOffset():0}; g.h.zn=function(){var a=0;this.environmentData.K("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.pd():this.getStreamTimeOffset());return a}; g.h.setPlaybackRate=function(a){var b;this.playbackRate!==a&&LQ(this.eh,null==(b=this.videoData.C)?void 0:b.videoInfos)&&(this.eh.setPlaybackRate(a),qS(this));this.playbackRate=a;this.mediaElement&&this.mediaElement.setPlaybackRate(a)}; g.h.getPlaybackRate=function(){return this.playbackRate}; g.h.getPlaybackQuality=function(){var a="unknown";if(this.videoData.B&&(a=this.videoData.B.video.quality,"auto"===a&&this.mediaElement)){var b=xE(this);b&&0=+c),b.dis=this.mediaElement.getStyle("display"));(a=a?(0,g.XQ)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Ma.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)}; g.h.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.S().experiments.experimentIds.join(", ")},b=this.vb().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a}; g.h.getPresentingPlayerType=function(a){if(1===this.appState)return 1;if(HS(this))return 3;var b;return a&&(null==(b=this.Fd)?0:b.isAdPlaying(this.getCurrentTime()))?2:g.tI(this).getPlayerType()}; g.h.vb=function(a){return 3===this.getPresentingPlayerType()?nI(this.vc).Od:g.tI(this,a).getPlayerState()}; g.h.getAppState=function(){return this.appState}; g.h.yI=function(a){switch(a.type){case "loadedmetadata":zI(this.xb,"fvb");zI(this.xb,"fvb_r");this.iD.start();a=g.r(this.Fv);for(var b=a.next();!b.done;b=a.next())b=b.value,AOa(this,b.id,b.X1,b.W1,void 0,!1);this.Fv=[];break;case "loadstart":zI(this.xb,"gv");break;case "progress":case "timeupdate":2<=hz(a.target.Ag())&&zI(this.xb,"l2s");break;case "playing":g.mB&&this.iD.start();if(g.YA(this.environmentData))a=!1;else{b=g.pI(this.fb());a="none"===this.mediaElement.getStyle("display")||0===Nf(this.mediaElement.getSize()); var c=qO(this.template),d=this.Bb.getVideoData(),e=g.RA(this.environmentData)||this.environmentData.isMusic();d=dD(d);b=!c||b||e||d||this.environmentData.Wc;a=a&&!b}a&&(this.Bb.qa("hidden",{},!0),this.getVideoData().dc||(this.K("html5_new_elem_on_hidden")?(this.getVideoData().dc=1,this.VP(null),this.Bb.playVideo()):KS(this,"hidden",!0)))}}; g.h.onLoadProgress=function(a,b){this.Ma.Ia("onLoadProgress",b)}; g.h.F_=function(){this.Ma.W("playbackstalledatstart")}; g.h.onVideoProgress=function(a,b){a=NS(this,a);b=YS(this,a.getCurrentTime(),a);this.Ma.Ia("onVideoProgress",b)}; g.h.onAutoplayBlocked=function(){this.Ma.Ia("onAutoplayBlocked")}; g.h.XZ=function(){this.Ma.W("progresssync")}; g.h.FY=function(a){if(1===this.getPresentingPlayerType()){g.CE(a,1)&&!g.U(a.state,64)&&this.Sc().isLivePlayback&&this.ob.isAtLiveHead()&&1=1E3*(this.getDuration()-1)){sOa(this);return}nOa(this)}if(g.U(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ma.Ia("onError",zVa[b.errorCode]||5);this.Ma.Ia("onDetailedError",{errorCode:b.errorCode, errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.eG});6048E5<(0,g.Q)()-this.environmentData.He&&this.Ma.Ia("onReloadRequired")}b={};if(a.state.isPlaying()&&!g.oF(a.state)&&!lw("pbresume","ad_to_video")&&lw("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);Rv(b,"ad_to_video");if(this.K("html5_csi_delay_pbresume")){if(lw("plev","ad_to_video")&&!isNaN(this.xb.u))if(b=1E3*(this.getCurrentTime()-this.xb.u),0>b){var d; null==(d=g.tI(this))||d.qa("csir",{ossms:b})}else if(1E5Math.random()&&g.cr("autoplayTriggered",{intentional:this.yO});this.XO=!1;this.vc.XA();this.K("web_player_defer_ad")&&OS(this);this.Ma.Ia("onPlaybackStartExternal");this.environmentData.K("mweb_client_log_screen_associated");(function(){var c=g.wu(a.gR||(a.lf()?3:0));if(c&&"UNDEFINED_CSN"!== c)if(a.environmentData.K("il_via_jspb")){var d=new Yo,e=a.getVideoData().clientPlaybackNonce;g.E(d,1,e).Ih(c);a.environmentData.K("web_playback_associated_ve")&&a.getVideoData().ma&&(e=g.ou(a.getVideoData().ma),g.Bu(c,e),c=e.getAsJspb(),cd(d,Wo,2,c));if(a.environmentData.K("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo){c=a.getVideoData().queueInfo;e=new Zo;if(null==c?0:c.enqueueingVe)if(null==c?0:c.enqueueingVe.trackingParams){var f=g.ou(c.enqueueingVe.trackingParams);f=f.getAsJspb(); cd(e,Wo,1,f)}else g.lu(new g.hr("Cannot map enqueueingVe from a client VE "));(null==c?0:c.enqueueingCsn)&&g.E(e,2,c.enqueueingCsn);(null==c?0:c.clientEnqueueingTimeMs)&&g.E(e,3,Number(c.clientEnqueueingTimeMs));cd(d,Zo,4,e)}c={};a.K("web_playback_associated_log_ctt")&&a.getVideoData().J&&(c.cttAuthInfo={token:a.getVideoData().J,videoId:a.getVideoData().videoId});e=new rp;dd(e,Yo,202,ju,d);iu(e,c)}else d={cpn:a.getVideoData().clientPlaybackNonce,csn:c},a.environmentData.K("web_playback_associated_ve")&& a.getVideoData().ma&&(e=g.ou(a.getVideoData().ma),g.Bu(c,e),d.playbackVe=e.getAsJson()),a.environmentData.K("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(d.queueInfo=a.getVideoData().queueInfo),c={},a.K("web_playback_associated_log_ctt")&&a.getVideoData().J&&(c.cttAuthInfo={token:a.getVideoData().J,videoId:a.getVideoData().videoId}),g.cr("playbackAssociated",d,c);else g.lu(new g.hr("CSN Missing or undefined during playback association"))})(); var b={};!this.K("web_player_csi_ctt_killswitch")&&this.getVideoData().J&&(b.cttAuthInfo={token:this.getVideoData().J,videoId:this.getVideoData().videoId});Sv("player_att",b);this.getVideoData().botguardData&&(g.gB(this.environmentData)||"MWEB"===WA(this.environmentData)?g.Rq(g.Tq(),function(){US(a)}):US(this)); this.kD()}; g.h.kI=function(){this.Ma.W("internalAbandon");this.K("html5_ad_module_cleanup_killswitch")||ZS(this)}; g.h.KP=function(a){a=a.j;!isNaN(a)&&0window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.Ax())}; g.h.qZ=function(a){3!==this.getPresentingPlayerType()&&this.Ma.W("liveviewshift",a)}; g.h.playVideo=function(a){if(a=g.tI(this,a))2===this.appState?TS(this):(null!=this.hk&&this.hk.kb&&this.hk.start(),g.U(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())}; g.h.pauseVideo=function(a){(a=g.tI(this,a))&&a.pauseVideo()}; g.h.stopVideo=function(){var a=this.ob.getVideoData(),b=new g.TC(this.environmentData,{video_id:a.ZE||a.videoId,oauth_token:a.oauthToken});b.V=g.Ee(a.V);this.cancelPlayback(6);bT(this,b,1);null!=this.hk&&this.hk.stop()}; g.h.cancelPlayback=function(a,b){gs(this.kq);this.kq=0;var c=g.tI(this,b);c&&(2===b&&1===c.getPlayerType()&&pya(this.Sc())?c.qa("canclpb",{r:"no_adpb_ssdai"}):(this.environmentData.K("html5_high_res_logging")&&c.qa("canclpb",{r:a}),1!==this.appState&&2!==this.appState&&(c===this.Bb&&TI(this.vc,a),1===b&&(c.stopVideo(),ZS(this)),c.Vn(),JS(this,"cuerangesremoved",c.Bk()),c.nh.reset(),this.cw&&c.isGapless()&&(c.Gh(!0),c.setMediaElement(this.mediaElement)))))}; g.h.sendVideoStatsEngageEvent=function(a,b,c){(b=g.tI(this,b))&&this.environmentData.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()}; g.h.gi=function(a){var b=g.tI(this);return b&&this.environmentData.enabledEngageTypes.has(a.toString())?b.gi(a):null}; g.h.updatePlaylist=function(){eB(this.environmentData)?QS(this):g.IA(this.environmentData)&&RS(this);this.Ma.Ia("onPlaylistUpdate")}; g.h.setSizeStyle=function(a,b){this.sR=a;this.rH=b;this.Ma.W("sizestylechange",a,b);this.template.resize()}; g.h.isWidescreen=function(){return this.rH}; g.h.lf=function(){return this.visibility.lf()}; g.h.isInline=function(){return this.visibility.isInline()}; g.h.Su=function(){return this.visibility.Su()}; g.h.Pu=function(){return this.visibility.Pu()}; g.h.uy=function(){return this.sR}; g.h.getAdState=function(){if(3===this.getPresentingPlayerType())return nI(this.vc).getAdState();if(!this.Ae()){var a=UI(this.fb());if(a)return a.getAdState()}return-1}; g.h.i_=function(a){var b=this.template.getVideoContentRect();zk(this.QO,b)||(this.QO=b,this.Bb&&pS(this.Bb),this.ob&&this.ob!==this.Bb&&pS(this.ob),1===this.Cu()&&this.Yy&&FOa(this,!0));this.xH&&g.Mf(this.xH,a)||(this.Ma.W("appresize",a),this.xH=a)}; g.h.Of=function(){return this.Ma.Of()}; g.h.A_=function(){2===this.getPresentingPlayerType()&&this.Zc.isManifestless()&&!this.K("web_player_manifestless_ad_signature_expiration_killswitch")?iHa(this.Zc):(this.Fd&&(MN(this.Fd),ZS(this)),KS(this,"signature",void 0,!0))}; g.h.VP=function(){this.Gh();IS(this)}; g.h.EZ=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Ma.Ia("onPlayerRequestAuthFailed")}; g.h.Qy=function(){this.Ma.Ia("CONNECTION_ISSUE")}; g.h.Sy=function(a){this.Ma.W("heartbeatparams",a)}; g.h.gD=function(a){this.Ma.Ia("onAutonavChangeRequest",1!==a)}; g.h.Ed=function(){return this.mediaElement}; g.h.setBlackout=function(a){this.environmentData.Wc=a;this.Bb&&(this.Bb.Vs(),this.environmentData.xa&&HOa(this))}; g.h.setAccountLinkState=function(a){var b=g.tI(this);b&&(b.getVideoData().cM=a,b.Vs())}; g.h.updateAccountLinkingConfig=function(a){var b=g.tI(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Ma.W("videodatachange","dataupdated",c,b.getPlayerType())}}; g.h.GZ=function(){var a=g.tI(this);if(a){var b=!this.Ma.qy();(a.kO=b)||a.Sr.stop();if(a.videoData.j)if(b)a.videoData.j.resume();else{var c=a.videoData.j;c.B&&c.B.stop()}a.environmentData.K("html5_suspend_loader")&&a.Fa&&(b?a.Fa.resume():xS(a,!0));a.environmentData.K("html5_fludd_suspend")&&(g.U(a.playerState,2)||b?g.U(a.playerState,512)&&b&&a.Pb(jF(a.playerState,512)):a.Pb(iF(a.playerState,512)));a=a.logging;a.qoe&&(a=a.qoe,g.RQ(a,g.tN(a.j),"stream",[b?"A":"I"]))}}; g.h.onLoadedMetadata=function(){this.Ma.Ia("onLoadedMetadata")}; g.h.onDrmOutputRestricted=function(){this.Ma.Ia("onDrmOutputRestricted")}; g.h.rF=function(){this.K("html5_skip_empty_load")&&(sVa=!0);zza=this.K("html5_ios_force_seek_to_zero_on_stop");tVa=this.K("html5_ios7_force_play_on_stall");uVa=this.K("html5_ios4_seek_above_zero");M_=this.K("html5_use_async_stopVideo");vVa=this.K("html5_pause_for_async_stopVideo");Aua=this.K("html5_retain_source_buffer_appends_for_debugging");this.K("html5_mediastream_applies_timestamp_offset")&&(mP=!0);this.K("html5_dont_override_default_sample_desc_index")&&(tta=!0);var a=g.Pz(this.environmentData.experiments, "html5_cobalt_override_quic");a&&oGa(0a)){var e;if((c=null==(e=this.getVideoData())?void 0:e.Qg)&&aq.start&&dD;D++)if(y=(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(u.charAt(D)),4==D%5){for(var G="",F=0;6>F;F++)G="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+G,y>>=5;z+=G}u=z.substr(0,4)+" "+z.substr(4,4)+" "+z.substr(8,4)}else u="";l={video_id_and_cpn:c.videoId+" / "+u,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:p?"":"display:none",drm:p,debug_info:d, bandwidth_style:t,network_activity_style:t,network_activity_bytes:m.toFixed(0)+" KB",shader_info:q,shader_info_style:q?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1a)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":f="Optimized for Normal Latency";break;case "LOW":f="Optimized for Low Latency";break;case "ULTRALOW":f= "Optimized for Ultra Low Latency";break;default:f="Unknown Latency Setting"}else f=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=f;(a=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+a.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+="Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=jO(k,"bandwidth");l.network_activity_samples=jO(k,"networkactivity");l.live_latency_samples=jO(k, "livelatency");l.buffer_health_samples=jO(k,"bufferhealth");b=g.ED(c);if(c.cotn||b)l.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b;l.cotn_and_local_media_style=l.cotn_and_local_media?"":"display:none";hD(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20220612_00_RC00",l.release_style=""):l.release_style="display:none";return l}; g.h.getVideoUrl=function(a,b,c,d,e){return this.jb&&this.jb.postId?(a=this.environmentData.getVideoUrl(a),a=xh(a,"v"),a.replace("/watch","/clip/"+this.jb.postId)):this.environmentData.getVideoUrl(a,b,c,d,e)}; var g0={};g.Ia("yt.player.Application.create",g.GS.create);g.Ia("yt.player.Application.createAlternate",g.GS.create);Mqa(du(),{On:[{Ey:/Unable to load player module/,weight:20},{Ey:/Failed to fetch/,weight:500},{Ey:/XHR API fetch failed/,weight:10},{Ey:/JSON parsing failed after XHR fetch/,weight:10},{Ey:/Retrying OnePlatform request/,weight:10}]});var LVa=g.Ja("ytcsi.tick");LVa&&LVa("pe");var OOa=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),MOa=new Map([["normal",{Es:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Os:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Es:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Os:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}], ["muted",{Es:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Os:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Es:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Os:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Es:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Os:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Es:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Os:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}], ["error",{Es:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Os:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);var MVa={sfa:"replaceUrlMacros",Uda:"onAboutThisAdPopupClosed",q8:"executeCommand"};qT.prototype.Xl=function(){return"adLifecycleCommand"}; qT.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.zg(function(){b.controller.Xo()}); break;case "END_LINEAR_AD_PLACEMENT":g.zg(function(){b.controller.Ul()}); break;case "FILL_ABOVE_FEED_SLOT":g.zg(function(){a.elementId&&b.controller.kB(a.elementId)}); break;case "CLEAR_ABOVE_FEED_SLOT":g.zg(function(){b.controller.PA()})}}; qT.prototype.Cn=function(a){this.handle(a)};rT.prototype.Xl=function(){return"clearCueRangesCommand"}; rT.prototype.handle=function(){var a=this.MF();g.zg(function(){a.Kg(Array.from(a.Lq))})}; rT.prototype.Cn=function(a){this.handle(a)};sT.prototype.Xl=function(){return"muteAdEndpoint"}; sT.prototype.handle=function(a){TOa(this,a)}; sT.prototype.Cn=function(a,b){TOa(this,a,b)};tT.prototype.Xl=function(){return"openPopupAction"}; tT.prototype.handle=function(){}; tT.prototype.Cn=function(a){this.handle(a)};uT.prototype.Xl=function(){return"pingingEndpoint"}; uT.prototype.handle=function(){}; uT.prototype.Cn=function(a){this.handle(a)};vT.prototype.Xl=function(){return"urlEndpoint"}; vT.prototype.handle=function(a,b){b=Object.assign({},b);if(xV(this.r0,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")){var c=this.Tk.Cf(2);c&&(b.AD_CPN=c.clientPlaybackNonce)}b=g.gn(a.url,b);var d,e;if((null==(d=a.browserConversionApiData)?0:d.impressiondata)&&(null==(e=a.browserConversionApiData)?0:e.conversiondestination)){var f;if(null==(f=a.browserConversionApiData)?0:f.originTrialToken)d=document.createElement("meta"),d.setAttribute("http-equiv","origin-trial"),d.setAttribute("content", a.browserConversionApiData.originTrialToken),document.head.appendChild(d);a={attributionSourceEventId:a.browserConversionApiData.impressiondata,attributionDestination:a.browserConversionApiData.conversiondestination,attributionReportTo:a.browserConversionApiData.reportingorigin,attributionExpiry:Number(a.browserConversionApiData.impressionexpiry)||void 0}}else a=void 0;a&&g.R("ERROR: Attribution source params in prod traffic");a=new g.Ai(b);void 0!==a.u.get("ase")&&("1"===a.u.get("ase")?g.R("ERROR: &ase=1 is already in prod traffic."): g.R("ERROR: &ase is already in prod traffic, with value not equal to 1."));"1"===a.u.get("ase")?g.oH(b,void 0,void 0,b+"&asr=1"):g.oH(b)}; vT.prototype.Cn=function(a){this.handle(a,{})};wT.prototype.Xl=function(){return"adPingingEndpoint"}; wT.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Mq.send(a,b,c)}; wT.prototype.Cn=function(a,b,c){YQa(this.La.get(),a,b,void 0,c)};xT.prototype.Xl=function(){return"changeEngagementPanelVisibilityAction"}; xT.prototype.handle=function(a){this.G.Ia("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})}; xT.prototype.Cn=function(a){this.handle(a)};yT.prototype.Xl=function(){return"loggingUrls"}; yT.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,this.Rj.send(d.baseUrl,b,c,d.headers)}; yT.prototype.Cn=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,YQa(this.La.get(),c.baseUrl,b,c.headers)};g.w(VOa,g.I);zT.prototype.get=function(){return this.value}; g.w(AT,zT);AT.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"}; g.w(BT,zT);BT.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"}; g.w(CT,zT);CT.prototype.getType=function(){return"metadata_type_ad_next_params"}; g.w(DT,zT);DT.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"}; g.w(ET,zT);ET.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"}; g.w(FT,zT);FT.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"}; g.w(GT,zT);GT.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"}; g.w(HT,zT);HT.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"}; g.w(IT,zT);IT.prototype.getType=function(){return"metadata_ad_video_is_listed"}; g.w(JT,zT);JT.prototype.getType=function(){return"metadata_type_ad_placement_config"}; g.w(KT,zT);KT.prototype.getType=function(){return"metadata_type_ad_pod_info"}; g.w(LT,zT);LT.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"}; g.w(MT,zT);MT.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"}; g.w(NT,zT);NT.prototype.getType=function(){return"metadata_type_ad_video_id"}; g.w(OT,zT);OT.prototype.getType=function(){return"metadata_type_ad_video_url"}; g.w(PT,zT);PT.prototype.getType=function(){return"metadata_type_content_cpn"}; g.w(QT,zT);QT.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"}; g.w(RT,zT);RT.prototype.getType=function(){return"metadata_type_player_underlay_renderer"}; g.w(ST,zT);ST.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"}; g.w(TT,zT);TT.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"}; g.w(UT,zT);UT.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"}; g.w(VT,zT);VT.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"}; g.w(WT,zT);WT.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"}; g.w(XT,zT);XT.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"}; g.w(ZT,zT);ZT.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"}; g.w($T,zT);$T.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"}; g.w(aU,zT);aU.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"}; g.w(bU,zT);bU.prototype.getType=function(){return"metadata_type_player_bytes_callback"}; g.w(cU,zT);cU.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"}; g.w(dU,zT);dU.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"}; g.w(eU,zT);eU.prototype.getType=function(){return"metadata_type_sub_layouts"}; g.w(fU,zT);fU.prototype.getType=function(){return"metadata_type_cue_point"}; g.w(gU,zT);gU.prototype.getType=function(){return"metadata_type_video_length_seconds"}; g.w(hU,zT);hU.prototype.getType=function(){return"metadata_type_player_vars"}; g.w(iU,zT);iU.prototype.getType=function(){return"metadata_type_sodar_extension_data"}; g.w(jU,zT);jU.prototype.getType=function(){return"metadata_type_layout_enter_ms"}; g.w(kU,zT);kU.prototype.getType=function(){return"metadata_type_layout_exit_ms"}; g.w(lU,zT);lU.prototype.getType=function(){return"metadata_type_media_sub_layout_index"}; g.w(mU,zT);mU.prototype.getType=function(){return"metadata_type_dai"}; g.w(nU,zT);nU.prototype.getType=function(){return"metadata_type_ad_intro"}; g.w(oU,zT);oU.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"}; g.w(pU,zT);pU.prototype.getType=function(){return"metadata_type_drift_recovery_ms"}; g.w(qU,zT);qU.prototype.getType=function(){return"metadata_type_fulfilled_layout"}; g.w(rU,zT);rU.prototype.getType=function(){return"metadata_type_ad_break_request_data"}; g.w(sU,zT);sU.prototype.getType=function(){return"metadata_type_ad_break_response_data"}; g.w(tU,zT);tU.prototype.getType=function(){return"metadata_type_remote_slots_data"}; g.w(uU,zT);uU.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"}; g.w(vU,zT);vU.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"}; g.w(wU,zT);wU.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"}; g.w(xU,zT);xU.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"}; g.w(yU,zT);yU.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"}; g.w(zU,zT);zU.prototype.getType=function(){return"metadata_type_served_from_live_infra"}; g.w(AU,zT);AU.prototype.getType=function(){return"metadata_type_survey_overlay"}; g.w(BU,zT);BU.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};var jPa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED", "trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.w(CU,g.I);g.h=CU.prototype;g.h.EG=function(a,b){return this.j.EG(a,b)}; g.h.Di=function(a,b){EV(this.Tb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.r(this.ge),d=c.next();!d.done;d=c.next())d.value.Di(a,b)}; g.h.Kf=function(a){if(GU(this.j,a)){RE(this.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.Kf(a);for(var b=g.r(this.ge),c=b.next();!c.done;c=b.next())c.value.Kf(a);XOa(this,a)}}; g.h.Lf=function(a){if(GU(this.j,a)){RE(this.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.Lf(a);for(var b=g.r(this.ge),c=b.next();!c.done;c=b.next())c.value.Lf(a);GU(this.j,a)&&HU(this.j,a).D&&EU(this,a,!1)}}; g.h.DC=function(a){RE(this.Tb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);GU(this.j,a)&&(this.j.DC(a),EU(this,a,!1))}; g.h.Ic=function(a,b){if(GU(this.j,a)){IU(this.Tb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.r(this.ge),d=c.next();!d.done;d=c.next())d.value.Ic(a,b)}}; g.h.Tc=function(a,b,c){if(GU(this.j,a)){IU(this.Tb,NOa(c),a,b);this.j.Tc(a,b);for(var d=g.r(this.ge),e=d.next();!e.done;e=d.next())e.value.Tc(a,b,c);(c=UU(this.j,a))&&b.layoutId===c.layoutId&&gPa(this,a,!1)}}; g.h.Dg=function(a,b,c){S(c,a,b,void 0,c.Nq);EU(this,a,!0)}; g.h.Y=function(){var a=iPa(this.j);a=g.r(a);for(var b=a.next();!b.done;b=a.next())EU(this,b.value,!1);g.I.prototype.Y.call(this)};hPa.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.w(JU,$a);g.w(XU,g.I);g.h=XU.prototype;g.h.EG=function(a,b){b=TU(this,a+"_"+b);a=[];b=g.r(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a}; g.h.Ch=function(a){a=HU(this,a);"not_scheduled"!==a.j&&VU(a.slot,a.j,"onSlotScheduled");a.j="scheduled"}; g.h.Dx=function(a){a=HU(this,a);a.C="fill_requested";a.J.Dx()}; g.h.Kf=function(a){a=HU(this,a);"enter_requested"!==a.j&&VU(a.slot,a.j,"onSlotEntered");a.j="entered"}; g.h.DC=function(a){HU(this,a).C="fill_canceled"}; g.h.Lf=function(a){a=HU(this,a);"exit_requested"!==a.j&&VU(a.slot,a.j,"onSlotExited");a.j="scheduled"}; g.h.Tc=function(a,b){a=HU(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&VU(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.w($U,g.I);$U.prototype.B=function(){return this.u};g.w(aV,g.I);aV.prototype.get=function(){this.isDisposed()&&S("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.j});this.j||(this.j=this.u());return this.j};bV.prototype.executeCommand=function(a,b){UF(this.j(),a,b)}; bV.prototype.tf=function(a,b){DAa(this.j(),a,b)};g.w(DV,g.I);g.w(GV,g.I);GV.prototype.onCueRangeEnter=function(){}; GV.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.Yb.get().removeCueRange(a),Uu(this.Nb.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.wb.get();d=$u(d.Ra.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,Hb:c.Hb?LQa(c.slotId,d,c.Hb):void 0,Qb:MQa(c.slotId,d,c.Qb),Sb:MQa(c.slotId,d,c.Sb)})]},c.slotId))}; GV.prototype.Ci=function(){for(var a=g.r(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.Yb.get().removeCueRange(b);this.j.clear()}; GV.prototype.Rk=function(){};g.w(HV,g.I);g.h=HV.prototype;g.h.Ch=function(){}; g.h.ej=function(a){var b=this;g.Rq(g.Tq(),function(){var c=b.j.get(a);c&&S("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.v(c)).map(function(d){return d.layoutType})})},0)}; g.h.Kf=function(){}; g.h.dj=function(){}; g.h.Lf=function(){}; g.h.Oj=function(){}; g.h.Pj=function(){}; g.h.bj=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)}; g.h.cj=function(a,b){this.ij.has(a)&&this.ij.get(a)===b&&S("Unscheduled a Layout that is currently entered.",a,b);if(this.j.has(a)){var c=this.j.get(a);c.has(b)?(c.delete(b),0===c.size&&this.j.delete(a)):S("Trying to unscheduled a Layout that was not scheduled.",a,b)}else S("Trying to unscheduled a Layout that was not scheduled.",a,b)}; g.h.Ic=function(a,b){this.ij.set(a,b)}; g.h.Tc=function(a){this.ij.delete(a)}; g.h.Di=function(){};UV.prototype.clone=function(a){var b=this;return new UV(function(){return b.triggerId},a)};VV.prototype.clone=function(a){var b=this;return new VV(function(){return b.triggerId},a)};WV.prototype.clone=function(a){var b=this;return new WV(function(){return b.triggerId},a)};XV.prototype.clone=function(a){var b=this;return new XV(function(){return b.triggerId},a)};YV.prototype.clone=function(a){var b=this;return new YV(function(){return b.triggerId},a)};ZV.prototype.clone=function(a){var b=this;return new ZV(function(){return b.triggerId},a)};g.w(cW,g.I);cW.prototype.logEvent=function(a){EV(this,a)}; cW.prototype.u=function(){var a=this.Da.get();return(a.G.S().K("html5_enable_ads_client_monitoring_log_live_infra")?!0:g.YA(a.G.S())?a.G.S().K("html5_enable_ads_client_monitoring_log_tv"):!0)&&!this.Da.get().G.S().K("html5_disable_client_tmp_logs")};g.w(dW,cW);dW.prototype.u=function(){var a=cW.prototype.u.call(this),b=xV(this.Da.get(),"disable_pacf_logging_for_memory_limited_tv")?this.j.get().u():!0;var c=this.Da.get();c=g.YA(c.G.S())&&c.G.S().K("sample_pacf_events_on_tv")?Math.random()=this.De.length)throw new uv("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.De.length)});var a=W(this.Eb().ya,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=this);a=g.r(this.De);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),NU(this.j,this.slot,b.Eb()),OU(this.j,this.slot,b.Eb())}; g.h.aq=function(){var a=W(this.Eb().ya,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=null);a=g.r(this.De);for(var b=a.next();!b.done;b=a.next())b=b.value,SE(this.j,this.slot,b.Eb()),b.release()}; g.h.us=function(a,b){var c=this.De[this.Id];b.layoutId!==cX(c,a,b)?S("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.us()}; g.h.Hs=function(a,b){var c=this.De[this.Id];b.layoutId!==cX(c,a,b)?S("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Hs()}; g.h.Wy=function(a,b){var c=this.De[this.Id];b.layoutId!==cX(c,a,b)?S("onSkipRequested for a PlayerBytes layout that is not currently active",c.od(),c.Eb(),{requestingSlot:a,requestingLayout:b}):eX(this,c.od(),c.Eb(),"skipped")}; g.h.hq=function(){-1===this.Id&&dX(this,this.Id+1)}; g.h.H_=function(a,b){PU(this.j,a,b)}; g.h.iq=function(a,b){var c=this;this.Id!==this.De.length?(a=this.De[this.Id],a.Nf(a.Eb(),b),this.B=function(){c.callback.Tc(c.slot,c.layout,b)}):this.callback.Tc(this.slot,this.layout,b)}; g.h.Ic=function(a,b){var c=this.De[this.Id];c&&c.Ic(a,b)}; g.h.Tc=function(a,b,c){aX.prototype.Tc.call(this,a,b,c);var d=this.De[this.Id];d&&d.Tc(a,b,c)}; g.h.dP=function(){var a=this.De[this.Id];a&&a.JB()}; g.h.Zi=function(a){var b=this.De[this.Id];b&&b.Zi(a)}; g.h.dQ=function(a){var b=this.De[this.Id];b&&b.Nj(a)}; g.h.Dg=function(a,b){-1===this.Id&&(this.callback.Ic(this.slot,this.layout),this.Id++);var c=this.De[this.Id];c?c.Hy(a,b):S("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Id),layoutId:this.Eb().layoutId})}; g.h.onFullscreenToggled=function(a){var b=this.De[this.Id];if(b)b.onFullscreenToggled(a)}; g.h.ah=function(a){var b=this.De[this.Id];b&&b.ah(a)}; g.h.Lj=function(a){var b=this.De[this.Id];b&&b.Lj(a)}; g.h.onVolumeChange=function(){var a=this.De[this.Id];if(a)a.onVolumeChange()}; g.h.J_=function(a,b,c){eX(this,a,b,c)}; g.h.I_=function(a,b){eX(this,a,b,"error")};g.w(jX,g.I);g.h=jX.prototype;g.h.od=function(){return this.slot}; g.h.Eb=function(){return this.layout}; g.h.init=function(){var a=W(this.layout.ya,"metadata_type_video_length_seconds"),b=W(this.layout.ya,"metadata_type_active_view_traffic_type");UD(this.layout.Ob)&&nW(this.Ab.get(),this.layout.layoutId,b,a,this);tW(this.La.get(),this);this.Bp()}; g.h.release=function(){UD(this.layout.Ob)&&oW(this.Ab.get(),this.layout.layoutId);uW(this.La.get(),this);this.aq()}; g.h.us=function(){}; g.h.Hs=function(){}; g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Dg(this.slot,a,new JU("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.j="rendering_start_requested",uya(this.Ve.get(),1)?(this.D(-1),this.hq(a),this.Vt(!1)):this.Hy("ui_unstable",new JU("Failed to render media layout because ad ui unstable.")))}; g.h.Ic=function(a,b){if(b.layoutId===this.layout.layoutId){this.j="rendering";this.C=this.Ba.get().isMuted()||0===this.Ba.get().getVolume();kX(this,"impression");kX(this,"start");if(this.Ba.get().isMuted()){mX(this,"mute");var c;a=(null==(c=iX(this))?void 0:c.muteCommands)||[];this.Cb.get().tf(a,this.layout.layoutId)}if(this.Ba.get().isFullscreen()){this.Af("fullscreen");var d;c=(null==(d=iX(this))?void 0:d.fullscreenCommands)||[];this.Cb.get().tf(c,this.layout.layoutId)}this.Cd.get().jJ();this.D(1); this.RP();var e;d=(null==(e=iX(this))?void 0:e.impressionCommands)||[];this.Cb.get().tf(d,this.layout.layoutId)}}; g.h.Hy=function(a,b){this.ea={MD:3,Rz:"load_timeout"===a?402:400,errorMessage:b.message};kX(this,"error");var c;a=(null==(c=iX(this))?void 0:c.errorCommands)||[];this.Cb.get().tf(a,this.layout.layoutId);this.callback.Dg(this.slot,this.layout,b)}; g.h.JB=function(){this.J()}; g.h.cO=function(){if("rendering"===this.j){mX(this,"pause");var a,b=(null==(a=iX(this))?void 0:a.pauseCommands)||[];this.Cb.get().tf(b,this.layout.layoutId);this.D(2)}}; g.h.dO=function(){if("rendering"===this.j){mX(this,"resume");var a,b=(null==(a=iX(this))?void 0:a.resumeCommands)||[];this.Cb.get().tf(b,this.layout.layoutId)}}; g.h.Nf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Dg(this.slot,a,new JU("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):"rendering_stop_requested"!==this.j&&(this.j="rendering_stop_requested",this.P=b,this.iq(a,b))}; g.h.Tc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.j="not_rendering",this.P=void 0,(a="normal"!==c||this.position+1===this.Z)&&this.Vt(a),this.SP(c),this.D(0),c){case "abandoned":if(RW(this.u,"impression")){kX(this,"abandon");var d,e=(null==(d=iX(this))?void 0:d.abandonCommands)||[];this.Cb.get().tf(e,this.layout.layoutId)}break;case "normal":kX(this,"complete");d=(null==(e=iX(this))?void 0:e.completeCommands)||[];this.Cb.get().tf(d,this.layout.layoutId);break;case "skipped":kX(this, "skip");var f;d=(null==(f=iX(this))?void 0:f.skipCommands)||[];this.Cb.get().tf(d,this.layout.layoutId)}}; g.h.Nx=function(){return this.layout.layoutId}; g.h.qG=function(){return this.ea}; g.h.Nj=function(a){if("not_rendering"!==this.j){this.V||(a=new g.AE(a.state,new g.gF),this.V=!0);var b=2===this.Ba.get().getPresentingPlayerType();"rendering_start_requested"===this.j?b&&gX(a)&&this.U():b?g.CE(a,2)?this.FL():(gX(a)?this.D(1):g.CE(a,4)&&!g.CE(a,2)&&this.cO(),0>BE(a,4)&&!(0>BE(a,2))&&this.dO()):this.JB()}}; g.h.My=function(){if("rendering"===this.j){OW(this.u,"active_view_measurable");var a,b=(null==(a=iX(this))?void 0:a.activeViewMeasurableCommands)||[];this.Cb.get().tf(b,this.layout.layoutId)}}; g.h.Ly=function(){if("rendering"===this.j){OW(this.u,"active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=iX(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.Cb.get().tf(b,this.layout.layoutId)}}; g.h.Ny=function(){if("rendering"===this.j){OW(this.u,"active_view_viewable");var a,b=(null==(a=iX(this))?void 0:a.activeViewViewableCommands)||[];this.Cb.get().tf(b,this.layout.layoutId)}}; g.h.Jy=function(){if("rendering"===this.j){OW(this.u,"audio_audible");var a,b=(null==(a=iX(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.Cb.get().tf(b,this.layout.layoutId)}}; g.h.Ky=function(){if("rendering"===this.j){OW(this.u,"audio_measurable");var a,b=(null==(a=iX(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.Cb.get().tf(b,this.layout.layoutId)}}; g.h.Vt=function(a){this.Cd.get().Vt(W(this.layout.ya,"metadata_type_ad_placement_config").kind,a,this.position,this.Z,!1)}; g.h.onFullscreenToggled=function(a){if("rendering"===this.j)if(a){this.Af("fullscreen");var b,c=(null==(b=iX(this))?void 0:b.fullscreenCommands)||[];this.Cb.get().tf(c,this.layout.layoutId)}else this.Af("end_fullscreen"),b=(null==(c=iX(this))?void 0:c.endFullscreenCommands)||[],this.Cb.get().tf(b,this.layout.layoutId)}; g.h.onVolumeChange=function(){if("rendering"===this.j)if(this.Ba.get().isMuted()){mX(this,"mute");var a,b=(null==(a=iX(this))?void 0:a.muteCommands)||[];this.Cb.get().tf(b,this.layout.layoutId)}else mX(this,"unmute"),a=(null==(b=iX(this))?void 0:b.unmuteCommands)||[],this.Cb.get().tf(a,this.layout.layoutId)}; g.h.ah=function(){}; g.h.Lj=function(){}; g.h.Pk=function(){}; g.h.Af=function(a){xV(this.Da.get(),"av_call_once_per_event_pair")?this.u.Af(a,!this.C):(this.u.Af(a),this.C||(a=XD(a))&&this.u.Af(a))};g.w(nX,jX);g.h=nX.prototype;g.h.Bp=function(){}; g.h.aq=function(){var a=this.La.get();a.vD===this&&(a.vD=null);this.timer.stop()}; g.h.hq=function(){xV(this.Da.get(),"enable_post_ad_perception_survey_in_desktop")&&gRa(this.Ba.get());this.La.get().vD=this;lw("pbp")||lw("pbs")||mw("pbp");lw("pbp","watch")||lw("pbs","watch")||mw("pbp",void 0,"watch");this.U()}; g.h.RP=function(){ERa(this)}; g.h.FL=function(){}; g.h.us=function(){this.timer.stop();jX.prototype.cO.call(this)}; g.h.Hs=function(){ERa(this);jX.prototype.dO.call(this)}; g.h.Du=function(){return W(this.Eb().ya,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.h.iq=function(){this.timer.stop()}; g.h.Rb=function(){var a=Date.now(),b=a-this.B;this.B=a;this.Fl+=b;this.Fl>=this.Du()?(this.Fl=this.Du(),lX(this,this.Fl/1E3,!0),oX(this,this.Fl),this.J()):(lX(this,this.Fl/1E3),oX(this,this.Fl))}; g.h.SP=function(){}; g.h.Zi=function(){};g.w(pX,jX);g.h=pX.prototype;g.h.Bp=function(){W(this.Eb().ya,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=W(this.Eb().ya,"metadata_type_shrunken_player_bytes_config")}; g.h.aq=function(){W(this.Eb().ya,"metadata_type_player_bytes_callback_ref").current=null;this.B&&this.Yb.get().removeCueRange(this.B);this.B=void 0;this.I.dispose()}; g.h.hq=function(a){var b=W(a.ya,"metadata_type_ad_video_id"),c=W(a.ya,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.bf.get().G.S().V.add(b,{ix:c});(b=W(a.ya,"metadata_type_sodar_extension_data"))&&jRa(this.Yd.get(),b);hRa(this.Ba.get(),!1);b=this.ke.get();a=W(a.ya,"metadata_type_player_vars");b.G.cueVideoByPlayerVars(a,2);this.I.start();this.ke.get().G.playVideo(2)}; g.h.RP=function(){this.I.stop();this.B="adcompletioncuerange:"+this.Eb().layoutId;this.Yb.get().addCueRange(this.B,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var a;(this.adCpn=(null==(a=this.Na.get().Cf(2))?void 0:a.clientPlaybackNonce)||"")||S("Media layout confirmed started, but ad CPN not set.");this.Rc.get().Ia("onAdStart",this.adCpn)}; g.h.FL=function(){this.J()}; g.h.Du=function(){var a;return null==(a=this.Na.get().Cf(2))?void 0:a.playbackDurationMs}; g.h.eD=function(){this.u.Af("clickthrough")}; g.h.iq=function(){this.I.stop();hRa(this.Ba.get(),!0);var a;(null==(a=this.shrunkenPlayerBytesConfig)?0:a.shouldRequestShrunkenPlayerBytes)&&this.Ba.get().Lv(!1)}; g.h.onCueRangeEnter=function(a){a!==this.B?S("Received CueRangeEnter signal for unknown layout.",this.od(),this.Eb(),{cueRangeId:a}):(this.Yb.get().removeCueRange(this.B),this.B=void 0,a=W(this.Eb().ya,"metadata_type_video_length_seconds"),lX(this,a,!0),xV(this.Da.get(),"av_call_early_terminal_event")?kX(this,"complete"):OW(this.u,"complete"))}; g.h.SP=function(a){"abandoned"!==a&&this.Rc.get().Ia("onAdComplete");this.Rc.get().Ia("onAdEnd",this.adCpn)}; g.h.onCueRangeExit=function(){}; g.h.Zi=function(a){"rendering"===this.j&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ba.get().Lv(!0),lX(this,a))};g.w(qX,aX);g.h=qX.prototype;g.h.od=function(){return this.j.od()}; g.h.Eb=function(){return this.j.Eb()}; g.h.Bp=function(){this.j.init()}; g.h.aq=function(){this.j.release()}; g.h.us=function(){this.j.us()}; g.h.Hs=function(){this.j.Hs()}; g.h.Wy=function(a,b){S("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.od(),this.Eb(),{requestingSlot:a,requestingLayout:b})}; g.h.hq=function(a){this.j.startRendering(a)}; g.h.iq=function(a,b){this.j.Nf(a,b)}; g.h.Ic=function(a,b){this.j.Ic(a,b)}; g.h.Tc=function(a,b,c){aX.prototype.Tc.call(this,a,b,c);this.j.Tc(a,b,c);b.layoutId===this.Eb().layoutId&&this.Cd.get().Nv()}; g.h.dP=function(){this.j.JB()}; g.h.Zi=function(a){this.j.Zi(a)}; g.h.dQ=function(a){this.j.Nj(a)}; g.h.Dg=function(a,b){this.j.Hy(a,b)}; g.h.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)}; g.h.ah=function(a){this.j.ah(a)}; g.h.Lj=function(a){this.j.Lj(a)}; g.h.onVolumeChange=function(){this.j.onVolumeChange()};rX.prototype.Le=function(a,b,c,d){if(a=HRa(a,b,c,d,this.We,this.j,this.La,this.Ab,this.Yd,this.ke,this.Na,this.Ba,this.Yb,this.Cd,this.Rc,this.Ve,this.Cb,this.bf,this.Da))return a;throw new JU("Unsupported layout with type: "+d.layoutType+" and client metadata: "+jT(d.ya)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.w(sX,g.I);g.h=sX.prototype;g.h.TP=function(a){if(!this.j){var b;null==(b=this.qe)||b.get().Vp(a.identifier);return!1}IRa(this,this.j,a);return!0}; g.h.LP=function(){}; g.h.Ci=function(a){this.j&&this.j.contentCpn!==a&&(S("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)}; g.h.Rk=function(a){this.j&&this.j.contentCpn!==a&&S("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn},!0);this.j=null}; g.h.Y=function(){g.I.prototype.Y.call(this);this.j=null};g.w(tX,g.I);g.h=tX.prototype;g.h.Ic=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&KE(b,this.B)){var d=this.Na.get().Cf(2),e=this.j(b,d);e?Uu(this.Nb.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[OQa(c.wb.get(),e.contentCpn,e.Sv,function(k){return c.u(k.slotId,"core",e,oT(c.rb.get(),k))},e.sO)]; e.instreamAdPlayerUnderlayRenderer&&WQa(c.Da.get())&&f.push(JRa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):S("Expected MediaLayout to carry valid opportunity on entered",a,b)}}; g.h.Ch=function(){}; g.h.ej=function(){}; g.h.Kf=function(){}; g.h.dj=function(){}; g.h.Lf=function(){}; g.h.Oj=function(){}; g.h.Pj=function(){}; g.h.bj=function(){}; g.h.cj=function(){}; g.h.Di=function(){}; g.h.Tc=function(){};var rY=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.h=NRa.prototype;g.h.init=function(){}; g.h.od=function(){return this.slot}; g.h.fB=function(){this.callback.Kf(this.slot)}; g.h.hB=function(){this.callback.Lf(this.slot)}; g.h.release=function(){};vX.prototype.Le=function(a,b){return new NRa(a,b)};g.h=ORa.prototype;g.h.init=function(){}; g.h.od=function(){return this.slot}; g.h.fB=function(){yW(this.Ba.get(),"ad-showing");this.callback.Kf(this.slot)}; g.h.hB=function(){this.callback.Lf(this.slot);zW(this.Ba.get(),"ad-showing")}; g.h.release=function(){};g.h=PRa.prototype;g.h.init=function(){}; g.h.od=function(){return this.slot}; g.h.fB=function(){yW(this.Ba.get(),"ad-showing");yW(this.Ba.get(),"ad-interrupting");this.u=this.Ba.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.Kf(this.slot)}; g.h.hB=function(){zW(this.Ba.get(),"ad-showing");zW(this.Ba.get(),"ad-interrupting");var a=this.u?Infinity:this.Ba.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ba.get().G.seekTo(a,void 0,void 0,1);this.callback.Lf(this.slot)}; g.h.release=function(){};g.h=QRa.prototype;g.h.init=function(){}; g.h.od=function(){return this.slot}; g.h.fB=function(){yW(this.Ba.get(),"ad-showing");yW(this.Ba.get(),"ad-interrupting");this.callback.Kf(this.slot)}; g.h.hB=function(){this.Ba.get().lr();zW(this.Ba.get(),"ad-showing");zW(this.Ba.get(),"ad-interrupting");this.callback.Lf(this.slot)}; g.h.release=function(){this.Ba.get().lr()};wX.prototype.Le=function(a,b){if(Wu(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new ORa(a,b,this.Ba);if(b.Hb instanceof FV&&Wu(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new PRa(a,b,this.Ba);if(Wu(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new QRa(a,b,this.Ba);throw new uv("Unsupported slot with type "+b.slotType+" and client metadata: "+(jT(b.ya)+" in PlayerBytesSlotAdapterFactory."));};g.w(yX,g.I);yX.prototype.j=function(a){for(var b=[],c=g.r(this.Jb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof mV&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.rf===a&&b.push(d)}b.length?QU(this.IE(),b):S("Mute requested but no registered triggers can be activated.")};g.w(zX,yX);g.h=zX.prototype;g.h.Bg=function(a,b){if(b)if("survey-submit"===a)RRa(this,b);else if("skip-button"===a){a=[];for(var c=g.r(this.Jb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof mV&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.rf===b&&a.push(d)}a.length&&QU(this.IE(),a)}else"survey-single-select-answer-button"===a&&RRa(this,b)}; g.h.TG=function(a){yX.prototype.j.call(this,a)}; g.h.Vj=function(a,b,c,d){if(this.Jb.has(b.triggerId))throw new uv("Tried to register duplicate trigger for slot.");if(!(b instanceof nV||b instanceof mV))throw new uv("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Jb.set(b.triggerId,new xX(a,b,c,d))}; g.h.ek=function(a){this.Jb.delete(a.triggerId)}; g.h.QG=function(){}; g.h.PG=function(){}; g.h.KB=function(){};g.w(AX,g.I);g.h=AX.prototype; g.h.Vj=function(a,b,c,d){if(this.Jb.has(b.triggerId))throw new uv("Tried to register duplicate trigger for slot.");if(!(b instanceof UV||b instanceof VV||b instanceof WV||b instanceof XV||b instanceof YV||b instanceof ZV||b instanceof JV||b instanceof RV||b instanceof lV||b instanceof uV||b instanceof IV||b instanceof QV))throw new uv("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new xX(a,b,c,d);this.Jb.set(b.triggerId,a);b instanceof YV&&this.D.has(b.Ng)&&QU(this.j(),[a]);b instanceof UV&&this.B.has(b.Ng)&&QU(this.j(),[a]);b instanceof RV&&this.u.has(b.rf)&&QU(this.j(),[a])}; g.h.ek=function(a){this.Jb.delete(a.triggerId)}; g.h.Ch=function(a){this.D.add(a.slotId);for(var b=[],c=g.r(this.Jb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof YV&&a.slotId===d.trigger.Ng&&b.push(d);0BE(a,16)){a=g.r(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}}; g.h.Ch=function(){}; g.h.ej=function(){}; g.h.dj=function(){}; g.h.Kf=function(){}; g.h.Lf=function(){}; g.h.Oj=function(){}; g.h.Pj=function(){}; g.h.bj=function(){}; g.h.cj=function(){}; g.h.Ic=function(a,b){a=g.r(this.Jb.values());for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.bundle.trigger;c=c.mu;if(TRa(d)&&d.layoutId===b.layoutId){var e=1E3*this.Ba.get().getCurrentTimeSec(2,!1);d instanceof LV?d=0:(d=e+d.offsetMs,e=0x7ffffffffffff);this.Yb.get().addCueRange(c,d,e,!1,this)}}}; g.h.Tc=function(){}; g.h.Di=function(){}; g.h.Zi=function(){}; g.h.onFullscreenToggled=function(){}; g.h.ah=function(){}; g.h.Lj=function(){}; g.h.onVolumeChange=function(){}; g.h.Pk=function(){};g.w(EX,g.I);g.h=EX.prototype;g.h.Vj=function(a,b,c,d){if(this.Jb.has(b.triggerId))throw new uv("Tried to register duplicate trigger for slot.");if(!(b instanceof qV||b instanceof TV))throw new uv("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Jb.set(b.triggerId,new xX(a,b,c,d))}; g.h.ek=function(a){this.Jb.delete(a.triggerId)}; g.h.Xo=function(){}; g.h.Ul=function(){}; g.h.Ic=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null!=this.j?S("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.j=b.layoutId)}; g.h.Tc=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(this.j=null)}; g.h.Ch=function(){}; g.h.ej=function(){}; g.h.dj=function(){}; g.h.Kf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null!=this.u?S("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.u=a.slotId)}; g.h.Lf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null===this.u?S("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.u=null)}; g.h.Oj=function(){}; g.h.Pj=function(){}; g.h.bj=function(){}; g.h.cj=function(){}; g.h.Di=function(){}; g.h.PA=function(){null!=this.j&&fX(this,this.j)}; g.h.kB=function(a){if(null===this.u){for(var b=[],c=g.r(this.Jb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof TV&&d.trigger.slotId===a&&b.push(d);b.length&&QU(this.B(),b)}};g.w(FX,g.I);g.h=FX.prototype;g.h.Di=function(a,b){for(var c=[],d=g.r(this.Jb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f.opportunityType===a&&(f.associatedSlotId&&f.associatedSlotId!==b||c.push(e))}c.length&&QU(this.j(),c)}; g.h.Vj=function(a,b,c,d){if(this.Jb.has(b.triggerId))throw new uv("Tried to register duplicate trigger for slot.");if(!(b instanceof EQa))throw new uv("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Jb.set(b.triggerId,new xX(a,b,c,d))}; g.h.ek=function(a){this.Jb.delete(a.triggerId)}; g.h.Ch=function(){}; g.h.ej=function(){}; g.h.dj=function(){}; g.h.Kf=function(){}; g.h.Lf=function(){}; g.h.Oj=function(){}; g.h.Pj=function(){}; g.h.bj=function(){}; g.h.cj=function(){}; g.h.Ic=function(){}; g.h.Tc=function(){};g.w(GX,g.I);GX.prototype.Y=function(){this.wm.get().removeListener(this);g.I.prototype.Y.call(this)};g.w(HX,g.I);HX.prototype.Y=function(){this.oe.get().removeListener(this);g.I.prototype.Y.call(this)};IX.prototype.fetch=function(a){var b=a.iN;return this.Jq.fetch(a.gS,{mx:void 0===a.mx?void 0:a.mx,Jd:b}).then(function(c){return VRa(c,b)})};g.w(JX,g.I);g.h=JX.prototype;g.h.addListener=function(a){this.listeners.push(a)}; g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.h.xJ=function(a){WRa(this,a,1)}; g.h.onAdUxClicked=function(a,b){KX(this,function(c){c.Bg(a,b)})}; g.h.WH=function(a){KX(this,function(b){b.QG(a)})}; g.h.VH=function(a){KX(this,function(b){b.PG(a)})}; g.h.vY=function(a){KX(this,function(b){b.KB(a)})};g.w(LX,g.I);g.h=LX.prototype; g.h.Ci=function(){this.C=new VE(this,VQa(this.Da.get()));this.u=new WE;var a=this.G.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.G.getVideoData(1),c;(null==(c=this.j)?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(null!=this.j&&this.j.unsubscribe("cuepointupdated",this.dI,this),b.subscribe("cuepointupdated",this.dI,this),this.j=b)}this.CD.length=0;var d;b=(null==(d=a.j)?void 0:Rua(d,0))||[];d=g.r(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.Rp(b)&&S("Unexpected a GetAdBreak to go out without player waiting", void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})}; g.h.Rk=function(){}; g.h.addListener=function(a){this.listeners.push(a)}; g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.h.rI=function(a){this.CD.push(a);for(var b=!1,c=g.r(this.listeners),d=c.next();!d.done;d=c.next())b=d.value.TP(a)||b;this.B=b}; g.h.MP=function(a){g.bc(this.u.j,1E3*a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.LP(a)}; g.h.Rp=function(a){YRa(this,a);this.C.reduce(a);a=this.B;this.B=!1;return a}; g.h.dI=function(a){var b=this.G.getVideoData(1).isDaiEnabled();if(b||!g.iB(this.G.S())){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,YRa(this,c),b?this.C.reduce(c):0!==this.G.getCurrentTime(1)&&"start"===c.event&&this.rI(c)}}; g.h.Y=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.dI,this),this.j=null);this.listeners.length=0;this.CD.length=0;g.I.prototype.Y.call(this)};OX.prototype.addListener=function(a){this.listeners.push(a)}; OX.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.h=$Ra.prototype;g.h.od=function(){return this.slot}; g.h.Eb=function(){return this.layout}; g.h.init=function(){this.Ba.get().addListener(this);this.Ba.get().VA.push(this)}; g.h.release=function(){this.Ba.get().removeListener(this);eRa(this.Ba.get(),this)}; g.h.startRendering=function(a){this.callback.Ic(this.slot,a)}; g.h.Nf=function(a,b){this.callback.Tc(this.slot,a,b)}; g.h.Pk=function(a){switch(a.id){case "part2viewed":OW(this.j,"start");break;case "videoplaytime25":OW(this.j,"first_quartile");break;case "videoplaytime50":OW(this.j,"midpoint");break;case "videoplaytime75":OW(this.j,"third_quartile");break;case "videoplaytime100":OW(this.j,"complete");break;case "engagedview":if(!kW(this.Da.get())){OW(this.j,"progress");break}pRa(this.j)||OW(this.j,"progress");break;case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:S("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter", this.slot,this.layout)}}; g.h.onVolumeChange=function(){}; g.h.Lj=function(){}; g.h.ah=function(){}; g.h.onFullscreenToggled=function(){}; g.h.Nj=function(){}; g.h.Zi=function(){}; g.h.HP=function(a){kW(this.Da.get())&&pRa(this.j)&&QW(this.j,1E3*a,!1)};aSa.prototype.Le=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.r(MW()),f=e.next();!f.done;f=e.next())b.push(f.value);if(JW(d,{je:b,wf:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return new $Ra(a,c,d,this.Ba,this.La,this.Da);throw new JU("Unsupported layout with type: "+d.layoutType+" and client metadata: "+jT(d.ya)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};g.h=PX.prototype;g.h.od=function(){return this.slot}; g.h.Eb=function(){return this.layout}; g.h.init=function(){this.ye.get().addListener(this);this.Ba.get().addListener(this);this.Bp();var a=W(this.layout.ya,"metadata_type_layout_enter_ms"),b=W(this.layout.ya,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Na.get().ir)?void 0:c.clientPlaybackNonce;c=this.layout.uc.adClientDataEntry;sW(this.La.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.ye.get();e=XE(e.u,a,b);null!==e&&(sW(this.La.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d, cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.qe.get().Vq(e,b))}; g.h.release=function(){this.aq();this.ye.get().removeListener(this);this.Ba.get().removeListener(this)}; g.h.startRendering=function(){this.hq();this.callback.Ic(this.slot,this.layout)}; g.h.Nf=function(a,b){this.iq(b);null!==this.driftRecoveryMs&&(QX(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(bSa(this)-W(this.layout.ya,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ba.get().G.jp()).toString()}),this.driftRecoveryMs=null);this.callback.Tc(this.slot,this.layout,b)}; g.h.TP=function(){return!1}; g.h.LP=function(a){var b=W(this.layout.ya,"metadata_type_layout_enter_ms"),c=W(this.layout.ya,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&aa.width&&ZX(this.C,this.layout)}; g.h.onVolumeChange=function(){}; g.h.Zi=function(){}; g.h.onFullscreenToggled=function(){}; g.h.ah=function(){}; g.h.Nj=function(){}; g.h.Pk=function(){}; g.h.Y=function(){TW.prototype.Y.call(this)}; g.h.release=function(){TW.prototype.release.call(this);this.Ba.get().removeListener(this)};HSa.prototype.Le=function(a,b,c,d){if(b=ZW(a,c,d,this.Ub,this.Ba,this.La,this.C,this.j))return b;if(JW(d,FSa()))return new nY(c,d,this.La,this.Ab,this.Ub,a,this.u,this.B,this.Ba,this.Cb,this.Da,this.j,new oY(this.Ba));if(JW(d,ESa()))return new mY(c,d,this.La,this.Ab,this.Ub,a,this.u,this.Ba,this.Cb,this.Da,this.j,new oY(this.Ba));if(JW(d,{je:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],wf:["LAYOUT_TYPE_SURVEY"]}))return new pY(c,d,a,this.Ub,this.u,this.Ba,this.Da);if(JW(d,{je:["metadata_type_player_bytes_layout_controls_callback_ref", "metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],wf:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new gY(c,d,a,this.Ub,this.La);throw new JU("Unsupported layout with type: "+d.layoutType+" and client metadata: "+jT(d.ya)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.w(qY,g.I);g.h=qY.prototype;g.h.Vj=function(a,b,c,d){if(this.Jb.has(b.triggerId))throw new uv("Tried to register duplicate trigger for slot.");if(!(b instanceof tV))throw new uv("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Jb.set(b.triggerId,new xX(a,b,c,d));a=this.j.has(b.rf)?this.j.get(b.rf):new Set;a.add(b);this.j.set(b.rf,a)}; g.h.ek=function(a){this.Jb.delete(a.triggerId);if(!(a instanceof tV))throw new uv("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.u.get(a.triggerId);b&&(b.dispose(),this.u.delete(a.triggerId));if(b=this.j.get(a.rf))b.delete(a),0===b.size&&this.j.delete(a.rf)}; g.h.Ch=function(){}; g.h.ej=function(){}; g.h.dj=function(){}; g.h.Kf=function(){}; g.h.Lf=function(){}; g.h.Oj=function(){}; g.h.Pj=function(){}; g.h.bj=function(){}; g.h.cj=function(){}; g.h.Di=function(){}; g.h.Ic=function(a,b){var c=this;if(this.j.has(b.layoutId)){b=this.j.get(b.layoutId);a={};b=g.r(b);for(var d=b.next();!d.done;a={hw:a.hw},d=b.next())a.hw=d.value,d=new g.K(function(e){return function(){var f=c.Jb.get(e.hw.triggerId);QU(c.B(),[f])}}(a),a.hw.durationMs),d.start(),this.u.set(a.hw.triggerId,d)}}; g.h.Tc=function(){};g.w(JSa,g.I);KSa.prototype.Le=function(a,b,c,d){if(b=ZW(a,c,d,this.Ub,this.Ba,this.La,this.C,this.j))return b;if(JW(d,FSa()))return new nY(c,d,this.La,this.Ab,this.Ub,a,this.u,this.B,this.Ba,this.Cb,this.Da,this.j,new oY(this.Ba));if(JW(d,ESa()))return new mY(c,d,this.La,this.Ab,this.Ub,a,this.u,this.Ba,this.Cb,this.Da,this.j,new oY(this.Ba));throw new JU("Unsupported layout with type: "+d.layoutType+" and client metadata: "+jT(d.ya)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.w(LSa,g.I);g.w(MSa,g.I);g.w(NSa,g.I);g.w(sY,YW);sY.prototype.startRendering=function(a){YW.prototype.startRendering.call(this,a);W(this.layout.ya,"metadata_ad_video_is_listed")&&(a=W(this.layout.ya,"metadata_type_ad_info_ad_metadata"),this.wk.get().G.Ia("onAdMetadataAvailable",a))};PSa.prototype.Le=function(a,b,c,d){if(JW(d,OSa()))return new sY(a,c,d,this.Ub,this.Ba,this.La,this.u,this.wk,this.j);throw new JU("Unsupported layout with type: "+d.layoutType+" and client metadata: "+jT(d.ya)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.w(QSa,g.I);RSa.prototype.Le=function(a,b,c,d){if(JW(d,OSa()))return new sY(a,c,d,this.Ub,this.Ba,this.La,this.u,this.wk,this.j);if(a=ZW(a,c,d,this.Ub,this.Ba,this.La,this.u,this.j))return a;throw new JU("Unsupported layout with type: "+d.layoutType+" and client metadata: "+jT(d.ya)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.w(SSa,g.I);g.w(tY,g.I);tY.prototype.B=function(){return this.u};vY.prototype.kB=function(a){this.Ml.kB(a)}; vY.prototype.PA=function(){try{this.Ml.PA()}catch(a){}}; vY.prototype.Xo=function(){this.j().Xo()}; vY.prototype.Ul=function(){this.j().Ul()};g.w(wY,EG); wY.prototype.C=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Ia("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:this.j.Ia("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1); this.j.Ia("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.Ia("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.Ia("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Ia("updateKevlarOrC3Companion", {contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b=this.j.getVideoData(1),this.j.Ia("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.Ia("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.Ia("updateEngagementPanelAction",b.addAction);this.j.Ia("changeEngagementPanelVisibility", b.expandAction);break;case 3:this.j.Ia("changeEngagementPanelVisibility",b.hideAction),this.j.Ia("updateEngagementPanelAction",b.removeAction)}};g.w(xY,MG);g.h=xY.prototype;g.h.init=function(a,b,c){MG.prototype.init.call(this,a,b,c);g.Bk(this.B,"stroke-dasharray","0 "+this.u);this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){OG(this);MG.prototype.hide.call(this)}; g.h.show=function(){NG(this);MG.prototype.show.call(this)}; g.h.zs=function(){this.hide()}; g.h.Yp=function(){if(this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&g.Bk(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.u+" "+this.u)}};g.w(yY,fG);g.h=yY.prototype; g.h.init=function(a,b,c){fG.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&b.actionButton.buttonRenderer)if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.R(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!= e&&0=this.B?(this.D.hide(),this.J=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.B-a)/1E3)),a!==this.U&&(LG(this.messageText,{TIME_REMAINING:String(a)}),this.U=a)))}};g.w(GY,fG);g.h=GY.prototype; g.h.init=function(a,b,c){fG.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&b.actionButton.buttonRenderer?(this.B.init(ND("ad-image"),b.image,c),this.u.init(ND("ad-text"),b.headline,c),this.C.init(ND("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.S().K("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new uG(this.api,this.Xa,this.layoutId,this.interactionLoggingClientData, this.Ta,a),g.J(this,this.actionButton),this.actionButton.ra(this.D),this.actionButton.init(ND("button"),b.actionButton.buttonRenderer,c),b=g.Pz(this.api.S().experiments,"player_underlay_video_width_fraction"),this.api.S().K("place_shrunken_video_on_left_of_player")?(c=this.j,g.xn(c,"ytp-ad-underlay-left-container"),g.vn(c,"ytp-ad-underlay-right-container"),g.Bk(this.j,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.j,g.xn(c,"ytp-ad-underlay-right-container"),g.vn(c,"ytp-ad-underlay-left-container")), g.Bk(this.j,"width",Math.round(100*(1-b-.04))+"%"),this.api.YB()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.GL.bind(this)),this.api.addEventListener("resize",this.hO.bind(this))):g.R(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.R(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.R(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.R(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.h.show=function(){cTa(!0);this.actionButton&&this.actionButton.show();fG.prototype.show.call(this)}; g.h.hide=function(){cTa(!1);this.actionButton&&this.actionButton.hide();fG.prototype.hide.call(this)}; g.h.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.GL.bind(this));this.api.removeEventListener("resize",this.hO.bind(this));this.hide()}; g.h.onClick=function(a){fG.prototype.onClick.call(this,a);this.actionButton&&g.og(this.actionButton.element,a.target)&&this.api.pauseVideo()}; g.h.GL=function(a){"transitioning"===a?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):"visible"===a?this.j.classList.add("ytp-ad-underlay-clickable"):"hidden"===a&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))}; g.h.hO=function(a){1200a?g.R(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a)):b.timeoutCommands?b.text?b.ctaButton&&b.ctaButton.buttonRenderer?b.brandImage?b.backgroundImage&&b.backgroundImage.thumbnailLandscapePortraitRenderer&&b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape?(this.layoutId||g.R(Error("Missing layoutId for survey interstitial.")),jTa(this.interstitial, b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape),jTa(this.logoImage,b.brandImage),g.pg(this.text,g.rv(b.text)),this.actionButton=new uG(this.api,this.Xa,this.layoutId,this.interactionLoggingClientData,this.Ta,["ytp-ad-survey-interstitial-action-button"]),g.J(this,this.actionButton),this.actionButton.ra(this.u),this.actionButton.init(ND("button"),b.ctaButton.buttonRenderer,c),this.actionButton.show(),this.j=new aH(this.api,1E3*a),this.j.subscribe("g",function(){d.transition.hide()}), g.J(this,this.j),this.N(this.element,"click",function(e){var f=e.target===d.interstitial; e=d.actionButton.element.contains(e.target);if(f||e)if(d.transition.hide(),f)d.api.onAdUxClicked(d.componentType,d.layoutId)}),this.transition.show(100)):g.R(Error("SurveyTextInterstitialRenderer has no landscape background image.")):g.R(Error("SurveyTextInterstitialRenderer has no brandImage.")):g.R(Error("SurveyTextInterstitialRenderer has no button.")):g.R(Error("SurveyTextInterstitialRenderer has no text.")):g.R(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; uZ.prototype.clear=function(){this.hide()}; uZ.prototype.show=function(){kTa(!0);fG.prototype.show.call(this)}; uZ.prototype.hide=function(){kTa(!1);fG.prototype.hide.call(this)};var NVa="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat(["shopping-companion","action-companion","image-companion","ads-engagement-panel"]);g.w(vZ,EG); vZ.prototype.C=function(a){var b=a.id,c=a.content,d=c.componentType;if(!NVa.includes(d))switch(a.actionType){case 1:a=this.J();var e=this.api,f=this.Ta,k=c.layoutId,l=c.interactionLoggingClientData,m=c instanceof FE?c.wJ:!1,n=c instanceof FE||c instanceof $G?c.pD:!1;l=void 0===l?{}:l;m=void 0===m?!1:m;n=void 0===n?!1:n;switch(d){case "invideo-overlay":a=new zY(e,a,k,l,f);break;case "player-overlay":a=new lH(e,a,k,l,f,new AJ(e),n);break;case "survey":a=new tZ(e,a,k,l,f);break;case "ad-action-interstitial":a= new yY(e,a,k,l,f,m,n);break;case "survey-interstitial":a=new uZ(e,a,k,l,f);break;case "ad-message":a=new FY(e,a,k,l,f,new AJ(e,1));break;case "player-underlay":a=new GY(e,a,k,l,f);break;default:a=null}if(!a){g.lu(Error("No UI component returned from ComponentFactory for type: "+d));break}g.xe(this.u,b)?g.lu(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);c instanceof eY?this.B?this.B.append(a.dJ):g.R(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(a.dJ); break;case 2:b=lTa(this,a);if(null==b)break;b.bind(c);break;case 3:c=lTa(this,a),null!=c&&(g.ee(c),g.xe(this.u,b)?g.Be(this.u,b):g.lu(Error("Ad UI component does not exist: "+b)))}}; vZ.prototype.Y=function(){g.fe(Object.values(this.u));this.u={};EG.prototype.Y.call(this)};g.w(wZ,g.HI);g.h=wZ.prototype;g.h.create=function(){try{mTa(this),this.load(),this.created=!0,mTa(this)}catch(a){S(a instanceof Error?a:String(a))}}; g.h.load=function(){g.HI.prototype.load.call(this);var a=uY(this.j).ph;Kra(a.G.S().K("html5_reduce_ecatcher_errors"));try{this.player.getRootNode().classList.add("ad-created")}catch(l){S(l instanceof Error?l:String(l))}var b=this.B(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}); e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;var k=c&&c.dg()||!1;a=pTa(f,a,e,k,uY(this.j).Jk);f=c&&c.clientPlaybackNonce||"";c=c&&c.Tq||!1;k=1E3*this.player.getDuration(1);this.Xa=new WF(this,this.player,this.Jq,b,uY(this.j));XAa(this.Xa,a.gx);this.j.j.Qp.Ci(f,k,c,a.KC,a.KC.concat(a.gx),e,d);XF(this.Xa)}; g.h.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Qp.Rk(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1}; g.h.unload=function(){g.HI.prototype.unload.call(this);Kra(!1);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){S(b instanceof Error?b:String(b))}if(null!==this.Xa){var a=this.Xa;this.Xa=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.Jq.reset()}; g.h.hj=function(){return!1}; g.h.yJ=function(){return null===this.Xa?!1:this.Xa.yJ()}; g.h.ym=function(a){null!==this.Xa&&this.Xa.ym(a)}; g.h.getAdState=function(){return this.Xa?this.Xa.RB:-1}; g.h.getOptions=function(){return Object.values(MVa)}; g.h.Wf=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=hE(this.player),Object.assign(b,a.Oja),this.Xa&&!b.AD_CPN&&(b.AD_CPN=this.Xa.pG()),a=g.gn(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Pp(b);break;case "executeCommand":this.executeCommand(b);break;default:return null}}; g.h.Rp=function(a){var b;return!(null==(b=this.j.j.ye)||!b.get().Rp(a))}; g.h.Pp=function(a){a.isMuted&&MAa(this.Xa,uY(this.j).xi,uY(this.j).Jj,a.layoutId);this.Ot&&this.Ot.Pp()}; g.h.executeCommand=function(a){uY(this.j).Ta.executeCommand(a.command,a.layoutId)};g.GI("ad",wZ);var rTa=g.mc&&qTa();g.w(g.AZ,g.V);g.AZ.prototype.onClick=function(){this.G.Ia("onExpandMiniplayer")};})(_yt_player);