var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ 'use strict';var ba,ea,aaa,ia,ka,la,ma,pa,qa,ra,ua,va,wa,xa,ya,baa,caa,za,Aa,daa,Ba,Ca,Da,Ea,Ia,Ja,faa,gaa,Ra,Ta,Ua,haa,Va,iaa,Za,$a,ab,bb,jaa,kaa,db,kb,laa,tb,ub,maa,zb,wb,naa,xb,oaa,paa,qaa,Hb,Jb,Kb,Lb,Mb,Ob,Ub,Vb,Yb,fc,ic,lc,mc,pc,sc,tc,taa,uc,vc,wc,Fc,Gc,Ic,Nc,Tc,Uc,Yc,xaa,Vc,yaa,Baa,Caa,bd,cd,ed,dd,gd,jd,Daa,Eaa,id,Faa,nd,qd,rd,sd,td,ud,xd,yd,zd,Ad,Iaa,Jaa,Cd,Ed,Gd,Id,Fd,Jd,Kd,Ld,Md,Nd,Pd,Qd,Rd,Sd,Td,Ud,Vd,Wd,Xd,Yd,Zd,$d,je,Dd,ie,de,me,ne,oe,pe,se,te,ue,Oaa,xe,ve,ze,ye,Ae,Ce,De,Ee,Be,Fe,He,Ke, Je,Le,Ne,Oe,Qaa,Me,Re,Se,Ue,Te,Ve,We,Xe,Ye,$e,Raa,af,bf,df,ef,ff,gf,Saa,hf,Taa,jf,Uaa,lf,mf,pf,qf,rf,sf,tf,Vaa,yf,Cf,Df,Ff,Xaa,Gf,Hf,If,Jf,Lf,Nf,Yaa,Kf,Sf,Tf,Qf,$aa,Of,Mf,Xf,Yf,Zf,$f,dg,fg,ig,mg,ng,tg,ug,wg,vg,yg,Bg,Ag,zg,aba,kg,Lg,Kg,Ng,Mg,jg,Pg,cba,Qg,Rg,Sg,dba,Yg,$g,bh,ch,eh,fh,gh,ih,eba,fba,kh,nh,jh,lh,ah,hh,hba,qh,oh,ph,sh,gba,rh,wh,xh,yh,zh,iba,Ah,Bh,jba,Ch,Dh,Eh,Fh,Gh,Hh,nba,Ih,oba,Jh,Kh,Lh,Mh,Nh,Oh,Sh,Th,Uh,rba,Vh,Xh,tba,Zh,$h,ai,bi,uba,hi,gi,di,ei,fi,li,ki,vba,wba,xba,mi,ni,ri,si,ti,ui,vi, wi,xi,yi,Ai,Ci,Di,Fi,Gi,Hi,zba,Aba,Bba,Ui,Ki,Zi,Li,$i,Yi,bj,Dba,Eba,Xi,cj,Fba,dj,ej,fj,gj,hj,ij,jj,kj,pj,oj,qj,rj,Kba,Jba,sj,Lba,tj,uj,vj,wj,xj,yj,zj,Aj,Bj,Cj,Dj,Ej,Fj,Gj,Hj,Ij,Jj,Kj,Lj,Mj,Oba,Nba,Pj,Rj,Sj,Qj,Oj,Nj,Tj,Uj,Vj,Xj,Wj,ck,dk,fk,Rba,ek,ik,kk,jk,Pba,Sba,nk,pk,vk,wk,xk,yk,zk,Ak,Bk,Ck,Dk,Tba,Ek,Fk,Gk,Hk,Ik,Jk,Kk,Mk,Vba,Nk,Ok,Pk,Lk,Qk,Wba,Yba,Xba,Zba,aca,Rk,Sk,bca,cca,dca,Uk,Vk,Wk,Xk,Yk,Zk,al,eca,bl,fca,gca,dl,hca,ica,fl,gl,hl,el,kl,ll,kca,lca,mca,jl,il,oca,ml,pca,nl,ol,pl,ql,rl,sl,tl,qca,ul, vl,wl,rca,sca,xl,zl,yl,Bl,Cl,Dl,El,Fl,Hl,Gl,Il,Jl,vca,xca,yca,Aca,Ll,Ml,Nl,Pl,Ql,Rl,Tl,Ul,Zl,$l,cm,Bca,fm,em,gm,Cca,sm,vm,tm,Eca,um,wm,xm,zm,ym,Fca,Am,Hca,Gca,Ica,Em,Fm,Jca,Hm,Im,Jm,Gm,Km,Kca,Lm,Lca,Mca,Nm,Om,Qca,Pm,Qm,Rm,Sm,Rca,Um,Wm,Zm,bn,dn,an,$m,en,Sca,fn,gn,hn,jn,afa,on,pn,qn,rn,cfa,sn,tn,un,vn,wn,xn,yn,kfa,An,Bn,Cn,En,Dn,Fn,Gn,Hn,In,Jn,Kn,Ln,Mn,Nn,On,lfa,Pn,Qn,mfa,Rn,Sn,nfa,Un,ofa,Vn,Wn,pfa,qfa,Xn,Yn,$n,bo,co,eo,fo,go,Zn,ao,sfa,ho,io,ko,jo,tfa,ufa,vfa,lo,mo,no,oo,zfa,Afa,Bfa,Cfa,Dfa,po,qo,Efa, ro,Ffa,Gfa,so,to,uo,Hfa,vo,xo,yo,zo,Ao,Bo,Co,Do,Eo,Fo,Ifa,Jfa,Go,Kfa,Io,Ho,Lo,Mo,Ko,Lfa,Pfa,Ofa,Po,Qfa,Rfa,Sfa,Ufa,Tfa,Qo,$o,ap,Vfa,cp,dp,Wfa,Xfa,ep,fp,gp,hp,Yfa,ip,jp,$fa,kp,aga,lp,np,mp,op,pp,rp,dga,sp,cga,tp,ega,up,fga,gga,wp,yp,zp,Ap,Bp,xp,Cp,Dp,Ip,Jp,Gp,hga,jga,kga,Lp,Mp,Np,Op,lga,Pp,Qp,Rp,Sp,Tp,Up,Vp,Wp,Zp,Yp,nga,oga,$p,bq,Xp,aq,mga,cq,dq,qga,rga,sga,tga,hq,iq,jq,eq,kq,lq,pga,uga,vga,nq,mq,oq,qq,Aga,wga,Bga,uq,vq,wq,xq,yq,wo,Cga,zq,Dga,Ega,Fga,Gga,Hga,Bq,Cq,Dq,Eq,Gq,Iq,Mga,Lq,Mq,Qq,Rq,Xq,Nga, Zq,$q,br,Pga,dr,er,Uga,Qga,jr,Zga,kr,lr,aha,or,pr,qr,rr,bha,ur,vr,wr,xr,zr,Ar,Br,Cr,Er,Fr,Gr,Hr,Ir,dha,Kr,eha,Lr,fha,Nr,Pr,Qr,iha,jha,Rr,Sr,Tr,Ur,Vr,Wr,Xr,Yr,Zr,$r,as,bs,cs,ds,es,fs,gs,hs,is,js,ks,ls,ms,ns,os,qs,rs,vs,ts,ws,kha,zs,As,Cs,Ds,Fs,dt,et,ct,ft,gt,ht,Bs,kt,jt,pha,mt,pt,qha,ut,tt,sha,tha,uha,zt,vha,wha,vt,Bt,At,xha,Dt,Et,Ft,Lt,Mt,Nt,Pt,Qt,St,Tt,Ut,Wt,Xt,Yt,$t,bu,cu,Ot,du,fu,eu,yha,iu,ju,ku,lu,nu,ou,pu,qu,Aha,Bha,yu,zu,Au,Cha,Fu,Gu,Hu,Ju,Dha,Lu,Mu,Iu,Pu,Su,Ru,Qu,Uu,Xu,Vu,Eha,gv,fv,Gha,Hha, lv,nv,ov,Kha,Jha,iv,yv,zv,Av,Fv,Gv,Dv,Hv,Jv,Lv,Mv,Lha,Nv,Ov,Pv,Rv,Mha,Wv,Vv,Qv,Yv,Zv,Nha,fw,gw,jw,iw,kw,lw,nw,ow,pw,Rha,Sha,Tha,rw,tw,vw,ww,uw,xw,Uha,yw,zw,Aw,Bw,Cw,Ew,Fw,Vha,Wha,Gw,Kw,Lw,Dw,Mw,Yha,Hw,Zha,Ow,$ha,Iw,Nw,Pw,Jw,Xha,Rw,Sw,aia,Tw,Uw,Qw,bia,Vw,Ww,Xw,Yw,$w,ax,bx,cia,dia,eia,ex,gx,hx,gia,hia,iia,jia,kia,ix,lia,jx,mia,kx,mx,ox,px,qx,rx,sx,nia,oia,nx,pia,qia,vx,wx,xx,yx,sia,ria,zx,Bx,Ax,uia,Ix,Jx,Lx,Fx,via,Cx,Gx,Ex,Dx,Hx,Qx,Px,Tx,wia,Sx,Rx,Ux,Vx,Wx,yia,xia,Bia,zia,Zx,$x,Yx,by,ey,fy,Dia,dy,gy, hy,ky,ly,oy,py,my,ry,qy,sy,Eia,uy,vy,yy,Gia,Ay,By,Cy,Ey,Hia,Gy,Iy,Iia,Jia,Ly,Ky,Lia,uz,xz,vz,wz,bw,Qia,Ez,Iz,Jz,Ria,Fz,Sia,Qz,Vz,Via,Wia,Zz,cA,bA,eA,aA,dA,fA,Yia,Zia,lA,mA,aja,S,nA,oA,bja,pA,qA,rA,sA,ija,kja,mja,oja,pja,uA,rja,sja,AA,BA,tja,uja,CA,FA,GA,vja,IA,wja,LA,KA,MA,xja,NA,OA,HA,PA,yja,Bja,Cja,QA,RA,SA,Dja,TA,UA,WA,XA,Eja,Jja,YA,Kja,Mja,ZA,bB,aB,eB,dB,Pja,fB,gB,Oja,Qja,hB,$A,Rja,Sja,jB,kB,lB,mB,nB,oB,qB,rB,tB,Uja,uB,xB,yB,wB,Yja,bka,CB,Xja,Wja,DB,cka,dka,eka,HB,IB,fka,gka,JB,GB,ika,hka,KB, jka,LB,MB,kka,NB,OB,PB,QB,RB,SB,TB,UB,VB,WB,lka,XB,ZB,nka,oka,YB,pka,qka,$B,rka,cC,ska,dC,fC,tka,eC,gC,uka,iC,wka,kC,lC,qC,yka,nC,sC,uC,zka,wC,pC,tC,rC,Aka,xC,Bka,yC,Cka,mC,oC,xka,vC,zC,Dka,Eka,AC,Fka,Gka,Hka,BC,Ika,DC,Jka,CC,EC,Kka,FC,GC,HC,IC,JC,Lka,LC,Mka,Nka,MC,NC,OC,PC,Oka,KC,QC,Pka,Qka,RC,SC,TC,UC,Rka,Ska,WC,Tka,XC,YC,Uka,Vka,ZC,Wka,Xka,ala,bla,Yka,Zka,$ka,$C,bD,aD,cD,dD,dla,ela,eD,fD,gD,fla,hD,iD,jD,gla,hla,kD,ila,lD,jla,mD,nD,kla,lla,mla,nla,pla,ola,pD,qla,rla,sla,qD,rD,sD,tla,uD,tD,yD,zD, AD,BD,CD,ula,DD,wD,vla,ED,GD,HD,wla,ID,JD,KD,LD,MD,ND,OD,PD,xla,QD,RD,yla,SD,TD,WD,XD,YD,ZD,$D,zla,aE,bE,cE,Ala,Bla,dE,eE,$ja,BB,Fla,Gla,Hla,Ila,Jla,Kla,vB,Lla,fE,Pla,Ola,Nla,gE,Mla,Rla,hE,Vla,Sla,Tla,Xla,Yla,kE,Wla,Zla,lE,mE,nE,$la,ama,bma,oE,jE,cma,dma,ema,pE,fma,gma,hma,rE,qE,ima,jma,kma,lma,nma,aka,Zja,sE,uE,wE,xE,yE,zE,vE,BE,pma,DE,rma,EE,tma,sma,qma,uma,vma,wma,FE,Vja,GE,xma,zB,yma,IE,JE,zma,Ama,Bma,Cma,KE,Dma,LE,ME,Ema,NE,Fma,PE,Gma,QE,RE,SE,TE,Hma,Ima,Jma,Lma,UE,Mma,Kma,VE,WE,XE,YE,Nma,ZE, $E,xF,sF,Sma,Xma,yF,BF,CF,kF,cna,aF,Yma,tF,vF,FF,JF,Uma,dna,hF,MF,gF,Wma,NF,Pma,wF,bna,PF,QF,fna,gna,RF,hna,ina,jna,kna,SF,lna,qna,pna,mna,ona,nna,TF,rna,UF,sna,tna,VF,XF,YF,wna,xna,bG,cG,yna,dG,eG,zna,Ana,Cna,Fna,Gna,Hna,hG,Lna,Nna,Ona,Pna,Dna,Jna,Kna,Qna,Rna,Vna,Xna,mG,nG,Yna,$na,aoa,boa,coa,ioa,pG,joa,loa,koa,moa,tG,noa,qG,uG,vG,ooa,xG,soa,poa,roa,EG,HG,Foa,Aoa,CG,LG,Eoa,Goa,MG,Hoa,Ioa,NG,yoa,Koa,Joa,zG,DG,GG,Qoa,Moa,Roa,Noa,Ooa,Poa,Soa,OG,Toa,Uoa,QG,RG,TG,yG,KG,Boa,qoa,Doa,Coa,iH,Woa,Loa,pH,qH, rH,sH,Zoa,FG,tH,$oa,vH,uH,zoa,apa,Voa,JG,bpa,voa,BG,uoa,Zna,zH,AH,dpa,BH,CH,DH,FH,EH,GH,epa,fpa,HH,JH,gpa,hpa,jpa,ipa,KH,LH,kpa,lpa,MH,mpa,NH,OH,PH,QH,RH,SH,npa,TH,opa,UH,WH,rpa,VH,spa,ppa,tpa,qpa,upa,vpa,wpa,XH,YH,ZH,$H,aI,ypa,fI,dI,Apa,hI,zpa,iI,eI,jI,Bpa,gI,cI,bI,Dpa,mI,oI,pI,Fpa,qI,Epa,rI,sI,tI,uI,vI,wI,Gpa,xI,Hpa,yI,Jpa,AI,Kpa,Lpa,Mpa,Ppa,Npa,Opa,Qpa,BI,Rpa,Spa,Tpa,Upa,Vpa,CI,DI,EI,FI,GI,HI,II,JI,KI,LI,MI,NI,OI,PI,QI,RI,SI,TI,UI,VI,WI,XI,YI,ZI,$I,aJ,bJ,cJ,dJ,eJ,fJ,gJ,hJ,iJ,jJ,kJ,lJ,mJ,nJ,oJ, pJ,qJ,rJ,sJ,tJ,uJ,vJ,wJ,xJ,yJ,zJ,Xpa,Wpa,Zpa,$pa,Ypa,AJ,aqa,BJ,CJ,DJ,FJ,bqa,EJ,GJ,HJ,dqa,cqa,gqa,KJ,LJ,hqa,OJ,PJ,iqa,nqa,QJ,oqa,RJ,SJ,pqa,TJ,qqa,rqa,tqa,uqa,vqa,VJ,UJ,sqa,WJ,yqa,wqa,xqa,Aqa,Bqa,XJ,Cqa,zqa,YJ,ZJ,Fqa,Gqa,$J,Hqa,Iqa,aK,cK,dK,eK,fK,iK,kK,lK,Jqa,Kqa,mK,Mqa,Nqa,nK,Oqa,pK,Pqa,Qqa,qK,rK,Rqa,Sqa,sK,Uqa,Tqa,tK,Xqa,uK,Yqa,vK,wK,xK,zK,Zqa,$qa,ara,bra,cra,AK,CK,gra,jra,dra,DK,tra,sra,EK,vra,ura,xra,yra,Ara,zra,Bra,Cra,Dra,Era,FK,GK,Fra,Gra,Hra,Jra,Kra,Lra,Mra,Nra,NK,Pra,Qra,LK,MK,Ora,Rra,Sra, OK,Vra,Tra,Xra,Wra,Yra,Cpa,Zra,$ra,asa,bsa,PK,gsa,dsa,esa,fsa,hsa,QK,isa,ksa,lsa,jsa,RK,msa,oK,osa,psa,Lqa,nsa,SK,TK,qsa,rsa,ssa,UK,WK,usa,XK,$K,vsa,aL,wsa,xsa,bL,zsa,Asa,Bsa,Csa,Dsa,Esa,Fsa,gL,Gsa,hL,Hsa,Isa,Jsa,Ksa,Lsa,lL,mL,nL,Msa,oL,Nsa,qL,Psa,Osa,rL,sL,tL,uL,Qsa,vL,wL,Rsa,xL,yL,Vsa,Ssa,Usa,Tsa,Wsa,zL,AL,Xsa,Ysa,Zsa,$sa,BL,ata,cta,bta,CL,DL,EL,FL,GL,IL,JL,KL,LL,ML,dta,NL,OL,fta,eta,PL,gta,QL,RL,SL,TL,WL,XL,YL,ZL,$L,aM,bM,cM,ita,dM,jta,lta,mta,ota,fM,pta,gM,hM,iM,jM,rta,lM,tta,sta,vta,uta,mM,nM, oM,pM,qM,rM,sM,vM,wta,yta,zta,xM,Ata,aw,Cta,Bta,yM,Eta,Dta,Gta,Fta,Hta,Jta,Kta,Mta,Nta,Rta,Qta,Sta,DM,Tta,GM,EM,HM,FM,csa,Uta,Vta,Wta,Xta,MM,LM,$ta,OM,cua,dua,XM,eua,YM,ZM,fua,gua,aN,bN,hua,oua,rua,pua,sua,tua,uua,vua,xua,mN,Bua,pN,Dua,Aua,Eua,Fua,oN,Cua,qN,rN,sN,QM,tN,JM,vN,Iua,Gua,Hua,wN,zN,Kua,yN,BN,Lua,Mua,EN,FN,GN,KN,Oua,Pua,LN,MN,Qua,Rua,Sua,Tua,NN,Uua,Vua,ON,Wua,Xua,QN,RN,Yua,UN,$ua,WN,SN,ava,bva,Zua,XN,YN,aO,cva,$N,cO,bO,eO,gO,dva,jO,eva,hva,fva,nO,oO,iva,rO,sO,tO,uO,wO,kva,jva,lva,yO,nva, mva,ova,pva,qva,rva,EO,FO,sva,GO,HO,tva,uva,IO,LO,wva,vva,MO,NO,OO,xva,PO,QO,RO,SO,yva,TO,UO,zva,VO,Ava,Cva,Bva,$O,YO,ZO,Dva,Eva,Fva,aP,bP,cP,dP,eP,Gva,hP,Hva,jP,kP,lP,nP,oP,pP,qP,Iva,Lva,rP,Jva,Kva,Pva,Qva,tP,Sva,Rva,Tva,Uva,Vva,vP,xP,Wva,Yva,Xva,yP,zP,AP,BP,Zva,$va,awa,bwa,EP,dwa,cwa,fwa,GP,gwa,LP,iwa,jwa,IP,FP,HP,NP,nwa,OP,KP,ewa,mwa,MP,hwa,kwa,owa,pwa,lwa,JP,QP,RP,SP,TP,rwa,WP,XP,YP,ZP,$P,aQ,swa,bQ,dQ,cQ,eQ,fQ,twa,gQ,uwa,wwa,vwa,hQ,iQ,xwa,jQ,kQ,ywa,lQ,zwa,mQ,Awa,nQ,Bwa,qQ,tQ,sQ,Cwa,rQ,wQ,Dwa, Ewa,xQ,yQ,zQ,AQ,CQ,Fwa,hO,Jwa,CO,Gwa,vQ,Iwa,DO,Hwa,Kwa,Mwa,Lwa,Nwa,Owa,GQ,Pwa,HQ,Qwa,JQ,KQ,LQ,MQ,NQ,OQ,PQ,Swa,QQ,RQ,SQ,TQ,VQ,Twa,Uwa,WQ,XQ,YQ,ZQ,eR,Ywa,Zwa,fR,gR,hR,iR,bxa,dxa,cxa,jR,fxa,gxa,hxa,ixa,jxa,kxa,kR,lR,mR,lxa,nR,nxa,oxa,pxa,qxa,rxa,pR,qR,sR,tR,uR,uxa,rR,vxa,vR,sxa,txa,wxa,wR,xR,yR,zR,yxa,zxa,AR,BR,xxa,DR,Bxa,Exa,Dxa,Fxa,Gxa,Hxa,ER,Jxa,Kxa,Lxa,Mxa,FR,Ixa,GR,HR,IR,JR,KR,Nxa,OR,Oxa,Pxa,Qxa,PR,Rxa,QR,RR,SR,UR,Wxa,Txa,Uxa,TR,Sxa,VR,WR,Xxa,YR,ZR,$xa,aya,Yxa,Zxa,$R,aS,dya,eya,cya,gya,bS,jya,kya, lya,hya,mya,iya,oya,pya,cS,dS,qya,rya,sya,tya,uya,fS,gS,vya,wya,xya,hS,Bya,Aya,iS,Cya,jS,yya,Eya,Dya,zya,Gya,Hya,Iya,Jya,Kya,Lya,Mya,Oya,Nya,Pya,Qya,Rya,Sya,Tya,kS,Wya,Uya,Xya,lS,Yya,$ya,aza,Zya,mS,bza,nS,eza,fza,dza,cza,pS,Vya,kza,lza,mza,nza,rS,oza,oS,gza,iza,jza,sza,pza,rza,tza,uza,qza,vza,wza,xza,tS,yza,zza,Bza,Cza,Dza,Eza,Fza,xS,Gza,Hza,Iza,yS,zS,AS,BS,Nza,Qza,Oza,Kza,DS,Jza,Pza,HS,Sza,Rza,IS,Uza,Wza,Xza,Vza,LS,Yza,bAa,cAa,QS,RS,SS,dAa,MS,TS,VS,eAa,OS,XS,fAa,sT,gAa,CT,WS,iAa,jAa,kAa,lAa,mAa, $za,DT,FT,rAa,GT,sAa,tAa,pAa,IT,uAa,JT,nAa,LT,qAa,vAa,KT,HT,wAa,MT,xAa,zAa,PT,NT,QT,OT,RT,ST,AAa,TT,UT,VT,WT,BAa,XT,CAa,$T,EAa,FAa,GAa,cU,bU,aU,HAa,IAa,JAa,KAa,fU,gU,hU,LAa,MAa,NAa,iU,OAa,kU,PAa,jU,lU,mU,QAa,SAa,WAa,TAa,UAa,VAa,XAa,rU,sU,YAa,$Aa,aBa,bBa,tU,uU,gBa,hBa,iBa,zU,AU,jBa,BU,fBa,kBa,vU,cBa,lBa,wU,xU,dBa,eBa,yU,mBa,nBa,oBa,Ina,Mna,DU,EU,qBa,pBa,FU,GU,HU,rBa,sBa,tBa,IU,uBa,JU,vBa,KU,LU,wBa,MU,yBa,NU,DBa,PU,pU,xBa,FBa,RU,BBa,CBa,ABa,QU,OU,zBa,EBa,JBa,HBa,GBa,TU,KBa,UU,LBa,VU,WU,MBa,NBa,OBa, PBa,QBa,XU,YU,ZU,$U,aV,bV,TBa,UBa,oU,qU,XBa,eV,fV,ZAa,iV,dV,YBa,cV,VBa,WBa,jV,kV,ZBa,hV,nU,gV,$Ba,aCa,bCa,lV,dCa,cCa,mV,nV,iCa,hCa,pV,oV,kCa,rV,qV,lCa,fCa,tV,jCa,gCa,sV,uV,mCa,nCa,vV,yV,pCa,wV,tCa,xV,uCa,zV,rCa,qCa,vCa,AV,wCa,xCa,ACa,zCa,yCa,BV,BCa,ECa,FCa,GV,HV,GCa,JV,KV,MV,JCa,NV,KCa,EV,RV,MCa,NCa,PCa,IBa,QV,OCa,LV,HCa,QCa,RCa,SCa,CCa,FV,DV,IV,TCa,UCa,UV,VV,VCa,WCa,XCa,ZCa,YCa,WV,$Ca,bDa,aDa,dDa,YV,hDa,eDa,gDa,iDa,ZV,mDa,kDa,lDa,oDa,pDa,qDa,$V,XV,rDa,jDa,sDa,aW,tDa,fDa,uDa,bW,cW,vDa,xDa,yDa,dW, wDa,eW,fW,zDa,gW,hW,iW,jW,BDa,EDa,DDa,CDa,lW,kW,FDa,nW,pW,GDa,JDa,HDa,IDa,KDa,MDa,LDa,NDa,ODa,qW,QDa,UDa,RDa,VDa,WDa,PDa,XDa,ZDa,aEa,bEa,YDa,cEa,SDa,TDa,dEa,eEa,$Da,rW,fEa,gEa,hEa,iEa,kEa,sW,tW,mEa,wW,xW,pEa,yW,qEa,rEa,zW,nEa,sEa,tEa,uEa,CW,vEa,xEa,wEa,yEa,DW,EW,zEa,FW,BEa,GW,HW,DEa,JW,IW,EEa,LW,CEa,MW,FEa,KW,GEa,NW,HEa,oEa,BW,JEa,KEa,LEa,MEa,NEa,OEa,PEa,QEa,SEa,TEa,UEa,REa,VEa,WEa,PW,XEa,YEa,QW,RW,ZEa,$Ea,aFa,TW,cFa,VW,dFa,eFa,UW,SW,bFa,YW,XW,fFa,ZW,WW,gFa,aX,kFa,dX,lFa,iFa,bX,mFa,eX,jFa,nFa,fX, pFa,$W,qFa,rFa,oFa,sFa,cX,tFa,uFa,hFa,gX,hX,iX,jX,vFa,kX,DCa,SBa,wFa,RBa,xFa,lX,yFa,zFa,AFa,CFa,DFa,EFa,FFa,GFa,HFa,mX,JFa,nX,KFa,LFa,MFa,pX,qX,rX,sX,tX,uX,vX,NFa,wX,OFa,SFa,UFa,WFa,ZFa,YFa,XFa,xX,IFa,oX,dGa,bGa,eGa,cGa,$Fa,fGa,aGa,hGa,yX,jGa,kGa,lGa,kI,DX,mGa,qS,pGa,Zza,qGa,EX,oW,rGa,LX,GX,KS,oGa,NX,PV,SV,OX,hza,JX,KX,OV,vGa,uGa,sGa,HX,PX,xGa,ES,yGa,mW,Tza,RX,US,nGa,FX,zGa,BGa,AGa,CGa,SX,Mza,DGa,EGa,tGa,zX,FGa,TX,IX,AX,GGa,UX,GS,HGa,VX,PS,IGa,JGa,KGa,Lza,QX,wGa,LCa,RGa,NGa,UGa,MGa,VGa,WGa,aY,dY, $Ga,XGa,ZGa,fY,YGa,gY,hY,bHa,WX,YX,QGa,nY,cHa,mY,$X,dHa,eHa,TGa,qY,fHa,gHa,XX,jY,kY,iY,tY,lHa,eY,pY,uY,vY,mHa,lY,aHa,sY,hHa,wY,nHa,oHa,pHa,IM,qHa,oY,xY,sHa,bY,yY,cY,tHa,uHa,PGa,rY,vHa,OGa,zY,AY,DAa,wHa,BY,CY,DY,xHa,EY,FY,GY,HY,IY,JY,zHa,yHa,KY,AHa,LY,kA,X,MY,CHa,OY,EHa,NY,FHa,QY,GHa,RY,PY,SY,TY,kqa,lqa,Ipa,VY,IHa,dZ,mqa,eZ,MJ,bZ,fZ,MHa,NHa,OHa,PHa,HHa,QHa,UY,RHa,SHa,iZ,ZY,hZ,nZ,jZ,XY,THa,WY,JHa,gZ,kZ,pZ,$Y,aZ,mZ,lZ,VHa,qZ,rZ,WHa,sZ,Y,XHa,YHa,aIa,bIa,fIa,tZ,gIa,cIa,hIa,uZ,vZ,wZ,jIa,mIa,kIa,pIa,xIa, wIa,qIa,yIa,sIa,tIa,rIa,BIa,DIa,GIa,HIa,JIa,KIa,OIa,JZ,LIa,RIa,PIa,TIa,MZ,jA,UIa,PZ,gA,RZ,SZ,Xia,TZ,WIa,XIa,UZ,KZ,yZ,VZ,LZ,HZ,zZ,CZ,WZ,XZ,DZ,YIa,oIa,AZ,BZ,GZ,ZIa,$Ia,YZ,ZZ,aJa,NZ,FZ,EZ,xZ,EIa,IIa,IZ,MIa,zIa,uIa,$Z,a_,b_,bJa,c_,d_,e_,f_,g_,h_,i_,j_,ZHa,k_,$Ha,dJa,cJa,iIa,FIa,eJa,SIa,fJa,CIa,nIa,lIa,eIa,dIa,vIa,NIa,QIa,AIa,hJa,l_,gJa,m_,NJ,YY,KHa,QZ,n_,o_,p_,iJa,q_,r_,s_,oZ,cZ,jJa,OZ,t_,u_,w_,x_,y_,z_,lJa,mJa,B_,C_,D_,kJa,A_,nJa,oJa,E_,iA,sJa,rJa,F_,G_,v_,tJa,uJa,H_,I_,vJa,J_,K_,wJa,xJa,yJa,zJa,L_, AJa,M_,N_,O_,P_,Q_,R_,BJa,S_,T_,U_,V_,W_,X_,CJa,DJa,EJa,Y_,Z_,$_,a0,FJa,b0,GJa,c0,HJa,d0,IJa,e0,f0,g0,h0,i0,j0,JJa,l0,m0,KJa,LJa,MJa,o0,n0,p0,r0,NJa,OJa,qJa,q0,s0,PJa,t0,RJa,QJa,u0,v0,VIa,SJa,w0,x0,UJa,VJa,TJa,WJa,y0,XJa,YJa,ZJa,z0,A0,B0,$Ja,C0,D0,E0,aKa,F0,G0,bKa,H0,k0,I0,J0,jqa,K0,cKa,L0,dKa,M0,N0,eKa,fKa,O0,P0,Q0,gKa,R0,hKa,S0,T0,jKa,iKa,kKa,lKa,V0,U0,W0,mKa,nKa,oKa,pKa,qKa,rKa,X0,Y0,Z0,$0,a1,b1,sKa,c1,d1,tKa,e1,uKa,vKa,f1,wKa,xKa,g1,h1,j1,yKa,k1,l1,m1,zKa,n1,AKa,o1,p1,BKa,q1,CKa,r1,DKa,EKa,FKa, GKa,HKa,t1,IKa,JKa,KKa,LKa,MKa,u1,NKa,v1,w1,x1,y1,OKa,z1,PKa,QKa,RKa,C1,SKa,TKa,UKa,VKa,D1,B1,WKa,F1,XKa,G1,H1,I1,J1,K1,YKa,$Ka,ZKa,aLa,L1,bLa,cLa,M1,dLa,N1,O1,P1,eLa,fLa,Q1,gLa,R1,hLa,S1,iLa,jLa,kLa,hA,lLa,mLa,aa,ha,fa,Vi,Ma,eaa;ba=function(a){return function(){return aa[a].apply(this,arguments)}}; g.ca=function(a,b){return aa[a]=b}; ea=function(a){var b=0;return function(){return b>=8);b[c++]=e}return b}; iaa=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1e?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}; g.Ya=function(a){for(var b=[],c=0,d=0;ce)b[d++]=String.fromCharCode(e);else if(191e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(239e){f=a[c++];var h=a[c++],l=a[c++];e=((e&7)<<18|(f&63)<<12|(h&63)<<6|l&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else f=a[c++],h=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|h&63)}return b.join("")}; Za=function(a){return function(){return a}}; $a=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}; ab=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}; bb=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}}; jaa=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)}}; g.cb=function(a){return a[a.length-1]}; kaa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)}; g.eb=function(a,b,c){b=db(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]}; db=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)}; maa=function(a){for(var b=0,c=0,d={};c>>1),n=void 0;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0b?1:ac&&g.vb(a,-(c+1),0,b)}; g.Eb=function(a,b,c){var d={};(0,g.Db)(a,function(e,f){d[b.call(c,e,f,a)]=e}); return d}; paa=function(a){for(var b=[],c=0;c")&&(a=a.replace(Bc,">"));-1!=a.indexOf('"')&&(a=a.replace(Cc,"""));-1!=a.indexOf("'")&&(a=a.replace(Dc,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(Ec,"�"))}return a}; Gc=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())}; g.Jc=function(a,b){var c=0;a=Hc(String(a)).split(".");b=Hc(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&eb?1:0}; g.Lc=function(a,b){this.i=b===Kc?a:""}; g.Mc=function(a){return a instanceof g.Lc&&a.constructor===g.Lc?a.i:"type_error:SafeUrl"}; Nc=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(vaa);return b&&waa.test(b[1])?new g.Lc(a,Kc):null}; g.Qc=function(a){a instanceof g.Lc||(a="object"==typeof a&&a.Ek?a.Ih():String(a),a=Oc.test(a)?new g.Lc(a,Kc):Nc(a));return a||Pc}; g.Rc=function(a,b){if(a instanceof g.Lc)return a;a="object"==typeof a&&a.Ek?a.Ih():String(a);if(b&&/^data:/i.test(a)&&(b=Nc(a)||Pc,b.Ih()==a))return b;Oc.test(a)||(a="about:invalid#zClosurez");return new g.Lc(a,Kc)}; Tc=function(a,b){this.i=b===Sc?a:"";this.Ek=!0}; Uc=function(a){return a instanceof Tc&&a.constructor===Tc?a.i:"type_error:SafeStyle"}; Yc=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(Vc).join(" "):Vc(d),b+=c+":"+d+";")}return b?new Tc(b,Sc):Wc}; xaa=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=Uc(d)} var c="";Array.prototype.forEach.call(arguments,b);return c?new Tc(c,Sc):Wc}; Vc=function(a){if(a instanceof g.Lc)return'url("'+g.Mc(a).replace(/>>0;return b}; yd=function(a){var b=Number(a);return 0==b&&g.xc(a)?NaN:b}; zd=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}; Ad=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; Iaa=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})}; Jaa=function(a){var b=1;a=a.split(":");for(var c=[];0e&&128<=b;e++)b=a.u[a.i++],c|=(b&127)<<7*e;128<=b&&(b=a.u[a.i++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.u[a.i++],d|=(b&127)<<7*e+3;if(128>b){a=c>>>0;b=d>>>0;if(d=b&2147483648)a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0);a=4294967296*b+(a>>>0);return d?-a:a}a.D=!0}; Kd=function(a){var b=a.u,c=b[a.i+0],d=c&127;if(128>c)return a.i+=1,d;c=b[a.i+1];d|=(c&127)<<7;if(128>c)return a.i+=2,d;c=b[a.i+2];d|=(c&127)<<14;if(128>c)return a.i+=3,d;c=b[a.i+3];d|=(c&127)<<21;if(128>c)return a.i+=4,d;c=b[a.i+4];d|=(c&15)<<28;if(128>c)return a.i+=5,d>>>0;a.i+=5;128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&a.i++;return d}; Ld=function(a){var b={},c=void 0===b.FC?!1:b.FC;this.K={Al:void 0===b.Al?!1:b.Al};this.FC=c;this.i=Id(a,void 0,void 0,this.K);this.J=this.i.i;this.u=this.D=this.C=-1;this.B=!1}; Md=function(a){var b=a.i;(b=b.i==b.B)||(b=a.B)||(b=a.i,b=b.D||0>b.i||b.i>b.B);if(b)return!1;a.J=a.i.i;b=Kd(a.i);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.B=!0,!1;a.D=b;a.C=b>>>3;a.u=c;return!0}; Nd=function(a){switch(a.u){case 0:if(0!=a.u)Nd(a);else{for(a=a.i;a.u[a.i]&128;)a.i++;a.i++}break;case 1:1!=a.u?Nd(a):a.i.advance(8);break;case 2:if(2!=a.u)Nd(a);else{var b=Kd(a.i);a.i.advance(b)}break;case 5:5!=a.u?Nd(a):a.i.advance(4);break;case 3:b=a.C;do{if(!Md(a)){a.B=!0;break}if(4==a.u){a.C!=b&&(a.B=!0);break}Nd(a)}while(1);break;default:a.B=!0}}; Pd=function(a){var b=Kd(a.i);a=a.i;var c=a.i;a.i+=b;a=a.u;var d;if(Laa)(d=Od)||(d=Od=new TextDecoder("utf-8",{fatal:!1})),d=d.decode(a.subarray(c,c+b));else{b=c+b;for(var e=[],f=null,h,l,m;ch?e.push(h):224>h?c>=b?e.push(65533):(l=a[c++],194>h||128!==(l&192)?(c--,e.push(65533)):e.push((h&31)<<6|l&63)):240>h?c>=b-1?e.push(65533):(l=a[c++],128!==(l&192)||224===h&&160>l||237===h&&160<=l||128!==((d=a[c++])&192)?(c--,e.push(65533)):e.push((h&15)<<12|(l&63)<<6|d&63)):244>=h?c>=b-2?e.push(65533): (l=a[c++],128!==(l&192)||0!==(h<<28)+(l-144)>>30||128!==((d=a[c++])&192)||128!==((m=a[c++])&192)?(c--,e.push(65533)):(h=(h&7)<<18|(l&63)<<12|(d&63)<<6|m&63,h-=65536,e.push((h>>10&1023)+55296,(h&1023)+56320))):e.push(65533),8192<=e.length&&(f=Va(f,e),e.length=0);d=Va(f,e)}return d}; Qd=function(a){var b=Kd(a.i);a=a.i;if(0>b||a.i+b>a.u.length)a.D=!0,b=new Uint8Array(0);else{var c=a.Al?a.u.subarray(a.i,a.i+b):Cd(a.u,a.i,a.i+b);a.i+=b;b=c}return b}; Rd=function(){this.i=new Uint8Array(64);this.u=0}; Sd=function(a,b){for(;127>>=7;a.push(b)}; Td=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)}; Ud=function(){return bd("iPhone")&&!bd("iPod")&&!bd("iPad")}; Vd=function(){return Ud()||bd("iPad")||bd("iPod")}; Wd=function(){var a=g.ad,b="";bd("Windows")?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):Vd()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):bd("Macintosh")?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):Gc(g.ad,"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):bd("Android")?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):bd("CrOS")&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&a[1]);return b|| ""}; Xd=function(a){Xd[" "](a);return a}; Yd=function(a,b){try{return Xd(a[b]),!0}catch(c){}return!1}; Zd=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)}; $d=function(){var a=g.C.document;return a?a.documentMode:void 0}; g.be=function(a){return Zd(Maa,a,function(){return 0<=g.Jc(ae,a)})}; g.ce=function(a){return Number(Naa)>=a}; g.fe=function(a,b){void 0===b&&(b=0);de();b=ee[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+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("")}; je=function(a){var b=[];ie(a,function(c){b.push(c)}); return b}; Dd=function(a){!g.ke||g.be("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):-1!="=.".indexOf(a[b-1])&&(c=-1!="=.".indexOf(a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;ie(a,function(f){d[e++]=f}); return d.subarray(0,e)}; ie=function(a,b){function c(m){for(;d>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}}; de=function(){if(!le){le={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));ee[c]=d;for(var e=0;ed;d=Math.abs(d);b=d>>>0;d=Math.floor((d-b)/4294967296);d>>>=0;c&&(d=~d>>>0,b=(~b>>>0)+1,4294967295>>7|b<<25)>>>0,b>>>=7;a.push(c)}}; te=function(a,b,c){null!=c&&(c=Ed(c),Sd(a.i,8*b+2),Sd(a.i,c.length),oe(a),ne(a,c))}; ue=function(a,b,c,d){if(null!=c){Sd(a.i,8*b+2);oe(a);var e=a.u;b=a.B.length-1;d(c,a);oe(a);Sd(a.i,a.u+a.i.length()-e);c=a.i.end();a.u+=c.length;a.B.splice(1+b,0,c)}}; Oaa=function(a){return ve(a,function(b){return b},function(b){return new Uint8Array(b)})}; xe=function(a,b,c){return"object"===typeof a?we&&!Array.isArray(a)&&a instanceof Uint8Array?c(a):ve(a,b,c):b(a)}; ve=function(a,b,c){if(Array.isArray(a)){for(var d=Array(a.length),e=0;e=a.D?a.B?a.B[b]:void 0:a.u[b+a.C]}; Ne=function(a,b){var c=void 0===c?!1:c;var d=Le(a,b,c);null==d&&(d=Ie);d===Ie&&(d=ye([]),Me(a,b,d,c));return d}; Oe=function(a,b,c){a=Le(a,b);return null==a?c:a}; Qaa=function(a,b,c){a.i||(a.i={});if(b in a.i)return a.i[b];var d=Le(a,b);d||(d=ye([]),Me(a,b,d));c=new Ce(d,c);return a.i[b]=c}; Me=function(a,b,c,d){(void 0===d?0:d)||b>=a.D?(Je(a),a.B[b]=c):a.u[b+a.C]=c;return a}; Re=function(a,b,c){var d=void 0===d?!1:d;return Me(a,b,ye(c||[]),d)}; Se=function(a,b,c,d){c!==d?Me(a,b,c):Me(a,b,void 0);return a}; Ue=function(a,b,c,d){(c=Te(a,c))&&c!==b&&null!=d&&(a.i&&c in a.i&&(a.i[c]=void 0),Me(a,c,void 0));return Me(a,b,d)}; Te=function(a,b){for(var c=0,d=0;da.u&&(a.u++,b.next=a.i,a.i=b)}; $f=function(a,b){return a+Math.random()*(b-a)}; g.ag=function(a,b,c){return Math.min(Math.max(a,b),c)}; g.bg=function(a,b){a%=b;return 0>a*b?a+b:a}; g.cg=function(a,b,c){return a+c*(b-a)}; dg=function(a,b){return 1E-6>=Math.abs(a-b)}; g.eg=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}; fg=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; g.gg=function(a,b){this.width=a;this.height=b}; g.hg=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}; ig=function(a){return a.width*a.height}; mg=function(a){return a?new jg(kg(a)):lg||(lg=new jg)}; ng=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a}; g.og=function(a,b){return(b||document).getElementsByTagName(String(a))}; g.qg=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.pg(document,"*",a,b)}; g.rg=function(a,b){var c=b||document;if(c.getElementsByClassName)a=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;a=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.pg(c,"*",a,b)[0]||null}return a||null}; g.pg=function(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,"function"==typeof b.split&&g.ib(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a}; tg=function(a,b){g.Fb(b,function(c,d){c&&"object"==typeof c&&c.Ek&&(c=c.Ih());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:sg.hasOwnProperty(d)?a.setAttribute(sg[d],c):vc(d,"aria-")||vc(d,"data-")?a.setAttribute(d,c):a[d]=c})}; ug=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.gg(a.clientWidth,a.clientHeight)}; wg=function(a){var b=vg(a);a=a.parentWindow||a.defaultView;return g.ke&&g.be("10")&&a.pageYOffset!=b.scrollTop?new g.eg(b.scrollLeft,b.scrollTop):new g.eg(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}; vg=function(a){return a.scrollingElement?a.scrollingElement:g.xg||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement}; yg=function(a){return a?a.parentWindow||a.defaultView:window}; Bg=function(a,b,c){var d=arguments,e=document,f=d[1],h=zg(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):tg(h,f));2a}; Ng=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Mg(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.ib(f.className.split(/\s+/),c))},!0,d)}; Mg=function(a,b,c,d){a&&!c&&(a=a.parentNode);for(c=0;a&&(null==d||c<=d);){if(b(a))return a;a=a.parentNode;c++}return null}; jg=function(a){this.i=a||g.C.document||document}; Pg=function(a){"function"!==typeof g.C.setImmediate||g.C.Window&&g.C.Window.prototype&&!bd("Edge")&&g.C.Window.prototype.setImmediate==g.C.setImmediate?(Og||(Og=cba()),Og(a)):g.C.setImmediate(a)}; cba=function(){var a=g.C.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!bd("Presto")&&(a=function(){var e=g.Cg("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.D)(function(m){if(("*"==l||m.origin==l)&&m.data==h)this.port1.onmessage()},this); f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}}); if("undefined"!==typeof a&&!bd("Trident")&&!bd("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.pI;c.pI=null;e()}}; return function(e){d.next={pI:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.C.setTimeout(e,0)}}; Qg=function(a){g.C.setTimeout(function(){throw a;},0)}; Rg=function(){this.u=this.i=null}; Sg=function(){this.next=this.scope=this.i=null}; g.Xg=function(a,b){Ug||dba();Vg||(Ug(),Vg=!0);Wg.add(a,b)}; dba=function(){if(g.C.Promise&&g.C.Promise.resolve){var a=g.C.Promise.resolve(void 0);Ug=function(){a.then(Yg)}}else Ug=function(){Pg(Yg)}}; Yg=function(){for(var a;a=Wg.remove();){try{a.i.call(a.scope)}catch(b){Qg(b)}Zf(Zg,a)}Vg=!1}; $g=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}}; bh=function(a){this.i=0;this.K=void 0;this.C=this.u=this.B=null;this.D=this.J=!1;if(a!=g.Ha)try{var b=this;a.call(void 0,function(c){ah(b,2,c)},function(c){ah(b,3,c)})}catch(c){ah(this,3,c)}}; ch=function(){this.next=this.context=this.onRejected=this.u=this.i=null;this.B=!1}; eh=function(a,b,c){var d=dh.get();d.u=a;d.onRejected=b;d.context=c;return d}; fh=function(a){if(a instanceof bh)return a;var b=new bh(g.Ha);ah(b,2,a);return b}; gh=function(a){return new bh(function(b,c){c(a)})}; ih=function(a,b,c){hh(a,b,c,null)||g.Xg(g.Oa(b,a))}; eba=function(a){return new bh(function(b,c){a.length||b(void 0);for(var d=0,e;d=a.C&&a.KM()}; zh=function(a,b){return a.J.has(b)?void 0:a.i.get(b)}; iba=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],A=e[3],E=e[4];for(u=0;80>u;u++){if(40>u)if(20>u){var G=A^x&(y^A);var F=1518500249}else G=x^y^A,F=1859775393;else 60>u?(G=x&y|A&(x|y),F=2400959708):(G=x^y^A,F=3395469782);G=((q<<5|q>>>27)&4294967295)+G+E+F+t[u]&4294967295;E=A;A=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]+A&4294967295;e[4]=e[4]+E&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=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,GQ: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.substr(0,c),d,a.substr(b)]}; vi=function(a,b){return b?a?a+"&"+b:b:a}; wi=function(a,b){if(!b)return a;a=ui(a);a[1]=vi(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; xi=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 ud(a.substr(d,e-d))}; Gi=function(a,b){for(var c=a.search(Ei),d=0,e,f=[];0<=(e=Di(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(yba,"$1")}; Hi=function(a,b,c){return Ci(Gi(a,b),b,c)}; zba=function(a,b){a=ui(a);var c=a[1],d=[];c&&c.split("&").forEach(function(e){var f=e.indexOf("=");b.hasOwnProperty(0<=f?e.substr(0,f):e)||d.push(e)}); a[1]=vi(d.join("&"),g.zi(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; g.Ii=function(a){g.Wf.call(this);this.headers=new g.ji;this.Ba=a||null;this.D=!1;this.Aa=this.i=null;this.Ta=this.V="";this.u=0;this.C="";this.J=this.Ma=this.ea=this.Ha=!1;this.K=0;this.ma=null;this.Qa="";this.xa=this.N=!1}; Aba=function(a,b,c,d,e,f,h){var l=new g.Ii;Ji.push(l);b&&l.Sa("complete",b);l.cz("ready",l.tQ);f&&(l.K=Math.max(0,f));h&&(l.N=h);l.send(a,c,d,e)}; Bba=function(a){return g.ke&&g.be(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout}; Ui=function(a,b){a.D=!1;a.i&&(a.J=!0,a.i.abort(),a.J=!1);a.C=b;a.u=5;Ki(a);Li(a)}; Ki=function(a){a.Ha||(a.Ha=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}; Zi=function(a){if(a.D&&"undefined"!=typeof Vi)if(a.Aa[1]&&4==g.Wi(a)&&2==a.getStatus())Xi(a,"Local request error detected and ignored");else if(a.ea&&4==g.Wi(a))g.vh(a.EL,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){Xi(a,"Request complete");a.D=!1;try{if(Yi(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2a.vb()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.xa}; rj=function(a,b){a.J=new g.nf(1>b?1:b,3E5,.1);a.i.setInterval(a.J.getValue())}; Kba=function(a){Jba(a,function(b,c){b=Ci(b,"format","json");b=yg().navigator.sendBeacon(b,$e(c));a.Ba&&!b&&(a.Ba=!1);return b})}; Jba=function(a,b){if(0!==a.u.length){var c=Gi(qj(a),"format");c=Ai(c,"auth",a.Ta(),"authuser",a.V||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=hj(gj(a.D.clone()),e);0===d&&ij(f,a.K);if(!b(c,f))break;a.u=a.u.slice(e.length)}a.i.enabled&&a.i.stop();a.K=0}}; sj=function(){g.xf.call(this,"event-logged",void 0)}; Lba=function(a,b,c){Aba(a.url,function(d){d=d.target;Yi(d)?b(g.aj(d)):c(d.getStatus())},a.requestType,a.body,a.nq,a.timeoutMillis,a.withCredentials)}; tj=function(){this.B="https://play.google.com/log?format=json&hasfast=true";this.C=!1;this.J=Lba;this.i=""}; uj=function(){var a="",b=!1,c="1";a=void 0===a?"":a;c=void 0===c?"":c;var d=new tj;d.i="";""!=a&&(d.B=a);if(void 0===b?0:b)d.C=!0;c&&(d.u=c);this.i=d.Ve()}; vj=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}; wj=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}}; xj=function(){}; yj=function(a){this.pm=a;this.C=new uj;this.i=new xh(this.C);this.clientError=new jba(this.i);this.u=new Bh(this.i);this.B=new Ah(this.i)}; zj=function(a){Ke.call(this,a)}; Aj=function(a){Ke.call(this,a)}; Bj=function(a){Ke.call(this,a)}; Cj=function(a){Ke.call(this,a)}; Dj=function(a){Ke.call(this,a)}; Ej=function(a,b,c){this.i=a;this.B=b;this.u=c}; Fj=function(a,b,c){c=void 0===c?{}:c;this.kW=a;this.i=c;this.u=b}; Gj=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.i=d;this.u=e}; Hj=function(a,b,c){c=void 0===c?{}:c;return new Ej(b,a,c)}; Ij=function(a){Ke.call(this,a)}; Jj=function(a){Ke.call(this,a)}; Kj=function(a){Ke.call(this,a)}; Lj=function(a){Ke.call(this,a,-1,Mba)}; Mj=function(a,b){this.K=a.xS;this.N=b;this.i=a.xhr;this.B=[];this.D=[];this.J=[];this.C=[];this.u=[];this.K&&Nba(this)}; Oba=function(a,b){Lf(a.i,"complete",function(){if(Yi(a.i)){var c=g.aj(a.i);if(b&&"text/plain"===a.i.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.N(c)}catch(f){Nj(a,new vj(13,"Error when deserializing response data: "+c));return}c=wj(a.i.getStatus());Oj(a,Pj(a));0==c?Qj(a,d):Nj(a,new vj(c,"Xhr succeeded but the status code is not 200"))}else{d=g.aj(a.i);var e={};d?(e=Rj(a,d),d=e.code,c=e.details,e=e.metadata):(d=2,c="Rpc failed due to xhr error. error code: "+ a.i.u+", error: "+a.i.getLastError());Oj(a,Pj(a));Nj(a,new vj(d,c,e))}})}; Nba=function(a){a.K.dm("data",function(b){if("1"in b){var c=b["1"];try{var d=a.N(c);Qj(a,d)}catch(e){Nj(a,new vj(13,"Error when deserializing response data: "+c))}}if("2"in b)for(b=Rj(a,b["2"]),c=0;cb)throw Error("Bad port number "+b);a.B=b}else a.B=null}; ck=function(a,b,c){b instanceof ek?(a.u=b,Pba(a.u,a.J)):(c||(b=fk(b,Qba)),a.u=new ek(b,a.J))}; g.gk=function(a,b,c){a.u.set(b,c)}; g.hk=function(a){return a instanceof g.Yj?a.clone():new g.Yj(a,void 0)}; dk=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}; fk=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Rba),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}; Rba=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}; ek=function(a,b){this.u=this.i=null;this.B=a||null;this.C=!!b}; ik=function(a){a.i||(a.i=new g.ji,a.u=0,a.B&&ti(a.B,function(b,c){a.add(ud(b),c)}))}; kk=function(a,b){ik(a);b=jk(a,b);return a.i.has(b)}; g.lk=function(a,b,c){a.remove(b);0a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}; g.dm=function(a){var b=kg(a),c=new g.eg(0,0);var d=b?kg(b):document;d=!g.ke||g.ce(9)||"CSS1Compat"==mg(d).i.compatMode?d.documentElement:d.body;if(a==d)return c;a=cm(a);b=wg(mg(b).i);c.x=a.left+b.x;c.y=a.top+b.y;return c}; fm=function(a,b){var c=new g.eg(0,0),d=yg(kg(a));if(!Yd(d,"parent"))return c;do{var e=d==b?g.dm(a):em(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.hm=function(a,b){a=gm(a);b=gm(b);return new g.eg(a.x-b.x,a.y-b.y)}; em=function(a){a=cm(a);return new g.eg(a.left,a.top)}; gm=function(a){if(1==a.nodeType)return em(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.eg(a.clientX,a.clientY)}; g.im=function(a,b,c){if(b instanceof g.gg)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.am(b,!0);a.style.height=g.am(c,!0)}; g.am=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}; g.jm=function(a){var b=Cca;if("none"!=$l(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}; Cca=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.xg&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=cm(a),new g.gg(a.right-a.left,a.bottom-a.top)):new g.gg(b,c)}; g.km=function(a,b){a.style.display=b?"":"none"}; sm=function(){if(lm&&!Il(mm)){var a="."+rm.domain;try{for(;2e?encodeURIComponent(zm(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))}; Fca=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}; Am=function(a,b){this.i=a;this.depth=b}; Hca=function(){function a(l,m){return null==l?m:l} var b=tm(),c=Math.max(b.length-1,0),d=vm(b);b=d.i;var e=d.u,f=d.B,h=[];f&&h.push(new Am([f.url,f.ED?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Am([e.url,2],0));b.url&&b!=f&&h.push(new Am([b.url,0],a(b.depth,c)));d=g.Bm(h,function(l,m){return h.slice(0,h.length-m)}); !b.url||(f||e)&&b!=f||(e=xca(b.url))&&d.push([new Am([e,1],a(b.depth,c))]);d.push([]);return g.Bm(d,function(l){return Gca(c,l)})}; Gca=function(a,b){g.Cm(b,function(e){return 0<=e.depth}); var c=Dm(b,function(e,f){return Math.max(e,f.depth)},-1),d=paa(c+2); d[0]=a;g.Db(b,function(e){return d[e.depth+1]=e.i}); return d}; Ica=function(){var a=Hca();return g.Bm(a,function(b){return ym(b)})}; Em=function(a){if(a.Me&&a.hasOwnProperty("Me"))return a.Me;var b=new a;return a.Me=b}; Fm=function(){this.u=new Fl;this.i=yl()?new zl:new xl}; Jca=function(){Gm();var a=Al.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Al.setInterval&&"function"===typeof Al.clearInterval&&"function"===typeof Al.setTimeout&&"function"===typeof Al.clearTimeout)}; Hm=function(a){Gm();var b=sm()||Al;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)}; Im=function(){Gm();return Ica()}; Jm=function(){}; Gm=function(){return Em(Jm).getContext()}; Km=function(a){Ke.call(this,a)}; Kca=function(a){this.B=a;this.i=-1;this.u=this.C=0}; Lm=function(a,b){return function(c){for(var d=[],e=0;eMath.random())}; Wm=function(a){a&&Vm&&Tm()&&(Vm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Vm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))}; Zm=function(){var a=Xm;this.i=Ym;this.YI="jserror";this.pF=!0;this.XB=null;this.u=this.TD;this.Lb=void 0===a?null:a}; bn=function(a,b,c,d){return Lm(Om().i.i,function(){try{if(a.Lb&&a.Lb.i){var e=a.Lb.start(b.toString(),3);var f=c();a.Lb.end(e)}else f=c()}catch(m){var h=a.pF;try{Wm(e);var l=new $m(an(m));h=a.u(b,l,void 0,d)}catch(n){a.TD(217,n)}if(!h)throw m;}return f})()}; dn=function(a,b,c){var d=cn;return Lm(Om().i.i,function(e){for(var f=[],h=0;hd?500:h}; on=function(a,b,c){var d=new Ll(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.i=d;this.u=c}; pn=function(a,b,c,d,e,f,h){this.C=a;this.B=b;this.J=c;this.i=d;this.D=e;this.u=f;this.K=h}; qn=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,Il(a)&&(c=a,b=d);return{eg:c,level:b}}; rn=function(a){var b=a!==a.top,c=a.top===qn(a).eg,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),Jb(bfa,function(h){return"function"===typeof f[h]})||(e=1)); return{uj:f,compatibility:e,zW:d}}; cfa=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint}; sn=function(a,b,c,d){var e=void 0===e?!1:e;c=dn(d,c,void 0);Cl(a,b,c,{capture:e})}; tn=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.gg(b.innerWidth,b.innerHeight)).round():ug(b||window).round()}catch(d){return new g.gg(-12245933,-12245933)}}; un=function(a,b,c){try{a&&(b=b.top);var d=tn(a,b,void 0===c?!1:c),e=wg(mg(b.document).i);if(-12245933==d.width){var f=d.width;var h=new Ll(f,f,f,f)}else h=new Ll(e.y,e.x+d.width,e.y+d.height,e.x);return h}catch(l){return new Ll(-12245933,-12245933,-12245933,-12245933)}}; vn=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b}; wn=function(a){return new Ll(a.top,a.right,a.bottom,a.left)}; xn=function(a){var b=a.top||0,c=a.left||0;return new Ll(b,c+(a.width||0),b+(a.height||0),c)}; yn=function(a){return null!=a&&0<=a&&1>=a}; kfa=function(){var a=g.ad;return a?zn("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return Gc(a,b)})||Gc(a,"OMI/")&&!Gc(a,"XiaoMi/")?!0:Gc(a,"Presto")&&Gc(a,"Linux")&&!Gc(a,"X11")&&!Gc(a,"Android")&&!Gc(a,"Mobi"):!1}; An=function(){this.B=!Il(Al.top);this.isMobileDevice=Gl()||Hl();var a=tm();this.domain=0c.height?m>p?(d=m,e=n):(d=p,e=q):mb.B?!1:a.ub.u?!1:typeof a.itypeof b.i?!1:a.ic++;){if(a===b)return!0;try{if(a=g.Hg(a)||a){var d=kg(a),e=d&&yg(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1}; ufa=function(a,b,c){if(!a||!b)return!1;b=Nl(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=sm();Il(d.top)&&d.top&&d.top.document&&(d=d.top);if(!cfa(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=kg(c))&&b.defaultView&&b.defaultView.frameElement)&&tfa(b,a);d=a===c;a=!d&&a&&Mg(a,function(e){return e===c}); return!(b||d||a)}; vfa=function(a,b,c,d){return Dn().B?!1:0>=Ml(a)||0>=a.getHeight()?!0:c&&d?fn(208,function(){return ufa(a,b,c)}):!1}; lo=function(a,b,c){g.I.call(this);this.position=wfa.clone();this.mz=this.By();this.RD=-2;this.PW=Date.now();this.cN=-1;this.lastUpdateTime=b;this.Zy=null;this.Ux=!1;this.zz=null;this.opacity=-1;this.requestSource=c;this.oN=this.VD=g.Ha;this.Rg=new sca;this.Rg.Mn=a;this.Rg.i=a;this.hs=!1;this.lp={eE:null,cE:null};this.JM=!0;this.Qw=null;this.Wr=this.SR=!1;Om().J++;this.mf=this.dD();this.XM=-1;this.Dd=null;this.PR=!1;a=this.featureSet=new sl;tl(a,"od",xfa);tl(a,"opac",Mm).i=!0;tl(a,"sbeos",Mm).i=!0; tl(a,"prf",Mm).i=!0;tl(a,"mwt",Mm).i=!0;tl(a,"iogeo",Mm);(a=this.Rg.Mn)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(yfa&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Ad()):a.getAttribute("data-"+Ad()))&&(Dn().u=!0);1==this.requestSource?ul(this.featureSet,"od",1):ul(this.featureSet,"od",0)}; mo=function(a,b){b!=a.Wr&&(a.Wr=b,a=Dn(),b?a.J++:0c?0:a}; zfa=function(a,b,c){if(a.Dd){a.Dd.Qm();var d=a.Dd.K,e=d.C,f=e.i;if(null!=d.J){var h=d.B;a.zz=new g.eg(h.left-f.left,h.top-f.top)}f=a.pA()?Math.max(d.i,d.D):d.i;h={};null!==e.volume&&(h.volume=e.volume);e=a.uJ(d);a.Zy=d;a.Ra(f,b,c,!1,h,e,d.K)}}; Afa=function(a){if(a.Ux&&a.Qw){var b=1==vl(a.featureSet,"od"),c=Dn().i,d=a.Qw,e=a.Dd?a.Dd.getName():"ns",f=new g.gg(Ml(c),c.getHeight());c=a.pA();a={DW:e,zz:a.zz,kX:f,pA:c,Wc:a.mf.Wc,gX:b};if(b=d.u){b.Qm();e=b.K;f=e.C.i;var h=null,l=null;null!=e.J&&f&&(h=e.B,h=new g.eg(h.left-f.left,h.top-f.top),l=new g.gg(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.i,e.D):e.i;c={DW:b.getName(),zz:h,kX:l,pA:c,gX:!1,Wc:e}}else c=null;c&&qfa(d,a,c)}}; Bfa=function(a,b,c){b&&(a.VD=b);c&&(a.oN=c)}; Cfa=function(){this.C=this.i=this.B=this.u=this.D=0}; Dfa=function(a){var b={};var c=g.Pa()-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.i)&&(b.pns=a);return b}; po=function(){nl.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; qo=function(a){return yn(a.volume)&&0Math.max(1E4,a.B/3)?0:b);var c=a.N(a)||{};c=void 0!==c.currentTime?c.currentTime:a.ea;var d=c-a.ea,e=0;0<=d?(a.ma+=b,a.Ha+=Math.max(b-d,0),e=Math.min(d,a.ma)):a.La+=Math.abs(d);0!=d&&(a.ma=0);-1==a.Qa&&0=a.B/2:0=a.Ba:!1:!1}; Kfa=function(a){var b=vn(a.mf.Wc,2),c=a.Ze.B,d=a.mf,e=Eo(a),f=Do(e.C),h=Do(e.J),l=Do(d.volume),m=vn(e.K,2),n=vn(e.ma,2),p=vn(d.Wc,2),q=vn(e.xa,2),t=vn(e.Ba,2);d=vn(d.oh,2);a=a.zn().clone();a.round();e=io(e,!1);return{jX:b,Iv:c,nz:f,jz:h,uu:l,oz:m,kz:n,Wc:p,pz:q,lz:t,oh:d,position:a,xz:e}}; Io=function(a,b){Ho(a.i,b,function(){return{jX:0,Iv:void 0,nz:-1,jz:-1,uu:-1,oz:-1,kz:-1,Wc:-1,pz:-1,lz:-1,oh:-1,position:void 0,xz:[]}}); a.i[b]=Kfa(a)}; Ho=function(a,b,c){for(var d=a.length;dc.time?b:c},a[0])}; lp=function(a){a=void 0===a?Al:a;Nn.call(this,new Gn(a,2))}; np=function(){var a=mp();Gn.call(this,Al.top,a,"geo")}; mp=function(){Om();var a=Dn();return a.B||a.u?0:2}; op=function(){}; pp=function(){this.done=!1;this.i={bQ:0,UH:0,jaa:0,UI:0,BD:-1,yQ:0,xQ:0,zQ:0};this.D=null;this.J=!1;this.B=null;this.K=0;this.u=new Fn(this)}; rp=function(){var a=qp;a.J||(a.J=!0,cga(a,function(b){for(var c=[],d=0;dn?1:0)?-n:n;if(0===n)re=0<1/n?0:2147483648,qe=0;else if(isNaN(n))re=2147483647,qe=4294967295;else if(1.7976931348623157E308>>0,qe=0;else if(2.2250738585072014E-308>n)m=n/Math.pow(2,-1074),re=(l<<31|m/4294967296)>>>0,qe=m>>>0;else{p=n;m=0;if(2<=p)for(;2<=p&&1023>m;)m++,p/=2;else for(;1>p&&-1022>>0;qe=4503599627370496*n>>>0}Td(h,qe);Td(h,re)}se(f,2,Le(x,2));se(f,3,Le(x,3));se(f,4,Le(x,4));l=Le(x,5);if(null!=l&&null!=l)if(Sd(f.i,40),h=f.i,0<=l)Sd(h,l);else{for(m=0;9>m;m++)h.push(l&127|128),l>>=7;h.push(1)}ef(x,f);x=pe(f);u=(u.pf=g.fe(x),u)}else u={};g.ec(t,u);g.ec(c,e,d,t,a());if(e=Vn())d={},g.ec(c,(d.v=encodeURIComponent(e),d))}])}; gga=function(){var a=vp||Al;if(!a)return"";var b=[];if(!a.location||!a.location.href)return"";b.push("url="+encodeURIComponent(a.location.href.substring(0,512)));a.document&&a.document.referrer&&b.push("referrer="+encodeURIComponent(a.document.referrer.substring(0,512)));return b.join("&")}; wp=function(a){return function(b){return void 0===b[a]?0:b[a]}}; yp=function(){var a=[0,2,4];return function(b){b=b.tos;if(Array.isArray(b)){for(var c=Array(b.length),d=0;dg.Nb(iga).length?null:Dm(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===Kp[d[0]]||!Kp[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}}; kga=function(a,b){if(void 0==a.i)return 0;switch(a.D){case "mtos":return a.u?eo(b.i,a.i):eo(b.u,a.i);case "tos":return a.u?bo(b.i,a.i):bo(b.u,a.i)}return 0}; Lp=function(a,b,c,d){vo.call(this,b,d);this.J=a;this.K=c}; Mp=function(a){vo.call(this,"fully_viewable_audible_half_duration_impression",a)}; Np=function(a,b){vo.call(this,a,b)}; Op=function(){this.u=this.C=this.J=this.D=this.B=this.i=""}; lga=function(){}; Pp=function(a,b,c,d,e){var f={};if(void 0!==a)if(null!=b)for(var h in b){var l=b[h];h in Object.prototype||null!=l&&(f[h]="function"===typeof l?l(a):a[l])}else g.ec(f,a);void 0!==c&&g.ec(f,c);a=Sn(Rn(new Qn,f));0String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1}; qq=function(a){return!!(1<>>0]|=f<>>0).toString(16)+"&"}); c=105;g.Db(yga,function(d){var e="false";try{e=d(Al)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"}); g.Db(zga,function(d){var e="";try{e=g.fe(g.Wa(d(Al)),3)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"}); return a.slice(0,-1)}; wga=function(){if(!rq){var a=function(){sq=!0;Al.document.removeEventListener("webdriver-evaluate",a,!0)}; Al.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){tq=!0;Al.document.removeEventListener("webdriver-evaluate-response",b,!0)}; Al.document.addEventListener("webdriver-evaluate-response",b,!0);rq=!0}}; Bga=function(){this.blockSize=-1}; uq=function(){this.blockSize=-1;this.blockSize=64;this.i=Array(4);this.C=Array(this.blockSize);this.B=this.u=0;this.reset()}; vq=function(a,b,c){c||(c=0);var d=Array(16);if("string"===typeof b)for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.i[0];c=a.i[1];e=a.i[2];var f=a.i[3];var h=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(h<<17&4294967295|h>>>15); h=c+(b^e&(f^b))+d[3]+3250441966&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(h<<12&4294967295| h>>>20);h=e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(h<< 5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c= e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[7]+1735328473&4294967295; e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(h<<11&4294967295| h>>>21);h=e+(f^b^c)+d[7]+4139469664&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[12]+ 3873151461&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[12]+1700485571& 4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[13]+1309151649& 4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.i[0]=a.i[0]+b&4294967295;a.i[1]=a.i[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.i[2]=a.i[2]+e&4294967295;a.i[3]=a.i[3]+f&4294967295}; wq=function(){this.u=null}; xq=function(a){return function(b){var c=new uq;c.update(b+a);return iaa(c.digest()).slice(-8)}}; yq=function(a,b){this.i=a;this.B=b}; wo=function(a,b,c){var d=a.u();if("function"===typeof d){var e={};e=(e.sv=Ep,e.cb=Fp,e.e=Cga(b),e);var f=Lo(c,b,En());g.ec(e,f);c.AN[b]=f;a=2==c.Ak()?ofa(e).join("&"):a.B.i(e).i;try{return d(c.Cf,a,b),0}catch(h){return 2}}else return 1}; Cga=function(a){var b=Jp(a)?"custom_metric_viewable":a;a=Ub(Jo,function(c){return c==b}); return Hp[a]}; zq=function(){cq.call(this);this.J=null;this.D=!1;this.C=new wq}; Dga=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.u&&Array.isArray(c)&&qga(a,c,b)}; Ega=function(a,b,c){var d=$o(bp,b);d||(d=c.opt_nativeTime||-1,d=dq(a,b,iq(a),d),c.opt_osdId&&(d.Ta=c.opt_osdId));return d}; Fga=function(a,b,c){var d=$o(bp,b);d||(d=dq(a,b,"n",c.opt_nativeTime||-1));return d}; Gga=function(a,b){var c=$o(bp,b);c||(c=dq(a,b,"h",-1));return c}; Hga=function(a){Om();switch(iq(a)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; Bq=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.ec(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.C.i(Ip("ol",d));if(void 0!==d)if(void 0!==Gp(d))if(fq)b=Ip("ue",d);else if(tga(a),"i"==gq)b=Ip("i",d),b["if"]=0;else if(b=a.Gy(b,e))if(a.B&&3==b.wg)b="stopped";else{b:{"i"==gq&&(b.hs=!0,a.gF());c=e.opt_fullscreen;void 0!==c&&mo(b,!!c);var f;if(c=!Dn().u)(c=Gc(g.ad,"CrKey")||Gc(g.ad,"PlayStation")||Gc(g.ad,"Roku")||kfa()||Gc(g.ad,"Xbox"))||(c=g.ad,c=Gc(c,"AppleTV")||Gc(c, "Apple TV")||Gc(c,"CFNetwork")||Gc(c,"tvOS")),c||(c=g.ad,c=Gc(c,"sdk_google_atv_x86")||Gc(c,"Android TV")),c=!c;c&&(Gm(),c=0===El(rm));if(f=c){switch(b.Ak()){case 1:kq(a,b,"pv");break;case 2:a.VE(b)}hq("pv")}c=d.toLowerCase();if(f=!f)f=vl(Om().featureSet,"ssmol")&&"loaded"===c?!1:g.ib(Iga,c);if(f&&0==b.wg){"i"!=gq&&(qp.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;nn=f="number"===typeof f?f:jn();b.Ux=!0;var h=En();b.wg=1;b.vf={};b.vf.start=!1;b.vf.firstquartile=!1;b.vf.midpoint=!1;b.vf.thirdquartile= !1;b.vf.complete=!1;b.vf.resume=!1;b.vf.pause=!1;b.vf.skip=!1;b.vf.mute=!1;b.vf.unmute=!1;b.vf.viewable_impression=!1;b.vf.measurable_impression=!1;b.vf.fully_viewable_audible_half_duration_impression=!1;b.vf.fullscreen=!1;b.vf.exitfullscreen=!1;b.DC=0;h||(b.Xg().N=f);sp(qp,[b],!h)}(f=b.Dq[c])&&ro(b.Ze,f);g.ib(Jga,c)&&!b.hs&&b.Wp&&0!=b.wg&&(f=b.Wp,f.i||(f.i=xo(f,b)));switch(b.Ak()){case 1:var l=Jp(c)?a.K.custom_metric_viewable:a.K[c];break;case 2:l=a.N[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=Ip(void 0, c);g.ec(e,d);d=e;break b}d=void 0}3==b.wg&&(a.B?b.Dd&&b.Dd.Dt():a.Lu(b));b=d}else b=Ip("nf",d);else b=void 0;else fq?b=Ip("ue"):(b=a.Gy(b,e))?(d=Ip(),g.ec(d,Ko(b,!0,!1,!1)),b=d):b=Ip("nf");return"string"===typeof b?a.B&&"stopped"===b?Aq:a.C.i(void 0):a.C.i(b)}; Cq=function(a){var b={};return b.viewability=a.i,b.googleViewability=a.B,b.moatInit=a.D,b.moatViewability=a.J,b.integralAdsViewability=a.C,b.doubleVerifyViewability=a.u,b}; Dq=function(a,b,c){c=void 0===c?{}:c;a=Bq(Em(zq),b,c,a);return Cq(a)}; Eq=function(a,b){b=void 0===b?!1:b;var c=Em(zq).Gy(a,{});c?Co(c):b&&(a=Em(zq).Aw(null,jn(),!1,a),a.wg=3,ep([a]))}; Gq=function(a){if(g.xc(g.wd(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Yj(a)}catch(c){return null!=g.eb(Fq,function(d){return 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)}; Uga=function(a){if(!a)return Wc;var b=document.createElement("div").style;Qga(a).forEach(function(c){var d=g.xg&&c in Rga?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");vc(d,"--")||vc(d,"var")||(c=er(Sga,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Pga(c),null!=c&&er(Tga,b,b.setProperty?"setProperty":"setAttribute",[d,c]))}); return Faa(g.nc("Output of CSS sanitizer"),b.cssText||"")}; Qga=function(a){g.Ka(a)?a=g.sb(a):(a=g.Nb(a),g.ob(a,"cssText"));return a}; g.gr=function(a){var b,c=b=0,d=!1;a=a.split(Vga);for(var e=0;eg.Pa()}; g.tr=function(a){this.i=a}; bha=function(){}; ur=function(){}; vr=function(a){this.i=a}; wr=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.i=a}; xr=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.i=a}; zr=function(a,b){this.u=a;this.i=null;if(g.ke&&!g.ce(9)){yr||(yr=new g.ji);this.i=yr.get(a);this.i||(b?this.i=document.getElementById(b):(this.i=document.createElement("userdata"),this.i.addBehavior("#default#userData"),document.body.appendChild(this.i)),yr.set(a,this.i));try{this.i.load(this.u)}catch(c){this.i=null}}}; Ar=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return cha[b]})}; Br=function(a){try{a.i.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}}; Cr=function(a,b){this.u=a;this.i=b+"::"}; g.Dr=function(a){var b=new wr;return b.isAvailable()?a?new Cr(b,a):b:null}; Er=function(a,b){this.i=a;this.u=b}; Fr=function(a){this.i=[];if(a)a:{if(a instanceof Fr){var b=a.ri();a=a.Yg();if(0>=this.i.length){for(var c=this.i,d=0;d>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c}; Hr=function(){Fr.call(this)}; Ir=function(){}; dha=function(a,b){var c=[],d;b=b||Jr.length;if(a)for(d=0;dd;d++)c[d]||(a=0|16*Math.random(),c[d]=Jr[19==d?a&3|8:a]);return c.join("")}; Kr=function(a){for(var b=[],c=0;cm.status,t=500<=m.status&&600>m.status;if(n||q||t)p=uha(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); if(b.onTimeout&&0=m||403===mt(p.xhr))return gh(new At("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0a;a++)this.u.push(0);this.B=0;this.ma=g.vu(window,"mousemove",(0,g.D)(this.V,this));this.N=pt((0,g.D)(this.ea,this),25)}; Hu=function(){}; Ju=function(a,b,c){return Iu(b,0,c)}; g.Ku=function(a,b,c){return Iu(b,1,c)}; Dha=function(a,b,c){Iu(b,2,c)}; Lu=function(){Hu.apply(this,arguments)}; Mu=function(){Lu.i||(Lu.i=new Lu);return Lu.i}; g.Nu=function(){return!!g.Ga("yt.scheduler.instance")}; Iu=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ga("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.ot(a,c||0)}; g.Ou=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ga("yt.scheduler.instance.cancelJob");b?b(a):g.qt(a)}}; Pu=function(a){var b=g.Ga("yt.scheduler.instance.setPriorityThreshold");b&&b(a)}; Su=function(){var a={},b=void 0===a.WV?!1:a.WV;a=void 0===a.LQ?!0:a.LQ;if(null==g.Ga("_lact",window)){var c=parseInt(g.P("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Fa("_lact",c,window);g.Fa("_fact",c,window);-1==c&&Qu();g.vu(document,"keydown",Qu);g.vu(document,"keyup",Qu);g.vu(document,"mousedown",Qu);g.vu(document,"mouseup",Qu);b?g.vu(window,"touchmove",function(){Ru("touchmove",200)},{passive:!0}):(g.vu(window,"resize",function(){Ru("resize",200)}),a&&g.vu(window,"scroll",function(){Ru("scroll", 200)})); new Gu(function(){Ru("mouse",100)}); g.vu(document,"touchstart",Qu,{passive:!0});g.vu(document,"touchend",Qu,{passive:!0})}}; Ru=function(a,b){Tu[a]||(Tu[a]=!0,g.Ku(0,function(){Qu();Tu[a]=!1},b))}; Qu=function(){null==g.Ga("_lact",window)&&(Su(),g.Ga("_lact",window));var a=Date.now();g.Fa("_lact",a,window);-1==g.Ga("_fact",window)&&g.Fa("_fact",a,window);(a=g.Ga("ytglobal.ytUtilActivityCallback_"))&&a()}; Uu=function(){var a=g.Ga("_lact",window),b;null==a?b=-1:b=Math.max(Date.now()-a,0);return b}; g.Wu=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.Rt())a&&(a=g.Mc(g.Qc(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.hd(jd(a)).toString(),a=td(g.Wh(a))),g.xc(a)||(a=Bg("IFRAME",{src:'javascript:""',style:"display:none"}),kg(a).body.appendChild(a)));else if(e)vt(a,b,"POST",e,d);else if(g.P("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)vt(a,b,"GET","",d);else{b:{try{var f=new oca({url:a});if(f.B&&f.u||f.C){var h=ni(g.pi(5,a));var l=!(!h||!h.endsWith("/aclk")|| "1"!==Fi(a,"ri"));break b}}catch(m){}l=!1}l?Vu(a)?(b&&b(),c=!0):c=!1:c=!1;c||Eha(a,b)}}; Xu=function(a,b,c){c=void 0===c?"":c;Vu(a,c)?b&&b():g.Wu(a,b,void 0,void 0,c)}; Vu=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1}; Eha=function(a,b){var c=new Image,d=""+Fha++;Yu[d]=c;c.onload=c.onerror=function(){b&&Yu[d]&&b();delete Yu[d]}; c.src=a}; g.cv=function(a,b,c){var d=g.Zu();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){$u[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)}; try{g.av[a]?h():g.ot(h,0)}catch(l){g.ys(l)}},c); $u[e]=!0;bv[a]||(bv[a]=[]);bv[a].push(e);return e}return 0}; g.dv=function(a){var b=g.Zu();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Db(a,function(c){b.unsubscribeByKey(c);delete $u[c]}))}; g.ev=function(a,b){var c=g.Zu();return c?c.publish.apply(c,arguments):!1}; gv=function(a){var b=g.Zu();if(b)if(b.clear(a),a)fv(a);else for(var c in bv)fv(c)}; g.Zu=function(){return g.C.ytPubsubPubsubInstance}; fv=function(a){bv[a]&&(a=bv[a],g.Db(a,function(b){$u[b]&&delete $u[b]}),a.length=0)}; Gha=function(a,b){if("log_event"===a.endpoint){var c="";a.Sx?c="visitorOnlyApprovedKey":a.cttAuthInfo&&(hv[a.cttAuthInfo.token]=iv(a.cttAuthInfo),c=a.cttAuthInfo.token);var d=jv.get(c)||[];jv.set(c,d);d.push(a.payload);b&&(kv=new b);a=vs("tvhtml5_logging_max_batch")||vs("web_logging_max_batch")||100;b=(0,g.Q)();d.length>=a?lv({writeThenSend:!0},g.us("flush_only_full_queue")?c:void 0):10<=b-mv&&(nv(),mv=b)}}; Hha=function(a,b){if("log_event"===a.endpoint){var c="";a.Sx?c="visitorOnlyApprovedKey":a.cttAuthInfo&&(hv[a.cttAuthInfo.token]=iv(a.cttAuthInfo),c=a.cttAuthInfo.token);var d=new Map;d.set(c,[a.payload]);b&&(kv=new b);return new bh(function(e){kv&&kv.isReady()?ov(d,e,{bypassNetworkless:!0}):e()})}}; lv=function(a,b){a=void 0===a?{}:a;new bh(function(c){g.qt(pv);g.qt(qv);qv=0;if(kv&&kv.isReady())if(void 0!==b){var d=new Map,e=jv.get(b)||[];d.set(b,e);ov(d,c,a);jv.delete(b)}else ov(jv,c,a),jv.clear();else nv(),c()})}; nv=function(){g.us("web_gel_timeout_cap")&&!qv&&(qv=g.ot(function(){lv({writeThenSend:!0})},6E4)); g.qt(pv);var a=g.P("LOGGING_BATCH_TIMEOUT",vs("web_gel_debounce_ms",1E4));g.us("shorten_initial_gel_batch_timeout")&&rv&&(a=Iha);pv=g.ot(function(){lv({writeThenSend:!0})},a)}; ov=function(a,b,c){var d=kv;c=void 0===c?{}:c;var e=Math.round((0,g.Q)()),f=a.size;a=g.r(a);for(var h=a.next();!h.done;h=a.next()){var l=g.r(h.value);h=l.next().value;var m=l=l.next().value;l=g.cc({context:g.tv(d.config_||g.uv())});l.events=m;(m=hv[h])&&Jha(l,h,m);delete hv[h];h="visitorOnlyApprovedKey"===h;Kha(l,e,h);g.us("always_send_and_write")&&(c.writeThenSend=!1);g.us("send_beacon_before_gel")&&window.navigator&&window.navigator.sendBeacon&&!c.writeThenSend&&Xu("/generate_204");g.vv(d,"log_event", l,{retry:!0,onSuccess:function(){f--;f||b()}, onError:function(){f--;f||b()}, RK:c,Sx:h});rv=!1}}; Kha=function(a,b,c){a.requestTimeMs=String(b);g.us("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.P("EVENT_ID",void 0))&&((c=g.P("BATCH_CLIENT_COUNTER",void 0)||0)||(c=Math.floor(Math.random()*wv/2)),c++,c>wv&&(c=1),qs("BATCH_CLIENT_COUNTER",c),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})}; Jha=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}]}; iv=function(a){var b={};a.videoId?b.videoId=a.videoId:a.playlistId&&(b.playlistId=a.playlistId);return b}; yv=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.Q)());e.eventTimeMs=f=m)Kw(h,q,A,n,E,b.join(),l),p=E;F.ib(2);break;case 3:return F.return(Promise.reject(p))}})})}; Kw=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof nw&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&gw("QUOTA_EXCEEDED",{dbName:lw(a.i.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof nw&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),gw("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),Lw(a,!1,d,f,b,h.tag),fw(e)):Lw(a,!0,d,f,b,h.tag)}; Lw=function(a,b,c,d,e,f){gw("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})}; Dw=function(a){this.i=a}; Mw=function(a,b,c){a.i.createIndex(b,c,{unique:!1})}; Yha=function(a,b){return Nw(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})}; Hw=function(a,b,c){return"getAll"in IDBObjectStore.prototype?yw(a.i.getAll(b,c)):Zha(a,b,c)}; Zha=function(a,b,c){var d=[];return Nw(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})}; Ow=function(a){return"getAllKeys"in IDBObjectStore.prototype?yw(a.i.getAllKeys(void 0,void 0)):$ha(a)}; $ha=function(a){var b=[];return Pw(a,{query:void 0},function(c){b.push(c.Dy());return c.continue()}).then(function(){return b})}; Iw=function(a,b,c){return yw(a.i.put(b,c))}; Nw=function(a,b,c){a=a.i.openCursor(b.query,b.direction);return Qw(a).then(function(d){return zw(d,c)})}; Pw=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.i.openKeyCursor(d,b):a.i.openCursor(d,b);return Bw(a).then(function(e){return zw(e,c)})}; Jw=function(a){var b=this;this.i=a;this.B=new Map;this.u=!1;this.done=new Promise(function(c,d){b.i.addEventListener("complete",function(){c()}); b.i.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.i.error)}); b.i.addEventListener("abort",function(){var e=b.i.error;if(e)d(e);else if(!b.u){e=nw;for(var f=b.i.objectStoreNames,h=[],l=0;l=A},y); y.done.catch(function(A){e(A)})}catch(A){e(A)}}); h.addEventListener("success",function(){var u=h.result;m&&u.addEventListener("versionchange",function(){m(f())}); u.addEventListener("close",function(){gw("IDB_UNEXPECTEDLY_CLOSED",{dbName:lw(a),dbVersion:u.version});n&&n()}); d(f())}); h.addEventListener("error",function(){e(h.error)}); l&&h.addEventListener("blocked",function(){l()})})}; Vw=function(a,b,c){c=void 0===c?{}:c;return bia(a,b,c)}; Ww=function(a,b){b=void 0===b?{}:b;return g.H(this,function d(){var e,f,h;return g.B(d,function(l){e=self.indexedDB.deleteDatabase(a);f=b;(h=f.blocked)&&e.addEventListener("blocked",function(){h()}); return g.z(l,Uha(e),0)})})}; Xw=function(a,b){this.name=a;this.options=b;this.C=!0;this.B=!1}; Yw=function(a,b){return new nw("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})}; $w=function(a){return g.H(this,function c(){var d;return g.B(c,function(e){if(1==e.i)return g.z(e,Zw.open(),2);d=e.u;return e.return(Gw(d,["databases"],{hg:!0,mode:"readwrite"},function(f){var h=f.objectStore("databases");return h.get(a.actualName).then(function(l){if(l?a.actualName!==l.actualName||a.publicName!==l.publicName||a.userIdentifier!==l.userIdentifier:1)return Iw(h,a).then(function(){})})}))})})}; ax=function(a){return g.H(this,function c(){var d;return g.B(c,function(e){if(1==e.i)return a?g.z(e,Zw.open(),2):e.return();d=e.u;return e.return(d.delete("databases",a))})})}; bx=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){return 1==f.i?(d=[],g.z(f,Zw.open(),2)):3!=f.i?(e=f.u,g.z(f,Gw(e,["databases"],{hg:!0,mode:"readonly"},function(h){d.length=0;return Nw(h.objectStore("databases"),{},function(l){a(l.getValue())&&d.push(l.getValue());return l.continue()})}),3)):f.return(d)})})}; cia=function(){return bx(function(a){return"LogsDatabaseV2"===a.publicName&&void 0!==a.userIdentifier})}; dia=function(){return g.H(this,function b(){var c,d;return g.B(b,function(e){if(1==e.i)return c=iw("YtIdbMeta"),g.z(e,bx(function(f){return"yt-player-local-media"===f.publicName&&f.userIdentifier===c}),2); d=e.u;return e.return(0=Math.random()&&Rv("nwl_transaction_latency_payload",a)}; pia=function(){g.H(this,function b(){var c,d;return g.B(b,function(e){if(1==e.i)return g.us("web_clean_sw_logs_store")?g.z(e,tx().open(),3):e.ib(0);c=e.u;d=(0,g.Q)()-2592E6;return g.z(e,Gw(c,["SWHealthLog"],{mode:"readwrite",hg:!0},function(f){return Nw(f.objectStore("SWHealthLog"),{},function(h){if(h.getValue().timestamp<=d)return h.delete().then(function(){return h.continue()})})}),0)})})}; qia=function(){return g.H(this,function b(){var c;return g.B(b,function(d){if(1==d.i)return g.z(d,tx().open(),2);c=d.u;return g.z(d,c.clear("SWHealthLog"),0)})})}; vx=function(){ux||(ux=new Nv("yt.offline"));return ux}; wx=function(a){if(g.us("offline_error_handling")){var b=vx().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);vx().set("errors",b,2592E3,!0)}}; xx=function(){g.Wf.call(this);this.J=0;this.K=this.u=!1;this.i=this.jD();ria(this);sia(this)}; yx=function(){if(!xx.i){var a=g.Ga("yt.networkStatusManager.instance")||new xx;g.Fa("yt.networkStatusManager.instance",a,void 0);xx.i=a}return xx.i}; sia=function(a){window.addEventListener("online",function(){return g.H(a,function c(){var d=this;return g.B(c,function(e){if(1==e.i)return g.z(e,d.Rk(),2);if(d.K&&g.us("offline_error_handling")){var f=vx().get("errors",!0);if(f){for(var h in f)if(f[h]){var l=new g.hw(h,"sent via offline_errors");l.name=f[h].name;l.stack=f[h].stack;l.level=f[h].level;g.ys(l)}vx().set("errors",{},2592E3,!0)}}g.sa(e)})})})}; ria=function(a){window.addEventListener("offline",function(){return g.H(a,function c(){var d=this;return g.B(c,function(e){return g.z(e,d.Rk(),0)})})})}; zx=function(a){a.J=Ju(0,function(){return g.H(a,function c(){var d=this;return g.B(c,function(e){if(1==e.i)return d.i?d.jD()||!d.u?e.ib(3):g.z(e,d.Rk(),3):g.z(e,d.Rk(),3);zx(d);g.sa(e)})})},tia)}; Bx=function(a){a=void 0===a?{}:a;g.Wf.call(this);var b=this;this.u=this.D=0;this.i=yx();var c=g.Ga("yt.networkStatusManager.instance.monitorNetworkStatusChange").bind(this.i);c&&c(a.VI);a.zK&&(c=g.Ga("yt.networkStatusManager.instance.enableErrorFlushing").bind(this.i))&&c();if(c=g.Ga("yt.networkStatusManager.instance.listen").bind(this.i))a.Wz?(this.Wz=a.Wz,c("ytnetworkstatus-online",function(){Ax(b,"publicytnetworkstatus-online")}),c("ytnetworkstatus-offline",function(){Ax(b,"publicytnetworkstatus-offline")})): (c("ytnetworkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("ytnetworkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")}))}; Ax=function(a,b){a.Wz?a.u?(g.Ou(a.D),a.D=g.Ku(0,function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.u=(0,g.Q)())},a.Wz-((0,g.Q)()-a.u))):(a.dispatchEvent(b),a.C=b,a.u=(0,g.Q)()):a.dispatchEvent(b)}; uia=function(a,b){function c(d){var e=Cx().Pe();if(!Dx()||!d||e&&g.us("vss_networkless_bypass_write"))Ex(a,b);else{var f={url:a,options:b,timestamp:(0,g.Q)(),status:"NEW",sendCount:0};ox(f,d).then(function(h){f.id=h;Cx().Pe()&&Fx(f)}).catch(function(h){Fx(f); Gx(h)})}} b=void 0===b?{}:b;g.us("skip_is_supported_killswitch")?g.fx().then(function(d){c(d)}):c(Hx())}; Ix=function(a,b,c){function d(f){if(Dx()&&f){var h={url:a,options:b,timestamp:(0,g.Q)(),status:"NEW",sendCount:0};g.us("nwl_skip_retry")&&(h.skipRetry=c);if(Cx().Pe()){if(!h.skipRetry){var l=b.onError?b.onError:function(){}; b.onError=function(m,n){return g.H(e,function q(){return g.B(q,function(t){if(1==t.i)return g.z(t,ox(h,f).catch(function(u){Gx(u)}),2); l(m,n);g.sa(t)})})}}Ex(a,b,h.skipRetry)}else ox(h,f).catch(function(m){Gx(m)})}else Ex(a,b,g.us("nwl_skip_retry")&&c)} var e=this;b=void 0===b?{}:b;g.us("skip_is_supported_killswitch")?g.fx().then(function(f){d(f)}):d(Hx())}; Jx=function(a,b){function c(d){if(Dx()&&d){var e={url:a,options:b,timestamp:(0,g.Q)(),status:"NEW",sendCount:0},f=!1,h=b.onSuccess?b.onSuccess:function(){}; e.options.onSuccess=function(l,m){void 0!==e.id?sx(e.id,d):f=!0;g.us("vss_network_hint")&&Cx().On(!0);h(l,m)}; Ex(e.url,e.options);ox(e,d).then(function(l){e.id=l;f&&sx(e.id,d)}).catch(function(l){Gx(l)})}else Ex(a,b)} b=void 0===b?{}:b;g.us("skip_is_supported_killswitch")?g.fx().then(function(d){c(d)}):c(Hx())}; Lx=function(){var a=this,b=Hx();if(!b)throw g.qw("throttleSend");Kx||(Kx=g.Ku(0,function(){return g.H(a,function d(){var e;return g.B(d,function(f){if(1==f.i)return g.z(f,px("NEW",b),2);if(3!=f.i)return e=f.u,e?g.z(f,Fx(e),3):(g.Ou(Kx),Kx=0,f.return());Kx&&(Kx=0,Lx());g.sa(f)})})},100))}; Fx=function(a){return g.H(this,function c(){var d,e,f;return g.B(c,function(h){switch(h.i){case 1:d=Hx();if(!d)throw e=g.qw("immediateSend"),e;if(void 0===a.id){h.ib(2);break}return g.z(h,qx(a.id,d),3);case 3:(f=h.u)?a=f:As(Error("The request cannot be found in the database."));case 2:var l=a.timestamp;if(!(2592E6<=(0,g.Q)()-l)){h.ib(4);break}As(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){h.ib(5);break}return g.z(h,sx(a.id,d),5);case 5:return h.return(); case 4:a.skipRetry||(a=via(a));l=a;var m,n;if(null===(n=null===(m=null===l||void 0===l?void 0:l.options)||void 0===m?void 0:m.postParams)||void 0===n?0:n.requestTimeMs)l.options.postParams.requestTimeMs=Math.round((0,g.Q)());a=l;if(!a){h.ib(0);break}if(!a.skipRetry||void 0===a.id){h.ib(8);break}return g.z(h,sx(a.id,d),8);case 8:Ex(a.url,a.options,!!a.skipRetry),g.sa(h)}})})}; via=function(a){var b=this,c=Hx();if(!c)throw g.qw("updateRequestHandlers");var d=a.options.onError?a.options.onError:function(){}; a.options.onError=function(f,h){return g.H(b,function m(){return g.B(m,function(n){switch(n.i){case 1:if(!((g.Ga("ytNetworklessLoggingInitializationOptions")?Mx.potentialEsfErrorCounter:Nx)<=vs("potential_esf_error_limit",10))){n.ib(2);break}return g.z(n,Cx().Rk(),3);case 3:if(Cx().Pe())g.Ga("ytNetworklessLoggingInitializationOptions")&&Mx.potentialEsfErrorCounter++,Nx++;else return d(f,h),n.return();case 2:if(void 0===(null===a||void 0===a?void 0:a.id)){n.ib(4);break}return 1>a.sendCount?g.z(n,rx(a.id, c),8):g.z(n,sx(a.id,c),4);case 8:g.Ku(0,function(){Cx().Pe()&&Lx()},5E3); case 4:d(f,h),g.sa(n)}})})}; var e=a.options.onSuccess?a.options.onSuccess:function(){}; a.options.onSuccess=function(f,h){return g.H(b,function m(){return g.B(m,function(n){if(1==n.i)return void 0===(null===a||void 0===a?void 0:a.id)?n.ib(2):g.z(n,sx(a.id,c),2);g.us("vss_network_hint")&&Cx().On(!0);e(f,h);g.sa(n)})})}; return a}; Cx=function(){Ox||(Ox=new Bx({zK:!0,VI:!0}));return Ox}; Gx=function(a){Cx().Pe()?g.ys(a):wx(a)}; Ex=function(a,b,c){if(g.us("networkless_with_beacon")){var d=["method","postBody"];if(Object.keys(b).length>d.length)c=!0;else{c=0;d=g.r(d);for(var e=d.next();!e.done;e=d.next())b.hasOwnProperty(e.value)&&c++;c=Object.keys(b).length!==c}c?g.wt(a,b):Xu(a,void 0,b.postBody)}else c&&0===Object.keys(b).length?g.Wu(a):g.wt(a,b)}; Dx=function(){return g.Ga("ytNetworklessLoggingInitializationOptions")?Mx.isNwlInitialized:!1}; Hx=function(){return g.Ga("ytNetworklessLoggingInitializationOptions")?Mx.databaseToken:void 0}; Qx=function(a){var b,c,d,e,f,h,l,m;this.me=!1;this.potentialEsfErrorCounter=this.i=0;this.handleError=function(){}; this.Vr=function(){}; this.now=Date.now;this.WM=null!==(b=a.WM)&&void 0!==b?b:100;this.zM=null!==(c=a.zM)&&void 0!==c?c:1;this.sM=null!==(d=a.sM)&&void 0!==d?d:2592E6;this.jM=null!==(e=a.jM)&&void 0!==e?e:12E4;this.xM=null!==(f=a.xM)&&void 0!==f?f:5E3;this.databaseToken=null!==(h=a.databaseToken)&&void 0!==h?h:void 0;this.Vx=!!a.Vx;this.Kx=null!==(l=a.Kx)&&void 0!==l?l:.1;this.ME=null!==(m=a.ME)&&void 0!==m?m:10;a.handleError&&(this.handleError=a.handleError);a.Vr&&(this.Vr=a.Vr);this.Ga=a.Ga;this.mK=a.mK;this.qf=a.qf; this.Re=a.Re;this.uo=a.uo;this.FE=a.FE;this.gE=a.gE;this.databaseToken&&(!this.Ga||this.Ga("networkless_logging"))&&Px(this)}; Px=function(a){g.H(a,function c(){var d=this;return g.B(c,function(e){if(!d.databaseToken)return e.return();Rx(d);d.Re.Pe()&&d.Vw();d.Re.Sa(d.FE,d.Vw.bind(d));d.Re.Sa(d.gE,d.nI.bind(d));d.me=!0;return d.Vx&&Math.random()<=d.Kx?g.z(e,d.qf.sQ(d.databaseToken),0):e.ib(0)})})}; Tx=function(a,b){return g.H(a,function d(){var e=this,f,h;return g.B(d,function(l){switch(l.i){case 1:if(!e.databaseToken)throw f=g.qw("immediateSend"),f;if(void 0===b.id){l.ib(2);break}return g.z(l,e.qf.gS(b.id,e.databaseToken),3);case 3:(h=l.u)?b=h:e.Vr(Error("The request cannot be found in the database."));case 2:if(Sx(e,b,e.sM)){l.ib(4);break}e.Vr(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){l.ib(5);break}return g.z(l,e.qf.Er(b.id,e.databaseToken),5); case 5:return l.return();case 4:b.skipRetry||(b=wia(e,b));if(!b){l.ib(0);break}if(!b.skipRetry||void 0===b.id){l.ib(8);break}return g.z(l,e.qf.Er(b.id,e.databaseToken),8);case 8:e.uo(b.url,b.options,!!b.skipRetry),g.sa(l)}})})}; wia=function(a,b){if(!a.databaseToken)throw g.qw("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; b.options.onError=function(e,f){return g.H(a,function l(){var m=this,n;return g.B(l,function(p){switch(p.i){case 1:n=m;if(!(m.potentialEsfErrorCounter<=m.ME)){p.ib(2);break}if(!m.Re.Rk){p.ib(3);break}return g.z(p,m.Re.Rk(),3);case 3:if(m.Re.Pe())m.potentialEsfErrorCounter++;else return c(e,f),p.return();case 2:if(void 0===(null===b||void 0===b?void 0:b.id)){p.ib(5);break}return b.sendCount=c?!1:!0}; Rx=function(a){if(!a.databaseToken)throw g.qw("retryQueuedRequests");a.qf.vJ("QUEUED",a.databaseToken).then(function(b){b&&!Sx(a,b,a.jM)?g.Ku(0,function(){return g.H(a,function d(){var e=this;return g.B(d,function(f){if(1==f.i)return void 0===b.id?f.ib(2):g.z(f,e.qf.uM(b.id,e.databaseToken),2);Rx(e);g.sa(f)})})}):a.Re.Pe()&&a.Vw()})}; Ux=function(a,b){a.BN&&!a.Re.Pe()?a.BN(b):a.handleError(b)}; Vx=function(){Qx.call(this,{qf:{sQ:nia,Er:sx,vJ:px,gS:qx,uM:rx,set:ox},Re:new Bx({zK:!0,VI:!0}),handleError:g.ys,Vr:As,uo:xia,now:g.Q,BN:wx,mK:Mu(),FE:"publicytnetworkstatus-online",gE:"publicytnetworkstatus-offline",Vx:!0,Kx:.1,ME:vs("potential_esf_error_limit",10),Ga:g.us});this.Vx&&Math.random()<=this.Kx&&this.databaseToken&&pia();g.us("networkless_immediately_drop_sw_health_store")&&yia(this);g.us("networkless_immediately_drop_all_requests")&&oia();ix("LogsDatabaseV2")}; Wx=function(){var a=g.Ga("yt.networklessRequestController.instance");a||(a=new Vx,g.Fa("yt.networklessRequestController.instance",a,void 0),g.us("networkless_logging")&&g.fx().then(function(b){a.databaseToken=b;Px(a)})); return a}; yia=function(a){g.H(a,function c(){var d=this,e,f;return g.B(c,function(h){e=d;if(!d.databaseToken)throw f=g.qw("clearSWHealthLogsDb"),f;return h.return(qia().catch(function(l){e.handleError(l)}))})})}; xia=function(a,b,c){var d;if(null===(d=b.postParams)||void 0===d?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.Q)());if(g.us("networkless_with_beacon")){c=b;var e=["method","postBody"];if(Object.keys(c).length>e.length)c=!0;else{d=0;e=g.r(e);for(var f=e.next();!f.done;f=e.next())c.hasOwnProperty(f.value)&&d++;c=Object.keys(c).length!==d}c?g.wt(a,b):Xu(a,void 0,b.postBody)}else c&&0===Object.keys(b).length?g.Wu(a):g.wt(a,b)}; g.Xx=function(a){this.config_=null;a?this.config_=a:Mv()&&(this.config_=g.uv())}; g.vv=function(a,b,c,d){function e(m){try{(void 0===m?0:m)&&d.retry&&!d.RK.bypassNetworkless?(f.method="POST",d.RK.writeThenSend?g.us("use_new_nwl")?Wx().writeThenSend(l,f):uia(l,f):g.us("use_new_nwl")?Wx().sendAndWrite(l,f):Jx(l,f)):(f.method="POST",f.postParams||(f.postParams={}),g.wt(l,f))}catch(n){if("InvalidAccessError"==n.name)As(Error("An extension is blocking network request."));else throw n;}} !g.P("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&As(new g.hw("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.hw("innertube xhrclient not ready",b,c,d),g.ys(a),a;var f={headers:{"Content-Type":"application/json"},method:"POST",postParams:c,postBodyFormat:"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(m,n){if(d.onSuccess)d.onSuccess(n)}, onFetchSuccess:function(m){if(d.onSuccess)d.onSuccess(m)}, onError:function(m,n){if(d.onError)d.onError(n)}, onFetchError:function(m){if(d.onError)d.onError(m)}, timeout:d.timeout,withCredentials:!0};c="";var h=a.config_.YJ;h&&(c=h);h=Lha(a.config_.aK||!1,c,d);Object.assign(f.headers,h);f.headers.Authorization&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;h={alt:"json"};a.config_.ZJ&&f.headers.Authorization||(h.key=a.config_.innertubeApiKey);var l=dt(""+c+b,h);g.us("use_new_nwl")||Dx()?ex().then(function(m){e(m)}):e(!1)}; g.cw=function(a,b,c){c=void 0===c?{}:c;var d=g.Xx;g.P("ytLoggingEventsDefaultDisabled",!1)&&g.Xx==g.Xx&&(d=null);yv(a,b,d,c)}; Bia=function(){var a=void 0===a?window.location.href:a;if(g.us("kevlar_disable_theme_param"))return null;var b=ni(g.pi(5,a));if(zia(b))return"USER_INTERFACE_THEME_DARK";try{var c=g.Gs(a).theme;return Aia.get(c)||null}catch(d){}return null}; zia=function(a){var b=Cia.map(function(c){return c.toLowerCase()}); return!g.us("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1}; Zx=function(a,b,c){a&&(a.dataset?a.dataset[Yx(b)]=String(c):a.setAttribute("data-"+b,c))}; $x=function(a){return a?a.dataset?a.dataset[Yx("loaded")]:a.getAttribute("data-loaded"):null}; Yx=function(a){return ay[a]||(ay[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))}; by=function(a){if(a.requestFullscreen)a=a.requestFullscreen(void 0);else if(a.webkitRequestFullscreen)a=a.webkitRequestFullscreen();else if(a.mozRequestFullScreen)a=a.mozRequestFullScreen();else if(a.msRequestFullscreen)a=a.msRequestFullscreen();else if(a.webkitEnterFullscreen)a=a.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return a instanceof Promise?a:Promise.resolve()}; ey=function(a){var b;g.cy()?dy()==a&&(b=document):b=a;return b&&(a=ou(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()}; fy=function(a){return g.eb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})}; Dia=function(){var a=document;return g.eb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})}; g.cy=function(){return!!ou(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; dy=function(a){a=void 0===a?!1:a;var b=ou(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null}; gy=function(a){g.I.call(this);this.D=[];this.Qa=a||this}; hy=function(a,b,c,d){for(var e=0;e>3;switch(e&7){case 0:e=uz(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=uz(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}; xz=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(Tia,""),c=c.replace(Uia,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Via(a,b,c)}; Via=function(a,b,c){c=void 0===c?null:c;var d=Zz(a),e=document.getElementById(d),f=e&&$x(e),h=e&&!f;f?b&&b():(b&&(f=g.cv(d,b),b=""+g.Na(b),$z[b]=f),h||(e=Wia(a,d,function(){$x(e)||(Zx(e,"loaded","true"),g.ev(d),g.ot(g.Oa(gv,d),0))},c)))}; Wia=function(a,b,c,d){d=void 0===d?null:d;var e=g.Cg("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.$k(e,g.cr(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e}; Zz=function(a){var b=document.createElement("a");g.pd(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+xd(a)}; cA=function(a,b){for(var c=[],d=1;dMath.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.hw(a);if(a.args)for(var f=g.r(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign(Object.assign({},h),d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot: "+b.sb:"");c&&(d.layout=c?"layout: "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.zz(a)}}; nA=function(a,b,c,d,e,f,h){g.I.call(this);this.B=a;this.u=b;this.UB=c;this.Pa=d;this.C=e;this.i=f;this.Ja=h}; oA=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.i=f}; bja=function(a,b,c,d){this.B=a;this.je=null;this.u=b;this.i=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d}; pA=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.zz(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a}; qA=function(a,b,c){return b&&b.test(a)||cja&&c&&c.test(a)?!0:!1}; rA=function(a){return(a=dja&&dja.exec(a))?a[0]:""}; sA=function(a){var b=void 0===b?!1:b;return pA(qA(a,eja,fja),a,b,"Trusted Stream URL")}; g.tA=function(a){var b=void 0===b?!1:b;return pA(qA(a,gja,null),a,b,"Trusted Image URL")}; ija=function(a){var b=void 0===b?!1:b;return pA(qA(a,hja,null),a,b,"Trusted Ad Domain URL")}; kja=function(a){var b=void 0===b?!1:b;return pA(qA(a,jja,null),a,b,"Trusted Promoted Video Domain URL")}; mja=function(a){var b=void 0===b?!1:b;return pA(qA(a,lja,null),a,b,"Drm Licensor URL")}; oja=function(a,b){b=void 0===b?!1:b;return pA(qA(a,nja,null),a,b,"Captions URL")}; pja=function(a){a=new g.Yj(a);g.Zj(a,document.location.protocol);g.ak(a,document.location.hostname);document.location.port&&g.bk(a,document.location.port);return a.toString()}; uA=function(a){a=new g.Yj(a);g.Zj(a,document.location.protocol);return a.toString()}; g.wA=function(a,b,c){this.start=a;this.end=b;this.active=!0;this.color="";this.u=qja++;a=c||{};this.id=a.id||"";this.priority=a.priority||7;this.visible=a.visible||!1;this.style=a.style||vA.AD_MARKER;this.namespace=a.namespace||"";if(b=a.color)b=b.toString(16),this.color="#"+Array(7-b.length).join("0")+b;this.tooltip=a.tooltip;this.icons=a.icons?a.icons.filter(function(d){return g.Cm(d.thumbnails,function(e){return g.tA(e.url)})}):null; this.visible=this.visible;this.style=this.style;this.start=this.start}; rja=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()}; sja=function(a,b){switch(a.style){case vA.CHAPTER_MARKER:return b?8:5;case vA.AD_MARKER:return 6;case vA.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; g.xA=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u}; g.yA=function(a){return"crn_"+a}; g.zA=function(a){return"crx_"+a}; AA=function(a,b,c,d,e){g.wA.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.i=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null}; BA=function(a){return"AD_PLACEMENT_KIND_START"==a.i}; tja=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i}; uja=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new jr(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new jr(Math.max(0,b.B-b.i),0x7ffffffffffff):new jr(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.i),a==d))break;return new jr(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d= b.je;a=1E3*d.startSecs;if(c){if(a1E5*Math.random()&&(c=new g.hw("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.zz(c)),!0):!1}; XA=function(a){return!!g.P("FORCE_CSI_ON_GEL",!1)||g.us("csi_on_gel")||g.us("enable_csi_on_gel")||g.us("unplugged_tvhtml5_csi_on_gel")||!!NA(a).useGel}; Eja=function(a,b,c){var d=YA(c);d.gelTicks&&(d.gelTicks["tick_"+a]=!0);c||b||(0,g.Q)();if(XA(c)){RA(c||"").tick[a]=b||(0,g.Q)();d=PA(c);var e=NA(c).cttAuthInfo;"_start"===a?(a=UA(),WA(a,"baseline_"+d)||g.cw("latencyActionBaselined",{clientActionNonce:d},{timestamp:b,cttAuthInfo:e})):UA().tick(a,d,b,e);Bja(c);return!0}return!1}; Jja=function(a,b,c){c=YA(c);if(c.gelInfos)c.gelInfos["info_"+a]=!0;else{var d={};c.gelInfos=(d["info_"+a]=!0,d)}if(a.match("_rid")){var e=a.split("_rid")[0];a="REQUEST_ID"}if(a in Fja){c=Fja[a];g.ib(Gja,c)&&(b=!!b);a in Hja&&"string"===typeof b&&(b=Hja[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},h=0;hc.duration?d:c},{duration:0}))&&0a)return!1}return!("function"!==typeof window.fetch||!window.ReadableStream)}; kB=function(a){if(a.Zu())return!1;a=a.getResponseHeader("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a}; lB=function(){if(!Tja)return!1;var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length}; mB=function(a,b){this.id=a;this.yc=b;this.captionTracks=[];this.i=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"}; nB=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.i=b||0}; oB=function(a,b){return a.u===b.u&&a.i===b.i&&a.B===b.B&&a.reason===b.reason}; qB=function(a,b,c,d){return new nB(g.pB[a]||0,g.pB[b]||0,c,d)}; rB=function(a){var b=g.pB.auto;return a.u===b&&a.i===b}; tB=function(a){return sB[a.i||a.u]||"auto"}; Uja=function(a,b){b=g.pB[b];return a.u<=b&&(!a.i||a.i>=b)}; uB=function(a,b){this.videoInfos=a;this.i=b;this.audioTracks=[];if(this.i){a=new Set;b=g.r(this.i);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.yc&&!a.has(c.yc.id)){var d=new mB(c.id,c.yc);a.add(c.yc.id);this.audioTracks.push(d)}}}; xB=function(a,b,c,d,e){var f=[],h=new Set,l=a.ma||a.gb,m={};if(vB(c)){for(var n in c.i)c.i.hasOwnProperty(n)&&(d=c.i[n],m[d.info.i]=[d.info]);return m}for(var p in c.i)if(c.i.hasOwnProperty(p)){n=c.i[p];var q=n.info.lc();if(""===n.info.i)f.push(q),f.push("unkn");else if("304"!==q&&"266"!==q||!a.bb)if(a.D&&n.info.video&&n.info.video.i>a.D)f.push(q),f.push("max"+a.D);else if(a.J&&n.info.video&&n.info.video.im&&(q=d));"9"===q&&l.h&&(d=DB(l["9"]),DB(l.h)>1.5*d&&(q="h"));a.ob&&c.isLive&&"("===q&&l.H&&1440>DB(l["("])&&(q="H");h&&e("vfmly."+yB(q));a=l[q];if(!a.length)return h&&e("novfmly."+yB(q)), Et();CB(a,b);return Ft(new uB(a,b))}; CB=function(a,b,c){c=void 0===c?[]:c;g.Ab(a,function(d,e){var f=e.video.height*e.video.width-d.video.height*d.video.width;if(!f&&c&&0c&&(b=a.K&&(a.ea||zB(a,AB.FRAMERATE))?g.No(b,function(d){return 32a.getLastSegmentNumber())a.segments=[];else{var c=db(a.segments,function(d){return d.Na>=b},a); 0a.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}; qC=function(a,b,c){var d=new kC(c);if(!mC(d,a))return!1;d=nC(d);if(!oC(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.i;var e=pC(d,!0);d=a+(d.start+d.i-b)+e;d=9b;b++)c=256*c+wC(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+wC(a),d*=128;return b?c-d:c}; tC=function(a){var b=pC(a,!0);a.i+=b}; rC=function(a){var b=a.i;a.i=0;var c=!1;try{oC(a,440786851)&&(a.i=0,oC(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.i=0,c=!1,g.zz(d);else throw d;}a.i=b;return c}; Aka=function(a){if(!oC(a,440786851,!0))return null;var b=a.i;pC(a,!1);var c=pC(a,!0)+a.i-b;a.i=b+c;if(!oC(a,408125543,!1))return null;pC(a,!0);if(!oC(a,357149030,!0))return null;var d=a.i;pC(a,!1);var e=pC(a,!0)+a.i-d;a.i=d+e;if(!oC(a,374648427,!0))return null;var f=a.i;pC(a,!1);var h=pC(a,!0)+a.i-f,l=new Uint8Array(c+12+e+h),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,h),c+12+e);return l}; xC=function(a){var b=a.i;a.i=0;var c=1E6;mC(a,[408125543,357149030,2807729])&&(c=sC(a));a.i=b;return c}; Bka=function(a,b){var c=a.i;a.i=0;if(160!==a.u.getUint8(a.i)&&!yC(a)||!oC(a,160))return a.i=c,NaN;pC(a,!0);var d=a.i;if(!oC(a,161))return a.i=c,NaN;pC(a,!0);wC(a);var e=wC(a)<<8|wC(a);a.i=d;if(!oC(a,155))return a.i=c,NaN;d=sC(a);a.i=c;return(e+d)*b/1E9}; yC=function(a){if(!Cka(a)||!oC(a,524531317))return!1;pC(a,!0);return!0}; Cka=function(a){if(rC(a)){if(!oC(a,408125543))return!1;pC(a,!0)}return!0}; mC=function(a,b){for(var c=0;cb.ai?1E3*Math.pow(b.Wg,c-b.ai):0;return 0===b?!0:a.J+b<(0,g.Q)()}; FC=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.i=null;this.C=!1;this.D=null;this.N=0;this.J=this.B=null;this.info=b;this.u=new Ika(a)}; GC=function(a,b){var c=g.r(a.info.id.split(";")),d=c.next().value;c=c.next().value;return d+";"+(b?0:a.info.lastModified)+";"+(void 0===c?"":c)}; HC=function(a,b){this.start=a;this.end=b;this.length=b-a+1}; IC=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new HC(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0a.Cb&&b.Cb+b.u<=a.Cb+a.u}; Qka=function(a,b){var c=b.i;a.J="updateWithEmsg";a.Na=c;b.C&&(a.B=b.C)}; RC=function(a,b){var c=b.Na;a.J="updateWithSegmentInfo";a.Na=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,Mka(a)}; SC=function(a,b){this.i=a;this.B=null;this.D=this.Le=NaN;this.J=this.requestId=null;this.u=a[0].i.u;this.C=b||"";this.range=this.i[0].range&&0=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new LB(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}}; eD=function(){this.count=0;this.B=1;this.u=!1;this.offsets=new Float64Array(128);this.i=new Float64Array(128)}; fD=function(a){a.offsets.lengthc&&(c=a.totalLength-b);a.focus(b);if(!jD(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.i[a.u].length-e);for(var f=0,h=d;h<=a.u;h++)e.set(a.i[h],f),f+=a.i[h].length;a.i.splice(d,a.u-d+1,e);iD(a);a.focus(b)}d=a.i[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)}; kD=function(a,b,c){a=hla(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}; ila=function(a){a=kD(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;ce)b=!1;else{for(d=e-1;0<=d;d--)c.u.setUint8(c.i+d,b&255),b>>>=8;c.i=a;b=!0}else b=!1;return b}; pD=function(a,b){b=void 0===b?!1:b;var c=qla(a);a=b?0:a.info.K;return c||a}; qla=function(a){g.oD(a.info.i.info)||a.info.i.info.ue();if(a.u&&6===a.info.type)return a.u.Ni;if(g.oD(a.info.i.info)){var b=nD(a);var c=0;b=g.jC(b,1936286840);b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=tka(d.value),c+=d.xF[0]/d.CF;c=c||NaN;if(!(0<=c))a:{c=nD(a);b=a.info.i.i;for(var e=d=0,f=0;eC(c,d);){var h=fC(c,d);if(1836476516===h.type)e=g.bC(h);else if(1836019558===h.type){!e&&b&&(e=cC(b));if(!e){c=NaN;break a}var l=dC(h.data,h.dataOffset,1953653094),m=e,n=dC(l.data,l.dataOffset,1952868452); l=dC(l.data,l.dataOffset,1953658222);var p=TB(n);TB(n);p&2&&TB(n);n=p&8?TB(n):0;var q=TB(l),t=q&1;p=q&4;var u=q&256,x=q&512,y=q&1024;q&=2048;var A=UB(l);t&&TB(l);p&&TB(l);for(var E=t=0;E=c+d)break}e.length||g.yz(new g.hw("b189619593",""+b,""+c,""+d));return new SC(e)}; sD=function(a,b,c,d){this.sampleRate=a||0;this.numChannels=b||0;this.spatialAudioType=c||0;this.itag=d||""}; tla=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d}; uD=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||tD(a,b);this.i=g.pB[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=h)||(a=g.pB[this.quality],0===a?a="Autom\u00e1tica":(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"}; yD=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0=b)return c}catch(d){}return-1}; PD=function(a,b){return 0<=OD(a,b)}; xla=function(a,b){if(!a)return NaN;b=OD(a,b);return 0<=b?a.start(b):NaN}; QD=function(a,b){if(!a)return NaN;b=OD(a,b);return 0<=b?a.end(b):NaN}; RD=function(a){return a&&a.length?a.end(a.length-1):NaN}; yla=function(a,b){a=QD(a,b);return 0<=a?a-b:0}; SD=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 MD(d,e)}; TD=function(a,b,c,d){g.R.call(this);var e=this;this.qd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.JJ={error:function(){!e.isDisposed()&&e.isActive&&e.Z("error",e)}, updateend:function(){!e.isDisposed()&&e.isActive&&e.Z("updateend",e)}}; ky(this.qd,this.JJ);this.ex=this.isActive}; g.UD=function(a,b,c){c=void 0===c?{}:c;this.errorCode=a;this.i=b;this.details=c}; g.VD=function(a){var b;for(b in a)if(a.hasOwnProperty(b)&&void 0!==a[b]){var c=(""+a[b]).replace(/[:,=]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""}; WD=function(a){var b=void 0===b?!1:b;if(a instanceof g.UD)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.yz(a):g.zz(a);return new g.UD(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})}; XD=function(a,b,c,d,e){var f;g.R.call(this);var h=this;this.Tb=a;this.He=b;this.id=c;this.containerType=d;this.isVideo=e;this.oK=this.Yy=this.Qe=null;this.appendWindowStart=this.timestampOffset=0;this.jI=MD([],[]);this.Ex=!1;this.qe=function(l){return h.Z(l.type,h)}; if(null===(f=this.Tb)||void 0===f?0:f.addEventListener)this.Tb.addEventListener("updateend",this.qe),this.Tb.addEventListener("error",this.qe)}; YD=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; ZD=function(a,b){this.i=a;this.u=void 0===b?!1:b;this.B=!1}; $D=function(a,b,c){c=void 0===c?!1:c;g.I.call(this);this.mediaSource=a;this.He=b;this.isView=c;this.B=0;this.callback=null;this.events=new g.FD(this);g.J(this,this.events);this.Sv=new ZD(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.He.webkitMediaSourceURL,!0);a=this.mediaSource||this.He;hy(this.events,a,["sourceopen","webkitsourceopen"],this.mV);hy(this.events,a,["sourceclose","webkitsourceclose"],this.lV)}; zla=function(a,b){aE(a)?g.Xg(function(){b(a)}):a.callback=b}; aE=function(a){try{return"open"===bE(a)}catch(b){return!1}}; bE=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.He.webkitSourceState){case a.He.SOURCE_OPEN:return"open";case a.He.SOURCE_ENDED:return"ended";default:return"closed"}}; cE=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)}; Ala=function(a,b,c,d){if(!a.i||!a.u)return null;var e=a.i.isView()?a.i.qd:a.i,f=a.u.isView()?a.u.qd:a.u,h=new $D(a.mediaSource,a.He,!0);h.Sv=a.Sv;e=new TD(e,b,c,d);b=new TD(f,b,c,d);h.i=e;h.u=b;g.J(h,e);g.J(h,b);aE(a)||a.i.nA(a.i.Qc());return h}; Bla=function(a,b){return dE(function(c,d){return g.Ct(c,d,4,1E3)},a,b)}; g.Cla=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=PB(new Uint8Array(a.response))):b=a.responseText;return!b||2048a.V&&a.isLivePlayback;a.La=Number(XC(c,jE(a,"earliestMediaSequence")))||0;if(d=Date.parse(Vka(XC(c,jE(a,"mpdResponseTime")))))a.xa=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Cm(c.getElementsByTagName("Period"),a.SV,a);a.state=2;a.Z("loaded");Wla(a)}return a}),function(c){if(c instanceof At){var d=c.xhr; a.ma=d.status}a.state=3;a.Z("loaderror");return gh(d)})}; Yla=function(a,b,c){return Xla(new eE(a,b,c),a)}; kE=function(a){return a.isLive&&(0,g.Q)()-a.Ba>=a.V}; Wla=function(a){var b=a.V;isFinite(b)&&(kE(a)?a.refresh():(b=Math.max(0,a.Ba+b-(0,g.Q)()),a.C||(a.C=new g.M(a.refresh,b,a),g.J(a,a.C)),a.C.start(b)))}; Zla=function(a){a=a.i;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0}; lE=function(a){return a.D&&(a.u||a.Ha)?a.D-(a.u||a.timestampOffset):0}; mE=function(a){return a.J&&(a.u||a.Ha)?a.J-(a.u||a.timestampOffset):0}; nE=function(a){if(!isNaN(a.Aa))return a.Aa;var b=a.i,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.Ta&&(a.Aa=b);return b}if(a.isLive&&(d=b[c],d.Ni))return d.Ni}return NaN}; $la=function(a,b){a=Vb(a.i,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.Uz("yt-player-quality");if("string"===typeof a){if(a=g.pB[a],0a.previousQuality)return 1;if(a.quality=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;Qt()&&(b.isArm=1,a=240);if(c){e=c.videoInfos.find(function(h){return BD(h)}); if(e=null===(d=null===e||void 0===e?void 0:e.u)||void 0===d?void 0:d.powerEfficient)a=8192,b.isEfficient=1;c=c.videoInfos[0].video;var f=Math.min(rE("1",c.fps),rE("1",30));b.perfCap=f;a=Math.min(a,f);c.isHdr()&&!e&&(b.hdr=1,a*=.75)}else c=rE("1",30),b.perfCap30=c,a=Math.min(a,c),c=rE("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a}; uE=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.C=c;this.experiments=d;this.i={};this.u=this.keySystemAccess=null;this.J=this.K=-1;this.B=null;this.D="";this.N=!!d&&d.Ga("edge_nonprefixed_eme");this.D=d?g.tE(d,"html5_hdcp_probing_stream_url"):""}; wE=function(a){return a.N?!1:!a.keySystemAccess&&!!vE()&&"com.microsoft.playready"===a.keySystem}; xE=function(a){return"com.microsoft.playready"===a.keySystem}; yE=function(a){return!a.keySystemAccess&&!!vE()&&"com.apple.fps.1_0"===a.keySystem}; zE=function(a){return"com.youtube.fairplay"===a.keySystem}; g.AE=function(a){return"fairplay"===a.flavor}; vE=function(){var a=window,b=a.MSMediaKeys;Wt()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null}; BE=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.lj&&!g.Rt())return lr("45");if(g.cx||g.ke)return a.Ga("edge_nonprefixed_eme");if(g.mj)return lr("47");if(g.nj){if(a.Ga("html5_enable_safari_fairplay"))return!1;if(a=g.T(a,"html5_safari_desktop_eme_min_version"))return lr(a)}return!0}; pma=function(a,b,c,d){var e=St(),f=(c=e||c&&Wt())?["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(CE.playready)):[].concat(g.v(CE.playready),g.v(f))}; DE=function(a,b,c,d,e){d=void 0===d?!1:d;g.I.call(this);this.experiments=b;this.useCobaltWidevine=d;this.Ca=e;this.i=[];this.u={};this.C={};this.callback=null;this.D=!1;this.B=[];this.initialize(a,!c);this.oa()}; rma=function(a,b){a.callback=b;a.B=[];BE(a.experiments)?EE(a):qma(a)}; EE=function(a){if(!a.isDisposed())if(0===a.i.length)a.callback(a.B);else{var b=a.i[0],c=a.u[b],d=sma(a,c);a.oa();navigator.requestMediaKeySystemAccess(b,d).then(zs(function(e){if(!a.isDisposed()){a.oa();c.keySystemAccess=e;if(xE(c)){e=GD();for(var f=g.r(Object.keys(a.C[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.i[h]=!!e.canPlayType(h)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.r(e.audioCapabilities),h=f.next();!h.done;h=f.next())tma(a,c,h.value);if(e.videoCapabilities)for(e= g.r(e.videoCapabilities),f=e.next();!f.done;f=e.next())tma(a,c,f.value)}a.B.push(c);a.U("html5_drm_fallback_to_playready_on_retry")||a.useCobaltWidevine?(a.i.shift(),EE(a)):a.callback(a.B)}}),zs(function(){a.oa(); a.D=!a.D&&"widevine"===a.u[a.i[0]].flavor;a.D||a.i.shift();EE(a)}))}}; tma=function(a,b,c){a.U("log_robustness_for_drm")?b.i[c.contentType]=c.robustness||!0:b.i[c.contentType]=!0}; sma=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};xE(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/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==b.flavor||a.D?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.lj&&Ot("windows nt")&&!a.U("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}), f=e,a.U("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.U("html5_query_sw_secure_crypto_for_android")&&(bu()||Pt())&&(a.Ca("swcrypto","1"),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]}; qma=function(a){if(vE()&&g.nj)a.oa(),a.B.push(new uE("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=uma(),c=g.eb(a.i,function(d){var e=a.u[d],f=!1,h=!1,l;for(l in a.C[e.flavor])b(l,d)&&(e.i[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h}); c?(a.oa(),a.B.push(a.u[c])):a.oa();a.i=[]}a.callback(a.B)}; uma=function(){var a=vE();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=GD(); return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}}; vma=function(){this.i=0}; wma=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Cs(b||"","&");var c={};g.Db(this.experimentIds,function(d){c[d]=!0}); this.experiments=c}; g.T=function(a,b){return Number(a.flags[b])||0}; g.tE=function(a,b){return(a=a.flags[b])?a.toString():""}; FE=function(a,b,c){this.experiments=a;this.ea=b;this.ma=void 0===c?!1:c;this.J=!!g.Ga("cast.receiver.platform.canDisplayType");this.D={};this.N=!1;this.i=new Map;this.K=!0;this.C=!this.experiments.Ga("html5_disable_protected_hdr");this.u=!1;this.V=this.experiments.Ga("html5_disable_vp9_encrypted");a=g.Ga("cast.receiver.platform.getValue");this.B=!this.J&&a&&a("max-video-resolution-vpx")||null}; Vja=function(a,b,c){c=void 0===c?1:c;var d,e=b.lc();if("0"===e||a.experiments.Ga("html5_blocking_media_capabilities")&&(null===(d=b.u)||void 0===d?0:d.supported))return!0;var f=b.mimeType;if(b.ue()&&St()&&a.experiments.Ga("html5_appletv_disable_vp9"))return"dwebm";if(BD(b)&&a.N)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(zB(a,AB.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24=a*b?null:new g.gg(a,b)}; ZE=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(Oma))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0=jF;m=b?b.useNativeControls:a.use_native_controls;this.D=(this.U("embeds_enable_mobile_custom_controls")||!1===m&&!this.U("embeds_use_native_controls_killswitch"))&& g.fF(this)&&this.i;n=this.i&&!this.D;m=kF(this)||!q&&VE(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType="0"!==n&&0!==n?m:"0";this.Vc=this.i;this.color=WE("red",b&&l?b.progressBarColor:a.color,Vma);this.ll="3"===this.controlsType||VE(!1,b&&l?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.gb=!this.u;this.Pj=(m=!this.gb&&!hF(this)&&!this.N&&!this.J&&!gF(this))&&!this.ll&&"1"===this.controlsType;this.Db=g.lF(this)&&m&&"0"===this.controlsType&&!this.Pj;this.wl=this.ql= q;this.Wi=mF&&!g.be(601)?!1:!0;this.dk=this.u||!1;this.Fc=hF(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=YE("",b&&l?b.widgetReferrer:a.widget_referrer);var t;b&&l?b.disableCastApi&&(t=!1):t=a.enablecastapi;t=!this.B||VE(!0,t);q=!0;b&&b.disableMdxCast&&(q=!1);this.Nf=this.U("enable_cast_for_web_unplugged")&&g.nF(this)&&q||this.U("enable_cast_on_music_web")&&g.oF(this)&&q||t&&q&&"1"===this.controlsType&&!this.i&&(hF(this)||g.lF(this)||g.pF(this))&&!g.qF(this); this.vl=JD()||KD();t=b?!!b.supportsAutoplayOverride:VE(!1,a.autoplayoverride);this.bh=!this.i&&!Ot("nintendo wiiu")&&!Ot("nintendo 3ds")||t;t=b?!!b.enableMutedAutoplay:VE(!1,a.mutedautoplay);q=this.U("embeds_enable_muted_autoplay")&&g.fF(this);this.Uc=t&&q&&this.ma&&!kF(this);t=(hF(this)||gF(this))&&"blazer"===this.playerStyle;this.Jg=b?!!b.disableFullscreen:!VE(!0,a.fs);this.Xa=!this.Jg&&(t||g.cy());this.Lh=this.U("uniplayer_block_pip")&&(Pt()&&lr(58)&&!bu()||Zt);t=g.fF(this)&&!this.Oi;var u;b?void 0!== b.disableRelatedVideos&&(u=!b.disableRelatedVideos):u=a.rel;this.Ab=t||VE(!this.J,u);this.Vi=VE(!1,b&&l?b.enableContentOwnerRelatedVideos:a.co_rel);this.K=bu()&&0=jF?"_top":"_blank";this.Oc=g.pF(this);this.Wg=VE("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":u="bl";break;case "gmail":u="gm";break;case "books":u="gb";break;case "docs":u="gd";break;case "duo":u="gu";break;case "google-live":u="gl";break;case "google-one":u="go";break;case "play":u= "gp";break;case "chat":u="hc";break;case "hangouts-meet":u="hm";break;case "photos-edu":case "picasaweb":u="pw";break;default:u="yt"}this.Aa=u;this.ea=YE("",b&&l?b.authorizedUserIndex:a.authuser);this.Gi=g.fF(this)&&(this.Qa||this.experiments.Ga("embeds_web_enable_hiding_login_buttons")&&(!Lt()||bu()||$t())||this.experiments.Ga("embeds_web_enable_always_hiding_login_buttons"));var x;b?void 0!==b.disableWatchLater&&(x=!b.disableWatchLater):x=a.showwatchlater;this.Sj=((u=!this.Gi)||!!this.ea&&u)&&VE(!this.N, this.B?x:void 0);this.Mf=b?!!b.disableKeyboardControls:VE(!1,a.disablekb);this.loop=VE(!1,a.loop);this.pageId=YE("",!this.U("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.ul=VE(!0,a.canplaylive);this.rb=VE(!1,a.livemonitor);this.disableSharing=VE(this.J,b?b.disableSharing:a.ss);this.Xi=Nma(b&&this.U("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override);this.mute=b?!!b.startMuted:VE(!1,a.mute);this.storeUserVolume=!this.mute&& VE("0"!==this.controlsType,b&&!this.U("store_user_volume_override_from_wpcc_killswitch_2")?b.storeUserVolume:a.store_user_volume);x=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:WE(void 0,x,rF);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":YE("",a.cc_lang_pref);x=WE(2,b&&l?b.captionsLanguageLoadPolicy:a.cc_load_policy,rF);"3"===this.controlsType&&2===x&&(x=3);this.Ta=x;this.Be=b?b.hl||"en_US":YE("en_US",a.hl);this.region=b?b.contentRegion|| "US":YE("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":YE("en",a.host_language);this.Uj=!this.Qa&&Math.random()Math.random();this.Nc=a.onesie_hot_config||(null===b||void 0===b?0:b.onesieHotConfig)?new Dma(a.onesie_hot_config,null===b||void 0===b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b&&!this.U("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.hc=new Lma;g.J(this,this.hc);this.Fi=VE(!1,a.force_gvi);this.datasyncId=(null===b||void 0=== b?void 0:b.datasyncId)||g.P("DATASYNC_ID",void 0);this.il=g.P("LOGGED_IN",!1);this.Tj=(null===b||void 0===b?void 0:b.allowWoffleManagement)||!1;this.Kh=0;if(this.U("html5_generate_session_po_token")){a=g.uF(this)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo";try{this.eh=hca({pm:a}),this.eh.ready().then(function(){wF(h)})}catch(E){E instanceof Error&&g.zz(E)}}if(this.U("html5_onesie")||this.U("html5_host_selector"))this.ol=new zma}; sF=function(a,b,c){c=void 0===c?!1:c;a.Xb=YE(a.Xb,b.video_id);a.Ba=YE(a.Ba,b.eventid);a.Ba&&(ty=a.Ba);for(var d=[],e=g.r(Object.keys($ma)),f=e.next();!f.done;f=e.next()){f=$ma[f.value];var h=b[f];null!=h&&(h!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=h)}!c&&0Number(c.get("dhmu",b.toString()))}; g.LF=function(a){return(a.deviceHasDisplay&&g.lj&&!Zt&&"3"!==a.controlsType?g.au?a.u&&g.be(51):!0:!1)||(a.deviceHasDisplay&&g.mj&&!Zt&&"3"!==a.controlsType?g.au?a.u&&g.be(48):g.be(38):!1)||(a.deviceHasDisplay&&g.dF&&!Zt&&"3"!==a.controlsType?g.au?a.u&&g.be(37):g.be(27):!1)||a.deviceHasDisplay&&g.KF&&!Yt()&&g.be(11)||a.deviceHasDisplay&&g.nj&&g.be("604.4")}; dna=function(a){if(g.lF(a)&&iF)return!1;if(g.mj){if(!g.be(47)||!g.be(52)&&g.be(51))return!1}else if(g.nj)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; hF=function(a){return"detailpage"===a.Ma}; g.lF=function(a){return"embedded"===a.Ma}; MF=function(a){return"leanback"===a.Ma}; gF=function(a){return"adunit"===a.Ma||"gvn"===a.playerStyle}; g.pF=function(a){return"profilepage"===a.Ma}; g.fF=function(a){return a.u&&g.lF(a)&&!gF(a)&&!a.J}; Wma=function(a,b){if(g.tE(a.experiments,"html5_qoe_intercept"))return g.tE(a.experiments,"html5_qoe_intercept");a.gk?(b=b.vss_host||"s.youtube.com",a.U("www_for_videostats")&&"s.youtube.com"===b&&(b=bna(a.Ha)||"www.youtube.com")):b="video.google.com";return b}; NF=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(5===b.length)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(8===b.length)return b.splice(7,0,"s20-c"),b.join("/");if(9===b.length)return b[7]+="-s20-c",b.join("/");g.zz(new g.hw("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage}; g.OF=function(a){var b=g.AF(a);!a.U("yt_embeds_disable_new_error_lozenge_url")&&ena.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b}; Pma=function(a,b){b.brand&&(a.deviceParams.cbrand=b.brand);b.browser&&(a.deviceParams.cbr=b.browser);b.browserVersion&&(a.deviceParams.cbrver=b.browserVersion);a.deviceParams.c=b.interfaceName||"WEB";a.deviceParams.cver=b.interfaceVersion||"html5";b.interfaceTheme&&(a.deviceParams.ctheme=b.interfaceTheme);a.deviceParams.cplayer=b.interfacePlayerType||"UNIPLAYER";b.model&&(a.deviceParams.cmodel=b.model);b.network&&(a.deviceParams.cnetwork=b.network);b.os&&(a.deviceParams.cos=b.os);b.osVersion&&(a.deviceParams.cosver= b.osVersion);b.platform&&(a.deviceParams.cplatform=b.platform)}; wF=function(a){var b;g.H(a,function d(){var e=this,f,h,l;return g.B(d,function(m){if(!e.U("html5_generate_session_po_token")||null===(b=e.eh)||void 0===b||!b.isReady())return m.return();f=g.P("VISITOR_DATA",void 0);h=e.il?e.datasyncId:f;l=e.eh.rz({CI:h});e.Ug=g.fe(l,2);g.sa(m)})})}; bna=function(a){var b=g.qi(a);return(a=Number(g.pi(4,a))||null)?b+":"+a:b}; PF=function(a){this.i=a}; QF=function(a,b,c){if(c)return Et();var d={};c=GD();b=g.r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.df().mimeType)){var f=e.i.video.quality;if(!d[f]||d[f].df().ue())d[f]=e}var h=[];d.auto&&h.push(d.auto);g.Db(vD,function(l){(l=d[l])&&h.push(l)}); return h.length?Ft(h):Et()}; fna=function(a,b,c,d,e){this.B=a;this.u=b;this.D=c;this.cpn=d;this.J=e;this.C=0;this.i=""}; gna=function(a,b){a.B.some(function(c){var d;return(null===(d=c.yc)||void 0===d?void 0:d.getId())===b}); a.i=b}; RF=function(a,b,c){a.cpn&&(b=g.Bi(b,{cpn:a.cpn}));c&&(b=g.Bi(b,{Z$:c}));return b}; hna=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a}; ina=function(a){for(var b=[],c=[],d=g.r(a.u),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.C?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate}); c.sort(function(f,h){return f.bitrate-h.bitrate}); a.u=b.concat(c)}; jna=function(a){var b;this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;this.u=(null===(b=a.audioItag)||void 0===b?void 0:b.split(","))||[];this.vt=a.vt;this.td=a.td||"";this.yc=a.yc;this.audioChannels=a.audioChannels;this.i=""}; kna=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?!0:c;d=void 0===d?[]:d;var e={};a=g.r(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d.push(f.itag);d.push("tpus");continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){h=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/); m=m?m[1]:"";f.audio_track_id&&(h=new ED(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new jna({itag:f.itag,url:f.url,codecs:m,width:Number(f.width),height:Number(f.height),fps:Number(f.fps),bitrate:Number(f.bitrate),audioItag:f.audio_itag,vt:n?l[n]:void 0,td:f.drm_families,yc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d.push(f.itag),d.push("enchdr")}return e}; SF=function(a,b,c){this.i=a;this.B=b;this.expiration=c;this.u=null}; lna=function(a,b){if(!(Zt||Wt()||St()))return null;a=kna(b,a.experiments.Ga("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.r(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.r(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.yc&&(f=h.yc.getId(),c[f]||(h=new mB(f,h.yc),c[f]=h,b.push(h)))}}return 0x.width*x.height*x.fps)x=G}else t.push(G)}else l.push(E), l.push("disdrmhfr");u.reduce(function(V,L){return L.df().pj()&&V},!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;A=a.experiments.Ga("html5_native_audio_track_switching");u.push(pna(t,c,d,f,"93",x,p,n,m,"auto",e,q,y,A));l.length&&h(l.join("."));return QF(a.C,u,yF(a,b))}; pna=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){for(var x=0,y="",A=g.r(a),E=A.next();!E.done;E=A.next())E=E.value,y||(y=E.itag),E.audioChannels&&E.audioChannels>x&&(x=E.audioChannels,y=E.itag);e=new yD(e,"application/x-mpegURL",{audio:new sD(0,x,null,y),video:new uD(f,h,l,null,void 0,n,void 0,t),td:q});a=new fna(a,b,c?[c]:[],d,!!u);a.C=p?p:1369843;return new SF(e,a,m)}; mna=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}; ona=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""}; nna=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]}; TF=function(a,b){this.i=a;this.u=b}; rna=function(a,b,c,d){var e=[];c=g.r(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.FB(h.url,!0);if(h.s){var l=h.sp,m=eka(decodeURIComponent(h.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]);h=vla(h.type,h.quality,h.itag,h.width,h.height);e.push(new TF(h,f))}}return QF(a.C,e,yF(a,b))}; UF=function(a,b){this.i=a;this.u=b}; sna=function(a){var b=[];g.Db(a,function(c){if(c&&c.url){var d=vla(c.type,"medium","0");b.push(new UF(d,c.url))}}); return b}; tna=function(a,b,c){c=sna(c);return QF(a.C,c,yF(a,b))}; VF=function(a,b){this.type=a||"";this.id=b||""}; g.WF=function(a){return new VF(a.substr(0,2),a.substr(2))}; XF=function(a,b){for(var c={},d=g.r(Object.keys(una)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.tA(f)&&(c[una[e]]=f)}return c}; YF=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(vna)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=vna[e];for(var f=g.r(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=wna(h.url);g.tA(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=wna(a.url),g.tA(a)&&(b["maxresdefault.jpg"]=a));return b}; wna=function(a){return a.startsWith("//")?"https:"+a:a}; g.ZF=function(a,b){var c;this.u=a;this.author="";this.Qu=null;this.playlistLength=0;this.i=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=Cs(a,"&");this.i=(null===(c=b.thumbnail_ids)||void 0===c?void 0:c.split(",")[0])||null;this.V=XF(b,"playlist_");this.videoId=b.video_id||void 0;if(a=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new VF("UU","PLAYER_"+a)).toString(); break;default:var d=b.playlist_length;d&&(this.playlistLength=Number(d)||0);this.playlistId=g.WF(a).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.$F=function(a,b){this.i=a;this.Nm=this.author="";this.Qu=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Tp=this.lengthText="";this.sessionData=null;this.V={};this.title="";if(b){this.yl=b.aria_label||void 0;this.author=b.author||"";this.Nm=b.Nm||"";if(a=b.endscreen_autoplay_session_data)this.Qu=Cs(a,"&");this.Ru=b.Ru;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.Tp=b.Tp||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=Cs(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.V=XF(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}}; xna=function(){var a=g.Ga("ytDebugData.callbacks");a||(a={},g.Fa("ytDebugData.callbacks",a,void 0));return a}; bG=function(){void 0===aG&&(aG=g.Dr());return aG}; cG=function(){var a=bG();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}}; yna=function(a){var b=bG();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))}; dG=function(a){return cG()[a]||0}; eG=function(a,b){var c=cG();b!==c[a]&&(0!==b?c[a]=b:delete c[a],yna(c))}; zna=function(a){var b=cG();b=Object.assign({},b);a=Object.assign({},a);for(var c in b)a[c]?(4!==b[c]&&(b[c]=a[c]),delete a[c]):2!==b[c]&&(b[c]=4);Object.assign(b,a);yna(b);JSON.stringify(b);return b}; Ana=function(){return g.H(this,function b(){return g.B(b,function(c){return c.return(lia())})})}; g.fG=function(){return g.H(this,function b(){return g.B(b,function(c){return c.return(Bna().open())})})}; Cna=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.z(f,g.fx(),2);if(3!=f.i)return(d=f.u)?g.z(f,(0,g.fG)(),3):f.return();e=f.u;return f.return(Gw(e,["index","media","captions"],"readwrite",function(h){var l=IDBKeyRange.bound(a+"|",a+"~");h=[h.objectStore("index").delete(l),h.objectStore("media").delete(l),h.objectStore("captions").delete(l)];return tw.all(h).then(function(){})}))})})}; Fna=function(){return g.H(this,function b(){var c,d;return g.B(b,function(e){if(1==e.i)return g.z(e,g.fx(),2);if(3!=e.i){c=e.u;if(!c)throw g.qw("rvdfd");return g.z(e,(0,g.fG)(),3)}d=e.u;return e.return(Gw(d,["index","media"],"readwrite",function(f){var h={};return Nw(f.objectStore("index"),{},function(l){var m,n=l.getKey().match(/^([\w\-_]+)\|(a|v)$/),p=tw.resolve(void 0);if(n){var q=n[1];n=n[2];h[q]=h[q]||{};h[q][n]=Dna(null===(m=l.getValue())||void 0===m?void 0:m.fmts)}else p=l.delete().then(function(){}); return tw.all([l.continue(),p]).then(function(t){return g.r(t).next().value})}).then(function(){for(var l={},m=g.r(Object.keys(h)),n=m.next();!n.done;n=m.next()){n=n.value; var p=h[n].v;l[n]=h[n].a&&p?1:2}var q=zna(l);return Pw(f.objectStore("media"),{},function(t){var u=t.getKey().match(Ena);u&&l[u[1]]||f.objectStore("media").delete(t.getKey());return t.continue()}).then(function(){return q})})}))})})}; Gna=function(a,b){return g.H(this,function d(){var e,f;return g.B(d,function(h){if(1==h.i)return g.z(h,g.fx(),2);if(3!=h.i){e=h.u;if(!e)throw g.qw("wct");return g.z(h,(0,g.fG)(),3)}f=h.u;return g.z(h,Gw(f,["captions"],"readwrite",function(l){var m=[];l=l.objectStore("captions");for(var n=0;n> "+a.translationLanguage.languageName);return c.join("")}; Vna=function(a,b,c,d){a||(a=b&&Sna.hasOwnProperty(b)&&Tna.hasOwnProperty(b)?Tna[b]+"_"+Sna[b]:void 0);b=a;if(!b)return null;a=b.match(Una);if(!a||5!==a.length)return null;if(a=b.match(Una)){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}; Xna=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return Wna[a];return null}; mG=function(a){return a&&a.baseUrl||""}; nG=function(a){a=g.Gs(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}; Yna=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Aa=b)}; $na=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=Zna(d.baseUrl);if(!e)return;d=new g.iG({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.DA(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.OB=b.audioTracks||[];a.wK=b.defaultAudioTrackIndex||0;a.PB=b.translationLanguages?g.Bm(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.DA(f.languageName)}}): []; a.wl=!!b.contribute&&!!b.contribute.captionsMetadataRenderer}; aoa=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(h){var l=h.unserializedPlayerResponse;if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=h.playerVars)return Object.assign({is_yto_interstitial:!0},g.Es(h))}); 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,Mj:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Mj: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, Mj:0===f?5:7})}}}; boa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer}; coa=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)}; ioa=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=g.Es(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=doa[c]);(c=a.projectionType)&&(b.projection_type=eoa[c]);(c=a.stereoLayout)&&(b.stereo_layout=foa[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=goa[c]);if(d=a.drmFamilies){c=[];d=g.r(d);for(var e=d.next();!e.done;e=d.next())c.push(oG[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=Xna(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=hoa[a])&&(b.primaries=a);return g.zi(b)}; pG=function(a){g.R.call(this);this.i=null;this.B=new Hr;this.i=null;this.K=new Set;this.D=a||""}; joa=function(a,b,c){for(c=qG(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(Math.floor(b/(d.columns*d.rows)))&&(d=g.rG(d,b)))return d;c--}return g.rG(a.levels[0],b)}; loa=function(a,b,c){c=qG(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.K.has(h)||(d.K.add(h),Gr(d.B,f,{xK:f,KK:e}))}koa(a)}; koa=function(a){if(!a.i&&!a.B.isEmpty()){var b=a.B.remove();a.i=moa(a,b)}}; moa=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=a.levels[b.xK].Td(b.KK);c.onload=function(){var d=b.xK,e=b.KK;null!==a.i&&(a.i.onload=null,a.i=null);d=a.levels[d];d.loaded.add(e);koa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.ZC()-1);e=[e,d];a.Z("l",e[0],e[1])}; return c}; g.sG=function(a,b,c,d){this.level=a;this.D=b;this.loaded=new Set;this.level=a;this.D=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.B=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.i=Math.floor(Number(a[5]));this.C=a[6];this.signature=a[7];this.videoLength=d}; g.rG=function(a,b){b>=a.kB()&&a.Kt();var c=Math.floor(b/(a.columns*a.rows)),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Kt()+1-d*c;if(f=b)return a.C.set(b,d),d;a.C.set(b,c-1);return c-1}; uG=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.sG.call(this,a,b,c,0);this.u=null;this.J=d?2:0}; vG=function(a,b,c,d){tG.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;ab&&(YD()||d.U("html5_format_hybridization"))&&(p.u.supportsChangeType=+YD(),p.ea=b);2160<=b&&(p.Ab=!0);lma()&&(p.u.serveVp9OverAv1IfHigherRes=0,p.Fb=!1);p.YB=m;m=g.cx||cu()&&!m?!1:!0;p.Qa=m;p.xa=d.U("html5_format_hybridization");p.vb=d.U("html5_offline_av1_fallback");p.ma=d.U("html5_disable_codec_on_errors_with_exp_backoff");p.gb=d.U("html5_disable_codec_on_platform_errors");p.ob=d.U("html5_disable_encrypted_vp9_live_non_2k_4k");St()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&& a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(p.N=!0,p.V=!0);a.U("html5_match_codecs_for_gapless")&&a.Ma&&a.isAd()&&(a.ql&&(p.K=a.ql),a.ol&&(p.B=a.ol));p.La=a.isLivePlayback&&GG(a)&&a.B.U("html5_drm_live_audio_51");return a.Uc=p}; Foa=function(a){a.uc||a.i&&BB(a.i);var b={};a.i&&(b=xB(HG(a),a.B.C,a.i,function(c){return a.Z("ctmp","fmtflt",c)},!0)); b=new DE(b,a.B.experiments,a.NH,Eoa(a),function(c,d){a.Ca(c,d)}); g.J(a,b);a.Rj=!1;a.Ba=!0;rma(b,function(c){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.uc;e.K=a.ZR;e.J=a.YR;break;case "widevine":e.B=a.OH}a.bh=c;if(0y&&(y=G.df().audio.numChannels); 2=a.C.videoInfos.length)&&(b=CD(a.C.videoInfos[0]),b!=("fairplay"==a.J.flavor)))for(c=g.r(a.bh),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.J=d;break}}; OG=function(a,b){a.Db=b;Soa(a,new uB(g.Bm(a.Db,function(c){return c.df()})))}; Toa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.B.deviceParams.c,cver:a.B.deviceParams.cver};a.Cq&&(b.ptk=a.Cq,b.oid=a.pG,b.ptchn=a.oG,b.pltype=a.qG);return b}; g.PG=function(a){return CG(a)&&a.uc?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.u&&a.u.td||null}; Uoa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.DA(b.text):a.paidContentOverlayText}; QG=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?yd(b.durationMs):a.paidContentOverlayDurationMs}; RG=function(a){var b="";if(a.yF)return a.yF;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b}; g.SG=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]}; TG=function(a){return!!(a.eb||a.adaptiveFormats||a.Ii||a.Gi||a.hlsvp)}; yG=function(a){if(a.U("html5_onesie")&&a.errorCode)return!1;var b=g.ib(a.xa,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Ba&&(TG(a)||g.ib(a.xa,"heartbeat")||b)}; KG=function(a,b){a=Fs(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}; Boa=function(a,b){var c,d;a.showShareButton=!!b;var e=(null===(c=null===b||void 0===b?void 0:b.buttonRenderer)||void 0===c?void 0:c.navigationEndpoint)||(null===(d=null===b||void 0===b?void 0:b.buttonRenderer)||void 0===d?void 0:d.command);e&&(a.Zj=!!e.copyTextEndpoint)}; qoa=function(a,b){var c,d,e,f,h,l,m=b.raw_embedded_player_response;if(!m){var n=b.embedded_player_response;n&&(m=JSON.parse(n))}m&&(a.Tg=m);if(a.Tg){if(m=a.Tg.videoFlags)m.playableInEmbed&&(a.allowEmbed=!0),m.isPrivate&&(a.isPrivate=!0),m.userDisplayName&&(b.user_display_name=m.userDisplayName),m.userDisplayImage&&(b.user_display_image=m.userDisplayImage);if(m=a.Tg.embedPreview){m=m.thumbnailPreviewRenderer;n=m.controlBgHtml;null!=n?(a.Ta=n,a.D=!0):(a.Ta="",a.D=!1);if(n=m.defaultThumbnail)a.V=YF(n), a.sampledThumbnailColor=n.sampledThumbnailColor;(n=null===(c=null===m||void 0===m?void 0:m.videoDetails)||void 0===c?void 0:c.embeddedPlayerOverlayVideoDetailsRenderer)&&Coa(a,b,n);if(n=null===(d=null===m||void 0===m?void 0:m.videoDetails)||void 0===d?void 0:d.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.uD=n.title,a.OC=n.byline,n.musicVideoType&&(a.musicVideoType=n.musicVideoType);a.Mf=!!m.addToWatchLaterButton;Boa(a,m.shareButton);if(n=null===(h=null===(f=null===(e=null===m||void 0===m?void 0: m.playButton)||void 0===e?void 0:e.buttonRenderer)||void 0===f?void 0:f.navigationEndpoint)||void 0===h?void 0:h.watchEndpoint){var p,q=null===(p=null===n||void 0===n?void 0:n.watchEndpointSupportedOnesieConfig)||void 0===p?void 0:p.html5PlaybackOnesieConfig;q&&(a.Bq=new Rna(q));a.videoId=n.videoId||a.videoId}m.videoDurationSeconds&&(a.lengthSeconds=yd(m.videoDurationSeconds));a.U("web_player_include_innertube_commands")&&m.webPlayerActionsPorting&&coa(a,m.webPlayerActionsPorting);if(p=null===(l= null===m||void 0===m?void 0:m.playlist)||void 0===l?void 0:l.playlistPanelRenderer){m=[];n=Number(p.currentIndex);if(p.contents){q=0;for(var t=p.contents.length;q(b?parseInt(b[1],10):NaN);c=a.B;c=("TVHTML5_CAST"===c.deviceParams.c||"TVHTML5"===c.deviceParams.c&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.B.deviceParams.ctheme; !a.Be&&(c||cna(a.B))&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.U("cast_prefer_audio_only_for_atv_and_uploads")||a.U("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.Be=!0);return!a.B.deviceHasDisplay||a.Be&&a.B.B}; tH=function(a){return!!(a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.daiConfig&&a.playerResponse.playerConfig.daiConfig.enableDai)}; $oa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)}; vH=function(a){return uH(a)&&!!a.adaptiveFormats}; uH=function(a){return!!(a.U("woffle_orchestration")&&a.Hp&&a.B.B)}; zoa=function(a){if(a.U("woffle_orchestration")){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===dG(b);a=b&&!a.Hp}else a=!1;return a}; g.wH=function(a){if(!a.i||!a.u||!a.K)return!1;var b=a.i.i;return!!b[a.u.id]&&IB(b[a.u.id].u.i)&&!!b[a.K.id]&&IB(b[a.K.id].u.i)}; apa=function(a){return a.Gq?["OK","LIVE_STREAM_OFFLINE"].includes(a.Gq.status):!0}; Voa=function(a){return(a=a.Xi)&&a.showError?a.showError:!1}; g.IG=function(a){return a.U("disable_rqs")?!1:JG(a,"html5_high_res_logging")}; JG=function(a,b){return a.U(b)?!0:(a.fflags||"").includes(b+"=true")}; bpa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null}; voa=function(a,b){if(b=b.video_masthead_ad_quartile_urls)a.dG=b.quartile_0_url,a.kH=b.quartile_25_url,a.lH=b.quartile_50_url,a.pH=b.quartile_75_url,a.jH=b.quartile_100_url,a.Hq=b.quartile_0_urls,a.XA=b.quartile_25_urls,a.YA=b.quartile_50_urls,a.ZA=b.quartile_75_urls,a.WA=b.quartile_100_urls}; BG=function(a){return a?GE()?!0:xH&&5>yH?!1:!0:!1}; uoa=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}; Zna=function(a){if(a){if(oja(a))return a;a=pja(a);if(oja(a,!0))return a}return""}; g.cpa=function(a){return a.captionsLanguagePreference||a.B.captionsLanguagePreference||g.SG(a,"yt:cc_default_lang")||a.B.Be}; zH=function(a){return!!(a.U("enable_linear_player_handling")&&a.isLivePlayback&&a.hasProgressBarBoundaries())}; AH=function(a,b){this.i=a;this.Ma=b||{};this.K=String(Math.floor(1E9*Math.random()));this.J={};this.N=0}; dpa=function(a){return BH(a)&&1==a.getPlayerState(2)}; BH=function(a){a=a.Ic();return void 0!==a&&2==a.getPlayerType()}; CH=function(a){a=a.W();return tF(a)&&!g.GF(a)&&"desktop-polymer"==a.playerStyle}; DH=function(a,b){var c=a.W();kF(c)||"3"!=c.controlsType||a.fb().Iw(b)}; FH=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.yb=e;this.i=f;this.id=EH(a)}; EH=function(a){return a+(":"+(Ir.getInstance().i++).toString(36))}; GH=function(a){this.Y=a}; epa=function(a,b){if(0===b||1===b&&(a.Y.i&&g.nj?0:a.Y.i||g.GF(a.Y)||g.uF(a.Y)||vF(a.Y)||!g.nj))return!0;a=g.rg("video-ads");return null!=a&&"none"!==Zl(a,"display")}; fpa=function(a){switch(a){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}}; HH=function(){g.R.call(this);var a=this;this.i={};g.wf(this,function(){for(var b=g.r(Object.keys(a.i)),c=b.next();!c.done;c=b.next())delete a.i[c.value]})}; JH=function(){if(null===IH){IH=new HH;Em(zq).i="b";var a=Em(zq),b="h"==iq(a)||"b"==iq(a),c=!(Om(),!1);b&&c&&(a.D=!0,a.J=new Pfa)}return IH}; gpa=function(a,b,c){a.i[b]=c}; hpa=function(a){this.B=a;this.u={};this.i=Hl()?500:g.uF(a.W())?1E3:2500}; jpa=function(a,b){if(!b.length)return null;b=b.filter(function(c){if(!c.mimeType)return!1;c.mimeType in a.u||(a.u[c.mimeType]=a.B.canPlayType(c.mimeType));return a.u[c.mimeType]?!!c.mimeType&&"application/x-mpegurl"==c.mimeType.toLowerCase()||!!c.mimeType&&"application/dash+xml"==c.mimeType.toLowerCase()||"PROGRESSIVE"==c.delivery:!1}); return ipa(a,b)}; ipa=function(a,b){for(var c=null,d=g.r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.minBitrate,h=e.maxBitrate;f>a.i||ha.i||(!c||f>c.maxBitrate?c=e:c&&f==c.maxBitrate&&hc.maxBitrate&&(c=d));return c}; KH=function(a,b,c){this.i=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.nG||d)&&eI(a,"first_quartile");(b>=c*a.u.SECOND||d)&&eI(a,"midpoint");(b>=c*a.u.zH||d)&&eI(a,"third_quartile")}; hI=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(cd||d>c)return;eI(a,b)}; zpa=function(a,b,c){if(0l.C&&l.rh()}}; Jpa=function(a){if(a.D&&a.V){a.V=!1;a=g.r(a.D.listeners);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.i){var c=b.i;b.i=void 0;b.u=void 0;Ipa(b.B(),c)}else S("Received AdNotify terminated event when no slot is active")}}; g.zI=function(a,b){for(var c={},d=g.r(Object.keys(b)),e=d.next();!e.done;c={TA:c.TA},e=d.next())e=e.value,c.TA=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.TA}}(c)); return a}; AI=function(a){return a?g.DA(a):null}; Kpa=function(a){if(!a)return[];var b=a.loggingUrls;if(!b)return[];a=[];b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.baseUrl&&a.push(c.baseUrl);return 0===a.length?[]:a}; Lpa=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null}; Mpa=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}}; Ppa=function(a,b,c,d){if(b.button&&b.button.buttonRenderer&&(!b.button.buttonRenderer.command||!b.button.buttonRenderer.command.adInfoDialogChoiceEndpoint)&&b.button.buttonRenderer.serviceEndpoint&&b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint){var e=b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint.dialog;e&&e.adInfoDialogRenderer&&(Npa(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=AI(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&& Opa(a,b,c,d))}}; Npa=function(a,b,c){var d=AI(b.confirmLabel)||"",e=AI(b.title)||"",f=[];if(b.adReasons)for(var h=g.r(b.adReasons),l=h.next();!l.done;l=h.next())f.push(AI(l.value)||"");h=b.headerTitle?g.DA(b.headerTitle):"";d={closeButton:d,menuTitle:h,targetingReasonHeader:e,targetingReasons:f,dialogMessage:AI(b.dialogMessage)||"",adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};a.whyThisAdInfo=d;a.whyThisAdClicked=function(){if(b.impressionEndpoints)for(var m=g.r(b.impressionEndpoints), n=m.next();!n.done;n=m.next())c(n.value)}; a.whyThisAdClosed=function(){b.confirmServiceEndpoint&&c(b.confirmServiceEndpoint)}}; Opa=function(a,b,c,d){if(b.navigationEndpoint&&b.navigationEndpoint.adFeedbackEndpoint&&b.navigationEndpoint.adFeedbackEndpoint.content){var e=b.navigationEndpoint.adFeedbackEndpoint.content.adFeedbackRenderer;if(e){var f={goneText:"",questionText:"",undoText:"",hoverText:AI(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=Kpa(b.navigationEndpoint);var h=Mpa(b[1]),l=[Mpa(b[0])];(b=Lpa(e))&&l.push(b);var m=!1;a.muteAdClicked=function(){m=!0;c(h)}; a.muteAd=function(){m||c(h);m=!1;for(var n=g.r(l),p=n.next();!p.done;p=n.next())c(p.value)}; Qpa(a,e,d)}}}; Qpa=function(a,b,c){a.muteAdInfo.goneText=AI(b.title)||"";a.muteAdInfo.questionText=AI(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=AI(b.undoRenderer.buttonRenderer.text)||"");a.sendAdsPing=function(f){c(f)}; a=a.muteAdInfo.surveyOptions;b=g.r(b.reasons||[]);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=AI(e.reason)||"";e=Kpa(e.endpoint)[0];a.push({label:d,url:e})}}; BI=function(a,b,c,d,e,f){this.u=a;this.B=b;this.i=WH(d);if(f)for(a=g.r(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.i[b]=f[b];this.C=c;this.D=d;this.J=e}; Rpa=function(a,b,c){b.isSkippable=!0;b.skipTime=c.skipOffsetMilliseconds?Math.floor(c.skipOffsetMilliseconds/1E3):0;if(c.skippableRenderer)switch(Object.keys(c.skippableRenderer)[0]){case "skipButtonRenderer":var d=c.skippableRenderer.skipButtonRenderer;b.skip=function(){var e=d.adRendererCommands&&d.adRendererCommands.clickCommand;e?a.Bd(e):a.C.Gp()}; b.skipShown=function(){a.Bd(d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}}; Spa=function(a,b,c){Ppa(b,c,function(d){a.Bd(d)},function(d){a.sendAdsPing(d)})}; Tpa=function(a){if(a.D.W().experiments.Ga("dynamic_command_macro_resolution_on_tvhtml5_killswitch"))return a.B;for(var b={},c=g.r(Object.keys(a.i)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.i[d].toString();return Object.assign(b,a.B)}; Upa=function(){return{adNextParams:"",adSystem:0,attributionInfo:null,clickThroughUrl:"",executeCommand:function(){}, instreamAdPlayerOverlayRenderer:null,instreamSurveyAdRenderer:null,slidingTextPlayerOverlayRenderer:null,isBumper:!1,isPostroll:!1,isSkippable:!1,muteAdInfo:null,skipTime:0,videoId:"",videoUrl:"",whyThisAdInfo:null,muteAd:function(){}, muteAdClicked:function(){}, sendAdsPing:function(){}, skip:function(){}, endSurveyOnSubmitted:function(){}, skipShown:function(){}, whyThisAdClicked:function(){}, whyThisAdClosed:function(){}, daiEnabled:!1,remoteSlotsData:null,adBreakRemainingLengthSeconds:null,adBreakEndSeconds:null}}; Vpa=function(a,b,c,d,e){new BI(a,b,c,d,e,void 0)}; CI=function(a){this.value=a}; DI=function(a){this.value=a}; EI=function(a){this.value=a}; FI=function(a){this.value=a}; GI=function(){CI.apply(this,arguments)}; HI=function(a){this.value=a}; II=function(a){this.value=a}; JI=function(a){this.value=a}; KI=function(a){this.value=a}; LI=function(a){this.value=a}; MI=function(a){this.value=a}; NI=function(){CI.apply(this,arguments)}; OI=function(){CI.apply(this,arguments)}; PI=function(a){this.value=a}; QI=function(a){this.value=a}; RI=function(a){this.value=a}; SI=function(a){this.value=a}; TI=function(a){this.value=a}; UI=function(a){this.value=a}; VI=function(a){this.value=a}; WI=function(a){this.value=a}; XI=function(a){this.value=a}; YI=function(a){this.value=a}; ZI=function(a){this.value=a}; $I=function(a){this.value=a}; aJ=function(a){this.value=a}; bJ=function(a){this.value=a}; cJ=function(a){this.value=a}; dJ=function(a){this.value=a}; eJ=function(a){this.value=a}; fJ=function(a){this.value=a}; gJ=function(a){this.value=a}; hJ=function(a){this.value=a}; iJ=function(a){this.value=a}; jJ=function(a){this.value=a}; kJ=function(a){this.value=a}; lJ=function(a){this.value=a}; mJ=function(a){this.value=a}; nJ=function(a){this.value=a}; oJ=function(a){this.value=a}; pJ=function(a){this.value=a}; qJ=function(a){this.value=a}; rJ=function(a){this.value=a}; sJ=function(a){this.value=a}; tJ=function(a){this.value=a}; uJ=function(){CI.apply(this,arguments)}; vJ=function(){CI.apply(this,arguments)}; wJ=function(){CI.apply(this,arguments)}; xJ=function(){CI.apply(this,arguments)}; yJ=function(){CI.apply(this,arguments)}; zJ=function(a){var b,c;if(!a.questions||1!==a.questions.length||!a.playbackCommands)return!1;var d=(null===(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===b?void 0:b.surveyAdQuestionCommon)||(null===(c=a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer)||void 0===c?void 0:c.surveyAdQuestionCommon);return Wpa(d)?!0:!1}; Xpa=function(a){a=((null===a||void 0===a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;a?a.playbackCommands&&a.questions&&1===a.questions.length?(a=null===(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===b?void 0:b.surveyAdQuestionCommon,b=Wpa(a)):b=!1:b=!1;return b}; Wpa=function(a){if(!a)return!1;var b=(a.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;a=(null===b||void 0===b?void 0:b.skipOrPreviewRenderer)||{};var c=a.skipAdRenderer;b=((null===b||void 0===b?void 0:b.adInfoRenderer)||{}).adHoverTextButtonRenderer;return(a.adPreviewRenderer||c)&&b?!0:!1}; Zpa=function(a,b,c,d,e,f){this.i=new BI(a,b,c,d,e,Ypa(f))}; $pa=function(a,b){var c=Upa();c.instreamSurveyAdRenderer=b;c.executeCommand=function(d){a.i.Bd(d)}; b=("instreamSurveyAdSingleSelectQuestionRenderer"in b.questions[0]?b.questions[0].instreamSurveyAdSingleSelectQuestionRenderer:b.questions[0].instreamSurveyAdMultiSelectQuestionRenderer).surveyAdQuestionCommon.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer;if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":Rpa(a.i,c,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":Spa(a.i, c,b.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(d){a.i.sendAdsPing(d)}; return c}; Ypa=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=VH(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())}); b.SURVEY_ELAPSED_MS=VH(a);return b}; AJ=function(a,b,c){g.R.call(this,!0);var d=this;this.J=b;this.D=c;this.u=a;this.Lb=new g.uh(200);this.Lb.Sa("tick",function(){var e=Date.now(),f=e-d.C;d.C=e;d.i+=f;d.i>=d.u&&(d.i=d.u,d.Lb.stop());e=d.i/1E3;d.D&&d.D.Ob(e);aqa(d,{current:e,duration:d.u/1E3})}); g.J(this,this.Lb);this.i=0;this.B=null;g.wf(this,function(){d.B=null}); this.C=0}; aqa=function(a,b){a.J.Oa("onAdPlaybackProgress",b);a.B=b}; BJ=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;FH.call(this,"survey",a,{},b,c);this.Dg=d;this.Li=e}; CJ=function(a,b,c){g.R.call(this);var d=this;this.durationMs=a;this.D=b;this.J=c;this.B=!1;this.C=this.i=0;this.u=new g.uh(200);g.J(this,this.u);this.u.Sa("tick",function(){d.Ob()})}; DJ=function(){fB("pbp")||fB("pbs")||gB("pbp");fB("pbp","watch")||fB("pbs","watch")||gB("pbp",void 0,"watch")}; FJ=function(a,b,c,d,e,f,h){oI.call(this,a,b,c,d,e,1);var l=this;this.C=b;this.D=new gy;g.J(this,this.D);this.D.S(this.I,"resize",function(){450>l.I.fb().qg().width&&(g.jy(l.D),l.rg())}); this.V=0;this.K=null;this.N=h(this,function(){return""+(Date.now()-l.V)}); if(this.B=g.uF(a.W())?new AJ(1E3*b.u,a,f):null)g.J(this,this.B),this.D.S(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&EJ(l)})}; bqa=function(a,b){a.I.W().experiments.Ga("validate_tvhtml5_instream_survey_ad_renderer_in_bulleit")&&!zJ(b)?(g.yz(Error("Expected a valid VOD InstreamSurveyAdRenderer.")),a.hd("aderror")):(b=$pa(a.N,b),a.I.Oa("onAdInfoChange",b))}; EJ=function(a){var b=a.C.i;(b=b.questions&&b.questions[0])?(b=(b=b.instreamSurveyAdMultiSelectQuestionRenderer||b.instreamSurveyAdSingleSelectQuestionRenderer)&&b.surveyAdQuestionCommon,a.N.Bd(b&&b.timeoutCommands)):g.yz(Error("Expected a survey question in InstreamSurveyAdRenderer."))}; GJ=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;FH.call(this,"survey-interstitial",a,b,c,d);this.Dg=e;this.nF=f}; HJ=function(a,b,c,d,e){oI.call(this,a,b,c,d,e,1);this.B=b}; dqa=function(a,b){var c=void 0===c?!0:c;var d=g.P("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.qi(window.location.href);e&&d.push(e);e=g.qi(a);if(g.ib(d,e)||!e&&vc(a,"/"))if(g.us("autoescape_tempdata_url")&&(d=document.createElement("a"),g.pd(d,a),a=d.href),a&&(a=si(a),d=a.indexOf("#"),a=0>d?a:a.substr(0,d)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.Fy()},b)),f){var f=parseInt(f,10);isFinite(f)&&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{AQ:new jr(b,c),NR:new oA(b,c-b,a.context,a.identifier,a.event,a.i)}}; RJ=function(){this.i=[]}; SJ=function(a,b,c){var d=g.yb(a.i,b);if(0<=d)return b;b=-d-1;return b>=a.i.length||a.i[b]>c?null:a.i[b]}; pqa=function(){this.i=new RJ}; TJ=function(a){this.i=a}; qqa=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}; rqa=function(a,b,c){this.B=a;this.i=b;this.u=c;this.C=a.getCurrentTime()}; tqa=function(a,b){var c=void 0===c?Date.now():c;b=g.r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=c,f=a.i;UJ({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:sqa(d.event),cuepointId:d.identifier,totalCueDurationMs:1E3*d.durationSecs,playheadTimeMs:d.i,cueStartTimeMs:1E3*d.startSecs,cuepointReceivedTimeMs:e,contentCpn:f}});a.u&&("unknown"===d.event&&VJ("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.i),d=d.startSecs+d.i/1E3,d>a.C&&a.B.getCurrentTime()>d&&VJ("DAI_ERROR_TYPE_LATE_CUEPOINT", a.i))}}; uqa=function(a,b,c){a.u&&UJ({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.i}})}; vqa=function(a,b){a.u&&UJ({adTrimmingInfo:{contentCpn:a.i,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.kQ}})}; VJ=function(a,b){UJ({daiStateTrigger:{errorType:a,contentCpn:b}})}; UJ=function(a){g.cw("adsClientStateChange",a)}; sqa=function(a){switch(a){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START"}}; WJ=function(a){this.I=a;this.adVideoId=this.videoId=this.adCpn=this.contentCpn=null;this.B=!0;this.i=this.me=!1;this.adFormat=null;this.u="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; yqa=function(a,b,c,d,e){wqa(a,b,c,d,e,function(){xqa(a)})}; wqa=function(a,b,c,d,e,f){f();var h=a.I.getVideoData(1),l=a.I.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.u=b;0>=d?f():(a.actionType=a.B?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.me=!0,a.me&&(b={adBreakType:zqa(a.u),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)),a.adFormat&&(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),eB(b,a.actionType))))}; xqa=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.u="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.me=!1;a.i=!1}; Aqa=function(a){a.i=!1;bB("video_to_ad",void 0,void 0)}; Bqa=function(a){a.i=!1;bB("ad_to_ad",void 0,void 0)}; XJ=function(a){a.i=!1;bB("ad_to_video",void 0,void 0)}; Cqa=function(a){a.me&&!a.i&&(a.B=!1,a.i=!0,"ad_to_video"!==a.actionType&&(dB("apbs",void 0,a.actionType),g.us("finalize_all_timelines")&&(a=a.actionType,$A("c",a),SA(a),ZA(a))))}; zqa=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"}}; g.Eqa=function(a){return(a=Dqa[a.toString()])?a:"LICENSE"}; YJ=function(){g.I.call(this);this.u=null;this.J=this.D=!1;this.B=new g.Wf;g.J(this,this.B)}; ZJ=function(a){a=a.yv();return 1>a.length?NaN:a.end(a.length-1)}; Fqa=function(a,b,c){a.Im()||a.getCurrentTime()>b||10=Math.abs(b-a.i.i.end/1E3)):b=!0;if(b&&!a.i.D.hasOwnProperty("ad_placement_end")){b=g.r(a.i.ea);for(var d=b.next();!d.done;d=b.next())Kqa(d.value);a.i.D.ad_placement_end=!0}b=a.i.N;if(null!==b){d=a.Fl;var e=a.i.C&&a.i.C.identifier,f=a.i.i.start,h=nK(a);d.u&&UJ({driftRecoveryInfo:{contentCpn:d.i,cueIdentifier:e||void 0,driftRecoveryMs:b.toString(),breakDurationMs:Math.round(h- f).toString(),driftFromHeadMs:Math.round(1E3*d.B.xn()).toString()}});a.i.N=null}c||a.daiEnabled?oK(a.Of,!0):a.V&&a.tG()&&a.Nv()?oK(a.Of,!1,Pqa(a)):oK(a.Of,!1);yqa(a.C,a.i.i.i,!0,a.RC(),a.isLiveStream())}; Pqa=function(a){if(a.Aa)return function(c){c.seekTo(Infinity,!0,void 0,1)}; var b=Math.floor(g.Pa()/1E3)-a.xa;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}}; Qqa=function(a,b,c){this.i=a;this.u=b;this.B=c}; qK=function(){this.D=[];this.K=[];this.i=[];this.C=[];this.J=[];this.u=new Set;this.N=new Map}; rK=function(){qK.i||(qK.i=new qK);return qK.i}; Rqa=function(a,b,c){c=void 0===c?0:c;b.then(function(d){var e,f;a.u.has(c)&&a.B&&a.B();var h=g.Fy(c),l=g.Dy(c);h&&l&&((null===(e=d.response)||void 0===e?0:e.trackingParams)&&g.Gz(a.client,h,l,[g.zy(d.response.trackingParams)]),(null===(f=d.playerResponse)||void 0===f?0:f.trackingParams)&&g.Gz(a.client,h,l,[g.zy(d.playerResponse.trackingParams)]))})}; Sqa=function(a,b){sK(a,g.zy(b),void 0,void 0)}; sK=function(a,b,c,d){d=void 0===d?0:d;if(a.u.has(d))a.D.push([b,c]);else{var e=g.Fy(d);c=c||g.Dy(d);e&&c&&g.Gz(a.client,e,c,[b])}}; Uqa=function(a,b,c){c=void 0===c?{}:c;a.u.add(c.layer||0);a.B=function(){Tqa(a,b,c);var f=g.Dy(c.layer);if(f){for(var h=g.r(a.D),l=h.next();!l.done;l=h.next())l=l.value,sK(a,l[0],l[1]||f,c.layer);f=g.r(a.K);for(h=f.next();!h.done;h=f.next()){var m=h.value;h=void 0;h=void 0===h?0:h;l=g.Fy(h);var n=m[0]||g.Dy(h);l&&n&&(h=a.client,m=m[1],m={csn:l,ve:n.getAsJson(),clientData:m},n={cttAuthInfo:Gy(l),wm:l},"UNDEFINED_CSN"==l?Fz("visualElementStateChanged",m,n):h?yv("visualElementStateChanged",m,h,n):g.cw("visualElementStateChanged", m,n))}}}; g.Fy(c.layer)||a.B();if(c.QI)for(var d=g.r(c.QI),e=d.next();!e.done;e=d.next())Rqa(a,e.value,c.layer);else g.yz(Error("Delayed screen needs a data promise."))}; Tqa=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.RV?c.RV:c.layer;var e=g.Fy(d);d=g.Dy(d);var f;d&&(void 0!==c.parentCsn?f={clientScreenNonce:c.parentCsn,visualElement:d}:e&&"UNDEFINED_CSN"!==e&&(f={clientScreenNonce:e,visualElement:d}));var h,l=g.P("EVENT_ID");"UNDEFINED_CSN"===e&&l&&(h={servletData:{serializedServletEventId:l}});try{var m=a.client;l=f;var n=c.LI,p=c.cttAuthInfo,q=Vqa(),t={csn:q,pageVe:(new yy({veType:b,youtubeData:h})).getAsJson()};l&&l.visualElement?t.implicitGesture= {parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()}:l&&g.zz(new g.hw("newScreen() parent element does not have a VE - rootVe",b));n&&(t.cloneCsn=n);n={cttAuthInfo:p,wm:q};m?yv("screenCreated",t,m,n):g.cw("screenCreated",t,n);Rv(Mz,new Ez(q));var u=q}catch(x){Qia(x,{Gw:b,rootVe:d,parentVisualElement:void 0,I$:e,aaa:f,LI:c.LI});g.yz(x);return}Iy(u,b,c.layer,c.cttAuthInfo);if((b=e&&"UNDEFINED_CSN"!==e&&d)&&!(b=g.us("screen_manager_skip_hide_killswitch"))){a:{b=g.r(Object.values(Wqa)); for(f=b.next();!f.done;f=b.next())if(g.Fy(f.value)==e){b=!0;break a}b=!1}b=!b}b&&Iz(a.client,e,d,!0);a.i[a.i.length-1]&&!a.i[a.i.length-1].csn&&(a.i[a.i.length-1].csn=u||"");g.cB("csn",u);Qz.getInstance().clear();d=g.Dy(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.us("web_mark_root_visible")||g.us("music_web_mark_root_visible"))&&g.Hz(u,d,void 0);a.u.delete(c.layer||0);a.B=void 0;e=g.r(a.N);for(u=e.next();!u.done;u=e.next())b=g.r(u.value),u=b.next().value,b=b.next().value,b.has(c.layer)&&d&&sK(a,u,d,c.layer); for(c=0;cd.length||(d[0]in hra&&(f.clientName=hra[d[0]]),d[1]in ira&&(f.platform=ira[d[1]]),f.applicationState=h,f.clientVersion=2e&&(b+="0"));if(0f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d}; g.VL=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)}; WL=function(a,b,c,d,e,f){EL.call(this,a,b,{G:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e);this.videoAdDurationSeconds=f;this.u=null;this.hide()}; XL=function(a,b,c,d){CL.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")}; YL=function(a,b){this.u=a;this.i=b}; ZL=function(a){return a.i-a.u}; $L=function(a,b){return a.u+b*ZL(a)}; aM=function(a,b,c){return ZL(a)?g.ag((b-a.u)/ZL(a),0,1):null!=c?c:Infinity}; bM=function(a,b){g.ZK.call(this,{G:"div",L:"ytp-ad-persistent-progress-bar-container",T:[{G:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.J(this,this.u);this.Lc=this.Fa("ytp-ad-persistent-progress-bar");this.i=-1;this.S(a,"presentingplayerstatechange",this.B);this.hide();this.B()}; cM=function(a,b,c,d,e,f){$K.call(this,a,b,{G:"div",L:"ytp-ad-player-overlay",T:[{G:"div",L:"ytp-ad-player-overlay-flyout-cta"},{G:"div",L:"ytp-ad-player-overlay-instream-info"},{G:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-player-overlay-progress-bar"},{G:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d);this.D=f;this.K=this.Fa("ytp-ad-player-overlay-flyout-cta");this.u=this.Fa("ytp-ad-player-overlay-instream-info");this.B=null;ita(this)&&(a= Bg("div"),g.N(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 XL(this.api,this.Za,this.layoutId,this.yb),c.Ea(a),c.init(EH("ad-title"),{text:b.title},this.macros),g.J(this,c)),this.B=a);this.C=this.Fa("ytp-ad-player-overlay-skip-or-preview");this.Aa=this.Fa("ytp-ad-player-overlay-progress-bar");this.V=this.Fa("ytp-ad-player-overlay-instream-user-sentiment");this.i=e;g.J(this,this.i);this.hide()}; ita=function(a){a=a.api.W();return g.oF(a)&&a.i}; dM=function(a,b,c){var d={};b&&(d.v=b);c&&(d.list=c);a={name:a,locale:void 0,feature:void 0};for(var e in d)a[e]=d[e];d=g.Bi("/sharing_services",a);g.Wu(d)}; g.kta=function(a,b,c){b=jta(null,b,c);if(b=qd(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.cv("LOGGED_IN",function(d){g.dv(g.P("LOGGED_IN_PUBSUB_KEY",void 0));qs("LOGGED_IN",!0);a(d)}),qs("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)}; jta=function(a,b,c){var d="/signin?context=popup";c&&(d=document.location.protocol+"//"+c+d);c=document.location.protocol+"//"+document.domain+"/post_login";a&&(c=Ai(c,"mode",a));a=Ai(d,"next",c);b&&(a=Ai(a,"feature",b));return a}; lta=function(a,b){var c,d;if(!a)return!1;if((null===(c=a.signalServiceEndpoint)||void 0===c?0:c.signal)&&b.yq)return!!b.yq[a.signalServiceEndpoint.signal];if((null===(d=a.continuationCommand)||void 0===d?0:d.request)&&b.wC)return!!b.wC[a.continuationCommand.request];for(var e in a)if(b.tC[e])return!0;return!1}; mta=function(a,b){var c,d;if((null===(c=a.signalServiceEndpoint)||void 0===c?0:c.signal)&&b.yq){var e=b.yq[a.signalServiceEndpoint.signal];if(e)return new e}if((null===(d=a.continuationCommand)||void 0===d?0:d.request)&&b.wC&&(e=b.wC[a.continuationCommand.request]))return new e;for(var f in a)if(b.tC[f]&&(a=b.tC[f]))return new a}; ota=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=nta[b];if(c){var d=new RegExp(c),e=g.r(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(nta).forEach(function(h){var l=g.r(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)}); d=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length}); e=g.r(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]}; g.eM=function(a){return"/youtubei/v1/"+ota(a)}; fM=function(a){var b=g.P("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(si(a)));return a}; pta=function(a,b){g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null===b||void 0===b?0:b.Authorization)||(a=et(a,{key:g.P("INNERTUBE_API_KEY")}));return a}; gM=function(a,b){return{method:void 0===b?"POST":b,mode:ft(a)?"same-origin":"cors",credentials:ft(a)?"same-origin":"include"}}; hM=function(){}; iM=function(){}; jM=function(a,b,c,d){this.B=a;this.Re=b;this.u=c;this.C=d;this.i=void 0;a.yq||(a.yq={});a.yq=Object.assign(Object.assign({},qta),a.yq)}; rta=function(a,b,c,d){if(void 0!==jM.i){if(d=jM.i,a=[a!==d.B,b!==d.Re,c!==d.u,!1,!1,void 0!==d.i],a.some(function(e){return e}))throw new g.hw("InnerTubeTransportService is already initialized",a); }else jM.i=new jM(a,b,c,d)}; lM=function(a,b,c){var d=void 0===d?kM:d;var e=mta(b,a.B);if(!e)return gh(new g.hw("Error: No request builder found for command.",b));var f=e.D(b,c,d);return f?new bh(function(h){return g.H(a,function m(){var n,p,q=this,t;return g.B(m,function(u){if(1==u.i)return p="cors"===(null===(n=f.oq)||void 0===n?void 0:n.mode)?"cors":void 0,g.z(u,sta(q,f.config,p),2);t=u.u;h(tta(q,f,t));g.sa(u)})})}):gh(new g.hw("Error: Failed to build request for command.",b))}; g.BK=function(a,b,c,d,e){e=void 0===e?{Zo:{identity:kM}}:e;var f=void 0===f?!0:f;b.context||(b.context=vK(d,f));return new bh(function(h){return g.H(a,function m(){var n,p,q=this,t,u,x;return g.B(m,function(y){if(1==y.i)return n=fM(c),p=ft(n)?"same-origin":"cors",g.z(y,sta(q,e,p),2);t=y.u;u=pta(fM(c),t);x={input:u,oq:gM(u),Sl:b,config:e};h(tta(q,x,t));g.sa(y)})})})}; tta=function(a,b,c){var d,e;return g.H(a,function h(){var l=this,m,n,p,q,t,u,x,y,A;return g.B(h,function(E){switch(E.i){case 1:E.ib(2);break;case 3:if((m=E.u)&&!m.isExpired())return E.return(Promise.resolve(m.i()));case 2:n=g.r([]);for(p=n.next();!p.done;p=n.next())q=p.value,q.eaa(b.Sl.context);if(null===(d=l.i)||void 0===d?0:d.C(b.input,b.Sl))return E.return(l.i.B(b.input,b.Sl));t=JSON.stringify(b.Sl);b.oq=Object.assign(Object.assign({},b.oq),{headers:c});u=Object.assign({},b.oq);"POST"===b.oq.method&& (u=Object.assign(Object.assign({},u),{body:t}));return g.z(E,l.Re.fetch(b.input,u,b.config),4);case 4:if((x=E.u)||null===(e=l.i)||void 0===e||!e.i(b.input,b.Sl)){E.ib(5);break}return g.z(E,l.i.u(b.input,b.Sl),6);case 6:x=E.u;case 5:if(x&&l.C)for(y=g.r(l.C),p=y.next();!p.done;p=y.next())A=p.value,A.handleResponse(x,b);return E.return(x)}})})}; sta=function(a,b,c){return g.H(a,function e(){var f=this;return g.B(e,function(h){if(f.u.JW){var l=h.return,m,n,p=(null===(n=null===b||void 0===b?void 0:b.Zo)||void 0===n?void 0:n.identity)||kM;n=null===(m=null===b||void 0===b?void 0:b.Zo)||void 0===m?void 0:m.sessionIndex;m=f.u.uy(p,{sessionIndex:n});m=Object.assign(Object.assign({},uta(c)),m);h=l.call(h,m)}else h=h.return(vta(f,b,c));return h})})}; vta=function(a,b,c){var d,e;return g.H(a,function h(){var l,m,n=this,p;return g.B(h,function(q){if(1==q.i){l=(null===(d=null===b||void 0===b?void 0:b.Zo)||void 0===d?void 0:d.identity)||kM;m=null===(e=null===b||void 0===b?void 0:b.Zo)||void 0===e?void 0:e.sessionIndex;var t=fh(n.u.uy(l,{sessionIndex:m}));return g.z(q,t,2)}p=q.u;return q.return(Promise.resolve(Object.assign(Object.assign({},uta(c)),p)))})})}; uta=function(a){var b={"Content-Type":"application/json"},c=g.P("VISITOR_DATA");c&&(b["X-Goog-Visitor-Id"]=c);"cors"!==a&&((a=g.P("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.P("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.P("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),g.us("forward_domain_admin_state_on_embeds")&&(a=g.P("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b}; mM=function(){}; nM=function(){}; oM=function(){}; pM=function(){}; qM=function(){}; rM=function(){}; sM=function(){}; g.uM=function(a,b){if(!tM){var c={tC:{feedbackEndpoint:oM,modifyChannelNotificationPreferenceEndpoint:pM,playlistEditEndpoint:qM,subscribeEndpoint:mM,unsubscribeEndpoint:nM,webPlayerShareEntityServiceEndpoint:rM}},d=g.us("web_enable_client_location_service")?uK.getInstance():void 0,e=[];d&&e.push(d);void 0===a&&(wK.i||(wK.i=new wK),a=wK.i);void 0===b&&(sM.i||(sM.i=new sM),b=sM.i);rta(c,b,a,e);tM=jM.i}return tM}; vM=function(){}; wta=function(){vM.i||(vM.i=new vM);return vM.i}; yta=function(){if(!g.us("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.us("disable_biscotti_fetch_entirely_for_all_web_clients")&&du()&&"1"!=Yb(g.P("PLAYER_VARS",{}),"privembed",!1)){var a=function(){wM=!0;"google_ad_status"in window?qs("DCLKSTAT",1):qs("DCLKSTAT",2)}; try{g.Yz("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}xta.push(g.Ku(0,function(){if(!(wM||"google_ad_status"in window)){try{if(a){var b=""+g.Na(a),c=$z[b];c&&g.dv(c)}}catch(d){}wM=!0;qs("DCLKSTAT",3)}},5E3))}}; zta=function(){var a=Number(g.P("DCLKSTAT",0));return isNaN(a)?0:a}; xM=function(){}; Ata=function(){var a=navigator;return new Promise(function(b,c){var d;null!==(d=a.webkitTemporaryStorage)&&void 0!==d&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})}; aw=function(a,b){var c=this;this.handleError=a;this.i=b;this.u=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.u=!0}); this.B=Math.random()<=vs("ytidb_transaction_ended_event_rate_limit",.02)}; Cta=function(a,b){xM.getInstance().estimate().then(function(c){c=Object.assign(Object.assign({},b),{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:Bta(null===c||void 0===c?void 0:c.usage),deviceStorageQuotaMbytes:Bta(null===c||void 0===c?void 0:c.quota)});a.i("idbQuotaExceeded",c)})}; Bta=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))}; yM=function(){this.u=!1;this.i=null}; Eta=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;c?(a.u=!0,g.Yz(c,function(){a.u=!1;var l=0<=c.indexOf("/th/");if(l?window.trayride:window.botguard)Dta(a,d,!!h,l,e);else{l=Zz(c);var m=document.getElementById(l);m&&(gv(l),m.parentNode.removeChild(m));g.zz(new g.hw("Unable to load Botguard","from "+c))}},f)):b&&(f=g.Cg("SCRIPT"),f.textContent=b,f.nonce=sd(),document.head.appendChild(f),document.head.removeChild(f),((b=b.includes("trayride"))?window.trayride:window.botguard)?Dta(a,d,!!h,b,e):g.zz(Error("Unable to load Botguard from JS")))}; Dta=function(a,b,c,d,e){var f,h;if(d=d?null===(f=window.trayride)||void 0===f?void 0:f.ad:null===(h=window.botguard)||void 0===h?void 0:h.bg)if(c)try{Fta(a,new d(b,e?function(){return e(b)}:g.Ha))}catch(l){l instanceof Error&&g.zz(l)}else{try{Fta(a,new d(b))}catch(l){l instanceof Error&&g.zz(l)}e&&e(b)}else g.zz(Error("Failed to finish initializing VM"))}; Gta=function(a,b){var c=g.zM;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.i?Promise.race([new Promise(function(d,e){setTimeout(function(){setTimeout(function(){setTimeout(function(){e(Error("Timed out waiting for snapshot"))},0)},0)},b)}), new Promise(function(d){c.i?c.i.hasOwnProperty("hot")?c.i.hot(d,!0,a):c.i.invoke(d,!0,a):d(null)})]):Promise.resolve(null)}; Fta=function(a,b){a.i=b}; Hta=function(){gB("bg_l",void 0,"player_att");AM=(0,g.Q)()}; g.Ita=function(a,b,c){a.program&&(g.zM.u?0:!AM||72E5<(0,g.Q)()-AM)&&(gB("bg_i",void 0,"player_att"),g.zM.initialize(a,Hta,b,c))}; Jta=function(a){a=void 0===a?{}:a;return g.zM.invoke(a)}; Kta=function(a){var b=vs("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return Gta(a,b)}; Mta=function(a,b,c,d){var e=window.location.search;if(38===b.Ha&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.Bi("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.wW});if(30===b.Ha&&"docs"===a.playerStyle)return g.Bi("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.tH,authkey:b.authKey,eurl:a.Fc});if(33===b.Ha&&"google-live"===a.playerStyle)return g.Bi("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId}); "yt"!==a.Aa&&g.yz(Error("getVideoInfoUrl for invalid namespace: "+a.Aa));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Fc,ps:a.playerStyle,el:pH(b),hl:a.Be,list:b.playlistId,agcid:b.QH,aqi:b.adQueryId,sts:18886,lact:Uu()};Object.assign(f,a.deviceParams);a.eb&&(f.forced_experiments=a.eb);b.La?(f.vvt=b.La,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):b.gf()&&(f.access_token=b.gf());b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&& (f.break_type=b.breakType);null!==b.au&&(f.ad_id=b.au);null!==b.fu&&(f.ad_sys=b.fu);null!==b.mC&&(f.encoded_ad_playback_context=b.mC);b.dB&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.Ta&&2!==a.Ta&&(f.cc_load_policy=a.Ta);var h=g.Ev(g.Cv.getInstance(),65);g.IF(a)&&null!=h&&!h&&(f.device_captions_on="1");a.mute&&(f.mute=a.mute);b.annotationsLoadPolicy&&2!==a.annotationsLoadPolicy&&(f.iv_load_policy=b.annotationsLoadPolicy);b.Pp&&(f.endscreen_ad_tracking= b.Pp);(h=a.V.get(b.videoId))&&h.Zw&&(f.ic_track=h.Zw);b.Xa&&(f.itct=b.Xa);sH(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.Hk&&(f.autonav="1");b.PD&&(f.noiba="1");a.U("send_mdx_remote_data_if_present")?(b.isMdxPlayback&&(f.mdx="1"),b.Df&&(f.ytr=b.Df)):b.isMdxPlayback&&(f.mdx="1",f.ytr=b.Df);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.Dl&&(f.ytrcc=b.Dl);b.IE&&(f.utpsa="1");b.isFling&&(f.is_fling="1");b.isInlinePlaybackNoAd&&(f.mute="1");b.vnd&&(f.vnd=b.vnd); b.Sg&&(h=3===b.Sg.split("|").length,f.force_ad_params=h?b.Sg:"||"+b.Sg);b.Vc&&(f.preload=b.Vc);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.Lf&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");qH(b)&&(f.content_v=qH(b));b.rb&&(f.livemonitor=1);a.ea&&(f.authuser=a.ea);a.pageId&&(f.pageid=a.pageId);a.Ba&&(f.ei=a.Ba);a.u&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.B&&b.RF&&(f.live_start_walltime=b.RF);a.B&&b.Wg&&(f.live_manifest_duration=b.Wg);a.B&&b.playerParams&& (f.player_params=b.playerParams);a.B&&b.cycToken&&(f.cyc=b.cycToken);a.B&&b.eB&&(f.tkn=b.eB);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.vb&&(f.kpt=b.vb);b.Sj&&(f.kids_age_up_mode=b.Sj);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.Ko&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.ea?(c=null!=b.ea.latitudeE7&&null!=b.ea.longitudeE7?b.ea.latitudeE7+","+b.ea.longitudeE7:",",c+=","+(b.ea.clientPermissionState||0)+","+ (b.ea.locationRadiusMeters||"")+","+(b.ea.locationOverrideToken||"")):c=null;c&&(f.uloc=c);b.Yi&&(f.internalipoverride=b.Yi);a.embedConfig&&(f.embed_config=a.embedConfig);a.Vi&&(f.co_rel="1");0d&&(d=-(d+1));g.Fg(a,b,d);b.setAttribute("data-layer",String(c))}; g.VM=function(a){var b=a.W();if(!b.Pb)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.U("allow_poltergust_autoplay"))&&!zH(c);d=c.isLivePlayback&&(!b.U("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.U("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.ib(c.xa,"ypc")&&!a&&(!g.fF(b)||f)}; cua=function(a){a=g.WM(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.u||!b.u.video||1080>b.u.video.i||b.CN)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.u.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.Ca("iqss",d,!0),!0):!1}; dua=function(a){this.Y=a;this.u=this.i=NaN;this.B=g.T(this.Y.experiments,"h5_csi_seek_latency_action_sampling")||1}; XM=function(a,b){this.Y=a;this.timerName="";this.u=!1;this.B=new dua(a);this.i=b||null;this.u=!1}; eua=function(a,b,c){var d=g.lF(b.B)&&!b.B.J;if(b.B.Wg&&(hF(b.B)||MF(b.B)||d)&&!a.u){a.u=!0;g.P("TIMING_ACTION")||qs("TIMING_ACTION",a.Y.csiPageType);a.Y.csiServiceName&&qs("CSI_SERVICE_NAME",a.Y.csiServiceName);if(a.i){b=a.i.xp();d=g.r(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,dB(e,b[e],a.timerName);b=a.i.Gu;d=g.r(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,g.cB(e,b[e],a.timerName);b=a.i;b.i={};b.Gu={}}g.cB("yt_pvis",Qja(),a.timerName);g.cB("yt_pt","html5",a.timerName); c&&!fB("pbs",a.timerName)&&a.tick("pbs",c);c=a.Y;MF(c)||hF(c)||a.timerName||!fB("_start")||hB()}}; YM=function(a,b){g.R.call(this);this.u=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.i=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.V={};this.B=0;if(a=b.session_data)this.sessionData=Cs(a,"&");this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author= b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(a=b.api)"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new VF("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.WF(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");0=a.length?0:b}; gua=function(a){var b=a.index-1;return 0>b?a.length-1:b}; g.$M=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 xG(a.u,b),g.J(a,e),e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e}; aN=function(a,b){a.index=g.ag(b,0,a.length-1);a.startSeconds=0}; bN=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.$M(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;if(b=b.index)a.index=b;else if(c&&(b=c.videoId,!a.items[a.index]||a.items[a.index].video_id!==b))for(c=0;ct.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:lua[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:mua[t[0]]|| "UNKNOWN_INTERFACE",clientVersion:t[2]||"",platform:nua[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(n){u=void 0;try{u=JSON.parse(n)}catch(A){g.zz(A)}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}h.mdxContext=m;m=b.width;0Math.random()){var A=new g.hw("Unable to load player module",b,document.location&&document.location.origin);g.yz(A)}Pg(e);t&&t(y)}; var u=m,x=u.onreadystatechange;u.onreadystatechange=function(y){switch(u.readyState){case "loaded":case "complete":Pg(f)}x&&x(y)}; l&&((h=a.I.W().cspNonce)&&m.setAttribute("nonce",h),g.$k(m,g.cr(b)),h=g.og("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.wf(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))}; wN=function(a,b,c){g.xf.call(this,b,a);this.i=c}; g.xN=function(a){YJ.call(this);var b=this;this.i=a;this.C={};this.listener=function(c){b.dispatchEvent(new wN(b,c.type,c))}}; zN=function(a,b,c,d,e){g.R.call(this);var f=this;this.target=a;this.Ix=b;this.u=0;this.J=!1;this.C=new g.eg(NaN,NaN);this.i=new g.FD(this);this.Aa=this.B=this.K=null;g.J(this,this.i);b=d||e?4E3:3E3;this.V=new g.M(function(){yN(f,1,!1)},b,this); g.J(this,this.V);this.ea=new g.M(function(){yN(f,2,!1)},b,this); g.J(this,this.ea);this.ma=new g.M(function(){yN(f,512,!1)},b,this); g.J(this,this.ma);this.xa=c&&0=c.width||!c.height||0>=c.height||g.tA(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b}; Tua=function(a){var b=a.I.wb();b=b.isCued()||b.isError()?"none":g.hK(b)?"playing":"paused";a.mediaSession.playbackState=b}; NN=function(a){g.W.call(this,{G:"div",L:"ytp-paid-content-overlay",X:{"aria-live":"assertive","aria-atomic":"true"}});this.I=a;this.videoId=null;this.C=!1;this.pd=this.i=null;var b=a.W();a.U("enable_new_paid_product_placement")&&!g.HF(b)?(this.u=new g.W({G:"a",L:"ytp-paid-content-overlay-link",X:{href:"{{href}}",target:"_blank"},T:[{G:"div",L:"ytp-paid-content-overlay-icon",va:"{{icon}}"},{G:"div",L:"ytp-paid-content-overlay-text",va:"{{text}}"},{G:"div",L:"ytp-paid-content-overlay-chevron",va:"{{chevron}}"}]}), this.S(this.u.element,"click",this.onClick)):this.u=new g.W({G:"div",Ia:["ytp-button","ytp-paid-content-overlay-text"],va:"{{text}}"});this.B=new g.HL(this.u,250,!1,100);g.J(this,this.u);this.u.Ea(this.element);g.J(this,this.B);this.I.Qg(this.element,this);this.S(a,"videodatachange",this.qb);this.S(a,"presentingplayerstatechange",this.Jc)}; Uua=function(a,b){var c=Uoa(b),d=QG(b);if(a.i)b.videoId&&b.videoId!==a.videoId&&(g.Pq(a.i),a.videoId=b.videoId,a.C=!!d);else if(c&&d){var e,f,h,l;a.i=new g.M(a.Eb,d,a);g.J(a,a.i);b=null===(f=null===(e=b.getPlayerResponse())||void 0===e?void 0:e.paidContentOverlay)||void 0===f?void 0:f.paidContentOverlayRenderer;e=null===b||void 0===b?void 0:b.navigationEndpoint;f=null===(h=null===b||void 0===b?void 0:b.icon)||void 0===h?void 0:h.iconType;h=null===(l=null===e||void 0===e?void 0:e.urlEndpoint)||void 0=== l?void 0:l.url;a.I.xm(a.element,(null===e||void 0===e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!==h&&void 0!==h?h:"#",text:c,icon:"MONEY_HAND"===f?{G:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},T:[{G:"path",X:{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:h?g.dL():null})}}; Vua=function(a,b){a.i&&(g.U(b,8)&&a.C?(a.C=!1,a.bd(),a.i.start()):(g.U(b,2)||g.U(b,64))&&a.videoId&&(a.videoId=null))}; ON=function(a){g.W.call(this,{G:"div",L:"ytp-spinner",T:[EN(),{G:"div",L:"ytp-spinner-message",va:"Si la reproducci\u00f3n no empieza en breve, prueba a reiniciar el dispositivo."}]});this.api=a;this.message=this.Fa("ytp-spinner-message");this.i=new g.M(this.show,500,this);g.J(this,this.i);this.S(a,"presentingplayerstatechange",this.u);this.S(a,"playbackstalledatstart",this.B);a=a.wb();Wua(a)?this.i.start():this.hide()}; Wua=function(a){return g.U(a,128)?!1:g.U(a,16)||g.U(a,1)?!0:!1}; g.PN=function(a,b,c,d){d=void 0===d?!1:d;g.ZK.call(this,b);var e=this;this.I=a;this.Ba=d;this.K=new g.FD(this);this.V=new g.HL(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.K);g.J(this,this.V)}; Xua=function(a){a.u&&(document.activeElement&&g.Ig(a.element,document.activeElement)&&(Lg(a.u),a.u.focus()),a.u.removeAttribute("aria-expanded"),a.u=void 0);g.jy(a.K);a.N=void 0}; QN=function(a,b,c){a.Tf()?a.Eb():a.bd(b,c)}; RN=function(a){var b=g.tE(a.W().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{G:"div",Ia:["ytp-unmute-icon"],T:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{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"}}]}]}, {G:"div",Ia:["ytp-unmute-text"],va:"Activar el sonido"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({G:"div",Ia:["ytp-unmute-box"],T:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.PN.call(this,a,{G:"button",Ia:["ytp-unmute","ytp-popup","ytp-button"].concat(c),T:[{G:"div",L:"ytp-unmute-inner",T:d}]},100);this.i=this.clicked=!1;this.api=a;this.api.Ub(this.element,this,51663);this.S(a,"onMutedAutoplayChange",this.hw,this);this.S(a,"presentingplayerstatechange", this.Nh);this.Sa("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.fF(this.api.W());g.YK(this,a);a&&Yua(this);this.B=a}; Yua=function(a){a.i||(a.i=!0,a.api.jb(a.element,!0))}; g.TN=function(a){g.FD.call(this);var b=this;this.api=a;this.lF=!1;this.Fk=null;this.Qx=!1;this.pe=null;this.yC=this.xA=!1;this.JF=this.LF=null;this.tK=NaN;this.IF=this.Mu=!1;this.Xv=0;this.SB=[];var c=a.W(),d=a.fb();this.cI=new g.M(this.jE,0,this);g.J(this,this.cI);g.qF(c)||(this.Cr=new BN(a),g.J(this,this.Cr),g.UM(a,this.Cr.element,4));if(Zua()){var e=new ON(a);g.J(this,e);e=e.element;g.UM(a,e,4)}var f=a.getVideoData();this.od=new zN(d,function(l){return b.Ix(l)},f,c.Vc,JF(c)); g.J(this,this.od);this.od.subscribe("autohideupdate",this.xj,this);var h=new NN(a);g.J(this,h);g.UM(a,h.element,4);this.DA=new RN(a);g.J(this,this.DA);g.UM(this.api,this.DA.element,2);this.vD=this.api.isMutedByMutedAutoplay();this.S(a,"onMutedAutoplayChange",this.hw);this.wA=new g.M(this.Xs,200,this);g.J(this,this.wA);this.MD=f.videoId;this.tM=new g.M(function(){b.Xv=0},350); g.J(this,this.tM);this.Tx=new g.M(function(){b.IF||SN(b)},350,this); g.J(this,this.Tx);f=a.getRootNode();f.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube");switch(c.color){case "white":g.N(f,"ytp-color-white")}g.qF(c)&&g.N(f,"ytp-music-player");!a.U("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new LN(a),g.J(this,f));this.S(a,"appresize",this.xb);this.S(a,"presentingplayerstatechange",this.Nh);this.S(a,"videodatachange",this.qb);this.S(a,"videoplayerreset",this.uU);this.S(a,"autonavvisibility", function(){b.Cm()}); this.S(a,"sizestylechange",function(){b.Cm()}); this.S(d,"click",this.UU,this);this.S(d,"dblclick",this.VU,this);c.Xa&&(this.S(d,"gesturechange",this.WU,this),this.S(d,"gestureend",this.XU,this));this.Pn=[d.Fu];this.Cr&&this.Pn.push(this.Cr.element);e&&this.Pn.push(e)}; UN=function(a,b){if(!b)return!1;var c=a.api.dd();if(c.No()&&(c=c.Je())&&g.Ig(c,b))return c.controls;for(c=0;c1+b&&a.api.toggleFullscreen()}; Zua=function(){var a=Pt()&&67<=Mt();return!Ot("tizen")&&!cF&&!a&&!0}; XN=function(a,b){b=void 0===b?2:b;g.R.call(this);this.api=a;this.i=null;this.qe=new gy(this);g.J(this,this.qe);this.u=hta;this.qe.S(this.api,"presentingplayerstatechange",this.Jc);this.i=this.qe.S(this.api,"progresssync",this.Ob);this.Mj=b;1===this.Mj&&this.Ob()}; YN=function(a){g.W.call(this,{G:"button",Ia:["ytp-button","ytp-back-button"],T:[{G:"div",L:"ytp-arrow-back-icon",T:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},T:[{G:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",Nb:!0,X:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.I=a;g.YK(this,a.W().showBackButton);this.Sa("click",this.onClick)}; g.ZN=function(a){g.W.call(this,{G:"div",T:[{G:"div",L:"ytp-bezel-text-wrapper",T:[{G:"div",L:"ytp-bezel-text",va:"{{title}}"}]},{G:"div",L:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},T:[{G:"div",L:"ytp-bezel-icon",va:"{{icon}}"}]}]});this.I=a;this.u=new g.M(this.show,10,this);this.i=new g.M(this.hide,500,this);g.J(this,this.u);g.J(this,this.i);this.hide()}; aO=function(a,b,c){if(0>=b){c=lL();b="silenciado";var d=0}else c=c?{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"path",Nb:!0,X:{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"}}]}:{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"path",Nb:!0,X:{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+"volumen";$N(a,c,b,d+"%")}; cva=function(a,b){b=b?{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{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"}}]}:{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{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.I.getPlaybackRate(),d=g.zI("Velocidad: $RATE",{RATE:String(c)});$N(a,b,d,c+"x")}; $N=function(a,b,c,d){d=void 0===d?"":d;a.Ua("label",void 0===c?"":c);a.Ua("icon",b);g.Pq(a.i);a.u.start();a.Ua("title",d);g.O(a.element,"ytp-bezel-text-hide",!d)}; cO=function(a,b,c){g.W.call(this,{G:"button",Ia:["ytp-button","ytp-cards-button"],X:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.fF(a.W()))},T:[{G:"span",L:"ytp-cards-button-icon-default",T:[{G:"div",L:"ytp-cards-button-icon",T:[a.W().U("player_new_info_card_format")?Fsa():{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{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"}}]}]}, {G:"div",L:"ytp-cards-button-title",va:"Informaci\u00f3n"}]},{G:"span",L:"ytp-cards-button-icon-shopping",T:[{G:"div",L:"ytp-cards-button-icon",T:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"path",L:"ytp-svg-shadow",X:{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"}},{G:"path",L:"ytp-svg-fill",X:{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"}},{G:"path",L:"ytp-svg-shadow-fill",X:{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"}}]}]},{G:"div", L:"ytp-cards-button-title",va:"Compras"}]}]});this.I=a;this.B=b;this.C=c;this.i=null;this.u=new g.HL(this,250,!0,100);g.J(this,this.u);g.O(this.C,"ytp-show-cards-title",g.fF(a.W()));this.hide();this.Sa("click",this.onClicked);this.Sa("mouseover",this.NT);bO(this,!0)}; bO=function(a,b){b?a.i=g.dO(a.B.fc(),a.element):(a.i=a.i,a.i(),a.i=null)}; eO=function(a,b,c){g.W.call(this,{G:"div",L:"ytp-cards-teaser",T:[{G:"div",L:"ytp-cards-teaser-box"},{G:"div",L:"ytp-cards-teaser-text",T:a.W().U("player_new_info_card_format")?[{G:"button",L:"ytp-cards-teaser-info-icon",X:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},T:[Fsa()]},{G:"span",L:"ytp-cards-teaser-label",va:"{{text}}"},{G:"button",L:"ytp-cards-teaser-close-button",X:{"aria-label":"Cerrar"},T:[g.eL()]}]:[{G:"span",L:"ytp-cards-teaser-label",va:"{{text}}"}]}]});var d=this;this.I= a;this.V=b;this.ji=c;this.C=new g.HL(this,250,!1,250);this.i=null;this.K=new g.M(this.fU,300,this);this.J=new g.M(this.eU,2E3,this);this.D=[];this.u=null;this.N=new g.M(function(){d.element.style.margin="0"},250); this.B=null;g.J(this,this.C);g.J(this,this.K);g.J(this,this.J);g.J(this,this.N);a.W().experiments.Ga("player_new_info_card_format")?(g.N(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.S(this.Fa("ytp-cards-teaser-close-button"),"click",this.Ci),this.S(this.Fa("ytp-cards-teaser-info-icon"),"click",this.zF),this.S(this.Fa("ytp-cards-teaser-label"),"click",this.zF)):this.Sa("click",this.zF);this.S(c.element,"mouseover",this.JG);this.S(c.element,"mouseout",this.IG);this.S(a,"cardsteasershow",this.tV); this.S(a,"cardsteaserhide",this.Eb);this.S(a,"cardstatechange",this.pN);this.S(a,"presentingplayerstatechange",this.pN);this.S(a,"appresize",this.WF);this.S(a,"onShowControls",this.WF);this.S(a,"onHideControls",this.vQ);this.Sa("mouseenter",this.kO)}; gO=function(a){g.W.call(this,{G:"button",Ia:[fO.BUTTON,fO.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},T:[{G:"div",L:fO.TITLE_NOTIFICATIONS_ON,X:{title:"Dejar de recibir notificaciones cada vez que haya un v\u00eddeo nuevo","aria-label":"Notificaciones de suscripciones activadas"},T:[g.iL()]},{G:"div",L:fO.TITLE_NOTIFICATIONS_OFF,X:{title:"Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo","aria-label":"Notificaciones de suscripciones activadas"}, T:[{G:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},T:[{G:"path",X:{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.i=!1;a.Ub(this.element,this,36927);this.Sa("click",this.onClick,this);this.Ua("pressed",!1);this.Ua("label","Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo")}; dva=function(a,b){a.i=b;a.element.classList.toggle(fO.NOTIFICATIONS_ENABLED,a.i);var c=a.api.getVideoData();c?(b=b?c.GB:c.EB)?(a=a.api.Kl())?lM(a,b):g.ys(Error("No innertube service available when updating notification preferences.")):g.ys(Error("No update preferences command available.")):g.ys(Error("No video data when updating notification preferences."))}; g.iO=function(a,b,c,d,e,f,h,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.W();if(p){c={href:p,"aria-label":"Suscribirse al canal"};if(g.lF(u)||g.pF(u))c.target=u.K;g.W.call(this,{G:"div",Ia:["ytp-button","ytp-sb"],T:[{G:"a",L:"ytp-sb-subscribe",X:c,T:[{G:"div",L:"ytp-sb-text",T:[{G:"div",L:"ytp-sb-icon"},a]},b?{G:"div",L:"ytp-sb-count",va:b}:""]}]});f&&g.N(this.element, "ytp-sb-classic");this.channelId=h;this.i=t}else{p=u.userDisplayName&&g.lF(u)&&!u.U("subscribe_tooltipkillswitch");g.W.call(this,{G:"div",Ia:["ytp-button","ytp-sb"],T:[{G:"div",L:"ytp-sb-subscribe",X:p?{title:g.zI("Suscribirse como $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Suscribirse al canal","data-tooltip-image":NF(u),"data-tooltip-opaque":String(g.fF(u)),tabindex:"0",role:"button"}:{"aria-label":"Suscribirse al canal"},T:[{G:"div",L:"ytp-sb-text",T:[{G:"div",L:"ytp-sb-icon"},a]}, b?{G:"div",L:"ytp-sb-count",va:b}:""]},{G:"div",L:"ytp-sb-unsubscribe",X:p?{title:g.zI("Te has suscrito como $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Anular suscripci\u00f3n al canal","data-tooltip-image":NF(u),"data-tooltip-opaque":String(g.fF(u)),tabindex:"0",role:"button"}:{"aria-label":"Anular suscripci\u00f3n al canal"},T:[{G:"div",L:"ytp-sb-text",T:[{G:"div",L:"ytp-sb-icon"},c]},d?{G:"div",L:"ytp-sb-count",va:d}:""]}]});var x=this;this.channelId=h;this.i=t;var y=this.Fa("ytp-sb-subscribe"), A=this.Fa("ytp-sb-unsubscribe");f&&g.N(this.element,"ytp-sb-classic");if(e){l?this.u():this.B();var E=function(){var F=x.channelId;if(m||n){var K={c:F};if(q.W().experiments.Ga("embeds_botguard_with_subscribe_killswitch"))K="";else{var V;g.zM.Vd()&&(V=Jta(K));K=V||""}if(V=q.getVideoData())if(V=V.subscribeCommand){var L=q.Kl();L?(lM(L,V,{botguardResponse:K,feature:m}),q.Oa("SUBSCRIBE",F)):g.ys(Error("No innertube service available when updating subscriptions."))}else g.ys(Error("No subscribe command in videoData.")); else g.ys(Error("No video data available when updating subscription."))}A.focus();A.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},G=function(){var F=x.channelId; if(m||n){var K=q.getVideoData();lM(q.Kl(),K.unsubscribeCommand,{feature:m});q.Oa("UNSUBSCRIBE",F)}y.focus();y.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")}; this.S(y,"click",E);this.S(A,"click",G);this.S(y,"keypress",function(F){13===F.keyCode&&E(F)}); this.S(A,"keypress",function(F){13===F.keyCode&&G(F)}); this.S(q,"SUBSCRIBE",this.u);this.S(q,"UNSUBSCRIBE",this.B);this.i&&p&&(this.tooltip=this.i.fc(),hO(this.tooltip),g.wf(this,g.dO(this.tooltip,y)),g.wf(this,g.dO(this.tooltip,A)))}else g.N(y,"ytp-sb-disabled"),g.N(A,"ytp-sb-disabled")}}; jO=function(a,b){g.W.call(this,{G:"div",L:"ytp-title-channel",T:[{G:"div",L:"ytp-title-beacon"},{G:"a",L:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:a.W().K,"aria-label":"{{channelLogoLabel}}"}},{G:"div",L:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},T:[{G:"div",L:"ytp-title-expanded-heading",T:[{G:"h2",L:"ytp-title-expanded-title",T:[{G:"a",va:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.W().K,tabIndex:"{{channelTitleFocusable}}"}}]},{G:"h3", L:"ytp-title-expanded-subtitle",va:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.J=b;this.channel=this.Fa("ytp-title-channel");this.i=this.Fa("ytp-title-channel-logo");this.C=this.Fa("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.D=g.fF(this.api.W());a.Ub(this.i,this,36925);this.D&&eva(this);this.S(a,"videodatachange",this.Ra);this.S(a,"videoplayerreset",this.Ra);this.Ra()}; eva=function(a){var b=a.api.W(),c=a.api.getVideoData();if(!b.Gi){var d=b.ea?null:jta(),e=new g.iO("Suscribirme",null,"Suscrito",null,!0,!1,c.Ti,c.subscribed,"channel_avatar",null,d,a.api,a.J);a.subscribeButton=e;g.J(a,e);e.Ea(a.C);a.api.Ub(e.element,a,36926);e.hide();a.S(e.element,"click",function(){a.api.Gb(e.element)}); var f=new gO(a.api);a.u=f;g.J(a,f);f.Ea(a.C);f.hide();a.S(a.api,"SUBSCRIBE",function(){c.Fi&&f.show()}); a.S(a.api,"UNSUBSCRIBE",function(){c.Fi&&(f.hide(),dva(f,!1))})}a.Ua("flyoutUnfocusable","true"); a.Ua("channelTitleFocusable","-1");b.i?a.S(a.i,"click",function(h){fva(a)&&(h.preventDefault(),a.isExpanded()?a.sC():a.NC());a.api.Gb(a.i)}):(a.S(a.channel,"mouseenter",a.NC),a.S(a.channel,"mouseleave",a.sC),a.S(a.channel,"focusin",a.NC),a.S(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.sC()}),a.S(a.i,"click",function(){a.api.Gb(a.i)})); a.B=new g.M(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.jb(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.jb(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.S(a.channel,gva,function(){hva(a)}); a.S(a.api,"onHideControls",a.YE);a.S(a.api,"appresize",a.YE);a.S(a.api,"fullscreentoggled",a.YE)}; hva=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")}; fva=function(a){var b=a.api.getPlayerSize();return a.D&&524<=b.width}; g.lO=function(a,b,c,d){g.ZK.call(this,a);this.priority=b;c&&g.kO(this,c);d&&this.fd(d)}; g.mO=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{G:c?"a":"div",Ia:b,X:a,T:[{G:"div",L:"ytp-menuitem-icon",va:"{{icon}}"},{G:"div",L:"ytp-menuitem-label",va:"{{label}}"},{G:"div",L:"ytp-menuitem-content",va:"{{content}}"}]}}; nO=function(a,b){a.Ua("icon",b)}; g.kO=function(a,b){a.Ua("label",b)}; oO=function(a,b,c,d,e,f){var h={G:"div",L:"ytp-panel"};if(c){var l="ytp-panel-title";var m={G:"div",L:"ytp-panel-header",T:[{G:"button",Ia:["ytp-button",l],T:[c]}]};if(e){var n="ytp-panel-options";m.T.unshift({G:"button",Ia:["ytp-button",n],T:[d]})}h.T=[m]}d=!1;f&&(f={G:"div",L:"ytp-panel-footer",T:[f]},d=!0,h.T?h.T.push(f):h.T=[f]);g.ZK.call(this,h);this.content=b;d&&h.T?b.Ea(this.element,h.T.length-1):b.Ea(this.element);this.NJ=!1;this.GR=d;c&&(c=this.Fa(l),this.S(c,"click",this.dT),this.NJ=!0, e&&(n=this.Fa(n),this.S(n,"click",e)));b.subscribe("size-change",this.gL,this);this.S(a,"fullscreentoggled",this.gL)}; g.pO=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.ZK({G:"div",L:"ytp-panel-menu",X:h});oO.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.J(this,this.menuItems)}; g.qO=function(a){for(var b=g.r(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.xE,a);a.items=[];g.Eg(a.menuItems.element);a.menuItems.Z("size-change")}; iva=function(a,b){return b.priority-a.priority}; rO=function(a){var b=g.mO({"aria-haspopup":"true"});g.lO.call(this,b,a);this.Sa("keydown",this.i)}; sO=function(a,b){a.element.setAttribute("aria-haspopup",String(b))}; tO=function(a,b){g.lO.call(this,g.mO({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{G:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Sa("click",this.onClick)}; uO=function(a,b,c,d){var e;g.pO.call(this,a);this.I=a;this.Bb=c;this.pc=d;this.getVideoUrl=new rO(6);this.jj=new rO(5);this.gj=new rO(4);this.Jb=new rO(3);this.Cw=new g.lO(g.mO({href:"{{href}}",target:this.I.W().K},void 0,!0),2,"Solucionar un problema de reproducci\u00f3n");this.Ar=new g.ZK({G:"div",Ia:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},va:"{{text}}"});this.FI=new oO(this.I,this.Ar);this.Hn=null;this.I.W().Qj&&(this.zi=new tO("Bucle",7),g.J(this,this.zi),this.Dc(this.zi, !0),this.zi.Sa("click",this.XT,this),a.Ub(this.zi.element,this.zi,28661));g.J(this,this.getVideoUrl);this.Dc(this.getVideoUrl,!0);this.getVideoUrl.Sa("click",this.JT,this);a.Ub(this.getVideoUrl.element,this.getVideoUrl,28659);g.J(this,this.jj);this.Dc(this.jj,!0);this.jj.Sa("click",this.KT,this);a.Ub(this.jj.element,this.jj,28660);g.J(this,this.gj);this.Dc(this.gj,!0);this.gj.Sa("click",this.IT,this);a.Ub(this.gj.element,this.gj,28658);g.J(this,this.Jb);this.Dc(this.Jb,!0);this.Jb.Sa("click",this.HT, this);g.J(this,this.Cw);this.Dc(this.Cw,!0);this.Cw.Sa("click",this.PU,this);b=new g.lO(g.mO(),1,"Estad\u00edsticas para nerds");g.J(this,b);this.Dc(b,!0);b.Sa("click",this.hV,this);g.J(this,this.Ar);this.Ar.Sa("click",this.tT,this);g.J(this,this.FI);c=document.queryCommandSupported&&document.queryCommandSupported("copy");g.lj&&g.be(43)&&(c=!0);g.mj&&!g.be(41)&&(c=!1);c&&(this.Hn=new g.W({G:"textarea",L:"ytp-html5-clipboard",X:{readonly:""}}),g.J(this,this.Hn),this.Hn.Ea(this.element));null===(e= this.zi)||void 0===e?void 0:nO(e,{G:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{G:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});nO(this.Jb,{G:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},T:[{G:"path",X:{"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"}}]});nO(this.Cw,{G:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{G:"path",X:{"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"}}]});nO(b,Esa());this.S(a,"loopchange",this.rL);this.S(a,"videodatachange",this.qb);jva(this);kva(this,this.I.getVideoData())}; wO=function(a,b){var c=!1;if(a.Hn){var d=a.Hn.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Bb.Eb():(a.Ar.fd(b,"text"),g.vO(a.Bb,a.FI),FN(a.Ar.element),a.Hn&&(a.Hn=null,jva(a)));return c}; kva=function(a,b){var c,d=a.I.W(),e=2===a.I.getPresentingPlayerType(),f=!e||b.isListed;f=!d.N&&!!b.videoId&&f;"play"!==d.playerStyle?d="https://support.google.com/youtube/?p=report_playback":(d={contact_type:"playbackissue",html5:1,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.u&&(d.fmt=b.u.lc()),b.clientPlaybackNonce&&(d.cpn=b.clientPlaybackNonce),b.Ha&&(d.partnerid=b.Ha),d=g.Bi("//support.google.com/googleplay/",d));g.YK(a.gj,f&&b.allowEmbed);g.YK(a.getVideoUrl,f);g.YK(a.jj,f&&!b.isLivePlayback); a.Cw.fd(d,"href");null===(c=a.zi)||void 0===c?void 0:g.YK(c,!b.isLivePlayback&&!e)}; jva=function(a){var b=!!a.Hn;g.kO(a.Jb,b?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener informaci\u00f3n de depuraci\u00f3n");sO(a.Jb,!b);g.kO(a.gj,b?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener c\u00f3digo de inserci\u00f3n");sO(a.gj,!b);g.kO(a.getVideoUrl,b?"Copiar URL del v\u00eddeo":"Obtener URL de v\u00eddeo");sO(a.getVideoUrl,!b);g.kO(a.jj,b?"Copiar la URL del v\u00eddeo a partir del minuto actual":"Obtener URL de v\u00eddeo en el minuto actual");sO(a.jj,!b);nO(a.gj,b?Csa():null); nO(a.getVideoUrl,b?gL():null);nO(a.jj,b?gL():null)}; g.xO=function(a,b){g.PN.call(this,a,{G:"div",Ia:["ytp-popup",b||""]},100,!0);this.i=[];this.J=this.C=null;this.mx=this.maxWidth=0;this.size=new g.gg(0,0);this.Sa("keydown",this.lO)}; lva=function(a){var b=a.i[a.i.length-1];if(b){g.im(a.element,a.maxWidth||"100%",a.mx||"100%");g.Vl(b.element,"minWidth","250px");g.Vl(b.element,"width","");g.Vl(b.element,"height","");g.Vl(b.element,"maxWidth","100%");g.Vl(b.element,"maxHeight","100%");g.Vl(b.content.element,"height","");var c=g.jm(b.element);c.width+=1;c.height+=1;g.Vl(b.element,"width",c.width+"px");g.Vl(b.element,"height",c.height+"px");g.Vl(b.element,"maxWidth","");g.Vl(b.element,"maxHeight","");var d=0;b.NJ&&(d=b.Fa("ytp-panel-header"), d=g.jm(d).height);var e=0;b.GR&&(e=b.Fa("ytp-panel-footer"),g.Vl(e,"width",c.width+"px"),e=g.jm(e).height);g.Vl(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0=a.i.length)){var b=a.i.pop(),c=a.i[0];a.i=[c];yO(a,b,c,!0)}}; yO=function(a,b,c,d){mva(a);b&&(b.unsubscribe("size-change",a.ot,a),b.unsubscribe("back",a.lh,a));c.subscribe("size-change",a.ot,a);c.subscribe("back",a.lh,a);if(a.zb){g.N(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ea(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;lva(a);g.im(a.element,e);a.C=new g.M(function(){nva(a,b,c,d)},20,a); a.C.start()}else c.Ea(a.element),b&&b.detach()}; nva=function(a,b,c,d){a.C.dispose();a.C=null;g.N(a.element,"ytp-popup-animating");d?(g.N(b.element,"ytp-panel-animate-forward"),g.Vq(c.element,"ytp-panel-animate-back")):(g.N(b.element,"ytp-panel-animate-back"),g.Vq(c.element,"ytp-panel-animate-forward"));g.im(a.element,a.size);a.J=new g.M(function(){g.Vq(a.element,"ytp-popup-animating");b.detach();g.Wq(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.J.dispose();a.J=null},250,a); a.J.start()}; mva=function(a){a.C&&g.Oq(a.C);a.J&&g.Oq(a.J)}; g.AO=function(a,b,c){g.xO.call(this,a);this.Aa=b;this.pc=c;this.B=new g.FD(this);this.ma=new g.M(this.yV,1E3,this);this.xa=this.D=null;g.J(this,this.B);g.J(this,this.ma);a.Ub(this.element,this,28656);g.N(this.element,"ytp-contextmenu");ova(this);this.hide()}; ova=function(a){g.jy(a.B);if("gvn"!==a.I.W().playerStyle){var b=a.I.fb();a.B.S(b,"contextmenu",a.qT);a.B.S(b,"touchstart",a.nO,null,!0);a.B.S(b,"touchmove",a.NL,null,!0);a.B.S(b,"touchend",a.NL,null,!0)}}; pva=function(a){a.I.isFullscreen()?g.UM(a.I,a.element,9):a.Ea(document.body)}; g.BO=function(a,b,c){c=void 0===c?240:c;g.W.call(this,{G:"button",Ia:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.fF(a.W()))},T:[{G:"div",L:"ytp-copylink-icon",va:"{{icon}}"},{G:"div",L:"ytp-copylink-title",va:"Copiar enlace",X:{"aria-hidden":"true"}}]});this.api=a;this.i=b;this.u=c;this.visible=!1;this.tooltip=this.i.fc();b=a.W();hO(this.tooltip);g.O(this.element,"ytp-show-copylink-title",g.fF(b)&&!g.qF(b));a.Ub(this.element,this,86570);this.Sa("click", this.onClick);this.S(a,"videodatachange",this.Ra);this.S(a,"videoplayerreset",this.Ra);this.S(a,"appresize",this.Ra);this.Ra();g.wf(this,g.dO(this.tooltip,this.element))}; qva=function(a){a.Ua("icon",bL());if(a.api.W().i)CO(a.tooltip,a.element,"Se ha copiado el enlace en el portapapeles.");else{a.Ua("title-attr","Se ha copiado el enlace en el portapapeles.");DO(a.tooltip);CO(a.tooltip,a.element);var b=a.Sa("mouseleave",function(){a.kc(b);a.Ra();a.tooltip.cj()})}}; rva=function(a,b){return g.H(a,function d(){var e=this;return g.B(d,function(f){if(1==f.i)return ua(f,2),g.z(f,navigator.clipboard.writeText(b),4);if(2!=f.i)return f.return(!0);wa(f);var h=f.return,l=!1,m=g.Cg("TEXTAREA");m.value=b;m.setAttribute("readonly","");var n=e.api.getRootNode();n.appendChild(m);if(Zt){var p=window.getSelection();p.removeAllRanges();var q=document.createRange();q.selectNodeContents(m);p.addRange(q);m.setSelectionRange(0,b.length)}else m.select();try{l=document.execCommand("copy")}catch(t){}n.removeChild(m); return h.call(f,l)})})}; EO=function(){g.W.call(this,{G:"div",L:"ytp-doubletap-ui",T:[{G:"div",Ia:["ytp-seek-info-container","ytp-seek-static-circle"],T:[{G:"div",L:"ytp-seek-arrows-container",T:[{G:"span",L:"ytp-seek-base-arrow"},{G:"span",L:"ytp-seek-base-arrow"},{G:"span",L:"ytp-seek-base-arrow"}]},{G:"div",L:"ytp-seek-tooltip",T:[{G:"div",L:"ytp-chapter-seek-text",va:"{{chapterSeekText}}"},{G:"div",L:"ytp-seek-tooltip-label",va:"{{seekTime}}"}]}]}]});this.u=new g.M(this.show,10,this);this.i=new g.M(this.hide,700,this); g.J(this,this.u);g.J(this,this.i);this.hide()}; FO=function(a){g.W.call(this,{G:"div",L:"ytp-doubletap-ui-legacy",T:[{G:"div",L:"ytp-doubletap-fast-forward-ve"},{G:"div",L:"ytp-doubletap-rewind-ve"},{G:"div",L:"ytp-doubletap-static-circle",T:[{G:"div",L:"ytp-doubletap-ripple"}]},{G:"div",L:"ytp-doubletap-overlay-a11y"},{G:"div",L:"ytp-doubletap-seek-info-container",T:[{G:"div",L:"ytp-doubletap-arrows-container",T:[{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"}]},{G:"div", L:"ytp-doubletap-tooltip",T:[{G:"div",L:"ytp-chapter-seek-text-legacy",va:"{{seekText}}"},{G:"div",L:"ytp-doubletap-tooltip-label",va:"{{seekTime}}"}]}]}]});this.I=a;this.B=new g.M(this.show,10,this);this.u=new g.M(this.hide,700,this);this.i=this.Fa("ytp-doubletap-static-circle");g.J(this,this.B);g.J(this,this.u);this.hide();this.C=this.Fa("ytp-doubletap-fast-forward-ve");this.D=this.Fa("ytp-doubletap-rewind-ve");this.I.Ub(this.C,this,28240);this.I.Ub(this.D,this,28239);this.I.jb(this.C,!0);this.I.jb(this.D, !0)}; sva=function(a,b){b=g.zI("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:b.toString()});a.Ua("seekTime",b)}; GO=function(a){var b=null;try{b=a.toLocaleString("es",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b}; HO=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}; tva=function(a,b){b=HO(a,b)+1;return bd;e={Fm:e.Fm},f++){e.Fm=c[f];a:switch(e.Fm.img||e.Fm.iconId){case "facebook":var h={G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},T:[{G:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",X:{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":h={G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},T:[{G:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",X:{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:h=null}h&&(h=new g.W({G:"a",Ia:["ytp-share-panel-service-button","ytp-button"],X:{href:e.Fm.url,target:"_blank",title:e.Fm.sname||e.Fm.serviceName},T:[h]}),h.Sa("click",function(m){return function(n){if(g.VL(n)){var p=m.Fm.url;var q=void 0===q?{}:q;q.target=q.target||"YouTube";q.width=q.width||"600";q.height=q.height||"600";q||(q={});var t=window;var u=p instanceof g.Lc?p:g.Qc("undefined"!=typeof p.href?p.href:String(p));p=q.target||p.target;var x=[];for(y in q)switch(y){case "width":case "height":case "top":case "left":x.push(y+ "="+q[y]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(y+"="+(q[y]?1:0))}var y=x.join(",");Vd()&&t.navigator&&t.navigator.standalone&&p&&"_self"!=p?(y=g.Cg("A"),g.pd(y,u),y.setAttribute("target",p),q.noreferrer&&y.setAttribute("rel","noreferrer"),q=document.createEvent("MouseEvent"),q.initMouseEvent("click",!0,!0,t,1),y.dispatchEvent(q),t={}):q.noreferrer?(t=qd("",t,p,y),q=g.Mc(u),t&&(g.KF&&-1!=q.indexOf(";")&&(q="'"+q.replace(/'/g,"%27")+"'"),t.opener=null,q=g.md(g.nc("b/12014412, meta tag with sanitized URL"), ''),(u=t.document)&&u.write&&(u.write(g.hd(q)),u.close()))):(t=qd(u,t,p,y))&&q.noopener&&(t.opener=null);if(q=t)q.opener||(q.opener=window),q.focus();g.Bu(n)}}}(e)),g.wf(h,g.dO(a.tooltip,h.element)),a.i.push(h),d++)}var l=b.more||b.moreLink; b=new g.W({G:"a",Ia:["ytp-share-panel-service-button","ytp-button"],T:[{G:"span",L:"ytp-share-panel-service-button-more",T:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},T:[{G:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",X:{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"}}]}]}],X:{href:l,target:"_blank",title:"M\u00e1s"}});b.Sa("click",function(m){g.DN(l,a.api,m)&&a.api.Oa("SHARE_CLICKED")}); g.wf(b,g.dO(a.tooltip,b.element));a.i.push(b);a.Ua("buttons",a.i)}; Bva=function(a){for(var b=g.r(a.i),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.uf(c);a.i=[]}; $O=function(a,b,c){c=void 0===c?!0:c;g.W.call(this,{G:"div",L:"ytp-suggested-action"});var d=this;this.I=a;this.eb=b;this.Qa=this.K=this.i=this.D=this.C=this.u=this.expanded=this.enabled=this.B=!1;this.bb=!0;this.Ma=new g.M(function(){d.badge.element.style.width=""},200,this); this.ma=new g.M(function(){YO(d);ZO(d)},200,this); this.dismissButton=new g.W({G:"button",Ia:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.J(this,this.dismissButton);this.J=new g.W({G:"div",L:"ytp-suggested-action-badge-expanded-content-container",T:[{G:"label",L:"ytp-suggested-action-badge-title",va:"{{badgeLabel}}"},this.dismissButton]});g.J(this,this.J);this.badge=new g.W({G:"button",Ia:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],T:[c?{G:"div",L:"ytp-suggested-action-badge-icon"}: "",this.J]});g.J(this,this.badge);this.badge.Ea(this.element);this.N=new g.HL(this.badge,250,!1,100);g.J(this,this.N);this.Aa=new g.HL(this.J,250,!1,100);g.J(this,this.Aa);this.La=new g.Jq(this.BW,null,this);g.J(this,this.La);this.xa=new g.Jq(this.OQ,null,this);g.J(this,this.xa);g.J(this,this.Ma);g.J(this,this.ma);this.I.Qg(this.badge.element,this.badge,!0);this.I.Qg(this.dismissButton.element,this.dismissButton,!0);this.S(this.I,"onHideControls",function(){d.i=!1;ZO(d);YO(d);d.Uh()}); this.S(this.I,"onShowControls",function(){d.i=!0;ZO(d);YO(d);d.Uh()}); this.S(this.badge.element,"click",this.kE);this.S(this.dismissButton.element,"click",this.lE);this.S(this.I,"pageTransition",this.rO);this.S(this.I,"appresize",this.Uh);this.S(this.I,"fullscreentoggled",this.FT);this.S(this.I,"cardstatechange",this.gT);this.S(this.I,"annotationvisibility",this.aX,this);this.S(this.I,"offlineslatestatechange",this.bX,this)}; YO=function(a){g.O(a.badge.element,"ytp-suggested-action-badge-with-controls",a.i||!a.u)}; ZO=function(a,b){var c=a.K||a.i||!a.u;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.La.stop(),a.xa.stop(),a.Ma.stop(),a.La.start()):(g.YK(a.J,a.expanded),g.O(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),Dva(a))}; Dva=function(a){a.C&&a.I.jb(a.badge.element,a.Mw());a.D&&a.I.jb(a.dismissButton.element,a.Mw()&&(a.K||a.i||!a.u))}; Eva=function(a){var b=a.text||"";g.Jg(g.rg("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Ta?a.Ta:"")}; Fva=function(a,b){b?a.D&&a.I.Gb(a.dismissButton.element):a.C&&a.I.Gb(a.badge.element)}; aP=function(a,b){$O.call(this,a,b);var c=this;this.V=this.Ba=this.Ha=!1;this.S(this.I,g.yA("shopping_overlay_visible"),function(){c.ye(!0)}); this.S(this.I,g.zA("shopping_overlay_visible"),function(){c.ye(!1)}); this.S(this.I,g.yA("shopping_overlay_expanded"),function(){c.K=!0;ZO(c)}); this.S(this.I,g.zA("shopping_overlay_expanded"),function(){c.K=!1;ZO(c)}); this.S(this.I,"changeProductsInVideoVisibility",this.xU);this.S(this.I,"videodatachange",this.qb);this.S(this.I,"paidcontentoverlayvisibilitychange",this.pU)}; bP=function(a){a.I.Xe("shopping_overlay_visible");a.I.Xe("shopping_overlay_expanded")}; cP=function(a){g.PN.call(this,a,{G:"button",Ia:["ytp-skip-intro-button","ytp-popup","ytp-button"],T:[{G:"div",L:"ytp-skip-intro-button-text",va:"Saltar introducci\u00f3n"}]},100);var b=this;this.D=!1;this.C=new g.M(function(){b.hide()},5E3); this.i=this.B=NaN;g.J(this,this.C);this.xa=function(){b.show()}; this.ma=function(){b.hide()}; this.J=function(){var c=b.I.getCurrentTime();c>b.B/1E3&&c=f&&(p-=1/h);n-=2/h;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.iP=function(a){g.W.call(this,{G:"div",L:"ytp-storyboard-framepreview",T:[{G:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.Fa("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.FD(this);this.i=new g.HL(this,100);g.J(this,this.events);g.J(this,this.i);this.S(this.api,"presentingplayerstatechange",this.Jc)}; jP=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.S(a.api,"videodatachange",function(){jP(a,a.api.Hh())}),a.events.S(a.api,"progresssync",a.kd),a.events.S(a.api,"appresize",a.D)),a.B=NaN,kP(a),a.i.show(200)):(c&&g.jy(a.events),a.i.hide(),a.i.stop())}; kP=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.fb().getPlayerSize(),e=qG(b,d.width);c=noa(b,e,c);c!==a.B&&(a.B=c,loa(b,c,d.width),b=joa(b,c,d.width),Hva(a.C,b,d.width,d.height))}; lP=function(a,b){g.W.call(this,{G:"button",Ia:["ytp-fullerscreen-edu-button","ytp-button"],T:[{G:"div",Ia:["ytp-fullerscreen-edu-text"],va:"Desliza hacia abajo para ver m\u00e1s detalles"},{G:"div",Ia:["ytp-fullerscreen-edu-chevron"],T:[{G:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},T:[{G:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.i=a;this.C=b;this.u=new g.HL(this,250,void 0,100);this.D=this.B=!1;a.Ub(this.element,this,61214);this.C= b;g.J(this,this.u);this.S(a,"fullscreentoggled",this.Ra);this.S(a,"presentingplayerstatechange",this.Ra);this.Sa("click",this.onClick);this.Ra()}; g.mP=function(a,b){g.W.call(this,{G:"button",Ia:["ytp-fullscreen-button","ytp-button"],X:{title:"{{title}}","aria-label":"{{label}}"},va:"{{icon}}"});this.I=a;this.u=b;this.message=null;this.i=g.dO(this.u.fc(),this.element);this.B=new g.M(this.qQ,2E3,this);g.J(this,this.B);this.S(a,"fullscreentoggled",this.Ji);this.S(a,"presentingplayerstatechange",this.Ra);this.Sa("click",this.onClick);g.cy()&&(b=this.I.fb(),this.S(b,Dia(),this.sE),this.S(b,fy(document),this.fm));a.W().Xa||a.W().D||this.disable(); this.Ra();this.Ji(a.isFullscreen())}; nP=function(a,b){g.W.call(this,{G:"button",Ia:["ytp-miniplayer-button","ytp-button"],X:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},T:[Isa()]});this.I=a;this.visible=!1;this.Sa("click",this.onClick);this.S(a,"fullscreentoggled",this.Ra);this.Ua("title",GN(a,"Minirreproductor","i"));g.wf(this,g.dO(b.fc(),this.element));a.Ub(this.element,this,62946);this.Ra()}; oP=function(a,b,c){g.W.call(this,{G:"button",Ia:["ytp-multicam-button","ytp-button"],X:{title:"Cambiar de c\u00e1mara","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},T:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"path",Nb:!0,X:{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.I=a;this.i=!1;this.u=new g.M(this.B,400,this);this.tooltip=b.fc();hO(this.tooltip);g.J(this,this.u);this.Sa("click",function(){QN(c,d.element,!1)}); this.S(a,"presentingplayerstatechange",function(){d.Ra(!1)}); this.S(a,"videodatachange",this.qb);this.Ra(!0);g.wf(this,g.dO(this.tooltip,this.element))}; pP=function(a){g.PN.call(this,a,{G:"div",L:"ytp-multicam-menu",X:{role:"dialog"},T:[{G:"div",L:"ytp-multicam-menu-header",T:[{G:"div",L:"ytp-multicam-menu-title",T:["Cambiar de c\u00e1mara",{G:"button",Ia:["ytp-multicam-menu-close","ytp-button"],X:{"aria-label":"Cerrar"},T:[g.eL()]}]}]},{G:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.FD(this);this.items=this.Fa("ytp-multicam-menu-items");this.i=[];g.J(this,this.B);a=this.Fa("ytp-multicam-menu-close");this.S(a,"click",this.Eb); this.hide()}; qP=function(){g.I.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.Jq(this.i,null,this);g.J(this,this.delay)}; Iva=function(a,b){if("path"===b.G)return b.X.d;if(b.T)for(var c=0;c=A&&F<=E&&G.push(V);0l)a.i[c].width=n;else{a.i[c].width=0;var p=a,q=c,t=p.i[q-1];void 0!==t&&0a.eb&&(a.eb=m/f),d=!0)}c++}}return d}; GP=function(a){var b;if(a.D){var c=a.api.getProgressState();var d=(null===(b=a.api.getVideoData())||void 0===b?0:zH(b))&&c.airingStart&&c.airingEnd?gwa(a,c.airingStart,c.airingEnd):gwa(a,c.seekableStart,c.seekableEnd);var e=aM(d,c.loaded,0);c=aM(d,c.current,0);var f=a.u.u!==d.u||a.u.i!==d.i;a.u=d;HP(a,c,e);f&&IP(a);hwa(a)}}; gwa=function(a,b,c){var d=a.api.W().U("enable_fully_expanded_clip_range_in_progress_bar"),e=a.api.W().experiments.Ga("enable_expanded_clip_range_in_progress_bar");return JP(a)&&d?new YL(Math.max(b,a.C.startTimeMs/1E3),Math.min(c,a.C.endTimeMs/1E3)):JP(a)&&e?(d=a.C.startTimeMs/1E3,a=a.C.endTimeMs/1E3,e=(a-d)/20,new YL(Math.max(b,d-e),Math.min(c,a+e))):new YL(b,c)}; LP=function(a,b){var c=$L(a.u,b.B);if(1=a.i.length?!1:4>Math.abs(b-a.i[c].startTime/1E3)/a.u.i*(a.D-(a.B?3:2)*a.Ba)}; jwa=function(a,b,c,d){b=g.ag(b,0,a.B?60:40);a.ma=b;var e=a.La;a.La=b/(a.B?60:40)*(Math.max(ZL(a.u)/a.D,1)-1)+1;b=a.D*a.La;a.xa=g.ag(d*b-c,0,b-a.D);e!==a.La&&IP(a)}; IP=function(a){var b=FP(a),c=-b.u/b.i,d=(-b.u+b.width)/b.i,e=aba(a.hc),f=0;if(a.ma>.2*(a.B?60:40)&&1===a.i.length)for(var h=ZL(a.u)/60*d,l=Math.ceil(ZL(a.u)/60*c);l=f;c--)g.Gg(e[c]);a.element.style.height=a.ma+(a.B?8:5)+"px";a.Z("height-change",a.ma);a.Vc.style.height=a.ma+(a.B?20:13)+"px";e=g.r(Object.keys(a.Ha));for(f=e.next();!f.done;f=e.next())kwa(a,f.value);MP(a);HP(a,a.V,a.bb)}; FP=function(a){var b=a.gb.x,c=a.D*a.La;b=g.ag(b,0,a.D);a.Fc.update(b,a.D,-a.xa,-(c-a.xa-a.D));return a.Fc}; HP=function(a,b,c){var d;a.V=b;a.bb=c;var e=FP(a),f=a.u.i,h=$L(a.u,a.V),l=g.zI("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.UL(h,!0),DURATION:g.UL(f,!0)}),m=HO(a.i,1E3*h);m=a.i[m].title;a.update({ariamin:Math.floor(a.u.u),ariamax:Math.floor(f),arianow:Math.floor(h),arianowtext:m?m+" "+l:l});f=a.clipStart;h=a.clipEnd;a.C&&2!==a.api.getPresentingPlayerType()&&(f=a.C.startTimeMs/1E3,h=a.C.endTimeMs/1E3);f=aM(a.u,f,0);m=aM(a.u,h,1);l=a.api.getVideoData();h=g.ag(b,f,m);c=(null===l||void 0===l?0:g.wH(l))? 1:g.ag(c,f,m);b=ewa(a,b,e);g.Vl(a.Ce,"transform","translateX("+b+"px)");NP(a,e,f,h,"PLAY_PROGRESS");(null===l||void 0===l?0:zH(l))||NP(a,e,f,c,"LOAD_PROGRESS");(null===l||void 0===l?0:zH(l))&&(b=lwa(a))&&NP(a,e,h,aM(a.u,b),"LIVE_BUFFER");a.api.U("web_player_heat_map_played_bar")&&(null===(d=a.K[0])||void 0===d?void 0:d.B.setAttribute("width",(100*h).toFixed(2)+"%"))}; NP=function(a,b,c,d,e){var f=a.i.length,h=b.i-a.Ba*(a.B?3:2),l=c*h;c=KP(a,l);var m=d*h;h=KP(a,m);"HOVER_PROGRESS"===e&&(h=KP(a,b.i*d,!0),m=b.i*d-mwa(a,b.i*d)*(a.B?3:2));b=Math.max(l-nwa(a,c),0);for(d=c;d=a.i.length)return a.D;for(var c=0,d=0;de.width)b-=e.width;else break;d++}return d===a.i.length?d-1:d}; ewa=function(a,b,c){for(var d=b*a.u.i*1E3,e=-1,f=g.r(a.i),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0e?0:e)+c.u}; mwa=function(a,b){for(var c=a.i.length,d=0,e=g.r(a.i),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.B?3:2,d++;else break;return d===c?c-1:d}; g.PP=function(a,b,c,d){var e=a.D!==c;a.Oc=b;a.D=c;a.B=d;IP(a);1===a.i.length&&(a.i[0].width=c||0);e&&g.DP(a)}; MP=function(a){var b=!!a.C&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.C?(c=a.C.startTimeMs/1E3,d=a.C.endTimeMs/1E3):(e=c>a.u.u,f=0a.V);g.O(a.Vc,"ytp-scrubber-button-hover",e===f&&1b||b===a.B)){a.B=b;b=160*a.scale;var c=160*a.scale,d=joa(a.i,a.B,b);Hva(a.bg,d,b,c,!0);a.xa.start()}}; Kwa=function(a){var b=a.u;3===a.type&&a.Aa.stop();a.api.removeEventListener("appresize",a.ma);a.N||b.setAttribute("title",a.J);a.J="";a.u=null}; g.FQ=function(a,b){g.W.call(this,{G:"button",Ia:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.fF(a.W()))},T:[{G:"div",L:"ytp-watch-later-icon",va:"{{icon}}"},{G:"div",L:"ytp-watch-later-title",va:"Ver m\u00e1s tarde"}]});this.I=a;this.icon=null;this.visible=this.isRequestPending=this.i=!1;this.tooltip=b.fc();hO(this.tooltip);a.Ub(this.element,this,28665);this.Sa("click",this.onClick,this);this.S(a,"videoplayerreset",this.EO); this.S(a,"appresize",this.nx);this.S(a,"videodatachange",this.nx);this.S(a,"presentingplayerstatechange",this.nx);this.nx();a=this.I.W();var c=g.Uz("yt-player-watch-later-pending");a.u&&c?(ima(),Lwa(this)):this.Ra(2);g.O(this.element,"ytp-show-watch-later-title",g.fF(a));g.wf(this,g.dO(b.fc(),this.element))}; Mwa=function(a,b){g.kta(function(){ima({videoId:b});window.location.reload()},"wl_button",g.zF(a.I.W()))}; Lwa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ra(3);var b=a.I.getVideoData();b=a.i?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.I.Kl(),d=a.i?function(){a.i=!1;a.isRequestPending=!1;a.Ra(2);a.I.W().B&&a.I.Oa("WATCH_LATER_VIDEO_REMOVED")}:function(){a.i=!0; a.isRequestPending=!1;a.Ra(1);a.I.W().i&&CO(a.tooltip,a.element);a.I.W().B&&a.I.Oa("WATCH_LATER_VIDEO_ADDED")}; lM(c,b).then(d,function(){a.isRequestPending=!1;Nwa(a,"Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; Nwa=function(a,b){a.Ra(4,b);a.I.W().B&&a.I.Oa("WATCH_LATER_ERROR",b)}; Owa=function(a,b){var c=a.I.W();if(b!==a.icon){switch(b){case 3:var d=EN();break;case 1:d=bL();break;case 2:d={G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{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.U("watch_later_iconchange_killswitch")?{G:"svg",X:{height:"100%",version:"1.1", viewBox:"0 0 36 36",width:"100%"},T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{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"}}]}:{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"path",Nb:!0,X:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.Ua("icon",d);a.icon=b}}; GQ=function(a){g.TN.call(this,a);var b=this;this.Sy=(this.Kp=g.fF(this.api.W()))&&(this.api.W().i||bu()||$t());this.qC=48;this.rC=69;this.qk=null;this.Qn=[];this.pc=new g.ZN(this.api);this.Nu=this.api.U("web_player_deprecate_double_tap_ux")?new EO:new FO(this.api);this.Sh=new g.W({G:"div",L:"ytp-chrome-top"});this.Yw=[];this.tooltip=new g.DQ(this.api,this);this.backButton=this.Fs=null;this.channelAvatar=new jO(this.api,this);this.title=new CQ(this.api,this);this.Gg=new g.VK({G:"div",L:"ytp-chrome-top-buttons"}); this.qh=null;this.ji=new cO(this.api,this,this.Sh.element);this.overflowButton=this.Wf=null;this.Zf="1"===this.api.W().controlsType?new wQ(this.api,this,this.od):null;this.contextMenu=new g.AO(this.api,this,this.pc);this.dC=!1;this.iy=new g.W({G:"div",X:{tabindex:"0"}});this.gy=new g.W({G:"div",X:{tabindex:"0"}});this.uw=null;this.lF=this.Qx=!1;var c=a.fb(),d=a.W(),e=a.getVideoData();this.Kp&&(g.N(a.getRootNode(),"ytp-embed"),g.N(a.getRootNode(),"ytp-embed-playlist"),this.Sy&&(g.N(a.getRootNode(), "ytp-embed-overlays-autohide"),g.N(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.qC=60,this.rC=89);this.api.W().i&&(g.N(a.getRootNode(),"ytp-mobile"),this.api.W().D&&g.N(a.getRootNode(),"ytp-embed-mobile-exp"));this.Tg=e&&e.Tg;g.J(this,this.pc);JF(d)||g.UM(a,this.pc.element,4);g.J(this,this.Nu);g.UM(a,this.Nu.element,4);e=new g.W({G:"div",L:"ytp-gradient-top"});g.J(this,e);g.UM(a,e.element,1);this.HF=new g.HL(e,250,!0,100);g.J(this,this.HF);g.J(this,this.Sh);g.UM(a,this.Sh.element, 1);this.GF=new g.HL(this.Sh,250,!0,100);g.J(this,this.GF);g.J(this,this.tooltip);g.UM(a,this.tooltip.element,4);var f=new QO(a);g.J(this,f);g.UM(a,f.element,5);f.subscribe("show",function(l){b.Xm(f,l)}); this.Yw.push(f);this.Fs=new RO(a,this,f);g.J(this,this.Fs);d.showBackButton&&(this.backButton=new YN(a),g.J(this,this.backButton),this.backButton.Ea(this.Sh.element));this.Kp||this.Fs.Ea(this.Sh.element);this.channelAvatar.Ea(this.Sh.element);g.J(this,this.channelAvatar);g.J(this,this.title);this.title.Ea(this.Sh.element);g.J(this,this.Gg);this.Gg.Ea(this.Sh.element);this.qh=new g.FQ(a,this);g.J(this,this.qh);this.qh.Ea(this.Gg.element);var h=new g.XO(a,this);g.J(this,h);g.UM(a,h.element,5);h.subscribe("show", function(l){b.Xm(h,l)}); this.Yw.push(h);this.shareButton=new g.WO(a,this,h);g.J(this,this.shareButton);this.shareButton.Ea(this.Gg.element);this.Pg=new g.BO(a,this);g.J(this,this.Pg);this.Pg.Ea(this.Gg.element);d.bk&&(e=new cP(a),g.J(this,e),g.UM(a,e.element,4));this.Kp&&this.Fs.Ea(this.Gg.element);g.J(this,this.ji);this.ji.Ea(this.Gg.element);e=new eO(a,this,this.ji);g.J(this,e);e.Ea(this.Gg.element);this.Wf=new NO(a,this);g.J(this,this.Wf);g.UM(a,this.Wf.element,5);this.Wf.subscribe("show",function(){b.Xm(b.Wf,b.Wf.Tf())}); this.Yw.push(this.Wf);this.overflowButton=new MO(a,this,this.Wf);g.J(this,this.overflowButton);this.overflowButton.Ea(this.Gg.element);this.Zf&&g.J(this,this.Zf);"3"===d.controlsType&&(e=new VO(a,this),g.J(this,e),g.UM(a,e.element,8));g.J(this,this.contextMenu);this.contextMenu.subscribe("show",this.wN,this);e=new bM(a,new XN(a));g.J(this,e);g.UM(a,e.element,4);this.iy.Sa("focus",this.VQ,this);g.J(this,this.iy);this.gy.Sa("focus",this.WQ,this);g.J(this,this.gy);(this.Wl=d.Vc?null:new g.JO(a,c,this.contextMenu, this.od,this.pc,this.Nu,function(){return b.xk()}))&&g.J(this,this.Wl); this.Kp||(this.HM=new aP(this.api,this),g.J(this,this.HM),g.UM(a,this.HM.element,4));this.TM=new zQ(this.api,this);g.J(this,this.TM);g.UM(a,this.TM.element,4);this.Pn.push(this.pc.element);this.S(a,"fullscreentoggled",this.fm);this.S(a,"offlineslatestatechange",function(){b.api.Mv()&&yN(b.od,128,!1)}); this.S(a,"cardstatechange",function(){b.Si()}); this.S(a,"resize",this.rT);this.S(a,"showpromotooltip",this.aU)}; Pwa=function(a){var b=a.api.W(),c=g.U(a.api.wb(),128);return b.u&&c&&!a.api.isFullscreen()}; HQ=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Zl(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=HQ(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndexb)return b;for(var c=b&127,d=1;128<=b;)b=lD(a.u,a.i),++a.i,d*=128,c+=(b&127)*d;return c}; MQ=function(a,b){a.C=b;var c=a.B;for(a.B=-1;a.i+1<=a.u.totalLength;){0>c&&(c=LQ(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:LQ(a);break;case 1:a.i+=8;break;case 2:d=LQ(a);a.i+=d;break;case 5:a.i+=4}}return!1}; NQ=function(a,b,c){c=void 0===c?0:c;return MQ(a,b)?LQ(a):c}; OQ=function(a,b){var c=void 0===c?"":c;if(!MQ(a,b))return c;b=LQ(a);if(!b)return"";c=kD(a.u,a.i,b);a.i+=b;return g.C.TextDecoder?(new TextDecoder).decode(c):g.Ya(c)}; PQ=function(a,b){var c=void 0===c?null:c;if(!MQ(a,b))return c;b=LQ(a);c=kD(a.u,a.i,b);a.i+=b;return c}; Swa=function(){this.i=0;this.B=void 0;this.C=[];this.u=new Uint8Array(4096);this.view=new DataView(this.u.buffer);g.C.TextEncoder&&(this.B=new TextEncoder)}; QQ=function(a,b){b=a.i+b;if(!(a.u.length>=b)){for(var c=2*a.u.length;cd;d++)a.view.setUint8(a.i,c&127|128),c>>=7,a.i+=1;b=Math.floor(b/268435456)}for(QQ(a,4);127>=7,a.i+=1;a.view.setUint8(a.i,b);a.i+=1}; SQ=function(a,b,c){RQ(a,b<<3|0);RQ(a,c)}; TQ=function(a,b,c){RQ(a,b<<3|2);b=c.length;RQ(a,b);QQ(a,b);a.u.set(c,a.i);a.i+=b}; VQ=function(a,b,c){c=a.B?a.B.encode(c):new Uint8Array(UQ(g.Xa(c)).buffer);TQ(a,b,c)}; Twa=function(a){RQ(a,18);a.C.push(a.i);a.i+=2}; Uwa=function(a){var b=a.C.pop()||0,c=a.i-b-2;a.view.setUint8(b,c&127|128);a.view.setUint8(b+1,c>>7)}; WQ=function(a){var b=new KQ(new gD([Dd(decodeURIComponent(a))]));a=OQ(b,2);b=NQ(b,4);var c=Vwa[b];if("undefined"===typeof c)throw a=new g.hw("Failed to recognize field number",{name:"EntityKeyHelperError",N$:b}),g.yz(a),a;return{QQ:b,entityType:c,entityId:a}}; XQ=function(a,b){var c=new Swa;VQ(c,2,a);a=Wwa[b];if("undefined"===typeof a)throw b=new g.hw("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.yz(b),b;SQ(c,4,a);SQ(c,5,1);b=new Uint8Array(c.u.buffer,0,c.i);return encodeURIComponent(g.fe(b))}; YQ=function(a){a=a.key||a.id;if(!a)throw Error("Entity key is missing");return a}; ZQ=function(a,b,c,d){if(void 0===d){d=a[b]||{};var e=["symbol"===typeof c?c:c+""];c={};for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&0>e.indexOf(f)&&(c[f]=d[f]);if(null!=d&&"function"===typeof Object.getOwnPropertySymbols){var h=0;for(f=Object.getOwnPropertySymbols(d);he.indexOf(f[h])&&(c[f[h]]=d[f[h]])}f={};return Object.assign(Object.assign({},a),(f[b]=c,f))}f={};e={};return Object.assign(Object.assign({},a),(e[b]=Object.assign(Object.assign({},a[b]),(f[c]=d,f)),e))}; eR=function(a){this.counter=[0,0,0,0];this.u=new Uint8Array(16);this.i=16;if(!Xwa){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;256>b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);$Q=new Uint8Array(256);aR=[];bR=[];cR=[];dR=[];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;$Q[f]=e;b=e<<1^(e>>7&&283);var h=b^e;aR.push(b<<24|e<<16|e<<8|h);bR.push(h<<24|aR[f]>>>8);cR.push(e<<24|bR[f]>>>8);dR.push(e<<24|cR[f]>>>8)}Xwa=!0}e=[];for(c=0;4>c;c++)e.push(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=($Q[a>>16&255]^d)<<24|$Q[a>>8&255]<<16|$Q[a&255]<<8|$Q[a>>>24],d=d<<1^(d>>7&&283)),e.push(e[c-4]^a);this.key=e}; Ywa=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.i=16}; Zwa=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],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(h=4;40>h;){var l=aR[c>>>24]^bR[d>>16&255]^cR[e>>8&255]^dR[f&255]^b[h++];var m=aR[d>>>24]^bR[e>>16&255]^cR[f>>8&255]^dR[c&255]^b[h++];var n=aR[e>>>24]^bR[f>>16&255]^cR[c>>8&255]^dR[d&255]^b[h++];f=aR[f>>>24]^bR[c>>16&255]^cR[d>>8&255]^dR[e&255]^b[h++];c=l;d=m;e=n}a=a.u;c=[c,d,e,f];for(d=0;16>d;)a[d++]=$Q[c[0]>>>24]^b[h]>>>24,a[d++]=$Q[c[1]>> 16&255]^b[h]>>16&255,a[d++]=$Q[c[2]>>8&255]^b[h]>>8&255,a[d++]=$Q[c[3]&255]^b[h++]&255,c.push(c.shift())}; fR=function(){var a;if(!$wa&&!g.cx){var b=null===(a=window.crypto)||void 0===a?void 0:a.subtle;if((null===b||void 0===b?0:b.importKey)&&(null===b||void 0===b?0:b.sign)&&(null===b||void 0===b?0:b.encrypt))return b}}; gR=function(a){this.B=a}; hR=function(a){this.u=a}; iR=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.J=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()}; bxa=function(a,b,c){for(var d=[],e=0;16>e;e++)d.push(b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3]),c+=4;for(b=16;64>b;b++)c=d[b-7]+d[b-16],e=d[b-2],c+=(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10,e=d[b-15],c+=(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3,d.push(c);b=a.i[0];c=a.i[1];e=a.i[2];for(var f=a.i[3],h=a.i[4],l=a.i[5],m=a.i[6],n=a.i[7],p,q,t=0;64>t;t++)p=n+axa[t]+d[t]+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^~h&m),q=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&c^b&e^c&e),n=m,m=l,l=h,h=f+p,f=e,e=c,c=b,b= p+q;a.i[0]=b+a.i[0]|0;a.i[1]=c+a.i[1]|0;a.i[2]=e+a.i[2]|0;a.i[3]=f+a.i[3]|0;a.i[4]=h+a.i[4]|0;a.i[5]=l+a.i[5]|0;a.i[6]=m+a.i[6]|0;a.i[7]=n+a.i[7]|0}; dxa=function(a){var b=new Uint8Array(32),c=64-a.u;55f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.i[c]>>>24,b[4*c+1]=a.i[c]>>>16&255,b[4*c+2]=a.i[c]>>>8&255,b[4*c+3]=a.i[c]&255;cxa(a);return b}; cxa=function(a){a.i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.C=0;a.u=0}; jR=function(a,b){b=void 0===b?{}:b;g.hw.call(this,exa[a],Object.assign({name:"PESEncoderError",type:a},b));this.type=a;this.level="WARNING";Object.setPrototypeOf(this,jR.prototype)}; fxa=function(a){return new jR("WRONG_DATA_TYPE",{MQ:a})}; gxa=function(a){return a instanceof Error?new jR("UNKNOWN_ENCODE_ERROR",{originalMessage:a.message}):new jR("UNKNOWN_ENCODE_ERROR")}; hxa=function(a){return a instanceof Error?new jR("UNKNOWN_DECODE_ERROR",{originalMessage:a.message}):new jR("UNKNOWN_DECODE_ERROR")}; ixa=function(a,b){a=a instanceof jR?a:b(a);g.yz(a);throw a;}; jxa=function(){}; kxa=function(a,b,c){try{return a.u(b,c)}catch(d){ixa(d,hxa)}}; kR=function(a){a=(new TextEncoder).encode(a).slice(0,16);var b=new Uint8Array(16);b.set(a);return b}; lR=function(a){this.i=a}; mR=function(){}; lxa=function(){this.i={};this.i[0]=new mR;if(!g.us("aes_pes_encoder_killswitch")){var a=this.i;try{var b=iw();var c=kR(b);var d=new lR(new hR(c))}catch(e){throw a=new jR("KEY_CREATION_FAILED"),g.yz(a),a;}a[1]=d}}; nR=function(a,b){b=void 0===b?0:b;a=a.i[b];if(!a)throw b=new jR("INVALID_ENCODER_VERSION",{MQ:b}),g.yz(b),b;return a}; nxa=function(a){var b=mxa[a];if(b)return b;g.zz(new g.hw("Entity model not found.",{entityType:a}))}; oxa=function(a){var b=new lxa,c=a.objectStore("EntityStore"),d=a.objectStore("EntityAssociationStore");Nw(c,{},function(e){var f=e.getValue(),h=kxa(nR(b,f.version),f.data,f.key),l=WQ(f.key).entityType;l=nxa(l);if(!l)return e.continue();l=(new l(h)).ke();h=[];l=g.r(l);for(var m=l.next();!m.done;m=l.next())h.push(Iw(d,{parentEntityKey:f.key,childEntityKey:m.value}));return tw.all(h).then(function(){return e.continue()})})}; pxa=function(){if(oR)return oR();var a={};oR=kx("PersistentEntityStoreDb",{zs:(a.EntityStore={Mm:1},a.EntityAssociationStore={Mm:2},a),Kw:!1,upgrade:function(b,c,d){c(1)&&Mw(Ew(b,"EntityStore",{keyPath:"key"}),"entityType","entityType");c(2)&&(b=Ew(b,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),Mw(b,"byParentEntityKey","parentEntityKey"),Mw(b,"byChildEntityKey","childEntityKey"));c(3)&&!c(1)&&oxa(d)}, version:g.us("pes_migrate_association_data")?3:2});return oR()}; qxa=function(a,b){this.i=a;this.B=b;this.u={}}; rxa=function(a,b){return kxa(nR(a.B,b.version),b.data,b.key)}; pR=function(a,b,c){return a.i.objectStore("EntityStore").get(b).then(function(d){if(d){if(c&&d.entityType!==c)throw Error("Incorrect entity type");return rxa(a,d)}})}; qR=function(a,b,c){return c?(c=c.map(function(d){return pR(a,d,b)}),tw.all(c)):Sw(a.i.objectStore("EntityStore").index("entityType"),IDBKeyRange.only(b)).then(function(d){return d.map(function(e){return rxa(a,e)})})}; sR=function(a,b,c){var d=YQ(b),e=g.us("pes_aes_all")?1:0,f=nR(a.B,e);a:{try{var h=f.B(b,d);break a}catch(m){ixa(m,gxa)}h=void 0}var l={key:d,entityType:c,data:h,version:e};return a.i.objectStore("EntityStore").get(d).then(function(m){if(m&&m.entityType!==c)throw Error("Incorrect entity type");}).then(function(){return tw.all([Iw(a.i.objectStore("EntityStore"),l), sxa(a,b,c)])}).then(function(){rR(a,d,c); return d})}; tR=function(a,b,c){b=b.map(function(d){return sR(a,d,c)}); return tw.all(b)}; uR=function(a,b,c){if(null===c||void 0===c?0:c.oI){var d=new Set;return txa(a,b,d).then(function(){for(var f=[],h=g.r(d),l=h.next();!l.done;l=h.next())f.push(uR(a,l.value));return tw.all(f).then(function(){})})}var e=WQ(b).entityType; return tw.all([a.i.objectStore("EntityStore").delete(b),vR(a,b)]).then(function(){rR(a,b,e)})}; uxa=function(a,b){return Tw(a.i.objectStore("EntityStore").index("entityType"),{query:IDBKeyRange.only(b)},function(c){return tw.all([c.delete(),vR(a,c.Dy())]).then(function(){rR(a,c.Dy(),b);return c.continue()})})}; rR=function(a,b,c){var d=a.u[c];d||(d=new Set,a.u[c]=d);d.add(b)}; vxa=function(a,b,c){var d=YQ(b);c=nxa(c);if(!c)return tw.resolve([]);c=new c(b);a=a.i.objectStore("EntityAssociationStore");b=[];c=g.r(c.ke());for(var e=c.next();!e.done;e=c.next())b.push(Iw(a,{parentEntityKey:d,childEntityKey:e.value}));return tw.all(b).then(function(f){return f.map(function(h){return h[1]})})}; vR=function(a,b){return a.i.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b))}; sxa=function(a,b,c){var d=YQ(b);return vR(a,d).then(function(){return vxa(a,b,c)})}; txa=function(a,b,c){if(c.has(b))return tw.resolve(void 0);c.add(b);return wxa(a,b).then(function(d){return a.i.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b)).then(function(){return d})}).then(function(d){var e=tw.resolve(void 0),f={}; d=g.r(d);for(var h=d.next();!h.done;f={SA:f.SA},h=d.next())f.SA=h.value,e=e.then(function(l){return function(){return txa(a,l.SA,c)}}(f)); return e}).then(function(){})}; wxa=function(a,b){var c=a.i.objectStore("EntityAssociationStore");return Sw(c.index("byParentEntityKey"),IDBKeyRange.only(b)).then(function(d){var e=[];d=g.r(d);for(var f=d.next();!f.done;f=d.next())f=f.value,e.push(Sw(c.index("byChildEntityKey"),f.childEntityKey));return tw.all(e)}).then(function(d){var e=[]; d=g.r(d);for(var f=d.next();!f.done;f=d.next())f=f.value,1===f.length&&e.push(f[0].childEntityKey);return e})}; wR=function(a,b){g.I.call(this);this.token=a;this.u=b;this.i=[];a=new g.C.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+iw());a.onmessage=this.B.bind(this);this.channel=a}; xR=function(a,b,c){return g.H(a,function e(){var f=this,h,l,m,n,p;return g.B(e,function(q){if(1==q.i)return h=f,g.z(q,pxa().open(),2);if(3!=q.i)return l=q.u,g.z(q,Gw(l,["EntityStore","EntityAssociationStore"],b,function(t){m=new qxa(t,h.u);return c(m)}),3); n=q.u;m&&(p=m.u,0=e.length)return f.return();if(b){var h=e,l={type:"ENTITY_LOADED"};void 0!==h&&(l.payload=h);b.dispatch(l)}return g.z(f,Dxa(e),2)}e.length=0;g.sa(f)})})}; Dxa=function(a){return g.H(this,function c(){var d;return g.B(c,function(e){return 1==e.i?g.z(e,DR(),2):(d=e.u)?g.z(e,xR(d,"readwrite",function(f){for(var h=[],l=g.r(a),m=l.next();!m.done;m=l.next()){m=m.value;var n;if(n=m.entityKey){n=void 0;var p=null===(n=m.options)||void 0===n?void 0:n.persistenceOption;n="ENTITY_PERSISTENCE_OPTION_PERSIST"===p||"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"===p}n&&(n=Kb(m.payload),"ENTITY_MUTATION_TYPE_REPLACE"===m.type&&h.push(sR(f,m.payload[n],n)),"ENTITY_MUTATION_TYPE_DELETE"=== m.type&&h.push(uR(f,m.entityKey)))}return tw.all(h)}),0):e.return()})})}; Fxa=function(a){return void 0!==a}; Gxa=function(){this.locks=navigator.locks}; Hxa=function(){try{var a=g.Ga("ytglobal.locks_");if(a)return a;var b;if(b=navigator){var c=navigator;b="locks"in c&&!!c.locks}if(b)return g.C.localStorage&&g.C.localStorage.getItem("noop"),a=new Gxa,g.Fa("ytglobal.locks_",a,void 0),a}catch(d){}}; ER=function(a,b,c){g.zz(new g.hw("Woffle: "+a,c?{cotn:c}:""));b instanceof Error&&g.zz(b)}; Jxa=function(a,b,c,d){var e=this,f;this.N=a;this.V=b;this.visibility=c;this.U=d;this.C=this.J=this.D=this.u=this.i=!1;this.K=new g.M(function(){Ixa(e)}); null===(f=this.visibility)||void 0===f?void 0:f.subscribe("visibilitystatechange",function(){e.ye()})}; Kxa=function(a){if(!a.u&&!a.i){var b=Hxa();if(b){a.u=!0;var c=iw("OfflineLockManager");b.request("woffle_orchestration_leader:"+c,{},function(){return g.H(a,function e(){var f,h=this,l,m;return g.B(e,function(n){switch(n.i){case 1:return ua(n,2),h.B=new Rk,h.i=!0,h.u=!1,g.z(n,h.N(),4);case 4:return g.z(n,h.B.promise,5);case 5:va(n,0);break;case 2:l=wa(n),(null===(f=h.U)||void 0===f?0:f.call(h,"wo_relinquish_leadership_on_lock_request_error"))||Ixa(h),l instanceof Error&&(m=l,m.args=[{name:"WoLockManagerError", Jz:l.name}],g.yz(m)),g.sa(n)}})})})}}}; Lxa=function(a){a.i&&(a.C=!0,FR(a))}; Mxa=function(a,b){a.i&&(a.J=b,FR(a))}; FR=function(a){a.visibility&&(a.J&&a.D&&a.C&&a.visibility.isBackground()?g.Nq(a.K,6E4):a.K.stop())}; Ixa=function(a){a.B&&a.B.resolve();a.i=!1;a.u=!1;a.V()}; GR=function(a){g.I.call(this);this.api=a;"undefined"!==typeof g.C.BroadcastChannel&&(this.channel=new g.C.BroadcastChannel("PLAYER_OFFLINE_ERROR_SYNC:"+iw()),this.channel.onmessage=this.i.bind(this))}; HR=function(a,b){var c;a.api.Oa("onOfflineOperationFailure",b);null===(c=a.channel)||void 0===c?void 0:c.postMessage(b)}; IR=function(){}; JR=function(){}; KR=function(a){if(a.includes(":"))throw Error("Invalid user cache name: "+a);return a+":"+iw("CacheStorage get")}; Nxa=function(){return g.H(this,function b(){var c=this,d;return g.B(b,function(e){d=c;if(void 0!==LR)return e.return(LR);LR=new Promise(function(f){return g.H(d,function l(){var m;return g.B(l,function(n){switch(n.i){case 1:return ua(n,2),g.z(n,MR.open("test-only"),4);case 4:return g.z(n,MR.delete("test-only"),5);case 5:va(n,3);break;case 2:if(m=wa(n),m instanceof Error&&"SecurityError"===m.name)return f(!1),n.return();case 3:f("caches"in window),g.sa(n)}})})}); return e.return(LR)})})}; OR=function(){return g.H(this,function b(){return g.B(b,function(c){if(1==c.i)return g.z(c,Nxa(),2);if(!c.u)return c.return(void 0);NR||(NR=new JR);return c.return(NR)})})}; Oxa=function(){return g.H(this,function b(){var c;return g.B(b,function(d){return 1==d.i?g.z(d,OR(),2):(c=d.u)?d.return(c.delete("yt-player-local-img")):d.return(!0)})})}; Pxa=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.z(f,OR(),2);if(3!=f.i){d=f.u;if(!d)throw Error("Cache API not supported");return a.length?g.z(f,d.open("yt-player-local-img"),3):f.return()}e=f.u;return g.z(f,Promise.all(a.map(function(h){return e.delete(h)})),0)})})}; Qxa=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.z(f,OR(),2);if(3!=f.i){d=f.u;if(!d)throw Error("Cache API not supported");return a.length?g.z(f,d.open("yt-player-local-img"),3):f.return()}e=f.u;return g.z(f,e.addAll(a),0)})})}; PR=function(a,b){var c=b.Ys,d,e;a.encryptedVideoId=b.videoId;a.cotn=c.cotn;a.offlineabilityFormatType=c.maximumDownloadQuality;a.isRefresh=null!==(d=c.isRefresh)&&void 0!==d?d:!1;a.softErrorCount=null!==(e=c.transferRetryCount)&&void 0!==e?e:0;g.cw("offlineTransferStatusChanged",a)}; Rxa=function(a){switch(a){case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":return"OFFLINE_DATABASE_ERROR";case "TRANSFER_FAILURE_REASON_PLAYABILITY":return"NOT_PLAYABLE";case "TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES":return"TOO_MANY_RETRIES";case "TRANSFER_FAILURE_REASON_INTERNAL":return"OFFLINE_DOWNLOAD_CONTROLLER_ERROR";case "TRANSFER_FAILURE_REASON_STREAM_MISSING":return"STREAM_VERIFICATION_FAILED";case "TRANSFER_FAILURE_REASON_SERVER":case "TRANSFER_FAILURE_REASON_SERVER_PROPERTY_MISSING":return"OFFLINE_REQUEST_FAILURE"; case "TRANSFER_FAILURE_REASON_NETWORK":return"OFFLINE_NETWORK_ERROR";default:return"UNKNOWN_FAILURE_REASON"}}; QR=function(a){var b,c,d;return 0<(null!==(d=null===(c=null===(b=a.actionMetadata)||void 0===b?void 0:b.retryScheduleIntervalsInSeconds)||void 0===c?void 0:c.length)&&void 0!==d?d:0)}; RR=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===a.actionType&&!!a.entityKey}; SR=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"===a.actionType&&!!a.entityKey}; UR=function(a,b,c){return g.H(this,function e(){var f,h,l,m,n,p,q,t,u,x,y,A,E,G,F,K,V,L,da,ta,lb,Pb,pb;return g.B(e,function(ac){switch(ac.i){case 1:return f=XQ(a,"ytMainVideoEntity"),h=XQ(a,"ytMainChannelEntity"),l=XQ(a,"transfer"),g.z(ac,xR(b,"readonly",function(Qb){return tw.all([pR(Qb,f,"ytMainVideoEntity"),pR(Qb,h,"ytMainChannelEntity"),pR(Qb,l,"transfer"),qR(Qb,"ytMainChannelEntity"),qR(Qb,"offlineOrchestrationActionWrapperEntity")])}),2); case 2:m=ac.u;n=g.r(m);p=n.next().value;q=n.next().value;t=n.next().value;u=n.next().value;x=n.next().value;y=p;A=q;E=t;G=u;F=x;if(!y&&!A){ac.ib(3);break}K=y?TR(y.thumbnail):[];if(!A){V=[];ac.ib(4);break}return g.z(ac,Sxa(A,G),5);case 5:V=ac.u;case 4:return L=V,g.z(ac,Pxa(K.concat(L)),3);case 3:da=[];g.us("orchestration_use_cascading_delete")||da.push(XQ(a,"ytMainDownloadedVideoEntity"),f,h,XQ(a,"playbackData"),l,XQ(a,"offlineVideoPolicy"),XQ(a,"offlineVideoStreams"));ta=g.r(F);for(lb=ta.next();!lb.done;lb= ta.next())Pb=lb.value,pb=WQ(Pb.key).entityId,pb!==a||Txa(c,Pb.actionProto)||da.push(Pb.key);return g.z(ac,xR(b,"readwrite",function(Qb){var Pe=da.map(function(Qe){return uR(Qb,Qe)}); g.us("orchestration_use_cascading_delete")&&Pe.push(uR(Qb,XQ(a,"ytMainDownloadedVideoEntity"),{oI:!0}));return tw.all(Pe)}),7); case 7:Uxa(E),g.sa(ac)}})})}; Wxa=function(a,b){return g.H(this,function d(){var e,f,h,l;return g.B(d,function(m){if(1==m.i)return g.z(m,xR(a,"readwrite",function(n){var p=qR(n,"transfer"),q=qR(n,"offlineOrchestrationActionWrapperEntity"),t=g.us("orchestration_use_cascading_delete");return tw.all([p,q]).then(function(u){u=g.r(u);var x=u.next().value,y=u.next().value;u=Vxa.map(function(F){return uxa(n,F)}); y=g.r(y);for(var A=y.next();!A.done;A=y.next()){A=A.value;var E="ytMainDownloadedVideoEntity"===WQ(A.actionProto.entityKey).entityType,G="OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===A.actionProto.actionType;Txa(b,A.actionProto)||E&&(!E||G)||u.push(uR(n,A.key,{oI:t}))}return tw.all(u).then(function(){return x})})}),2); e=m.u;f=g.r(e);for(h=f.next();!h.done;h=f.next())l=h.value,Uxa(l);return g.z(m,Oxa(),0)})})}; Txa=function(a,b){return a.actionType===b.actionType&&a.entityKey===b.entityKey}; Uxa=function(a){if(a&&"TRANSFER_STATE_COMPLETE"!==a.transferState&&"TRANSFER_STATE_FAILED"!==a.transferState){var b=WQ(a.key).entityId;PR({transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_BY_USER",statusType:"CANCELLED"},{videoId:b,Ys:a})}}; TR=function(a){if(!a||!a.thumbnails)return[];var b=[];a=g.r(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&b.push(c.url);return b}; Sxa=function(a,b){return g.H(this,function d(){var e,f,h,l,m,n,p,q;return g.B(d,function(t){e=TR(a.avatar);f=g.r(b);for(h=f.next();!h.done;h=f.next())if(l=h.value,l.id!==a.id)for(m=g.r(TR(l.avatar)),n=m.next();!n.done;n=m.next())p=n.value,q=e.indexOf(p),-1!==q&&e.splice(q,1);return t.return(e)})})}; VR=function(a){this.i=a}; WR=function(a,b,c,d){this.status=a;this.i=b;this.u=c;this.failureReason=d}; Xxa=function(a){return new Promise(function(b){Dha(Mu(),function(){b()},a)})}; YR=function(){VR.apply(this,arguments)}; ZR=function(a,b){this.i=a;this.Y=b}; $xa=function(a,b){var c,d;return g.H(a,function f(){var h,l,m=this,n,p,q;return g.B(f,function(t){switch(t.i){case 1:h=b.entityKey;l=null===(d=null===(c=b.actionMetadata)||void 0===c?void 0:c.playbackDataActionMetadata)||void 0===d?void 0:d.isEnqueuedForExpiredStreamUrlRefetch;ua(t,2);var u;var x=null!==(u=b.actionMetadata)&&void 0!==u&&u.playbackDataActionMetadata?{maximumDownloadQuality:b.actionMetadata.playbackDataActionMetadata.maximumDownloadQuality}:void 0;return g.z(t,Yxa(m,h,{isEnqueuedForExpiredStreamUrlRefetch:l, yN:x}),4);case 4:return(n=t.u)?g.z(t,Zxa(m,n,b),5):t.return($R(b,!1,void 0,"OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED"));case 5:return t.return($R(b,!0,n.orchestrationActions));case 2:return p=wa(t),q="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",p instanceof nw&&"QUOTA_EXCEEDED"===p.type&&(q="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),ER("PDE handleAdd error"),t.return($R(b,!1,void 0,q))}})})}; aya=function(a,b){return g.H(a,function d(){var e,f=this,h,l,m,n,p,q,t,u,x,y,A,E,G;return g.B(d,function(F){switch(F.i){case 1:return e=b.entityKey,g.z(F,xR(f.i,"readonly",function(K){var V=pR(K,e,"playbackData"),L=pR(K,XQ(WQ(b.entityKey).entityId,"offlineVideoPolicy"),"offlineVideoPolicy");K=pR(K,XQ(WQ(b.entityKey).entityId,"transfer"),"transfer");return tw.all([V,L,K])}),2); case 2:h=F.u;l=g.r(h);m=l.next().value;n=l.next().value;p=l.next().value;q=m;t=n;u=p;if(!q||!t)return F.return($R(b,!0));x={lastPlayerResponseTimestampSeconds:q.playerResponseTimestamp,offlineToken:t.offlineToken};y={};if(null===u||void 0===u?0:u.maximumDownloadQuality)y.maximumDownloadQuality=u.maximumDownloadQuality;ua(F,3);return g.z(F,Yxa(f,e,{refreshData:x,yN:y}),5);case 5:return(A=F.u)?g.z(F,Zxa(f,A,b),6):F.return($R(b,!1,void 0,"OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED"));case 6:return F.return($R(b, !0,A.orchestrationActions));case 3:return E=wa(F),G="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",E instanceof nw&&"QUOTA_EXCEEDED"===E.type&&(G="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),F.return($R(b,!1,void 0,G))}})})}; Yxa=function(a,b,c){return g.H(a,function e(){var f,h=this,l,m;return g.B(e,function(n){f=g.uM();var p=h.Y,q=c.refreshData,t=c.isEnqueuedForExpiredStreamUrlRefetch,u=c.yN,x={entityKey:b};q&&(x.refreshData=q);t&&(x.isExpiredStreamUrlRefetch=t);u&&(x.downloadParameters=u);l={context:hua(p),signatureTimestamp:18886,videos:[x]};m=g.eM(bya);return n.return(g.BK(f,l,m))})})}; Zxa=function(a,b,c){return g.H(a,function e(){var f,h=this;return g.B(e,function(l){if(1==l.i){if(!b.frameworkUpdates||!b.frameworkUpdates.entityBatchUpdate)return l.return();if(!(b.frameworkUpdates.entityBatchUpdate.mutations&&0e.retryScheduleIndex&&wya(d.u,[e]);n.ib(5);break;case 6:return g.z(n,iS(d),0)}})})}; Cya=function(a,b,c){var d;return g.H(a,function f(){var h=this,l,m,n,p,q;return g.B(f,function(t){if(1==t.i){l=h;if("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS"===c.status){p=void 0;try{p=null===(d=c.u)||void 0===d?void 0:d.map(function(u){return l.createAction(u,b)})}catch(u){return gS(b,c),q={entityKey:b.action.entityKey, failureReason:"OFFLINE_OPERATION_FAILURE_REASON_UNSUPPORTED_ENTITY_FAILED"},HR(h.D,q),ER("Orchestration subactions creation error",u),t.return()}gS(b,c,p);return g.z(t,xR(h.i,"readwrite",function(u){var x=[];if(p){var y=p.map(function(A){return dS(A)}); x.push(tR(u,y,"offlineOrchestrationActionWrapperEntity"))}y=dS(b);x.push(uR(u,y.key));return tw.all(x)}),9)}if("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE"!==c.status)return t.ib(0); gS(b,c);if(c.i&&3>b.retryScheduleIndex+1)return g.z(t,Dya(h,b),0);m=(null===c||void 0===c?0:c.failureReason)?c.failureReason:"OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN";n={entityKey:b.action.entityKey,failureReason:m};HR(h.D,n);ER("Orchestration result is not retryable, deleting action");return g.z(t,zxa(h.i,dS(b).key),0)}fS(b,4);g.sa(t)})})}; jS=function(a,b){return g.H(a,function d(){var e=this,f,h,l,m,n,p,q,t,u,x,y,A;return g.B(d,function(E){f=[];h=Infinity;l=4E3;m=g.r(b);for(n=m.next();!n.done;n=m.next())p=n.value,q=Number(p.enqueueTimeSec),t=Eya(q),u=p.retryScheduleIndex,x=null!=u&&0c.retryScheduleIndex&&wya(a.u,[c])})}; Hya=function(a,b){return g.H(a,function d(){var e=this,f;return g.B(d,function(h){if(1==h.i)return g.z(h,BR(e.i,"offlineOrchestrationActionWrapperEntity",b),2);f=h.u;return h.return(f.filter(Fxa))})})}; Iya=function(a,b){if(0===b.length)return Promise.resolve([]);b=b.map(function(c){return dS(c)}); return yxa(a.i,b)}; Jya=function(){var a=Math.floor(3*Math.random());return 1>a?{bucket:"SHORT",duration:Math.floor($f(5,30))}:2>a?{bucket:"MEDIUM",duration:Math.floor($f(80,500))}:{bucket:"LONG",duration:Math.floor($f(5E3,3E4))}}; Kya=function(a,b,c){var d=void 0===d?Jya:d;var e=void 0===e?dha:e;this.u=a;this.C=c;this.J=d;this.D=e;this.i=0}; Lya=function(){for(var a=Math.floor(10*Math.random()),b=[],c=0;c(a.transferRetryCount||0);b&&(a.transferRetryCount=(a.transferRetryCount||0)+1);return b}; nza=function(a,b){b=void 0===b?"TRANSFER_FAILURE_REASON_UNKNOWN":b;return g.H(a,function d(){var e=this,f,h;return g.B(d,function(l){switch(l.i){case 1:return f="TRANSFER_FAILURE_REASON_NETWORK"===b?"OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED":"OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",ua(l,2),g.z(l,rS(e,"TRANSFER_STATE_FAILED","DOWNLOAD_STREAM_STATE_ERROR_STREAMS_MISSING",b),4);case 4:va(l,3);break;case 2:wa(l),f="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED";case 3:HR(e.Aa, {entityKey:e.i.key,failureReason:f});h=WQ(e.i.key).entityId;var m={videoId:h,Ys:e.i},n=b,p={transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_WITH_FAILURE",statusType:"FAILED"};n&&(p.transferFailureReason=n,p.failureReason=Rxa(n));PR(p,m);g.sa(l)}})})}; rS=function(a,b,c,d){return g.H(a,function f(){var h=this,l,m;return g.B(f,function(n){if(1==n.i)return l=h,h.i.transferState=b,h.i.failureReason=d,ua(n,2),g.z(n,oza(h,function(p){return c?qR(p,"offlineVideoStreams",l.i.offlineVideoStreams).then(function(q){for(var t=g.r(q),u=t.next();!u.done;u=t.next())if((u=u.value)&&u.streamsProgress){u=g.r(u.streamsProgress);for(var x=u.next();!x.done;x=u.next())x.value.streamState=c}return tR(p,q.filter(function(y){return!!y}),"offlineVideoStreams")}):tw.resolve(void 0)}), 4); if(2!=n.i)return va(n,0);m=wa(n);return m instanceof nw&&"QUOTA_EXCEEDED"===m.type?g.z(n,h.bq("TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE"),0):n.ib(0)})})}; oza=function(a,b){return g.H(a,function d(){var e=this,f;return g.B(d,function(h){if(!e.i)return h.return();f=e.i;return g.z(h,xR(e.u,"readwrite",function(l){var m=[sR(l,f,"transfer")];b&&m.push(b(l));return tw.all(m)}),0)})})}; oS=function(a){a.i=void 0;a.B=void 0;a.C.stop()}; gza=function(a,b){return g.H(a,function d(){var e,f,h,l=this,m;return g.B(d,function(n){if(1==n.i)return e=WQ(b.key),f=e.entityId,h=XQ(f,"playbackData"),g.z(n,AR(l.u,h,"playbackData"),2);m=n.u;if(null===m||void 0===m?0:m.playerResponseJson)return n.return(JSON.parse(m.playerResponseJson));throw Error("No PlayerResponse found");})})}; iza=function(a){return void 0!==sS[a.transferState]}; jza=function(a,b){var c=sS[a.transferState],d=sS[b.transferState];return c!==d?c-d:Number(a.enqueuedTimestampMs)-Number(b.enqueuedTimestampMs)}; sza=function(a,b){var c=this;this.Y=a;this.api=b;this.J=new Bx;this.u=new Jxa(function(){return pza(c)},function(){qza(c)},this.api.Fp(),this.api.U.bind(this.api)); this.K=new GR(this.api);this.B=new Rk;this.sB();this.api.U("wo_job_sampling_with_lock_api")&&g.Ku(Mu(),function(){rza(c)})}; pza=function(a){return g.H(a,function c(){var d=this;return g.B(c,function(e){d.api.Oa("onOrchestrationBecameLeader");d.i&&d.C||tza(d).then(d.B.resolve).catch(d.B.reject);var f=d.B.promise;return g.z(e,f,0)})})}; rza=function(a){g.H(a,function c(){var d,e=this;return g.B(c,function(f){if(1==f.i)return g.z(f,DR(),2);d=f.u;if(!d)return f.return();e.N=new Kya(d,Mu(),e.sB.bind(e));return g.z(f,e.N.B(),0)})})}; tza=function(a){return g.H(a,function c(){var d,e=this,f,h;return g.B(c,function(l){if(1==l.i)return g.z(l,DR(),2);if(3!=l.i){d=l.u;if(!d)return ER("PES is undefined"),l.return();e.i=new mS(d,e.api,e.u,e.K);f={};h=(f.ytMainDownloadedVideoEntity=new bS(d,e.Y),f.playbackData=new ZR(d,e.Y),f.transfer=new aS(d),f);e.api.U("wo_job_sampling_with_lock_api")&&(h.orchestrationWebSamplingEntity=new YR(d));return g.z(l,Bya(d,h,e.u,e.K),3)}e.C=l.u;return g.z(l,uza(e),0)})})}; uza=function(a){return g.H(a,function c(){var d=this,e;return g.B(c,function(f){if(1==f.i)return e=d,d.i?!d.api.U("woffle_orch_init_killswitch")&&d.i.i?f.ib(2):g.z(f,nS(d.i),2):(ER("transferManager is undefined"),f.return());if(4!=f.i)return g.z(f,tS(d),4);d.D=pt(function(){tS(e)},9E5); Ju(Mu(),function(){e.i&&bza(e.i)}); Lxa(d.u);g.sa(f)})})}; qza=function(a){var b,c;g.H(a,function e(){var f=this;return g.B(e,function(h){if(1==h.i)return f.i||f.C?g.z(h,f.B.promise,2):h.return();void 0!==f.D&&(window.clearInterval(f.D),f.D=void 0);null===(b=f.i)||void 0===b?void 0:b.dispose();f.i=void 0;null===(c=f.C)||void 0===c?void 0:c.dispose();f.C=void 0;f.api.Oa("onOrchestrationLostLeader");f.B=new Rk;g.sa(h)})})}; vza=function(a,b,c){return g.H(a,function e(){var f=this;return g.B(e,function(h){var l=c?{ytMainDownloadedVideoEntityActionMetadata:{maximumDownloadQuality:c}}:void 0;return h.return(f.ww(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",l))})})}; wza=function(a,b){return g.H(a,function d(){var e=this;return g.B(d,function(f){return f.return(e.ww(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})})}; xza=function(a){return g.H(a,function c(){var d,e,f;return g.B(c,function(h){if(1==h.i)return g.z(h,DR(),2);if(3!=h.i)return(d=h.u)?g.z(h,BR(d,"transfer"),3):h.return([]);e=h.u;f=e.map(function(l){return WQ(l.key).entityId}); return h.return(f)})})}; tS=function(a,b){b=void 0===b?43200:b;return g.H(a,function d(){var e=this,f,h,l,m,n,p,q,t;return g.B(d,function(u){if(1==u.i)return e.J.Pe()?g.z(u,DR(),2):u.return(yza(e));if(3!=u.i){f=u.u;if(!f)return u.return([]);h=Date.now()/1E3;return g.z(u,BR(f,"offlineVideoPolicy"),3)}l=u.u;m=[];n=g.r(l);for(p=n.next();!p.done;p=n.next())q=p.value,Number(q.lastUpdatedTimestampSeconds)+b<=h&&(t=WQ(q.key).entityId,m.push(t));return m.length?u.return(wza(e,m)):u.return([])})})}; yza=function(a){return g.H(a,function c(){var d,e,f,h,l,m;return g.B(c,function(n){switch(n.i){case 1:return g.z(n,DR(),2);case 2:d=n.u;if(!d)return n.return([]);e=Date.now()/1E3;return g.z(n,BR(d,"offlineVideoPolicy"),3);case 3:f=n.u,h=g.r(f),l=h.next();case 4:if(l.done){n.ib(6);break}m=l.value;if(!(m.expirationTimestamp&&Number(m.expirationTimestamp)a;a++){var b=g.Cg("VIDEO");b.load();uS.push(new g.xN(b))}}; Dza=function(){this.u=200;this.i=12}; Eza=function(a){var b=new Dza;b.u=g.T(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.i=g.T(a.experiments,"html5_gapless_max_played_ranges");return b}; g.vS=function(a,b,c,d){d=void 0===d?!1:d;YJ.call(this);this.ra=a;this.start=b;this.end=c;this.i=d}; Fza=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";c=f.C;if(b.Dh()>d/1E3+1)return"in-the-past";if(f.isLivePlayback&&!isFinite(d))return"live-infinite";if(a.i&&((b=b.dd())&&b.isView()&&(b=b.ra),b&&b.Dp().length>a.i&&g.PG(e)))return"played-ranges";if(!e.C)return null;if(!e.C.i||!c.i)return"non-dash";if(e.C.videoInfos[0].containerType!==c.videoInfos[0].containerType)return"container";if(g.PG(f)&&g.PG(e))return"content-protection";a=c.i[0].audio; e=e.C.i[0].audio;return a.sampleRate===e.sampleRate||g.lj?(a.numChannels||2)!==(e.numChannels||2)?"channel-count":null:"sample-rate"}; xS=function(){this.B=this.i=0;this.u=Array.from({length:wS.length}).fill(0)}; Gza=function(){}; Hza=function(a){this.name=a;this.startTimeMs=(0,g.Q)();this.i=!1}; Iza=function(){this.profiles=new Gza}; yS=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new xS),a.profiles[b].Pk(c,d))}; zS=function(){}; AS=function(){var a=this;this.i=this.u=haa;this.promise=new bh(function(b,c){a.u=b;a.i=c})}; BS=function(a,b,c,d){g.I.call(this);var e=this;this.policy=a;this.i=b;this.u=c;this.C=this.B=null;this.D=-1;this.J=!1;this.Uk=new AS;this.Kj=d-1E3*b.Qc();this.Uk.then(void 0,function(){}); this.timeout=new g.M(function(){e.Ie("timeout")},1E4); g.J(this,this.timeout);this.K=isFinite(d);this.status={status:0,error:null};this.oa()}; Nza=function(a){return g.H(a,function c(){var d=this,e,f,h,l,m,n,p,q,t,u;return g.B(c,function(x){if(1==x.i){e=d;if(d.isDisposed())return x.return(Promise.reject(Error(d.status.error||"disposed")));d.oa();d.timeout.start();f=g.CS.Bo("gtfta");return g.z(x,d.Uk,2)}g.CS.fn(f);h=d.i.dd();if(h.Ik())return d.Ie("ended_in_finishTransition"),x.return(Promise.reject(Error(d.status.error||"")));if(!d.C||!aE(d.C))return d.Ie("next_mse_closed"),x.return(Promise.reject(Error(d.status.error||"")));if(d.u.Bp()!== d.C)return d.Ie("next_mse_mismatch"),x.return(Promise.reject(Error(d.status.error||"")));l=Jza(d);m=l.TK;n=l.OI;p=l.SK;d.i.Bg(!1,!0);q=Kza(h,m,p,!d.u.getVideoData().isAd());d.u.setMediaElement(q);d.K&&(d.u.seekTo(d.u.getCurrentTime()+.001,{Ip:!0,FF:3,Pd:"gapless_pseudo"}),q.play()||Ft());t=h.Jb();t.cpn=d.i.getVideoData().clientPlaybackNonce;t.st=""+m;t.et=""+p;d.u.Ca("gapless",g.VD(t));d.i.Ca("gaplessTo",d.u.getVideoData().clientPlaybackNonce);u=d.i.getPlayerType()===d.u.getPlayerType();Lza(d.i,n, !1,u,d.u.getVideoData().clientPlaybackNonce);Lza(d.u,d.u.getCurrentTime(),!0,u,d.i.getVideoData().clientPlaybackNonce);g.Xg(function(){!e.u.getVideoData().ob&&g.hK(e.u.getPlayerState())&&Mza(e.u)}); DS(d,6);d.dispose();return x.return(Promise.resolve())})})}; Qza=function(a){if(a.u.getVideoData().C){ES(a.u,a.C);DS(a,3);Oza(a);var b=Pza(a),c=b.GM;b=b.xW;c.subscribe("updateend",a.Yq,a);b.subscribe("updateend",a.Yq,a);a.Yq(c);a.Yq(b)}}; Oza=function(a){a.i.unsubscribe("internalvideodatachange",a.Xo,a);a.u.unsubscribe("internalvideodatachange",a.Xo,a);a.i.unsubscribe("mediasourceattached",a.Xo,a);a.u.unsubscribe("statechange",a.Jc,a)}; Kza=function(a,b,c,d){a=a.isView()?a.ra:a;return new g.vS(a,b,c,d)}; DS=function(a,b){a.oa();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.Uk.resolve(void 0))}; Jza=function(a){var b=a.i.dd();b=b.isView()?b.start:0;var c=a.i.getVideoData().isLivePlayback?Infinity:GS(a.i,!0);c=Math.min(a.Kj/1E3,c)+b;var d=a.K?100:0;a=c-a.u.Dh()+d;return{CQ:b,TK:a,OI:c,SK:Infinity}}; Pza=function(a){return{GM:a.B.i.qd,xW:a.B.u.qd}}; HS=function(a){g.I.call(this);var b=this;this.app=a;this.D=this.i=this.u=null;this.K=!1;this.C=null;this.N=Eza(this.app.W());this.B=null;this.J=function(){g.Xg(function(){Rza(b)})}}; Sza=function(a,b,c,d){d=void 0===d?0:d;a.oa();a.gs()||IS(a);a.C=new AS;a.u=b;var e=c,f=a.app.Ic(),h=f.getVideoData().isLivePlayback?Infinity:1E3*GS(f,!0);e>h&&(e=h-a.N.u,a.K=!0);f.getCurrentTime()>=e/1E3?a.J():(a.i=f,f=e,e=a.i,a.app.Wa.addEventListener(g.yA("vqueued"),a.J),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.wA(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.D));f=d/=1E3;e=b.getVideoData().i;if(d&&e&&a.i){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/ 1E3,GS(a.i,!0)),l=Math.max(0,f-a.i.getCurrentTime()),h=Math.min(d,GS(b)+l));f=$la(e,h)||d;f!==d&&a.u.Ca("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.u;d.getVideoData().Vc=!0;d.getVideoData().Ma=!0;qS(d,!0);e="";a.i&&(e=g.JS(a.i.Vb.u),f=a.i.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.Ca("queued",e);0!==b&&d.seekTo(b+.01,{Ip:!0,FF:3,Pd:"videoqueuer_queued"});a.B=new BS(a.N,a.app.Ic(),a.u,c);c=a.B;c.oa();Infinity!==c.status.status&&(DS(c,1),c.i.subscribe("internalvideodatachange", c.Xo,c),c.u.subscribe("internalvideodatachange",c.Xo,c),c.i.subscribe("mediasourceattached",c.Xo,c),c.u.subscribe("statechange",c.Jc,c),c.i.subscribe("newelementrequired",c.tL,c),c.Xo());return a.C}; Rza=function(a){g.H(a,function c(){var d=this,e,f,h,l;return g.B(c,function(m){switch(m.i){case 1:e=d;if(d.isDisposed())return m.return();d.oa();if(!d.C||!d.u)return d.oa(),m.return();d.K&&KS(d.app.Ic(),!0,!1);f=null;if(!d.B){m.ib(2);break}ua(m,3);return g.z(m,Nza(d.B),5);case 5:va(m,2);break;case 3:f=h=wa(m);case 2:if(!d.u)return d.oa(),m.return();d.app.Du(d.u);g.CS.SE("vqsp",function(){e.app.Hj(e.u.getPlayerType())}); g.CS.SE("vqpv",function(){e.app.playVideo()}); f&&Tza(d.u,f.message);l=d.C;IS(d);return m.return(l.resolve(void 0))}})})}; IS=function(a){if(a.i){var b=a.i;a.app.Wa.removeEventListener(g.yA("vqueued"),a.J);b.removeCueRange(a.D);a.i=null;a.D=null}a.B&&(a.B.isFinished()||(b=a.B,Infinity!==b.status.status&&b.Ie("Canceled")),a.B=null);a.C=null;a.u=null;a.K=!1}; Uza=function(){var a=nu();return!(!a||"visible"===a)}; Wza=function(a){var b=Vza();b&&document.addEventListener(b,a,!1)}; Xza=function(a){var b=Vza();b&&document.removeEventListener(b,a,!1)}; Vza=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[mu+"VisibilityState"])return"";a=mu+"visibilitychange"}return a}; LS=function(){g.R.call(this);var a=this;this.fullscreen=0;this.u=this.pictureInPicture=this.i=this.B=this.inline=!1;this.C=function(){a.ye()}; Wza(this.C);this.D=this.getVisibilityState(this.hf(),this.isFullscreen(),this.Fe(),this.isInline(),this.Zr(),this.Xr())}; Yza=function(a){this.end=this.start=a}; g.NS=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.Y=b;this.Da=c;this.Aa=new Map;this.Qa=new Map;this.B=new Map;this.C=[];this.u=[];this.Xa=NaN;this.xa=this.ea=null;this.Ta=new g.M(function(){MS(d,d.Xa)}); this.events=new g.FD(this);this.isLiveNow=!0;this.eb=g.T(this.Y.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.K=new g.M(function(){d.J=!0;d.Da.Ca("sdai",{aftimeout:d.eb});d.Bv(!1)},this.eb); this.J=!1;this.ma=new Map;this.La=[];this.D=null;this.Fb=new Set;this.V=[];this.rb=[];this.vb=[];this.ob=[];this.i=void 0;this.bb=0;this.Ma=!0;this.N=!1;this.Ba=[];this.tb=new Set;this.Db=new Set;this.Ab=new Set;this.Pb=g.T(this.Y.experiments,"html5_server_stitched_dai_decorated_url_retry_limit");this.Iu=0;this.Ha=new Set;this.gb=0;this.Da.getPlayerType();Zza(this.Da,this);g.J(this,this.Ta);g.J(this,this.events);g.J(this,this.K);this.events.S(this.api,g.yA("serverstitchedcuerange"),this.Ed);this.events.S(this.api, g.zA("serverstitchedcuerange"),this.rf)}; bAa=function(a,b,c,d,e,f,h){var l=$za(a,e,e+d);a.J&&a.Da.Ca("sdai","adaftto");var m=a.Y.U("web_player_ssdai_reject_invalid_ads_killswitch"),n=a.Da;f=void 0===f?e+d:f;e===f&&!d&&a.Y.U("html5_allow_zero_duration_ads_on_timeline")&&a.Da.Ca("sdai","attl0d");if(e>f&&(a.Wd("Invalid_playback_enterTimeMs_"+e+"_is_greater_than_parentReturnTimeMs_"+f),m))return"";var p=1E3*n.getMinSeekableTime();if(en&&(a.Wd("Invalid_playback_parentReturnTimeMs_"+f+"_is_greater_than_parentDurationMs_"+n),m))return"";n=null;p=g.r(a.u);for(var q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Gc&&eq.Gc&&(a.Wd("Overlapping_child_playbacks_not_allowed._New_playback_video_id_"+(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+ f+"_overlaps_existing_ChildPlayback_"+OS(q))),m)||f===q.Gc&&(a.Wd("Neighboring_child_playbacks_must_be_added_sequentially._New_playback_video_id_"+(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+f+"_added_after_existing_ChildPlayback_"+OS(q))),m))return"";e===q.ld&&(n=q)}if(l&&n)for(m=g.r(a.V.entries()),p=m.next();!p.done;p=m.next()){if(q=g.r(p.value),p=q.next().value,q=q.next().value,q.identifier===l.identifier){a.V.splice(p,1);break}}else if(l&&a.Y.U("web_player_ss_timeout_skip_ads"))return a.Da.Ca("sdai", "rejectAttl"),h&&!zn(a.ob,function(t){return t===h})&&(a.Da.Ca("sdai","rejectAdBreakAttl"),a.ob.push(h)),""; l="ss_childplayback_"+aAa++;m=b.raw_player_response;m||a.Y.U("web_player_parse_ad_response_killswitch")||(p=b.player_response)&&(m=JSON.parse(p));b.cpn||(b.cpn=vy());p=b.cpn;b=new xG(a.Y,b);b.Cc=l;c={Cc:l,playerType:c,durationMs:d,Gc:e,ld:f,playerResponse:m,cpn:p,videoData:b,errorCount:0};a.u=a.u.concat(c).sort(function(t,u){return t.Gc-u.Gc}); a.Da.Ca("sdai",{attlDone:f-e});h?c.fg=h:n?c.fg=n.fg:c.fg=c.cpn;a.K.isActive()&&(a.J=!1,a.K.stop(),a.Bv(!0));a.oa();return l}; cAa=function(a,b){return new g.wA(a,b,{namespace:"serverstitchedcuerange",priority:7})}; QS=function(a,b,c){var d=a.N,e=a.Da.getVideoData().clientPlaybackNonce,f={cpn:e,durationMs:0,Gc:0,playerType:1,ld:0,videoData:a.Da.getVideoData(),errorCount:0},h=b.If-c.If;.5b+c)break;if(d.ld/1E3>b)return{Cl:d,Yp:b}}return{Cl:void 0,Yp:b}}; SS=function(a,b){var c=dAa(a,b);if(c)return a.u.find(function(d){return d.cpn===a.B.get(c)})}; dAa=function(a,b){a=g.r(a.B.keys());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c}; MS=function(a,b){var c=a.xa||a.api.Ic().getPlayerState();TS(a,!0);var d=b;a.Y.U("web_player_ssdai_seek_without_offset_killswitch")&&(d=RS(a,b).Yp);a.Da.seekTo(d);a=a.api.Ic();b=a.getPlayerState();g.hK(c)&&!g.hK(b)?a.playVideo():g.U(c,4)&&!g.U(b,4)&&a.pauseVideo()}; TS=function(a,b){a.Xa=NaN;a.Ta.stop();a.ea&&b&&US(a.ea);a.xa=null;a.ea=null}; VS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.oa();for(var d=b,e=c,f=[],h=g.r(a.u),l=h.next();!l.done;l=h.next())l=l.value,(l.Gce)&&f.push(l);a.u=f;d=b;e=c;f=g.r(a.B.keys());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.Da.removeCueRange(h),a.B.delete(h),a.Da.Ca("sdai","rmAdCR"));d=RS(a,b/1E3);b=d.Cl;d=d.Yp;b&&(d=1E3*d-b.Gc,e=b.Gc+d,a.oa(),b.durationMs=d,b.ld=e,eAa(a,b));(b=RS(a,c/1E3).Cl)&&a.Wd("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+OS(b)+ "._Child_playbacks_can_only_have_duration_updated_not_their_start.")}; eAa=function(a,b){for(var c=null,d=g.r(a.B),e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;f=f.next().value;f===b.cpn&&(c=e)}if(c){a=g.r(a.C);for(d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.Gc+b.durationMs:d.end===c.start&&(d.end=b.Gc);c.start=b.Gc;c.end=b.Gc+b.durationMs}}; OS=function(a){var b;return"playback_timelinePlaybackId_"+a.Cc+"_video_id_"+(null===(b=a.videoData)||void 0===b?void 0:b.videoId)+"_durationMs_"+a.durationMs+"_enterTimeMs_"+a.Gc+"_parentReturnTimeMs_"+a.ld}; XS=function(a,b,c){c=a.ma.get(c);c||(b+=WS(a),c=RS(a,b,1).Cl);return c}; fAa=function(a,b,c,d){var e,f;if(3===d)return"";if(!a.Y.U("html5_ssdai_use_cached_daistate_killswitch")){if(1===d&&a.Aa.has(b))return a.Aa.get(b);if(2===d&&a.Qa.has(b))return a.Qa.get(b)}d=null===(f=null===(e=a.Da.getVideoData().i.i[c])||void 0===e?void 0:e.index)||void 0===f?void 0:f.getStitchedVideoInfo(b);return d?d.i:(a.Da.Ca("sdai",{gdu:"nodaist",seg:b,itag:c}),"")}; sT=function(a,b,c,d){if(d)for(d=0;dc){var f=e.end;e.end=b;gAa(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.Da.removeCueRange(e);a.Ba.includes(e)&&a.rf(e);a.C.splice(d,1);continue}d++}else gAa(a,b,c)}; gAa=function(a,b,c){b=cAa(b,c);c=!0;g.Cb(a.C,b,function(h,l){return h.start-l.start}); for(var d=0;d=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.Da.removeCueRange(e):c=!1;a.C.splice(d,1);continue}}d++}c&&a.Da.addCueRange(b)}; CT=function(a,b,c){if(void 0===c||!c){c=g.r(a.La);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.La.push(new Yza(b))}}; g.hAa=function(a,b){a=g.r(a.La);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1}; WS=function(a){var b=0;a.Y.U("web_player_ss_media_time_offset")&&(b=0===a.Da.getStreamTimeOffset()?a.Da.Qc():a.Da.getStreamTimeOffset());return b}; iAa=function(a,b){var c=[];a=g.r(a.u);for(var d=a.next();!d.done;d=a.next())d=d.value,d.fg===b&&d.cpn&&c.push(d.cpn);return c}; jAa=function(a,b,c){var d=0;a=g.r(a.u);for(var e=a.next();!e.done;e=a.next())if(e=e.value,e.fg===c){if(e.cpn===b)return d;d++}return-1}; kAa=function(a,b){var c,d=[];a=g.r(a.u);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=null===(c=e.videoData)||void 0===c?void 0:c.videoId;e.fg===b&&f&&d.push(f)}return d}; lAa=function(a,b){var c=0;a=g.r(a.u);for(var d=a.next();!d.done;d=a.next())d=d.value,d.fg===b&&0!==d.durationMs&&d.ld!==d.Gc&&c++;return c}; mAa=function(a,b,c){for(var d=!1,e=g.r(a.u),f=e.next();!f.done;f=e.next())f=f.value,f.fg===c&&0!==f.durationMs&&f.ld!==f.Gc&&(f=f.cpn,b===f&&(d=!0),d&&!a.Db.has(f)&&(a.Da.Ca("sdai","decoratedAd"),a.Db.add(f)))}; $za=function(a,b,c){if(a.V.length)for(var d={},e=g.r(a.V),f=e.next();!f.done;d={Ho:d.Ho},f=e.next()){d.Ho=f.value;f=1E3*d.Ho.startSecs;var h=1E3*d.Ho.durationSecs+f;if(b>f&&bf&&cf)return a.Wd("e.enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3)),"";var l=1E3*h.getMinSeekableTime();if(el)return h="e.returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+l+". And timestampOffset in seconds is "+h.Qc(),a.Wd(h),"";l=null; for(var m=g.r(a.i),n=m.next();!n.done;n=m.next()){n=n.value;if(e>=n.Gc&&en.Gc)return a.Wd("e.overlappingReturn"),a.oa(),"";if(f===n.Gc)return a.Wd("e.outOfOrder"),a.oa(),"";e===n.ld&&(l=n)}m="cs_childplayback_"+oAa++;n={ud:GT(d,!0),Kj:Infinity,target:null};var p={Cc:m,playerVars:b,playerType:c,durationMs:d,Gc:e,ld:f,Zm:n};a.i=a.i.concat(p).sort(function(u,x){return u.Gc-x.Gc}); l?pAa(a,l,{ud:GT(l.durationMs,!0),Kj:a.Y.U("timeline_manager_transition_killswitch")?Infinity:l.Zm.Kj,target:p}):(b={ud:GT(e,!1),Kj:e,target:p},a.J.set(b.ud,b),a.oa(),h.addCueRange(b.ud));b=a.Y.U("html5_gapless_preloading");if(a.u===a.api.Ic()&&(h=1E3*h.getCurrentTime(),h>=p.Gc&&hb)break;if(f>b)return{Cl:d,Yp:b-e};c=f-d.ld/1E3}return{Cl:null,Yp:b-c}}; nAa=function(a,b){var c=a.D||a.api.Ic().getPlayerState();KT(a,!0);b=a.Y.U("html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.u.hj();var d=JT(a,b);b=d.Cl;d=d.Yp;var e=b&&!HT(a,b)||!b&&a.u!==a.api.Ic(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||IT(a);a.oa();b?(a.oa(),qAa(a,b,d,c)):(a.oa(),LT(a,d,c))}; LT=function(a,b,c){var d=a.u,e=a.api.Ic();d!==e&&a.api.Hj(d.getPlayerType());d.seekTo(b,{Pd:"application_timelinemanager"});vAa(a,c)}; qAa=function(a,b,c,d){var e=HT(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new xG(a.Y,b.playerVars);a.Y.U("html5_match_codecs_for_gapless")||a.api.Hj(b.playerType);f.Cc=b.Cc;a.api.Ln(f,b.playerType)}f=a.api.Ic();e||(b=b.Zm,a.oa(),f.addCueRange(b.ud));f.seekTo(c,{Pd:"application_timelinemanager"});vAa(a,d)}; vAa=function(a,b){a=a.api.Ic();var c=a.getPlayerState();g.hK(b)&&!g.hK(c)?a.playVideo():g.U(b,4)&&!g.U(c,4)&&a.pauseVideo()}; KT=function(a,b){a.V=NaN;a.N.stop();a.C&&b&&US(a.C);a.D=null;a.C=null}; HT=function(a,b){a=a.api.Ic();return!!a&&a.getVideoData().Cc===b.Cc}; wAa=function(a){var b=a.i.find(function(e){return HT(a,e)}); if(b){var c=a.api.Ic();IT(a);var d=new g.bK(8);b=uAa(a,b)/1E3;LT(a,b,d);c.Ca("forceParentTransition","childPlayback");a.u.Ca("forceParentTransition","parentPlayback")}}; MT=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.oa();for(var d=b,e=c,f=g.r(a.J),h=f.next();!h.done;h=f.next()){var l=g.r(h.value);h=l.next().value;l=l.next().value;l.Kj>=d&&l.target&&l.target.ld<=e&&(a.u.removeCueRange(h),a.J.delete(h))}d=b;e=c;f=[];h=g.r(a.i);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Gc>=d&&l.ld<=e){var m=a;m.K===l&&IT(m);HT(m,l)&&m.api.oo(l.playerType)}else f.push(l);a.i=f;d=JT(a,b/1E3);b=d.Cl;d=d.Yp;b&&(d*=1E3,xAa(a,b,d,b.ld===b.Gc+b.durationMs?b.Gc+d:b.ld)); (b=JT(a,c/1E3).Cl)&&a.Wd("Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Cc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Gc+" parentReturnTimeMs="+b.ld+"}.Child playbacks can only have duration updated not their start."))}; xAa=function(a,b,c,d){a.oa();b.durationMs=c;b.ld=d;d={ud:GT(c,!0),Kj:c,target:null};pAa(a,b,d);HT(a,b)&&1E3*a.api.Ic().getCurrentTime()>c&&(b=uAa(a,b)/1E3,c=a.api.Ic().getPlayerState(),LT(a,b,c))}; zAa=function(a){a&&"web"!==a&&yAa.includes(a)}; PT=function(a,b){g.I.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.i=new g.M(function(){NT(c);OT(c)}); g.J(this,this.i)}; NT=function(a){var b=(0,g.Q)();a.data.forEach(function(c){c.expire=e;e++)d.push(e/100);e={threshold:d};b&&(e={threshold:d,trackVisibility:!0,delay:1E3});(this.u=window.IntersectionObserver?new IntersectionObserver(function(f){f=f[f.length-1];b?"undefined"===typeof f.isVisible?c.i=null:c.i=f.isVisible?f.intersectionRatio:0:c.i=f.intersectionRatio},e):null)&&this.u.observe(a)}; CAa=function(a,b){Zx(a,"version",b)}; $T=function(a){g.W.call(this,{G:"div",Ia:["html5-video-player"],X:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},T:[{G:"div",L:g.ZT.VIDEO_CONTAINER,X:{"data-layer":"0"}}]});var b=this;this.app=a;this.Fu=this.Fa(g.ZT.VIDEO_CONTAINER);this.Hs=new g.Ol(0,0,0,0);this.Ib=null;this.Tz=new g.Ol(0,0,0,0);this.kD=this.aE=this.ZD=NaN;this.My=this.FD=this.VL=this.tI=!1;this.vC=NaN;this.HD=!1;this.Qv=null;this.rE=function(){b.element.focus()}; this.KA=null;var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])}; this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])}; var e=a.W();e.transparentBackground&&this.Lm("ytp-transparent");"0"===e.controlsType&&this.Lm("ytp-hide-controls");g.N(this.element,"ytp-exp-bottom-control-flexbox");e.U("html5_player_bottom_linear_gradient")&&g.N(this.element,"ytp-linear-gradient-bottom-experiment");e.U("web_player_bigger_buttons_like_mobile")&&g.N(this.element,"ytp-exp-bigger-button-like-mobile");e.U("enable_new_paid_product_placement")&&!g.HF(e)&&g.N(this.element,"ytp-exp-ppp-update");CAa(this.element,DAa(a));this.IM=!1;CF(e)&& "blazer"!==e.playerStyle&&window.matchMedia&&(this.KA="desktop-polymer"===e.playerStyle?[{query:window.matchMedia("(max-width: 656px)"),size:new g.gg(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.gg(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.gg(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.gg(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.gg(854,480)},{query:window.matchMedia("(min-width: 1000px)"), size:new g.gg(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),size:new g.gg(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.gg(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.gg(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.gg(640,360)}]);this.YF=e.useFastSizingOnWatchDefault;this.Wu=new g.gg(NaN,NaN);EAa(this);this.S(a.Wa,"onMutedAutoplayChange",this.hw)}; EAa=function(a){function b(){a.Ib&&aU(a);bU(a)!==a.HD&&a.resize()} function c(h,l){a.Tr(h,l)} function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())} function e(){a.Tz=new g.Ol(0,0,0,0);a.Hs=new g.Ol(0,0,0,0)} var f=a.app.Wa;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.wf(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})}; FAa=function(a){var b=g.WM(a.app);if(b=b?b.getVideoData():null){if(g.jH(b)||g.kH(b)||g.mH(b))return 16/9;if(EG(b)&&b.C.i)return a=b.C.videoInfos[0].video,cU(a.width,a.height)}return(a=a.Ib)?cU(a.videoWidth,a.videoHeight):16/9}; GAa=function(a,b,c,d){var e=c,f=cU(b.width,b.height);a.tI?e=cf?{width:b.width,height:b.width/e,aspectRatio:e}:ee?a.width=a.height*c:cMath.abs(dU*b-a)||1>Math.abs(dU/a-b)?dU:a/b}; bU=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.WM(a.app);if(!b||b.Rl())return!1;var c=a.app.Wa.wb();a=!g.U(c,2)||!a.app.W().experiments.Ga("html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Ma;b=g.U(c,1024);return c&&a&&!b&&!c.isCued()}; aU=function(a){var b="3"===a.app.W().controlsType&&!a.My&&bU(a)&&!a.app.Uv||!1;a.Ib.controls=b;a.Ib.tabIndex=b?0:-1;b?a.Ib.removeEventListener("focus",a.rE):a.app.W().experiments.Ga("disable_focus_redirect")||a.Ib.addEventListener("focus",a.rE)}; HAa=function(a){var b=a.qg(),c=1,d=!1,e=GAa(a,b,a.getVideoAspectRatio()),f=a.app.W().U("enable_desktop_player_underlay"),h=Yt(),l=f&&a.VL&&768b)return!0;var c=a.getLastSegmentNumber();return bb)return 1;c=a.getLastSegmentNumber();return b=h&&a.Ba.seekCount?(a.seekCount++,a.oa(),a.Ya.Ca("iterativeSeeking","inprogress;count."+a.seekCount+";target."+a.B+";actual."+h+";duration."+l+";isVideo."+c),a.seek(a.B)):(a.oa(),a.Ya.Ca("iterativeSeeking","incomplete;count."+a.seekCount+";target."+a.B+";actual."+h),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Ya.Da.seekTo(h+.1,{Ip:!0,Pd:"chunkSelectorSynchronizeMedia", Yo:!0})))}})}; TAa=function(a,b,c){if(!a.i)return-1;c=(c?a.videoTrack:a.audioTrack).i.index;var d=c.getSegmentNumberForTime(a.B);return(bD(c,a.u.oe)||b.Na===a.u.oe)&&dc||c===a.B)&&!isNaN(a.C)?a.C:b}; $Aa=function(a,b,c,d){ZAa(a.D,d,c,b);ZAa(a.ea,d,c,b);oE(a.K,d,!0);oE(a.K,d,!1);a.Ca("sdai","rollbk2_seg"+d+"_rbt"+c.toFixed(3)+"_lt"+b.toFixed(3))}; aBa=function(a,b){if(a.u){var c=a.u.je.durationSecs-(b.startTime+a.J-a.u.je.startSecs);0>=c||(c=new oA(a.u.je.startSecs-(a.policy.Kh&&!isNaN(a.J)?a.J:0),c,a.u.je.context,a.u.je.identifier,"stop",a.u.je.i+1E3*b.duration),a.Ca("cuepointdiscontinuity","segNum."+b.Na),sU(a,c,b.Na))}}; bBa=function(a,b,c,d){(void 0===d?0:d)?(a.i=1,a.Ca("sdai","rststate_skth")):0b)return!0;a.ma.clear()}return!1}; jBa=function(a,b){return new tU(a.K,a.i,b||a.B.reason)}; BU=function(a){return a.B.isLocked()}; fBa=function(a){a.Ma?a.Ma=!1:a.V=(0,g.Q)();a.N=!1;return new tU(a.K,a.i,a.B.reason)}; kBa=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.i,f=c[e],h=f&&BD(f)&&f.video.i>a.policy.N,l=e<=a.policy.N?BD(d):zD(d);if(!f||h||l)c[e]=d}return c}; vU=function(a,b){a.B=b;var c=a.J.videoInfos;if(!BU(a)){var d=(0,g.Q)();c=g.No(c,function(n){if(n.Mb>this.policy.Mb)return this.oa(),!1;var p=this.D.i[n.id],q=p.info.i;return this.policy.er&&this.Qa.has(q)||this.ma.get(n.id)>d?!1:4=n.video.i}))}c.length||(c=a.J.videoInfos); var e=g.No(c,b.C,b),f="m"===b.reason||"s"===b.reason;a.policy.Zi&&eU&&g.nj&&(!f||1080>b.i)&&(e=e.filter(function(n){return n.video&&(!n.u||n.u.powerEfficient)})); if(!YD()&&0f.video.width?(a.oa(),g.nb(e,c),c--):yU(a,b)*a.policy.B>yU(a,f)&&(a.oa(),g.nb(e,c-1),c--);c=e[e.length-1];a.Xa=!!a.i&&!!a.i.info&&a.i.info.i!==c.i;a.oa();a.C=e;xua(a.policy,c)}; cBa=function(a,b){b?a.u=a.D.i[b]:(b=(b=g.eb(a.J.i,function(c){return!!c.yc&&c.yc.isDefault}))||a.J.i[0],a.u=a.D.i[b.id]); wU(a)}; lBa=function(a,b){for(var c=0;c+1d}; wU=function(a){if(!a.u||!a.policy.u)if(!a.u||!a.u.info.yc)if(a.u=a.D.i[a.J.i[0].id],1a.B.i:lBa(a,a.u);b&&(a.u=a.D.i[g.cb(a.J.i).id])}}; xU=function(a){a.policy.Jg&&(a.Ha=a.Ha||new g.M(function(){a.policy.Jg&&a.i&&!AU(a)&&1===Math.floor(10*Math.random())?(zU(a,a.i),a.N=!0):a.Ha.start()},6E4),g.Nq(a.Ha)); if(!a.nextVideo||!a.policy.u)if(BU(a))a.nextVideo=360>=a.B.i?a.D.i[a.C[0].id]:a.D.i[g.cb(a.C).id],a.oa();else{for(var b=Math.min(a.videoIndex,a.C.length-1),c=lU(a.xa),d=yU(a,a.u.info),e=c/a.policy.C-d;0=c);b++);a.nextVideo=a.D.i[a.C[b].id];a.videoIndex!==b&&a.oa();a.videoIndex=b}}; dBa=function(a){var b=a.policy.C,c=lU(a.xa)/b-yU(a,a.u.info);b=g.fb(a.C,function(d){return yU(this,d)b&&(b=0);a.videoIndex=b;a.nextVideo=a.D.i[a.C[b].id];a.oa()}; eBa=function(a){if(a.bb.length){var b=a.bb,c=function(d,e){if(b.includes(GC(d,a.D.isLive)))return d;for(var f=0;fa.policy.Pb&&(c*=1.5);return c}; mBa=function(a,b){a=Vb(a.D.i,function(c){return c.info.lc()===b}); if(!a)throw Error("Itag "+b+" from server not known.");return a}; nBa=function(a){var b=[];if("m"===a.B.reason||"s"===a.B.reason)return b;if(Kla(a.D)){for(var c=Math.max(0,a.videoIndex-2);c=e.length)return;if(0>d)throw Error("Missing data");a.B=a.C;a.u=0}for(;d=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0=a.i.totalLength)throw Error();return lD(a.i,a.offset++)}; wBa=function(a,b){b=void 0===b?!1:b;var c=LU(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=LU(a);-1===b&&255!==d&&(b=0);-1e&&d>c;e++)c=256*c+LU(a),d*=128;return b?c:c-d}; MU=function(a,b,c){var d=this;this.Ya=a;this.policy=b;this.D=c;this.u=[];this.i=null;this.ma=-1;this.N=0;this.Aa=NaN;this.V=0;this.B=NaN;this.Ba=0;this.La=-1;this.Ma=this.J=this.K=this.xa=null;this.Qa=this.Ha=NaN;this.C=this.ea=this.Ta=null;this.Xa=!1;this.timestampOffset=0;if(this.policy.u){var e=this.D,f=this.policy.u;this.C=new DU(this.policy,e,function(h,l,m){h=new JU(d.policy.u,2,{qw:new vBa(f,h,e.info,l,m)});a.Da.As(h)}); this.C.V.promise.then(function(h){d.C=null;1===h&&(h=new JU(d.policy.u,h),a.Da.As(h))},function(h){h=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); d.oa();d.Ya.Ca("dldbwerr",h);xBa(d);h=new JU(d.policy.u,4);a.Da.As(h)})}}; yBa=function(a){return a.u.length?a.u[0]:null}; NU=function(a){return a.u.length?a.u[a.u.length-1]:null}; DBa=function(a,b,c){if(a.J){var d=a.J.Cb+a.J.u;if(0=a.ma&&0===a.N){var f=a.i.i,h=-1;e=-1;if(c){for(var l=0;l+8e&&(h=-1)}else{f=new KU(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var q=wBa(p,!0),t=wBa(p,!1);var u=q;var x=t}catch(A){x=u=-1}p=u;var y=x;if(!(0h&&(h=n),m))break;163===p&&(h=Math.max(0,h),e=f.getOffset()+y);if(160===p){0>h&&(e=h=f.getOffset()+y);break}f.skip(y)}}0>h&&(e=-1)}if(0>h)break;a.ma=h;a.N=e-h}if(a.ma>d)break; a.ma?(d=BBa(a,a.ma),d.B&&!d.info.i.Og()&&CBa(a,d),ABa(a,b,d),QU(a,d),a.ma=0):a.N&&(d=BBa(a,0>a.N?Infinity:a.N),a.N-=d.i.totalLength,QU(a,d))}}a.i&&a.i.info.Nd&&(QU(a,a.i),a.i=null)}; PU=function(a,b){!b.info.i.Og()&&0===b.info.Cb&&(g.oD(b.info.i.info)||b.info.i.info.ue())&&sla(b);if(1===b.info.type)try{CBa(a,b),EBa(a,b)}catch(d){g.yz(d);var c=QC(b.info);c.hms="1";a.Ya.handleError(!0,"fmt.unparseable",c||{})}b.info.i.pD(b);a.C&&qBa(a.C,b)}; pU=function(a){a.u=[];OU(a);xBa(a)}; xBa=function(a){var b;null===(b=a.C)||void 0===b?void 0:b.dispose();a.C=null}; FBa=function(a){var b=a.u.reduce(function(c,d){return c+d.i.totalLength},0); a.i&&(b+=a.i.i.totalLength);return b}; RU=function(a){return g.Bm(a.u,function(b){return b.info})}; BBa=function(a,b){var c=a.i;b=Math.min(b,c.i.totalLength);if(b===c.i.totalLength)return a.i=null,c;c=lla(c,b);a.i=c[1];return c[0]}; CBa=function(a,b){var c=nD(b);if(!a.policy.wl&&AD(b.info.i.info)&&"bt2020"===b.info.i.info.video.primaries){var d=new kC(c);mC(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.i,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.i.info;zD(d)&&!AD(d)&&(d=nD(b),rC(new kC(d)),qC([408125543,374648427,174,224],21936,d));b.info.i.info.isVideo()&&(d=b.info.i,d.info&&d.info.video&&4===d.info.video.projectionType&&!d.B&&(g.oD(d.info)?d.B=ska(c):d.info.ue()&&(d.B=yka(c))));b.info.i.info.ue()&& b.info.isVideo()&&(c=nD(b),rC(new kC(c)),qC([408125543,374648427,174,224],30320,c)&&qC([408125543,374648427,174,224],21432,c));if(a.policy.au&&b.info.i.info.ue()){c=nD(b);var e=new kC(c);if(mC(e,[408125543,374648427,174,29637])){d=pC(e,!0);e=e.start+e.i;for(var f=0;fm||(e&&b.skip(4),f&&b.skip(4),e=UB(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.i,e))}}if(b=a.xa&&!!a.xa.D.J)if(b=c.info.isVideo())b=rla(c),h=a.xa,SU?(l=1/b,b=TU(a,b)>=TU(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&GBa(c)&&(b=a.xa,SU?(l=rla(c),h=1/l,l=TU(a,l),b=TU(b)+h-l):b=b.getDuration()- a.getDuration(),b=1+b/c.info.duration,rka(nD(c),b))}else{h=!1;a.K||(sla(c),c.u&&(a.K=c.u,h=!0,Qka(c.info,c.u),l=c.info.i.info,f=nD(c),g.oD(l)?iC(f,1701671783):l.ue()&&qC([408125543],307544935,f)));a:{if(f=l=pD(c,a.policy.Ha))f=c.info.i.info.ue()&&160===lD(c.i,0);if(f)a.V+=l,a.B=a.policy.Fb?a.B+l:NaN;else{if(a.policy.Bq){var n=a.Ya.Yo(nla(c),1);e=n;if(0<=a.B&&6!==c.info.type){if(a.policy.Fb&&isNaN(a.Ha)){g.zz(new g.hw("Missing duration while processing previous chunk",KC(c.info)));zBa(a);break a}f= n-a.B;var p=f-a.Ba;d=c.info.Na;var q=a.Ma?a.Ma.Na:-1,t=a.Qa,u=a.Ha;m=a.policy.Id&&f>a.policy.Id;var x=a.policy.md&&p>a.policy.md;1E-4m&&d>a.La)&&p&&(d=Math.max(.95,Math.min(1.05,(l-(x-f))/l)),rka(nD(c),d),d=pD(c,a.policy.Ha),n=l-d,l=d)));a.Ba=f+n}}else isNaN(a.B)?e=c.info.startTime:e=a.B;ola(c,e)?(isNaN(a.Aa)&&(a.Aa=e),a.V+=l,a.B=e+l):(l=QC(c.info),l.smst="1",a.Ya.handleError(!0,"fmt.unparseable",l||{}))}}a.Ma=c.info;a.Ha=qla(c);0<=c.C&&(a.Qa=c.C);if(h&&a.K){h=HBa(a,!0);RC(c.info,h);a.i&&RC(a.i.info,h);b=g.r(b.info.i);for(l=b.next();!l.done;l=b.next())RC(l.value,h);(c.info.Nd||a.i&&a.i.info.Nd)&&6!==c.info.type||(a.ea=h,b= a.Ya,b.i.isManifestless&&IBa(b,h,!!a.D.info.video),a.policy.ac||JBa(a))}}EBa(a,c);a.timestampOffset&&pla(c,a.timestampOffset)}; QU=function(a,b){if(b.info.Nd){a.Ta=b.info;if(a.K){var c=HBa(a,!1);a.Ya.wE(a.D,c);a.ea||a.policy.ac||JBa(a);a.ea=null}OU(a)}a.C&&qBa(a.C,b);if(c=NU(a))if(c=mla(c,b,a.policy.Qi)){a.u.pop();a.u.push(c);return}a.u.push(b)}; OU=function(a){a.i=null;a.ma=-1;a.N=0;a.K=null;a.Aa=NaN;a.V=0;a.ea=null}; zBa=function(a){a.B=NaN;a.Ba=0;a.La=-1;a.Ma=null;a.Qa=NaN;a.Ha=NaN}; EBa=function(a,b){if(a.D.info.td){if(b.info.i.info.ue()){var c=new kC(nD(b));if(mC(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=pC(c,!0);c=16!==d?null:vC(c,d)}else c=null;d="webm"}else b.info.N=rBa(nD(b)),c=sBa(b.info.N),d="cenc";c&&c.length&&(c=new IU(c,d),c.ue=b.info.i.info.ue(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),a.policy.Oj&&b.u&&b.u.B&&(c.i=b.u.B),a.Ya.Bs(c))}}; JBa=function(a){var b=a.K,c=nka(b);c&&(c.startSecs+=a.Aa,a.Ya.vE(a.D,c,b.i,b.Fv()))}; HBa=function(a,b){var c,d=a.K;if(c=nka(d))c.startSecs+=a.Aa;if(d.Fv()){var e=d.data["Stitched-Video-Id"]?d.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=d.data["Stitched-Video-Cpn"]?d.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[],h=[];if(d.data["Stitched-Video-Duration-Us"])for(var l=g.r(d.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(d.data["Stitched-Video-Start-Frame-Index"]){m=g.r(d.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(d.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.r(d.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 tBa(e,f,h,l,d.data["Serialized-State"]?d.data["Serialized-State"]:"")}return new LB(d.i,a.Aa,b?d.Ni:a.V,d.ingestionTime,"sq/"+d.i,void 0,void 0,b,e,c)}; GBa=function(a){return a.info.i.Og()&&a.info.Na===a.info.i.index.getLastSegmentNumber()}; TU=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.D.J&&b&&(b+=a.D.J.i);return b+a.getDuration()}; KBa=function(a,b){0>b||(a.u.forEach(function(c){pla(c,b)}),a.timestampOffset=b)}; UU=function(a,b){this.info=a;this.callback=b;this.state=1;this.N=!1;this.C=0;this.D=!1;this.i=null}; LBa=function(a){return g.Cm(a.info.i,function(b){return 3===b.type})}; VU=function(a,b){var c=a.state;a.state=b;a.tB();a.callback&&a.callback(a,c)}; WU=function(a,b){b&&a.state=b&&(e.u.pop(),e.B-=pD(l,e.policy.Ha),f=!0)}f&&(e.J=0c?qU(a,d):a.u=a.i.Hm(b-1,!1).i[0]}; iV=function(a,b){var c;for(c=0;c=a.V:c}; YBa=function(a){var b;return dV(a)||!(null===(b=NU(a.C))||void 0===b||!b.info.B)}; cV=function(a){var b=[],c=$U(a);c&&b.push(c);b=g.rb(b,RU(a.C));g.Db(a.B,function(d){g.Db(d.info.i,function(e){d.N&&(b=g.No(b,function(f){return!(f.i!==e.i?0:f.range&&e.range?f.range.start+f.Cb>=e.range.start+e.Cb&&f.range.start+f.Cb+f.u<=e.range.start+e.Cb+e.u:f.Na===e.Na&&f.Cb>=e.Cb&&(f.Cb+f.u<=e.Cb+e.u||e.Nd))})); (NC(e)||4===e.type)&&b.push(e)})}); a.u&&!Nka(a.u,g.cb(b),a.u.i.Og())&&b.push(a.u);return b}; VBa=function(a,b){if(!a.length)return!1;for(b+=1;b=b){b=f;break a}}b=e}return 0>b?NaN:VBa(a,c?b:0)?a[b].startTime:NaN}; jV=function(a){return!(!a.u||a.u.i===a.i)}; kV=function(a){return jV(a)&&a.i.Oe()&&a.u.i.info.Mbb&&a.De?(a.B+=d,.2d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=qV(a)?d+b:d+Math.max(b,c);a.J=d}; sV=function(a,b){for(var c="";4095>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))}; uV=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.D=c;this.Ba=d;this.status=0;this.response=void 0;this.Aa=!1;this.u=0;this.xa=NaN;this.ma=0;this.V=this.J=this.ea=!1;this.errorMessage="";this.Ma=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.B=f.body.getReader(),e.isDisposed()?e.B.cancel().catch(function(){}):(e.N=f.headers,e.D.Ds(),mCa(e)); else e.onDone()}; this.Ha=function(f){var h=(0,g.Q)();if(!e.isDisposed())if(e.K&&(e.i.append(e.K),e.K=void 0),f.done)e.B=void 0,e.onDone();else{f=f.value;e.u+=f.length;nCa(e)?e.i.append(f):e.K=f;f=(0,g.Q)();if(!e.policy.i||10b.indexOf("googlevideo.com")||(gka(a.u.gg)&&(e=HB(JB(a.u.gg))),g.Tz("yt-player-bandaid-host",{primary:b,secondary:e},864E3),sCa=(0,g.Q)());e=a.timing;a.oa("Succeeded, rtpd="+(1E3*e.N+e.i- Date.now()).toFixed(0));return 4}; xV=function(a){var b;a.oa("Request failed, itag="+a.u.get("itag")+(" seg="+a.info.i[0].Na)+(" sliced="+(null===(b=a.i)||void 0===b?void 0:b.u))+(" error="+a.lastError));if("net.timeout"===a.lastError){var c=a.timing,d=(0,g.Q)();if(!c.Tl){oV(c,d,1024*c.Ba);var e=(d-c.i)/1E3;if(2!==c.un())if(qV(c)){c.B+=(d-c.C)/1E3;var f=c.Mg,h=c.u;h=Math.max(h,2048);f.i.Lg(1,c.B/h);TE(f)}else jCa(c)||c.Tl||(f=c.Mg,f.K.Lg(1,e),TE(f)),c.Aa=d;f=c.Mg;h=c.N;var l=c.dj;f.J.Lg(e,c.u/e);f.C=OE();l||f.u.Lg(1,e-h);Gma(c.Mg, (d-c.C)/1E3,0)}}"net.nocontent"!==a.lastError&&((c="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)?(d=wV(a),d.timedOut+=1):(d=wV(a),d.i+=1),a.timing.u||(d=a.info.u,++d.u,c&&++d.C));VU(a,5)}; uCa=function(a,b){b&&(b=wV(a),b.u+=1);zV(a);a.lastError="net.timeout";xV(a)}; zV=function(a){a.oa();a.xhr&&a.xhr.abort();a.timing.deactivate()}; rCa=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.Zu();c=!c||c<=a.policy.Ce;return(!a.xhr.Vs()||!b||-1!==b.indexOf("text/plain"))&&c}; qCa=function(a){if(IB(a.u.gg))return new dCa(a.u,a.timing);var b=a.u.Td();return a.policy.Qa&&(a.policy.Pp&&!isNaN(a.info.Le)&&a.info.Le>a.policy.bk||a.D?0:jB())?lB()?new lV(b,a.policy.D,a.timing):new uV(b,a.policy.D,a.timing):new vV(b,a.timing)}; vCa=function(a){if(!a.policy.D.cg||!isNaN(a.info.Le)&&0a.info.i[0].Na)return!1}return!0}; AV=function(a,b,c,d,e){this.Ya=a;this.policy=b;this.schedule=c;this.N=d;this.ea=e;this.ma=NaN;this.u=this.K=this.C=null;this.i=this.D=this.J=this.startTimeSecs=NaN;this.B=!1;this.V=NaN}; wCa=function(a,b,c,d,e){return b.eb&&b.ma&&3===dka(b)?new AV(a,b,c,d,e):null}; xCa=function(a,b){if(a.policy.Fq){var c=b.info.Mb,d=RE(a.schedule);b=b.index.Eg;c=Math.max(1,d/c);a.V=Math.round(1E3*Math.max(((c-1)*b+a.policy.ea)/c,b-a.policy.Yb));a.oa()}}; ACa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.J,f=e>=a.policy.eh,h=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e=a.policy.Yb&&!a.B;if(!f&&!c&&yCa(a,b))return NaN;c&&(a.B=!0,a.oa());a:{d=h;c=Date.now()/1E3-(a.N.pg()||0)-a.K.u-a.policy.ea;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){a.oa();BV(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Xb;d(0,g.Q)()-d.V;var e=d.nextVideo&&3*yU(d,d.nextVideo.info)=a.policy.Vj&&!a.policy.bh||!a.policy.jl&&0=a.policy.dk)return!1;if(!b.u)return!0;d=b.u;if(!Kka(d.i.u,a.policy))return!1;4===d.type&&d.i.Oe()&&(b.u=g.cb(d.i.Ew(d)),d=b.u);if(!d.B&&!d.i.Gm(d))return!1;var e=a.i.We||a.i.N;if(a.i.isManifestless&&e){e=b.i.index.getLastSegmentNumber();var f=c.i.index.getLastSegmentNumber();e=Math.min(e,f);if(0=e)return b.V=e,c.V=e,!1}if(d.i.info.audio&&4===d.type)return!1;if(kV(b)&&!a.policy.bb)return!0;if(d.B|| eV(b)&&eV(b)+eV(c)>a.policy.gb)return!1;e=!b.D&&!c.D;f=b===a.videoTrack&&a.ea;if(!(c=!!(c.u&&!c.u.B&&c.u.Da}return c?!1:(b=b.Tb)&&b.isLocked()?!1:!0}; JCa=function(a,b,c){if(MV(a,b,c)){if(b.K){if(a.i.isLive){var d=a.i.oe&&a.i.N?b.i.Hm(a.i.oe,!1):b.i.Nl(Infinity);d.Le=a.Le}else d=b.i.Hm(0,!1);a.D?0===d.Le&&(d.D=a.D.V):d.D=a.eb}else if(d=b.u,d.i.Oe()){var e=d.D-a.currentTime,f=!d.range||0===d.u&&0===d.Cb?0:d.range.length-(d.Cb+d.u),h=d.i;if(jV(b)&&b.i.Oe()){var l=Math.min(15,.5*LV(a,b,!0));var m=kV(b)||e<=l||a.u.N;a.oa("ready to adapt: "+m+", upgrade pending: "+kV(b)+", health: "+e+", max health: "+l);l=m}else l=!1;l&&0===f&&(a.i.isManifestless?h= b.i:(h=d.startTime+ICa,d.u&&(h+=d.duration),qU(b,h),d=b.u,h=d.i));h.Og()?(f=a.u,c=kU(a.J,h.info.Mb,c.i.info.Mb,e,0h&&(c=d.i.Uq(d,c.range.length-e.u)))),d=c):(0>d.Na&&(c=QC(d),c.pr=""+b.B.length,a.C.i&&(c.sk="1"),a.Ca("nosq",d.J+";"+g.VD(c))),d=h.Gt(d));if(a.ea)for(c=g.r(d.i),e=c.next();!e.done;e=c.next())e.value.type=6}else d.i.Og()? (c=kU(a.J,b.i.info.Mb,c.i.info.Mb,0),d=d.i.Uq(d,c)):d=d.i.Gt(d);if(a.K&&(c=d.i[0].i.info.id,e=a.B,h=d.i[0].Na,e=0>h&&!isNaN(e.B)?e.B:h,h=YAa(a.B,d.i[0].C,e),c=a.K.Kr(h,e,c,b===a.audioTrack?1:2),0>e&&bBa(a.B,0,0,!0),c)){h="decurl_itag"+d.i[0].i.info.lc()+"_sg"+e+"_st"+h.toFixed(3)+".";if(a.policy.hq&&b.isRequestPending(e-1)){a.Ca("sdai","wt_daistate_on_sg"+(e-1));return}a.Ca("sdai",h);e=d;c&&(e.B=new g.FB(c))}a.policy.Ui&&-1!==d.i[0].Na&&d.i[0].Naf)a.policy.rb&&(f=Object.assign(nV(e.timing),{rst:""+e.state,strm:""+e.xhr.Vs(),d:kCa(e.timing)}),a.Ca("rqs",g.VD(f))),e.Ba&&a.Ca("sbwe3","1",!0);if(!a.isDisposed()&&2<=e.state){f=a.timing;var n=e.info.i[0].i;m=!f.u&&n.info.video;n=!f.i&&n.info.audio;3===e.state?m?f.tick("vrr"):n&&f.tick("arr"): 4===e.state?m?(f.u=e.Td(),Mu(),Pu(4)):n&&(f.i=e.Td()):e.Qt()&&m&&(Mu(),Pu(4));if(3===e.state)iV(l,e),UC(e.info)&&DV(a,l,h,!0),a.K&&(l=e.info.Kr())&&a.K.lj(e.info.i[0].Na,h.info.id,l),a.wh();else if(e.isComplete()&&5===e.info.i[0].type)4===e.state&&(h=(e.info.i[0].i.info.video?a.videoTrack:a.audioTrack).B[0]||null)&&h instanceof yV&&h.C&&uCa(h,!0),e.dispose();else{if(!e.isFailed()&&e.D&&2<=e.state&&3!==e.state)if(h=e.xhr.getResponseHeader("X-Response-Itag")){a.oa();h=mBa(a.u,h);l=e.info.range.length- h.cD();h.C=!0;e.info.i[0].i.C=!1;f=h.Cp(l);e.info=f;if(e.i){l=e.i;f=f.i;l.i=f;m=f[0].range;n=kD(l.Qd[0].i);kD(g.cb(l.Qd).i);for(var p=0;ph.B&&(h.B=NaN,h.C=NaN),h.u&&h.u.Na===l.i[0].Na)if(m=h.u.je.event,"start"===m||"continue"===m){if(1===h.i||5===h.i)h.policy.fl||!h.u.Fv?(h.B=l.i[0].Na,h.C=l.i[0].C,h.Ca("sdai","joinad"+h.i+"_sg"+h.B+"_st"+h.C.toFixed(3)),h.i=2,f.mD(h.u.je)):(h.Ca("sdai","ignore."+m+";sq."+l.i[0].V),h.i=4)}else"stop"!==m||1!==h.i&&5!==h.i||h.Ca("sdai","joinstop;st."+h.i+";sg."+h.B+";"),h.i=5;else 1===h.i&&(h.i=5)}else if(a.policy.Qa&& e.Gs()&&!e.isComplete()&&!EV(a,e)&&!e.isFailed())break a;e.isFailed()&&a.Dv(e);a.wh();a.policy.vb&&e.isComplete()&&e.canRetry()&&DC(e.info.u,a.Ba)&&(h=BC(a.Ba,EC(e.info.u,!1)),h.B+a.policy.vb*Hka(h,a.policy,!0)>(0,g.Q)()||(e=Ska(e.info,!1))&&NV(a,e))}}}}},d)}; KCa=function(a,b){b&&(a.oa(),a.Da.Cz(b));a.policy.Uj&&a.u.Ta&&(b=jBa(a.u,"a"),PV(a.Da,b.reason,b.audio.info))}; EV=function(a,b){try{var c=b.info.i[0].i.info.video?a.videoTrack:a.audioTrack;if(a.i.isManifestless&&c){c.K&&(b.isDisposed(),b.isComplete()||b.Gs(),c.K=!1);b.VC()&&a.Ha.Lg(1,b.VC());var d=b.QG(),e=b.qJ(),f=a.i,h;for(h in f.i){var l=f.i[h].index;l.jk&&(d&&(l.It=Math.max(l.It,d)),e&&(l.i=Math.max(l.i||0,e)))}}if(b.info.dj()&&!TC(b.info))for(var m=g.r(b.uB()),n=m.next();!n.done;n=m.next())PU(c.C,n.value);bV(c);return!!c.Xf()}catch(p){return p instanceof Error&&(g.zz(p),b=b.Pt(),b.origin="hrhs",a.handleError(!0, "fmt.unplayable",b)),!1}}; RV=function(a){var b=a.mediaSource.i,c=a.mediaSource.u,d=MCa(a);if(d){if(a.policy.Pq){if(!b.yp()){var e=a.audioTrack.Xf();e&&QV(a,b,e)}c.yp()||(b=a.videoTrack.Xf())&&QV(a,c,b)}a.xa||(a.xa=(0,g.Q)(),a.oa(),a.policy.Aa&&a.Ca("apdps","r."+d))}else{if(a.xa){d=(0,g.Q)()-a.xa;e=fV(a.audioTrack,a.currentTime);var f=fV(a.videoTrack,a.currentTime);a.oa();a.policy.Aa&&a.Ca("apdpe","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.xa=0}if(a.D){d=a.D;e=a.audioTrack;f=RD(a.mediaSource.u.cf()); if(d.C)d=ACa(d,f);else{if(f=e.Xf()){var h=f.u;h&&h.D&&h.u&&(e=e.B.length?e.B[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.Le&&(d.C=e,d.K=h,d.u=f.info,d.startTimeSecs=Date.now()/1E3,d.J=d.startTimeSecs,d.D=d.u.startTime,d.oa())}d=NaN}d&&a.Da.seekTo(d,{Ip:!0,Pd:"pollSubsegmentReadahead",Yo:!0})}d=!1;NCa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.C||(e.C=Date.now(),e.tick("vda"),gB("vda",void 0,"video_to_ad"),e.B&&(Mu(),Pu(4))));if(a.mediaSource&&!a.mediaSource.jf()&&(NCa(a,a.audioTrack,b)&&(d=a.timing, d.B||(d.B=Date.now(),d.tick("ada"),gB("ada",void 0,"video_to_ad"),d.C&&(Mu(),Pu(4))),d=!0),!a.isDisposed()&&a.mediaSource)){!a.policy.La&&dV(a.videoTrack)&&dV(a.audioTrack)&&aE(a.mediaSource)&&!a.mediaSource.dh()&&(e=$U(a.audioTrack).i,e===a.i.i[e.info.id]&&(a.oa(),e=a.mediaSource,aE(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.He.webkitSourceEndOfStream(e.He.EOS_NO_ERROR)),e=a.schedule,ema(SE(e)),e.D=OE()));e=a.policy.Wt;f=a.policy.du;d||!(0c*(10-e)/lU(b)}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0a.currentTime||360(f?f.Na:-1))){e=!1;break a}e=!0}e=!e}if(e)return!1;e=d.info;f=$U(b);!f||f.Nd||OC(f,e)||c.abort();!c.hv()||YD()?c.TF(e.i.info.containerType,e.i.info.mimeType):e.i.info.containerType!==c.hv()&&a.Ca("ctu","ct."+YD()+";prev_c."+c.hv()+";curr_c."+e.i.info.containerType);f=e.i.J;a.policy.Pj&&f&&(e=0+f.duration,f=-f.i,0===c.sy()&&e=== c.SC()||c.hF(0,e),f!==c.Qc()&&(c.nA(f),SU&&KBa(a.audioTrack.C,c.gD())));if(a.i.B&&0===d.info.Cb&&(g.oD(d.info.i.info)||a.policy.Lo)){if(null==c.yp()){e=$U(b);if(!(f=!e||e.i!==d.info.i)){b:if(e=e.N,f=d.info.N,e.length!==f.length)e=!1;else{for(var h=0;he)||(a.policy.Vc&&(!d.info.Cb||d.info.Nd||10>d.info.C)&&a.Ca("sba",c.Jb({as:KC(d.info)})),e=d.B?d.info.i.i:null,f=kD(d.i),d.B&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=OCa(a,c,f,d.info,e),"s"===e?(a.Xa= 0,e=!0):("i"===e||"x"===e?PCa(a,"checked",e,d.info):("q"===e&&(d.info.isVideo()?(f=a.policy,f.K=Math.floor(.8*f.K),f.Ba=Math.floor(.8*f.Ba),f.J=Math.floor(.8*f.J)):(f=a.policy,f.V=Math.floor(.8*f.V),f.ob=Math.floor(.8*f.ob),f.J=Math.floor(.8*f.J)),zU(a.u,d.info.i)),SV(a.Da,{reattachOnAppend:e})),e=!1),e=!e);if(e)return!1;b.Rh(d);a.oa("Appended "+KC(d.info)+", buffered: "+ND(c.cf()));return!0}; PCa=function(a,b,c,d){var e="fmt.unplayable",f=!0;"x"===c||"m"===c?(e="fmt.unparseable",d.i.D=e,d.i.info.video&&!AU(a.u)&&zU(a.u,d.i)):"i"===c&&(15>a.Xa?(a.Xa++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=QC(d);d.mrs=bE(a.mediaSource);d.origin=b;d.reason=c;a.handleError(f,e,d)}; IBa=function(a,b,c){var d=a.i,e=!1,f=-1,h;for(h in d.i){var l=DD(d.i[h].info.mimeType)||d.i[h].info.isVideo();if(c===l)if(l=d.i[h].index,!bD(l,b.Na))l.jB(b),e=!0;else if(d.bb){e=b;var m=l.ej(e.Na);m&&m.startTime!==e.startTime?(l.segments=[],l.jB(e),e=!0):e=!1;e&&(f=b.Na)}}0<=f&&d.Z("clienttemp","restMflIndex",(c?"v":"a")+"."+f,!1);WAa(a.C,b,c,e);a.B.wE(b,c)}; QV=function(a,b,c){c.info.i.Oe();var d=c.info.i.i;if(null==d||b.yp()===d)return!1;var e=d,f=b.vy();if(a.policy.Ug&&f&&b.isView()&&g.oD(c.info.i.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=wka(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Ca("fenc","1")}f=null;(h=c.info.i.Cp(0))&&(f=h.i[0]);a.policy.Gi&&b.abort();d=OCa(a,b,e,f,d);if("s"!==d)return PCa(a,"sepInit",d,c.info),!0;a.oa();return b.dh()}; OCa=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:ND(b.cf()).replace(/,/g,"_"),message:g.fe(g.Wa(f.message),3),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},BCa()),a.handleError(!1,"player.exception",b),"q";g.yz(f)}return"u"}return a.mediaSource.jf()?"m":"s"}; LV=function(a,b,c){if(a.isSuspended)return 1;var d=b.i.info.audio?a.policy.V:a.policy.K;!a.policy.bb&&BU(a.u)&&(d=Math.max(d,b.i.info.audio?a.policy.ob:a.policy.Ba));c&&(d+=a.policy.gb);var e=BU(a.u)?b.u?b.u.i.info.Mb:b.i.info.Mb:b.Mb;d/=e;0c&&a.Ca("bwcapped","1",!0),c=Math.max(c,15),d=Math.min(d,c));return d}; HCa=function(a){var b=g.No(a.Da.vn(),function(d){return"ad"===d.namespace}); b=g.r(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.currentTime)return c.start/1E3;return Infinity}; QCa=function(a,b){(new JE(b,"cms",null,function(c){a.Da.handleError(c)})).send()}; RCa=function(a,b){if(a.mediaSource&&a.mediaSource.u){b-=!isNaN(a.timestampOffset)&&a.policy.Kh?a.timestampOffset:0;a.currentTime!==b&&a.resume();if(a.C.i&&!a.mediaSource.jf()){var c=a.currentTime<=b&&b=b&&CCa(a,d.startTime,!1)}); return c&&c.startTimed;d++)c[2*d]=''.charCodeAt(d);a=a.B.createSession("video/mp4",b,c);return new aW(null,null,null,null,a)}; dW=function(a,b){var c=a.J[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.J[b.sessionId]=c);return c}; wDa=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 VV(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new fW(a.Ga("disable_license_delay"),!a.Ga("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.XH,this),this.D.subscribe("log_qoe",this.Ig,this);this.oa("Created, key system "+this.i.keySystem+", final EME "+BE(this.Y.experiments));this.Ig("cks"+this.i.df());c=this.i;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.D&&(this.La=new eW(this.videoData.uc,this.Y.experiments),g.J(this,this.La))}; BDa=function(a){var b=cW(a.C);b?b.then(zs(function(){CDa(a)}),zs(function(c){if(!a.isDisposed()){a.oa(); g.ys(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.Z("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.oa(),a.Ig("mdkrdy"),a.V=!0); a.ea&&(b=cW(a.ea))}; EDa=function(a,b,c){a.Ma=!0;c=new IU(b,c);a.Y.U("html5_eme_loader_sync")&&(a.J.get(b)||a.J.set(b,c));DDa(a,c)}; DDa=function(a,b){if(!a.isDisposed()){a.Ig("onInitData");if(a.Y.U("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.i){var c=a.K.get(b.initData);b=a.J.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.J.remove(c);a.K.remove(c)}a.oa();a.Ig("initd."+b.initData.length+";ct."+b.contentType);if("widevine"===a.i.flavor)if(a.Aa&&!a.videoData.isLivePlayback)kW(a);else{if(!(a.Y.U("vp9_drm_live")&&a.videoData.isLivePlayback&&b.ue)){a.Aa=!0;c=b.cryptoPeriodIndex;var d=b.i;uBa(b);b.ue||(d&&b.i!==d?a.Z("ctmp", "cpsmm","emsg."+d+";pssh."+b.i):c&&b.cryptoPeriodIndex!==c&&a.Z("ctmp","cpimm","emsg."+c+";pssh."+b.cryptoPeriodIndex));a.Z("widevine_set_need_key_info",b)}}else a.XH(b)}}; CDa=function(a){if(!a.isDisposed())if(a.Y.U("html5_drm_set_server_cert")&&!g.uF(a.Y)){var b=a.C.setServerCertificate();b?b.then(zs(function(c){a.videoData.ma&&a.Z("ctmp","ssc",c)}),zs(function(c){a.Z("ctmp","ssce","n."+c.name+";m."+c.message)})).then(zs(function(){lW(a)})):lW(a)}else lW(a)}; lW=function(a){a.isDisposed()||(a.V=!0,a.oa(),a.Ig("onmdkrdy"),kW(a))}; kW=function(a){if(a.Ma&&a.V&&!a.xa){for(;a.B.length;){var b=a.B[0];if(a.u.get(b.initData))if("fairplay"===a.i.flavor)a.u.remove(b.initData);else{a.B.shift();continue}uBa(b);break}a.B.length&&a.createSession(a.B[0])}}; FDa=function(a){var b;if(b=g.Rt()){var c;b=!(null===(c=a.C.u)||void 0===c||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.C.TextDecoder?(new TextDecoder).decode(b):g.Ya(b),a.Z("ctmp","drm",b))}; nW=function(a){g.I.call(this);var b=this;this.Da=a;this.i=this.Da.W();this.videoData=this.Da.getVideoData();this.bz=0;this.K=this.B=!1;this.J=this.D=0;this.C=g.T(this.i.experiments,"html5_delayed_retry_count");this.u=new g.M(function(){mW(b.Da)},g.T(this.i.experiments,"html5_delayed_retry_delay_ms")); g.J(this,this.u)}; pW=function(a,b,c){var d=a.videoData.u;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.Da.Vf.C&&d&&"22"===d.lc())return a.Da.Vf.C=!0,a.Od("qoe.restart",{reason:"fmt.unplayable.22"}),oW(a.Da),!0;var e=!1,f=a.bz+3E4<(0,g.Q)()||a.u.isActive();if(a.i.U("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Od("auth",c),!0;var h;if(h=!f)h=a.Da.Fp(),h=!!(h.Fe()||h.isInline()||h.isBackground()||h.Zr()||h.Xr()); h&&(c.nonfg="paused",f=!0,a.Da.pauseVideo());!f&&0=a.i.bb)return!1;b.exiled=""+a.i.bb;a.Od("qoe.start15s",b);a.Da.Z("playbackstalledatstart");return!0}; JDa=function(a){if("GAME_CONSOLE"!==a.i.deviceParams.cplatform)try{window.close()}catch(b){}}; HDa=function(a){return a.B?!0:"yt"!==a.i.Aa?!1:a.videoData.ob?25>a.videoData.Ab:!a.videoData.Ab}; IDa=function(a){if(!a.B){a.B=!0;var b=a.Da.getPlayerState();b=g.U(b,4)||b.isSuspended();a.Da.nm();b&&!vH(a.videoData)||a.Da.Z("signatureexpired")}}; KDa=function(a,b){if((a=a.Da.dd())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.aj();b.details.merr=c?c.toString():"0";b.details.msg=a.le()}}; MDa=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="18886";if(HDa(a))return b.i&&(b=Object.assign({e:b.errorCode},b.details),b=new g.UD("qoe.restart",!1,b)),a.Od(b.errorCode,b.details),IDa(a),!0;6048E5<(0,g.Q)()-a.i.ob&&LDa(a,"signature");return!1}; LDa=function(a,b){try{window.location.reload();a.Od("qoe.restart",{detail:"pr."+b});return}catch(c){}a.i.U("tvhtml5_retire_old_players")&&g.uF(a.i)&&JDa(a)}; NDa=function(a,b){a.i.C.C=!1;a.Od("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});oW(a.Da)}; ODa=function(a,b,c,d){this.videoData=a;this.i=b;this.reason=c;this.u=d}; qW=function(a,b,c){this.Y=a;this.Ow=b;this.Da=c;this.V=this.J=this.K=this.u=this.i=this.D=this.N=this.B=0;this.playbackRate=1;this.C=!1}; QDa=function(a,b,c){!a.Y.U("html5_tv_ignore_capable_constraint")&&g.uF(a.Y)&&(c=c.compose(PDa(a,b)));return c}; UDa=function(a,b){return RDa(a).compose(SDa(a)).compose(TDa(a,b))}; RDa=function(a){a=VDa(a);return qB("auto",a,!1,"s")}; VDa=function(a){var b;a.U("html5_exponential_memory_for_sticky")?b=.5>UE(a.Y.hc,"sticky-lifetime")?"auto":sB[pE()]:b=sB[pE()];return b}; WDa=function(a,b){return 1(0,g.Q)()-a.D?0:f||0h?a.u+1:0;if(!e||g.uF(a.Y))return!1;a.i=d>e?a.i+1:0;if(3!==a.i)return!1;YDa(a,b.videoData.u);a.Da.Ca("dfd","dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames+";"+$Da());return!0}; bEa=function(a,b){return 0>=g.T(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32=e){d=e;break}return new nB(0,d,!1,"b")}; SDa=function(a){var b=a.Da.Fp(),c=g.T(a.Y.experiments,"html5_inline_quality_cap"),d=g.T(a.Y.experiments,"html5_background_quality_cap"),e=g.T(a.Y.experiments,"html5_background_cap_idle_secs");return c&&b.isInline()?new nB(0,c,!1,"v"):!d||"auto"!==VDa(a)||Uu()/1E3e?(c&&(d=dEa(a,c,d)),new nB(0,d,!1,"e")):wG}; dEa=function(a,b,c){if(a.U("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.i.videoInfos,b=1;ba.B)){var b=g.JS(a.i),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.jK(a.playerState)&&!g.U(a.playerState,16)&&(a.rebufferTimeSecs+=c)}}; hEa=function(a){switch(a.Y.playerCanaryState){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}}; iEa=function(a){return(!a.U("html5_health_to_gel")||a.Y.ob+36E5<(0,g.Q)())&&(a.U("html5_health_to_gel_canary_killswitch")||a.Y.ob+36E5<(0,g.Q)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===hEa(a))?a.U("html5_health_to_qoe"):!0}; kEa=function(a,b){b?jEa.test(a):(a=g.Gs(a),Object.keys(a).includes("cpn"))}; sW=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(ft(a)&>()){if(h){var n;2!==(null===(n=lEa.uaChPolyfill)||void 0===n?void 0:n.state.type)?h=null:(h=lEa.uaChPolyfill.state.data.values,h={"Synth-Sec-CH-UA-Arch":h.architecture,"Synth-Sec-CH-UA-Model":h.model,"Synth-Sec-CH-UA-Platform":h.platform,"Synth-Sec-CH-UA-Platform-Version":h.platformVersion,"Synth-Sec-CH-UA-Full-Version":h.uaFullVersion});m=Object.assign(m,h);l.withCredentials=!0}d&&(m["X-Goog-Visitor-Id"]=d);c&&(m["X-Goog-PageId"]=c); e&&(m.Authorization="Bearer "+e);d||e||c?l.withCredentials=!0:b.U("html5_send_cpn_with_options")&&jEa.test(a)&&(l.withCredentials=!0)}0a.K.UK+100&&a.K){var d=a.K,e=d.isAd;a.Qa=1E3*b-d.nW-(1E3*c-d.UK)-d.cW;a.Ca("gllat",{l:a.Qa.toFixed(),prev_ad:+e});delete a.K}}; xW=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.JS(a.i);var c=a.i.Da.Fy();if(!isNaN(a.ma)&&!isNaN(c.u)){var d=c.u-a.ma;0a.u)&&2=e&&(g.yz(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},a.Y.U("html5_validate_yt_now")),c=b(); a.i=function(){return Math.round(b()-c)/1E3}; a.Da.AE()}return a.i}; oEa=function(a){if(navigator.connection&&navigator.connection.type)return IEa[navigator.connection.type]||IEa.other;if(g.uF(a.Y)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0}; BW=function(a){var b=new GEa;b.C=a.Eh().cc||"-";b.playbackRate=a.Da.getPlaybackRate();var c=a.Da.getVisibilityState();0!==c&&(b.visibilityState=c);a.Y.Fb&&(b.u=1);c=a.Da.getAudioTrack();c.yc&&c.yc.id&&"und"!==c.yc.id&&(b.B=c.yc.id);b.connectionType=oEa(a);b.volume=a.Eh().volume;b.muted=a.Eh().muted;b.clipId=a.Eh().clipid||"-";b.i=a.videoData.rH||"-";return b}; g.OW=function(a){g.I.call(this);var b=this;this.u=a;this.B=this.qoe=this.i=null;this.Pf=void 0;this.C=new Map;this.u.videoData.isValid()&&!this.u.videoData.Gi&&(this.i=new HW(this.u),g.J(this,this.i),this.qoe=new g.vW(this.u),g.J(this,this.qoe),this.u.videoData.enableServerStitchedDai&&(this.Pf=this.u.videoData.clientPlaybackNonce)&&this.C.set(this.Pf,this.i));iEa(this.u)&&(this.B=new rW(this.u,function(c){b.Ca("h5h",c)}),g.J(this,this.B))}; JEa=function(a){a.B&&fEa(a.B);a.qoe&&rEa(a.qoe)}; KEa=function(a){var b;a.u.videoData.enableServerStitchedDai&&a.Pf?null===(b=a.C.get(a.Pf))||void 0===b?void 0:CW(b.u):a.i&&CW(a.i.u)}; LEa=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.pd&&(b.pd="N");var c=g.JS(b.i);g.uW(b,c,"vps",[b.pd]);b.J||(0<=b.B&&(b.u.user_intent=[b.B.toString()]),b.J=!0);b.Aa=!0;b.reportStats(c)}}if(a.u.videoData.enableServerStitchedDai)for(b=g.r(a.C.values()),c=b.next();!c.done;c=b.next())MW(c.value);else a.i&&MW(a.i);a.dispose()}; MEa=function(a,b){a.i&&FEa(a.i,b)}; NEa=function(a){if(!a.i)return null;var b=IW(a.i,"atr");return function(c){a.i&&FEa(a.i,c,b)}}; OEa=function(a,b,c,d){c.adFormat=c.ac;var e=b.Da;b=new HW(new NW(c,b.Y,{getDuration:function(){return c.lengthSeconds}, getCurrentTime:function(){return e.getCurrentTime()}, Dh:function(){return e.Dh()}, Fy:function(){return e.Fy()}, getPlayerSize:function(){return e.getPlayerSize()}, getAudioTrack:function(){return c.getAudioTrack()}, getPlaybackRate:function(){return e.getPlaybackRate()}, Av:function(){return e.Av()}, getVisibilityState:function(){return e.getVisibilityState()}, AE:function(){e.AE()}, dw:function(){e.dw()}},b.Eh)); b.D=d;g.J(a,b);return b}; PEa=function(){this.ep=0;this.D=this.C=this.u=this.B=NaN;this.i="";this.bandwidthEstimate=NaN}; QEa=function(){this.u=g.xA;this.i=[]}; SEa=function(a,b,c){var d=[];for(b=REa(a,b);bc)break}return d}; TEa=function(a,b){var c=[];a=g.r(a.i);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c}; UEa=function(a){return a.i.slice(REa(a,0x7ffffffffffff),a.i.length)}; REa=function(a,b){a=zb(a.i,function(c){return b-c.start||1}); return 0>a?-(a+1):a}; VEa=function(a,b){var c=NaN;a=g.r(a.i);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}; ZEa=function(a,b){this.videoData=a;this.i=b}; $Ea=function(a,b,c){return Qoa(b,c).then(function(){return Ft(new ZEa(b,b.C))},function(d){d instanceof Error&&As(d); d=b.isLivePlayback&&!g.HE(a.C,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.eb,drm:""+ +GG(b),f18:""+ +(0<=b.Ii.indexOf("itag=18")),c18:""+ +HD('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.i&&(GG(b)?(e.f142=""+ +!!b.i.i["142"],e.f149=""+ +!!b.i.i["149"],e.f279=""+ +!!b.i.i["279"]):(e.f133=""+ +!!b.i.i["133"],e.f140=""+ +!!b.i.i["140"],e.f242=""+ +!!b.i.i["242"]),e.cAVC=""+ +ID('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +ID('audio/mp4; codecs="mp4a.40.2"'), e.cVP9=""+ +ID('video/webm; codecs="vp9"'));if(b.J){e.drmsys=b.J.keySystem;var f=0;b.J.i&&(f=Object.keys(b.J.i).length);e.drmst=""+f}return new g.UD(d,!0,e)})}; aFa=function(a){this.D=a;this.B=this.u=0;this.C=new ST(50)}; TW=function(a,b,c){g.R.call(this);this.videoData=a;this.experiments=b;this.N=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.J=0;c=new bFa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.rb?c.u=3:g.hH(a)&&(c.u=2);b.Ga("html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.N=!0);var d=Ioa(a);c.D=2===d||-1===d;c.D&&(c.ma++,21530001===NG(a)&&(c.J=g.T(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Ot("trident/")||Ot("edge/"))d=g.T(b,"html5_platform_minimum_readahead_seconds")||3,c.B=Math.max(c.B, d);g.T(b,"html5_minimum_readahead_seconds")&&(c.B=g.T(b,"html5_minimum_readahead_seconds"));g.T(b,"html5_maximum_readahead_seconds")&&(c.V=g.T(b,"html5_maximum_readahead_seconds"));b.Ga("html5_force_adaptive_readahead")&&(c.C=!0);g.T(b,"html5_allowable_liveness_drift_chunks")&&(c.i=g.T(b,"html5_allowable_liveness_drift_chunks"));g.T(b,"html5_readahead_ratelimit")&&(c.ea=g.T(b,"html5_readahead_ratelimit"));switch(NG(a)){case 21530001:c.i=(c.i+1)/5,"LOW"===a.latencyClass&&(c.i*=2),c.K=b.Ga("html5_live_smoothly_extend_max_seekable_time")}this.policy= c;this.K=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.rb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(NG(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.i=SW(this,b);this.oa()}; cFa=function(a,b){var c=a.i;(void 0===b?0:b)&&a.policy.K&&3===Ioa(a.videoData)&&--c;return UW(a)*c}; VW=function(a,b){var c=a.hj(),d=a.policy.i;a.D||(d=Math.max(d-1,0));a=d*UW(a);return b>=c-a}; dFa=function(a,b,c){b=VW(a,b);c||b?b&&(a.B=!0):a.B=!1;a.K=2===a.policy.u||3===a.policy.u&&a.B}; eFa=function(a,b){b=VW(a,b);a.D!==b&&a.Z("livestatusshift",b);a.D=b}; UW=function(a){return a.videoData.i?nE(a.videoData.i)||5:5}; SW=function(a,b){b=Math.max(Math.max(a.policy.ma,Math.ceil(a.policy.B/UW(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.V/UW(a))),b)}; bFa=function(){this.ma=1;this.B=0;this.V=Infinity;this.ea=0;this.C=!0;this.i=2;this.u=1;this.D=!1;this.J=NaN;this.K=this.N=!1}; YW=function(a){g.I.call(this);this.Da=a;this.Y=this.Da.W();this.C=this.i=0;this.B=new g.M(this.D,1E3,this);this.Ba=new WW({delayMs:g.T(this.Y.experiments,"html5_seek_timeout_delay_ms")});this.V=new WW({delayMs:g.T(this.Y.experiments,"html5_long_rebuffer_threshold_ms")});this.Ha=XW(this,"html5_seek_set_cmt");this.ma=XW(this,"html5_seek_jiggle_cmt");this.xa=XW(this,"html5_seek_new_elem");this.Ta=XW(this,"html5_unreported_seek_reseek");this.K=XW(this,"html5_long_rebuffer_jiggle_cmt");this.N=new WW({delayMs:2E4}); this.J=XW(this,"html5_ads_preroll_lock_timeout");this.Ma=new WW({delayMs:g.T(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Br:!this.Y.U("html5_report_slow_ads_as_error")});this.La=new WW({delayMs:g.T(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Br:!this.Y.U("html5_skip_slow_buffering_ad")});this.Aa=XW(this,"html5_seek_over_discontinuities");this.Qa=new WW({delayMs:g.T(this.Y.experiments,"html5_slow_start_timeout_delay_ms")});this.ea=XW(this,"html5_slow_start_no_media_source");this.u= {};g.J(this,this.B)}; XW=function(a,b){var c=g.T(a.Y.experiments,b+"_delay_ms");a=a.Y.U(b+"_cfl");return new WW({delayMs:c,Br:a})}; fFa=function(a,b,c,d,e,f,h){var l=OD(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&&h&&m;var n=l+1b.fA,c=b.i&&c-b.i>b.UE||f?b.B=!0:!1):c=!1,c&&(c=a.Jb(b),c.wn=h,c.we=e,c.wsuc=""+ +d,h=g.VD(c),a.Da.Ca("workaroundReport",h),d&&(b.reset(),a.u[e]=!1)))}; WW=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.UE?1E3:b.UE,d=void 0===b.fA?3E4:b.fA;b=void 0===b.Br?!1:b.Br;this.i=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.UE=c;this.fA=d;this.Br=b}; gFa=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}; aX=function(a){g.I.call(this);var b=this;this.Da=a;this.Y=this.Da.W();this.videoData=this.Da.getVideoData();this.policy=new hFa(this.Y);this.ea=new YW(this.Da);this.playbackData=null;this.Ma=new g.FD;this.J=this.u=this.Ya=this.ra=null;this.i=NaN;this.B=0;this.C=null;this.Aa=NaN;this.D=this.K=null;this.V=this.N=!1;this.xa=new g.M(function(){iFa(b,!1)},2E3); this.Xa=new g.M(function(){$W(b)}); this.Ha=new g.M(function(){b.oa();b.N=!0;jFa(b)}); this.Qa=this.timestampOffset=0;this.La=!0;this.Ba=0;this.Ta=NaN;this.ma=new g.M(function(){var c=b.Y.hc;c.i+=1E4/36E5;c.i-c.B>1/6&&(Kma(c),c.B=c.i);b.ma.start()},1E4); g.J(this,this.ea);g.J(this,this.Ma);g.J(this,this.xa);g.J(this,this.Ha);g.J(this,this.Xa);g.J(this,this.ma)}; kFa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.J=new aFa(function(){a:{if(a.playbackData&&a.playbackData.i.i){if(MG(a.videoData)&&a.Ya){var c=a.Ya.Ha.pg()||0;break a}if(a.videoData.i){c=a.videoData.i.xa;break a}}c=0}return c}),a.u=new TW(a.videoData,a.Y.experiments,function(){return a.cd(!0)})); a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9=e.u&&cd.C||g.Pa()-d.J=a.cd()-.1)a.i=a.cd(),a.C.resolve(a.cd()),KS(a.Da);else try{var c=a.i-a.timestampOffset;a.oa();a.ra.seekTo(c);a.ea.i=c;a.Aa=c;a.B=a.i}catch(d){a.oa()}}}; qFa=function(a){if(!a.ra||0===a.ra.uh()||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=lD(a,b++);else if(2===c)c=lD(a,b++),a=lD(a,b++),a=(c&63)+64*a;else if(3===c){c=lD(a,b++);var d=lD(a,b++);a=lD(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=lD(a,b++);d=lD(a,b++);var e=lD(a,b++);a=lD(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),jD(a,c,4)?a=gla(a).getUint32(c-a.B,!0):(d=lD(a,c+2)+256*lD(a,c+3),a=lD(a,c)+256*(lD(a,c+1)+ 256*d)),b+=5;return[a,b]}; wX=function(a){this.u=a;this.i=new gD}; OFa=function(a){var b=g.r(NFa(a.i,0));var c=b.next().value;var d=b.next().value;d=g.r(NFa(a.i,d));b=d.next().value;d=d.next().value;!(0>c||0>b)&&d+b<=a.i.totalLength&&(d=a.i.split(d).Aq.split(b),b=d.Ly,d=d.Aq,a.u.Xp.feed(c,b),a.i=d,OFa(a))}; SFa=function(a,b,c){var d=a.getVideoData().isAd()?.5:.9;c=c*d-16E3;a=UDa(a.Vf,a.videoData);d=[];b=g.r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=PFa[e]||0;if(!(f&&f>c)){var h=QFa[e]||0;a.i&&h>a.i||d.push({itag:e,byterate:f})}}return d.sort(function(l,m){return RFa.indexOf(xD[l.itag])-RFa.indexOf(xD[m.itag])||m.byterate-l.byterate}).map(function(l){return l.itag})}; UFa=function(a){var b=TFa[a]||[];"9"===xD[a]&&(b=[].concat(g.v(b),["278"]));return[a].concat(g.v(b))}; WFa=function(a){function b(h){return h.id} function c(h){return(h=f[h])?(CB(h,[]),[h[0]]):[]} var d=Pla(VFa,null,0,!1,!1,void 0),e=a.W().C;a=HG(a);var f=xB(a,e,d,function(){return!0},!1); d=Zja(a).map(c).flat();return{video:aka(a).map(c).flat().map(b),audio:d.map(b)}}; ZFa=function(a){return g.H(this,function c(){var d,e,f,h;return g.B(c,function(l){return 1==l.i?(d=a.W().Nc,null!==d&&void 0!==d&&d.baseUrl?g.z(l,XFa(),3):l.ib(2)):2!=l.i&&(e=l.u)?(f=""+e+d.baseUrl,h=new g.FB(f),l.return(YFa(h,a))):l.return(null)})})}; YFa=function(a,b){var c,d=null===(c=b.Bq)||void 0===c?void 0:c.urlQueryOverride;if(d){d=KB(d);d=g.r(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;f=f.next().value;a.set(e,f)}}if(!a.get("id")){d=KE(b.videoId);b=[];if(d)for(d=g.r(d),e=d.next();!e.done;e=d.next())b.push(e.value.toString(16).padStart(2,"0"));b=b.join("");if(!b)return null;a.set("id",b)}return a}; XFa=function(){return g.H(this,function b(){var c,d,e,f,h;return g.B(b,function(l){if(1==l.i)return c={format:"RAW",method:"GET",timeout:5E3},g.z(l,Bt("https://redirector.googlevideo.com/initplayback?alr=yes&id=%s",c),2);d=l.u;if(200!==d.xhr.status||!d.xhr.responseText)return l.return(null);e=d.xhr.responseText;f=/https:\/\/(.*)\.googlevideo.com/g;h=e.match(f);return l.return(h?h[0]:null)})})}; xX=function(a,b){g.I.call(this);this.Da=a;this.playerRequest=b;this.Y=this.Da.W();this.videoData=this.Da.getVideoData();this.mj=g.IG(this.videoData);this.MI=this.Y.Nc;this.EE=new jX(this.MI.i);this.xhr=null;this.Uk=new AS;this.LJ=!1;this.playerResponse="";this.nN=new wX(this);this.Xp=new nX(this);this.Iz=new g.M(this.vR,1E4,this);this.cK=!1;this.wD=this.Y.ol;this.mw="";this.Dw=this.Y.U("html5_onesie_wait_for_media_availability");this.XD=this.hK=!1;g.J(this.videoData,this);g.J(this,this.Iz);this.Y.U("html5_onesie_media_bytes")&& jB()&&(this.Ge=new kX(this),g.J(this,this.Ge))}; IFa=function(a,b,c){var d;null===(d=a.Ge)||void 0===d?void 0:(d.oa(),(a=d.Ke.get(b))&&!a.jf&&(a.cJ.start(),a.Qd.append(c),a.bytesReceived+=c.length,a.kd&&a.kd()))}; oX=function(a){var b;if(!(b=!a.playerResponse||a.hK)&&(b=a.Dw&&a.Ge)){b=a.Ge;for(var c=!1,d=!1,e=g.r(b.Ke.keys()),f=e.next();!f.done;f=e.next())f=b.Ke.get(f.value),(null===f||void 0===f?0:f.yk)&&0<(null===f||void 0===f?void 0:f.yk)&&(f.Gk?c=!0:d=!0);b=!(d&&c)}if(b)return!1;a.Te("ofr");a.Uk.resolve(a.playerResponse);a.Iz.stop();return a.hK=!0}; dGa=function(a){function b(e){return(d.Ug&&!c.U("web_player_no_force_gvi")||!(c.Fi?0:c.U("web_player_gvi_wexit")||(g.uF(c)?"TVHTML5"===c.deviceParams.c?cna(c)?c.U("web_player_gvi_wexit_living_room_pangea"):c.U("web_player_gvi_wexit_living_room_bedrock"):"TVHTML5_KIDS"===c.deviceParams.c?c.U("web_player_gvi_wexit_living_room_kids"):"TVHTML5_SIMPLY"===c.deviceParams.c||aF(c)?c.U("web_player_gvi_wexit_living_room_simply"):FF(c)||"TV_UNPLUGGED_CAST"===c.deviceParams.c?c.U("web_player_gvi_wexit_living_room_unplugged"): c.U("web_player_gvi_wexit_living_room_other"):1))&&!uH(d)?0:"yt"!==c.Aa?38===d.Ha&&"books"===c.playerStyle||30===d.Ha&&"docs"===c.playerStyle||33===d.Ha&&"google-live"===c.playerStyle?0:c.U("web_player_gvi_wexit_all_player_styles"):"adunit"!==pH(d)||c.U("web_player_gvi_wexit_adunit"))?$Fa(a,d).then(function(){yX(a,d)},function(f){yX(a,d,!0); throw f;}):aGa(a,d,e)} var c=a.W(),d=a.getVideoData();d.isDisposed();d.Ba=!0;return bGa(a)?cGa(a,d).then(function(){yX(a,d)},function(e){e=WD(e); if(e.i)return yX(a,d,!0),Promise.reject(e);a.handleError(e);return b("onesie")}):b("gvi")}; bGa=function(a){var b=a.W();if(!b.U("html5_onesie")||"yt"!==b.Aa)return!1;b=b.Nc;if(!b||!b.i)return a.handleError(new g.UD("onesie.unavailable.hotconfig",!1,{key:"0"})),!1;b={};window.Uint8Array||(b.uint8="0");return 0Math.random())try{g.zz(new g.hw("b/152131571",btoa(f)))}catch(A){}return y.return(Promise.reject(new g.UD(x,!0,{backend:"gvi"})))}})})}; hGa=function(a,b){return g.H(this,function d(){var e,f,h,l,m,n,p,q,t,u,x,y,A;return g.B(d,function(E){if(1==E.i)return a.fetchType="gvi",e=a.W(),(l=Nta(a))?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=et(b,{action_display_post:1})):(f={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},h=b),m={},e.sendVisitorIdHeader&&a.visitorData&&(m["X-Goog-Visitor-Id"]=a.visitorData),(n=g.tE(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n),0< Object.keys(m).length&&(f.headers=m),p=(0,g.Q)(),q=function(G){if(!a.isDisposed()){G=G?G.status:-1;var F=400===G||429===G,K=((0,g.Q)()-p).toFixed();K={backend:"gvi",rc:""+G,rt:K};var V="manifest.net.connect";429===G?V="auth":200t.u&&3!==t.i.Da.getVisibilityState()&&fEa(t)}q.qoe&&(q=q.qoe, q.Ha&&0>q.B&&q.i.Y.uc&&rEa(q));g.T(p.Y.experiments,"html5_background_quality_cap")&&p.Ya&&OV(p);p.Y.fk&&!p.videoData.backgroundable&&p.ra&&!p.hf()&&(p.isBackground()&&p.ra.ix()?(p.Ca("bgmobile","suspend"),p.nm(!0)):p.isBackground()||AX(p)&&p.Ca("bgmobile","resume"))}; this.oa();this.Bh=new PW(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,t){q!==g.yA("endcr")||g.U(p.playerState,32)||KS(p); e(q,t,p.playerType)}); g.J(this,this.Bh);g.J(this,this.Kc);kGa(this,m);this.videoData.subscribe("dataupdated",this.IV,this);this.videoData.subscribe("dataloaded",this.pC,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Ca,this);lGa(this);Wza(this.ye);this.visibility.subscribe("visibilitystatechange",this.ye);this.videoData.Ma&&mGa(this);!Voa(this.videoData)&&apa(this.videoData)||nGa(this);1===this.playerType&&BX.isActive()&&this.Uz.start()}; kGa=function(a,b){if(2===a.playerType||a.Y.fl)b.fG=!0;var c=Vna(b.ac,b.Pq,a.Y.u,a.Y.B);c&&(b.adFormat=c);2===a.playerType&&(b.Nk=!0);if(a.isFullscreen()||a.Y.u)c=g.Uz("yt-player-autonavstate"),b.autonavState=c||(a.Y.u?2:a.videoData.autonavState);oGa(a,b)}; lGa=function(a){!a.Vb||a.Vb.isDisposed();a.Vb=new g.OW(new NW(a.videoData,a.Y,a,function(){return a.Bx.Eh()}))}; kI=function(a){return a.ra&&a.ra.No()?a.ra.Je():null}; DX=function(a){if(a.videoData.isValid())return!0;a.Ff("api.invalidparam",void 0,"invalidVideodata.1");return!1}; mGa=function(a){var b=a.Bx.Ic();a.videoData.ol=a.videoData.ol||(null===b||void 0===b?void 0:b.WC());a.videoData.ql=a.videoData.ql||(null===b||void 0===b?void 0:b.XC())}; qS=function(a,b){(b=void 0===b?!1:b)||JEa(a.Vb);a.ds=b;!DX(a)||a.im.started?g.uF(a.Y)&&a.videoData.isLivePlayback&&a.im.started&&!a.im.isFinished()&&!a.ds&&a.pC():(a.im.start(),b=a.Vb,g.JS(b.u),b.qoe&&qEa(b.qoe),a.pC())}; pGa=function(a){var b=a.videoData;jGa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=WD(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Ff("auth",unescape(a.videoData.errorReason),g.VD(c.details),a.videoData.errorDetail,a.videoData.oi||void 0):a.handleError(c))})}; Zza=function(a,b){a.Hd=b;a.Ya&&(a=a.Ya,b=new g.TV(b),a.K=b,a.B&&(a.B.N=b))}; qGa=function(a){if(!g.U(a.playerState,128))if(a.videoData.isLoaded(),a.oa(),4!==a.playerType&&(a.Fj=g.sb(a.videoData.xa)),TG(a.videoData)){EX(a).then(function(){a.isDisposed()||(a.ds&&(a.Sb(dK(dK(a.playerState,512),1)),AX(a)),oGa(a,a.videoData),a.im.i=!0,FX(a,"dataloaded"),a.jm.started&&GX(a),eEa(a.Vf,a.ze))}); a.U("html5_log_media_perf_info")&&a.Ca("loudness",""+a.videoData.Id.toFixed(3),!0);var b=bpa(a.videoData);b&&a.Ca("playerResponseExperiment",b,!0);a.aC()}else FX(a,"dataloaded")}; EX=function(a){HX(a);a.ze=null;var b=$Ea(a.Y,a.videoData,a.hf());a.nw=b;a.nw.then(function(c){rGa(a,c)},function(c){a.isDisposed()||(c=WD(c),a.visibility.isBackground()?(IX(a,"vp_none_avail"),a.nw=null,a.im.reset()):(a.im.i=!0,a.Ff(c.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",g.VD(c.details))))}); return b}; oW=function(a){a.oa();EX(a).then(function(){return AX(a)}); g.hK(a.playerState)&&a.playVideo()}; rGa=function(a,b){a.isDisposed()||b.videoData.isDisposed()||(a.oa(),a.ze=b,kFa(a.Kc,a.ze),a.videoData.isLivePlayback&&(0b.startSeconds&&(b=b.endSeconds,a.vk&&(a.removeCueRange(a.vk),a.vk=null),a.vk=new g.wA(1E3*b,0x7ffffffffffff),a.vk.namespace="endcr",a.addCueRange(a.vk))}; NX=function(a,b,c,d){a.videoData.u=c;d&&PV(a,b,d);var e=(d=g.MX(a))?d.lc():"";d=a.Vb;c=new ODa(a.videoData,c,b,e);if(d.qoe){d=d.qoe;e=g.JS(d.i);g.uW(d,e,"vfs",[c.i.id,c.u,d.tb,c.reason]);d.tb=c.i.id;var f=d.i.Da.getPlayerSize();if(01E3*p);n&&(l=Math.min(l,m))}m=g.T(b.Y.experiments,"html5_random_playback_cap");p=/[a-h]$/; m&&p.test(c.videoData.clientPlaybackNonce)&&(l=Math.min(l,m));(m=g.T(b.Y.experiments,"html5_not_vp9_supported_quality_cap"))&&!ID('video/webm; codecs="vp9"')&&(l=Math.min(l,m));if(p=m=g.T(b.Y.experiments,"html5_hfr_quality_cap"))a:{p=c.i;if(p.i)for(p=g.r(p.videoInfos),n=p.next();!n.done;n=p.next())if(32l&&0!==l&&b.i===l)){1b.i&&"b"===b.reason;c=a.u.Xa&&!YD();d||e||b||c?SV(a.Da,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):g.Nq(a.V)}}}; OV=function(a){a.U("html5_update_constraint")?KX(a):JX(a)}; vGa=function(a){var b=uGa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.yc.getName()===b})}; uGa=function(a){var b;if(a=null===(b=a.ra)||void 0===b?void 0:b.audioTracks())for(var c=0;cn&&(n+=f.i);for(var p=0;pa.mediaSource.getDuration()&&a.mediaSource.Gj(c)):a.mediaSource.Gj(d);var e=a.Ya,f=a.mediaSource;e.ea&&(e.oa(),IV(e),e.ea=!1);e.oa();GCa(e);if(!f.i&&!f.u){var h=e.videoTrack.i.info.mimeType+e.policy.Wi,l=e.audioTrack.i.info.mimeType,m,n,p=null===(m=f.mediaSource)||void 0===m?void 0:m.addSourceBuffer(l), q="fakesb"===h.split(";")[0]?void 0:null===(n=f.mediaSource)||void 0===n?void 0:n.addSourceBuffer(h);f.He&&(f.He.webkitSourceAddId("0",l),f.He.webkitSourceAddId("1",h));var t=new XD(p,f.He,"0",wD(l),!1),u=new XD(q,f.He,"1",wD(h),!0);f.i=t;f.u=u;g.J(f,t);g.J(f,u)}ZU(e.videoTrack,f.u||null);ZU(e.audioTrack,f.i||null);e.mediaSource=f;e.resume();ky(f.i,e.Qa,e);ky(f.u,e.Qa,e);e.wh();a.Z("mediasourceattached")}}catch(x){g.zz(x),a.handleError(new g.UD("fmt.unplayable",!0,{msi:"1",ename:x.name}))}})}; yGa=function(a){a.Ya?g.mh(a.Ya.seek(a.getCurrentTime()-a.Qc()),function(){}):sGa(a)}; mW=function(a,b){b=void 0===b?!1:b;return g.H(a,function d(){var e=this;return g.B(d,function(f){if(1==f.i)return e.Ya&&e.Ya.isDisposed()&&HX(e),e.Z("newelementrequired"),b?g.z(f,EX(e),2):f.ib(2);g.U(e.playerState,8)&&e.playVideo();g.sa(f)})})}; Tza=function(a,b){a.Ca("newelem",b);mW(a)}; RX=function(a){a.Qb.B.u=(0,g.Q)();g.U(a.playerState,32)||(a.Sb(dK(a.playerState,32)),g.U(a.playerState,8)&&a.pauseVideo(!0),a.Z("beginseeking",a));a.Ob()}; US=function(a){g.U(a.playerState,32)?(a.Sb(fK(a.playerState,16,32)),a.Z("endseeking",a)):g.U(a.playerState,2)||a.Sb(dK(a.playerState,16));var b=a.Qb.B,c=a.videoData.clientPlaybackNonce;c&&!isNaN(b.i)&&(Math.random()a-.3)}; CGa=function(a){window.clearInterval(a.Pz);SX(a)||(a.Pz=pt(function(){return SX(a)},100))}; SX=function(a){var b=a.ra;b&&a.yz&&!a.videoData.ob&&!fB("vfp",a.Qb.timerName)&&2<=b.uh()&&!b.Ik()&&0b.u&&(b.u=c,b.delay.start()),b.B=c,b.D=c);g.Nq(a.cC);a.Z("playbackstarted");g.Nu()&&((a=g.Ga("yt.scheduler.instance.clearPriorityThreshold"))? a():Pu(0))}; DGa=function(a){var b=a.getCurrentTime(),c=a.videoData;!fB("pbs",a.Qb.timerName)&&JA.measure&&JA.getEntriesByName&&(JA.getEntriesByName("mark_nr")[0]?Pja("mark_nr"):Pja());c.videoId&&a.Qb.info("docid",c.videoId);c.eventId&&a.Qb.info("ei",c.eventId);c.clientPlaybackNonce&&a.Qb.info("cpn",c.clientPlaybackNonce);0a.pK+6283){if(!(!a.isAtLiveHead()||a.videoData.i&&kE(a.videoData.i))){var b=a.Vb;if(b.qoe){b=b.qoe;var c=b.i.Da.Fy(),d=g.JS(b.i);pEa(b,d,c);c=c.D;isNaN(c)||g.uW(b,d,"e2el",[c.toFixed(3)])}}g.GF(a.Y)&&a.Ca("rawlat","l."+VT(a.tF,"rawlivelatency").toFixed(3));a.pK=Date.now()}a.videoData.u&&CD(a.videoData.u)&&(b=kI(a))&&b.videoHeight!==a.LD&&(a.LD=b.videoHeight,NX(a,"a",tGa(a,a.videoData.bb)))}; tGa=function(a,b){if("auto"===b.i.video.quality&&CD(b.df())&&a.videoData.Db)for(var c=g.r(a.videoData.Db),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.LD&&"auto"!==d.i.video.quality)return d.df();return b.df()}; zX=function(a){if(!a.videoData.isLivePlayback)return NaN;var b=0;a.Ya&&a.videoData.i&&(b=MG(a.videoData)?a.Ya.Ha.pg()||0:a.videoData.i.xa);return Date.now()/1E3-a.getIngestionTime()-b}; FGa=function(a){!a.U("html5_ignore_airplay_events_on_new_video_killswitch")&&a.ra&&a.ra.hf()&&(a.Xy=(0,g.Q)());a.Y.rl?g.ot(function(){TX(a)},0):TX(a)}; TX=function(a){if(a.ra)try{a.Oz=a.ra.playVideo()}catch(c){IX(a,"err."+c)}if(a.Oz){var b=a.Oz;b.then(void 0,function(c){a.oa();if(!g.U(a.playerState,4)&&!g.U(a.playerState,256)&&a.Oz===b)if(c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))a.oa();else{var d="promise";c&&c.name&&(d+=";m."+c.name);IX(a,d);a.eI=!0;a.Y.U("embeds_enable_autoplayblocked_ping_fix")&&(a.videoData.RI=!0)}})}}; IX=function(a,b){g.U(a.playerState,128)||(a.Sb(fK(a.playerState,1028,9)),a.Ca("dompaused",b),a.Z("onDompaused"),a.Z("onAutoplayBlocked"))}; AX=function(a){if(!a.ra||!a.videoData.C)return!1;var b,c,d=null;(null===(c=a.videoData.C)||void 0===c?0:c.i)?(d=xGa(a),null===(b=a.Ya)||void 0===b?void 0:b.resume()):(HX(a),a.videoData.bb&&(d=a.videoData.bb.Jt()));b=d;d=a.ra.ix();c=!1;d&&null!==b&&b.i===d.i||(GGa(a,b),c=!0);g.U(a.playerState,2)||(b=a.Kc,b.D||!(0=c&&b<=a}; eHa=function(a){g.U(a.i.getPlayerState(),64)&&WX(a).isLivePlayback&&5E3>a.D.startTimeMs||a.i.seekTo(.001*a.D.startTimeMs,{Pd:"application_loopRangeStart"})}; TGa=function(a,b){var c=a.Wa.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}; qY=function(a,b,c){if(a.Md(c)){c=c.getVideoData();if(a.B)c=b;else{a=a.Hd;for(var d=g.r(a.i),e=d.next();!e.done;e=d.next())if(e=e.value,c.Cc===e.Cc){b+=e.Gc/1E3;break}d=b;a=g.r(a.i);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Cc===e.Cc)break;var f=e.Gc/1E3;if(fd?e=!0:1Math.random()}; PY=function(a){var b;(b=a.i)||(a=a.Pa.get(),b=a.I.W().experiments.Ga("html5_force_debug_data_for_client_tmp_logs")||a.I.W().experiments.Ga("html5_force_debug_data_for_client_tmp_logs_live_infra"));return b}; SY=function(a,b,c,d){g.I.call(this);this.Ld=b;this.dc=c;this.Pa=d;this.i=a(this,this,this,this,this);g.J(this,this.i);a=g.r(b);for(b=a.next();!b.done;b=a.next())g.J(this,b.value)}; TY=function(a,b){a.Ld.add(b);a.Pa.get().I.W().experiments.Ga("html5_not_register_disposables_when_core_listens")||g.J(a,b)}; kqa=function(a,b){NJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.r(a.Ld);for(var c=a.next();!c.done;c=a.next())c.value.Oh(b)}; lqa=function(a,b){NJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.r(a.Ld);for(var c=a.next();!c.done;c=a.next())c.value.tf(b)}; Ipa=function(a,b){NJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.r(a.Ld);for(var c=a.next();!c.done;c=a.next())c.value.uf(b)}; VY=function(a,b,c){S(c,b,void 0,void 0,c.Wo);UY(a,b,!0)}; IHa=function(a,b,c){if(WY(a.i,b))if(XY(a.i,b).C=c?"filled":"not_filled",null===c){YY(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.r(a.Ld);for(var d=c.next();!d.done;d=c.next())d.value.Lk(b);UY(a,b,!1)}else{YY(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);var e=g.r(a.Ld);for(d=e.next();!d.done;d=e.next())d.value.Mk(b);if(WY(a.i,b))if(XY(a.i,b).D)UY(a,b,!1);else{YY(a.dc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.i;if(!XY(f,b))throw new ZY("Unknown slotState for onLayout"); if(!f.Fd.Xl.get(b.sb))throw new ZY("No LayoutRenderingAdapterFactory registered for slot of type: "+b.sb);if(g.jb(c.xd)&&g.jb(c.Rc)&&g.jb(c.Pc)&&g.jb(c.Sc)&&g.jb(c.Yc))throw new ZY("Layout has no exit triggers.");$Y(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.xd);$Y(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Rc);$Y(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Pc);$Y(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Sc);$Y(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Yc)}catch(n){a.sf(b, c,n);UY(a,b,!0);return}XY(a.i,b).J=!0;try{var h=a.i,l=XY(h,b),m=h.Fd.Xl.get(b.sb).get().Ve(h.C,h.u,b,c);m.init();l.layout=c;if(l.B)throw new ZY("Already had LayoutRenderingAdapter registered for slot");l.B=m;aZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.xd);aZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Rc);aZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Pc);aZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Sc);aZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Yc)}catch(n){bZ(a, b,!0);UY(a,b,!0);a.sf(b,c,n);return}YY(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.r(a.Ld);for(d=e.next();!d.done;d=e.next())d.value.Aj(b,c);bZ(a,b,!1);HHa(a,b)}else cZ(a.Pa.get())&&S("slot is unscheduled after been fulfilled.",b,c)}}; dZ=function(a,b,c){YY(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.r(a.Ld);for(var d=a.next();!d.done;d=a.next())d.value.Aj(b,c)}; mqa=function(a,b,c){a=g.r(a.Ld);for(var d=a.next();!d.done;d=a.next())d.value.Bj(b,c)}; eZ=function(a,b,c){YY(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.r(a.Ld);for(var d=a.next();!d.done;d=a.next())d.value.Mc(b,c)}; MJ=function(a,b,c,d){YY(a.dc,CHa(d),b,c);a=g.r(a.Ld);for(var e=a.next();!e.done;e=a.next())e.value.Tc(b,c,d)}; bZ=function(a,b,c){WY(a.i,b)&&(XY(a.i,b).J=!1,c?a.Pa.get().I.W().experiments.Ga("html5_enable_deferred_triggers_on_error")?fZ(a,JHa(a.i,b)):cZ(a.Pa.get())&&S("Ignore deferred triggers due to error",b):fZ(a,JHa(a.i,b)))}; fZ=function(a,b){b.sort(function(f,h){function l(m){S("TriggerCategoryOrder enum does not contain trigger category: "+m)} return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):AHa(f.category,l)-AHa(h.category,l)}); var c=new Map;b=g.r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,WY(a.i,d.slot))if(XY(a.i,d.slot).J)XY(a.i,d.slot).N.push(d);else{KHa(a.dc,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.r(LHa);for(d=b.next();!d.done;d=b.next())e=g.r(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&MHa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&NHa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&OHa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&& PHa(a,c)}; MHa=function(a,b,c){b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&gZ(a.i,d.slot)&&QHa(a,d.slot,d.layout,c)}; NHa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())UY(a,c.value.slot,!1)}; OHa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(XY(a.i,c.slot).C){case "not_filled":var d=!0;break a;default:d=!1}d&&(NJ(a.dc,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.i.Uu(c.slot))}}; PHa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;NJ(a.dc,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.r(a.Ld),e=d.next();!e.done;e=d.next())e.value.Dj(c.slot);try{var f=a.i,h=c.slot,l=XY(f,h);if(!l)throw new hZ("Got enter request for unknown slot");if(!l.u)throw new hZ("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.i)throw new hZ("Tried to enter a slot from stage: "+l.i);if(iZ(l))throw new hZ("Got enter request for already active slot"); for(var m=g.r(jZ(f,h.sb+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&iZ(p))throw new hZ("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.i});}}catch(q){S(q,c.slot,kZ(a.i,c.slot),void 0,q.Wo);UY(a,c.slot,!0);continue}c=XY(a.i,c.slot);"scheduled"!==c.i&&lZ(c.slot,c.i,"enterSlot");c.i="enter_requested";c.u.Xx()}}; HHa=function(a,b){var c;WY(a.i,b)&&iZ(XY(a.i,b))&&kZ(a.i,b)&&!gZ(a.i,b)&&(YY(a.dc,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=kZ(a.i,b))&&void 0!==c?c:void 0),a=XY(a.i,b),"entered"!==a.i&&lZ(a.slot,a.i,"enterLayoutForSlot"),a.i="rendering",a.B.startRendering(a.layout))}; QHa=function(a,b,c,d){if(WY(a.i,b)){var e=a.dc,f;var h=(null===(f=BHa.get(d))||void 0===f?void 0:f.Ms)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";YY(e,h,b,c);a=XY(a.i,b);"rendering"!==a.i&&lZ(a.slot,a.i,"exitLayout");a.i="rendering_stop_requested";a.B.Ye(c,d)}}; UY=function(a,b,c){if(WY(a.i,b)){a:switch(XY(a.i,b).i){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(XY(a.i,b).i){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(XY(a.i,b).D=!0,!c))return;if(iZ(XY(a.i,b)))XY(a.i,b).D=!0,RHa(a,b,c);else{a:switch(XY(a.i,b).C){case "fill_requested":c=!0;break a;default:c=!1}if(c)XY(a.i,b).D=!0,WY(a.i,b)&&(NJ(a.dc,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=XY(a.i,b),b.C="fill_cancel_requested",b.K.kC());else{c= kZ(a.i,b);NJ(a.dc,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=XY(a.i,b);var e=b.Zb,f=d.xa.get(e.triggerId);f&&(f.Ri(e),d.xa.delete(e.triggerId));e=g.r(b.Bc);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d.ea.get(f.triggerId);h&&(h.Ri(f),d.ea.delete(f.triggerId))}e=g.r(b.Ac);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.V.get(f.triggerId))h.Ri(f),d.V.delete(f.triggerId);null!=d.layout&&(e=d.layout,mZ(d,e.xd),mZ(d,e.Rc),mZ(d,e.Pc),mZ(d,e.Sc),mZ(d,e.Yc));d.K=void 0;null!=d.u&&(d.u.release(), d.u=void 0);null!=d.B&&(d.B.release(),d.B=void 0);d=a.i;XY(d,b)&&(d=jZ(d,b.sb+"_"+b.slotPhysicalPosition))&&d.delete(b.slotId);NJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.r(a.Ld);for(d=a.next();!d.done;d=a.next())d=d.value,d.Ej(b),c&&d.Bj(b,c)}}}}; RHa=function(a,b,c){if(WY(a.i,b)&&iZ(XY(a.i,b))){var d=kZ(a.i,b);if(d&&gZ(a.i,b))QHa(a,b,d,c?"error":"abandoned");else{NJ(a.dc,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=XY(a.i,b);if(!e)throw new hZ("Cannot exit slot it is unregistered");"enter_requested"!==e.i&&"entered"!==e.i&&"rendering"!==e.i&&lZ(e.slot,e.i,"exitSlot");e.i="exit_requested";if(void 0===e.u)throw e.i="scheduled",new hZ("Cannot exit slot because adapter is not defined");e.u.Yx()}catch(f){S(f,b,void 0,void 0,f.Wo)}}}}; SHa=function(a){this.slot=a;this.xa=new Map;this.ea=new Map;this.V=new Map;this.ma=new Map;this.B=this.layout=this.u=this.K=void 0;this.J=this.D=!1;this.N=[];this.i="not_scheduled";this.C="not_filled"}; iZ=function(a){return"enter_requested"===a.i||a.isActive()}; ZY=function(a,b,c){c=void 0===c?!1:c;Ta.call(this,a);this.Wo=c;this.args=[];b&&this.args.push(b)}; hZ=function(a,b,c){c=void 0===c?!1:c;Ta.call(this,a);this.Wo=c;this.args=[];b&&this.args.push(b)}; nZ=function(a,b,c,d,e,f){g.I.call(this);this.Fd=a;this.B=b;this.D=c;this.C=d;this.u=e;this.Pa=f;this.i=new Map}; jZ=function(a,b){return(a=a.i.get(b))?a:new Map}; XY=function(a,b){return jZ(a,b.sb+"_"+b.slotPhysicalPosition).get(b.slotId)}; THa=function(a){var b=[];a.i.forEach(function(c){c=g.r(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)}); return b}; WY=function(a,b){return null!=XY(a,b)}; JHa=function(a,b){a=XY(a,b);b=[].concat(g.v(a.N));kb(a.N);return b}; gZ=function(a,b){a=XY(a,b);if(b=null!=a.layout)a:switch(a.i){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b}; kZ=function(a,b){if(!oZ(a.Pa.get()))return b=XY(a,b),null!=b.layout?b.layout:null;(a=XY(a,b))?null!=a.layout&&!a.layout&&S("Unexpected empty layout",b):S("Unexpected undefined slotState",b);return(null===a||void 0===a?void 0:a.layout)||null}; pZ=function(a,b,c){if(g.jb(c))throw new hZ("No "+UHa.get(b)+" triggers found for slot.");c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Fd.Th.get(d.triggerType))throw new hZ("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);}; $Y=function(a,b,c){c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Fd.Th.get(d.triggerType))throw new ZY("No trigger adapter registered for "+UHa.get(b)+" trigger of type: "+d.triggerType);}; aZ=function(a,b,c,d){d=g.r(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Fd.Th.get(e.triggerType);f.Hi(c,e,b.slot,b.layout?b.layout:null);b.ma.set(e.triggerId,f)}}; mZ=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.ma.get(c.triggerId);d&&(d.Ri(c),a.ma.delete(c.triggerId))}}; lZ=function(a,b,c){S("Slot stage was "+b+" when calling method "+c,a)}; VHa=function(a){return qZ(a.eq).concat(qZ(a.Th)).concat(qZ(a.Jl)).concat(qZ(a.ym)).concat(qZ(a.Xl))}; qZ=function(a){var b=[];a=g.r(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.nj&&b.push(c);return b}; rZ=function(a){g.I.call(this);this.i=a;this.u=WHa(this)}; WHa=function(a){var b=new SY(function(c,d,e,f){return new nZ(a.i.Fd,c,d,e,f,a.i.Pa)},new Set(VHa(a.i.Fd).concat(a.i.listeners)),a.i.dc,a.i.Pa); g.J(a,b);return b}; sZ=function(a){g.I.call(this);var b=this;this.u=a;this.i=null;g.wf(this,function(){g.uf(b.i);b.i=null})}; Y=function(a){return new sZ(a)}; XHa=function(a){var b,c=null===(b=a.config)||void 0===b?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)}; YHa=function(a){return null!=a.linearAd&&null!=a.adVideoStart}; aIa=function(a,b,c,d,e,f,h){b=ZHa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof hZ?b:$Ha(a,d,e,b,c);return a instanceof hZ?a:[a]}; bIa=function(a){var b,c;return void 0!==(null===(c=null===(b=a.renderer)||void 0===b?void 0:b.adBreakServiceRenderer)||void 0===c?void 0:c.getAdBreakUrl)}; fIa=function(a,b,c,d,e){b=g.r(b);for(var f=b.next();!f.done;f=b.next())f=f.value,tZ(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return cIa(n)}); a=[];b={};f=g.r(f);for(var h=f.next();!h.done;b={Jq:b.Jq},h=f.next()){b.Jq=h.value;h={};for(var l=g.r(b.Jq.VB),m=l.next();!m.done;h={Dm:h.Dm},m=l.next())h.Dm=m.value,m=function(n,p){return function(q){return n.Dm.II(q,p.Jq.instreamVideoAdRenderer.elementId,n.Dm.VH)}}(h,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===h.Dm.lr?a.push(dIa(c,d,h.Dm.WH,e,b.Jq.instreamVideoAdRenderer.elementId,h.Dm.adSlotLoggingData,m)):a.push(eIa(c,d,e,b.Jq.instreamVideoAdRenderer.elementId,h.Dm.adSlotLoggingData,m))}return a}; tZ=function(a,b,c){if(b=gIa(b)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=hIa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.Py=c)}else S("InstreamVideoAdRenderer without externalVideoId")}}; gIa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&a.sandwichedLinearAdRenderer.linearAd.instreamVideoAdRenderer;if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.r(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,c.instreamVideoAdRenderer&&b.push(c.instreamVideoAdRenderer);return b}return null}; cIa=function(a){if(void 0===a.instreamVideoAdRenderer)return S("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.r(a.VB),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.II)return!1;if(void 0===c.VH)return S("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.Py||void 0===c.lr||a.Py!==c.lr&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.lr)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return S("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:a.Py,"matching APSR kind":c.lr}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.lr&&void 0===c.WH)return S("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0}; hIa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,Py:void 0,adVideoId:b,VB:[]});return a.get(b)}; uZ=function(a,b,c,d,e,f,h){d?hIa(a,d).VB.push({WH:b,lr:c,VH:e,adSlotLoggingData:f,II:h}):S("Companion AdPlacementSupportedRenderer without adVideoId")}; vZ=function(a){var b,c=0;a=g.r(a.questions);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d=d.instreamSurveyAdMultiSelectQuestionRenderer||d.instreamSurveyAdSingleSelectQuestionRenderer)c+=(null===(b=d.surveyAdQuestionCommon)||void 0===b?void 0:b.durationMilliseconds)||0;return c}; wZ=function(a){var b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,A,E,G,F,K,V,L=(null===(c=null===(b=a.questions)||void 0===b?void 0:b[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===c?void 0:c.surveyAdQuestionCommon)||(null===(e=null===(d=a.questions)||void 0===d?void 0:d[0].instreamSurveyAdSingleSelectQuestionRenderer)||void 0===e?void 0:e.surveyAdQuestionCommon),da=[].concat(g.v((null===(f=a.playbackCommands)||void 0===f?void 0:f.instreamAdCompleteCommands)||[]),g.v((null===L||void 0===L?void 0:L.timeoutCommands)|| []));return{impressionCommands:null===(h=a.playbackCommands)||void 0===h?void 0:h.impressionCommands,errorCommands:null===(l=a.playbackCommands)||void 0===l?void 0:l.errorCommands,muteCommands:null===(m=a.playbackCommands)||void 0===m?void 0:m.muteCommands,unmuteCommands:null===(n=a.playbackCommands)||void 0===n?void 0:n.unmuteCommands,pauseCommands:null===(p=a.playbackCommands)||void 0===p?void 0:p.pauseCommands,rewindCommands:null===(q=a.playbackCommands)||void 0===q?void 0:q.rewindCommands,resumeCommands:null=== (t=a.playbackCommands)||void 0===t?void 0:t.resumeCommands,skipCommands:null===(u=a.playbackCommands)||void 0===u?void 0:u.skipCommands,progressCommands:null===(x=a.playbackCommands)||void 0===x?void 0:x.progressCommands,F$:null===(y=a.playbackCommands)||void 0===y?void 0:y.clickthroughCommands,fullscreenCommands:null===(A=a.playbackCommands)||void 0===A?void 0:A.fullscreenCommands,activeViewViewableCommands:null===(E=a.playbackCommands)||void 0===E?void 0:E.activeViewViewableCommands,activeViewMeasurableCommands:null=== (G=a.playbackCommands)||void 0===G?void 0:G.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null===(F=a.playbackCommands)||void 0===F?void 0:F.activeViewFullyViewableAudibleHalfDurationCommands,endFullscreenCommands:null===(K=a.playbackCommands)||void 0===K?void 0:K.endFullscreenCommands,abandonCommands:null===(V=a.playbackCommands)||void 0===V?void 0:V.abandonCommands,completeCommands:da}}; jIa=function(a,b,c,d,e,f,h){return function(l,m){return iIa(a,m.slotId,l,f,function(n,p){n=h(n);return xZ(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new UI(c),d],c.adLayoutLoggingData)})}}; mIa=function(a,b,c,d,e,f,h){if(!kIa(a))return new hZ("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[lIa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=yZ(e.u.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",kb:"core"},q=new zZ(e.i,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",tc:new Map,xd:[q],Rc:[], Pc:[],Sc:[],Yc:[],kb:"core",Ka:new LY([new VI(l)]),Ec:n(p)}})]}; kIa=function(a){a=((null===a||void 0===a?void 0:a.additionalPlayerOverlay)||{}).slidingTextPlayerOverlayRenderer;if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1}; pIa=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]}; if(!Xpa(a))return function(){return new hZ("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})}; var h=a.playerOverlay.instreamSurveyAdRenderer,l=vZ(h);return 0>=l?function(){return new hZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=nIa(m,c,d,function(q){var t=n(q),u=q.slotId; q=wZ(h);u=yZ(e.u.get(),"LAYOUT_TYPE_SURVEY",u);var x={layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",kb:"core"},y=new zZ(e.i,d),A=new AZ(e.i,u),E=new BZ(e.i,u),G=new oIa(e.i);return{layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",tc:new Map,xd:[y,G],Rc:[A],Pc:[],Sc:[E],Yc:[],kb:"core",Ka:new LY([new TI(h),new LI(b),new sJ(l/1E3),new vJ(q)]),Ec:t(x),adLayoutLoggingData:h.adLayoutLoggingData}}); m=mIa(a,c,p.slotId,d,e,m,n);return m instanceof hZ?m:[p].concat(g.v(m))}}; xIa=function(a,b,c,d,e){var f=[];try{var h=[];if(c.renderer.linearAdSequenceRenderer)var l=function(u){u=qIa(u.slotId,c,b,e(u),d);h=u.IW;return u.DQ}; else if(c.renderer.instreamVideoAdRenderer)l=function(u){var x=u.slotId;u=e(u);var y,A=c.config.adPlacementConfig,E=rIa(A),G=E.XI;E=E.aJ;var F=c.renderer.instreamVideoAdRenderer;if(null===(y=null===F||void 0===F?void 0:F.playerOverlay)||void 0===y?0:y.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var K=sIa(F);y=Math.min(G+1E3*K.videoLengthSeconds,E);E=new KH(0,[K.videoLengthSeconds],y);var V=K.videoLengthSeconds,L=K.playerVars,da=K.instreamAdPlayerOverlayRenderer, ta=K.adVideoId,lb=tIa(c);K=new Map([].concat(g.v(K.tc),g.v(kpa(c))));var Pb=null===F||void 0===F?void 0:F.adLayoutLoggingData;F=null===F||void 0===F?void 0:F.sodarExtensionData;x=yZ(b.u.get(),"LAYOUT_TYPE_MEDIA",x);var pb={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",kb:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",tc:K,xd:[new CZ(b.i)],Rc:[],Pc:[],Sc:[],Yc:[],kb:"core",Ka:new LY([new PI(d),new eJ(V),new fJ(L),new hJ(G),new iJ(y),da&&new QI(da),new LI(A),new NI(ta),new MI(E),new nJ(lb),F&& new gJ(F),new aJ({current:null})].filter(uIa)),Ec:u(pb),adLayoutLoggingData:Pb}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var m=vIa(a,d,l);f.push(m);for(var n=g.r(h),p=n.next();!p.done;p=n.next()){var q=p.value,t=q(a,e);if(t instanceof hZ)return t;f.push.apply(f,g.v(t))}}catch(u){return new hZ(u,{errorMessage:u.message,AdPlacementRenderer:c,numberOfSurveyRenderers:wIa(c)})}return f}; wIa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!==a&&void 0!==a&&a.length?a.filter(function(b){var c,d;return null!=(null===(d=null===(c=b.instreamVideoAdRenderer)||void 0===c?void 0:c.playerOverlay)||void 0===d?void 0:d.instreamSurveyAdRenderer)}).length:0}; qIa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,h=rIa(f),l=h.XI,m=h.aJ;h=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null===h||void 0===h||!h.length)throw new TypeError("Expected linear ads");var n=[],p={RM:l,SM:0,FW:n};h=h.map(function(t){return yIa(a,t,p,c,d,f,e,m)}).map(function(t,u){u=new KH(u,n,m); return t(u)}); var q=h.map(function(t){return t.EQ}); return{DQ:zIa(c,a,l,q,f,kpa(b),tIa(b),d,m),IW:h.map(function(t){return t.HW})}}; yIa=function(a,b,c,d,e,f,h,l){var m,n,p=sIa(b.instreamVideoAdRenderer),q=c.RM,t=c.SM,u=Math.min(q+1E3*p.videoLengthSeconds,l);c.RM=u;c.SM++;c.FW.push(p.videoLengthSeconds);var x=null===(n=null===(m=b.instreamVideoAdRenderer)||void 0===m?void 0:m.playerOverlay)||void 0===n?void 0:n.instreamSurveyAdRenderer;if("nPpU29QrbiU"===p.adVideoId&&null==x)throw new TypeError("Survey slate media has no survey overlay");return function(y){var A,E,G=p.playerVars;2<=y.u&&(G.slot_pos=y.i);G.autoplay="1";G=p.videoLengthSeconds; var F=p.playerVars,K=p.tc,V=p.instreamAdPlayerOverlayRenderer,L=p.adVideoId,da=null===(A=b.instreamVideoAdRenderer)||void 0===A?void 0:A.adLayoutLoggingData,ta=null===(E=b.instreamVideoAdRenderer)||void 0===E?void 0:E.sodarExtensionData,lb=yZ(d.u.get(),"LAYOUT_TYPE_MEDIA",a),Pb={layoutId:lb,layoutType:"LAYOUT_TYPE_MEDIA",kb:"adapter"};y={layoutId:lb,layoutType:"LAYOUT_TYPE_MEDIA",tc:K,xd:[],Rc:[],Pc:[],Sc:[],Yc:[],kb:"adapter",Ka:new LY([new PI(h),new eJ(G),new fJ(F),new hJ(q),new iJ(u),new jJ(t), new aJ({current:null}),V&&new QI(V),new LI(f),new NI(L),new MI(y),ta&&new gJ(ta),x&&new yJ(x)].filter(uIa)),Ec:e(Pb),adLayoutLoggingData:da};G=pIa(b.instreamVideoAdRenderer,f,h,y.layoutId,d);return{EQ:y,HW:G}}}; sIa=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=g.Es(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,tc:a.pings?LH(a.pings):new Map}}; tIa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a}; rIa=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{XI:b,aJ:a}}; BIa=function(a,b,c,d,e,f,h,l){a=AIa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=yZ(b.u.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",kb:"core"},q=new Map,t=e.impressionUrls;t&&q.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",tc:q,xd:[new DZ(b.i,n)],Rc:[],Pc:[],Sc:[],Yc:[],kb:"core",Ka:new LY([new mJ(e),new LI(c)]),Ec:m(p)}}); return a instanceof hZ?a:[a]}; DIa=function(a,b,c,d,e,f,h,l){a=CIa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=yZ(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=EZ(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,FZ(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=yZ(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=EZ(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,FZ(b,n,p))):q.imageOverlayAdContentRenderer?(q=yZ(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", p),n=FZ(b,n,p),n.push(new GZ(b.i,q)),n=EZ(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new ZY("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new ZY("InvideoOverlayAdRenderer without contentSupportedRenderer");return n}); return a instanceof hZ?a:[a]}; GIa=function(a,b,c,d,e,f,h){var l=Number(d.durationMilliseconds);return isNaN(l)?new hZ("Expected valid duration for AdActionInterstitialRenderer."):function(m){return EIa(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,h(m),function(n){return FIa(a,n,e,function(p,q){var t=p.slotId;p=h(p);t=yZ(b.u.get(),"LAYOUT_TYPE_ENDCAP",t);return xZ(b, t,q,c,p,"LAYOUT_TYPE_ENDCAP",[new RI(d)],d.adLayoutLoggingData)})},d.adLayoutLoggingData,f)}}; HIa=function(a,b,c,d){if(!c.playerVars)return new hZ("No playerVars available in AdIntroRenderer.");var e=g.Es(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=yZ(a.u.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",kb:"adapter"};return{zq:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",tc:new Map,xd:[],Rc:[],Pc:[],Sc:[],Yc:[],kb:"adapter",Ka:new LY([new lJ({}),new LI(b),new aJ({current:null}),new fJ(e)]),Ec:f(l)},yr:[new HZ(a.i,h)],jp:[],Px:[],Ox:[]}}}; JIa=function(a,b,c,d,e,f,h,l){var m=vZ(e);if(!zJ(e))return new hZ("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=m)return new hZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var n=jIa(a,b,e,f,c,d,h);return n instanceof hZ?n:function(p){return IIa(b,p.slotId,c,m,wZ(e),h(p),n,l)}}; KIa=function(a,b,c,d,e,f,h){function l(p){return FIa(a,p,d,m)} function m(p,q){var t=p.slotId;p=h(p);t=yZ(b.u.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return xZ(b,t,q,c,p,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new SI(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 hZ("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= h(p);p=IZ(b,p.slotId,c,n,q,new Map,t,l);q=new XI(p.GE);return{zq:{layoutId:p.layoutId,layoutType:p.layoutType,tc:p.tc,xd:[],Rc:[],Pc:[],Sc:[],Yc:[],kb:p.kb,Ka:new LY([].concat(g.v(p.Eu),[q])),Ec:p.Ec,adLayoutLoggingData:p.adLayoutLoggingData},yr:[],jp:p.Pc,Px:p.Sc,Ox:p.Yc,kh:p.kh}}}; OIa=function(a,b,c,d,e,f,h,l,m,n,p){function q(u){var x=new KH(0,[t.zx]),y=LIa(t.playerVars,t.mM,l,p,x);u=m(u);var A=n.get(t.HA.externalVideoId);x=MIa(b,"core",t.HA,c,y,t.zx,f,x,u,A);return{layout:{layoutId:x.layoutId,layoutType:x.layoutType,tc:x.tc,xd:x.xd,Rc:x.Rc,Pc:x.Pc,Sc:x.Sc,Yc:x.Yc,kb:x.kb,Ka:x.Ka,Ec:x.Ec,adLayoutLoggingData:x.adLayoutLoggingData},hm:[]}} var t=JZ(e);if(t instanceof ZY)return new hZ(t);if(q instanceof hZ)return q;a=NIa(a,c,f,h,d,l.Sf,q);return a instanceof hZ?a:a.hm.concat(a.KE)}; JZ=function(a){if(!a.playerVars)return new ZY("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?void 0:b.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new ZY("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=g.Es(a.playerVars);var c=Number(b.length_seconds);return isNaN(c)?new ZY("Expected valid length seconds in player vars"): {HA:a,playerVars:b,mM:a.playerVars,zx:c}}; LIa=function(a,b,c,d,e){a.iv_load_policy=d;b=g.Es(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){S(f)}c.Ag&&(a.ctrl=c.Ag);c.Df&&(a.ytr=c.Df);c.Dl&&(a.ytrcc=c.Dl);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Vh&&(a.vss_credentials_token_type=c.Vh),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.i);a.autoplay="1";return a}; RIa=function(a,b,c,d,e,f,h,l,m,n,p){b=PIa(a,b,c,e,f,l,m,n,p);a:{e=g.r(e);for(m=e.next();!m.done;m=e.next())if(m.value.instreamSurveyAdRenderer){e=!0;break a}e=!1}e?(c=QIa(a,c,f,h),c instanceof hZ?d=c:(f=KZ(a.u.get(),"SLOT_TYPE_IN_PLAYER"),h=yZ(a.u.get(),"LAYOUT_TYPE_SURVEY",f),c.Ac.push(new LZ(a.i,h)),a=b({slotId:c.slotId,sb:c.sb,slotPhysicalPosition:c.slotPhysicalPosition,kb:c.kb,Zb:c.Zb,Bc:c.Bc,Ac:c.Ac},{slotId:f,layoutId:h}),d=a instanceof hZ?a:{KE:{slotId:c.slotId,sb:c.sb,slotPhysicalPosition:c.slotPhysicalPosition, Zb:c.Zb,Bc:c.Bc,Ac:c.Ac,kb:c.kb,Ka:new LY([new oJ(a.layout)]),adSlotLoggingData:d},hm:a.hm})):d=NIa(a,c,f,h,d,l.Sf,b);return d instanceof hZ?d:d.hm.concat(d.KE)}; PIa=function(a,b,c,d,e,f,h,l,m){return function(n,p){a:{b:{var q=[];for(var t=g.r(d),u=t.next();!u.done;u=t.next())if(u=u.value,u.instreamVideoAdRenderer){u=JZ(u.instreamVideoAdRenderer);if(u instanceof ZY){q=new hZ(u);break b}q.push(u.zx)}}if(q instanceof hZ)p=q;else{t=0;u=[];for(var x=[],y=[],A=[],E=[],G=[],F=new bJ({current:null}),K=[],V=g.r(d),L=V.next();!L.done;L=V.next())if(L=L.value,L.adIntroRenderer){L=HIa(b,c,L.adIntroRenderer,h);if(L instanceof hZ){p=L;break a}L=L(n);u.push(L.zq);x=[].concat(g.v(L.yr), g.v(x));y=[].concat(g.v(L.jp),g.v(y));L.kh&&(K=[L.kh].concat(g.v(K)))}else if(L.instreamVideoAdRenderer){var da=JZ(L.instreamVideoAdRenderer);if(da instanceof ZY){p=new hZ(da);break a}var ta=new KH(t,q);L=b;var lb=da.HA,Pb=LIa(da.playerVars,da.mM,f,m,ta),pb=h(n),ac=l.get(da.HA.externalVideoId);da=MIa(L,"adapter",lb,c,Pb,da.zx,e,ta,pb,ac);ta=da.Rc;lb.isCritical&&(ta=[new HZ(L.i,da.layoutId)].concat(g.v(ta)));L={layoutId:da.layoutId,layoutType:da.layoutType,tc:da.tc,xd:[],Rc:[],Pc:[],Sc:[],Yc:[],kb:da.kb, Ka:da.Ka,Ec:da.Ec,adLayoutLoggingData:da.adLayoutLoggingData};lb=ta;da=da.Pc;t++;u.push(L);x=[].concat(g.v(lb),g.v(x));y=[].concat(g.v(da),g.v(y))}else if(L.adActionInterstitialRenderer){L=GIa(a,b,c,L.adActionInterstitialRenderer,e,t,h);if(L instanceof hZ){p=L;break a}L=L(n);u.push(L.zq);x=[].concat(g.v(L.yr),g.v(x));y=[].concat(g.v(L.jp),g.v(y));L.kh&&(K=[L.kh].concat(g.v(K)))}else if(L.instreamSurveyAdRenderer){if(void 0===p){p=new hZ("Composite Survey must already have a Survey Bundle with required metadata.", {instreamSurveyAdRenderer:L.instreamSurveyAdRenderer});break a}L=JIa(a,b,c,e,L.instreamSurveyAdRenderer,F,h,p);if(L instanceof hZ){p=L;break a}L=L(n);u.push(L.zq);L.kh&&K.push(L.kh);x=[].concat(g.v(L.yr),g.v(x));y=[].concat(g.v(L.jp),g.v(y));A=[].concat(g.v(L.Px),g.v(A));E=[].concat(g.v(L.Ox),g.v(E));G=[F].concat(g.v(G))}else if(L.surveyTextInterstitialRenderer){L=KIa(a,b,c,e,L.surveyTextInterstitialRenderer,F,h);if(L instanceof hZ){p=L;break a}L=L(n);u.push(L.zq);L.kh&&K.push(L.kh);y=[].concat(g.v(L.jp), g.v(y))}else{p=new hZ("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={GW:u,Rc:x,Sc:A,Yc:E,Pc:y,Eu:G,hm:K}}}p instanceof hZ?n=p:(A=n.slotId,q=p.GW,t=p.Rc,u=p.Pc,x=p.Sc,y=p.Eu,n=h(n),A=yZ(b.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",A),E={layoutId:A,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",kb:"core"},n={layout:{layoutId:A,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",tc:new Map,xd:[new DZ(b.i,A)],Rc:t,Pc:u,Sc:x,Yc:[],kb:"core",Ka:new LY([new cJ(q)].concat(g.v(y))),Ec:n(E)}, hm:p.hm});return n}}; TIa=function(a,b,c,d,e,f,h){if(!zJ(c))return new hZ("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=vZ(c);if(0>=l)return new hZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new bJ({current:null}),n=jIa(a,b,c,m,d,f,h);return SIa(a,d,f,l,e,function(p,q){var t=p.slotId,u=wZ(c);p=h(p);t=yZ(b.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",kb:"core"},y=n(t,q); X(y.Ka,"metadata_type_fulfilled_layout")||S("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new LI(d),new tJ(l),new vJ(u),new wJ(!0),m,new YI("LAYOUT_TYPE_SURVEY")];return{iS:{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",tc:new Map,xd:[new DZ(b.i,t)],Rc:[new AZ(b.i,q.layoutId)],Pc:[],Sc:[new BZ(b.i,q.layoutId)],Yc:[],kb:"core",Ka:new LY(u),Ec:p(x)},KR:y}})}; MZ=function(a,b,c,d,e,f,h){this.u=a;this.i=b;this.Pa=c;this.B=d;this.D=e;this.C=f;this.loadPolicy=void 0===h?1:h}; jA=function(a,b,c,d,e,f,h){var l,m,n,p,q,t,u,x,y,A,E,G=[];if(0===b.length)return G;b=b.filter(XHa);for(var F=new Map,K=new Map,V=g.r(b),L=V.next();!L.done;L=V.next())(L=L.value.renderer.remoteSlotsRenderer)&&L.hostElementId&&K.set(L.hostElementId,L);V=g.r(b);for(L=V.next();!L.done;L=V.next()){L=L.value;var da=UIa(a,F,L,d,e,f,h,K);da instanceof hZ?S(da,void 0,void 0,{renderer:L.renderer,config:L.config.adPlacementConfig,kind:L.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):G.push.apply(G, g.v(da))}if(null===a.D||f)return a=h.Sf&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null===(m=null===(l=b[0].config)||void 0===l?void 0:l.adPlacementConfig)||void 0===m?void 0:m.kind)&&(null===(n=b[0].renderer)||void 0===n?void 0:n.adBreakServiceRenderer),G.length||a||S("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(t=null===(q=null===(p=b[0])||void 0===p?void 0:p.config)||void 0=== q?void 0:q.adPlacementConfig)||void 0===t?void 0:t.kind,renderer:null===(u=b[0])||void 0===u?void 0:u.renderer}),G;c=c.filter(XHa);G.push.apply(G,g.v(fIa(F,c,a.u.get(),a.D,d,a.Pa.get())));G.length||S("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(A=null===(y=null===(x=b[0])||void 0===x?void 0:x.config)||void 0===y?void 0:y.adPlacementConfig)||void 0===A?void 0:A.kind,renderer:null===(E=b[0])|| void 0===E?void 0:E.renderer});return G}; UIa=function(a,b,c,d,e,f,h,l){function m(u){return QY(a.B.get(),u)} var n=c.renderer,p=c.config.adPlacementConfig,q=p.kind,t=c.adSlotLoggingData;if(null!=n.actionCompanionAdRenderer)uZ(b,c.elementId,q,n.actionCompanionAdRenderer.adVideoId,p,t,function(u,x,y){var A=a.i.get(),E=n.actionCompanionAdRenderer,G=QY(a.B.get(),u);return NZ(A,u.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new DI(E),x,y,E.impressionPings,G,n.actionCompanionAdRenderer.adLayoutLoggingData)}); else if(n.imageCompanionAdRenderer)uZ(b,c.elementId,q,n.imageCompanionAdRenderer.adVideoId,p,t,function(u,x,y){var A=a.i.get(),E=n.imageCompanionAdRenderer,G=QY(a.B.get(),u);return NZ(A,u.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new HI(E),x,y,E.impressionPings,G,n.imageCompanionAdRenderer.adLayoutLoggingData)}); else if(n.shoppingCompanionCarouselRenderer)uZ(b,c.elementId,q,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(u,x,y){var A=a.i.get(),E=n.shoppingCompanionCarouselRenderer,G=QY(a.B.get(),u);return NZ(A,u.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new II(E),x,y,E.impressionPings,G,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)}); else{if(n.adBreakServiceRenderer){if(!bIa(c))return[];if((f||h.Sf&&OZ(a.Pa.get()))&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===p.kind){if(!a.C)return new hZ("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");VIa(a.C,{adPlacementRenderer:c,contentCpn:d,DI:e});return[]}return aIa(a.u.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f)}if(n.clientForecastingAdRenderer)return BIa(a.u.get(),a.i.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return DIa(a.u.get(), a.i.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if((n.linearAdSequenceRenderer||n.instreamVideoAdRenderer)&&f)return xIa(a.u.get(),a.i.get(),c,d,m);if(n.linearAdSequenceRenderer&&!f)return tZ(b,n,q),null!=n.linearAdSequenceRenderer.linearAds?RIa(a.u.get(),a.i.get(),p,t,n.linearAdSequenceRenderer.linearAds,d,e,h,m,l,a.loadPolicy):new hZ("Received invalid LinearAdSequenceRenderer.");if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!f)return tZ(b,n,q),OIa(a.u.get(),a.i.get(),p,t,n.instreamVideoAdRenderer, d,e,h,m,l,a.loadPolicy);if(n.instreamSurveyAdRenderer)return TIa(a.u.get(),a.i.get(),n.instreamSurveyAdRenderer,p,t,d,m);if(null!=n.sandwichedLinearAdRenderer)return YHa(n.sandwichedLinearAdRenderer)?RIa(a.u.get(),a.i.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart,n.sandwichedLinearAdRenderer.linearAd],d,e,h,m,l,a.loadPolicy):new hZ("Received invalid SandwichedLinearAdRenderer.")}}return[]}; PZ=function(a){g.I.call(this);this.i=a}; gA=function(a,b,c,d){a.i().Di(b,d);c=c();a=a.i();QZ(a.dc,"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;NJ(d.dc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.i;if(g.xc(c.slotId))throw new hZ("Slot ID was empty");if(XY(e,c))throw new hZ("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Zb.triggerType});if(!e.Fd.Jl.has(c.sb))throw new hZ("No fulfillment adapter factory registered for slot of type: "+ c.sb);if(!e.Fd.ym.has(c.sb))throw new hZ("No SlotAdapterFactory registered for slot of type: "+c.sb);pZ(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Zb?[c.Zb]:[]);pZ(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.Bc);pZ(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.Ac);var f=d.i,h=c.sb+"_"+c.slotPhysicalPosition,l=jZ(f,h);if(XY(f,c))throw new hZ("Duplicate slots not supported");l.set(c.slotId,new SHa(c));f.i.set(h,l)}catch(ta){S(ta,c,void 0,void 0,ta.Wo);break a}XY(d.i,c).J=!0;try{var m=d.i,n=XY(m,c),p=c.Zb,q=m.Fd.Th.get(p.triggerType); q&&(q.Hi("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.xa.set(p.triggerId,q));for(var t=g.r(c.Bc),u=t.next();!u.done;u=t.next()){var x=u.value,y=m.Fd.Th.get(x.triggerType);y&&(y.Hi("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.ea.set(x.triggerId,y))}for(var A=g.r(c.Ac),E=A.next();!E.done;E=A.next()){var G=E.value,F=m.Fd.Th.get(G.triggerType);F&&(F.Hi("TRIGGER_CATEGORY_SLOT_EXPIRATION",G,c,null),n.V.set(G.triggerId,F))}var K=m.Fd.Jl.get(c.sb).get().Ve(m.B,c);n.K=K;var V=m.Fd.ym.get(c.sb).get().Ve(m.D, c);V.init();n.u=V}catch(ta){S(ta,c,void 0,void 0,ta.Wo);UY(d,c,!0);break a}NJ(d.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.i.Oh(c);for(var L=g.r(d.Ld),da=L.next();!da.done;da=L.next())da.value.Oh(c);bZ(d,c,!1)}}; RZ=function(a,b,c,d){this.Fo=b;this.i=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)}; SZ=function(a,b,c,d){g.I.call(this);var e=this;this.B=a;this.C=b;this.u=c;this.i=new Map;d.get().addListener(this);g.wf(this,function(){d.get().removeListener(e)})}; Xia=function(a,b){var c=0x8000000000000;for(var d=0,e=g.r(b.Bc),f=e.next();!f.done;f=e.next())f=f.value,f instanceof RZ?(c=Math.min(c,f.i.start),d=Math.max(d,f.i.end)):S("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new jr(c,d);d="throttledadcuerange:"+b.slotId;a.i.set(d,b);a.u.get().addCueRange(d,c.start,c.end,!1,a)}; TZ=function(){g.I.apply(this,arguments);this.nj=!0;this.Mi=new Map;this.i=new Map}; WIa=function(a,b){a=g.r(a.Mi.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1}; XIa=function(a,b){a=g.r(a.i.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.xc(b)),layoutId:b})}; UZ=function(){this.u=new Map;this.i=new Map;this.B=new Map}; KZ=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return vy()}; yZ=function(a,b,c){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.i.get(b)||0;d++;a.i.set(b,d);return c+"_"+b+"_"+d}return vy()}; VZ=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return vy()}; LZ=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)}; HZ=function(a,b){this.Ae=b;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)}; zZ=function(a,b){this.Ae=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)}; CZ=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)}; WZ=function(a,b){this.i=b;this.sb="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)}; XZ=function(a,b){this.i=b;this.sb="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)}; DZ=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)}; YIa=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)}; oIa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)}; AZ=function(a,b){this.Ae=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)}; BZ=function(a,b){this.Ae=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)}; GZ=function(a,b){this.durationMs=45E3;this.Ae=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)}; ZIa=function(a){return[new WI(a.AA),new QI(a.instreamAdPlayerOverlayRenderer),new $I(a.TL),new LI(a.adPlacementConfig),new eJ(a.videoLengthSeconds),new sJ(a.WD)]}; $Ia=function(a,b,c,d,e,f){a=c.zD?c.zD:yZ(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",kb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",tc:new Map,xd:[new zZ(function(l){return VZ(f,l)},c.AA)], Rc:[],Pc:[],Sc:[],Yc:[],kb:b,Ka:d,Ec:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}}; YZ=function(a){var b=this;this.u=a;this.i=function(c){return VZ(b.u.get(),c)}}; ZZ=function(a,b,c,d,e){return $Ia(b,c,d,new LY(ZIa(d)),e,a.u.get())}; aJa=function(a,b,c,d,e){var f=ZIa(d);f.push(new JI(d.eQ));f.push(new KI(d.gQ));return $Ia(b,c,d,new LY(f),e,a.u.get())}; NZ=function(a,b,c,d,e,f,h,l,m){b=yZ(a.u.get(),c,b);var n={layoutId:b,layoutType:c,kb:"core"},p=new Map;h&&p.set("impression",h);return{layoutId:b,layoutType:c,tc:p,xd:[new DZ(a.i,b),new WZ(a.i,e)],Rc:[],Pc:[],Sc:[],Yc:[],kb:"core",Ka:new LY([d,new LI(f),new WI(e)]),Ec:l(n),adLayoutLoggingData:m}}; FZ=function(a,b,c){var d=[];d.push(new XZ(a.i,c));b&&d.push(b);return d}; EZ=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,kb:"core"};return{layoutId:b,layoutType:c,tc:new Map,xd:h,Rc:[new LZ(a.i,b)],Pc:[],Sc:[],Yc:[],kb:"core",Ka:new LY([new GI(d),new LI(e)]),Ec:f(l),adLayoutLoggingData:d.adLayoutLoggingData}}; xZ=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,kb:"core"};return{layoutId:b,layoutType:f,tc:new Map,xd:[new zZ(a.i,c)],Rc:[],Pc:[],Sc:[],Yc:[],kb:"core",Ka:new LY([new LI(d)].concat(g.v(h))),Ec:e(m),adLayoutLoggingData:l}}; EIa=function(a,b,c,d,e,f,h,l,m,n){a=IZ(a,b,c,d,e,f,h,l,m,n);return{zq:{layoutId:a.layoutId,layoutType:a.layoutType,tc:a.tc,xd:[],Rc:[],Pc:[],Sc:[],Yc:[],kb:a.kb,Ka:new LY(a.Eu),Ec:a.Ec,adLayoutLoggingData:a.adLayoutLoggingData},yr:a.Rc,jp:a.Pc,Px:a.Sc,Ox:a.Yc,kh:a.kh}}; IIa=function(a,b,c,d,e,f,h,l){b=IZ(a,b,c,d,e,new Map,f,function(m){return h(m,l)},void 0); a=new BZ(a.i,b.GE);c=new XI(b.GE);d=new YI("LAYOUT_TYPE_SURVEY");return{zq:{layoutId:b.layoutId,layoutType:b.layoutType,tc:b.tc,xd:[],Rc:[],Pc:[],Sc:[],Yc:[],kb:b.kb,Ka:new LY([].concat(g.v(b.Eu),[c,d])),Ec:b.Ec,adLayoutLoggingData:b.adLayoutLoggingData},yr:b.Rc,jp:b.Pc,Px:[].concat(g.v(b.Sc),[a]),Ox:b.Yc,kh:b.kh}}; IZ=function(a,b,c,d,e,f,h,l,m,n){b=yZ(a.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",kb:"adapter"};l=l(b);var q=X(l.Ka,"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 LI(c),new tJ(d),new vJ(e)];n&&c.push(new jJ(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",tc:f,xd:[],Rc:[new AZ(a.i,q)],Pc:[],Sc:[],Yc:[],kb:"adapter", Eu:c,Ec:h(p),adLayoutLoggingData:m,kh:l,GE:q}}; MIa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,q={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",kb:b};d=[new LI(d),new MI(l),new NI(c.externalVideoId),new PI(h),new QI(c.playerOverlay.instreamAdPlayerOverlayRenderer),new vJ({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new fJ(e),new aJ({current:null}),new eJ(f)];e=KZ(a.u.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?f:yZ(a.u.get(), "LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new XI(f));d.push(new ZI(e));d.push(new jJ(l.i));c.adNextParams&&d.push(new EI(c.adNextParams));c.clickthroughEndpoint&&d.push(new FI(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new uJ(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new gJ(c.sodarExtensionData));n&&d.push(new rJ(n));return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",tc:LH(c.pings),xd:[new DZ(a.i,p)],Rc:c.skipOffsetMilliseconds?[new AZ(a.i,f)]:[],Pc:[new AZ(a.i, f)],Sc:[],Yc:[],kb:b,Ka:new LY(d),Ec:m(q),adLayoutLoggingData:c.adLayoutLoggingData}}; zIa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return KY(p,[],["LAYOUT_TYPE_MEDIA"])})||S("Unexpect subLayout type for DAI composite layout"); b=yZ(a.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",kb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",tc:f,xd:[new CZ(a.i)],Rc:[],Pc:[],Sc:[],Yc:[],kb:"core",Ka:new LY([new hJ(c),new iJ(m),new cJ(d),new LI(e),new nJ(h)]),Ec:l(n)}}; uIa=function(a){return null!=a}; $Z=function(a,b,c){this.Fo=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)}; a_=function(a,b,c){this.Ae=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)}; b_=function(a,b){this.Ae=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)}; bJa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)}; c_=function(a,b,c){this.Fo=b;this.i=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)}; d_=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)}; e_=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)}; f_=function(a,b){this.Hg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)}; g_=function(a,b){this.Hg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)}; h_=function(a,b){this.Hg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)}; i_=function(a,b){this.Hg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)}; j_=function(a,b){this.Hg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)}; ZHa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Ok:new jr(-0x8000000000000,-0x8000000000000),Vz:d},null!=c&&(d.Hr=new jr(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Ok:new jr(0x7ffffffffffff,0x8000000000000),Vz:d},null!=c&&(d.Hr=new jr(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||S("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); e.offsetEndMilliseconds||S("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);-1===e&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new hZ("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={Ok:new jr(a,e),Vz:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Hr=new jr(a,e)}return d;default:return new hZ("AdPlacementKind not supported in convertToRange.", {kind:e,adPlacementConfig:a})}}; k_=function(a){var b=this;this.u=a;this.i=function(c){return VZ(b.u.get(),c)}}; $Ha=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=KZ(a.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Hr&&d.Hr.start!==d.Ok.start&&l.push(new RZ(a.i,c,new jr(d.Hr.start,d.Ok.start),!1));l.push(new RZ(a.i,c,new jr(d.Ok.start,d.Ok.end),d.Vz));d={getAdBreakUrl:b.getAdBreakUrl,lM:d.Ok.start,kM:d.Ok.end};b=new i_(a.i,h);f=[new pJ(d)].concat(g.v(f));return{slotId:h,sb:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Zb:b,Bc:l,Ac:[new d_(a.i,c),new g_(a.i,h),new h_(a.i,h)],kb:"core",Ka:new LY(f),adSlotLoggingData:e}}; dJa=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())d.push(cJa(a,b,e.value));return d}; cJa=function(a,b,c){return null!=c.Hg&&c.Hg===a?c.clone(b):c}; iIa=function(a,b,c,d,e){return eJa(a,b,c,d,e)}; FIa=function(a,b,c,d){var e=KZ(a.u.get(),"SLOT_TYPE_IN_PLAYER");return eJa(a,e,b,c,d)}; eJa=function(a,b,c,d,e){var f=new b_(a.i,c),h=[new f_(a.i,b)];a=[new g_(a.i,b),new d_(a.i,d)];return{slotId:b,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Zb:f,Bc:h,Ac:a,kb:"core",Ka:new LY([new oJ(e({slotId:b,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kb:"core",Zb:f,Bc:h,Ac:a},c))]),adSlotLoggingData:void 0}}; SIa=function(a,b,c,d,e,f){var h=KZ(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),l=KZ(a.u.get(),"SLOT_TYPE_IN_PLAYER"),m=yZ(a.u.get(),"LAYOUT_TYPE_SURVEY",l);b=l_(a,b,c,d);d=[new f_(a.i,h)];a=[new g_(a.i,h),new d_(a.i,c),new LZ(a.i,m)];if(b instanceof hZ)return b;f=f({slotId:h,sb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,kb:"core",Zb:b,Bc:d,Ac:a},{slotId:l,layoutId:m});l=f.KR;return[{slotId:h,sb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Zb:b,Bc:d,Ac:a,kb:"core",Ka:new LY([new oJ(f.iS)]),adSlotLoggingData:e}, l]}; fJa=function(a,b,c,d,e){e=e?e:KZ(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new b_(a.i,c);var f=[new f_(a.i,e)];a=[new d_(a.i,b),new g_(a.i,e)];return{slotId:e,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Zb:c,Bc:f,Ac:a,kb:"core",Ka:new LY([new oJ(d({slotId:e,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kb:"core",Zb:c,Bc:f,Ac:a}))])}}; CIa=function(a,b,c,d,e,f){b=l_(a,b,c,d);if(b instanceof hZ)return b;var h=b instanceof RZ?new c_(a.i,c,b.i):null;d=KZ(a.u.get(),"SLOT_TYPE_IN_PLAYER");var l=[new f_(a.i,d)];a=[new d_(a.i,c),new g_(a.i,d)];f=f({slotId:d,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kb:"core",Zb:b,Bc:l,Ac:a},h);return f instanceof ZY?new hZ(f):{slotId:d,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Zb:b,Bc:l,Ac:a,kb:"core",Ka:new LY([new oJ(f)]),adSlotLoggingData:e}}; nIa=function(a,b,c,d){var e=KZ(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new b_(a.i,c);var f=[new f_(a.i,e)],h=[new g_(a.i,e),new d_(a.i,b)];f={slotId:e,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kb:"core",Zb:c,Bc:f,Ac:h};return{slotId:e,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Zb:c,Bc:[new f_(a.i,e)],Ac:[new d_(a.i,b),new g_(a.i,e)],kb:"core",Ka:new LY([new oJ(d(f))])}}; lIa=function(a,b,c,d,e){var f=KZ(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new a_(a.i,d,c);d=[new f_(a.i,f)];a=[new d_(a.i,b)];return{slotId:f,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Zb:c,Bc:d,Ac:a,kb:"core",Ka:new LY([new oJ(e({slotId:f,sb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kb:"core",Zb:c,Bc:d,Ac:a}))])}}; eIa=function(a,b,c,d,e,f){var h=KZ(a.u.get(),b);return gJa(a,h,b,new b_(a.i,d),c,e,d,f)}; dIa=function(a,b,c,d,e,f,h){return gJa(a,c,b,new e_(a.i,c),d,f,e,h)}; vIa=function(a,b,c){var d=KZ(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new bJa(a.i),f=[new j_(a.i,d)];a=[new d_(a.i,b)];return{slotId:d,sb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Zb:e,Bc:f,Ac:a,kb:"core",Ka:new LY([new oJ(c({slotId:d,sb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,kb:"core",Zb:e,Bc:f,Ac:a})),new kJ({})])}}; NIa=function(a,b,c,d,e,f,h){a=QIa(a,b,c,d);if(a instanceof hZ)return a;h=h({slotId:a.slotId,sb:a.sb,slotPhysicalPosition:a.slotPhysicalPosition,Zb:a.Zb,Bc:a.Bc,Ac:a.Ac,kb:a.kb});if(h instanceof hZ)return h;b=[new oJ(h.layout)];f&&b.push(new xJ({}));return{KE:{slotId:a.slotId,sb:a.sb,slotPhysicalPosition:a.slotPhysicalPosition,Zb:a.Zb,Bc:a.Bc,Ac:a.Ac,kb:a.kb,Ka:new LY(b),adSlotLoggingData:e},hm:h.hm}}; QIa=function(a,b,c,d){var e=KZ(a.u.get(),"SLOT_TYPE_PLAYER_BYTES");b=l_(a,b,c,d);if(b instanceof hZ)return b;d=[new f_(a.i,e)];a=[new g_(a.i,e),new d_(a.i,c)];return{slotId:e,sb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Zb:b,Bc:d,Ac:a,kb:"core"}}; AIa=function(a,b,c,d,e,f){var h=KZ(a.u.get(),"SLOT_TYPE_FORECASTING");b=l_(a,b,c,d);if(b instanceof hZ)return b;d=[new f_(a.i,h)];a=[new g_(a.i,h),new d_(a.i,c)];return{slotId:h,sb:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Zb:b,Bc:d,Ac:a,kb:"core",Ka:new LY([new oJ(f({slotId:h,sb:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,kb:"core",Zb:b,Bc:d,Ac:a}))]),adSlotLoggingData:e}}; hJa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new mA(a.i,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=ZHa(b,d),a instanceof hZ?a:e(a.Ok,f);case "AD_PLACEMENT_KIND_END":return new $Z(a.i,c,f);default:return new hZ("Cannot construct entry trigger",{kind:b.kind})}}; l_=function(a,b,c,d){return hJa(a,b,c,d,function(e,f){return new RZ(a.i,c,e,f)})}; gJa=function(a,b,c,d,e,f,h,l){var m=[new j_(a.i,b)];a=[new d_(a.i,e),new g_(a.i,b),new HZ(a.i,h)];return{slotId:b,sb:c,slotPhysicalPosition:1,Zb:d,Bc:m,Ac:a,kb:"core",Ka:new LY([new oJ(l({slotId:b,sb:c,slotPhysicalPosition:1,kb:"core",Zb:d,Bc:m,Ac:a}))]),adSlotLoggingData:f}}; m_=function(a,b,c){g.I.call(this);this.Pa=a;this.u=b;this.i=c;this.eventCount=0}; NJ=function(a,b,c){QZ(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)}; YY=function(a,b,c,d){QZ(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)}; KHa=function(a,b,c,d){var e=a.Pa.get();(e.I.W().experiments.Ga("html5_control_flow_include_trigger_logging_in_tmp_logs")||e.I.W().experiments.Ga("html5_control_flow_include_trigger_logging_in_tmp_logs_live_infra"))&&QZ(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)}; QZ=function(a,b,c,d,e,f,h,l,m,n){var p=a.Pa.get();if((p.I.W().experiments.Ga("html5_enable_ads_client_monitoring_log")||p.I.W().experiments.Ga("html5_enable_ads_client_monitoring_log_live_infra"))&&!a.Pa.get().I.W().experiments.Ga("html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){p=PY(a.u.get());b={eventType:b,eventOrder:++a.eventCount};var q,t={organicPlaybackContext:{contentCpn:iA(a.i.get(),1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=iA(a.i.get(),1).Sf; var u=null===(q=iA(a.i.get(),2))||void 0===q?void 0:q.clientPlaybackNonce;u&&(t.adVideoPlaybackContext={adVideoCpn:u});a=a.Pa.get();a=g.T(a.I.W().experiments,"html5_experiment_id_label")||g.T(a.I.W().experiments,"html5_experiment_id_label_live_infra");0=.25*d||c)&&X_(a.i,"first_quartile"),(b>=.5*d||c)&&X_(a.i,"midpoint"),(b>=.75*d||c)&&X_(a.i,"third_quartile"),a=a.Ta,b*=1E3,c=a.J())){for(;a.Ce&&h.kt(c,e-d);return c}; lKa=function(a,b){var c=X(b.Ka,"metadata_type_sodar_extension_data");if(c)try{wJa(0,c)}catch(d){S("Unexpected error when loading Sodar",a,b,{error:d})}}; V0=function(a,b,c,d,e){l0(c)&&m0(e,0,null)&&X_(a,"impression");a.i.has("impression")&&(g.nI(c,4)&&!g.nI(c,2)&&a.Hf("pause"),0>mI(c,4)&&!(0>mI(c,2))&&a.Hf("resume"),g.nI(c,16)&&.5<=e&&a.Hf("seek"),g.nI(c,2)&&U0(a,c.state,b,d,e))}; U0=function(a,b,c,d,e){if(a.i.has("impression")){var f=1>=Math.abs(d-e);W0(a,b,f?d:e,c,d);f&&X_(a,"complete")}}; W0=function(a,b,c,d,e){CJa(a,1E3*c);0>=e||0>=c||(null===b||void 0===b?0:g.U(b,16))||(null===b||void 0===b?0:g.U(b,32))||(m0(c,.25*e,d)&&X_(a,"first_quartile"),m0(c,.5*e,d)&&X_(a,"midpoint"),m0(c,.75*e,d)&&X_(a,"third_quartile"))}; mKa=function(a,b){a.i.has("impression")&&a.Hf(b?"fullscreen":"end_fullscreen")}; nKa=function(a){a.i.has("impression")&&a.Hf("clickthrough")}; oKa=function(a){a.Hf("active_view_measurable")}; pKa=function(a){a.i.has("impression")&&!a.i.has("seek")&&a.Hf("active_view_fully_viewable_audible_half_duration")}; qKa=function(a){a.i.has("impression")&&!a.i.has("seek")&&a.Hf("active_view_viewable")}; rKa=function(a,b,c,d,e,f,h,l,m,n,p){this.callback=a;this.slot=b;this.layout=c;this.C=d;this.u=e;this.Ja=f;this.J=h;this.B=l;this.D=m;this.Pa=n;this.Va=p;this.Ty=!0;this.Cc=this.i=null}; X0=function(a){return{enterMs:X(a.Ka,"metadata_type_layout_enter_ms"),exitMs:X(a.Ka,"metadata_type_layout_exit_ms")}}; Y0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){R0.call(this,a,b,c,d,e,h,l,m,n,q);this.V=f;this.J=p;this.D=t;this.Pa=u;this.Cc=this.u=null}; Z0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,A,E,G){this.Ue=a;this.xa=b;this.u=c;this.B=d;this.Ja=e;this.Va=f;this.K=h;this.D=l;this.i=m;this.C=n;this.zd=p;this.ea=q;this.Zc=t;this.Hc=u;this.N=x;this.V=y;this.ma=A;this.Pa=E;this.J=G}; $0=function(a){g.I.call(this);this.i=a;this.Hb=new Map}; a1=function(a,b){for(var c=[],d=g.r(a.Hb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.i===b.layoutId&&c.push(e);c.length&&fZ(a.i(),c)}; b1=function(a,b){var c;g.I.call(this);var d=this;this.C=a;this.u=new Map;this.B=new Map;this.i=null;b.get().addListener(this);g.wf(this,function(){b.get().removeListener(d)}); this.i=(null===(c=b.get().np)||void 0===c?void 0:c.slotId)||null}; sKa=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}; c1=function(a){this.I=a}; d1=function(){this.listeners=new Set}; tKa=function(a,b,c,d,e){FH.call(this,"image-companion",a,b,c,d,e)}; e1=function(a,b,c,d,e,f,h,l){Z_.call(this,a,b,c,d);this.Va=e;this.Ue=f;this.J=l;this.nj=!0;this.B=null;this.C=X(c.Ka,"metadata_type_linked_player_bytes_layout_id");TY(this.Ue(),this);a=X(c.Ka,"metadata_type_ad_placement_config");this.D=new U_(c.tc,this.Va,a,c.layoutId)}; uKa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];V_().forEach(function(b){a.push(b)}); return{ge:a,nf:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; vKa=function(a,b,c,d,e){FH.call(this,"shopping-companion",a,b,c,d,e)}; f1=function(a,b,c,d,e,f,h,l){Z_.call(this,a,b,c,d);this.Va=e;this.Ue=f;this.J=l;this.nj=!0;this.B=null;this.C=X(c.Ka,"metadata_type_linked_player_bytes_layout_id");TY(this.Ue(),this);a=X(c.Ka,"metadata_type_ad_placement_config");this.D=new U_(c.tc,this.Va,a,c.layoutId)}; wKa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];V_().forEach(function(b){a.push(b)}); return{ge:a,nf:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; xKa=function(a,b,c,d,e){this.i=a;this.Va=b;this.Ue=c;this.u=d;this.B=e}; g1=function(a,b,c,d,e){Z_.call(this,c,a,b,d);this.Va=e;a=X(b.Ka,"metadata_type_ad_placement_config");this.B=new U_(b.tc,e,a,b.layoutId)}; h1=function(a){return Math.round(a.width)+"x"+Math.round(a.height)}; j1=function(a,b,c){c=void 0===c?i1:c;c.widtha.width*a.height*.2)return{MA:3,ax:501,errorMessage:"ad("+h1(c)+") to container("+h1(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{MA:3,ax:501,errorMessage:"ad("+h1(c)+") covers container("+h1(a)+") center."}}; yKa=function(a,b){var c=X(a.Ka,"metadata_type_ad_placement_config");return new U_(a.tc,b,c,a.layoutId)}; k1=function(a){return X(a.Ka,"metadata_type_invideo_overlay_ad_renderer")}; l1=function(a,b,c,d){FH.call(this,"invideo-overlay",a,b,c,d);this.yb=d}; m1=function(a,b,c,d,e,f,h,l,m,n,p,q){Z_.call(this,f,a,b,e);this.Va=c;this.B=h;this.Ja=l;this.J=m;this.Pa=n;this.Jd=p;this.C=q;this.K=yKa(b,c)}; zKa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];V_().forEach(function(b){a.push(b)}); return{ge:a,nf:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; n1=function(a,b,c,d,e,f,h,l,m,n,p,q,t){Z_.call(this,f,a,b,e);this.Va=c;this.B=h;this.J=l;this.Ja=m;this.K=n;this.Pa=p;this.Jd=q;this.C=t;this.N=yKa(b,c)}; AKa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.r(V_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{ge:a,nf:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; o1=function(a){this.Ja=a;this.i=!1}; p1=function(a,b,c,d,e,f,h){Z_.call(this,c,a,b,d);this.B=e;this.Ja=f;this.Pa=h}; BKa=function(a,b,c,d,e,f,h,l,m,n){this.i=a;this.Ja=b;this.Va=c;this.J=d;this.C=e;this.u=f;this.D=h;this.B=l;this.Pa=m;this.Jd=n}; q1=function(a){g.I.call(this);this.B=a;this.nj=!0;this.Hb=new Map;this.i=new Map;this.u=new Map}; CKa=function(a,b){var c=[];if(b=a.i.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}; r1=function(a,b,c){g.I.call(this);this.B=a;this.C=b;this.D=c;this.i=this.u=void 0;this.C.get().addListener(this)}; DKa=function(a,b,c,d,e){g.I.call(this);var f=this;this.ea=Y(function(){return new UZ}); g.J(this,this.ea);this.La=Y(function(){return new YZ(f.ea)}); g.J(this,this.La);this.B=Y(function(){return new TZ}); g.J(this,this.B);this.J=Y(function(){return new PZ(a)}); g.J(this,this.J);this.K=Y(function(){return new k_(f.ea)}); g.J(this,this.K);this.Fb=Y(function(){return new n_}); g.J(this,this.Fb);this.ac=Y(function(){return new GH(b.W())}); g.J(this,this.ac);this.xa=Y(function(){return new L0(b)}); g.J(this,this.xa);this.bb=Y(function(){return new J_(e)}); g.J(this,this.bb);this.Zc=Y(function(){return new WJ(b)}); g.J(this,this.Zc);this.Ha=Y(function(){return new p_(b)}); g.J(this,this.Ha);this.zd=Y(function(){return new O0(b)}); g.J(this,this.zd);this.Hc=Y(function(){return new q_(b)}); g.J(this,this.Hc);this.Pa=Y(function(){return new r_(b)}); g.J(this,this.Pa);this.Pb=Y(function(){return new K0(d)}); g.J(this,this.Pb);this.C=Y(function(){return new RY(f.Pa)}); g.J(this,this.C);this.Ta=Y(function(){return new MZ(f.K,f.La,f.Pa,f.C,"SLOT_TYPE_ABOVE_FEED",f.gb)}); g.J(this,this.Ta);this.Fc=Y(function(){return new P0(b)}); g.J(this,this.Fc);this.tb=Y(function(){return new Q0}); g.J(this,this.tb);this.ob=Y(function(){return new d1}); g.J(this,this.ob);this.i=Y(function(){return new E_(b,f.Fb,f.Pa)}); g.J(this,this.i);this.dc=new m_(this.Pa,this.C,this.i);g.J(this,this.dc);this.Ba=Y(function(){return new N0(b,f.i,f.Pa,f.Va)}); g.J(this,this.Ba);this.Qa=Y(function(){return new c1(b)}); g.J(this,this.Qa);this.Ja=Y(function(){return new F_(b,f.i)}); g.J(this,this.Ja);this.Ce=Y(function(){return new K_}); this.ma=Y(function(){return new u_(f.Ja,b)}); g.J(this,this.ma);this.Va=Y(function(){return new z_(b,f.B,f.ma,f.i)}); g.J(this,this.Va);this.Uc=new w0(x0,s1,function(l,m,n,p){return ZZ(f.La.get(),l,m,n,p)},this.J,this.K,this.C,this.Pa,this.i); g.J(this,this.Uc);this.qc=new nA(this.J,this.Ta,c,this.Pa,a,this.i,this.Ja);g.J(this,this.qc);var h=new o_(b,this.qc,this.Ja,this.i,this.Ba);this.eb=Y(function(){return h}); this.Sn=h;this.gb=new v0(this.J,this.K,this.i,this.eb,this.Ba,this.Ja,this.Pa,this.Qa);g.J(this,this.gb);this.Ab=new SZ(this.J,this.K,this.Ha,this.eb);g.J(this,this.Ab);this.wc=new fA(this.J,this.K,this.Ta,this.i,this.Ab,c);g.J(this,this.wc);this.Yb=Y(function(){return new Q_(f.Pb,f.La,f.C,f.Qa)}); g.J(this,this.Yb);this.N=Y(function(){return new R_}); g.J(this,this.N);this.Aa=new C0(a,this.xa);g.J(this,this.Aa);this.u=new D0(a);g.J(this,this.u);this.Xa=new $0(a);g.J(this,this.Xa);this.rb=new E0(a,this.eb);g.J(this,this.rb);this.Ma=new F0(a,this.Ha,this.Ja,this.i);g.J(this,this.Ma);this.vb=new b1(a,this.i);g.J(this,this.vb);this.D=new H0(a);g.J(this,this.D);this.Nc=new I0(a);g.J(this,this.Nc);this.Db=new q1(a);g.J(this,this.Db);this.V=Y(function(){return new y0}); g.J(this,this.V);this.Vc=Y(function(){return new z0(f.Ja)}); g.J(this,this.Vc);this.md=Y(function(){return new xKa(f.xa,f.Va,a,f.B,f.ma)}); g.J(this,this.md);this.Xb=Y(function(){return new T_(f.wc)}); g.J(this,this.Xb);this.hc=Y(function(){return new Y_(f.Va,f.D)}); g.J(this,this.hc);this.Oc=Y(function(){return new Z0(a,f.D,f.i,f.Qa,f.Ja,f.Va,f.Fb,f.Ba,f.ma,f.Ce,f.zd,f.Ha,f.Zc,f.Hc,f.ac,f.bb,f.Fc,f.Pa,f.B)}); g.J(this,this.Oc);this.uc=Y(function(){return new BKa(f.xa,f.Ja,f.Va,f.B,f.ma,f.Xa,f.Db,f.bb,f.Pa,c)}); g.J(this,this.uc);this.Id=new r1(a,this.ob,this.ea);g.J(this,this.Id);this.Be=new J0(a,this.tb,this.C,this.i,this.ea,this.Pa);g.J(this,this.Be);this.Fd={eq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Uc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ab]]),Jl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.Yb],["SLOT_TYPE_ABOVE_FEED",this.N],["SLOT_TYPE_FORECASTING",this.N],["SLOT_TYPE_IN_PLAYER",this.N],["SLOT_TYPE_PLAYER_BYTES",this.N]]),Th:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Aa],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Aa],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u], ["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Xa],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.rb],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ma],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ma],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Ma],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.vb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED", this.vb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.D],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.D],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.rb],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Nc],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Db]]),ym:new Map([["SLOT_TYPE_ABOVE_FEED",this.V],["SLOT_TYPE_AD_BREAK_REQUEST",this.V],["SLOT_TYPE_FORECASTING",this.V],["SLOT_TYPE_IN_PLAYER",this.V],["SLOT_TYPE_PLAYER_BYTES",this.Vc]]),Xl:new Map([["SLOT_TYPE_ABOVE_FEED", this.md],["SLOT_TYPE_AD_BREAK_REQUEST",this.Xb],["SLOT_TYPE_FORECASTING",this.hc],["SLOT_TYPE_PLAYER_BYTES",this.Oc],["SLOT_TYPE_IN_PLAYER",this.uc]])};this.listeners=[this.B.get()];this.xe={wc:this.wc,hk:this.D,Zl:this.tb.get(),jg:this.Pa.get(),Yn:this.Ja.get(),qc:this.qc,Yl:this.ob.get(),Ai:this.Aa,fh:this.B.get()}}; EKa=function(a,b,c,d,e,f,h,l,m,n){this.i=a;this.Ja=b;this.Va=c;this.J=d;this.C=e;this.u=f;this.D=h;this.B=l;this.Pa=m;this.Jd=n}; FKa=function(a,b,c,d,e){g.I.call(this);var f=this;this.J=Y(function(){return new UZ}); g.J(this,this.J);this.Aa=Y(function(){return new YZ(f.J)}); g.J(this,this.Aa);this.K=Y(function(){return new TZ}); g.J(this,this.K);this.C=Y(function(){return new PZ(a)}); g.J(this,this.C);this.D=Y(function(){return new k_(f.J)}); g.J(this,this.D);this.Oc=Y(function(){return new n_}); g.J(this,this.Oc);this.Db=Y(function(){return new GH(b.W())}); g.J(this,this.Db);this.Ma=Y(function(){return new L0(b)}); g.J(this,this.Ma);this.Ta=Y(function(){return new J_(e)}); g.J(this,this.Ta);this.Zc=Y(function(){return new WJ(b)}); g.J(this,this.Zc);this.V=Y(function(){return new p_(b)}); g.J(this,this.V);this.zd=Y(function(){return new O0(b)}); g.J(this,this.zd);this.Hc=Y(function(){return new q_(b)}); g.J(this,this.Hc);this.Pa=Y(function(){return new r_(b)}); g.J(this,this.Pa);this.tb=Y(function(){return new K0(d)}); g.J(this,this.tb);this.B=Y(function(){return new RY(f.Pa)}); g.J(this,this.B);this.Ha=Y(function(){return new MZ(f.D,f.Aa,f.Pa,f.B,null,null)}); g.J(this,this.Ha);this.Yb=Y(function(){return new P0(b)}); g.J(this,this.Yb);this.rb=Y(function(){return new Q0}); g.J(this,this.rb);this.eb=Y(function(){return new d1}); g.J(this,this.eb);this.i=Y(function(){return new E_(b,f.Oc,f.Pa)}); g.J(this,this.i);this.dc=new m_(this.Pa,this.B,this.i);g.J(this,this.dc);this.Vc=Y(function(){return new N0(b,f.i,f.Pa,f.Va)}); this.Ja=Y(function(){return new F_(b,f.i)}); g.J(this,this.Ja);this.Ba=Y(function(){return new u_(f.Ja,b)}); g.J(this,this.Ba);this.Va=Y(function(){return new z_(b,f.K,f.Ba,f.i)}); g.J(this,this.Va);this.Nc=Y(function(){return new K_}); g.J(this,this.Nc);this.uc=new w0(x0,s1,function(l,m,n,p){return ZZ(f.Aa.get(),l,m,n,p)},this.C,this.D,this.B,this.Pa,this.i); g.J(this,this.uc);this.qc=new nA(this.C,this.Ha,c,this.Pa,a,this.i,this.Ja);g.J(this,this.qc);var h=new o_(b,this.qc,this.Ja,this.i);this.Xa=Y(function(){return h}); this.Sn=h;this.Fb=new v0(this.C,this.D,this.i,this.Xa,this.Vc,this.Ja,this.Pa);g.J(this,this.Fb);this.gb=new SZ(this.C,this.D,this.V,this.Xa);g.J(this,this.gb);this.wc=new fA(this.C,this.D,this.Ha,this.i,this.gb,c);g.J(this,this.wc);this.Ab=Y(function(){return new Q_(f.tb,f.Aa,f.B)}); g.J(this,this.Ab);this.ma=Y(function(){return new R_}); g.J(this,this.ma);this.La=new C0(a,this.Ma);g.J(this,this.La);this.u=new D0(a);g.J(this,this.u);this.Qa=new $0(a);g.J(this,this.Qa);this.bb=new E0(a,this.Xa);g.J(this,this.bb);this.ea=new F0(a,this.V,this.Ja,this.i);g.J(this,this.ea);this.N=new H0(a);g.J(this,this.N);this.ac=new I0(a);g.J(this,this.ac);this.ob=new q1(a);g.J(this,this.ob);this.xa=Y(function(){return new y0}); g.J(this,this.xa);this.Fc=Y(function(){return new z0(f.Ja)}); g.J(this,this.Fc);this.vb=Y(function(){return new T_(f.wc)}); g.J(this,this.vb);this.Pb=Y(function(){return new Y_(f.Va,f.N)}); g.J(this,this.Pb);this.Xb=Y(function(){return new EKa(f.Ma,f.Ja,f.Va,f.K,f.Ba,f.Qa,f.ob,f.Ta,f.Pa,c)}); g.J(this,this.Xb);this.hc=Y(function(){return new u0(a,f.N,f.Va,f.Ba,f.Nc,f.zd,f.i,f.Ja,f.V,f.Zc,f.Hc,f.Db,f.Ta,f.Yb,f.Pa)}); g.J(this,this.hc);this.Uc=new r1(a,this.eb,this.J);g.J(this,this.Uc);this.md=new J0(a,this.rb,this.B,this.i,this.J,this.Pa);g.J(this,this.md);this.Fd={eq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Fb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.uc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.gb]]),Jl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.Ab],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES",this.ma]]),Th:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.La],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY", this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Qa],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.bb],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ea],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ea],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.ea],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.N],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.N],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.bb],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.ac],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.ob]]),ym:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xa],["SLOT_TYPE_FORECASTING",this.xa],["SLOT_TYPE_IN_PLAYER",this.xa],["SLOT_TYPE_PLAYER_BYTES",this.Fc]]),Xl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vb],["SLOT_TYPE_FORECASTING",this.Pb],["SLOT_TYPE_IN_PLAYER",this.Xb],["SLOT_TYPE_PLAYER_BYTES",this.hc]])};this.listeners=[this.K.get()];this.xe={wc:this.wc,hk:null,Zl:this.rb.get(), jg:this.Pa.get(),Yn:this.Ja.get(),qc:this.qc,Yl:this.eb.get(),Ai:this.La,fh:this.K.get()}}; GKa=function(a,b,c,d,e){g.I.call(this);var f=this;this.ma=Y(function(){return new UZ}); g.J(this,this.ma);this.xa=Y(function(){return new YZ(f.ma)}); g.J(this,this.xa);this.D=Y(function(){return new TZ}); g.J(this,this.D);this.K=Y(function(){return new PZ(a)}); g.J(this,this.K);this.N=Y(function(){return new k_(f.ma)}); g.J(this,this.N);this.ac=Y(function(){return new n_}); g.J(this,this.ac);this.gb=Y(function(){return new GH(b.W())}); g.J(this,this.gb);this.Ba=Y(function(){return new L0(b)}); g.J(this,this.Ba);this.ob=Y(function(){return new J_(e)}); g.J(this,this.ob);this.Zc=Y(function(){return new WJ(b)}); g.J(this,this.Zc);this.V=Y(function(){return new p_(b)}); g.J(this,this.V);this.zd=Y(function(){return new O0(b)}); g.J(this,this.zd);this.Hc=Y(function(){return new q_(b)}); g.J(this,this.Hc);this.Pa=Y(function(){return new r_(b)}); g.J(this,this.Pa);this.bb=Y(function(){return new K0(d)}); g.J(this,this.bb);this.B=Y(function(){return new RY(f.Pa)}); g.J(this,this.B);this.Aa=Y(function(){return new MZ(f.N,f.xa,f.Pa,f.B,null,null)}); g.J(this,this.Aa);this.Ab=Y(function(){return new P0(b)}); g.J(this,this.Ab);this.Qa=Y(function(){return new Q0}); g.J(this,this.Qa);this.i=Y(function(){return new E_(b,f.ac,f.Pa)}); g.J(this,this.i);this.dc=new m_(this.Pa,this.B,this.i);g.J(this,this.dc);this.Ja=Y(function(){return new F_(b,f.i)}); g.J(this,this.Ja);this.Ta=Y(function(){return new u_(f.Ja,b)}); g.J(this,this.Ta);this.Va=Y(function(){return new z_(b,f.D,f.Ta,f.i)}); g.J(this,this.Va);this.Yb=Y(function(){return new K_}); g.J(this,this.Yb);this.Pb=new w0(x0,s1,function(l,m,n,p){return ZZ(f.xa.get(),l,m,n,p)},this.K,this.N,this.B,this.Pa,this.i); g.J(this,this.Pb);this.qc=new nA(this.K,this.Aa,c,this.Pa,a,this.i,this.Ja);g.J(this,this.qc);var h=new o_(b,this.qc,this.Ja,this.i);this.tb=Y(function(){return h}); this.Sn=h;this.Xa=new SZ(this.K,this.N,this.V,this.tb);g.J(this,this.Xa);this.wc=new fA(this.K,this.N,this.Aa,this.i,this.Xa,c);g.J(this,this.wc);this.rb=Y(function(){return new Q_(f.bb,f.xa,f.B)}); g.J(this,this.rb);this.ea=Y(function(){return new R_}); g.J(this,this.ea);this.Ha=new C0(a,this.Ba);g.J(this,this.Ha);this.u=new D0(a);g.J(this,this.u);this.Ma=new E0(a,this.tb);g.J(this,this.Ma);this.La=new F0(a,this.V,this.Ja,this.i);g.J(this,this.La);this.J=new H0(a);g.J(this,this.J);this.Db=new I0(a);g.J(this,this.Db);this.C=Y(function(){return new y0}); g.J(this,this.C);this.Xb=Y(function(){return new z0(f.Ja)}); g.J(this,this.Xb);this.eb=Y(function(){return new T_(f.wc)}); g.J(this,this.eb);this.vb=Y(function(){return new Y_(f.Va,f.J)}); g.J(this,this.vb);this.hc=Y(function(){return new f0(f.Ba,f.Ja,f.Va,f.D,c)}); g.J(this,this.hc);this.Fb=Y(function(){return new u0(a,f.J,f.Va,f.Ta,f.Yb,f.zd,f.i,f.Ja,f.V,f.Zc,f.Hc,f.gb,f.ob,f.Ab,f.Pa)}); g.J(this,this.Fb);this.uc=new J0(a,this.Qa,this.B,this.i,this.ma,this.Pa);g.J(this,this.uc);this.Fd={eq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Pb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Xa]]),Jl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rb],["SLOT_TYPE_FORECASTING",this.ea],["SLOT_TYPE_IN_PLAYER",this.ea],["SLOT_TYPE_PLAYER_BYTES", this.ea]]),Th:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ha],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.Ma],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.La],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.J],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.J],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ma],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Db]]),ym:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C],["SLOT_TYPE_ABOVE_FEED",this.C],["SLOT_TYPE_FORECASTING",this.C],["SLOT_TYPE_IN_PLAYER",this.C],["SLOT_TYPE_PLAYER_BYTES",this.Xb]]), Xl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eb],["SLOT_TYPE_FORECASTING",this.vb],["SLOT_TYPE_IN_PLAYER",this.hc],["SLOT_TYPE_PLAYER_BYTES",this.Fb]])};this.listeners=[this.D.get()];this.xe={wc:this.wc,hk:null,Zl:this.Qa.get(),jg:this.Pa.get(),Yn:this.Ja.get(),qc:this.qc,Yl:null,Ai:this.Ha,fh:this.D.get()}}; HKa=function(a,b,c,d,e){g.I.call(this);var f=this;this.ma=Y(function(){return new UZ}); g.J(this,this.ma);this.xa=Y(function(){return new YZ(f.ma)}); g.J(this,this.xa);this.C=Y(function(){return new TZ}); g.J(this,this.C);this.J=Y(function(){return new PZ(a)}); g.J(this,this.J);this.K=Y(function(){return new k_(f.ma)}); g.J(this,this.K);this.hc=Y(function(){return new n_}); g.J(this,this.hc);this.rb=Y(function(){return new GH(b.W())}); g.J(this,this.rb);this.Ba=Y(function(){return new L0(b)}); g.J(this,this.Ba);this.gb=Y(function(){return new J_(e)}); g.J(this,this.gb);this.Zc=Y(function(){return new WJ(b)}); g.J(this,this.Zc);this.N=Y(function(){return new p_(b)}); g.J(this,this.N);this.zd=Y(function(){return new O0(b)}); g.J(this,this.zd);this.Hc=Y(function(){return new q_(b)}); g.J(this,this.Hc);this.Pa=Y(function(){return new r_(b)}); g.J(this,this.Pa);this.Xa=Y(function(){return new K0(d)}); g.J(this,this.Xa);this.B=Y(function(){return new RY(f.Pa)}); g.J(this,this.B);this.Aa=Y(function(){return new MZ(f.K,f.xa,f.Pa,f.B,null,null)}); g.J(this,this.Aa);this.Db=Y(function(){return new P0(b)}); g.J(this,this.Db);this.La=Y(function(){return new Q0}); g.J(this,this.La);this.i=Y(function(){return new E_(b,f.hc,f.Pa)}); g.J(this,this.i);this.dc=new m_(this.Pa,this.B,this.i);g.J(this,this.dc);this.Ja=Y(function(){return new F_(b,f.i)}); g.J(this,this.Ja);this.Qa=Y(function(){return new u_(f.Ja,b)}); g.J(this,this.Qa);this.Va=Y(function(){return new z_(b,f.C,f.Qa,f.i)}); g.J(this,this.Va);this.ac=Y(function(){return new K_}); g.J(this,this.ac);this.Xb=new w0(x0,s1,function(l,m,n,p){return ZZ(f.xa.get(),l,m,n,p)},this.J,this.K,this.B,this.Pa,this.i); g.J(this,this.Xb);this.qc=new nA(this.J,this.Aa,c,this.Pa,a,this.i,this.Ja);g.J(this,this.qc);var h=new o_(b,this.qc,this.Ja,this.i);this.ob=Y(function(){return h}); this.Sn=h;this.Ta=new SZ(this.J,this.K,this.N,this.ob);g.J(this,this.Ta);this.wc=new fA(this.J,this.K,this.Aa,this.i,this.Ta,c);g.J(this,this.wc);this.eb=Y(function(){return new Q_(f.Xa,f.xa,f.B)}); g.J(this,this.eb);this.V=Y(function(){return new R_}); g.J(this,this.V);this.Ha=new C0(a,this.Ba);g.J(this,this.Ha);this.u=new D0(a);g.J(this,this.u);this.Ma=new E0(a,this.ob);g.J(this,this.Ma);this.tb=new F0(a,this.N,this.Ja,this.i);g.J(this,this.tb);this.D=new H0(a);g.J(this,this.D);this.Fb=new I0(a);g.J(this,this.Fb);this.ea=Y(function(){return new y0}); g.J(this,this.ea);this.Yb=Y(function(){return new z0(f.Ja)}); g.J(this,this.Yb);this.bb=Y(function(){return new T_(f.wc)}); g.J(this,this.bb);this.vb=Y(function(){return new Y_(f.Va,f.D)}); g.J(this,this.vb);this.Ab=Y(function(){return new f0(f.Ba,f.Ja,f.Va,f.C,c)}); g.J(this,this.Ab);this.Pb=Y(function(){return new u0(a,f.D,f.Va,f.Qa,f.ac,f.zd,f.i,f.Ja,f.N,f.Zc,f.Hc,f.rb,f.gb,f.Db,f.Pa)}); g.J(this,this.Pb);this.uc=new J0(a,this.La,this.B,this.i,this.ma,this.Pa);g.J(this,this.uc);this.Fd={eq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Xb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ta]]),Jl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eb],["SLOT_TYPE_FORECASTING",this.V],["SLOT_TYPE_IN_PLAYER",this.V],["SLOT_TYPE_PLAYER_BYTES", this.V]]),Th:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ha],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.Ma],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.tb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.D],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.D],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ma],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Fb]]),ym:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ea],["SLOT_TYPE_FORECASTING",this.ea],["SLOT_TYPE_IN_PLAYER",this.ea],["SLOT_TYPE_PLAYER_BYTES",this.Yb]]),Xl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.bb],["SLOT_TYPE_FORECASTING", this.vb],["SLOT_TYPE_IN_PLAYER",this.Ab],["SLOT_TYPE_PLAYER_BYTES",this.Pb]])};this.listeners=[this.C.get()];this.xe={wc:this.wc,hk:null,Zl:this.La.get(),jg:this.Pa.get(),Yn:this.Ja.get(),qc:this.qc,Yl:null,Ai:this.Ha,fh:this.C.get()}}; t1=function(a,b,c,d,e,f,h,l,m){d0.call(this,a,b,c,d,e,f,h,m);this.J=l}; IKa=function(){var a=IJa();a.ge.push("metadata_type_ad_info_ad_metadata");return a}; JKa=function(a,b,c,d,e,f){this.u=a;this.Ja=b;this.Va=c;this.B=d;this.i=e;this.Jd=f}; KKa=function(a,b,c,d,e){g.I.call(this);var f=this;this.ma=Y(function(){return new UZ}); g.J(this,this.ma);this.xa=Y(function(){return new YZ(f.ma)}); g.J(this,this.xa);this.C=Y(function(){return new TZ}); g.J(this,this.C);this.J=Y(function(){return new PZ(a)}); g.J(this,this.J);this.K=Y(function(){return new k_(f.ma)}); g.J(this,this.K);this.hc=Y(function(){return new n_}); g.J(this,this.hc);this.gb=Y(function(){return new gKa(b)}); g.J(this,this.gb);this.ob=Y(function(){return new GH(b.W())}); g.J(this,this.ob);this.Ba=Y(function(){return new L0(b)}); g.J(this,this.Ba);this.tb=Y(function(){return new J_(e)}); g.J(this,this.tb);this.Zc=Y(function(){return new WJ(b)}); g.J(this,this.Zc);this.N=Y(function(){return new p_(b)}); g.J(this,this.N);this.zd=Y(function(){return new O0(b)}); g.J(this,this.zd);this.Hc=Y(function(){return new q_(b)}); g.J(this,this.Hc);this.Pa=Y(function(){return new r_(b)}); g.J(this,this.Pa);this.bb=Y(function(){return new K0(d)}); g.J(this,this.bb);this.B=Y(function(){return new RY(f.Pa)}); g.J(this,this.B);this.Aa=Y(function(){return new MZ(f.K,f.xa,f.Pa,f.B,null,null)}); g.J(this,this.Aa);this.Db=Y(function(){return new P0(b)}); g.J(this,this.Db);this.Qa=Y(function(){return new Q0}); g.J(this,this.Qa);this.i=Y(function(){return new E_(b,f.hc,f.Pa)}); g.J(this,this.i);this.dc=new m_(this.Pa,this.B,this.i);g.J(this,this.dc);this.Ja=Y(function(){return new F_(b,f.i)}); g.J(this,this.Ja);this.Ta=Y(function(){return new u_(f.Ja,b)}); g.J(this,this.Ta);this.Va=Y(function(){return new z_(b,f.C,f.Ta,f.i)}); g.J(this,this.Va);this.ac=Y(function(){return new K_}); g.J(this,this.ac);this.Xb=new w0(UJa,s1,function(l,m,n,p){return aJa(f.xa.get(),l,m,n,p)},this.J,this.K,this.B,this.Pa,this.i); g.J(this,this.Xb);this.qc=new nA(this.J,this.Aa,c,this.Pa,a,this.i,this.Ja);g.J(this,this.qc);var h=new o_(b,this.qc,this.Ja,this.i);this.vb=Y(function(){return h}); this.Sn=h;this.Xa=new SZ(this.J,this.K,this.N,this.vb);g.J(this,this.Xa);this.wc=new fA(this.J,this.K,this.Aa,this.i,this.Xa,c);g.J(this,this.wc);this.rb=Y(function(){return new Q_(f.bb,f.xa,f.B)}); g.J(this,this.rb);this.V=Y(function(){return new R_}); g.J(this,this.V);this.Ha=new C0(a,this.Ba);g.J(this,this.Ha);this.u=new D0(a);g.J(this,this.u);this.Ma=new E0(a,this.vb);g.J(this,this.Ma);this.La=new F0(a,this.N,this.Ja,this.i);g.J(this,this.La);this.D=new H0(a);g.J(this,this.D);this.Fb=new I0(a);g.J(this,this.Fb);this.ea=Y(function(){return new y0}); g.J(this,this.ea);this.Yb=Y(function(){return new z0(f.Ja)}); g.J(this,this.Yb);this.eb=Y(function(){return new T_(f.wc)}); g.J(this,this.eb);this.Ab=Y(function(){return new Y_(f.Va,f.D)}); g.J(this,this.Ab);this.Pb=Y(function(){return new u0(a,f.D,f.Va,f.Ta,f.ac,f.zd,f.i,f.Ja,f.N,f.Zc,f.Hc,f.ob,f.tb,f.Db,f.Pa)}); g.J(this,this.Pb);this.uc=Y(function(){return new JKa(f.Ba,f.Ja,f.Va,f.C,f.gb,c)}); g.J(this,this.uc);this.Fc=new J0(a,this.Qa,this.B,this.i,this.ma,this.Pa);g.J(this,this.Fc);this.Fd={eq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Xb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Xa]]),Jl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rb],["SLOT_TYPE_FORECASTING",this.V],["SLOT_TYPE_IN_PLAYER",this.V],["SLOT_TYPE_PLAYER_BYTES", this.V]]),Th:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ha],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.Ma],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.La],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.D],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.D],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ma],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Fb]]),ym:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ea],["SLOT_TYPE_FORECASTING",this.ea],["SLOT_TYPE_IN_PLAYER",this.ea],["SLOT_TYPE_PLAYER_BYTES",this.Yb]]),Xl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.eb],["SLOT_TYPE_FORECASTING",this.Ab],["SLOT_TYPE_IN_PLAYER",this.uc],["SLOT_TYPE_PLAYER_BYTES",this.Pb]])};this.listeners=[this.C.get()];this.xe={wc:this.wc,hk:null,Zl:this.Qa.get(),jg:this.Pa.get(),Yn:this.Ja.get(),qc:this.qc,Yl:null,Ai:this.Ha,fh:this.C.get()}}; LKa=function(a,b,c,d,e,f){this.i=a;this.Ja=b;this.Va=c;this.u=d;this.B=e;this.Jd=f}; MKa=function(a,b,c,d,e){g.I.call(this);var f=this;this.xa=Y(function(){return new UZ}); g.J(this,this.xa);this.Aa=Y(function(){return new YZ(f.xa)}); g.J(this,this.Aa);this.C=Y(function(){return new TZ}); g.J(this,this.C);this.D=Y(function(){return new PZ(a)}); g.J(this,this.D);this.J=Y(function(){return new k_(f.xa)}); g.J(this,this.J);this.tb=Y(function(){return new n_}); g.J(this,this.tb);this.Fb=Y(function(){return new gKa(b)}); g.J(this,this.Fb);this.Pb=Y(function(){return new GH(b.W())}); g.J(this,this.Pb);this.Ma=Y(function(){return new L0(b)}); g.J(this,this.Ma);this.Xb=Y(function(){return new J_(e)}); g.J(this,this.Xb);this.Zc=Y(function(){return new WJ(b)}); g.J(this,this.Zc);this.V=Y(function(){return new p_(b)}); g.J(this,this.V);this.zd=Y(function(){return new O0(b)}); g.J(this,this.zd);this.Hc=Y(function(){return new q_(b)}); g.J(this,this.Hc);this.Pa=Y(function(){return new r_(b)}); g.J(this,this.Pa);this.vb=Y(function(){return new K0(d)}); g.J(this,this.vb);this.B=Y(function(){return new RY(f.Pa)}); g.J(this,this.B);this.Ha=Y(function(){return new MZ(f.J,f.Aa,f.Pa,f.B,null,f.Xa,3)}); g.J(this,this.Ha);this.hc=Y(function(){return new P0(b)}); g.J(this,this.hc);this.eb=Y(function(){return new Q0}); g.J(this,this.eb);this.i=Y(function(){return new E_(b,f.tb,f.Pa)}); g.J(this,this.i);this.dc=new m_(this.Pa,this.B,this.i);g.J(this,this.dc);this.N=Y(function(){return new N0(b,f.i,f.Pa,f.Va)}); g.J(this,this.N);this.Ba=Y(function(){return new c1(b)}); g.J(this,this.Ba);this.Ja=Y(function(){return new F_(b,f.i)}); g.J(this,this.Ja);this.Vc=Y(function(){return new K_}); this.rb=Y(function(){return new u_(f.Ja,b)}); g.J(this,this.rb);this.Va=Y(function(){return new z_(b,f.C,f.rb,f.i)}); g.J(this,this.Va);this.qc=new nA(this.D,this.Ha,c,this.Pa,a,this.i,this.Ja);g.J(this,this.qc);var h=new o_(b,this.qc,this.Ja,this.i,this.N);this.Qa=Y(function(){return h}); this.Sn=h;this.Nc=new w0(VJa,s1,function(l,m,n,p){return aJa(f.Aa.get(),l,m,n,p)},this.D,this.J,this.B,this.Pa,this.i); g.J(this,this.Nc);this.Xa=new v0(this.D,this.J,this.i,this.Qa,this.N,this.Ja,this.Pa,this.Ba);g.J(this,this.Xa);this.ob=new SZ(this.D,this.J,this.V,this.Qa);g.J(this,this.ob);this.wc=new fA(this.D,this.J,this.Ha,this.i,this.ob,c);g.J(this,this.wc);this.Db=Y(function(){return new Q_(f.vb,f.Aa,f.B,f.Ba)}); g.J(this,this.Db);this.ea=Y(function(){return new R_}); g.J(this,this.ea);this.La=new C0(a,this.Ma);g.J(this,this.La);this.u=new D0(a);g.J(this,this.u);this.Ta=new E0(a,this.Qa);g.J(this,this.Ta);this.bb=new F0(a,this.V,this.Ja,this.i);g.J(this,this.bb);this.gb=new b1(a,this.i);g.J(this,this.gb);this.K=new H0(a);g.J(this,this.K);this.uc=new I0(a);g.J(this,this.uc);this.ma=Y(function(){return new y0}); g.J(this,this.ma);this.Oc=Y(function(){return new z0(f.Ja)}); g.J(this,this.Oc);this.Ab=Y(function(){return new T_(f.wc)}); g.J(this,this.Ab);this.Yb=Y(function(){return new Y_(f.Va,f.K)}); g.J(this,this.Yb);this.Fc=Y(function(){return new Z0(a,f.K,f.i,f.Ba,f.Ja,f.Va,f.tb,f.N,f.rb,f.Vc,f.zd,f.V,f.Zc,f.Hc,f.Pb,f.Xb,f.hc,f.Pa,f.C)}); g.J(this,this.Fc);this.ac=Y(function(){return new LKa(f.Ma,f.Ja,f.Va,f.C,f.Fb,c)}); g.J(this,this.ac);this.Uc=new J0(a,this.eb,this.B,this.i,this.xa,this.Pa);g.J(this,this.Uc);this.Fd={eq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Xa],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Nc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ob]]),Jl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Db],["SLOT_TYPE_FORECASTING",this.ea], ["SLOT_TYPE_IN_PLAYER",this.ea],["SLOT_TYPE_PLAYER_BYTES",this.ea]]),Th:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.La],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED", this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ta],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.bb],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.bb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.gb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.gb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.K],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.K],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ta],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.uc]]),ym:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.ma],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES",this.Oc]]),Xl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ab],["SLOT_TYPE_FORECASTING",this.Yb],["SLOT_TYPE_PLAYER_BYTES",this.Fc],["SLOT_TYPE_IN_PLAYER",this.ac]])};this.listeners=[this.C.get()];this.xe={wc:this.wc,hk:null,Zl:this.eb.get(),jg:this.Pa.get(),Yn:this.Ja.get(),qc:this.qc,Yl:null,Ai:this.La,fh:this.C.get()}}; u1=function(a,b,c,d){g.I.call(this);var e=this;this.i=NKa(function(){return e.u},a,b,c,d); g.J(this,this.i);this.u=(new rZ(this.i)).B();g.J(this,this.u)}; NKa=function(a,b,c,d,e){try{var f=b.W();if(g.EF(f))var h=new DKa(a,b,c,d,e);else if(g.HF(f))h=new FKa(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===f.deviceParams.c)h=new HKa(a,b,c,d,e);else if(vF(f))h=new GKa(a,b,c,d,e);else if(g.oF(f))h=new KKa(a,b,c,d,e);else if(g.nF(f))h=new MKa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.W(),S("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,interface:e.deviceParams.c, R$:e.deviceParams.cver,Q$:e.deviceParams.ctheme,P$:e.deviceParams.cplayer,caa:e.playerStyle}),new vJa(a,b,c,d)}}; v1=function(a,b){this.i=a;this.hk=b}; w1=function(a){xL.call(this,a)}; x1=function(a,b,c,d,e){EL.call(this,a,b,{G:"div",L:"ytp-ad-timed-pie-countdown-container",T:[{G:"svg",L:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},T:[{G:"circle",L:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e);this.B=this.Fa("ytp-ad-timed-pie-countdown-inner");this.u=Math.ceil(10*Math.PI); this.hide()}; y1=function(a,b,c,d,e,f){$K.call(this,a,b,{G:"div",L:"ytp-ad-action-interstitial",X:{tabindex:"0"},T:[{G:"div",L:"ytp-ad-action-interstitial-background-container"},{G:"div",L:"ytp-ad-action-interstitial-slot",T:[{G:"div",L:"ytp-ad-action-interstitial-card",T:[{G:"div",L:"ytp-ad-action-interstitial-image-container"},{G:"div",L:"ytp-ad-action-interstitial-headline-container"},{G:"div",L:"ytp-ad-action-interstitial-description-container"},{G:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]}, "ad-action-interstitial",c,d);this.Dg=e;this.Li=f;this.navigationEndpoint=this.i=this.skipButton=this.u=this.actionButton=null;this.Ha=this.Fa("ytp-ad-action-interstitial-image-container");this.C=new tL(this.api,this.Za,this.layoutId,this.yb,"ytp-ad-action-interstitial-image");g.J(this,this.C);this.C.Ea(this.Ha);this.Ba=this.Fa("ytp-ad-action-interstitial-headline-container");this.V=new CL(this.api,this.Za,this.layoutId,this.yb,"ytp-ad-action-interstitial-headline");g.J(this,this.V);this.V.Ea(this.Ba); this.Aa=this.Fa("ytp-ad-action-interstitial-description-container");this.K=new CL(this.api,this.Za,this.layoutId,this.yb,"ytp-ad-action-interstitial-description");g.J(this,this.K);this.K.Ea(this.Aa);this.Ta=this.Fa("ytp-ad-action-interstitial-background-container");this.D=new tL(this.api,this.Za,this.layoutId,this.yb,"ytp-ad-action-interstitial-background",!0);g.J(this,this.D);this.D.Ea(this.Ta);this.La=this.Fa("ytp-ad-action-interstitial-action-button-container");this.B=new gy;g.J(this,this.B);this.hide()}; OKa=function(a){var b=g.rg("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)}; z1=function(a,b,c,d){$K.call(this,a,b,{G:"div",L:"ytp-ad-overlay-slot",T:[{G:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d);this.K=[];this.Xa=this.Aa=this.C=this.Ta=this.Ha=null;this.La=!1;this.D=null;this.V=0;a=this.Fa("ytp-ad-overlay-container");this.Ba=new NL(a,45E3,6E3,.3,.4);g.J(this,this.Ba);this.B=PKa(this);g.J(this,this.B);this.B.Ea(a);this.u=QKa(this);g.J(this,this.u);this.u.Ea(a);this.i=RKa(this);g.J(this,this.i);this.i.Ea(a);this.hide()}; PKa=function(a){var b=new g.ZK({G:"div",L:"ytp-ad-text-overlay",T:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",T:[{G:"button",L:"ytp-ad-overlay-close-button",T:[mL(A1)]}]},{G:"div",L:"ytp-ad-overlay-title",va:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",va:"{{description}}"},{G:"div",Ia:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],va:"{{displayUrl}}"}]});a.S(b.Fa("ytp-ad-overlay-title"),"click",function(c){return B1(a,b.element, c)}); a.S(b.Fa("ytp-ad-overlay-link"),"click",function(c){return B1(a,b.element,c)}); a.S(b.Fa("ytp-ad-overlay-close-container"),"click",a.Ci);b.hide();return b}; QKa=function(a){var b=new g.ZK({G:"div",Ia:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],T:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",T:[{G:"button",L:"ytp-ad-overlay-close-button",T:[mL(A1)]}]},{G:"div",L:"ytp-ad-overlay-text-image",T:[{G:"img",X:{src:"{{imageUrl}}"}}]},{G:"div",L:"ytp-ad-overlay-title",va:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",va:"{{description}}"},{G:"div",Ia:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], va:"{{displayUrl}}"}]});a.S(b.Fa("ytp-ad-overlay-title"),"click",function(c){return B1(a,b.element,c)}); a.S(b.Fa("ytp-ad-overlay-link"),"click",function(c){return B1(a,b.element,c)}); a.S(b.Fa("ytp-ad-overlay-close-container"),"click",a.Ci);a.S(b.Fa("ytp-ad-overlay-text-image"),"click",a.uV);b.hide();return b}; RKa=function(a){var b=new g.ZK({G:"div",L:"ytp-ad-image-overlay",T:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",T:[{G:"button",L:"ytp-ad-overlay-close-button",T:[mL(A1)]}]},{G:"div",L:"ytp-ad-overlay-image",T:[{G:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.S(b.Fa("ytp-ad-overlay-image"),"click",function(c){return B1(a,b.element,c)}); a.S(b.Fa("ytp-ad-overlay-close-container"),"click",a.Ci);b.hide();return b}; C1=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.yz(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.rg("video-ads ytp-ad-module")||null,null==b)g.yz(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Aa=new g.ZK({G:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.J(a,a.Aa),a.Aa.Ea(b),b=new BL(a.api,a.Za,a.layoutId,a.yb,a.Aa.element,!1),g.J(a,b),b.init(EH("ad-info-hover-text-button"),c, a.macros),a.D){b.Ea(a.D,0);b.subscribe("f",a.DS,a);b.subscribe("e",a.yE,a);a.S(a.D,"click",a.ES);var d=g.rg("ytp-ad-button",b.element);a.S(d,"click",function(){var e,f,h;if(null===(h=null===(f=null===(e=c.button)||void 0===e?void 0:e.buttonRenderer)||void 0===f?void 0:f.serviceEndpoint)||void 0===h?0:h.adInfoDialogEndpoint)a.La=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)}); a.Xa=b}else g.yz(Error("Ad info button container within overlay ad was not present."))}else g.zz(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; SKa=function(a){return a.C&&a.C.closeButton&&a.C.closeButton.buttonRenderer&&(a=a.C.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]}; TKa=function(a,b){if(D1(a,E1)||a.api.Fe())return!1;var c=aL(b.title),d=aL(b.description);if(g.xc(c)||g.xc(d))return!1;a.Qg(a.B.element,b.trackingParams||null);a.B.Ua("title",aL(b.title));a.B.Ua("description",aL(b.description));a.B.Ua("displayUrl",aL(b.displayUrl));b.navigationEndpoint&&tb(a.K,b.navigationEndpoint);a.B.show();a.Ba.start();a.jb(a.B.element,!0);a.S(a.B.element,"mouseover",function(){a.V++}); return!0}; UKa=function(a,b){if(D1(a,E1)||a.api.Fe())return!1;var c=aL(b.title),d=aL(b.description);if(g.xc(c)||g.xc(d))return!1;a.Qg(a.u.element,b.trackingParams||null);a.u.Ua("title",aL(b.title));a.u.Ua("description",aL(b.description));a.u.Ua("displayUrl",aL(b.displayUrl));a.u.Ua("imageUrl",wsa(b.image));b.navigationEndpoint&&tb(a.K,b.navigationEndpoint);a.Ta=b.imageNavigationEndpoint||null;a.u.show();a.Ba.start();a.jb(a.u.element,!0);a.S(a.u.element,"mouseover",function(){a.V++}); return!0}; VKa=function(a,b){if(a.api.Fe())return!1;var c=xsa(b.image),d=c;c.widthdocument.documentMode)c=Wc;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.Cg("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Uga(d.style)}b=xaa(c,Yc({"background-image":'url("'+b+'")'}));a.style.cssText=Uc(b)}}; fLa=function(a){var b=g.rg("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)}; Q1=function(a,b){xL.call(this,a);this.api=a;this.u={};this.J=b;a=new g.W({G:"div",Ia:["video-ads","ytp-ad-module"]});g.J(this,a);cF&&g.N(a.element,"ytp-ads-tiny-mode");this.C=new TK(a.element);g.J(this,this.C);g.UM(this.api,a.element,4);g.J(this,Nsa())}; gLa=function(a,b){a=Yb(a.u,b.id,null);null==a&&g.zz(Error("Component not found for element id: "+b.id));return a||null}; R1=function(a){g.fN.call(this,a);var b=this;this.u=this.Za=null;this.created=!1;this.So=new AK(this.player);this.B=function(){function d(){return b.Za} if(null!=b.u)return b.u;var e=Yra({kp:a.getVideoData(1)});e=new zHa({fQ:new v1(function(){return b.Za},b.i.i.xe.hk), Vo:e.XQ(),uQ:d,uS:d,Ai:b.i.i.xe.Ai,Ph:e.eD(),I:b.player,jg:b.i.i.xe.jg,Va:b.i.i.Va,fh:b.i.i.xe.fh,Hc:b.i.i.Hc});b.u=e.TO;return b.u}; this.i=new u1(this.player,this,this.So,this.B);g.J(this,this.i);var c=a.W();!tF(c)||g.nF(c)||vF(c)||(g.J(this,new Q1(a,function(){return b.Za})),g.J(this,new w1(a)))}; hLa=function(a){a.created!==a.loaded&&S("Created and loaded are out of sync")}; S1=function(a,b){b===a.Qo&&(a.Qo=void 0)}; iLa=function(a){a.Za?a.i.i.xe.qc.tD()||a.Za.tD()||a.i.i.xe.Yn.rp():S("AdService is null when calling maybeUnlockPrerollIfReady")}; jLa=function(a){a=g.r(a.i.i.xe.fh.Mi.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.sb&&"core"===b.kb)return!0;return!1}; kLa=function(a){a=g.r(a.i.i.xe.fh.Mi.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1}; hA=function(a,b,c){c=void 0===c?"":c;var d=a.i.i.xe.jg,e=a.player.getVideoData(1),f=e&&e.getPlayerResponse()||{};f=f&&f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;e=e&&e.Sf()||!1;d=lLa(b,d,f,e);Zia(a.i.i.xe.wc,c,d.Mz,b);a.Za&&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;c=e}}); ia("Array.prototype.find",function(a){return a?a:function(b,c){return Ca(this,b,c).zN}}); ia("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ba(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h=f}}); ia("String.prototype.repeat",function(a){return a?a:function(b){var c=Ba(this,null,"repeat");if(0>b||1342177279>>=1)c+=c;return d}}); ia("Array.prototype.entries",function(a){return a?a:function(){return Da(this,function(b,c){return[b,c]})}}); ia("Object.setPrototypeOf",function(a){return a||oa}); ia("Promise",function(a){function b(h){this.i=0;this.B=void 0;this.u=[];this.K=!1;var l=this.C();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}} function c(){this.i=null} function d(h){return h instanceof b?h:new b(function(l){l(h)})} if(a)return a;c.prototype.u=function(h){if(null==this.i){this.i=[];var l=this;this.B(function(){l.D()})}this.i.push(h)}; var e=fa.setTimeout;c.prototype.B=function(h){e(h,0)}; c.prototype.D=function(){for(;this.i&&this.i.length;){var h=this.i;this.i=[];for(var l=0;lb?-c:c}}); ia("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}}); ia("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(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);c>>0);eaa=0;g.Qa(Ta,Error);Ta.prototype.name="CustomError";var lg;g.Qa(Ua,Ta);Ua.prototype.name="AssertionError";var Od,Laa="undefined"!==typeof TextDecoder;var gb,Dm,zn;gb=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.Db=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;f/g,Cc=/"/g,Dc=/'/g,Ec=/\x00/g,uaa=/[\x00&<>"']/;g.k=g.Lc.prototype;g.k.Ek=!0;g.k.Ih=function(){return this.i.toString()}; g.k.xD=!0;g.k.Lr=function(){return 1}; g.k.toString=function(){return this.i.toString()}; var waa=RegExp('^(?:audio/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font/\\w+|image/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|video/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\\w+=(?:\\w+|"[\\w;,= ]+"))*$',"i"),vaa=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Oc=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Kc={},Pc=new g.Lc("about:invalid#zClosurez",Kc);var Sc={};Tc.prototype.Ih=function(){return this.i}; Tc.prototype.toString=function(){return this.i.toString()}; var Wc=new Tc("",Sc),zaa=RegExp("^[-,.\"'%_!# a-zA-Z0-9\\[\\]]+$"),$c=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Zc=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|var)\\([-+*/0-9a-z.%\\[\\], ]+\\)","g"),Aaa=/\/\*/;a:{var xLa=g.C.navigator;if(xLa){var yLa=xLa.userAgent;if(yLa){g.ad=yLa;break a}}g.ad=""};var fd={};gd.prototype.Lr=function(){return this.u}; gd.prototype.Ih=function(){return this.i.toString()}; gd.prototype.toString=function(){return this.i.toString()}; var zLa=/^[a-zA-Z0-9-]+$/,ALa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},BLa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},kd=new gd(g.C.trustedTypes&&g.C.trustedTypes.emptyHTML||"",0,fd);var Gaa=ab(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=g.hd(kd);return!b.parentElement}),Haa=/^[\w+/_-]+[=]{0,2}$/;g.CLa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Kaa="function"===typeof Uint8Array.prototype.slice,Bd,qe=0,re=0;Gd.prototype.clone=function(){return Id(this.u,this.C,this.B-this.C)}; Gd.prototype.clear=function(){this.u=null;this.i=this.B=this.C=0;this.Al=this.D=!1}; Gd.prototype.reset=function(){this.i=this.C}; Gd.prototype.advance=function(a){this.i+=a}; var Hd=[];Ld.prototype.reset=function(){this.i.reset();this.u=this.C=-1}; Ld.prototype.advance=function(a){this.i.advance(a)};Rd.prototype.push=function(a){if(!(this.u+1parseFloat(Y1)){X1=String($1);break a}}X1=Y1}var ae=X1,Maa={},a2;if(g.C.document&&g.ke){var GLa=$d();a2=GLa?GLa:parseInt(ae,10)||void 0}else a2=void 0;var Naa=a2;var mF,xH;g.mj=cd();mF=Ud()||bd("iPod");xH=bd("iPad");g.eF=bd("Android")&&!(dd()||cd()||bd("Opera")||bd("Silk"));g.lj=dd();g.nj=ed()&&!Vd();var ee={},le=null;var we="function"===typeof Uint8Array,Paa={UR:{value:!0,configurable:!0}},Ze;g.k=Ce.prototype;g.k.isFrozen=function(){return!1}; g.k.toJSON=function(){var a=this.ph(!1);return Ze?a:ze(a)}; g.k.ph=function(a){if(this.u){if(this.B){var b=this.map,c;for(c in b)if(Object.prototype.hasOwnProperty.call(b,c)){var d=b[c].i;d&&d.ph(a)}}}else{this.i.length=0;b=Ee(this);b.sort();for(c=0;c>>0);g.Qa(g.Wf,g.I);g.Wf.prototype[Ef]=!0;g.k=g.Wf.prototype;g.k.addEventListener=function(a,b,c,d){Lf(this,a,b,c,d)}; g.k.removeEventListener=function(a,b,c,d){Sf(this,a,b,c,d)}; g.k.dispatchEvent=function(a){var b=this.La;if(b){var c=[];for(var d=1;b;b=b.La)c.push(b),++d}b=this.ob;d=a.type||a;if("string"===typeof a)a=new g.xf(a,b);else if(a instanceof g.xf)a.target=a.target||b;else{var e=a;a=new g.xf(d,b);g.ec(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=Xf(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=Xf(h,d,!0,a)&&e,a.u||(e=Xf(h,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.i.cookie=a+"="+b+c+h+l+d+(null!=e?";samesite="+ e:"")}; g.k.get=function(a,b){for(var c=a+"=",d=(this.i.cookie||"").split(";"),e=0,f;e2*this.size&&li(this),!0):!1}; g.k.get=function(a,b){return ki(this.u,a)?this.u[a]:b}; g.k.set=function(a,b){ki(this.u,a)||(this.size+=1,this.i.push(a),this.Go++);this.u[a]=b}; g.k.forEach=function(a,b){for(var c=this.ri(),d=0;d=d.i.length)throw g.ii;var f=d.i[b++];return a?f:d.u[f]}; e.next=e.i.bind(e);return e};var oi=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Ei=/#|$/,yba=/[?&]($|#)/;g.Qa(g.Ii,g.Wf);var Cba=/^https?$/i,JLa=["POST","PUT"],Ji=[];g.k=g.Ii.prototype;g.k.tQ=function(){this.dispose();g.ob(Ji,this)}; g.k.send=function(a,b,c,d){if(this.i)throw Error("[goog.net.XhrIo] Object is active with another request="+this.V+"; newUri="+a);b=b?b.toUpperCase():"GET";this.V=a;this.C="";this.u=0;this.Ta=b;this.Ha=!1;this.D=!0;this.i=this.Ba?this.Ba.i():c2.i();this.Aa=this.Ba?this.Ba.getOptions():c2.getOptions();this.i.onreadystatechange=(0,g.D)(this.EL,this);try{Uh(Xi(this,"Opening Xhr")),this.Ma=!0,this.i.open(b,String(a),!0),this.Ma=!1}catch(f){Uh(Xi(this,"Error opening Xhr: "+f.message));Ui(this,f);return}a= c||"";var e=this.headers.clone();d&&xba(d,function(f,h){e.set(h,f)}); d=e.ri().find(function(f){return"content-type"==f.toLowerCase()}); c=g.C.FormData&&a instanceof g.C.FormData;!g.ib(JLa,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(f,h){this.i.setRequestHeader(h,f)},this); this.Qa&&(this.i.responseType=this.Qa);"withCredentials"in this.i&&this.i.withCredentials!==this.N&&(this.i.withCredentials=this.N);try{$i(this),0d&&this.Hau||401===u||0===u)c.u=x.concat(c.u),c.Aa||c.i.enabled||c.i.start();b&&b("net-send-failed",u)},t=function(){c.Ma?c.Ma.send(n,p,q):c.gb(n,p,q)}; m?m.then(function(u){n.nq["Content-Encoding"]="gzip";n.nq["Content-Type"]="application/binary";n.body=u;n.mQ=2;t()},function(){t()}):t()}}}}; g.k.Vu=function(){this.flush()}; g.w(sj,g.xf);tj.prototype.Ve=function(){var a=new pj(1654,this.ma?this.ma:Sh,"0",this.J,this.B,this.C,!1,void 0,void 0,void 0,this.K?this.K:void 0);if(this.V){var b=this.V;Le(b,1)||Me(b,1,1);Xe(a.D,1,b)}if(this.u){b=this.u;var c=Ve(a.D,dj,1),d=Ve(c,cj,11);d||(d=new cj);Me(d,7,b);Xe(c,11,d);Le(c,1)||Me(c,1,1);Xe(a.D,1,c)}this.D&&(a.N=this.D);this.i&&(a.ea=this.i);this.N&&((b=this.N)?(a.C||(a.C=new Th),b=$e(b),Me(a.C,4,b)):a.C&&Me(a.C,4,void 0));this.xa&&(b=this.xa,a.C||(a.C=new Th),Re(a.C,2,b));this.ea&&(b=this.ea, a.Qa=!0,rj(a,b));return a};uj.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new Gh,c=[],d=0;d>>3;1!=f.B&&2!=f.B&&15!=f.B&&xk(f,h,l,"unexpected tag");f.u=1;f.i=0;f.C=0} function c(m){f.C++;5==f.C&&m&240&&xk(f,h,l,"message length too long");f.i|=(m&127)<<7*(f.C-1);m&128||(f.u=2,f.N=0,"undefined"!==typeof Uint8Array?f.D=new Uint8Array(f.i):f.D=Array(f.i),0==f.i&&e())} function d(m){f.D[f.N++]=m;f.N==f.i&&e()} function e(){if(15>f.B){var m={};m[f.B]=f.D;f.K.push(m)}f.u=0} for(var f=this,h=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?Fk(this,7):7==c?Fk(this,8):d||Fk(this,3)),this.u||(this.u=Tba(this.i),null==this.u&&Fk(this,5)),2this.B){var h=a.length;c=[];try{if(this.u.yx())for(var l=0;lthis.B){l=e.substr(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){Fk(this,5);Gk(this);break a}}4==b?(0!=e.length|| this.V?Fk(this,2):Fk(this,4),Gk(this)):Fk(this,1)}}}catch(p){Fk(this,6),Gk(this)}};g.k=Hk.prototype;g.k.dm=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this}; g.k.addListener=function(a,b){this.dm(a,b);return this}; g.k.removeListener=function(a,b){var c=this.u[a];c&&g.ob(c,b);(a=this.i[a])&&g.ob(a,b);return this}; g.k.once=function(a,b){var c=this.i[a];c||(c=[],this.i[a]=c);c.push(b);return this}; g.k.vT=function(a){var b=this.u.data;b&&Ik(a,b);(b=this.i.data)&&Ik(a,b);this.i.data=[]}; g.k.oV=function(){switch(this.B.getStatus()){case 1:Jk(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Jk(this,"error");break;case 8:Jk(this,"close");break;case 2:Jk(this,"end")}};Kk.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Lk(function(h){var l=h.yy(),m=h.getMetadata(),n=Nk(e,!1);m=Ok(e,m,n,f+l.getName());var p=Pk(n,l.u,!0);h=l.i(h.i);n.send(m,"POST",h);return p},this.C).call(this,Hj(d,b,c))};Qk.prototype.create=function(a,b){return Mk(this.i,"https://waa-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},KLa)};Sk.prototype.snapshot=function(a){if(this.i)throw Error("Already disposed");return this.u.then(function(b){var c=b.lQ;return new Promise(function(d){c(function(e){d(e)},[a.CI, a.paa])})})}; Sk.prototype.dispose=function(){this.i=!0;this.u.then(function(a){(a=a.yW)&&a()})}; Sk.prototype.isDisposed=function(){return this.i};var cl={};var Tk;g.w(Vk,Uk);Vk.prototype.toString=function(){return this.i.toString()};g.w(Xk,Wk);Xk.prototype.toString=function(){return this.i}; var eqa=new Xk("about:invalid#zTSz",cl);/* Copyright 2021 The Safevalues Authors SPDX-License-Identifier: Apache-2.0 */ fa.Object.defineProperties(dl.prototype,{u:{configurable:!0,enumerable:!0,get:function(){return this.i.a}}, B:{configurable:!0,enumerable:!0,get:function(){return this.i.b}}});g.w(fl,g.I);g.w(gl,fl);gl.prototype.rz=function(a){this.i+=1;var b=new dl(this.J(a.CI));a=b.u;b=Dd(b.B);var c=new jf;a=Me(c,1,a);a=Me(a,2,b);b=new lf;c=cf;b.i||(b.i={});var d=a?a.ph(!1):a;b.i[3]=a;a=Ue(b,3,c,d);b=new me;ue(b,1,df(a,gf,1),Saa);ue(b,2,df(a,hf,2),Taa);ue(b,3,df(a,jf,3),Uaa);ef(a,b);return pe(b)}; gl.prototype.B=function(){return this.i>=this.C}; gl.prototype.dispose=function(){this.D.dispose()}; g.w(hl,fl);hl.prototype.rz=function(){return this.i}; hl.prototype.B=function(){return!1}; el.prototype.isReady=function(){return!!this.Ju}; el.prototype.ready=function(){return g.H(this,function b(){var c=this;return g.B(b,function(d){return g.z(d,c.JK,0)})})}; el.prototype.rz=function(a){if(!this.isReady())throw Error("Not ready");try{var b=this.Ju,c=Date.now();void 0!==b.u&&this.logger.ez(ica(b.u));try{var d=b.rz(a)}catch(e){throw kl(this,5,e);}b.B()&&il(this,1);this.logger.Pv("m",Date.now()-c);return d}catch(e){return this.onError(e instanceof Error?e:Error(String(e)),"Could not mint"),a="WE:",a=e instanceof mf?a+(e.code+":"+e.message+":"+e.stack):e instanceof Error?a+(e.message+":"+e.stack):a+(""+e),new Uint8Array(g.Wa(a.substring(0,2048)))}};var Tn;Tn=["av.default","js","unreleased"].slice(-1)[0];var rm=document,Al=window;var xfa={NONE:0,G0:1},Pca={NN:0,E7:1,D7:2,F7:3};nl.prototype.isVisible=function(){return this.Mp?.3<=this.Wc:.5<=this.Wc};var Mm={QY:0,V0:1},Nca={NONE:0,Y1:1,w1:2};ol.prototype.getValue=function(){return this.u}; g.w(pl,ol);pl.prototype.setValue=function(a){if(null!==this.u||!g.Tb(this.B,a))return!1;this.u=a;return!0}; g.w(ql,ol);ql.prototype.setValue=function(a){if(null!==this.u||"number"!==typeof a)return!1;this.u=a;return!0}; g.w(rl,ol);rl.prototype.setValue=function(a){if(null!==this.u||"string"!==typeof a)return!1;this.u=a;return!0};sl.prototype.disable=function(){this.u=!1}; sl.prototype.enable=function(){this.u=!0}; sl.prototype.isEnabled=function(){return this.u}; sl.prototype.reset=function(){this.i={};this.u=!0;this.B={}};var yfa=!g.ke&&!ed();xl.prototype.now=function(){return 0}; xl.prototype.u=function(){return 0}; xl.prototype.B=function(){return 0}; xl.prototype.i=function(){return 0};g.w(zl,xl);zl.prototype.now=function(){return yl()&&Al.performance.now?Al.performance.now():xl.prototype.now.call(this)}; zl.prototype.u=function(){return yl()&&Al.performance.memory?Al.performance.memory.totalJSHeapSize||0:xl.prototype.u.call(this)}; zl.prototype.B=function(){return yl()&&Al.performance.memory?Al.performance.memory.usedJSHeapSize||0:xl.prototype.B.call(this)}; zl.prototype.i=function(){return yl()&&Al.performance.memory?Al.performance.memory.jsHeapSizeLimit||0:xl.prototype.i.call(this)};var tca=ab(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); g.C.addEventListener("test",null,b)}catch(c){}return a});Fl.prototype.isVisible=function(){return 1===El(rm)};g.nc("csi.gstatic.com");g.nc("googleads.g.doubleclick.net");g.nc("pagead2.googlesyndication.com");g.nc("partner.googleadservices.com");g.nc("pubads.g.doubleclick.net");g.nc("securepubads.g.doubleclick.net");g.nc("tpc.googlesyndication.com");var wca=/https?:\/\/[^\/]+/,uca={HX:"allow-forms",IX:"allow-modals",JX:"allow-orientation-lock",KX:"allow-pointer-lock",LX:"allow-popups",MX:"allow-popups-to-escape-sandbox",OX:"allow-presentation",PX:"allow-same-origin",QX:"allow-scripts",RX:"allow-top-navigation",SX:"allow-top-navigation-by-user-activation"},zca=ab(function(){return vca()});g.k=Ll.prototype;g.k.getHeight=function(){return this.bottom-this.top}; g.k.clone=function(){return new Ll(this.top,this.right,this.bottom,this.left)}; g.k.contains=function(a){return this&&a?a instanceof Ll?a.left>=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.k.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.k.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.k.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.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};g.k=g.Ol.prototype;g.k.clone=function(){return new g.Ol(this.left,this.top,this.width,this.height)}; g.k.contains=function(a){return a instanceof g.eg?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.k.distance=function(a){var b=a.xe)return"";this.i.sort(function(p,q){return p-q}); c=null;b="";for(var f=0;f=n.length){e-=n.length;a+=n;b=this.B;break}c=null==c?h:c}}e="";null!=c&&(e=b+"trn="+c);return a+e+d};Fm.prototype.setInterval=function(a,b){return Al.setInterval(a,b)}; Fm.prototype.clearInterval=function(a){Al.clearInterval(a)}; Fm.prototype.setTimeout=function(a,b){return Al.setTimeout(a,b)}; Fm.prototype.clearTimeout=function(a){Al.clearTimeout(a)};Jm.prototype.getContext=function(){if(!this.i){if(!Al)throw Error("Context has not been set and window is undefined.");this.i=Em(Fm)}return this.i};g.w(Km,Ke);var Oca={g7:1,aQ:2,o5:3};uc(mc(g.nc("https://pagead2.googlesyndication.com/pagead/osd.js")));Nm.prototype.OE=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=d[0];d=1=this.K?a:this;b!==this.i?(this.D=this.i.D,Ln(this)):this.D!==this.i.D&&(this.D=this.i.D,Ln(this))}; g.k.Fn=function(a){if(a.u===this.i){var b=this.B,c=this.N;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.B==a.B)b=b.i,c=a.i,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;this.B=a;!c&&Kn(this)}}; g.k.Qk=function(){return this.N}; g.k.dispose=function(){this.xa=!0}; g.k.isDisposed=function(){return this.xa};g.k=Mn.prototype;g.k.hB=function(){return!0}; g.k.Dt=function(){}; g.k.dispose=function(){if(!this.isDisposed()){var a=this.u;g.ob(a.C,this);a.N&&this.Qk()&&Jn(a);this.Dt();this.ea=!0}}; g.k.isDisposed=function(){return this.ea}; g.k.yn=function(){return this.u.yn()}; g.k.Ol=function(){return this.u.Ol()}; g.k.Mr=function(){return this.u.Mr()}; g.k.Ev=function(){return this.u.Ev()}; g.k.Ur=function(){}; g.k.Fn=function(){this.Qm()}; g.k.Qk=function(){return this.ma};g.k=Nn.prototype;g.k.Ol=function(){return this.i.Ol()}; g.k.Mr=function(){return this.i.Mr()}; g.k.Ev=function(){return this.i.Ev()}; g.k.create=function(a,b,c){var d=null;this.i&&(d=this.gx(a,b,c),Hn(this.i,d));return d}; g.k.yG=function(){return this.Et()}; g.k.Et=function(){return!1}; g.k.init=function(a){return this.i.initialize()?(Hn(this.i,this),this.C=a,!0):!1}; g.k.Ur=function(a){0==a.Ol()&&this.C(a.Mr(),this)}; g.k.Fn=function(){}; g.k.Qk=function(){return!1}; g.k.dispose=function(){this.D=!0}; g.k.isDisposed=function(){return this.D}; g.k.yn=function(){return{}};Qn.prototype.add=function(a,b,c){++this.B;var d=this.B/4096,e=this.i,f=e.push;a=new On(a,b,c);d=new On(a.u,a.i,a.B+d);f.call(e,d);this.u=!0;return this};Un.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Sn(this.i);0=h;h=!(0=h)||c;this.i[e].update(f&&l,d,!f||h)}};ho.prototype.update=function(a,b,c,d){this.K=-1!=this.K?Math.min(this.K,b.Wc):b.Wc;this.ma=Math.max(this.ma,b.Wc);this.xa=-1!=this.xa?Math.min(this.xa,b.oh):b.oh;this.Ba=Math.max(this.Ba,b.oh);this.bb.update(b.oh,c.oh,b.i,a,d);this.u.update(b.Wc,c.Wc,b.i,a,d);c=d||c.Mp!=b.Mp?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.i;this.La.update(c,a,b)}; ho.prototype.Op=function(){return this.La.B>=this.Xa};var ULa=new Ll(0,0,0,0);var wfa=new Ll(0,0,0,0);g.w(lo,g.I);g.k=lo.prototype;g.k.ya=function(){this.Rg.i&&(this.lp.eE&&(Dl(this.Rg.i,"mouseover",this.lp.eE),this.lp.eE=null),this.lp.cE&&(Dl(this.Rg.i,"mouseout",this.lp.cE),this.lp.cE=null));this.Qw&&this.Qw.dispose();this.Dd&&this.Dd.dispose();delete this.mz;delete this.VD;delete this.oN;delete this.Rg.Mn;delete this.Rg.i;delete this.lp;delete this.Qw;delete this.Dd;delete this.featureSet;g.I.prototype.ya.call(this)}; g.k.zn=function(){return this.Dd?this.Dd.i:this.position}; g.k.OE=function(a){Om().OE(a)}; g.k.Qk=function(){return!1}; g.k.By=function(){return new ho}; g.k.Xg=function(){return this.mz}; g.k.uJ=function(a){return oo(this,a,1E4)}; g.k.Ra=function(a,b,c,d,e,f,h){this.hs||(this.Ux&&(a=this.fC(a,c,e,h),d=d&&this.mf.Wc>=(this.Mp()?.3:.5),this.VF(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 Ll(0,0,0,0):a;a=this.u.B;b=e=d=0;0<(this.i.bottom-this.i.top)*(this.i.right-this.i.left)&&(this.fK(c)?c=new Ll(0,0,0,0):(d=Dn().C,b=new Ll(0,d.height,d.width,0),d=ko(c,this.i),e=ko(c,Dn().i),b=ko(c,b)));c=c.top>=c.bottom||c.left>=c.right?new Ll(0,0,0, 0):Nl(c,-this.i.left,-this.i.top);En()||(e=d=0);this.K=new pn(a,this.i,c,d,e,this.timestamp,b)}; g.k.getName=function(){return this.u.getName()};var VLa=new Ll(0,0,0,0);g.w(zo,yo);g.k=zo.prototype;g.k.hB=function(){this.B();return!0}; g.k.Fn=function(){yo.prototype.Qm.call(this)}; g.k.lI=function(){}; g.k.iC=function(){}; g.k.Qm=function(){this.B();yo.prototype.Qm.call(this)}; g.k.Ur=function(a){a=a.isActive();a!==this.J&&(a?this.B():(Dn().i=new Ll(0,0,0,0),this.i=new Ll(0,0,0,0),this.C=new Ll(0,0,0,0),this.timestamp=-1));this.J=a};var f2={},Mfa=(f2.firstquartile=0,f2.midpoint=1,f2.thirdquartile=2,f2.complete=3,f2);g.w(Bo,lo);g.k=Bo.prototype;g.k.Qk=function(){return!0}; g.k.Vl=function(){return 2==this.wg}; g.k.uJ=function(a){return oo(this,a,Math.max(1E4,this.B/3))}; g.k.Ra=function(a,b,c,d,e,f,h){var l=this,m=this.N(this)||{};g.ec(m,e);this.B=m.duration||this.B;this.V=m.isVpaid||this.V;this.Ma=m.isYouTube||this.Ma;e=Ifa(this,b);1===Fo(this)&&(f=e);lo.prototype.Ra.call(this,a,b,c,d,m,f,h);this.Wp&&this.Wp.i&&g.Db(this.J,function(n){n.i||(n.i=xo(n,l))})}; g.k.VF=function(a,b,c){lo.prototype.VF.call(this,a,b,c);Eo(this).update(a,b,this.mf,c);this.bb=qo(this.mf)&&qo(b);-1==this.Ba&&this.Xa&&(this.Ba=this.Xg().B.i);this.Ze.B=0;a=this.Op();b.isVisible()&&ro(this.Ze,"vs");a&&ro(this.Ze,"vw");yn(b.volume)&&ro(this.Ze,"am");qo(b)&&ro(this.Ze,"a");this.Wr&&ro(this.Ze,"f");-1!=b.u&&(ro(this.Ze,"bm"),1==b.u&&ro(this.Ze,"b"));qo(b)&&b.isVisible()&&ro(this.Ze,"avs");this.bb&&a&&ro(this.Ze,"avw");0this.i.K&&(this.i=this,Ln(this)),this.K=a);return 2==a};pp.prototype.sample=function(){sp(this,cp(),!1)}; pp.prototype.C=function(){var a=En(),b=jn();a?(ln||(mn=b,g.Db(bp.i,function(c){var d=c.Xg();d.Ma=uo(d,b,1!=c.wg)})),ln=!0):(this.K=up(this,b),ln=!1,Oo=b,g.Db(bp.i,function(c){c.Ux&&(c.Xg().N=b)})); sp(this,cp(),!a)}; var qp=Em(pp);var vp=null,gq="",fq=!1;var g2=Bp([void 0,1,2,3,4,8,16]),h2=Bp([void 0,4,8,16]),XLa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Ap("p0",h2),p1:Ap("p1",h2),p2:Ap("p2",h2),p3:Ap("p3",h2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:zp("mtos1",[0,2,4],!1,h2),mtos2:zp("mtos2",[0,2,4],!1,h2),mtos3:zp("mtos3",[0,2,4],!1,h2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Ap("a0",h2),a1:Ap("a1",h2),a2:Ap("a2",h2),a3:Ap("a3",h2),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",vpt:"vpt", gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:Ap("c0",h2),c1:Ap("c1",h2),c2:Ap("c2",h2),c3:Ap("c3",h2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Ap("qmtos",g2),qnc:Ap("qnc",g2),qmv:Ap("qmv",g2),qnv:Ap("qnv",g2),raf:"raf", rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:Ap("ss0",h2),ss1:Ap("ss1",h2),ss2:Ap("ss2",h2),ss3:Ap("ss3",h2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},YLa={c:wp("c"), at:"at",atos:zp("atos",[0,2,4]),ta:function(a,b){return function(c){if(void 0===c[a])return b}}("tth","1"), a:"a",dur:"dur",p:"p",tos:yp(),j:"dom",mtos:zp("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:wp("ss"),vsv:Za("w2"),t:"t"},ZLa={atos:"atos",avt:zp("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:wp("ss"),t:"t"},$La={a:"a",tos:yp(),at:"at",c:wp("c"),mtos:zp("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:Za("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},aMa={tos:yp(),at:"at",c:wp("c"),mtos:zp("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:Za("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",qmpt:zp("qmtos", [0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return g.Bm(b,function(e){return 0=e?1:0})}}("qnc",[1, .5,0]),qmv:"qmv",qa:"qas",a:"a"};var Fp=Dp().pk,Ep=Dp().version;var iga={X0:"visible",ZX:"audible",Z8:"time",a9:"timetype"},Kp={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)}};g.w(Lp,vo);Lp.prototype.getId=function(){return this.J}; Lp.prototype.D=function(){return!0}; Lp.prototype.C=function(a){var b=a.Xg(),c=a.getDuration();return zn(this.K,function(d){if(void 0!=d.i)var e=kga(d,b);else b:{switch(d.D){case "mtos":e=d.u?b.D.B:b.B.i;break b;case "tos":e=d.u?b.D.i:b.B.i;break b}e=0}0==e?d=!1:(d=-1!=d.B?d.B:void 0!==c&&0=d);return d})};g.w(Mp,vo);Mp.prototype.C=function(a){var b=bo(a.Xg().i,1);return Go(a,b)};g.w(Np,vo);Np.prototype.C=function(a){return a.Xg().Op()};g.w(Qp,lga);Qp.prototype.i=function(a){var b=new Op;b.i=Pp(a,XLa);b.B=Pp(a,ZLa);return b};g.w(Rp,zo);Rp.prototype.B=function(){var a=g.Ga("ima.admob.getViewability"),b=vl(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)}; Rp.prototype.getName=function(){return"gsv"};g.w(Sp,Nn);Sp.prototype.getName=function(){return"gsv"}; Sp.prototype.Et=function(){var a=Dn();Om();return a.u&&!1}; Sp.prototype.gx=function(a,b,c){return new Rp(this.i,b,c)};g.w(Tp,zo);Tp.prototype.B=function(){var a=this,b=g.Ga("ima.bridge.getNativeViewability"),c=vl(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Wb(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.i=xn(d.opt_nativeViewBounds||{});var h=a.u.B;h.i=f?VLa.clone():xn(e);a.timestamp=d.opt_nativeTime||-1;Dn().i=h.i;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})}; Tp.prototype.getName=function(){return"nis"};g.w(Up,Nn);Up.prototype.getName=function(){return"nis"}; Up.prototype.Et=function(){var a=Dn();Om();return a.u&&!1}; Up.prototype.gx=function(a,b,c){return new Tp(this.i,b,c)};g.w(Vp,Gn);g.k=Vp.prototype;g.k.Ct=function(){return null!=this.u.uj}; g.k.rJ=function(){var a={};this.Ba&&(a.mraid=this.Ba);this.ma&&(a.mlc=1);a.mtop=this.u.zW;this.J&&(a.mse=this.J);this.Ha&&(a.msc=1);a.mcp=this.u.compatibility;return a}; g.k.qo=function(a,b){for(var c=[],d=1;dthis.u?this.blockSize:2*this.blockSize)-this.u);a[0]=128;for(var b=1;bb;++b)for(var d=0;32>d;d+=8)a[c++]=this.i[b]>>>d&255;return a};g.w(wq,Qp);wq.prototype.i=function(a){var b=Qp.prototype.i.call(this,a);var c=pq=g.Pa();var d=qq(5);c=(sq?!d:d)?c|2:c&-3;d=qq(2);c=(tq?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.u||(this.u=Aga());b.D=this.u;b.J=Pp(a,YLa,c,"h",xq("kArwaWEsTs"));b.C=Pp(a,$La,{},"h",xq("b96YPMzfnx"));b.u=Pp(a,aMa,{},"h",xq("yb8Wev6QDg"));return b};yq.prototype.u=function(){return g.Ga(this.i)};g.w(zq,cq);g.k=zq.prototype;g.k.Gy=function(a,b){var c=this,d=Em(fp);if(null!=d.i)switch(d.i.getName()){case "nis":var e=Fga(this,a,b);break;case "gsv":e=Ega(this,a,b);break;case "exc":e=Gga(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=uga(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Ak()&&(e.N==g.Ha&&(e.N=function(f){return c.zG(f)}),Dga(this,e,b)); return e}; g.k.zG=function(a){a.u=0;a.Aa=0;if("h"==a.C||"n"==a.C){Om();a.Ta&&(Om(),"h"!=iq(this)&&iq(this));var b=g.Ga("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Cf)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.C)if(b=g.Ga("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Cf)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.C)if(b=g.Ga("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Cf)}catch(e){a.u|=4}else a.u|=2;else a.u|=1;a.u||(void 0===c?a.u|=8:null=== c?a.u|=16:g.Wb(c)?a.u|=32:null!=c.errorCode&&(a.Aa=c.errorCode,a.u|=64));null==c&&(c={});b=c;a.K=0;for(var d in SLa)null==b[d]&&(a.K|=SLa[d]);nq(b,"currentTime");nq(b,"duration");yn(c.volume)&&yn(void 0)&&(c.volume*=NaN);return c}; g.k.JI=function(){Om();"h"!=iq(this)&&iq(this);var a=Hga(this);return null!=a?new yq(a,this.C):null}; g.k.VE=function(a){!a.i&&a.hs&&jq(this,a,"overlay_unmeasurable_impression")&&(a.i=!0)}; g.k.qM=function(a){a.JM&&(a.Op()?jq(this,a,"overlay_viewable_end_of_session_impression"):jq(this,a,"overlay_unviewable_impression"),a.JM=!1)}; g.k.GJ=function(){}; g.k.gF=function(){}; g.k.Aw=function(a,b,c,d){a=cq.prototype.Aw.call(this,a,b,c,d);this.D&&(b=this.J,null==a.D&&(a.D=new Cfa),b.i[a.Cf]=a.D,a.D.D=WLa);return a}; g.k.Lu=function(a){a&&1==a.Ak()&&this.D&&delete this.J.i[a.Cf];return cq.prototype.Lu.call(this,a)}; var Aq=new Op;Aq.D="stopped";Aq.i="stopped";Aq.B="stopped";Aq.J="stopped";Aq.C="stopped";Aq.u="stopped";Object.freeze(Aq);var bMa=dn(193,Dq,mq);g.Fa("Goog_AdSense_Lidar_sendVastEvent",bMa,void 0);var cMa=gn(194,function(a,b){b=void 0===b?{}:b;a=Bq(Em(zq),a,b);return Cq(a)}); g.Fa("Goog_AdSense_Lidar_getViewability",cMa,void 0);var dMa=dn(195,function(){return Im()},void 0); g.Fa("Goog_AdSense_Lidar_getUrlSignalsArray",dMa,void 0);var eMa=gn(196,function(){return JSON.stringify(Im())}); g.Fa("Goog_AdSense_Lidar_getUrlSignalsList",eMa,void 0);var oha=(new Date).getTime();var Fq="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),Kga=/\bocr\b/;var Lga=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Zma={h3:"LIVING_ROOM_APP_MODE_UNSPECIFIED",e3:"LIVING_ROOM_APP_MODE_MAIN",d3:"LIVING_ROOM_APP_MODE_KIDS",f3:"LIVING_ROOM_APP_MODE_MUSIC",g3:"LIVING_ROOM_APP_MODE_UNPLUGGED",b3:"LIVING_ROOM_APP_MODE_GAMING"};Iq.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.data_[a]!=b&&(this.data_[a]=b,this.i=-1)}; Iq.prototype.get=function(a){return!!this.data_[a]};g.Qa(g.Jq,g.I);g.k=g.Jq.prototype;g.k.start=function(){this.stop();this.C=!1;var a=Lq(this),b=Mq(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.i=Lf(this.u,"MozBeforePaint",this.B),this.u.mozRequestAnimationFrame(null),this.C=!0):this.i=a&&b?a.call(this.u,this.B):this.u.setTimeout($a(this.B),20)}; g.k.stop=function(){if(this.isActive()){var a=Lq(this),b=Mq(this);a&&!b&&this.u.mozRequestAnimationFrame?Tf(this.i):a&&b?b.call(this.u,this.i):this.u.clearTimeout(this.i)}this.i=null}; g.k.isActive=function(){return null!=this.i}; g.k.WN=function(){this.C&&this.i&&Tf(this.i);this.i=null;this.J.call(this.D,g.Pa())}; g.k.ya=function(){this.stop();g.Jq.Yd.ya.call(this)};g.Qa(g.M,g.I);g.k=g.M.prototype;g.k.Ft=0;g.k.ya=function(){g.M.Yd.ya.call(this);this.stop();delete this.i;delete this.u}; g.k.start=function(a){this.stop();this.Ft=g.vh(this.B,void 0!==a?a:this.Rf)}; g.k.stop=function(){this.isActive()&&g.C.clearTimeout(this.Ft);this.Ft=0}; g.k.isActive=function(){return 0!=this.Ft}; g.k.AG=function(){this.Ft=0;this.i&&this.i.call(this.u)};g.Qa(g.Yq,g.Wf);g.k=g.Yq.prototype;g.k.xc=function(){return 1==this.i}; g.k.Az=function(){this.ni("begin")}; g.k.ew=function(){this.ni("end")}; g.k.onFinish=function(){this.ni("finish")}; g.k.ni=function(a){this.dispatchEvent(a)};var fMa=ab(function(){if(g.ke)return g.be("10.0");var a=g.Cg("DIV"),b=g.xg?"-webkit":Xl?"-moz":g.ke?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!zLa.test("div"))throw Error("");if("DIV"in BLa)throw Error("");var d=void 0;c=null;var e="";if(b)for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)){if(!zLa.test(l))throw Error("");var f=b[l];if(null!=f){var h=l;if(f instanceof lc)f=mc(f);else if("style"==h.toLowerCase()){if(!g.La(f))throw Error(""); f instanceof Tc||(f=Yc(f));f=Uc(f)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in ALa)if(f instanceof sc)f=tc(f).toString();else if(f instanceof g.Lc)f=g.Mc(f);else if("string"===typeof f)f=g.Qc(f).Ih();else throw Error("");}f.Ek&&(f=f.Ih());h=h+'="'+Fc(String(f))+'"';e+=" "+h}}var l="":(c=Eaa(d),l+=">"+g.hd(c).toString()+"",c=c.Lr());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=id(l,c);g.od(a,b);return""!= g.Yl(a.firstChild,"transition")});g.Qa(Zq,g.Yq);g.k=Zq.prototype;g.k.play=function(){if(this.xc())return!1;this.Az();this.ni("play");this.startTime=g.Pa();this.i=1;if(fMa())return g.Vl(this.u,this.K),this.C=g.vh(this.UV,void 0,this),!0;this.iB(!1);return!1}; g.k.UV=function(){g.jm(this.u);Nga(this.u,this.N);g.Vl(this.u,this.D);this.C=g.vh((0,g.D)(this.iB,this,!1),1E3*this.J)}; g.k.stop=function(){this.xc()&&this.iB(!0)}; g.k.iB=function(a){g.Vl(this.u,"transition","");g.C.clearTimeout(this.C);g.Vl(this.u,this.D);this.endTime=g.Pa();this.i=0;if(a)this.ni("stop");else this.onFinish();this.ew()}; g.k.ya=function(){this.stop();Zq.Yd.ya.call(this)}; g.k.pause=function(){};var ar=g.Ha;var Oga={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};var Sga=dr("getPropertyValue"),Tga=dr("setProperty");var Rga={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.hr.prototype.clone=function(){return new g.hr(this.i,this.D,this.B,this.J,this.C,this.K,this.u,this.N)};jr.prototype.clone=function(){return new jr(this.start,this.end)};var gMa=new WeakMap;(function(){if(rHa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.ad))?a[1]:"0"}return eU?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.ad))?a[0].replace(/_/g,"."):"10"):g.au?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.ad))?a[1]:""):DLa||ELa||FLa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.ad))?a[1].replace(/_/g,"."):""):""})();var $ga=function(){if(g.mj)return kr(/Firefox\/([0-9.]+)/);if(g.ke||g.cx||g.dF)return ae;if(g.lj){if(Vd()||bd("Macintosh")){var a=kr(/CriOS\/([0-9.]+)/);if(a)return a}return kr(/Chrome\/([0-9.]+)/)}if(g.nj&&!Vd())return kr(/Version\/([0-9.]+)/);if(mF||xH){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.ad))return a[1]+"."+a[2]}else if(g.eF)return(a=kr(/Android\s+([0-9.]+)/))?a:kr(/Version\/([0-9.]+)/);return""}();g.Qa(g.mr,g.I);g.k=g.mr.prototype;g.k.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.J;this.i[e]=a;this.i[e+1]=b;this.i[e+2]=c;this.J=e+3;d.push(e);return e}; g.k.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.i;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.ag(a)}return!1}; g.k.ag=function(a){var b=this.i[a];if(b){var c=this.u[b];0!=this.C?(this.B.push(a),this.i[a+1]=g.Ha):(c&&g.ob(c,a),delete this.i[a],delete this.i[a+1],delete this.i[a+2])}return!!b}; g.k.Z=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)throw g.ii;var e=c.key(b++);if(a)return e;e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e}; d.next=d.i.bind(d);return d}; g.k.clear=function(){this.i.clear()}; g.k.key=function(a){return this.i.key(a)};g.Qa(wr,vr);g.Qa(xr,vr);g.Qa(zr,ur);var cha={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},yr=null;g.k=zr.prototype;g.k.isAvailable=function(){return!!this.i}; g.k.set=function(a,b){this.i.setAttribute(Ar(a),b);Br(this)}; g.k.get=function(a){a=this.i.getAttribute(Ar(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; g.k.remove=function(a){this.i.removeAttribute(Ar(a));Br(this)}; g.k.Kg=function(a){var b=0,c=this.i.XMLDocument.documentElement.attributes,d=new g.ci;d.i=function(){if(b>=c.length)throw g.ii;var e=c[b++];if(a)return decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1);e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e}; d.next=d.i.bind(d);return d}; g.k.clear=function(){for(var a=this.i.XMLDocument.documentElement,b=a.attributes.length;0=b)){if(1==b)kb(a);else{a[0]=a.pop();a=0;b=this.i;for(var d=b.length,e=b[a];a>1;){var f=2*a+1,h=2*a+2;f=he.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}}; g.k.Yg=function(){for(var a=this.i,b=[],c=a.length,d=0;dc;c++)b+=this.u[c]||0;3<=b&&this.K();this.D=d}this.C=a;this.J=this.i;this.B=(this.B+1)%4}}; Gu.prototype.ya=function(){window.clearInterval(this.N);g.wu(this.ma)};g.w(Lu,Hu);Lu.prototype.start=function(){var a=g.Ga("yt.scheduler.instance.start");a&&a()}; Lu.prototype.pause=function(){var a=g.Ga("yt.scheduler.instance.pause");a&&a()};Mu();var Tu={};var Yu={},Fha=0;var jMa,$u,bv;jMa=g.C.ytPubsubPubsubInstance||new g.mr;$u=g.C.ytPubsubPubsubSubscribedKeys||{};bv=g.C.ytPubsubPubsubTopicToKeys||{};g.av=g.C.ytPubsubPubsubIsSynchronous||{};g.mr.prototype.subscribe=g.mr.prototype.subscribe;g.mr.prototype.unsubscribeByKey=g.mr.prototype.ag;g.mr.prototype.publish=g.mr.prototype.Z;g.mr.prototype.clear=g.mr.prototype.clear;g.Fa("ytPubsubPubsubInstance",jMa,void 0);g.Fa("ytPubsubPubsubTopicToKeys",bv,void 0);g.Fa("ytPubsubPubsubIsSynchronous",g.av,void 0); g.Fa("ytPubsubPubsubSubscribedKeys",$u,void 0);var l2;l2=window;g.Q=l2.ytcsi&&l2.ytcsi.now?l2.ytcsi.now:l2.performance&&l2.performance.timing&&l2.performance.now&&l2.performance.timing.navigationStart?function(){return l2.performance.timing.navigationStart+l2.performance.now()}:function(){return(new Date).getTime()};var Iha=vs("initial_gel_batch_timeout",2E3),wv=Math.pow(2,16)-1,kv=void 0,pv=0,qv=0,mv=0,rv=!0,jv=g.C.ytLoggingTransportGELQueue_||new Map;g.Fa("ytLoggingTransportGELQueue_",jv,void 0);var hv=g.C.ytLoggingTransportTokensToCttTargetIds_||{};g.Fa("ytLoggingTransportTokensToCttTargetIds_",hv,void 0);var xv=g.C.ytLoggingGelSequenceIdObj_||{};g.Fa("ytLoggingGelSequenceIdObj_",xv,void 0);var Bv=g.Ga("ytglobal.prefsUserPrefsPrefs_")||{};g.Fa("ytglobal.prefsUserPrefsPrefs_",Bv,void 0);g.k=g.Cv.prototype;g.k.get=function(a,b){Gv(a);Fv(a);a=void 0!==Bv[a]?Bv[a].toString():null;return null!=a?a:b?b:""}; g.k.set=function(a,b){Gv(a);Fv(a);if(null==b)throw Error("ExpectedNotNull");Bv[a]=b.toString()}; g.k.remove=function(a){Gv(a);Fv(a);delete Bv[a]}; g.k.save=function(){var a=!0;g.us("web_secure_pref_cookie_killswitch")&&(a=!1);g.It(this.i,this.dump(),63072E3,this.u,a)}; g.k.clear=function(){g.Xb(Bv)}; g.k.dump=function(){var a=[],b;for(b in Bv)a.push(b+"="+encodeURIComponent(String(Bv[b])));return a.join("&")}; Ia(g.Cv);var Iv={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},Kv={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};Nv.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.i)try{this.i.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Wh(b))}catch(f){return}else e=escape(b);g.It(a,e,c,this.u)}; Nv.prototype.get=function(a,b){var c=void 0,d=!this.i;if(!d)try{c=this.i.get(a)}catch(e){d=!0}if(d&&(c=g.Jt(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c}; Nv.prototype.remove=function(a){this.i&&this.i.remove(a);g.Kt(a,"/",this.u)};Pv.prototype.toString=function(){return this.topic};var kMa=g.Ga("ytPubsub2Pubsub2Instance")||new g.mr;g.mr.prototype.subscribe=g.mr.prototype.subscribe;g.mr.prototype.unsubscribeByKey=g.mr.prototype.ag;g.mr.prototype.publish=g.mr.prototype.Z;g.mr.prototype.clear=g.mr.prototype.clear;g.Fa("ytPubsub2Pubsub2Instance",kMa,void 0);var Sv=g.Ga("ytPubsub2Pubsub2SubscribedKeys")||{};g.Fa("ytPubsub2Pubsub2SubscribedKeys",Sv,void 0);var Uv=g.Ga("ytPubsub2Pubsub2TopicToKeys")||{};g.Fa("ytPubsub2Pubsub2TopicToKeys",Uv,void 0); var Tv=g.Ga("ytPubsub2Pubsub2IsAsync")||{};g.Fa("ytPubsub2Pubsub2IsAsync",Tv,void 0);g.Fa("ytPubsub2Pubsub2SkipSubKey",null,void 0);var Xv=function(){var a;return function(){a||(a=new Nv("ytidb"));return a}}(); Zv.prototype.isSupported=function(){return this.i};var dw=[],$v,ew=!1;g.w(g.hw,Error);var m2={},mw=(m2.AUTH_INVALID="No user identifier specified.",m2.EXPLICIT_ABORT="Transaction was explicitly aborted.",m2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",m2.MISSING_INDEX="Index not created.",m2.MISSING_OBJECT_STORE="Object store not created.",m2.DB_DELETED_BY_MISSING_OBJECT_STORE="Database is deleted because an expected object store was not created.",m2.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.",m2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.", m2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",m2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",m2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",m2),n2={},Oha=(n2.AUTH_INVALID="ERROR",n2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",n2.EXPLICIT_ABORT="IGNORED",n2.IDB_NOT_SUPPORTED="ERROR",n2.MISSING_INDEX="WARNING",n2.MISSING_OBJECT_STORE="ERROR",n2.DB_DELETED_BY_MISSING_OBJECT_STORE= "WARNING",n2.QUOTA_EXCEEDED="WARNING",n2.QUOTA_MAYBE_EXCEEDED="WARNING",n2.UNKNOWN_ABORT="WARNING",n2.INCOMPATIBLE_DB_VERSION="WARNING",n2),o2={},Pha=(o2.AUTH_INVALID=!1,o2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,o2.EXPLICIT_ABORT=!1,o2.IDB_NOT_SUPPORTED=!1,o2.MISSING_INDEX=!1,o2.MISSING_OBJECT_STORE=!1,o2.DB_DELETED_BY_MISSING_OBJECT_STORE=!1,o2.QUOTA_EXCEEDED=!1,o2.QUOTA_MAYBE_EXCEEDED=!0,o2.UNKNOWN_ABORT=!0,o2.INCOMPATIBLE_DB_VERSION=!1,o2);g.w(nw,g.hw);g.w(ow,nw);g.w(pw,Error); var Qha=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];tw.all=function(a){return new tw(new rw(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Kq:0};f.Kq=E.Mm&&!(m.i.version>=G)&&!m.i.objectStoreNames.contains(A)){x=A;break a}}x=void 0}n=x;if(void 0===n){u.ib(5);break}if(l.B){u.ib(6);break}l.B= !0;return g.z(u,l.delete(),7);case 7:return fw(new nw("DB_DELETED_BY_MISSING_OBJECT_STORE",{dbName:l.name,lS:n})),u.return(a());case 6:throw new ow(n);case 5:return u.return(m);case 2:p=wa(u);if(p instanceof DOMException?"VersionError"!==p.name:"DOMError"in self&&p instanceof DOMError?"VersionError"!==p.name:!(p instanceof Object&&"message"in p)||"An attempt was made to open a database using a lower version than the existing version."!==p.message){u.ib(8);break}return g.z(u,l.u(l.name,void 0,Object.assign(Object.assign({}, e),{upgrade:void 0})),9);case 9:q=u.u;t=q.i.version;if(void 0!==l.options.version&&t>l.options.version+1)throw q.close(),l.C=!1,Yw(l,t);return u.return(q);case 8:throw b(),p;}})})} function b(){c.i===d&&(c.i=void 0)} var c=this;if(!this.C)throw Yw(this);if(this.i)return this.i;var d,e={blocking:function(f){f.close()}, closed:b,LW:b,upgrade:this.options.upgrade};return this.i=d=a()};var Zw=new Xw("YtIdbMeta",{zs:{databases:{Mm:1}},upgrade:function(a,b){b(1)&&Ew(a,"databases",{keyPath:"actualName"})}});var dx,fia=new function(){}(new function(){});new Rk;g.w(jx,Xw);jx.prototype.u=function(a,b,c){c=void 0===c?{}:c;return(this.options.Kw?hia:gia)(a,b,Object.assign({},c))}; jx.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.Kw?ix:iia)(this.name,a)};var lx;var lMa={},tx=kx("ServiceWorkerLogsDatabase",{zs:(lMa.SWHealthLog={Mm:1},lMa),Kw:!0,upgrade:function(a,b){b(1)&&Mw(Ew(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var ux;var tia=vs("network_polling_interval",3E4);g.w(xx,g.Wf);g.k=xx.prototype;g.k.Pe=function(){return this.i}; g.k.On=function(a,b){a!==this.i&&((void 0===b?0:b)?this.Rk():this.i=a)}; g.k.mS=function(a){this.u=!0;if(void 0===a?0:a)this.J||zx(this)}; g.k.jD=function(){var a=window.navigator.onLine;return void 0===a?!0:a}; g.k.KQ=function(){this.K=!0}; g.k.Sa=function(a,b){return g.Wf.prototype.Sa.call(this,a,b)}; g.k.Rk=function(a){var b=this;return this.C?this.C:this.C=new Promise(function(c){return g.H(b,function e(){var f,h,l,m=this;return g.B(e,function(n){switch(n.i){case 1:return f=window.AbortController?new window.AbortController:void 0,h=null===f||void 0===f?void 0:f.signal,l=!1,ua(n,2,3),f&&(m.D=g.Ku(0,function(){f.abort()},a||2E4)),g.z(n,fetch("/generate_204",{method:"HEAD", signal:h}),5);case 5:l=!0;case 3:xa(n);m.C=void 0;m.D&&g.Ou(m.D);l!==m.i&&(m.i=l,m.i&&m.u?m.dispatchEvent("ytnetworkstatus-online"):m.u&&m.dispatchEvent("ytnetworkstatus-offline"));c(l);ya(n,0);break;case 2:wa(n),l=!1,n.ib(3)}})})})}; xx.prototype.sendNetworkCheckRequest=xx.prototype.Rk;xx.prototype.listen=xx.prototype.Sa;xx.prototype.enableErrorFlushing=xx.prototype.KQ;xx.prototype.getWindowStatus=xx.prototype.jD;xx.prototype.monitorNetworkStatusChange=xx.prototype.mS;xx.prototype.networkStatusHint=xx.prototype.On;xx.prototype.isNetworkAvailable=xx.prototype.Pe;xx.getInstance=yx;g.w(Bx,g.Wf);Bx.prototype.Pe=function(){var a=g.Ga("yt.networkStatusManager.instance.isNetworkAvailable").bind(this.i);return a?a():!0}; Bx.prototype.On=function(a,b){b=void 0===b?!1:b;var c=g.Ga("yt.networkStatusManager.instance.networkStatusHint").bind(this.i);c&&c(a,b)}; Bx.prototype.Rk=function(a){return g.H(this,function c(){var d=this,e;return g.B(c,function(f){return(e=g.Ga("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(d.i))?f.return(e(a)):f.return(!0)})})};var Kx=0,Nx=0,Ox,Mx=g.C.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,databaseToken:void 0,potentialEsfErrorCounter:Nx,isIdbSupported:!1};g.Fa("ytNetworklessLoggingInitializationOptions",Mx,void 0);g.k=Qx.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(this.databaseToken&&this.me){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.qf.set(d,this.databaseToken).then(function(e){d.id=e;c.Re.Pe()&&Tx(c,d)}).catch(function(e){Tx(c,d); Ux(c,e)})}else this.uo(a,b)}; g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(this.databaseToken&&this.me){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Ga&&this.Ga("nwl_skip_retry")&&(e.skipRetry=c);if(this.Re.Pe()){if(!e.skipRetry){var f=b.onError?b.onError:function(){}; b.onError=function(h,l){return g.H(d,function n(){var p=this,q;return g.B(n,function(t){if(1==t.i)return q=p,g.z(t,p.qf.set(e,p.databaseToken).catch(function(u){Ux(q,u)}),2); f(h,l);g.sa(t)})})}}this.uo(a,b,e.skipRetry)}else this.qf.set(e,this.databaseToken).catch(function(h){Ux(d,h)})}else c=this.Ga&&this.Ga("nwl_skip_retry")&&c,this.uo(a,b,c)}; g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(this.databaseToken&&this.me){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(h,l){void 0!==d.id?c.qf.Er(d.id,c.databaseToken):e=!0;c.Re.On&&c.Ga&&c.Ga("vss_network_hint")&&c.Re.On(!0);f(h,l)}; this.uo(d.url,d.options);this.qf.set(d,this.databaseToken).then(function(h){d.id=h;e&&c.qf.Er(d.id,c.databaseToken)}).catch(function(h){Ux(c,h)})}else this.uo(a,b)}; g.k.Vw=function(){var a=this;if(!this.databaseToken)throw g.qw("throttleSend");this.i||(this.i=g.Ku(0,function(){return g.H(a,function c(){var d=this,e;return g.B(c,function(f){if(1==f.i)return g.z(f,d.qf.vJ("NEW",d.databaseToken),2);if(3!=f.i)return e=f.u,e?g.z(f,Tx(d,e),3):(d.nI(),f.return());d.i&&(d.i=0,d.Vw());g.sa(f)})})},this.WM))}; g.k.nI=function(){g.Ou(this.i);this.i=0};g.w(Vx,Qx);Vx.prototype.writeThenSend=function(a,b){b||(b={});jw()||(this.me=!1);Qx.prototype.writeThenSend.call(this,a,b)}; Vx.prototype.sendThenWrite=function(a,b,c){b||(b={});jw()||(this.me=!1);Qx.prototype.sendThenWrite.call(this,a,b,c)}; Vx.prototype.sendAndWrite=function(a,b){b||(b={});jw()||(this.me=!1);Qx.prototype.sendAndWrite.call(this,a,b)};g.Xx.prototype.isReady=function(){!this.config_&&Mv()&&(this.config_=g.uv());return!!this.config_};var Aia=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),Cia=["/fashion","/feed/fashion_destination","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ"];var ay={};g.w(gy,g.I);gy.prototype.S=function(a,b,c,d,e){c=zs((0,g.D)(c,d||this.Qa));c={target:a,name:b,callback:c};var f;e&&iy()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.D.push(c);return c}; gy.prototype.kc=function(a){for(var b=0;b=this.start&&(awMa.length)r2=void 0;else{var s2=vMa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);r2=s2&&6==s2.length?Number(s2[5].replace("_",".")):0}var yH=r2,VN=0<=yH;VN&&0<=g.ad.search("Safari")&&g.ad.search("Version");g.w(FA,Ov);g.w(GA,Ov);var Aja=new Pv("aft-recorded",FA),iB=new Pv("timing-sent",GA);var t2=window,JA=t2.performance||t2.mozPerformance||t2.msPerformance||t2.webkitPerformance||new vja;var zja=!1,u2={'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"}, Nja=(0,g.D)(JA.clearResourceTimings||JA.webkitClearResourceTimings||JA.mozClearResourceTimings||JA.msClearResourceTimings||JA.oClearResourceTimings||g.Ha,JA);var VA=g.C.ytLoggingLatencyUsageStats_||{};g.Fa("ytLoggingLatencyUsageStats_",VA,void 0);TA.prototype.tick=function(a,b,c,d){WA(this,"tick_"+a+"_"+b)||g.cw("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c,cttAuthInfo:d})}; TA.prototype.info=function(a,b,c){var d=Object.keys(a).join("");WA(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.cw("latencyActionInfo",a,{cttAuthInfo:c}))}; TA.prototype.span=function(a,b,c){var d=Object.keys(a).join("");WA(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.cw("latencyActionSpan",a,{cttAuthInfo:c}))};var v2={},Lja=(v2.auto_search="LATENCY_ACTION_AUTO_SEARCH",v2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",v2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",v2["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",v2.app_startup="LATENCY_ACTION_APP_STARTUP",v2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",v2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",v2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",v2.browse="LATENCY_ACTION_BROWSE",v2.channels="LATENCY_ACTION_CHANNELS", v2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",v2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",v2["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",v2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",v2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",v2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",v2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",v2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC", v2["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",v2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",v2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",v2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",v2.chips="LATENCY_ACTION_CHIPS",v2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",v2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",v2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",v2.embed= "LATENCY_ACTION_EMBED",v2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",v2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",v2.explore="LATENCY_ACTION_EXPLORE",v2.home="LATENCY_ACTION_HOME",v2.library="LATENCY_ACTION_LIBRARY",v2.live="LATENCY_ACTION_LIVE",v2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",v2.onboarding="LATENCY_ACTION_ONBOARDING",v2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",v2.parent_tools_collection= "LATENCY_ACTION_PARENT_TOOLS_COLLECTION",v2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",v2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",v2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",v2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",v2.prebuffer="LATENCY_ACTION_PREBUFFER",v2.prefetch="LATENCY_ACTION_PREFETCH",v2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",v2.profile_switcher="LATENCY_ACTION_LOGIN",v2.reel_watch="LATENCY_ACTION_REEL_WATCH",v2.results="LATENCY_ACTION_RESULTS", v2.search_ui="LATENCY_ACTION_SEARCH_UI",v2.search_suggest="LATENCY_ACTION_SUGGEST",v2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",v2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",v2.seek="LATENCY_ACTION_PLAYER_SEEK",v2.settings="LATENCY_ACTION_SETTINGS",v2.tenx="LATENCY_ACTION_TENX",v2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",v2.watch="LATENCY_ACTION_WATCH",v2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",v2["watch,watch7"]="LATENCY_ACTION_WATCH",v2["watch,watch7_html5"]="LATENCY_ACTION_WATCH", v2["watch,watch7ad"]="LATENCY_ACTION_WATCH",v2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",v2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",v2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",v2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",v2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",v2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",v2["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",v2["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",v2["video.live_settings"]= "LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",v2["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",v2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",v2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",v2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",v2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",v2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",v2),w2={},Fja=(w2.ad_allowed="adTypesAllowed",w2.yt_abt= "adBreakType",w2.ad_cpn="adClientPlaybackNonce",w2.ad_docid="adVideoId",w2.yt_ad_an="adNetworks",w2.ad_at="adType",w2.aida="appInstallDataAgeMs",w2.aac_type="tvAppInfo.authAccessCredentialType",w2.browse_id="browseId",w2.p="httpProtocol",w2.t="transportProtocol",w2.cs="commandSource",w2.cpn="clientPlaybackNonce",w2.ccs="creatorInfo.creatorCanaryState",w2.ctop="creatorInfo.topEntityType",w2.csn="clientScreenNonce",w2.docid="videoId",w2.GetHome_rid="requestIds",w2.GetSearch_rid="requestIds",w2.GetPlayer_rid= "requestIds",w2.GetWatchNext_rid="requestIds",w2.GetBrowse_rid="requestIds",w2.GetLibrary_rid="requestIds",w2.is_continuation="isContinuation",w2.is_nav="isNavigation",w2.b_p="kabukiInfo.browseParams",w2.is_prefetch="kabukiInfo.isPrefetch",w2.is_secondary_nav="kabukiInfo.isSecondaryNav",w2.nav_type="kabukiInfo.navigationType",w2.prev_browse_id="kabukiInfo.prevBrowseId",w2.query_source="kabukiInfo.querySource",w2.voz_type="kabukiInfo.vozType",w2.yt_lt="loadType",w2.mver="creatorInfo.measurementVersion", w2.yt_ad="isMonetized",w2.nr="webInfo.navigationReason",w2.nrsu="navigationRequestedSameUrl",w2.ncnp="webInfo.nonPreloadedNodeCount",w2.pnt="performanceNavigationTiming",w2.prt="playbackRequiresTap",w2.plt="playerInfo.playbackType",w2.pis="playerInfo.playerInitializedState",w2.paused="playerInfo.isPausedOnLoad",w2.yt_pt="playerType",w2.fmt="playerInfo.itag",w2.yt_pl="watchInfo.isPlaylist",w2.yt_pre="playerInfo.preloadType",w2.yt_ad_pr="prerollAllowed",w2.pa="previousAction",w2.yt_red="isRedSubscriber", w2.rce="mwebInfo.responseContentEncoding",w2.rc="resourceInfo.resourceCache",w2.scrh="screenHeight",w2.scrw="screenWidth",w2.st="serverTimeMs",w2.ssdm="shellStartupDurationMs",w2.br_trs="tvInfo.bedrockTriggerState",w2.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",w2.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",w2.label="tvInfo.label",w2.is_mdx="tvInfo.isMdx",w2.preloaded="tvInfo.isPreloaded",w2.upg_player_vis="playerInfo.visibilityState",w2.query="unpluggedInfo.query",w2.upg_chip_ids_string= "unpluggedInfo.upgChipIdsString",w2.yt_vst="videoStreamType",w2.vph="viewportHeight",w2.vpw="viewportWidth",w2.yt_vis="isVisible",w2.rcl="mwebInfo.responseContentLength",w2.GetSettings_rid="requestIds",w2.GetTrending_rid="requestIds",w2.GetMusicSearchSuggestions_rid="requestIds",w2.REQUEST_ID="requestIds",w2),Gja="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(" "), x2={},Hja=(x2.ccs="CANARY_STATE_",x2.mver="MEASUREMENT_VERSION_",x2.pis="PLAYER_INITIALIZED_STATE_",x2.yt_pt="LATENCY_PLAYER_",x2.pa="LATENCY_ACTION_",x2.ctop="TOP_ENTITY_TYPE_",x2.yt_vst="VIDEO_STREAM_TYPE_",x2),Ija="all_vc ap aq c cbr cbrand cbrver cmodel cos 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 y2=window;y2.ytcsi&&(y2.ytcsi.info=g.cB,y2.ytcsi.tick=dB);var toa={x0:1,M0:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var Tja=!1;var dU=16/9,xMa=[.25,.5,.75,1,1.25,1.5,1.75,2],yMa=xMa.concat([3,4,5,6,7,8,9,10,15]);var zMa=["h","H"],AMa=["9","("],BMa=["9h","(h"],CMa=["8","*"],DMa=["a","A"],EMa=["o","O"],FMa=["m","M"],GMa=["mac3","MAC3"],HMa=["meac3","MEAC3"],z2={},oma=(z2.h=zMa,z2.H=zMa,z2["9"]=AMa,z2["("]=AMa,z2["9h"]=BMa,z2["(h"]=BMa,z2["8"]=CMa,z2["*"]=CMa,z2.a=DMa,z2.A=DMa,z2.o=EMa,z2.O=EMa,z2.m=FMa,z2.M=FMa,z2.mac3=GMa,z2.MAC3=GMa,z2.meac3=HMa,z2.MEAC3=HMa,z2);mB.prototype.getLanguageInfo=function(){return this.yc}; mB.prototype.toString=function(){return this.yc.name}; mB.prototype.getLanguageInfo=mB.prototype.getLanguageInfo;var A2,sB;A2={};g.pB=(A2.auto=0,A2.tiny=144,A2.light=144,A2.small=240,A2.medium=360,A2.large=480,A2.hd720=720,A2.hd1080=1080,A2.hd1440=1440,A2.hd2160=2160,A2.hd2880=2880,A2.highres=4320,A2);sB={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};nB.prototype.isLocked=function(){return this.B&&!!this.u&&this.u===this.i}; nB.prototype.compose=function(a){if(a.B&&rB(a))return wG;if(a.B||rB(this))return a;if(this.B||rB(a))return this;var b=this.u&&a.u?Math.max(this.u,a.u):this.u||a.u,c=this.i&&a.i?Math.min(this.i,a.i):this.i||a.i;b=Math.min(b,c);return b===this.u&&c===this.i?this:new nB(b,c,!1,c===this.i?this.reason:a.reason)}; nB.prototype.C=function(a){return a.video?Uja(this,a.video.quality):!1}; var IMa=qB("auto","hd1080",!1,"l"),ADa=qB("auto","large",!1,"l"),wG=qB("auto","auto",!1,"p");qB("small","auto",!1,"p");uB.prototype.qn=function(a){a=a||wG;for(var b=g.No(this.videoInfos,function(h){return a.C(h)}),c=[],d={},e=0;ea.Na&&this.index.getFirstSegmentNumber()<=a.Na+1}; g.k.update=function(a,b,c){this.index.append(a);kka(this.index,c);this.K=b}; g.k.Oe=function(){return this.Ht()?!0:FC.prototype.Oe.call(this)}; g.k.Hm=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.k.Ir=function(a){if(!this.jk)return MB.prototype.Ir.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a=b.endTime)b=b.Na+Math.floor((a-b.endTime)/this.Eg+1);else{b=zb(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.Na-b.Na-1))+1)+b.Na}return this.ej(b)}; g.k.ej=function(a){if(!this.jk)return MB.prototype.ej.call(this,a);if(!this.segments.length)return null;var b=aD(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Eg;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Na-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Na-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Na-d.Na-1),d=d.endTime+(a-d.Na-1)*b);return new LB(a,d,b,0,"sq/"+a,void 0,void 0, !0)};g.w(cD,WC);g.k=cD.prototype;g.k.Lv=function(){return!0}; g.k.Oe=function(){return!0}; g.k.Gm=function(a){return!a.B}; g.k.Cp=function(){}; g.k.Nl=function(a,b){b=void 0===b?!1:b;return"number"!==typeof a||isFinite(a)?WC.prototype.Nl.call(this,a,b):(a=new LC(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Ni,void 0,this.Ni*this.info.Mb),new SC([a],""))}; g.k.Hm=function(a,b){var c=void 0===c?!1:c;if(bD(this.index,a))return WC.prototype.Hm.call(this,a,b);var d=this.index.getStartTime(a),e=b?0:this.Ni*this.info.Mb;b=!b;c=new LC(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a===this.index.getLastSegmentNumber()&&!this.K&&0a.Na&&this.index.getFirstSegmentNumber()<=a.Na+1}; g.k.cD=function(){return 0}; g.k.JE=function(){return!1};g.k=eD.prototype;g.k.getOffset=function(a){return this.offsets[a]}; g.k.getStartTime=function(a){return this.i[a]/this.B}; g.k.getStartTimeInPeriod=function(){return 0}; g.k.getIngestionTime=function(){return NaN}; g.k.getStitchedVideoInfo=function(){return null}; g.k.getDuration=function(a){a=this.getDurationTicks(a);return 0<=a?a/this.B:-1}; g.k.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.k.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.i;this.i=new Float64Array(a+1);for(a=0;a=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{Ly:b,Aq:c}}; gD.prototype.isFocused=function(a){return a>=this.B&&athis.info.u||4===this.info.type)return!0;var b=nD(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.Cb)return 1836019558===b||1936286840=== b||1937013104===b||1718909296===b||1701671783===b||1936419184===b}else if(2===this.info.i.info.containerType){if(4>this.info.u||4===this.info.type)return!0;c=nD(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.Cb)return 524531317===c||440786851===c}return!0};g.w(qD,FC);g.k=qD.prototype;g.k.Cp=function(a){var b=new LC(1,this,this.initRange,"initInfo"),c=new LC(2,this,this.indexRange,"indexInfo");b=[b,c];0=this.index.getOffset(c+1);)c++;return rD(this,c,b,a.u).i}; g.k.Gm=function(a){return this.Oe()?!0:a.range.end+1this.info.contentLength&&(b=new HC(b.start,this.info.contentLength-1)),a=[new LC(4,a.i,b,"getNextRequestInfoByLength")],new SC(a);4===a.type&&(a=this.Ew(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Cb+a.u;3===a.type&&(c=a.Na,d===a.range.end+1&&(c+=1));return rD(this,c,d,b)}; g.k.Gt=function(){return null}; g.k.Nl=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return rD(this,a,this.index.getOffset(a),0)}; g.k.Og=function(){return!0}; g.k.Lv=function(){return!1}; g.k.cD=function(){return this.indexRange.length+this.initRange.length}; g.k.JE=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var C2={},AB=(C2.WIDTH={name:"width",video:!0,valid:640,invalid:99999},C2.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},C2.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},C2.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},C2.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},C2.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},C2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},C2.DECODETOTEXTURE={name:"decode-to-texture", video:!0,valid:"false",invalid:"nope"},C2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},C2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},C2);var Z={},xD=(Z["0"]="f",Z["160"]="h",Z["133"]="h",Z["134"]="h",Z["135"]="h",Z["136"]="h",Z["137"]="h",Z["264"]="h",Z["266"]="h",Z["138"]="h",Z["298"]="h",Z["299"]="h",Z["304"]="h",Z["305"]="h",Z["214"]="h",Z["216"]="h",Z["374"]="h",Z["375"]="h",Z["140"]="a",Z["141"]="ah",Z["327"]="sa",Z["258"]="m",Z["380"]="mac3",Z["328"]="meac3",Z["161"]="H",Z["142"]="H",Z["143"]="H",Z["144"]="H",Z["222"]="H",Z["223"]="H",Z["145"]="H",Z["224"]="H",Z["225"]="H",Z["146"]="H",Z["226"]="H",Z["227"]="H",Z["147"]="H", Z["384"]="H",Z["376"]="H",Z["385"]="H",Z["377"]="H",Z["149"]="A",Z["261"]="M",Z["381"]="MAC3",Z["329"]="MEAC3",Z["598"]="9",Z["278"]="9",Z["242"]="9",Z["243"]="9",Z["244"]="9",Z["247"]="9",Z["248"]="9",Z["353"]="9",Z["355"]="9",Z["271"]="9",Z["313"]="9",Z["272"]="9",Z["302"]="9",Z["303"]="9",Z["407"]="9",Z["408"]="9",Z["308"]="9",Z["315"]="9",Z["330"]="9h",Z["331"]="9h",Z["332"]="9h",Z["333"]="9h",Z["334"]="9h",Z["335"]="9h",Z["336"]="9h",Z["337"]="9h",Z["338"]="so",Z["600"]="o",Z["250"]="o",Z["251"]= "o",Z["194"]="*",Z["195"]="*",Z["220"]="*",Z["221"]="*",Z["196"]="*",Z["197"]="*",Z["279"]="(",Z["280"]="(",Z["317"]="(",Z["318"]="(",Z["273"]="(",Z["274"]="(",Z["357"]="(",Z["358"]="(",Z["275"]="(",Z["359"]="(",Z["360"]="(",Z["276"]="(",Z["583"]="(",Z["584"]="(",Z["314"]="(",Z["585"]="(",Z["561"]="(",Z["277"]="(",Z["361"]="(h",Z["362"]="(h",Z["363"]="(h",Z["364"]="(h",Z["365"]="(h",Z["366"]="(h",Z["591"]="(h",Z["592"]="(h",Z["367"]="(h",Z["586"]="(h",Z["587"]="(h",Z["368"]="(h",Z["588"]="(h",Z["562"]= "(h",Z["409"]="(",Z["410"]="(",Z["411"]="(",Z["412"]="(",Z["557"]="(",Z["558"]="(",Z["394"]="1",Z["395"]="1",Z["396"]="1",Z["397"]="1",Z["398"]="1",Z["399"]="1",Z["400"]="1",Z["401"]="1",Z["571"]="1",Z["402"]="1",Z["694"]="1h",Z["695"]="1h",Z["696"]="1h",Z["697"]="1h",Z["698"]="1h",Z["699"]="1h",Z["700"]="1h",Z["701"]="1h",Z["702"]="1h",Z["703"]="1h",Z["386"]="3",Z["387"]="w",Z["406"]="6",Z);var vD="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");uD.prototype.isHdr=function(){return"smpte2084"===this.u||"arib-std-b67"===this.u};g.k=yD.prototype;g.k.lc=function(){return this.id.split(";",1)[0]}; g.k.ue=function(){return 2===this.containerType}; g.k.pj=function(){return!!this.td}; g.k.Gk=function(){return!!this.audio}; g.k.isVideo=function(){return!!this.video};ED.prototype.getName=function(){return this.name}; ED.prototype.getId=function(){return this.id}; ED.prototype.getIsDefault=function(){return this.isDefault}; ED.prototype.toString=function(){return this.name}; ED.prototype.getName=ED.prototype.getName;ED.prototype.getId=ED.prototype.getId;ED.prototype.getIsDefault=ED.prototype.getIsDefault;g.w(g.FD,gy);g.FD.prototype.S=function(a,b,c,d,e){return gy.prototype.S.call(this,a,b,c,d,e)};g.w(TD,g.R);g.k=TD.prototype;g.k.appendBuffer=function(a,b,c){if(this.qd.sy()!==this.appendWindowStart+this.start||this.qd.SC()!==this.appendWindowEnd+this.start||this.qd.Qc()!==this.timestampOffset+this.start)this.qd.supports(1),this.qd.hF(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.qd.nA(this.timestampOffset+this.start);this.qd.appendBuffer(a,b,c)}; g.k.abort=function(){this.qd.abort()}; g.k.remove=function(a,b){this.qd.remove(a+this.start,b+this.start)}; g.k.hF=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b}; g.k.gD=function(){return this.timestampOffset+this.start}; g.k.sy=function(){return this.appendWindowStart}; g.k.SC=function(){return this.appendWindowEnd}; g.k.nA=function(a){this.timestampOffset=a}; g.k.Qc=function(){return this.timestampOffset}; g.k.cf=function(a){a=this.qd.cf(void 0===a?!1:a);return SD(a,this.start,this.end)}; g.k.dh=function(){return this.qd.dh()}; g.k.yp=function(){return this.qd.yp()}; g.k.vy=function(){return this.qd.vy()}; g.k.TF=function(a,b){this.qd.TF(a,b)}; g.k.supports=function(a){return this.qd.supports(a)}; g.k.wy=function(){return this.qd.wy()}; g.k.isView=function(){return!0}; g.k.BA=function(a,b,c){return this.isActive?this.qd.BA(a,b,c):!1}; g.k.jC=function(){return this.qd.jC()?this.isActive:!1}; g.k.isLocked=function(){return this.ex&&!this.isActive}; g.k.Jb=function(a){return this.qd.Jb(a)+(";vw."+this.start+"-"+this.end)}; g.k.hv=function(){return this.qd.hv()}; g.k.ya=function(){ly(this.qd,this.JJ);g.R.prototype.ya.call(this)};var SU=!1;g.w(XD,g.R);g.k=XD.prototype;g.k.appendBuffer=function(a,b,c){var d;this.Ex=!1;c&&(this.Yy=c);b&&(b.pj()&&(this.oK=this.Yy),3===b.type&&(this.Qe=b));(null===(d=this.Tb)||void 0===d?0:d.appendBuffer)?this.Tb.appendBuffer(a):this.Tb?this.Tb.append(a):this.He&&this.He.webkitSourceAppend(this.id,a)}; g.k.abort=function(){try{this.Tb?this.Tb.abort():this.He&&this.He.webkitSourceAbort(this.id)}catch(a){}this.Yy=this.Qe=null}; g.k.remove=function(a,b){var c;this.Ex=!1;(null===(c=this.Tb)||void 0===c?0:c.remove)&&this.Tb.remove(a,b)}; g.k.sy=function(){var a;return SU&&this.isVideo?this.appendWindowStart:(null===(a=this.Tb)||void 0===a?void 0:a.appendWindowStart)||0}; g.k.SC=function(){var a;return(null===(a=this.Tb)||void 0===a?void 0:a.appendWindowEnd)||0}; g.k.hF=function(a,b){this.Tb&&(SU&&this.isVideo?(this.appendWindowStart=a,this.Tb.appendWindowEnd=b):a>this.sy()?(this.Tb.appendWindowEnd=b,this.Tb.appendWindowStart=a):(this.Tb.appendWindowStart=a,this.Tb.appendWindowEnd=b))}; g.k.gD=function(){return this.timestampOffset}; g.k.nA=function(a){SU?this.timestampOffset=a:this.supports(1)&&(this.Tb.timestampOffset=a)}; g.k.Qc=function(){return SU?this.timestampOffset:this.supports(1)?this.Tb.timestampOffset:0}; g.k.cf=function(a){if(void 0===a?0:a)return this.Ex||this.dh()||(this.jI=this.cf(!1),this.Ex=!0),this.jI;try{return this.Tb?this.Tb.buffered:this.He?this.He.webkitSourceBuffered(this.id):MD([0],[Infinity])}catch(b){return MD([],[])}}; g.k.dh=function(){var a;return(null===(a=this.Tb)||void 0===a?void 0:a.updating)||!1}; g.k.yp=function(){return this.Yy}; g.k.vy=function(){return this.oK}; g.k.TF=function(a,b){this.containerType!==a&&(this.supports(4),YD()&&this.Tb.changeType(b));this.containerType=a}; g.k.wy=function(){return this.Qe}; g.k.isView=function(){return!1}; g.k.supports=function(a){var b,c,d,e,f;switch(a){case 1:return void 0!==(null===(b=this.Tb)||void 0===b?void 0:b.timestampOffset);case 0:return!(null===(c=this.Tb)||void 0===c||!c.appendBuffer);case 2:return!(null===(d=this.Tb)||void 0===d||!d.remove);case 3:return!!((null===(e=this.Tb)||void 0===e?0:e.addEventListener)&&(null===(f=this.Tb)||void 0===f?0:f.removeEventListener));case 4:return!(!this.Tb||!this.Tb.changeType);default:return!1}}; g.k.jC=function(){return!this.dh()}; g.k.isLocked=function(){return!1}; g.k.Jb=function(a){var b,c;a.to=""+this.Qc();a.up=""+ +this.dh();var d=(null===(b=this.Tb)||void 0===b?void 0:b.appendWindowStart)||0,e=(null===(c=this.Tb)||void 0===c?void 0:c.appendWindowEnd)||Infinity;a.aw=d.toFixed(3)+"-"+e.toFixed(3);try{a.bu=ND(this.cf())}catch(f){}return g.VD(a)}; g.k.ya=function(){this.supports(3)&&(this.Tb.removeEventListener("updateend",this.qe),this.Tb.removeEventListener("error",this.qe));g.R.prototype.ya.call(this)}; g.k.BA=function(a,b,c){if(!this.supports(2)||this.dh())return!1;var d=this.cf(),e=OD(d,a);if(0>e)return!1;try{if(b&&e+1NMa){G2=NMa;break a}}var OMa=H2.match("("+g.Nb(LMa).join("|")+")");G2=OMa?LMa[OMa[0]]:0}else G2=void 0}var jF=G2,iF=0<=jF;var Vma={RED:"red",n$:"white"};var ana={FX:"adunit",q0:"detailpage",E0:"editpage",H0:"embedded",I0:"embedded_unbranded",N2:"leanback",k7:"previewpage",n7:"profilepage",y9:"unplugged",b7:"playlistoverview",K8:"sponsorshipsoffer",x8:"shortspage"};wma.prototype.Ga=function(a){return"true"===this.flags[a]};FE.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;Zt?a=a||PMa[b]:2.2===jF?a=a||QMa[b]:Pt()&&(a=a||RMa[b]);return!!a}; FE.prototype.isTypeSupported=function(a){this.oa();return this.J?window.cast.receiver.platform.canDisplayType(a):ID(a)}; FE.prototype.disableAv1=function(){this.N=!0}; FE.prototype.oa=function(){}; var QMa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},RMa={"application/x-mpegURL":"maybe"},PMa={"application/x-mpegURL":"maybe"};g.w(IE,g.R);IE.prototype.add=function(a,b){!this.items[a]&&(b.Cu||b.Jx||b.Zw)&&(this.items[a]=fc(b),this.Z("vast_info_card_add",a))}; IE.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b}; IE.prototype.get=function(a){return this.items[a]||null}; IE.prototype.isEmpty=function(){return g.Wb(this.items)};var rF={j3:1,k3:2,l3:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};JE.prototype.send=function(){g.wt(this.target,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:this.onComplete,onTimeout:this.onComplete,context:this});this.i=(0,g.Q)()}; JE.prototype.onComplete=function(a){var b,c={rc:a.status,lb:(null===(b=a.response)||void 0===b?void 0:b.byteLength)||0,rt:(((0,g.Q)()-this.i)/1E3).toFixed(3),shost:g.qi(this.target),trigger:this.trigger};204===a.status||200===a.status||a.response?this.u&&this.u(g.VD(c)):this.B(new g.UD("pathprobe.net",!1,c))};LE.prototype.Lg=function(a,b){var c=Math.pow(this.alpha,a);this.i=b*(1-c)+c*this.i;this.u+=a}; LE.prototype.pg=function(){return this.i/(1-Math.pow(this.alpha,this.u))};ME.prototype.Lg=function(a,b){a=Math.min(this.i,Math.max(1,Math.round(a*this.resolution)));a+this.valueIndex>=this.i&&(this.u=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.i;this.C=!0}; ME.prototype.pg=function(){return this.D?(NE(this,this.B-this.D)+NE(this,this.B)+NE(this,this.B+this.D))/3:NE(this,this.B)};g.w(Lma,g.I);var Oma=/^([0-9\.]+):([0-9\.]+)$/;var Tma="blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),$ma={jY:"cbrand",kY:"cbr",lY:"cbrver",U1:"c",X1:"cver",W1:"ctheme",V1:"cplayer",n5:"cmodel",U5:"cnetwork",o6:"cos",p6:"cosver",T6:"cplatform"};g.w(xF,g.I);g.k=xF.prototype;g.k.U=function(a){return this.experiments.Ga(a)}; g.k.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.AF(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.nF(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,Zt&&(a=ns())&&(b.ebc=a));return g.Bi(d,b)}; g.k.getVideoEmbedCode=function(a,b,c){a="https://"+g.AF(this)+"/embed/"+a;c&&(a=g.Bi(a,{list:c}));c=b.width;b=b.height;a=g.vd(a);return''}; g.k.supportsGaplessAudio=function(){return g.lj&&!Zt&&74<=Mt()||g.mj&&g.be(68)?!0:!1}; g.k.getPlayerType=function(){return this.deviceParams.cplayer}; g.k.ya=function(){g.I.prototype.ya.call(this)}; var ena=["www.youtube-nocookie.com","youtube.googleapis.com"];g.k=PF.prototype;g.k.df=function(){return this.i}; g.k.Jt=function(){return null}; g.k.nJ=function(){var a=this.Jt();return a?(a=g.Gs(a.i),Number(a.expire)):NaN}; g.k.eF=function(){}; g.k.lc=function(){return this.i.lc()}; g.k.getHeight=function(){return this.i.video.height};fna.prototype.Ve=function(){ina(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.i)var c=this.i;else{c="";for(var d=g.r(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.yc){if(e.yc.getIsDefault()){c=e.yc.getId();break a}c||(c=e.yc.getId())}}d=g.r(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.J||!e.yc||e.yc.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.i])for(e=g.r(e),f=e.next();!f.done;f= e.next()){var h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.yc){p=f.yc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.i?this.i===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=RF(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(hna(f,d)+'",URI="'+(q+'"'));l.call(h,m)}c=g.r(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=SMa,d=(h=d.yc)?'#EXT-X-MEDIA:URI="'+RF(this,d.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0f.getHeight())&&c.push(f)}return c}; tG.prototype.J=function(a,b,c,d){return new g.sG(a,b,c,d)};g.w(uG,g.sG);g.k=uG.prototype;g.k.ZC=function(){return this.u.getNumberOfSegments()}; g.k.hx=function(a){var b=this.rows*this.columns*this.J,c=this.u,d=c.getLastSegmentNumber();a=c.getSegmentNumberForTime(a);return a>d-b?-1:a}; g.k.Kt=function(){return this.u.getLastSegmentNumber()}; g.k.kB=function(){return this.u.getFirstSegmentNumber()}; g.k.CG=function(a){this.u=a};g.w(vG,tG);vG.prototype.u=function(a,b){return tG.prototype.u.call(this,"$N|"+a,b)}; vG.prototype.J=function(a,b,c){return new uG(a,b,c,this.isLive)};g.w(xG,g.R);g.k=xG.prototype;g.k.W=function(){return this.B}; g.k.U=function(a){return this.B.experiments.Ga(a)}; g.k.kf=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.k.lL=function(){this.isDisposed()||(this.i.B||this.i.unsubscribe("refresh",this.lL,this),this.yI(-1))}; g.k.yI=function(a){if(!this.isLivePlayback||!this.J||"fairplay"!=this.J.flavor){var b=Rla(this.i,this.RE);if(0=this.N&&(g.ys(Error("durationMs was specified incorrectly with a value of: "+this.N)),this.rh());this.zf();this.I.addEventListener("progresssync",this.ea)}; g.k.rg=function(){oI.prototype.rg.call(this);this.hd("adabandonedreset")}; g.k.zf=function(){var a=this.I.W();oI.prototype.zf.call(this);this.B=this.I.W().experiments.Ga("disable_rounding_ad_notify")?this.I.getCurrentTime():Math.floor(this.I.getCurrentTime());this.C=this.B+this.N/1E3;g.uF(a)?this.I.Oa("onAdMessageChange",{renderer:this.K.i,startTimeSecs:this.B}):pI(this,[new Hpa(this.K.i)]);a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Fy(),c=this.K.i.videoAdBreakOffsetMsInt64;b&&g.cw("adNotify",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.C), timeToAdBreakSec:Math.ceil(this.C-this.B),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.D)for(this.V=!0,a=g.r(this.D.listeners),b=a.next();!b.done;b=a.next())b=b.value,b.u?b.i?S("Received AdNotify started event before another one exited"):(b.i=b.u,lqa(b.B(),b.i)):S("Received AdNotify started event without start requested event");g.U(this.I.wb(1),512)&&(a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.Fy(),c=this.K.i.videoAdBreakOffsetMsInt64,b&&g.cw("adNotifyFailure",{clientScreenNonce:b, adMediaTimeMs:Math.floor(1E3*this.C),timeToAdBreakSec:Math.ceil(this.C-this.B),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.rh())}; g.k.rh=function(){oI.prototype.rh.call(this);this.hd("adended")}; g.k.Zg=function(a){oI.prototype.Zg.call(this,a);this.hd("aderror")}; g.k.hd=function(a){this.I.removeEventListener("progresssync",this.ea);this.nk();this.Z(a);Jpa(this)}; g.k.dispose=function(){this.I.removeEventListener("progresssync",this.ea);Jpa(this);oI.prototype.dispose.call(this)}; g.k.nk=function(){g.uF(this.I.W())?this.I.Oa("onAdMessageChange",{renderer:null,startTimeSecs:this.B}):oI.prototype.nk.call(this)};BI.prototype.sendAdsPing=function(a){this.J.send(a,Tpa(this),{})}; BI.prototype.Bd=function(a){var b=this;if(a){var c=Tpa(this);Array.isArray(a)?a.forEach(function(d){return b.u.executeCommand(d,c)}):this.u.executeCommand(a,c)}};CI.prototype.get=function(){return this.value}; g.w(DI,CI);DI.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"}; g.w(EI,CI);EI.prototype.getType=function(){return"metadata_type_ad_next_params"}; g.w(FI,CI);FI.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"}; g.w(GI,CI);GI.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"}; g.w(HI,CI);HI.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"}; g.w(II,CI);II.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"}; g.w(JI,CI);JI.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"}; g.w(KI,CI);KI.prototype.getType=function(){return"metadata_ad_video_is_listed"}; g.w(LI,CI);LI.prototype.getType=function(){return"metadata_type_ad_placement_config"}; g.w(MI,CI);MI.prototype.getType=function(){return"metadata_type_ad_pod_info"}; g.w(NI,CI);NI.prototype.getType=function(){return"metadata_type_ad_video_id"}; g.w(OI,CI);OI.prototype.getType=function(){return"metadata_type_ad_video_url"}; g.w(PI,CI);PI.prototype.getType=function(){return"metadata_type_content_cpn"}; g.w(QI,CI);QI.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"}; g.w(RI,CI);RI.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"}; g.w(SI,CI);SI.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"}; g.w(TI,CI);TI.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"}; g.w(UI,CI);UI.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"}; g.w(VI,CI);VI.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"}; g.w(WI,CI);WI.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"}; g.w(XI,CI);XI.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"}; g.w(YI,CI);YI.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"}; g.w(ZI,CI);ZI.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"}; g.w($I,CI);$I.prototype.getType=function(){return"metadata_type_player_bytes_callback"}; g.w(aJ,CI);aJ.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"}; g.w(bJ,CI);bJ.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"}; g.w(cJ,CI);cJ.prototype.getType=function(){return"metadata_type_sub_layouts"}; g.w(dJ,CI);dJ.prototype.getType=function(){return"metadata_type_cue_point"}; g.w(eJ,CI);eJ.prototype.getType=function(){return"metadata_type_video_length_seconds"}; g.w(fJ,CI);fJ.prototype.getType=function(){return"metadata_type_player_vars"}; g.w(gJ,CI);gJ.prototype.getType=function(){return"metadata_type_sodar_extension_data"}; g.w(hJ,CI);hJ.prototype.getType=function(){return"metadata_type_layout_enter_ms"}; g.w(iJ,CI);iJ.prototype.getType=function(){return"metadata_type_layout_exit_ms"}; g.w(jJ,CI);jJ.prototype.getType=function(){return"metadata_type_media_sub_layout_index"}; g.w(kJ,CI);kJ.prototype.getType=function(){return"metadata_type_dai"}; g.w(lJ,CI);lJ.prototype.getType=function(){return"metadata_type_ad_intro"}; g.w(mJ,CI);mJ.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"}; g.w(nJ,CI);nJ.prototype.getType=function(){return"metadata_type_drift_recovery_ms"}; g.w(oJ,CI);oJ.prototype.getType=function(){return"metadata_type_fulfilled_layout"}; g.w(pJ,CI);pJ.prototype.getType=function(){return"metadata_type_ad_break_request_data"}; g.w(qJ,CI);qJ.prototype.getType=function(){return"metadata_type_ad_break_response_data"}; g.w(rJ,CI);rJ.prototype.getType=function(){return"metadata_type_remote_slots_data"}; g.w(sJ,CI);sJ.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"}; g.w(tJ,CI);tJ.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"}; g.w(uJ,CI);uJ.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"}; g.w(vJ,CI);vJ.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"}; g.w(wJ,CI);wJ.prototype.getType=function(){return"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR"}; g.w(xJ,CI);xJ.prototype.getType=function(){return"metadata_type_served_from_live_infra"}; g.w(yJ,CI);yJ.prototype.getType=function(){return"metadata_type_survey_overlay"};Zpa.prototype.Bd=function(a){this.i.Bd(a)};g.w(AJ,g.R);AJ.prototype.getProgressState=function(){return this.B}; AJ.prototype.start=function(){this.C=Date.now();aqa(this,{current:this.i/1E3,duration:this.u/1E3});this.Lb.start()}; AJ.prototype.stop=function(){this.Lb.stop()};g.w(BJ,FH);g.w(CJ,g.R);CJ.prototype.start=function(){this.B||(this.B=!0,this.u.start(),this.C=Date.now())}; CJ.prototype.stop=function(){this.B&&(this.B=!1,this.u.stop())}; CJ.prototype.Ob=function(){var a=Date.now(),b=a-this.C;this.C=a;this.i+=b;this.i>=this.durationMs?(this.i=this.durationMs,this.u.stop(),this.D(this.i),this.J()):this.D(this.i)};g.w(FJ,oI);g.k=FJ.prototype;g.k.Vq=function(){this.zf()}; g.k.zf=function(){var a=this,b=this.C.i;if(g.uF(this.I.W()))bqa(this,b),this.V=Date.now(),this.B&&this.B.start();else if(pI(this,[new BJ(b)]),this.C.i.controlWithFixEnabled){var c=1E3*this.C.u;this.K=new CJ(c,function(d){var e={current:d/1E3,duration:c/1E3};qI(a,d/1E3);a.I.Oa("onAdPlaybackProgress",e)},function(){var d={current:c/1E3, duration:c/1E3};EJ(a);a.I.Oa("onAdPlaybackProgress",d)}); g.J(this,this.K);this.K.start()}DJ();oI.prototype.zf.call(this)}; g.k.getDuration=function(){return this.C.u}; g.k.Cn=function(){oI.prototype.Cn.call(this);this.B&&this.B.stop()}; g.k.Dn=function(){oI.prototype.Dn.call(this);this.B&&this.B.start()}; g.k.rg=function(){oI.prototype.rg.call(this);this.hd("adabandoned")}; g.k.Gp=function(){oI.prototype.Gp.call(this);this.hd("adended")}; g.k.DG=function(){var a=this.I.W();this.C.i.controlWithFixEnabled&&!g.uF(a)&&(a=2===this.I.getPresentingPlayerType(!0),this.J&&!a&&(EJ(this),this.hd("adended")))}; g.k.Zg=function(a){this.I.W().experiments.Ga("html5_block_player_errors_while_survey_active")?S("Unexpected Player Error while the Survey is playing."):(oI.prototype.Zg.call(this,a),this.hd("aderror"))}; g.k.hd=function(a){this.nk();this.Z(a)}; g.k.Af=function(a){switch(a){case "skip-button":this.Gp();break;case "survey-submit":this.hd("adended")}}; g.k.nk=function(){g.uF(this.I.W())?(this.B&&this.B.stop(),this.I.Oa("onAdInfoChange",null)):oI.prototype.nk.call(this)};g.w(GJ,FH);g.w(HJ,oI);HJ.prototype.Vq=function(){this.zf()}; HJ.prototype.zf=function(){DJ();pI(this,[new GJ(this.B.i,this.macros)]);oI.prototype.zf.call(this)}; HJ.prototype.rg=function(){oI.prototype.rg.call(this);this.hd("adabandoned")}; HJ.prototype.Zg=function(a){oI.prototype.Zg.call(this,a);this.hd("aderror")};g.w(KJ,FH);g.w(LJ,oI);g.k=LJ.prototype;g.k.fv=function(){return{currentTime:this.I.getCurrentTime(2,!1),duration:this.B.u,isPlaying:dpa(this.I),isVpaid:!1,isYouTube:!0,volume:this.I.isMuted()?0:this.I.getVolume()/100}}; g.k.Vq=function(){if(this.B.V)Fpa(this),this.hd("aderror");else{var a=this.B.i.legacyInfoCardVastExtension,b=this.B.D;a&&b&&this.I.W().V.add(b,{Cu:a});try{var c=this.B.i.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{ml(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.nc("//tpc.googlesyndication.com/sodar/%{path}");g.zz(new g.hw("Load Sodar Error.",d instanceof lc,d.constructor===lc,{Message:e.message,"Escaped injector basename":g.vd(c.siub),"BG vm basename":c.bgub}));if(d.constructor===lc)throw e; }}catch(e){g.yz(e)}DH(this.I,!1);a=mpa(this.B);b=this.I.W();this.I.W().experiments.Ga("disable_force_iv_load_policy_on_bulleit")||(a.iv_load_policy=b.i||g.uF(b)||g.GF(b)?3:1);b=this.I.getVideoData(1);b.Ag&&(a.ctrl=b.Ag);b.Df&&(a.ytr=b.Df);b.Dl&&(a.ytrcc=b.Dl);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.Vh&&(a.vss_credentials_token_type=b.Vh),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.Z("adunstarted",-1);this.V?this.D.start():(this.I.cueVideoByPlayerVars(a, 2),this.D.start(),this.I.playVideo(2))}}; g.k.Cn=function(){oI.prototype.Cn.call(this);this.Z("adpause",2)}; g.k.Dn=function(){oI.prototype.Dn.call(this);this.Z("adplay",1)}; g.k.zf=function(){oI.prototype.zf.call(this);this.D.stop();this.ea.S(this.I,g.yA("bltplayback"),this.YN);var a=new g.wA(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});this.I.Kd([a],2);a=PJ(this);this.C.Ma=a;if(this.I.isMuted()){a=this.i;var b=this.I.isMuted();cI(a)||eI(a,b?"mute":"unmute")}this.Z("adplay",1);if(null!==this.N){a=null!==this.C.i.getVideoData(1)?this.C.i.getVideoData(1).clientPlaybackNonce:"";b=iqa(this);for(var c=this.B,d=hqa(this),e=g.r(this.N.listeners), f=e.next();!f.done;f=e.next()){f=f.value;var h=b,l=c,m=d,n=[],p=l.D,q=l.getVideoUrl();p&&n.push(new NI(p));q&&n.push(new OI(q));(p=(p=l.i)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new QI(p)),(p=p.elementId)&&n.push(new XI(p))):S("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");l.i.adNextParams&&n.push(new EI(l.i.adNextParams||""));(p=l.Aa)&&n.push(new FI(p));(p=iA(f.N.get(),2))?(n.push(new JI({channelId:p.Ti,channelThumbnailUrl:p.Qh,channelTitle:p.author, videoTitle:p.title})),n.push(new KI(p.isListed))):S("Expected meaningful PlaybackData on ad started.");n.push(new MI(l.B));n.push(new eJ(l.u));n.push(new PI(a));n.push(new aJ({current:this}));p=l.Qa;null!=p.kind&&n.push(new LI(p));(p=l.La)&&n.push(new rJ(p));void 0!==m&&n.push(new sJ(m));f.i?S(f.i.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):jqa(f,h,n,!0,l.i.adLayoutLoggingData)}}this.K.Qo=this;this.I.Oa("onAdStart",PJ(this));a=g.r(this.B.i.impressionCommands|| []);for(b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)}; g.k.YN=function(a){"bltcompletion"==a.getId()&&(this.I.Xe("bltplayback",2),fI(this.i,this.getDuration()),OJ(this,"adended"),S1(this.K,this))}; g.k.rh=function(){oI.prototype.rh.call(this);this.hd("adended");for(var a=g.r(this.B.i.completeCommands||[]),b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)}; g.k.rg=function(){oI.prototype.rg.call(this);this.hd("adabandoned")}; g.k.eA=function(){var a=this.i;bI(a)||iI(a,"clickthrough")}; g.k.lw=function(){this.Gp()}; g.k.Gp=function(){oI.prototype.Gp.call(this);this.hd("adended")}; g.k.Zg=function(a){oI.prototype.Zg.call(this,a);this.hd("aderror")}; g.k.hd=function(a){this.D.stop();DH(this.I,!0);"adabandoned"!=a&&this.I.Oa("onAdComplete");OJ(this,a);S1(this.K,this);this.I.Oa("onAdEnd",PJ(this));this.Z(a)}; g.k.nk=function(){var a=this.I.W();g.uF(a)&&(g.GF(a)||a.U("enable_topsoil_wta_for_halftime")||a.U("enable_topsoil_wta_for_halftime_live_infra")||g.uF(a))?this.I.Oa("onAdInfoChange",null):oI.prototype.nk.call(this)}; g.k.em=function(){this.ZE()}; g.k.ZE=function(){this.VR&&this.I.playVideo()}; g.k.VR=function(){return 2==this.I.getPlayerState(2)}; g.k.Af=function(){}; g.k.WI=function(a,b){if(this.B.V)return Fpa(this),this.hd("aderror"),"";if(!Number.isFinite(a))return g.yz(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.yz(Error("Start time is not earlier than end time")),"";var c=1E3*this.B.u,d=mpa(this.B);d=this.I.qr(d,2,c,a,b);a+c>b&&this.I.kt(d,b-a);return d}; g.k.dispose=function(){dpa(this.I)&&!this.V&&this.I.stopVideo(2);OJ(this,"adabandoned");S1(this.K,this);oI.prototype.dispose.call(this)};QJ.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.i[b];c?b=c:(c={Ku:null,vK:-Infinity},b=this.i[b]=c);c=a.startSecs+a.i/1E3;if(!(cyH&&(a=Math.max(.1,a)),this.jA(a))}; g.k.stopVideo=function(){this.yf()&&(XMa&&Zt&&0b.i.getCurrentTime(2,!1)&&!b.i.W().experiments.Ga("html5_dai_pseudogapless_seek_killswitch")))){c=b.ad;if(c.Kv()){var d=b.B.I.W().experiments.Ga("html5_dai_enable_active_view_creating_completed_adblock");Eq(c.K,d)}b.ad.J.seek=!0}0>mI(a,4)&&!(0>mI(a,2))&&(b=this.u.i,bI(b)||(cI(b)?iI(b,"resume"):eI(b,"resume")));!this.I.W().experiments.Ga("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.nI(a,512)&&!g.jK(a.state)&&XJ(this.C)}}}}; g.k.qb=function(){return this.daiEnabled?Jqa(this):!1}; g.k.resume=function(){this.u&&this.u.ZE()}; g.k.Ym=function(){this.u&&this.u.hd("adended")}; g.k.rk=function(){this.Ym()}; g.k.Ei=function(a){this.Of.Ei(a)}; g.k.ZN=function(a){this.Of.i.Oa("onAdUxUpdate",a)}; g.k.onAdUxClicked=function(a){this.u.Af(a)}; g.k.RC=function(){return 1}; g.k.MF=function(a){this.daiEnabled&&this.i.K&&this.i.i.start<=a&&a=this.D?this.B.i:this.B.i.slice(this.D)).some(function(a){return a.Yr()})}; g.k.Jk=function(){return this.J instanceof TH||this.J instanceof wI}; g.k.Nv=function(){return this.J instanceof MH||this.J instanceof uI}; g.k.SL=function(){this.daiEnabled?BH(this.I)&&Jqa(this):vra(this)}; g.k.Mt=function(a){var b=ura(a);this.J&&b&&this.N!==b&&(b?msa(this.Of):osa(this.Of),this.N=b);this.J=a;this.daiEnabled&&(this.D=this.B.i.findIndex(function(c){return c===a})); lK.prototype.Mt.call(this,a)}; g.k.rk=function(){this.D=this.B.i.length;this.u&&this.u.hd("adended");pK(this)}; g.k.Ym=function(){this.Zp()}; g.k.Zp=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Ei(0),a?pK(this,a,b):vra(this))}; g.k.XK=function(){1==this.B.u?pK(this):this.Zp()}; g.k.Cy=function(){var a=0>=this.D?this.B.i:this.B.i.slice(this.D);return 0mI(a,16)&&(this.N.forEach(this.pE,this),this.N.clear())}; g.k.GV=function(){this.u&&this.u.qb()}; g.k.JV=function(){if(BH(this.i)&&this.u){var a=this.i.getCurrentTime(2,!1),b=this.u;b.u&&qI(b.u,a)}}; g.k.zS=function(){this.Xa=!0;if(this.u){var a=this.u;a.u&&a.u.rg()}}; g.k.KS=function(a){if(this.u)this.u.onAdUxClicked(a)}; g.k.KV=function(){if(2==this.i.getPresentingPlayerType()&&this.u){var a=this.u.u,b=a.i;a=a.I.isMuted();cI(b)||eI(b,a?"mute":"unmute")}}; g.k.GT=function(a){if(this.u){var b=this.u.u.i;bI(b)||iI(b,a?"fullscreen":"end_fullscreen")}}; g.k.Yf=function(a,b){this.i.Yf(a,b);a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.Uo.delete(b),this.B.delete(b)}; g.k.dX=function(){for(var a=[],b=g.r(this.Uo),c=b.next();!c.done;c=b.next())c=c.value,BA(c)||a.push(c);b=this.i.app;1!==b.getPresentingPlayerType()||bY(b,"cuerangemarkersupdated",a)}; g.k.Ei=function(a){this.i.Ei(a);switch(a){case 1:this.Oy=1;break;case 0:this.Oy=0}}; g.k.oF=function(){var a=this.i.getVideoData(2);return a?a.isListed&&!this.V:!1}; g.k.Ym=function(){this.u&&this.u.Jp()&&this.u.Ym()}; g.k.rk=function(){this.u&&this.u.Jp()&&this.u.rk()}; g.k.Zx=function(){}; g.k.Lx=function(){}; g.k.Ob=function(a){if(this.u){var b=this.u;b.u&&qI(b.u,a)}}; g.k.Jk=function(){return BH(this.i)&&!!this.u&&this.u.Jk()}; g.k.executeCommand=function(a,b,c){var d=this.gb,e=d.executeCommand;if(c=void 0===c?null:c){var f=!!this.u&&this.u||null;f?(f=f.u,c=f.ad.Kv()?gI(f.i,c):{}):c={}}else c={};e.call(d,a,b,c)}; g.k.hJ=function(){return this.Ba}; g.k.iJ=function(){return this.La};g.w(SK,g.I);SK.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.i.appendChild(a.i)}; g.w(TK,SK);g.w(rsa,g.I);var tsa=1;g.w(g.VK,g.I);g.k=g.VK.prototype; g.k.createElement=function(a,b){b=b||"svg"===a.G;var c=a.L,d=a.Ia;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.G);g.KF&&(a.X||(a.X={}),a.X.focusable="false")}else e=g.Cg(a.G);if(c){if(c=WK(this,e,"class",c))XK(this,e,"class",c),this.rb[c]=e}else if(d){c=g.r(d);for(var f=c.next();!f.done;f=c.next())this.rb[f.value]=e;XK(this,e,"class",d.join(" "))}d=a.va;c=a.T;if(d)b=WK(this,e,"child",d),void 0!==b&&e.appendChild(g.Dg(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=WK(this,e,"child",f),null!=f&&e.appendChild(g.Dg(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Nb&&(h=UK(),f.id=h,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","#"+h),g.Fg(e,f,d++))}if(a=a.X)for(b=e,d=g.r(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],XK(this,b,c,"string"===typeof f? WK(this,b,c,f):f);return e}; g.k.Fa=function(a){return this.rb[a]}; g.k.Ea=function(a,b){"number"===typeof b?g.Fg(a,this.element,b):a.appendChild(this.element)}; g.k.detach=function(){g.Gg(this.element)}; g.k.update=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.Ua(c,a[c])}; g.k.Ua=function(a,b){(a=this.Xb["{{"+a+"}}"])&&XK(this,a[0],a[1],b)}; g.k.ya=function(){this.rb={};this.Xb={};this.detach();g.I.prototype.ya.call(this)};g.w(g.W,g.VK);g.k=g.W.prototype;g.k.fd=function(a,b){this.Ua(b||"content",a)}; g.k.show=function(){this.zb||(g.Vl(this.element,"display",""),this.zb=!0)}; g.k.hide=function(){this.zb&&(g.Vl(this.element,"display","none"),this.zb=!1)}; g.k.Wb=function(a){this.ea=a}; g.k.Sa=function(a,b,c){return this.S(this.element,a,b,c)}; g.k.S=function(a,b,c,d){c=(0,g.D)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d}; g.k.kc=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.k.focus=function(){var a=this.element;Lg(a);a.focus()}; g.k.ya=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.VK.prototype.ya.call(this)};g.w(g.ZK,g.W);g.ZK.prototype.subscribe=function(a,b,c){return this.Ma.subscribe(a,b,c)}; g.ZK.prototype.unsubscribe=function(a,b,c){return this.Ma.unsubscribe(a,b,c)}; g.ZK.prototype.ag=function(a){return this.Ma.ag(a)}; g.ZK.prototype.Z=function(a,b){for(var c=[],d=1;dMath.pow(5,2))b.C=!0}; g.k.cO=function(a){if(this.ma){var b=this.ma,c=a.changedTouches;c&&b.K&&1==b.u&&!b.C&&!b.D&&!b.J&&ssa(b,c)&&(b.ea=a,b.i.start());b.u=a.touches.length;0===b.u&&(b.K=!1,b.C=!1,b.B.length=0);b.D=!1}}; g.k.Qg=function(a,b){this.api.Qg(a,this);this.api.xm(a,b)}; g.k.jb=function(a,b){this.api.Gv(a)&&this.api.jb(a,b,this.yb)}; g.k.ya=function(){this.clear(null);this.kc(this.bb);for(var a=g.r(this.xa),b=a.next();!b.done;b=a.next())this.kc(b.value);g.ZK.prototype.ya.call(this)};g.w(nL,$K); nL.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);this.i=b;if(null==b.text&&null==b.icon)As(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.N(this.element,a);null!=b.text&&(a=g.DA(b.text),g.xc(a)||(this.element.setAttribute("aria-label",a),this.B=new g.ZK({G:"span",L:"ytp-ad-button-text",va:a}),g.J(this,this.B),this.B.Ea(this.element)));null!=b.icon&&(b=mL(b.icon),null!= b&&(this.u=new g.ZK({G:"span",L:"ytp-ad-button-icon",T:[b]}),g.J(this,this.u)),this.C?g.Fg(this.element,this.u.element,0):this.u.Ea(this.element))}}; nL.prototype.clear=function(){this.hide()}; nL.prototype.onClick=function(a){var b=this;$K.prototype.onClick.call(this,a);Msa(this).forEach(function(c){return b.Za.executeCommand(c,b.macros)}); this.api.onAdUxClicked(this.componentType,this.layoutId)};g.w(oL,g.I);oL.prototype.ya=function(){this.u&&g.wu(this.u);this.i.clear();pL=null;g.I.prototype.ya.call(this)}; oL.prototype.register=function(a,b){b&&this.i.set(a,b)}; var pL=null;g.w(rL,$K); rL.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.ys(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new nL(this.api,this.Za,this.layoutId,this.yb),g.J(this,this.button),this.button.init(EH("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.DA(a)),this.button.Ea(this.element),this.D&&!g.Tq(this.button.element,"ytp-ad-clickable")&&g.N(this.button.element,"ytp-ad-clickable"), a&&(this.u=new g.ZK({G:"div",L:"ytp-ad-hover-text-container"}),this.C&&(b=new g.ZK({G:"div",L:"ytp-ad-hover-text-callout"}),b.Ea(this.u.element),g.J(this,b)),g.J(this,this.u),this.u.Ea(this.element),b=qL(a),g.Fg(this.u.element,b,0)),this.show())}; rL.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();$K.prototype.hide.call(this)}; rL.prototype.show=function(){this.button&&this.button.show();$K.prototype.show.call(this)};g.w(tL,$K);tL.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&sL(a)||"";g.xc(b)?(this.api.W().experiments.Ga("web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&As(Error("Found AdImage without valid image URL")):(this.i?g.Vl(this.element,"backgroundImage","url("+b+")"):tg(this.element,{src:b}),tg(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())}; tL.prototype.clear=function(){this.hide()};g.w(uL,$K);g.k=uL.prototype;g.k.hide=function(){$K.prototype.hide.call(this);this.B&&this.B.focus()}; g.k.show=function(){this.B=document.activeElement;$K.prototype.show.call(this);this.C.focus()}; g.k.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);this.u=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.ys(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.ys(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Qsa(this,b):g.ys(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.k.clear=function(){g.jy(this.i);this.hide()}; g.k.mE=function(){this.hide()}; g.k.lB=function(){var a=this.u.cancelEndpoint;a&&this.Za.executeCommand(a,this.macros);this.hide()}; g.k.nE=function(){var a=this.u.confirmNavigationEndpoint||this.u.confirmEndpoint;a&&this.Za.executeCommand(a,this.macros);this.hide()};g.w(vL,$K);g.k=vL.prototype; g.k.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);this.u=b;if(null==b.defaultText&&null==b.defaultIcon)g.ys(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.ys(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.N(this.B,a)}a={};b.defaultText? (c=g.DA(b.defaultText),g.xc(c)||(a.buttonText=c,this.i.setAttribute("aria-label",c))):g.km(this.Aa,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.i.hasAttribute("aria-label")||this.V.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=mL(b.defaultIcon),this.Ua("untoggledIconTemplateSpec",c),b.toggledIcon?(this.K=!0,c=mL(b.toggledIcon),this.Ua("toggledIconTemplateSpec",c)):(g.km(this.D,!0),g.km(this.C,!1)),g.km(this.i,!1)):g.km(this.V,!1);g.Wb(a)||this.update(a);b.isToggled&& (g.N(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));wL(this);this.S(this.element,"change",this.EG);this.show()}}; g.k.onClick=function(a){0a&&g.ys(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Ta&&g.N(this.u.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.Aa=null==a||0===a?this.i.ev():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.B.init(EH("ad-text"),d,c);(d=this.api.getVideoData(1))&& d.Vj&&b.thumbnail?this.D.init(EH("ad-image"),b.thumbnail,c):this.K.hide()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){this.u.hide();this.B.hide();this.D.hide();GL(this);EL.prototype.hide.call(this)}; g.k.show=function(){FL(this);this.u.show();this.B.show();this.D.show();EL.prototype.show.call(this)}; g.k.kq=function(){this.hide()}; g.k.Zn=function(){if(null!=this.i){var a=this.i.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ha&&a>=this.Aa?(this.V.hide(),this.Ha=!0,this.Z("i")):this.B&&this.B.isTemplated()&&(a=Math.max(0,Math.ceil((this.Aa-a)/1E3)),a!=this.La&&(DL(this.B,{TIME_REMAINING:String(a)}),this.La=a)))}};g.w(LL,EL);g.k=LL.prototype; g.k.init=function(a,b,c){EL.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.Aa&&(GL(this),g.Vq(this.element,"ytp-flyout-cta-inactive"))}}; g.k.kq=function(){this.clear()}; g.k.clear=function(){this.hide()}; g.k.show=function(){this.u&&this.u.show();EL.prototype.show.call(this)}; g.k.hide=function(){this.u&&this.u.hide();EL.prototype.hide.call(this)};g.w(ML,$K);g.k=ML.prototype;g.k.init=function(a,b,c){var d=this;$K.prototype.init.call(this,a,b,c);this.i=b;this.i.rectangle&&(dta(this,c),this.C.show(100),this.show(),(this.i&&this.i.impressionCommands||[]).forEach(function(e){return d.Za.executeCommand(e,d.macros)}))}; g.k.clear=function(){this.hide()}; g.k.hide=function(){this.B.hide();this.u.hide();$K.prototype.hide.call(this)}; g.k.show=function(){this.B.show();this.u.show();$K.prototype.show.call(this)}; g.k.GG=function(){Xq(this.element,"ytp-ad-instream-user-sentiment-selected");this.i.postMessageAction&&this.api.Oa("onYtShowToast",this.i.postMessageAction);this.C.hide()}; g.k.onClick=function(a){0=this.K&>a(this,!0)};g.w(QL,nL);QL.prototype.init=function(a,b,c){nL.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.DA(b.text),a=!g.xc(a));a?null==b.navigationEndpoint?As(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?As(Error("Button style was not a link-style type in renderer,")):this.show():As(Error("No visit advertiser text was present in the renderer."))};g.w(RL,$K);RL.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);a=b.text;g.xc(aL(a))?As(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.i&&(b=this.api.W(),b=a.text+" "+(b&&b.i?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new CL(this.api,this.Za,this.layoutId,this.yb),a.init(EH("simple-ad-badge"),b,c),a.Ea(this.element),g.J(this,a)),this.show())}; RL.prototype.clear=function(){this.hide()};g.w(SL,g.R);g.k=SL.prototype;g.k.ev=function(){return this.durationMs}; g.k.stop=function(){this.i&&this.qe.kc(this.i)}; g.k.Ob=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.Z("h")}; g.k.getProgressState=function(){return this.u}; g.k.Jc=function(a){g.nI(a,2)&&this.Z("g")};g.w(TL,g.R);g.k=TL.prototype;g.k.ev=function(){return this.durationMs}; g.k.start=function(){this.B||(this.B=!0,this.i.start(),this.C=Date.now())}; g.k.stop=function(){this.B&&(this.B=!1,this.i.stop())}; g.k.Ob=function(){var a=Date.now(),b=a-this.C;this.J?(this.C=a,this.u+=b):this.u+=100;a=!1;this.u>this.durationMs&&(this.u=this.durationMs,this.i.stop(),a=!0);this.D={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.u/1E3};this.Za&&this.Za.Ob(this.D.current);this.Z("h");a&&this.Z("g")}; g.k.getProgressState=function(){return this.D};g.w(WL,EL);g.k=WL.prototype;g.k.init=function(a,b,c){var d;EL.prototype.init.call(this,a,b,c);if(null===(d=null===b||void 0===b?void 0:b.templatedCountdown)||void 0===d?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){As(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.u=new CL(this.api,this.Za,this.layoutId,this.yb);this.u.init(EH("ad-text"),a,{});this.u.Ea(this.element);g.J(this,this.u)}this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){GL(this);EL.prototype.hide.call(this)}; g.k.kq=function(){this.hide()}; g.k.Zn=function(){if(null!=this.i){var a=this.i.getProgressState();if(null!=a&&null!=a.current&&this.u){a=(this.i instanceof SL?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.i instanceof TL?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.UL(a);DL(this.u,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}}; g.k.show=function(){FL(this);EL.prototype.show.call(this)};g.w(XL,CL);XL.prototype.onClick=function(a){CL.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.w(bM,g.ZK);bM.prototype.Ob=function(){var a=this.u.getProgressState();this.Lc.style.width=100*aM(new YL(a.seekableStart,a.seekableEnd),a.current,0)+"%"}; bM.prototype.B=function(){g.nF(this.api.W())||(2===this.api.getPresentingPlayerType()?-1===this.i&&(this.show(),this.i=this.u.subscribe("h",this.Ob,this),this.Ob()):-1!==this.i&&(this.hide(),this.u.ag(this.i),this.i=-1))};g.w(cM,$K); cM.prototype.init=function(a,b,c,d){$K.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new PL(this.api,this.Za,this.layoutId,this.yb,this.i,this.D),c.Ea(this.C),c.init(EH("skip-button"),a.skipAdRenderer,this.macros),g.J(this,c)):a.adPreviewRenderer&&(c=new JL(this.api,this.Za,this.layoutId,this.yb,this.i,!1),c.Ea(this.C),c.init(EH("ad-preview"),a.adPreviewRenderer,this.macros),KL(c),g.J(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c= new ML(this.api,this.Za,this.layoutId,this.yb),c.Ea(this.V),c.init(EH("instream-user-sentiment"),a,this.macros),g.J(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new LL(this.api,this.Za,this.layoutId,this.yb,this.i),g.J(this,c),c.Ea(this.K),c.init(EH("flyout-cta"),a.flyoutCtaRenderer,this.macros)));d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Anuncio",isTemplated:!1}}),c=new RL(this.api,this.Za, this.layoutId,this.yb,!0),g.J(this,c),c.Ea(this.u),c.init(EH("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 WL(this.api,this.Za,this.layoutId,this.yb,this.i,d),g.J(this,d),d.Ea(this.u),d.init(EH("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new BL(this.api, this.Za,this.layoutId,this.yb,this.element),g.J(this,a),a.Ea(this.u),a.init(EH("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=ita(this)&&this.B?this.B:this.u))&&(a=new QL(this.api,this.Za,this.layoutId,this.yb),g.J(this,a),a.Ea(d),a.init(EH("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.W())&&!kF(b)&&"3"==b.controlsType&&(b=new bM(this.api,this.i),b.Ea(this.Aa),g.J(this,b));this.api.W().experiments.Ga("enable_updated_html5_player_focus_style")&& g.N(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; cM.prototype.clear=function(){this.hide()};g.Fa("yt.pubsub.publish",g.ev,void 0);var kM={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var W2={},nta=(W2.WEB_UNPLUGGED="^unplugged/",W2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",W2.WEB_UNPLUGGED_OPS="^unplugged/",W2.WEB_UNPLUGGED_PUBLIC="^unplugged/",W2.WEB_CREATOR="^creator/",W2.WEB_KIDS="^kids/",W2.WEB_EXPERIMENTS="^experiments/",W2.WEB_MUSIC="^music/",W2.WEB_REMIX="^music/",W2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",W2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",W2);hM.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?kM:c;var d={context:vK(a.clickTrackingParams,!1,this.C)};var e=this.i(a);if(e){this.u(d,e,b);var f,h;b=g.eM(this.B());(a=null===(h=null===(f=a.commandMetadata)||void 0===f?void 0:f.webCommandMetadata)||void 0===h?void 0:h.apiUrl)&&(b=a);f=pta(fM(b),void 0);d={input:f,oq:gM(f),Sl:d,config:Object.assign({},void 0)};d.config.Zo?d.config.Zo.identity=c:d.config.Zo={identity:c};return d}g.yz(new g.hw("Error: Failed to create Request from Command.", a))}; fa.Object.defineProperties(hM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.w(iM,hM);iM.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",oq:gM("/getDatasyncIdsEndpoint","GET"),Sl:{}}}; iM.prototype.B=function(){return[]}; iM.prototype.i=function(){}; iM.prototype.u=function(){};var ZMa={},qta=(ZMa.GET_DATASYNC_IDS=iM,ZMa);g.w(mM,hM);mM.prototype.B=function(){return qMa}; mM.prototype.i=function(a){return a.subscribeEndpoint}; mM.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)}; fa.Object.defineProperties(mM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(nM,hM);nM.prototype.B=function(){return rMa}; nM.prototype.i=function(a){return a.unsubscribeEndpoint}; nM.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)}; fa.Object.defineProperties(nM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(oM,hM);oM.prototype.B=function(){return nMa}; oM.prototype.i=function(a){return a.feedbackEndpoint}; oM.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))}; fa.Object.defineProperties(oM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(pM,hM);pM.prototype.B=function(){return oMa}; pM.prototype.i=function(a){return a.modifyChannelNotificationPreferenceEndpoint}; pM.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.w(qM,hM);qM.prototype.B=function(){return pMa}; qM.prototype.i=function(a){return a.playlistEditEndpoint}; qM.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(rM,hM);rM.prototype.B=function(){return mMa}; rM.prototype.i=function(a){return a.webPlayerShareEntityServiceEndpoint}; rM.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};sM.prototype.fetch=function(a,b){var c=this;a=new window.Request(a,b);return Promise.resolve(fetch(a).then(function(d){return c.handleResponse(d)}).catch(function(d){g.zz(d)}))}; sM.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))}); a.redirected||a.ok||(b=b.then(function(c){g.zz(new g.hw("Error: API fetch failed",a.status,a.url,c));return Object.assign(Object.assign({},c),{errorMetadata:{status:a.status}})})); return b};var tM;vM.prototype.fetch=function(a,b,c){var d=this;return new Promise(function(e){var f,h,l=new XMLHttpRequest;l.onerror=function(){e(d.handleResponse(a,l.status,l.response))}; l.onload=function(){e(d.handleResponse(a,l.status,l.response))}; if(null===c||void 0===c?0:c.Cs)l.onreadystatechange=function(q){c.Cs(l,q)}; l.open(null!==(f=b.method)&&void 0!==f?f:"GET",a,!0);l.responseType="text";l.withCredentials=!0;if(b.headers)for(var m=g.r(Object.entries(b.headers)),n=m.next();!n.done;n=m.next()){var p=g.r(n.value);n=p.next().value;p=p.next().value;l.setRequestHeader(n,p)}l.send(null!==(h=b.body)&&void 0!==h?h:null)})}; vM.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.zz(new g.hw("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.zz(new g.hw("XHR API fetch failed",a,b,c)),d=Object.assign(Object.assign({},d),{errorMetadata:{status:b}}));return d};var xta=[],wM=!1;xM.getInstance=function(){var a=g.Ga("ytglobal.storage_");a||(a=new xM,g.Fa("ytglobal.storage_",a,void 0));return a}; xM.prototype.estimate=function(){var a,b;return g.H(this,function d(){var e;return g.B(d,function(f){e=navigator;return(null===(a=e.storage)||void 0===a?0:a.estimate)?f.return(e.storage.estimate()):(null===(b=e.webkitTemporaryStorage)||void 0===b?0:b.queryUsageAndQuota)?f.return(Ata()):f.return()})})}; g.Fa("ytglobal.storageClass_",xM,void 0);aw.prototype.Wd=function(a){this.handleError(a)}; aw.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.us("idb_data_corrupted_killswitch")||this.i("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.i("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.us("idb_is_supported_completed_killswitch")||this.i("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":Cta(this,b);break;case "TRANSACTION_ENDED":this.B&&this.i("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign(Object.assign({}, b),{hasWindowUnloaded:this.u}),this.i("idbTransactionAborted",a)}};yM.prototype.initialize=function(a,b,c,d){d=void 0===d?!1:d;var e,f;if(a.program){var h=null!==(e=a.interpreterScript)&&void 0!==e?e:null,l=null!==(f=a.interpreterUrl)&&void 0!==f?f:null;if(a.interpreterSafeScript){var m=a.interpreterSafeScript;h=g.nc("From proto message. b/166824318");m=m.privateDoNotAccessOrElseSafeScriptWrappedValue||"";mc(h);mc(h);h=(h=ic())?h.createScript(m):m;h=(new pc(h,oc)).toString()}a.interpreterSafeUrl&&(l=a.interpreterSafeUrl,l=nd(g.nc("From proto message. b/166824318"), l.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());Eta(this,h,l,a.program,b,c,d)}else g.zz(Error("Cannot initialize botguard without program"))}; yM.prototype.Vd=function(){return!!this.i}; yM.prototype.invoke=function(a){a=void 0===a?{}:a;return this.i?this.i.hasOwnProperty("hot")?this.i.hot(void 0,void 0,a):this.i.invoke(void 0,void 0,a):null}; yM.prototype.dispose=function(){this.i=null};var AM;g.zM=new yM;AM=0;var Lta=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var X2={},$Ma=(X2["api.invalidparam"]=2,X2.auth=150,X2["drm.auth"]=150,X2["heartbeat.net"]=150,X2["heartbeat.servererror"]=150,X2["heartbeat.stop"]=150,X2["html5.unsupportedads"]=5,X2["fmt.noneavailable"]=5,X2["fmt.decode"]=5,X2["fmt.unplayable"]=5,X2["html5.missingapi"]=5,X2["html5.unsupportedlive"]=5,X2["drm.unavailable"]=5,X2);g.w(GM,g.I);g.k=GM.prototype; g.k.handleExternalCall=function(a,b,c){var d=this.D[a],e=this.K[a],f=d;if(e)if(c&&qA(c,tMa,uMa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.W();d.Uj&&!this.V.has(a)&&(this.V.add(a),g.cw("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.zz(Error('Dangerous call to "'+a+'" with ['+b+"].")); return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');}; g.k.isExternalMethodAvailable=function(a,b){return this.D[a]?!0:!!(this.K[a]&&b&&qA(b,tMa,uMa))}; g.k.getBandwidthEstimate=function(){return RE(this.app.W().schedule)}; g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.WM(this.app);b&&(a={gpu:(0,g.AW)(),d:a},b.handleError(new g.UD("feedback",!1,a)))}; g.k.getApiInterface=function(){return this.N.slice()}; g.k.getInternalApiInterface=function(){return g.Nb(this.u)}; g.k.iQ=function(a,b){if("string"===typeof b){var c=function(d){for(var e=[],f=0;f=c.Db.length)c=!1;else{d=g.r(c.Db);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof SF)){c=!1;break a}var f=a.yc.getId();e.B&&(gna(e.B,f),e.u=null)}c.Uj=a;c=!0}c&&AX(b)&&(b.Z("internalaudioformatchange",b.videoData,!0),b.Ca("hlsaudio",a.id))}}}; g.k.SQ=function(){return this.getAvailableAudioTracks()}; g.k.getAvailableAudioTracks=function(){return g.WM(this.app,this.playerType).getAvailableAudioTracks()}; g.k.getMaxPlaybackQuality=function(){var a=g.WM(this.app,this.playerType);return a&&a.getVideoData().u?tB(a.ze?QDa(a.Vf,a.ze,a.Pr()):wG):"unknown"}; g.k.getUserPlaybackQualityPreference=function(){var a=g.WM(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"}; g.k.getSubtitlesUserSettings=function(){var a=g.nN(this.app.ub());return a?a.eR():null}; g.k.resetSubtitlesUserSettings=function(){g.nN(this.app.ub()).jW()}; g.k.setMinimized=function(a){this.app.setMinimized(a)}; g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)}; g.k.setGlobalCrop=function(a){this.app.fb().setGlobalCrop(a)}; g.k.getVisibilityState=function(){var a=this.Fe();return this.app.getVisibilityState(this.hf(),this.isFullscreen()||kF(this.app.W()),a,this.isInline(),this.app.Zr(),this.app.Xr())}; g.k.isMutedByMutedAutoplay=function(){return this.app.Uv}; g.k.isInline=function(){return this.app.isInline()}; g.k.setInternalSize=function(a,b){this.app.fb().setInternalSize(new g.gg(a,b))}; g.k.Qc=function(){var a=g.WM(this.app,void 0);return a?a.Qc():0}; g.k.Fe=function(){return this.app.Fe()}; g.k.hf=function(){var a=g.WM(this.app,this.playerType);return!!a&&a.hf()}; g.k.isFullscreen=function(){return this.app.isFullscreen()}; g.k.setSafetyMode=function(a){this.app.W().enableSafetyMode=a}; g.k.canPlayType=function(a){return this.app.canPlayType(a)}; g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!==a.list)if(this.U("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.$M(b).videoId||(a.index=b.index)):iY(this.app,{list:a.list,index:a.index,playlist_length:d.length});bN(this.app.getPlaylist(),a);this.Oa("onPlaylistUpdate")}else this.app.updatePlaylist()}; g.k.updateVideoData=function(a,b){var c=g.WM(this.app,this.playerType||1);c&&g.AG(c.getVideoData(),a,b)}; g.k.updateEnvironmentData=function(a){sF(this.app.W(),a,!1)}; g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)}; g.k.setCardsVisible=function(a,b,c){var d=g.uN(this.app.ub());d&&d.Ah()&&d.setCardsVisible(a,b,c)}; g.k.productsInVideoVisibilityUpdated=function(a){this.Z("changeProductsInVideoVisibility",a)}; g.k.setInline=function(a){this.app.setInline(a)}; g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)}; g.k.getVideoAspectRatio=function(){return this.app.fb().getVideoAspectRatio()}; g.k.getPreferredQuality=function(){var a=g.WM(this.app);return a?a.getPreferredQuality():"unknown"}; g.k.setPlaybackQualityRange=function(a,b){var c=g.WM(this.app,this.playerType);c&&(a=qB(a,b||a,!0,"m"),hza(c,a,!0))}; g.k.onAdUxClicked=function(a,b){this.Z("aduxclicked",a,b)}; g.k.showAirplayPicker=function(){this.app.showAirplayPicker()}; g.k.Z=function(a,b){for(var c=[],d=1;d([^<>]+)<\/a>/;g.w(LN,g.FD);LN.prototype.Nh=function(){Tua(this)}; LN.prototype.qb=function(){var a=this,b=this.I.getVideoData();if(b.isValid()){var c=this.I.W(),d=[],e="";if(!c.N){var f=Rua(this);c.U("enable_web_media_session_metadata_fix")&&g.oF(c)&&f?(d=Sua(f.thumbnailDetails),f.album&&(e=g.DA(f.album))):d=[{src:b.Ee("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}Tua(this);Qua(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.RM(this.I)&&(this.i.delete("nexttrack"),this.i.delete("previoustrack"), b=function(){a.I.nextVideo()},c=function(){a.I.previousVideo()}); MN(this,"nexttrack",b);MN(this,"previoustrack",c)}}; LN.prototype.ya=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.r(this.i),b=a.next();!b.done;b=a.next())MN(this,b.value,null);g.FD.prototype.ya.call(this)};g.w(NN,g.W);g.k=NN.prototype;g.k.onClick=function(a){g.CN(a,this.I,!0);this.I.Gb(this.element)}; g.k.qb=function(a,b){Uua(this,b);this.pd&&Vua(this,this.pd)}; g.k.Jc=function(a){var b=this.I.getVideoData();this.videoId!==b.videoId&&Uua(this,b);this.i&&Vua(this,a.state);this.pd=a.state}; g.k.bd=function(){this.B.show();this.I.Z("paidcontentoverlayvisibilitychange",!0);this.I.jb(this.element,!0)}; g.k.Eb=function(){this.B.hide();this.I.Z("paidcontentoverlayvisibilitychange",!1);this.I.jb(this.element,!1)};g.w(ON,g.W);ON.prototype.hide=function(){this.i.stop();this.message.style.display="none";g.W.prototype.hide.call(this)}; ON.prototype.u=function(a){Wua(a.state)?this.i.start():this.hide()}; ON.prototype.B=function(){this.message.style.display="block"};g.w(g.PN,g.ZK);g.k=g.PN.prototype;g.k.show=function(){var a=this.Tf();g.ZK.prototype.show.call(this);this.Ba&&(this.K.S(window,"blur",this.Eb),this.K.S(document,"click",this.jO));a||this.Z("show",!0)}; g.k.hide=function(){var a=this.Tf();g.ZK.prototype.hide.call(this);Xua(this);a&&this.Z("show",!1)}; g.k.bd=function(a,b){this.u=a;this.V.show();b?(this.N||(this.N=this.K.S(this.I,"appresize",this.ZH)),this.ZH()):this.N&&(this.K.kc(this.N),this.N=void 0)}; g.k.ZH=function(){var a=g.KM(this.I);this.u&&a.iq(this.element,this.u)}; g.k.Eb=function(){var a=this.Tf();Xua(this);this.V.hide();a&&this.Z("show",!1)}; g.k.jO=function(a){var b=yu(a);b&&(g.Ig(this.element,b)||this.u&&g.Ig(this.u,b)||!g.VL(a))||this.Eb()}; g.k.Tf=function(){return this.zb&&4!==this.V.state};g.w(RN,g.PN);RN.prototype.hw=function(a){this.B&&(a?(Yua(this),this.bd()):(this.i&&this.Gb(),this.Eb()))}; RN.prototype.Nh=function(a){this.api.isMutedByMutedAutoplay()&&g.nI(a,2)&&this.Eb()}; RN.prototype.onClick=function(){this.api.unMute();this.Gb()}; RN.prototype.Gb=function(){this.clicked||(this.clicked=!0,this.api.Gb(this.element))};g.w(g.TN,g.FD);g.k=g.TN.prototype;g.k.init=function(){var a=this.api.wb();this.Sb(a);this.Cm();this.xb()}; g.k.qb=function(a,b){this.MD!==b.videoId&&(this.MD=b.videoId,a=this.od,a.xa=b&&0=yH&&this.api.wb().isCued()?SN(this):this.Tx.start(),this.JF=this.S(this.api.fb(),"touchmove",this.ZU,void 0,!0)):this.Tx.stop();!$ua(this)||!WN(this,a)||this.api.W().D&&this.api.W().U("embeds_enable_mobile_dtts")|| SN(this);var b=this.DA.Tf();if(bF&&ava(this,a))b&&g.Bu(a);else if(this.od.u||UN(this,yu(a))||this.DA.Tf()||(this.api.wb().isCued(),g.Bu(a)),this.xA=!0,g.N(this.api.getRootNode(),"ytp-touch-mode"),this.od.Vk(),this.api.W().experiments.Ga("player_doubletap_to_seek")||this.api.W().experiments.Ga("embeds_enable_mobile_dtts")&&this.api.W().D)if(b=this.api.wb(),!(!this.api.kf()||g.U(b,2)&&OM(this.api)||g.U(b,64))){b=Date.now()-this.tK;this.Xv+=1;if(350>=b){this.Mu=!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.Xv-1);02*b&&d<3*b&&(this.Ks(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.Bu(a)}else this.api.W().D&&this.api.W().U("embeds_enable_mobile_dtts")&&VN&&WN(this,a)&&g.Bu(a);this.tK=Date.now();this.tM.start()}}; g.k.UU=function(a){if(!ava(this,a)){if(!$ua(this)&&WN(this,a)&&!this.Tx.isActive()){if(g.HF(this.api.W())&&this.api.wb().isCued()){var b=void 0===b?{}:b;$A("warm");SA();ZA();MA(!1);b.cttAuthInfo&&(NA().cttAuthInfo=b.cttAuthInfo);qs("TIMING_AFT_KEYS",[]);b.T$?g.cB("yt_lt","hot"):g.cB("yt_lt","warm");qs("TIMING_ACTION","");qs("TIMING_WAIT",[]);delete g.P("TIMING_INFO",{}).yt_lt;aB("warm",b.startTime);b=["pbs","pbu"];RA("").info.actionType="watch";b&&qs("TIMING_AFT_KEYS",b);qs("TIMING_ACTION","watch"); b=g.P("TIMING_INFO",{});for(var c in b)b.hasOwnProperty(c)&&g.cB(c,b[c]);g.cB("is_nav",1);(c=g.Fy())&&g.cB("csn",c);(c=g.P("PREVIOUS_ACTION",void 0))&&!XA()&&g.cB("pa",c);c=OA();b=g.P("CLIENT_PROTOCOL");var d=g.P("CLIENT_TRANSPORT");b&&g.cB("p",b);d&&g.cB("t",d);g.cB("yt_vis",Qja());if("cold"===c.yt_lt){g.cB("yt_lt","cold");b=wja();if(d=LA())dB("srt",b.responseStart),1!==c.prerender&&aB("n",d);c=Cja();0=LA()&&0this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)}; g.k.Uy=function(){return this.lf()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)}; g.k.wi=function(){return this.xA}; g.k.An=function(){return null}; g.k.ij=function(){var a=this.api.fb().getPlayerSize();return new g.Ol(0,0,a.width,a.height)}; g.k.handleGlobalKeyDown=function(){return!1}; g.k.handleGlobalKeyUp=function(){return!1}; g.k.iq=function(){}; g.k.showControls=function(a){void 0!==a&&this.api.fb().Iw(a)}; g.k.Vk=function(){}; g.k.yJ=function(){return null};g.w(XN,g.R);g.k=XN.prototype;g.k.ev=function(){return 1E3*this.api.getDuration(this.Mj,!1)}; g.k.stop=function(){this.i&&this.qe.kc(this.i)}; g.k.Ob=function(){var a=this.api.getProgressState(this.Mj);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.W().experiments.Ga("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.Mj,!1)};this.Z("h")}; g.k.getProgressState=function(){return this.u}; g.k.Jc=function(a){g.nI(a,2)&&this.Z("g")};g.w(YN,g.W);YN.prototype.onClick=function(){this.I.Oa("BACK_CLICKED")};g.w(g.ZN,g.W);g.ZN.prototype.show=function(){g.W.prototype.show.call(this);g.Nq(this.i)}; g.ZN.prototype.hide=function(){this.u.stop();g.W.prototype.hide.call(this)}; g.ZN.prototype.xq=function(a){a?g.U(this.I.wb(),64)||$N(this,Jsa(),"Bot\u00f3n de reproducci\u00f3n"):(a=this.I.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?$N(this,Lsa(),"Detener reproducci\u00f3n en directo"):$N(this,Hsa(),"Pausa"))};g.w(cO,g.W);g.k=cO.prototype;g.k.bd=function(){this.I.W().U("player_new_info_card_format")&&g.Tq(this.I.getRootNode(),"ytp-cards-teaser-shown")&&!g.fF(this.I.W())||(this.u.show(),g.ev("iv-button-shown"))}; g.k.Eb=function(){g.ev("iv-button-hidden");this.u.hide()}; g.k.Tf=function(){return this.zb&&4!==this.u.state}; g.k.ya=function(){this.i&&this.i();g.W.prototype.ya.call(this)}; g.k.NT=function(){g.ev("iv-button-mouseover")}; g.k.onClicked=function(a){this.I.Ah();var b=g.Tq(this.I.getRootNode(),"ytp-cards-teaser-shown");g.ev("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.I.setCardsVisible(!this.I.lk(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.w(eO,g.W);g.k=eO.prototype;g.k.pN=function(){this.I.Ah()&&this.I.lk()&&this.Tf()&&this.Eb()}; g.k.zF=function(){this.Eb();g.ev("iv-teaser-clicked",null!=this.i);this.I.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}; g.k.kO=function(){g.ev("iv-teaser-mouseover");this.i&&this.i.stop()}; g.k.tV=function(a){this.I.W().experiments.Ga("player_new_info_card_format")&&!g.fF(this.I.W())&&this.ji.Eb();this.i||!a||this.I.lk()||this.u&&this.u.isActive()||(this.bd(a),g.ev("iv-teaser-shown"))}; g.k.bd=function(a){this.Ua("text",a.teaserText);this.element.setAttribute("dir",g.gr(a.teaserText));this.C.show();this.u=new g.M(function(){g.N(this.I.getRootNode(),"ytp-cards-teaser-shown");this.I.U("player_new_info_card_format")&&!g.fF(this.I.W())&&this.ji.Eb();this.WF()},0,this); this.u.start();bO(this.ji,!1);this.i=new g.M(this.Eb,580+a.durationMs,this);this.i.start();this.D.push(this.Sa("mouseover",this.JG,this));this.D.push(this.Sa("mouseout",this.IG,this))}; g.k.WF=function(){if(!this.I.W().experiments.Ga("player_new_info_card_format")&&g.fF(this.I.W())&&this.zb){var a=this.ji.element.offsetLeft,b=g.rg("ytp-cards-button-icon"),c=this.I.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.ji.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}}; g.k.vQ=function(){g.fF(this.I.W())&&this.V.lf()&&this.zb&&this.N.start()}; g.k.JG=function(){this.J.stop();this.i&&this.i.isActive()&&this.K.start()}; g.k.IG=function(){this.K.stop();this.i&&!this.i.isActive()&&this.J.start()}; g.k.fU=function(){this.i&&this.i.stop()}; g.k.eU=function(){this.Eb()}; g.k.Ci=function(){this.Eb()}; g.k.Eb=function(){!this.i||this.B&&this.B.isActive()||(g.ev("iv-teaser-hidden"),this.C.hide(),g.Vq(this.I.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.M(function(){for(var a=g.r(this.D),b=a.next();!b.done;b=a.next())this.kc(b.value);this.D=[];this.i&&(this.i.dispose(),this.i=null);bO(this.ji,!0)},330,this),this.B.start())}; g.k.Tf=function(){return this.zb&&4!==this.C.state}; g.k.ya=function(){var a=this.I.getRootNode();a&&g.Vq(a,"ytp-cards-teaser-shown");g.vf(this.u,this.B,this.i);g.W.prototype.ya.call(this)};var Z2={},fO=(Z2.BUTTON="ytp-button",Z2.TITLE_NOTIFICATIONS="ytp-title-notifications",Z2.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",Z2.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",Z2.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",Z2);g.w(gO,g.W); gO.prototype.onClick=function(){this.api.Gb(this.element);var a=!this.i;this.Ua("label",a?"Dejar de recibir notificaciones cada vez que haya un v\u00eddeo nuevo":"Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo");this.Ua("pressed",a);dva(this,a)};g.w(g.iO,g.W);g.iO.prototype.u=function(){g.N(this.element,"ytp-sb-subscribed")}; g.iO.prototype.B=function(){g.Vq(this.element,"ytp-sb-subscribed")};g.w(jO,g.W);g.k=jO.prototype;g.k.YE=function(){hva(this);this.channel.classList.remove("ytp-title-expanded")}; g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")}; g.k.NC=function(){if(fva(this)&&!this.isExpanded()){this.Ua("flyoutUnfocusable","false");this.Ua("channelTitleFocusable","0");this.B&&this.B.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.jb(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.u&&a.Fi&&a.subscribed&&(this.u.show(),this.api.jb(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}; g.k.sC=function(){this.Ua("flyoutUnfocusable","true");this.Ua("channelTitleFocusable","-1");this.B&&this.B.start()}; g.k.Ra=function(){var a=this.api.getVideoData(),b=this.api.W(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Xb&&!!a.Qh:g.fF(b)&&(c=!!a.videoId&&!!a.Xb&&!!a.Qh&&!(a.D&&b.pfpChazalUi)&&!(b.D&&200>this.api.getPlayerSize().width));var d=g.OF(this.api.W())+a.Xb;g.fF(this.api.W())&&(d=g.Bi(d,g.CM("emb_ch_name_ex")));var e=a.Xb,f=a.Qh;b=g.fF(b)?a.Qp:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;c?(e=g.OF(this.api.W())+e,this.K!==f&&(this.i.style.backgroundImage= "url("+f+")",this.K=f),this.Ua("channelLink",e),this.Ua("channelLogoLabel",g.zI("Foto de $CHANNEL_NAME",{CHANNEL_NAME:b})),g.N(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Vq(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.jb(this.i,c&&this.ea);this.subscribeButton&&(this.subscribeButton.channelId=a.Ti);this.Ua("expandedTitle",a.Qp);this.Ua("channelTitleLink",d);this.Ua("expandedSubtitle",a.expandedSubtitle)};g.w(g.lO,g.ZK);g.lO.prototype.Ua=function(a,b){g.ZK.prototype.Ua.call(this,a,b);this.Z("size-change")};g.w(oO,g.ZK);oO.prototype.gL=function(){this.Z("size-change")}; oO.prototype.focus=function(){this.content.focus()}; oO.prototype.dT=function(){this.Z("back")};g.w(g.pO,oO);g.pO.prototype.Dc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.yb(this.items,a,iva);if(0<=b)return;b=~b;g.vb(this.items,b,0,a);g.Fg(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.xE,this);this.menuItems.Z("size-change")}; g.pO.prototype.Ef=function(a){a.unsubscribe("size-change",this.xE,this);this.isDisposed()||(g.ob(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.Z("size-change"))}; g.pO.prototype.xE=function(){this.menuItems.Z("size-change")}; g.pO.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&&(h=a,e=b,f=5,65==(f&65)&&(h.x=d.right)&&(f&=-2),132==(f&132)&&(h.y=d.bottom)&& (f&=-5),h.xd.right&&(e.width=Math.min(d.right-h.x,c+e.width-d.left),e.width=Math.max(e.width,0))),h.x+e.width>d.right&&f&1&&(h.x=Math.max(d.right-e.width,d.left)),h.yd.bottom&&(e.height=Math.min(d.bottom-h.y,c+e.height-d.top),e.height=Math.max(e.height,0))),h.y+e.height>d.bottom&&f&4&&(h.y=Math.max(d.bottom-e.height,d.top)));d=new g.Ol(0,0,0,0);d.left= a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.bm(this.element,new g.eg(d.left,d.top));g.jy(this.B);this.B.S(document,"contextmenu",this.zT);this.B.S(this.I,"fullscreentoggled",this.Se);this.B.S(this.I,"pageTransition",this.mO)}; g.k.zT=function(a){if(!g.Cu(a)){var b=yu(a);g.Ig(this.element,b)||this.Eb();this.I.W().disableNativeContextMenu&&g.Bu(a)}}; g.k.Se=function(){this.Eb();pva(this)}; g.k.mO=function(){this.Eb()};g.w(g.BO,g.W);g.BO.prototype.onClick=function(){return g.H(this,function b(){var c=this,d,e,f,h;return g.B(b,function(l){if(1==l.i)return d=c.api.W(),e=c.api.getVideoData(),f=c.api.getPlaylistId(),h=d.getVideoUrl(e.videoId,f,void 0,!0),g.z(l,rva(c,h),2);l.u&&qva(c);c.api.Gb(c.element);g.sa(l)})})}; g.BO.prototype.Ra=function(){var a=this.api.W(),b=this.api.getVideoData();this.Ua("icon",{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{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.Ua("title-attr","Copiar enlace");var c=this.api.fb().getPlayerSize().width; this.visible=!!b.videoId&&c>=this.u&&b.Zj&&!(b.D&&a.pfpChazalUi);g.O(this.element,"ytp-copylink-button-visible",this.visible);g.YK(this,this.visible);DO(this.tooltip);this.api.jb(this.element,this.visible&&this.ea)}; g.BO.prototype.Wb=function(a){g.W.prototype.Wb.call(this,a);this.api.jb(this.element,this.visible&&a)}; g.BO.prototype.ya=function(){g.W.prototype.ya.call(this);g.Vq(this.element,"ytp-copylink-button-visible")};g.w(EO,g.W);g.k=EO.prototype;g.k.show=function(){g.W.prototype.show.call(this);g.Nq(this.i)}; g.k.hide=function(){this.u.stop();g.Vq(this.element,"ytp-chapter-seek");g.Vq(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)}; g.k.Ks=function(a,b,c,d){this.Ls(a,d)}; g.k.Ls=function(a,b){g.Pq(this.i);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.Vq(this.element,"ytp-chapter-seek");this.Ua("chapterSeekText","");a=g.zI("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:b.toString()});this.Ua("seekTime",a)}; g.k.dA=function(a,b){g.Pq(this.i);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.N(this.element,"ytp-chapter-seek");this.Ua("chapterSeekText",b);this.Ua("seekTime","")};g.w(FO,g.W);g.k=FO.prototype;g.k.show=function(){g.W.prototype.show.call(this);g.Nq(this.u)}; g.k.hide=function(){this.B.stop();g.Vq(this.element,"ytp-chapter-seek");g.Vq(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)}; g.k.Ks=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&this.I.Gb(e);g.Pq(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.I.fb().getPlayerSize().height;e=this.I.fb().getPlayerSize();e=e.width/3-3*e.height;this.i.style.width=f+"px";this.i.style.height=f+"px";1===a?(this.i.style.left="",this.i.style.right=e+"px"):-1===a&&(this.i.style.right="",this.i.style.left=e+"px");var h=2.5*f;f=h/2;var l=this.Fa("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height= h+"px";1===a?(a=this.I.fb().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.Fa("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");sva(this,d)}; g.k.Ls=function(a,b){var c=this.I.fb().getPlayerSize();g.Pq(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.N(this.element,"ytp-time-seeking");this.i.style.width="110px";this.i.style.height="110px";1===a?(this.i.style.right="",this.i.style.left=.8*c.width-30+"px"):-1===a&&(this.i.style.right="",this.i.style.left=.1*c.width-15+"px");this.i.style.top=.5*c.height+15+"px";sva(this,b)}; g.k.dA=function(a,b){g.Pq(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");this.i.style.width="0";this.i.style.height="0";g.N(this.element,"ytp-chapter-seek");this.Ua("seekText",b);this.Ua("seekTime","")};var bNa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(bNa).reduce(function(a,b){a[bNa[b]]=b;return a},{}); var cNa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(cNa).reduce(function(a,b){a[cNa[b]]=b;return a},{}); var dNa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(dNa).reduce(function(a,b){a[dNa[b]]=b;return a},{});var $2,eNa;$2=[{option:"#fff",text:"Blanco"},{option:"#ff0",text:"Amarillo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Cian"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Rojo"},{option:"#080808",text:"Negro"}];eNa=[{option:0,text:GO(0)},{option:.25,text:GO(.25)},{option:.5,text:GO(.5)},{option:.75,text:GO(.75)},{option:1,text:GO(1)}]; g.KO=[{option:"fontFamily",text:"Conjunto de fuentes",options:[{option:1,text:"Serif monoespaciada"},{option:2,text:"Serif proporcional"},{option:3,text:"Sans-Serif monoespaciada"},{option:4,text:"Sans-Serif proporcional"},{option:5,text:"Casual"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:$2},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:GO(.5)},{option:-1,text:GO(.75)},{option:0,text:GO(1)},{option:1, text:GO(1.5)},{option:2,text:GO(2)},{option:3,text:GO(3)},{option:4,text:GO(4)}]},{option:"background",text:"Color de fondo",options:$2},{option:"backgroundOpacity",text:"Opacidad del fondo",options:eNa},{option:"windowColor",text:"Color de la ventana",options:$2},{option:"windowOpacity",text:"Opacidad de la ventana",options:eNa},{option:"charEdgeStyle",text:"Estilo del borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"Relieve"},{option:2, text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de la fuente",options:[{option:.25,text:GO(.25)},{option:.5,text:GO(.5)},{option:.75,text:GO(.75)},{option:1,text:GO(1)}]}];g.w(g.JO,g.FD);g.k=g.JO.prototype; g.k.HJ=function(a){var b=!1,c=g.Du(a),d=yu(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.W();g.Cu(a)?(e=!1,h=!0):l.Mf&&(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);aO(this.pc,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);aO(this.pc,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.kf()&&(this.api.startSeekCsiAction(), this.api.seekTo(0),h=f=!0);break;case 35:this.api.kf()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&IO(this,!0);(b||h)&&this.od.Vk();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.Bu(a);l.B&&(a={keyCode:g.Du(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.Cu(a),fullscreen:this.api.isFullscreen()},this.api.Oa("onKeyPress",a))}; g.k.IJ=function(a){this.handleGlobalKeyUp(g.Du(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)}; g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.SM(this.api.ub());c&&(c=c.Ao)&&c.zb&&(c.DJ(a),b=!0);9===a&&(IO(this,!0),b=!0);return b}; g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.W();if(e.Mf)return h;var l=g.SM(this.api.ub());if(l&&(l=l.Ao)&&l.zb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.CJ(a)}e.J||h||(h=f||String.fromCharCode(a).toLowerCase(),this.u+=h,0==="awesome".indexOf(this.u)?(h=!0,7===this.u.length&&Xq(this.api.getRootNode(),"ytp-color-party")):(this.u=h,h=0==="awesome".indexOf(this.u)));if(!h){f=(f=this.api.getVideoData())?f.ll:[];l=eU?d:c;switch(a){case 80:b&& !e.xa&&($N(this.pc,Ksa(),"Anterior"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.xa&&($N(this.pc,hL(),"Siguiente"),this.api.nextVideo(),h=!0);break;case 74:this.api.kf()&&(this.api.startSeekCsiAction(),e.U("web_player_seek_chapters_by_shortcut")&&this.i?this.i.Ls(-1,10):$N(this.pc,{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{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()),h=!0);break;case 76:this.api.kf()&&(this.api.startSeekCsiAction(),e.U("web_player_seek_chapters_by_shortcut")&&this.i?this.i.Ls(1,10):$N(this.pc,{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{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()),h=!0);break;case 37:this.api.kf()&&(this.api.startSeekCsiAction(),l&&e.U("web_player_seek_chapters_by_shortcut")?(l=uva(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(this.i.dA(-1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.U("web_player_seek_chapters_by_shortcut")&&this.i?this.i.Ls(-1,5):$N(this.pc,{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{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()),h=!0));break;case 39:this.api.kf()&&(this.api.startSeekCsiAction(),l&&e.U("web_player_seek_chapters_by_shortcut")?(l=tva(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(this.i.dA(1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.U("web_player_seek_chapters_by_shortcut")&&null!=this.i?this.i.Ls(1,5):$N(this.pc,{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{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()),h=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),aO(this.pc,this.api.getVolume(),!1)):(this.api.mute(),aO(this.pc,0,!0));h=!0;break;case 32:case 75:e.xa||(h=!g.hK(this.api.wb()),this.pc.xq(h),h?this.api.playVideo():this.api.pauseVideo(),h=!0);break;case 190:b?e.ac&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),cva(this.pc,!1),h=!0):this.api.kf()&&(wva(this,1),h=!0);break;case 188:b?e.ac&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h- .25,!0),cva(this.pc,!0),h=!0):this.api.kf()&&(wva(this,-1),h=!0);break;case 70:Lua(this.api)&&(this.api.toggleFullscreen().catch(function(){}),h=!0); break;case 27:this.C()&&(h=!0)}if("3"!==e.controlsType)switch(a){case 67:g.nN(this.api.ub())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),$N(this.pc,Mua(),!e||e&&!e.displayName?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados"),h=!0);break;case 79:LO(this,"textOpacity");break;case 87:LO(this,"windowOpacity");break;case 187:case 61:LO(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:LO(this,"fontSizeIncrement",!0,!0)}var m;b||c||d||(48<=a&&57>=a?m=a-48:96<= a&&105>=a&&(m=a-96));null!=m&&this.api.kf()&&(this.api.startSeekCsiAction(),a=this.api.getProgressState(),this.api.seekTo(m/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.od.Vk()}return h}; g.k.ya=function(){g.Pq(this.B);g.FD.prototype.ya.call(this)};g.w(MO,g.W);MO.prototype.Ra=function(){var a=g.fF(this.I.W())&&g.RM(this.I)&&g.U(this.I.wb(),128),b=this.I.getPlayerSize();this.visible=this.i.lf()&&!a&&240<=b.width&&!(this.I.getVideoData().D&&this.I.W().pfpChazalUi);g.O(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&DO(this.tooltip);this.I.jb(this.element,this.visible&&this.ea)}; MO.prototype.Wb=function(a){g.W.prototype.Wb.call(this,a);this.I.jb(this.element,this.visible&&a)}; MO.prototype.ya=function(){g.W.prototype.ya.call(this);g.Vq(this.element,"ytp-overflow-button-visible")};g.w(NO,g.PN);g.k=NO.prototype;g.k.oO=function(a){a=yu(a);g.Ig(this.element,a)&&(g.Ig(this.i,a)||g.Ig(this.closeButton,a)||QN(this))}; g.k.Eb=function(){g.PN.prototype.Eb.call(this);this.tooltip.cj(this.element)}; g.k.show=function(){this.zb&&this.I.Z("OVERFLOW_PANEL_OPENED");g.PN.prototype.show.call(this);this.element.setAttribute("aria-modal","true");xva(this,!0)}; g.k.hide=function(){g.PN.prototype.hide.call(this);this.element.removeAttribute("aria-modal");xva(this,!1)}; g.k.Se=function(a){!a&&this.Tf()&&QN(this)}; g.k.focus=function(){for(var a=g.r(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.zb){b.focus();break}};g.w(PO,g.W);PO.prototype.onClick=function(a){g.CN(a,this.api)&&this.api.playVideoAt(this.index)};g.w(QO,g.PN);g.k=QO.prototype;g.k.show=function(){g.PN.prototype.show.call(this);this.B.S(this.api,"videodatachange",this.mB);this.B.S(this.api,"onPlaylistUpdate",this.mB);this.mB()}; g.k.hide=function(){g.PN.prototype.hide.call(this);g.jy(this.B);this.updatePlaylist(null)}; g.k.mB=function(){this.updatePlaylist(this.api.getPlaylist())}; g.k.hA=function(){var a=this.playlist,b=a.B;if(b===this.C)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.i[a.index];else{for(var c=g.r(this.i),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;this.i=[];for(d=0;dthis.api.fb().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.zI("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.zI("Lista de reproducci\u00f3n: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.zb||(this.show(),DO(this.tooltip)),this.visible= !0,this.Wb(!0)):this.zb&&(this.hide(),this.Wb(!1),DO(this.tooltip))}; RO.prototype.Wb=function(a){g.W.prototype.Wb.call(this,a);this.api.jb(this.element,this.visible&&a)}; RO.prototype.i=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ra,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ra,this);this.Ra()};g.w(SO,g.W);g.k=SO.prototype; g.k.nB=function(a,b){if(!this.C){if(a){this.tooltipRenderer=a;var c,d,e,f,h,l,m,n;a=this.tooltipRenderer.text;var p=!1;(null===(c=null===a||void 0===a?void 0:a.runs)||void 0===c?0:c.length)&&a.runs[0].text&&(this.update({title:a.runs[0].text.toString()}),p=!0);g.km(this.title,p);a=this.tooltipRenderer.detailsText;c=!1;if((null===(d=null===a||void 0===a?void 0:a.runs)||void 0===d?0:d.length)&&a.runs[0].text){p=a.runs[0].text.toString();d=p.indexOf("$TARGET_ICON");if(-1=this.u&&!a;g.O(this.element,"ytp-share-button-visible",this.visible);g.YK(this,this.visible);DO(this.tooltip);this.api.jb(this.element,this.visible&&this.ea)}; g.WO.prototype.Wb=function(a){g.W.prototype.Wb.call(this,a);this.api.jb(this.element,this.visible&&a)}; g.WO.prototype.ya=function(){g.W.prototype.ya.call(this);g.Vq(this.element,"ytp-share-button-visible")};g.w(g.XO,g.PN);g.k=g.XO.prototype;g.k.qO=function(a){a=yu(a);g.Ig(this.D,a)||g.Ig(this.closeButton,a)||QN(this)}; g.k.Eb=function(){g.PN.prototype.Eb.call(this);this.tooltip.cj(this.element)}; g.k.show=function(){var a=this.zb;g.PN.prototype.show.call(this);this.Ra();a||this.api.Oa("onSharePanelOpened")}; g.k.eS=function(){this.zb&&this.Ra()}; g.k.Ra=function(){var a=this;g.N(this.element,"ytp-share-panel-loading");g.Vq(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&lM(this.api.Kl(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.Vq(a.element,"ytp-share-panel-loading"),Cva(a,d))}); b=this.api.getVideoUrl(!0,!0,!1,!1);g.qF(this.api.W())&&(b=g.Bi(b,g.CM("emb_share")));this.Ua("link",b);this.Ua("linkText",b);this.Ua("shareLinkWithUrl",g.zI("Compartir enlace: $URL",{URL:b}));FN(this.B)}; g.k.Se=function(a){!a&&this.Tf()&&QN(this)}; g.k.focus=function(){this.B.focus()}; g.k.ya=function(){g.PN.prototype.ya.call(this);Bva(this)};g.w($O,g.W);g.k=$O.prototype;g.k.kE=function(){}; g.k.lE=function(){}; g.k.Mw=function(){return!0}; g.k.BW=function(){if(this.expanded){this.Aa.show();var a=this.J.element.scrollWidth}else a=this.J.element.scrollWidth,this.Aa.hide();this.Xa=34+a;g.O(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Xa)+"px";this.xa.start()}; g.k.OQ=function(){this.badge.element.style.width=(this.expanded?this.Xa:34)+"px";this.Ma.start()}; g.k.bX=function(){g.O(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)}; g.k.Uh=function(){this.Mw()?this.N.show():this.N.hide();Dva(this)}; g.k.rO=function(){this.enabled=!1;this.Uh()}; g.k.aX=function(a){this.bb=a;this.Uh()}; g.k.gT=function(a){this.Qa=1===a;this.Uh();g.O(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}; g.k.FT=function(){g.O(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.I.isFullscreen());this.Uh()};g.w(aP,$O);g.k=aP.prototype;g.k.ya=function(){bP(this);$O.prototype.ya.call(this)}; g.k.kE=function(a){a.target!==this.dismissButton.element&&(Fva(this,!1),this.I.Oa("innertubeCommand",this.onClickCommand))}; g.k.lE=function(){this.B=!0;Fva(this,!0);this.Uh()}; g.k.xU=function(a){this.Ha=a;this.Uh()}; g.k.pU=function(a){var b=this.I.getVideoData();b&&b.videoId===this.videoId&&this.Ba&&(this.V=a,a||(a=3+this.I.getCurrentTime(),this.Kd(a)))}; g.k.qb=function(a,b){var c;if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.B=!1,this.i=!0,this.V=this.Ba=this.u=this.K=!1,bP(this);if(a||!b.videoId)this.D=this.C=!1;a=b.shoppingOverlayRenderer;this.Ha=this.enabled=!1;if(a){this.enabled=!0;var d,e,f;if(!this.C){var h=null===(d=a.badgeInteractionLogging)||void 0===d?void 0:d.trackingParams;(this.C=!!h)&&this.I.xm(this.badge.element,h||null)}this.D||(this.D=!(null===(e=a.dismissButton)||void 0===e||!e.trackingParams))&&this.I.xm(this.dismissButton.element, (null===(f=a.dismissButton)||void 0===f?void 0:f.trackingParams)||null);this.text=g.DA(a.text);if(d=null===(c=a.dismissButton)||void 0===c?void 0:c.a11yLabel)this.Ta=g.DA(d);this.onClickCommand=a.onClickCommand;this.timing=a.timing;QG(b)?this.V=this.Ba=!0:this.Kd()}Eva(this);ZO(this);this.Uh()}; g.k.Mw=function(){return this.bb&&!this.Ha&&this.enabled&&!this.B&&!this.eb.lf()&&!this.Qa&&!this.V&&(this.u||this.i)}; g.k.ye=function(a){(this.u=a)?(YO(this),ZO(this,!1)):(bP(this),this.ma.start());this.Uh()}; g.k.Kd=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.wA(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:7,namespace:"shopping_overlay_visible"}));d&&b.push(new g.wA(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:7,namespace:"shopping_overlay_expanded"}));this.I.Kd(b)};g.w(cP,g.PN);cP.prototype.show=function(){g.PN.prototype.show.call(this);this.C.start()}; cP.prototype.hide=function(){g.PN.prototype.hide.call(this);this.C.stop()}; cP.prototype.Tr=function(a,b){"dataloaded"===a&&((this.B=b.xH,this.i=b.vH,isNaN(this.B)||isNaN(this.i))?this.D&&(this.I.Xe("intro"),this.I.removeEventListener(g.yA("intro"),this.xa),this.I.removeEventListener(g.zA("intro"),this.ma),this.I.removeEventListener("onShowControls",this.J),this.hide(),this.D=!1):(this.I.addEventListener(g.yA("intro"),this.xa),this.I.addEventListener(g.zA("intro"),this.ma),this.I.addEventListener("onShowControls",this.J),a=new g.wA(this.B,this.i,{priority:7,namespace:"intro"}), this.I.Kd([a]),this.D=!0))};g.w(dP,g.W);dP.prototype.onClick=function(){this.I.zo()}; dP.prototype.Ra=function(){var a=!0,b=this.I.W();(b.U("embeds_enable_mobile_custom_controls")||"1"===b.controlsType&&!b.U("embeds_use_native_controls_killswitch")&&b.i)&&g.fF(b)&&(a=a&&480<=this.I.fb().getPlayerSize().width);g.YK(this,a);this.Ua("icon",this.I.hf()?{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"path",Nb:!0,X:{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"}}]}:{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{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 Nv("yt.autonav");g.w(eP,g.W);g.k=eP.prototype; g.k.Nt=function(){if(3!==this.I.getPresentingPlayerType()&&g.VM(this.I)&&400<=this.I.fb().getPlayerSize().width&&!1!==this.I.getVideoData().kS){if(!this.i){this.i=!0;g.YK(this,this.i);this.u.push(this.S(this.I,"videodatachange",this.Nt));this.u.push(this.S(this.I,"videoplayerreset",this.Nt));this.u.push(this.S(this.I,"onPlaylistUpdate",this.Nt));this.u.push(this.S(this.I,"autonavchange",this.KG));var a=this.I.getVideoData();this.KG(a.autonavState);this.I.jb(this.element,this.i)}}else{this.i=!1;g.YK(this, this.i);a=g.r(this.u);for(var b=a.next();!b.done;b=a.next())this.kc(b.value)}}; g.k.KG=function(a){(a=1!==a)||(g.Cv.getInstance(),a=g.us("web_autonav_allow_off_by_default")&&!g.Ev(0,141)&&g.P("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Ev(0,140));this.isChecked=a;Gva(this)}; g.k.onClick=function(){this.isChecked=!this.isChecked;this.I.gA(this.isChecked?2:1);Gva(this);this.I.Gb(this.element)}; g.k.getValue=function(){return this.isChecked}; g.k.setValue=function(a){this.isChecked=a;this.Fa("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.w(g.gP,g.W);g.gP.prototype.ya=function(){this.ctx=null;g.W.prototype.ya.call(this)};g.w(hP,g.W);hP.prototype.onClick=function(){this.I.Oa("innertubeCommand",this.B)}; hP.prototype.onClickCommand=function(a){(null===a||void 0===a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Ob()}; hP.prototype.updateVideoData=function(a,b){a=b.NW;this.B=null===a||void 0===a?void 0:a.command;this.u.disabled=null==this.B;g.O(this.u,"ytp-chapter-container-disabled",this.u.disabled);this.Ob()}; hP.prototype.Ob=function(){var a="",b=this.K.i;if(1d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.sE()}}; g.k.disable=function(){var a=this;if(!this.message){var b=(null!=ou(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"La pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.PN(this.I,{G:"div",Ia:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:"0"}, T:[b[0],{G:"a",X:{href:"https://support.google.com/youtube/answer/6276924",target:this.I.W().K},va:b[2]},b[4]]},100,!0);this.message.hide();g.J(this,this.message);this.message.subscribe("show",function(c){a.u.Gr(a.message,c)}); g.UM(this.I,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.i)();this.i=null}}; g.k.Ra=function(){var a=Lua(this.I),b=this.I.W().D&&250>this.I.getPlayerSize().width;g.YK(this,a&&!b)}; g.k.Ji=function(a){if(a){var b={G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"g",L:"ytp-fullscreen-button-corner-2",T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-0",T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{G:"g", L:"ytp-fullscreen-button-corner-1",T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=GN(this.I,"Salir del modo de pantalla completa","f");document.activeElement===this.element&&this.I.getRootNode().focus()}else b={G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{G:"g",L:"ytp-fullscreen-button-corner-0",T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-1", T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-2",T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=GN(this.I,"Pantalla completa","f");a=this.message?null:a;this.update({title:a,label:a,icon:b});DO(this.u.fc())}; g.k.ya=function(){this.message||((0,this.i)(),this.i=null);g.W.prototype.ya.call(this)};g.w(nP,g.W);nP.prototype.onClick=function(){this.I.Oa("onCollapseMiniplayer");this.I.Gb(this.element)}; nP.prototype.Ra=function(){this.visible=!this.I.isFullscreen();g.YK(this,this.visible);this.I.jb(this.element,this.visible&&this.ea)}; nP.prototype.Wb=function(a){g.W.prototype.Wb.call(this,a);this.I.jb(this.element,this.visible&&a)};g.w(oP,g.W);oP.prototype.qb=function(a){this.Ra("newdata"===a)}; oP.prototype.Ra=function(a){var b=this.I.getVideoData(),c=b.Nc,d=this.I.wb();d=(g.hK(d)||g.U(d,4))&&0a&&this.delay.start()}; var gNa=new g.hr(0,0,.4,0,.2,1,1,1),Mva=/[0-9.-]+|[^0-9.-]+/g;g.w(g.sP,g.W);g.k=g.sP.prototype;g.k.LG=function(a){this.visible=300<=a.width;g.YK(this,this.visible);this.I.jb(this.element,this.visible&&this.ea)}; g.k.gU=function(){this.I.W().ma?this.I.isMuted()?this.I.unMute():this.I.mute():QN(this.message,this.element,!0);this.I.Gb(this.element)}; g.k.Bf=function(a){this.setVolume(a.volume,a.muted)}; g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.I.W();a=0===d?1:50this.clipEnd)&&this.aA()}; g.k.uO=function(a){if(!g.Cu(a)){var b=!1;switch(g.Du(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.Bu(a)}}; g.k.Tr=function(a,b){this.updateVideoData(b,"newdata"===a)}; g.k.oR=function(){this.Tr("newdata",this.api.getVideoData())}; g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(zH(a)||JP(this)&&this.api.W().U("enable_fully_expanded_clip_range_in_progress_bar")?this.Ab=!1:this.Ab=a.allowLiveDvr,g.O(this.api.getRootNode(),"ytp-enable-live-buffer",!(null===a||void 0===a||!zH(a))));pwa(this,this.api.kf());if(b){if(c)for(b=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=b,MP(this),HP(this,this.V,this.bb);0b&&(e=b,c=-this.xa,b=aM(this.u,b)*FP(this).i+c,a.position=b),b=this.u.u;JP(this)&& this.api.W().U("enable_fully_expanded_clip_range_in_progress_bar")&&(b=this.u.u);b=h||g.UL(this.Ab?e-this.u.i:e-b);c=a.position+this.Oc;e-=this.api.Qc();if(this.api.Hh()){if(1=f&& p.timeRangeStartMillis=n.visibleTimeRangeStartMillis&&p<=n.visibleTimeRangeEndMillis&& (f=n.label,b=g.UL(n.decorationTimeMillis/1E3),g.N(this.api.getRootNode(),"ytp-progress-bar-decoration"));l=320*this.tooltip.scale;n=f.length*(this.B?8.55:5.7);l=n<=l?n:l;n=l<160*this.tooltip.scale;p=3;!n&&l/2>a.position&&(p=1);!n&&l/2>this.D-a.position&&(p=2);this.api.W().D&&(m-=10);0e||1e&&a.J.start()}); this.J.start()}if(g.U(this.api.wb(),32)||3===this.api.getPresentingPlayerType())this.api.startSeekCsiAction(),1.1*(this.B?60:40),a=FP(this));g.O(this.element,"ytp-pull-ui",e);d&&g.N(this.element,"ytp-pulling");b=0;a.u&&0>=a.position&&1===this.i.length?b=-1:a.D&&a.position>=a.width&&1===this.i.length&&(b=1);if(this.vb!==b&&1===this.i.length&&(this.vb=b,this.J&&(this.J.dispose(),this.J=null),b)){var f=(0,g.Q)();this.J=new g.Jq(function(){var h=c.D*(c.La-1);c.xa=g.ag(c.xa+ c.vb*((0,g.Q)()-f)*.3,0,h);IP(c);c.api.seekTo(LP(c,FP(c)),!1);0=b;g.YK(this,a);this.I.jb(this.element,a)}; RP.prototype.B=function(){if(this.Bb.zb)this.Bb.Eb();else{var a=g.nN(this.I.ub());a&&!a.loaded&&(a.bf("tracklist",{includeAsr:!0}).length||a.load());this.I.Gb(this.element);this.Bb.bd(this.element)}}; RP.prototype.updateBadge=function(){var a=this.I.isHdr(),b=this.I.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.TM(this.I),e=c&&!!g.SM(this.I.ub());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.I.getPlaybackQuality();g.O(this.element,"ytp-hdr-quality-badge",a);g.O(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.O(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.O(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.O(this.element,"ytp-8k-quality-badge", !a&&"highres"===c);g.O(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.O(this.element,"ytp-3d-badge",!a&&e&&d)};g.w(TP,tO);TP.prototype.isLoaded=function(){var a=g.uN(this.I.ub());return void 0!==a&&a.loaded}; TP.prototype.Ra=function(){void 0!==g.uN(this.I.ub())&&3!==this.I.getPresentingPlayerType()?this.i||(this.Bb.Dc(this),this.i=!0):this.i&&(this.Bb.Ef(this),this.i=!1);this.setValue(this.isLoaded())}; TP.prototype.u=function(a){this.isLoaded();a?this.I.loadModule("annotations_module"):this.I.unloadModule("annotations_module");this.I.Z("annotationvisibility",a)}; TP.prototype.ya=function(){this.i&&this.Bb.Ef(this);tO.prototype.ya.call(this)};g.w(g.UP,g.lO);g.k=g.UP.prototype;g.k.open=function(){g.vO(this.Bb,this.B)}; g.k.Wh=function(a){rwa(this);this.options[a].element.setAttribute("aria-checked","true");this.fd(this.bj(a));this.u=a}; g.k.gC=function(a,b,c){var d=this;b=new g.lO({G:"div",Ia:["ytp-menuitem"],X:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},T:[{G:"div",Ia:["ytp-menuitem-label"],va:"{{label}}"}]},b,this.bj(a,!0));b.Sa("click",function(){d.xf(a)}); return b}; g.k.enable=function(a){this.C?a||(this.C=!1,this.Xq(!1)):a&&(this.C=!0,this.Xq(!0))}; g.k.Xq=function(a){a?this.Bb.Dc(this):this.Bb.Ef(this)}; g.k.xf=function(a){this.Z("select",a)}; g.k.bj=function(a){return a.toString()}; g.k.vO=function(a){g.Cu(a)||39!==g.Du(a)||(this.open(),g.Bu(a))}; g.k.ya=function(){this.C&&this.Bb.Ef(this);g.lO.prototype.ya.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(WP,g.UP);WP.prototype.Ra=function(){var a=this.I.getAvailableAudioTracks();1(a.deltaX||-a.deltaY)?-this.D:this.D;this.tq(b);g.Bu(a)}; g.k.xO=function(a){a=(a-g.dm(this.u).x)/this.K*this.range+this.minimumValue;this.tq(a)}; g.k.tq=function(a,b){b=void 0===b?"":b;a=g.ag(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Ua("valuenow",a);this.Ua("valuetext",b);this.N.style.left=(a-this.minimumValue)/this.range*(this.K-this.ma)+"px";this.i=a}; g.k.focus=function(){this.xa.focus()};g.w(dQ,bQ);dQ.prototype.V=function(){this.I.setPlaybackRate(this.i,!0)}; dQ.prototype.tq=function(a){bQ.prototype.tq.call(this,a,eQ(this,a).toString());this.B&&(cQ(this),this.Aa())}; dQ.prototype.Ba=function(){var a=this.I.getPlaybackRate();eQ(this,this.i)!==a&&(this.tq(a),cQ(this))};g.w(fQ,g.ZK);fQ.prototype.focus=function(){this.i.focus()};g.w(twa,oO);g.w(gQ,g.UP);g.k=gQ.prototype;g.k.bj=function(a){return"1"===a?"Normal":a.toLocaleString()}; g.k.Ra=function(){var a=this.I.getPresentingPlayerType();this.enable(2!==a&&3!==a);wwa(this)}; g.k.Xq=function(a){g.UP.prototype.Xq.call(this,a);a?(this.K=this.S(this.I,"onPlaybackRateChange",this.zO),wwa(this),uwa(this,this.I.getPlaybackRate())):(this.kc(this.K),this.K=null)}; g.k.zO=function(a){var b=this.I.getPlaybackRate();this.J.includes(b)||vwa(this,b);uwa(this,a)}; g.k.xf=function(a){g.UP.prototype.xf.call(this,a);a===this.i?this.I.setPlaybackRate(this.D,!0):this.I.setPlaybackRate(Number(a),!0);this.Bb.lh()};g.w(iQ,g.UP);g.k=iQ.prototype;g.k.Wh=function(a){g.UP.prototype.Wh.call(this,a)}; g.k.getKey=function(a){return a.option.toString()}; g.k.getOption=function(a){return this.settings[a]}; g.k.bj=function(a){return this.getOption(a).text||""}; g.k.xf=function(a){g.UP.prototype.xf.call(this,a);this.Z("settingChange",this.setting,this.settings[a].option)};g.w(jQ,g.pO);jQ.prototype.wf=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.Nn[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Wh(e),c.D.element.setAttribute("aria-checked",String(!d)),c.i.element.setAttribute("aria-checked",String(d)))}}}; jQ.prototype.jh=function(a,b){this.Z("settingChange",a,b)};g.w(kQ,g.UP);kQ.prototype.getKey=function(a){return a.languageCode}; kQ.prototype.bj=function(a){return this.languages[a].languageName||""}; kQ.prototype.xf=function(a){this.Z("select",a);this.I.Gb(this.element);g.zO(this.Bb)};g.w(lQ,g.UP);g.k=lQ.prototype;g.k.getKey=function(a){return g.Wb(a)?"__off__":a.displayName}; g.k.bj=function(a){return"__off__"===a?"Desactivados":"__translate__"===a?"Traducir autom\u00e1ticamente":"__contribute__"===a?"A\u00f1adir subt\u00edtulos":("__off__"===a?{}:this.tracks[a]).displayName}; g.k.xf=function(a){"__translate__"===a?this.i.open():"__contribute__"===a?(this.I.pauseVideo(),this.I.isFullscreen()&&this.I.toggleFullscreen(),a=g.BM(this.I.W(),this.I.getVideoData()),g.JJ(a)):(this.I.Gb(this.element),this.I.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.UP.prototype.xf.call(this,a),this.Bb.lh())}; g.k.Ra=function(){var a,b=this.I.getOptions();b=b&&-1!==b.indexOf("captions");var c=this.I.getVideoData();c=c&&c.wl;var d=!(null===(a=this.I.getVideoData())||void 0===a||!g.wH(a)),e={};if(b||c){if(b){var f=this.I.getOption("captions","track");e=this.I.getOption("captions","tracklist",{includeAsr:!0});var h=d?[]:this.I.getOption("captions","translationLanguages");this.tracks=g.Eb(e,this.getKey,this);d=g.Bm(e,this.getKey);if(h.length&&!g.Wb(f)){var l=f.translationLanguage;if(l&&l.languageName){var m= l.languageName;l=h.findIndex(function(n){return n.languageName===m}); qaa(h,l)}ywa(this.i,h);d.push("__translate__")}h=this.getKey(f)}else this.tracks={},d=[],h="__off__";d.unshift("__off__");this.tracks.__off__={};c&&d.unshift("__contribute__");this.tracks[h]||(this.tracks[h]=f,d.push(h));g.VP(this,d);this.Wh(h);f&&f.translationLanguage?this.i.Wh(this.i.getKey(f.translationLanguage)):rwa(this.i);b&&this.D.wf(this.I.getSubtitlesUserSettings());this.K.fd(e&&e.length?" ("+e.length+")":"");this.Z("size-change");this.I.jb(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.k.AO=function(a){var b=this.I.getOption("captions","track");b=g.$b(b);b.translationLanguage=this.i.languages[a];this.I.setOption("captions","track",b)}; g.k.jh=function(a,b){if("reset"===a)this.I.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.I.updateSubtitlesUserSettings(c)}zwa(this,!0);this.J.start();this.D.wf(this.I.getSubtitlesUserSettings())}; g.k.gV=function(a){a||g.Pq(this.J)}; g.k.ya=function(){g.Pq(this.J);g.UP.prototype.ya.call(this)};g.w(mQ,g.xO);g.k=mQ.prototype;g.k.initialize=function(){if(!this.Vd){this.Vd=!0;this.QD=new ZP(this.I,this);g.J(this,this.QD);var a=new aQ(this.I,this);g.J(this,a);a=new lQ(this.I,this);g.J(this,a);a=new TP(this.I,this);g.J(this,a);this.I.W().ac&&(a=new gQ(this.I,this),g.J(this,a));this.I.W().Pb&&!this.I.W().experiments.Ga("web_player_move_autonav_toggle")&&(a=new XP(this.I,this),g.J(this,a));a=new WP(this.I,this);g.J(this,a);SP(this.settingsButton,this.Sd.items.length)}}; g.k.Dc=function(a){this.initialize();this.Sd.Dc(a);SP(this.settingsButton,this.Sd.items.length)}; g.k.Ef=function(a){this.zb&&1>=this.Sd.items.length&&this.hide();this.Sd.Ef(a);SP(this.settingsButton,this.Sd.items.length)}; g.k.bd=function(a){this.initialize();0=b;g.YK(this,b);this.I.jb(this.element,b);a&&this.Ua("pressed",this.isEnabled())};g.w(g.pQ,g.W);g.k=g.pQ.prototype; g.k.Ob=function(){var a=this.api.fb().getPlayerSize().width,b=a>=this.N&&(!qQ(this)||!g.U(this.api.wb(),64));g.YK(this,b);g.O(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.W().experiments.Ga("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1);this.B&&(c-=a.airingStart);this.i&&this.api.W().experiments.Ga("enable_fully_expanded_clip_range_in_progress_bar")&&(c-=this.i.startTimeMs/1E3);c= g.UL(c);this.C!==c&&(this.Ua("currenttime",c),this.C=c);b=this.i&&this.api.W().experiments.Ga("enable_fully_expanded_clip_range_in_progress_bar")?g.UL((this.i.endTimeMs-this.i.startTimeMs)/1E3):g.UL(this.api.W().experiments.Ga("halftime_ux_killswitch")?a.duration:this.api.getDuration(b,!1));this.D!==b&&(this.Ua("duration",b),this.D=b)}a=a.isAtLiveHead;!qQ(this)||this.K===a&&this.J===this.isPremiere||(this.K=a,this.J=this.isPremiere,this.Ob(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.fd(this.isPremiere? "Estreno":"En directo"),a?this.u&&(this.u(),this.u=null,b.removeAttribute("title")):(b.title="Accede a la emisi\u00f3n en directo",this.u=g.dO(this.tooltip,this.liveBadge.element)));this.pB(this.api.getLoopRange())}; g.k.pB=function(a){var b=!!this.i!==!!a;this.i=a;b&&Bwa(this)}; g.k.MV=function(){this.api.setLoopRange(null)}; g.k.qb=function(a,b,c){this.updateVideoData((this.api.W().experiments.Ga("enable_topsoil_wta_for_halftime")||this.api.W().experiments.Ga("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Ob();Bwa(this)}; g.k.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.rb;this.B=zH(a);this.isPremiere=a.isPremiere;g.O(this.element,"ytp-live",qQ(this))}; g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())}; g.k.ya=function(){this.u&&this.u();g.W.prototype.ya.call(this)};g.w(tQ,g.W);g.k=tQ.prototype;g.k.fm=function(){var a=this.i.Ne();this.C!==a&&(this.C=a,sQ(this,this.api.getVolume(),this.api.isMuted()))}; g.k.OG=function(a){g.YK(this,350<=a.width)}; g.k.DO=function(a){if(!g.Cu(a)){var b=g.Du(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.ag(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.Bu(a))}}; g.k.BO=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.ag(b/10,-10,10));g.Bu(a)}; g.k.kV=function(){rQ(this,this.u,!0,this.B,this.i.wi());this.V=this.volume;this.api.isMuted()&&this.api.unMute()}; g.k.CO=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.dm(this.N).x;this.api.setVolume(100*g.ag((a-c/2)/(b-c),0,1))}; g.k.jV=function(){rQ(this,this.u,!1,this.B,this.i.wi());0===this.volume&&(this.api.mute(),this.api.setVolume(this.V))}; g.k.Bf=function(a){sQ(this,a.volume,a.muted)}; g.k.zI=function(){rQ(this,this.u,this.isDragging,this.B,this.i.wi())}; g.k.ya=function(){g.W.prototype.ya.call(this);g.Vq(this.K,"ytp-volume-slider-active")};g.w(g.uQ,g.W);g.uQ.prototype.qb=function(){var a=this.api.getVideoData(1).D,b=this.api.W();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.YK(this,this.visible);this.api.jb(this.element,this.visible&&this.ea);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Ua("url",a))}; g.uQ.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.VL(a),!1,!0,!0);if(g.fF(this.api.W())||g.qF(this.api.W()))b=g.Bi(b,g.CM("emb_logo"));g.DN(b,this.api,a);this.api.Gb(this.element)}; g.uQ.prototype.xb=function(){var a={G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},T:[{G:"path",Nb:!0,L:"ytp-svg-fill",X:{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(g.qF(this.api.W())){var b=this.Fa("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{G:"svg",X:{fill:"none",height:"24",width:"24"},T:[{G:"circle",X:{cx:"12",cy:"12",fill:"red",r:"12"}},{G:"ellipse",X:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",X:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{G:"svg",X:{viewBox:"0 0 80 24"},T:[{G:"ellipse",X:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{G:"ellipse",X:{cx:"12.18", cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",X:{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.O(b,"ytp-youtube-music-logo-icon-only",c)}this.Ua("logoSvg",a)}; g.uQ.prototype.Wb=function(a){g.W.prototype.Wb.call(this,a);this.api.jb(this.element,this.visible&&a)};g.w(wQ,g.FD);g.k=wQ.prototype;g.k.kd=function(){this.Lc.Ob();this.Fg.Ob()}; g.k.xj=function(){var a,b;this.qB();this.od.u?(this.kd(),null===(b=this.K)||void 0===b?void 0:b.show()):(g.EQ(this.Lc.tooltip),null===(a=this.K)||void 0===a?void 0:a.hide())}; g.k.aq=function(){this.kd();this.Cd.start()}; g.k.qB=function(){var a=!this.I.W().i&&300>g.qwa(this.Lc)&&this.I.wb().xc()&&!!window.requestAnimationFrame,b=!a;this.od.u||(a=b=!1);b?this.J||(this.J=this.S(this.I,"progresssync",this.kd)):this.J&&(this.kc(this.J),this.J=null);a?this.Cd.isActive()||this.Cd.start():this.Cd.stop()}; g.k.xb=function(){var a=this.u.Ne(),b=this.I.fb().getPlayerSize(),c=xQ(this),d=Math.max(b.width-2*c,100);if(this.Ma!==b.width||this.Ha!==a){this.Ma=b.width;this.Ha=a;var e=Ewa(this);this.i.element.style.width=e+"px";this.i.element.style.left=c+"px";g.PP(this.Lc,c,e,a);this.u.fc().rB=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-yQ(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.mx=e;c.ot();this.qB();!this.I.W().U("html5_player_bottom_linear_gradient")&&this.I.W().experiments.Ga("html5_player_dynamic_bottom_gradient")&& g.fP(this.La,b.height)}; g.k.qb=function(){var a=this.I.getVideoData();this.xa.style.background=a.D?a.Ta:"";g.YK(this.V,a.bB)};g.w(zQ,$O);g.k=zQ.prototype;g.k.kE=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.I.Oa("innertubeCommand",this.onClickCommand),this.B=!0,this.N.hide())}; g.k.lE=function(){this.B=!0;this.N.hide()}; g.k.qb=function(a,b){var c;"newdata"===a&&(this.u=this.B=!1,AQ(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.i=this.K=this.enabled=!0;this.text=xP(a.title)||"View Chapters";var d=null===(c=a.trigger)||void 0===c?void 0:c.suggestedActionTimeRangeTrigger;if(d){b=[];var e=d.timeRangeStartMillis;d=d.timeRangeEndMillis;null!=e&&null!=d&&b.push(new g.wA(e,d,{priority:7,k0:"suggested_action_button_visible"}));this.I.Kd(b)}this.onClickCommand=a.tapCommand;Eva(this);ZO(this);this.Uh()}}; g.k.Mw=function(){return!this.B&&this.enabled&&(this.u||this.i)}; g.k.ye=function(a){this.B||((this.u=a)?YO(this):(AQ(this),this.ma.start()),this.Uh())}; g.k.ya=function(){AQ(this);$O.prototype.ya.call(this)};var a3={},BQ=(a3.CHANNEL_NAME="ytp-title-channel-name",a3.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",a3.LINK="ytp-title-link",a3.SESSIONLINK="yt-uix-sessionlink",a3.SUBTEXT="ytp-title-subtext",a3.TEXT="ytp-title-text",a3.TITLE="ytp-title",a3);g.w(CQ,g.W);CQ.prototype.onClick=function(a){this.api.Gb(this.element);var b=this.api.getVideoUrl(!g.VL(a),!1,!0);g.fF(this.api.W())&&(b=g.Bi(b,g.CM("emb_title")));g.DN(b,this.api,a)}; CQ.prototype.Ra=function(){var a=this.api.getVideoData(),b=this.api.W();this.Ua("title",a.title);Fwa(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.Xb&&c.Qh?(this.Ua("channelLink",c.Xb),this.Ua("channelName",c.author),this.Ua("channelTitleFocusable","0")):Fwa(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.Ng;g.O(this.link,BQ.FULLERSCREEN_LINK,c);b.N||!a.videoId||c||a.D&&b.pfpChazalUi?this.i&&(this.Ua("url",null),this.kc(this.i), this.i=null):(this.Ua("url",this.api.getVideoUrl(!0)),this.i||(this.i=this.S(this.link,"click",this.onClick)))};g.w(g.DQ,g.W);g.k=g.DQ.prototype;g.k.nL=function(a,b){a<=this.B&&this.B<=b&&(a=this.B,this.B=NaN,Hwa(this,a))}; g.k.aS=function(){loa(this.i,this.B,160*this.scale)}; g.k.Wj=function(){switch(this.type){case 2:var a=this.u;a.removeEventListener("mouseout",this.V);a.addEventListener("mouseover",this.C);a.removeEventListener("blur",this.V);a.addEventListener("focus",this.C);Kwa(this);break;case 3:Kwa(this);break;case 1:this.i&&(this.i.unsubscribe("l",this.nL,this),this.i=null),this.api.removeEventListener("videoready",this.ma),this.xa.stop()}this.type=null;this.K&&this.D.hide()}; g.k.cj=function(a){for(var b=0;b(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.k.xj=function(a){a&&(this.tooltip.cj(this.Sh.element),this.Zf&&this.tooltip.cj(this.Zf.i.element));this.Sy&&(g.O(this.contextMenu.element,"ytp-autohide",a),g.O(this.contextMenu.element,"ytp-autohide-active",!0));g.TN.prototype.xj.call(this,a)}; g.k.jE=function(){g.TN.prototype.jE.call(this);this.Sy&&(g.O(this.contextMenu.element,"ytp-autohide-active",!1),this.Sy&&(this.contextMenu.hide(),this.Wf&&this.Wf.hide()))}; g.k.ij=function(a,b){var c=this.api.fb().getPlayerSize();c=new g.Ol(0,0,c.width,c.height);if(a||this.od.u&&!this.xo()){if(this.api.W().Oj||b)a=this.Ne()?this.rC:this.qC,c.top+=a,c.height-=a;this.Zf&&(c.height-=yQ(this.Zf))}return c}; g.k.fm=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube a pantalla completa"),this.api.W().externalFullscreen||(b.parentElement.insertBefore(this.iy.element,b),b.parentElement.insertBefore(this.gy.element,b.nextSibling))):g.ys(Error("Player not in DOM.")):(b.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube"),this.iy.detach(),this.gy.detach());this.xb();this.Cm()}; g.k.Ne=function(){var a=this.api.W();return this.api.isFullscreen()&&!a.D||!1}; g.k.showControls=function(a){this.Qx=!a;this.Si()}; g.k.xb=function(){var a=this.Ne();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.O(this.contextMenu.element,"ytp-big-mode",a);this.Si();if(this.lf()&&this.Wf)this.qh&&OO(this.Wf,this.qh),this.shareButton&&OO(this.Wf,this.shareButton),this.Pg&&OO(this.Wf,this.Pg);else{if(this.Wf){a=this.Wf;for(var b=g.r(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.qh&&!g.Ig(this.Gg.element,this.qh.element)&&this.qh.Ea(this.Gg.element);this.shareButton&&!g.Ig(this.Gg.element, this.shareButton.element)&&this.shareButton.Ea(this.Gg.element);this.Pg&&!g.Ig(this.Gg.element,this.Pg.element)&&this.Pg.Ea(this.Gg.element)}this.Cm();g.TN.prototype.xb.call(this)}; g.k.aD=function(){if(Pwa(this)&&!g.RM(this.api))return!1;var a=this.api.getVideoData();return!g.fF(this.api.W())||2===this.api.getPresentingPlayerType()||!this.Tg||((a=this.Tg||a.Tg)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.TN.prototype.aD.call(this):!1}; g.k.Cm=function(){g.TN.prototype.Cm.call(this);this.api.jb(this.title.element,!!this.Fk);this.Fs&&this.Fs.Wb(!!this.Fk);this.channelAvatar.Wb(!!this.Fk);this.overflowButton&&this.overflowButton.Wb(this.lf()&&!!this.Fk);this.shareButton&&this.shareButton.Wb(!this.lf()&&!!this.Fk);this.qh&&this.qh.Wb(!this.lf()&&!!this.Fk);this.Pg&&this.Pg.Wb(!this.lf()&&!!this.Fk);if(!this.Fk){this.tooltip.cj(this.Sh.element);for(var a=0;athis.i;)a[d++]^=c[this.i++];for(var e=b-(b-d)%16;db.i&&(c=1));return c};g.w(hS,g.I);hS.prototype.ya=function(){this.K&&this.K();g.I.prototype.ya.call(this)}; hS.prototype.createAction=function(a,b){var c=WQ(a.entityKey).entityType,d=vy();return new cS(c,d,a,b.actionId,b.rootActionId)}; hS.prototype.ea=function(a){var b;return g.H(this,function d(){var e=this,f,h,l,m,n,p,q,t;return g.B(d,function(u){if(1==u.i){if(e.isDisposed())return u.return();f=null!==(b=a.offlineOrchestrationActionWrapperEntity)&&void 0!==b?b:new Set;h=[];l=g.r(f);for(m=l.next();!m.done;m=l.next())n=m.value,p=WQ(n),q=p.entityId,xya(e.u,q)||h.push(n);return g.z(u,Hya(e,h),2)}t=u.u;return g.z(u,jS(e,t),0)})})};Kya.prototype.B=function(){return g.H(this,function b(){var c=this,d,e,f,h,l,m,n,p;return g.B(b,function(q){if(1==q.i)return g.z(q,BR(c.u,"orchestrationWebSamplingEntity"),2);if(3!=q.i){d=q.u;if(50c.i&&g.Ku(0,c.B.bind(c),Math.floor($f(3E4,3E5)));g.sa(q)})})};Qya.prototype.info=function(){};g.k=Rya.prototype;g.k.BT=function(a){var b;return g.H(this,function d(){var e=this,f;return g.B(d,function(h){if(!g.U(a.state,128))return h.ib(0);var l=null===(b=a.state.getData())||void 0===b?void 0:b.errorCode;f=(null===l||void 0===l?0:l.startsWith("net."))?"TRANSFER_FAILURE_REASON_NETWORK":"TRANSFER_FAILURE_REASON_INTERNAL";return g.z(h,e.bq(e.player.getVideoData().videoId,f),0)})})}; g.k.bq=function(a,b){return g.H(this,function d(){var e=this;return g.B(d,function(f){if(1==f.i){if(e.u)return f.return();e.u=!0;return g.z(f,kS(e,a),2)}eG(a,4);return g.z(f,e.i.bq(b),0)})})}; g.k.As=function(a){2===a.status?(a.status!==this.B&&(pS(this.i),eG(a.videoId,2)),a.qw&&lza(this.i,a.videoId,a.qw)):4===a.status?(kS(this,a.videoId),this.bq(a.videoId,"TRANSFER_FAILURE_REASON_INTERNAL")):1===a.status&&kza(this.i);this.B=a.status;this.api.Oa("localmediachange",{videoId:a.videoId,status:a.status})}; g.k.uE=function(){return g.H(this,function b(){var c=this,d;return g.B(b,function(e){if(1==e.i){if(c.u)return e.return();c.u=!0;d=c.player.getVideoData().videoId;return g.z(e,kS(c,d),2)}return g.z(e,c.i.uE(),0)})})}; g.k.U=function(a){return this.api.W().experiments.Ga(a)};g.w(lS,g.I);lS.prototype.ya=function(){this.u&&this.u();g.I.prototype.ya.call(this)}; lS.prototype.B=function(a){var b;return g.H(this,function d(){var e,f,h,l,m,n,p,q=this;return g.B(d,function(t){e=null!==(b=a.transfer)&&void 0!==b?b:new Set;f=[];h=g.r(e);for(l=h.next();!l.done;l=h.next())m=l.value,n=WQ(m),p=n.entityId,f.push(p);return 0===f.length?t.return():g.z(t,Yya(q,f),0)})})};g.w(mS,g.I);g.k=mS.prototype;g.k.ya=function(){this.K&&this.K();this.N.dispose();this.C.dispose();this.xa&&If(this.D.B,this.xa);this.ma&&If(this.D.B,this.ma);g.I.prototype.ya.call(this)}; g.k.TV=function(a){this.i&&this.B&&Wya(this.J,this.B,void 0===a?!1:a);this.C.stop()}; g.k.lW=function(){this.i&&this.B?dza(this,this.i):cza(this)}; g.k.FO=function(a){return g.H(this,function c(){var d=this;return g.B(c,function(e){switch(e.i){case 1:if(!d.i){e.ib(2);break}if("TRANSFER_STATE_COMPLETE"===d.i.transferState||"TRANSFER_STATE_FAILED"===d.i.transferState||!a.transfer||!a.transfer.has(d.i.key)){e.ib(3);break}return g.z(e,AR(d.u,d.i.key,"transfer"),4);case 4:d.i=e.u;if(d.i){e.ib(3);break}return g.z(e,eza(d),3);case 3:if(d.i)return e.return();case 2:return g.z(e,nS(d),0)}})})}; g.k.bq=function(a,b){return g.H(this,function d(){var e=this,f;return g.B(d,function(h){if(1==h.i){a:switch(a){case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_PLAYABILITY":case "TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES":var l=!1;break a;default:l=!0}return l&&mza(e)?g.z(h,rS(e,"TRANSFER_STATE_TRANSFER_IN_QUEUE"),3):g.z(h,nza(e,a),3)}oS(e);f=nS(e,!0);b&&b(f);g.sa(h)})})}; g.k.uE=function(a){return g.H(this,function c(){var d=this,e,f,h,l,m,n;return g.B(c,function(p){if(1==p.i)return mza(d)?g.z(p,rS(d,"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"),5):g.z(p,nza(d,"TRANSFER_FAILURE_REASON_STREAM_MISSING"),3);if(3!=p.i)return e=WQ(d.i.key).entityId,PR({transferStatusType:"TRANSFER_STATUS_TYPE_DEQUEUED_BY_PLAYER_RESPONSE_EXPIRATION",statusType:"ADDED_TO_QUEUE"},{videoId:e,Ys:d.i}),f=pya(),f.playbackDataActionMetadata={isEnqueuedForExpiredStreamUrlRefetch:!0},h=XQ(e, "playbackData"),l={actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",entityKey:h,actionMetadata:f},m=dS(new cS("playbackData",e,l)),g.z(p,zR(d.u,m,"offlineOrchestrationActionWrapperEntity"),3);oS(d);n=nS(d,!0);a&&a(n);g.sa(p)})})}; var d3={},sS=(d3.TRANSFER_STATE_TRANSFERRING=1,d3.TRANSFER_STATE_TRANSFER_IN_QUEUE=2,d3);g.k=sza.prototype;g.k.sB=function(){Kxa(this.u)}; g.k.isOrchestrationLeader=function(){return this.u.i}; g.k.refreshAllVideos=function(){return g.H(this,function b(){var c=this,d;return g.B(b,function(e){if(1==e.i){if(!c.J.Pe())return e.return(yza(c));d=c.ww;return g.z(e,xza(c),2)}return e.return(d.call(c,e.u,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})})}; g.k.deleteVideos=function(a){return g.H(this,function c(){var d=this;return g.B(c,function(e){return e.return(d.ww(a,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})}; g.k.deleteAllVideos=function(){return g.H(this,function b(){var c=this;return g.B(b,function(d){return d.return(c.ww(["!*$_ALL_VIDEOS_!*$"],"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})}; g.k.ww=function(a,b,c){return g.H(this,function e(){var f=this,h,l,m;return g.B(e,function(n){if(1==n.i)return g.z(n,DR(),2);h=n.u;if(!h||!f.Y.U("woffle_orchestration"))return n.return([]);l=a.map(function(p){var q=XQ(p,"ytMainDownloadedVideoEntity");q={actionType:b,entityKey:q,actionMetadata:Object.assign(Object.assign({},pya()),c)};"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"!==b&&(q.actionMetadata.priority=0);p=new cS("ytMainDownloadedVideoEntity",p,q);return dS(p)}); m=yxa(h,l);f.sB();return n.return(m)})})};var uS=[],LGa=!1;g.AW=ab(function(){var a="";try{var b=g.Cg("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.vS,YJ);g.k=g.vS.prototype;g.k.isView=function(){return!0}; g.k.XE=function(){var a=this.ra.getCurrentTime();if(ae?this.Ie("next_player_future"):(this.D=d,this.B=Ala(a,c,d,!0),this.C=Ala(a,e,f,!1),a=this.u.getVideoData().clientPlaybackNonce,this.i.Ca("gaplessPrep","cpn."+a),ES(this.i,this.B),this.i.setMediaElement(Kza(b,c,d,!this.i.getVideoData().isAd())), DS(this,2),Qza(this))):this.oa():this.oa()}else this.Ie("no-elem")}else this.oa()}; g.k.Yq=function(a){var b=Pza(this).GM,c=a===b;b=c?this.B.i:this.B.u;c=c?this.C.i:this.C.u;if(b.isActive&&!c.isActive){var d=this.D;PD(a.cf(),d-.01)&&(DS(this,4),b.isActive=!1,b.ex=b.ex||b.isActive,this.u.Ca("sbh","1"),c.isActive=!0,c.ex=c.ex||c.isActive);a=this.C.u;this.C.i.isActive&&a.isActive&&DS(this,5)}}; g.k.tL=function(){4<=this.status.status&&6>this.status.status&&this.Ie("player-reload-after-handoff")}; g.k.Ie=function(a){if(!this.isDisposed()&&!this.isFinished()){this.oa();var b=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.i&&this.u){var c=this.u.getVideoData().clientPlaybackNonce;this.i.Ca("gaplessError","cpn."+c+";msg."+a);a=this.i;a.videoData.Ma=!1;b&&mW(a);a.Ya&&(b=a.Ya,b.policy.La=!1,b.mediaSource&&RV(b))}this.Uk.reject(void 0);this.dispose()}}; g.k.ya=function(){Oza(this);this.i.unsubscribe("newelementrequired",this.tL,this);if(this.B){var a=this.B.u;this.B.i.qd.unsubscribe("updateend",this.Yq,this);a.qd.unsubscribe("updateend",this.Yq,this)}g.I.prototype.ya.call(this)}; g.k.Jc=function(a){g.nI(a,128)&&this.Ie("player-error-event")}; g.k.oa=function(){};g.w(HS,g.I);HS.prototype.clearQueue=function(){this.oa();this.C&&this.C.reject("Queue cleared");IS(this)}; HS.prototype.gs=function(){return!this.u}; HS.prototype.ya=function(){IS(this);g.I.prototype.ya.call(this)}; HS.prototype.oa=function(){};g.w(LS,g.R);g.k=LS.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:Uza()?3:b?2:c?1:d?5:e?7:f?8:0}; g.k.Ji=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.ye())}; g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.ye())}; g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.ye())}; g.k.Qs=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.ye())}; g.k.setImmersivePreview=function(a){this.u!==a&&(this.u=a,this.ye())}; g.k.hf=function(){return this.i}; g.k.isFullscreen=function(){return 0!==this.fullscreen}; g.k.Fe=function(){return this.B}; g.k.isInline=function(){return this.inline}; g.k.isBackground=function(){return Uza()}; g.k.Zr=function(){return this.pictureInPicture}; g.k.Xr=function(){return this.u}; g.k.ye=function(){this.Z("visibilitychange");var a=this.getVisibilityState(this.hf(),this.isFullscreen(),this.Fe(),this.isInline(),this.Zr(),this.Xr());a!==this.D&&this.Z("visibilitystatechange");this.D=a}; g.k.ya=function(){Xza(this.C);g.R.prototype.ya.call(this)};g.w(g.NS,g.I);g.k=g.NS.prototype;g.k.Ed=function(a){this.Ba.push(a);var b=this.B.get(a),c=null==b;this.Ha.add(a.u);c||this.Da.Ca("sdai","enterAdCueRange");if(this.Ma){this.Ma=!1;if(!c){var d=this.u.find(function(e){return e.cpn===b}); d&&(this.api.Z("serverstitchedvideochange",d.Cc,d.ou),this.Da.Ca("sdai",{ssvc:"midab"}),this.Iu=1)}this.N=!1}else if(this.i){if(this.i.Lp)this.Da.Ca("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.i.adCpn,transitionTime:this.i.If,cpn:b,currentTime:this.Da.getCurrentTime()}),this.Y.U("web_player_same_transition_fallback_killswitch")||(d=this.Da.getCurrentTime(),a={ud:a,isAd:!c,Lp:!0,If:d,adCpn:b},d={ud:this.i.ud,isAd:this.i.isAd,Lp:!1,If:d,adCpn:this.i.adCpn},this.Ha.delete(this.i.ud.u), QS(this,a,d));else{if(this.i.ud===a){this.Da.Ca("sdai",{same_cue_range_pair_enter:1,acpn:this.i.adCpn,transitionTime:this.i.If,cpn:b,currentTime:this.Da.getCurrentTime()});this.i=void 0;return}if(this.i.adCpn===b){this.Da.Ca("sdai",{dchtsc:b});this.i=void 0;return}d={ud:a,isAd:!c,Lp:!0,If:this.Da.getCurrentTime(),adCpn:b};QS(this,d,this.i)}this.i=void 0;this.N=!1}else this.i={ud:a,isAd:!c,Lp:!0,If:this.Da.getCurrentTime(),adCpn:b}}; g.k.rf=function(a){if(this.Y.U("web_player_same_transition_fallback_killswitch")||this.Ha.has(a.u)){this.Ha.delete(a.u);this.Ba=this.Ba.filter(function(d){return d!==a}); this.Ma&&(this.N=this.Ma=!1,this.Da.Ca("sdai","cref"));var b=this.B.get(a),c=null==b;if(this.i){if(this.i.Lp){if(this.i.ud===a){this.Da.Ca("sdai",{same_cue_range_pair_exit:1,acpn:this.i.adCpn,transitionTime:this.i.If,cpn:b,currentTime:this.Da.getCurrentTime()});this.i=void 0;return}if(this.i.adCpn===b){this.Da.Ca("sdai",{dchtsc:b});this.i=void 0;return}c={ud:a,isAd:!c,Lp:!1,If:this.Da.getCurrentTime(),adCpn:b};QS(this,this.i,c)}else this.Da.Ca("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.i.adCpn, transitionTime:this.i.If,upcomingCpn:b,contentCpn:this.Da.getVideoData().clientPlaybackNonce,currentTime:this.Da.getCurrentTime()});this.i=void 0;this.N=!1}else this.i={ud:a,isAd:!c,Lp:!1,If:this.Da.getCurrentTime(),adCpn:b};this.Y.U("web_player_halftime_dai")&&(c=this.u.find(function(d){return d.cpn===b}),this.isLiveNow&&c&&this.Da.getCurrentTime()=this.Pb)return this.Da.Ca("sdai",{gdu:1,seg:b,itag:l,err:a.errorCount}),null;a.locations||(a.locations=new Map);if(!a.locations.has(l)){var n=null===(f=null===(e=a.playerResponse)|| void 0===e?void 0:e.streamingData)||void 0===f?void 0:f.adaptiveFormats;if(!n)return this.Da.Ca("sdai",{gdu:"noadpfmts",seg:b,itag:l}),CT(this,b,m),null;n=n.find(function(q){return q.itag===l}); if(!n||!n.url)return this.Da.Ca("sdai",{gdu:"nofmt",seg:b,itag:l}),CT(this,b,m),null;var p=!this.Y.U("html5_ssdai_decipher_killswitch");a.locations.set(l,new g.FB(n.url,p))}n=a.locations.get(l);if(!n)return this.Da.Ca("sdai",{gdu:"nourl",seg:b,itag:l}),CT(this,b,m),null;n=new zC(n);(c=fAa(this,b-1,c,d))&&n.set("daistate",c);a.rF&&b>=a.rF&&n.set("skipsq",""+a.rF);(c=this.Da.getVideoData().clientPlaybackNonce)&&n.set("cpn",c);p=[];a.fg&&(p=iAa(this,a.fg),0=c+m||(n=!1,l?cthis.B;)(c=this.data.shift())&&QT(this,c,!0);OT(this)}; PT.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a}); c&&(QT(this,c,b),g.qb(this.data,function(d){return d.key===a}),OT(this))}; PT.prototype.ya=function(){var a=this;g.I.prototype.ya.call(this);this.data.forEach(function(b){QT(a,b,!0)}); this.data=[]};g.w(RT,g.mr);RT.prototype.Z=function(a,b){for(var c=[],d=1;dthis.policy.N&&(null===(b=this.i)||void 0===b?0:BD(b.info))&&(null===(c=this.nextVideo)||void 0===c||!BD(c.info))&&(this.N=!0))}; uU.prototype.oa=function(){};DU.prototype.dispose=function(){this.ea=!0}; DU.prototype.isDisposed=function(){return this.ea};KU.prototype.skip=function(a){this.offset+=a}; KU.prototype.getOffset=function(){return this.offset};MU.prototype.Rh=function(){this.u.shift()}; MU.prototype.Gk=function(){return!!this.D.info.audio}; MU.prototype.getDuration=function(){return this.D.index.getMaxKnownEndTime()}; MU.prototype.oa=function(){};g.k=UU.prototype;g.k.VC=function(){return 0}; g.k.QG=function(){return null}; g.k.qJ=function(){return null}; g.k.isComplete=function(){return 3<=this.state}; g.k.isFailed=function(){return 5===this.state}; g.k.tB=function(){}; g.k.isDisposed=function(){return-1===this.state}; g.k.dispose=function(){this.info.dj()&&4!==this.state&&(this.info.i[0].i.C=!1);VU(this,-1)};g.w(XU,UU);g.k=XU.prototype;g.k.tB=function(){if(this.isDisposed()){var a=this.Ge,b=this.u;a.Ke.get(b).Qd=new gD;lX(a,b)}}; g.k.Pt=function(){return{}}; g.k.mJ=function(){return 0}; g.k.Qt=function(){return!0}; g.k.uB=function(){this.En();this.N=!0;return PBa(this.i)}; g.k.SG=function(){this.En();return this.i.Qd}; g.k.Gs=function(){var a,b;return!(null===(b=null===(a=this.i)||void 0===a?void 0:a.Qd)||void 0===b||!b.length)||this.Ge.Uf(this.u)}; g.k.En=function(){for(;this.Ge.Uf(this.u);){var a=this.i,b=this.Ge.Rh(this.u),c=this.Ge.Ke.get(this.u);OBa(a,b,c.jf&&!c.Qd.totalLength&&RBa(this.Ge,this.u))}};YU.prototype.Xf=function(){return yBa(this.C)}; YU.prototype.Rh=function(a){this.C.Rh(a);a=a.info;var b=a.i.info.Mb;this.policy.ju&&a.Nd&&a.duration&&(b=Math.max(b,(a.Cb+a.u)/a.duration));this.Mb=Math.max(this.Mb,b||0)}; YU.prototype.getDuration=function(){return this.i.index.getMaxKnownEndTime()}; YU.prototype.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.i[0].Na:!1};g.k=lV.prototype;g.k.Cs=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.C.Ds()}; g.k.onError=function(){this.D=!0;this.onDone()}; g.k.onDone=function(){this.isDisposed||(this.u&&(this.i.append(this.u),delete this.u),this.C.Xn())}; g.k.Gn=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED}; g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}}; g.k.Zu=function(){return+this.getResponseHeader("content-length")}; g.k.Ml=function(){return this.B}; g.k.xw=function(){return 200<=this.status&&300>this.status&&!!this.B}; g.k.Uf=function(){return 0a-this.C&&qV(this)||hCa(this,a,b);this.K.cq(a,b)}; g.k.Xn=function(){this.K.Xn()}; g.k.deactivate=function(){this.isActive&&(this.isActive=!1)}; g.k.now=function(){return(0,g.Q)()};var oCa=0;g.k=uV.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.Ba);this.C&&(b.signal=this.C.signal);a=new Request(a,b);fetch(a).then(this.Ma,this.onError).then(void 0,bw)}; g.k.onDone=function(){if(!this.isDisposed()){this.oa();this.ea=!0;if(nCa(this)&&!this.i.totalLength&&!this.J&&this.u){kB(this);var a=new Uint8Array(8),b=new DataView(a.buffer);b.setUint32(0,8);b.setUint32(4,1936419184);this.i.append(a);this.u+=a.length}this.D.Xn()}}; g.k.getResponseHeader=function(a){return this.N?this.N.get(a):null}; g.k.Gn=function(){return!!this.N}; g.k.Ml=function(){return this.u}; g.k.Zu=function(){return+this.getResponseHeader("content-length")}; g.k.xw=function(){return 200<=this.status&&300>this.status&&!!this.u}; g.k.oa=function(){}; g.k.Uf=function(){if(this.ea||this.policy.i)return!!this.i.totalLength;if(!this.Gn()||this.xa+10>Date.now())return!1;var a=16384;this.Aa||(a=Math.max(a,16384));(this.policy.i?0:this.policy.cg&&kB(this))&&(a=1);return this.i.totalLength>=a}; g.k.Rh=function(){this.Uf();this.xa=Date.now();this.Aa=!0;var a=this.i;this.i=new gD;return a}; g.k.Xf=function(){this.Uf();return this.i}; g.k.isDisposed=function(){return this.V}; g.k.abort=function(){this.oa();this.B&&this.B.cancel().catch(function(){}); this.C&&this.C.abort();this.V=!0}; g.k.Vs=function(){return!0}; g.k.Xz=function(){return this.J}; g.k.le=function(){return this.errorMessage};g.k=vV.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.i=!0;this.B.Xn()}}; g.k.Cs=function(){2===this.xhr.readyState&&this.B.Ds()}; g.k.kd=function(a){this.isDisposed||(this.status=this.xhr.status,this.i||(this.u=a.loaded),this.B.cq((0,g.Q)(),a.loaded))}; g.k.Gn=function(){return 2<=this.xhr.readyState}; g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return As(Error("Could not read XHR header "+a)),""}}; g.k.Zu=function(){return+this.getResponseHeader("content-length")}; g.k.Ml=function(){return this.u}; g.k.xw=function(){return 200<=this.status&&300>this.status&&this.i&&!!this.u}; g.k.Uf=function(){return this.i&&!!this.response&&!!this.response.byteLength}; g.k.Rh=function(){this.Uf();var a=this.response;this.response=void 0;return new gD([new Uint8Array(a)])}; g.k.Xf=function(){this.Uf();return new gD([new Uint8Array(this.response)])}; g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()}; g.k.Vs=function(){return!1}; g.k.Xz=function(){return!1}; g.k.le=function(){return""};g.w(yV,UU);g.k=yV.prototype;g.k.Td=function(){return this.u.Td()}; g.k.Pt=function(){var a=nV(this.timing);a.shost=HB(this.u.gg);this.B&&(a.rc=this.B.toString());a.itag=this.info.i[0].i.info.lc();a.ml=""+ +this.info.i[0].i.Oe();a.sq=""+this.info.i[0].Na;this.u&&(a.ifi=""+ +gka(this.u.gg));410!==this.B&&500!==this.B&&503!==this.B||(a.fmt_unav="true");this.xhr.le()&&(a.msg=this.xhr.le());this.Rw&&(a.smb="1");if(this.i){var b=this.i.Qd;b.length&&kla(b[0],a)}return a}; g.k.mJ=function(){return lCa(this.timing)}; g.k.le=function(){return this.xhr.le()||""}; g.k.Qt=function(){var a;(a=this.isComplete())||(a=this.timing,a=a.u>a.Kz&&rV(a,a.u));return a}; g.k.cq=function(){!this.isDisposed()&&this.xhr&&(this.B=this.xhr.status,this.Gs()?WU(this,2):!this.Aa&&this.Qt()&&(WU(this),this.Aa=!0))}; g.k.Ds=function(){if(!this.isDisposed()&&this.xhr){if(!this.ea&&this.xhr.Gn()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.ea=((0,g.Q)()-a)/1E3}this.xhr.Gn()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Cq&&!jma()&&g.Tz("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.J=a||this.J;this.K=b||this.K}}; g.k.Xn=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.V.stop(),this.B=a.status,a=tCa(this,a),5===a?xV(this):VU(this,a))}; g.k.canRetry=function(){this.isDisposed();var a=wV(this);return a.timedOut=.8*this.xa?(this.C++,this.oa(),b=5<=this.C):this.C=0):(b=this.timing,b.hh&&tV(b,b.now()),a-=b.ma,this.policy.Ab&&01E3*b)&&this.oa());this.C&&this.callback&&this.callback(this,this.state);b?uCa(this,!1):this.V.start()}}; g.k.dispose=function(){UU.prototype.dispose.call(this);this.V.dispose();this.policy.Uc||zV(this)}; g.k.uB=function(){if(!this.SG().length)return[];this.N=!0;return PBa(this.i)}; g.k.Gs=function(){var a;return 1>this.state?!1:this.i&&this.i.Qd.length||(null===(a=this.xhr)||void 0===a?0:a.Uf())?!0:!1}; g.k.SG=function(){this.En(!1);return this.i?this.i.Qd:[]}; g.k.En=function(a){if(a||this.xhr.Gn()&&this.xhr.Uf()&&!rCa(this)&&!this.D){if(!this.i){if(this.xhr.Vs())this.info.range&&(b=this.info.range.length);else var b=this.xhr.Ml();this.i=new NBa(this.info.i,b)}for(;this.xhr.Uf();)OBa(this.i,this.xhr.Rh(),a&&!this.xhr.Uf())}}; g.k.Ml=function(){return this.xhr.Ml()}; g.k.VC=function(){return this.ea}; g.k.un=function(){return vCa(this)?2:1}; g.k.oa=function(){}; g.k.QG=function(){this.xhr&&(this.J=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.J}; g.k.qJ=function(){this.xhr&&(this.K=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.K}; var sCa=-1;AV.prototype.clear=function(){this.u=this.K=this.C=null;this.i=this.D=this.J=this.startTimeSecs=NaN;this.B=!1}; AV.prototype.oa=function(){};g.w(g.CV,g.I);g.k=g.CV.prototype; g.k.initialize=function(a,b,c){this.oa();a=a||0;this.Da.Cz(jBa(this.u));if(this.i.isManifestless){if(this.policy.Fi){b=dka(this.policy);for(var d in this.i.i)this.i.i.hasOwnProperty(d)&&(this.i.i[d].index.u=b)}FCa(this)}this.D&&xCa(this.D,this.videoTrack.i);this.policy.Qa&&jB()&&this.Ca("streaming","ac."+(!!window.AbortController||lB()),!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.i.isManifestless?d:a;this.ma&&(ECa(this,this.videoTrack),ECa(this,this.audioTrack),wFa(this.ma), delete this.ma,this.policy.Yt&&(a=EC(this.audioTrack.i.u,!1),g.Wu("https://"+a+"/generate_204")));c?(this.policy.uc?(this.rb=c,HV(this,c)):HV(this,!1),g.Nq(this.La)):(c=0===this.currentTime,DV(this,this.videoTrack,this.videoTrack.i,c),DV(this,this.audioTrack,this.audioTrack.i,c),g.mh(this.seek(this.currentTime),function(){}),this.timing.tick("gv")); (this.i.oe||this.i.vg||this.i.J||this.i.D||this.i.K)&&this.Ca("minMaxSq","minSq."+this.i.oe+";maxSq."+this.i.vg+";minDvrTime."+this.i.J+";maxDvrTime."+this.i.D+";startWalltime."+this.i.K)}; g.k.resume=function(){if(this.isSuspended||this.Aa)this.oa(),this.Ta=this.Aa=this.isSuspended=!1,this.wh()}; g.k.setAudioTrack=function(a){if(!this.isDisposed()){var b=this.u;b.u=b.D.i[a.id];b.K=b.u;a=new tU(b.K,b.i,"m");this.oa();PV(this.Da,a.reason,a.audio.info);SV(this.Da)}}; g.k.setPlaybackRate=function(a){a!==this.J.getPlaybackRate()&&this.J.setPlaybackRate(a)}; g.k.Dv=function(a){var b=a.info.i[0].i,c=a.lastError;if(IB(b.u.i)){var d=g.fe(g.Wa(a.le()),3);this.Ca("dldbrerr",d||"none")}this.K&&(d=a.info.i[0].Na,this.K.Dv(YAa(this.B,a.info.i[0].C,d),d));if(a.canRetry()){d=(b.info.video&&1b&&c.u.pop();a.B.length?a.u=g.cb(g.cb(a.B).info.i):a.C.u.length?a.u=NU(a.C).info:a.u=$U(a);a.u&&b=c||cthis.B&&(this.B=c,g.Wb(this.i)||(this.i={},this.C.stop(),this.u.stop())),this.i[b]=a,g.Nq(this.u))}}; VV.prototype.D=function(){for(var a=g.r(Object.keys(this.i)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.Z;for(var d=this.B,e=this.i[c].match(oi),f=[],h=g.r(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+td(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=xE(b.u)?d:c;d=new Uint8Array(xE(b.u)?c:d);xE(b.u)&&rDa(d);c=g.fe(d,4);rDa(d);d=g.fe(d,4);b.i[c]?b.i[c].status=e:b.i[d]?b.i[d].status=e:b.i[c]={type:"",status:e}}),this.oa("Key statuses changed: "+oDa(this,",")),XV(this,"onkeystatuschange"),this.status="kc",this.Z("keystatuseschange",this))}; g.k.error=function(a,b,c,d){this.isDisposed()||(this.Z("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.J)/1E3,this.J=NaN,this.Z("ctmp","provf",""+a.toFixed(3))));b&&this.dispose()}; g.k.shouldRetry=function(a,b){return this.Aa&&this.K?!1:!a&&this.requestNumber===b.requestNumber}; g.k.ya=function(){this.i={};g.R.prototype.ya.call(this)}; g.k.Jb=function(){var a={requestedKeyIds:this.xa,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.i);return a}; g.k.df=function(){var a=this.D.join();if(ZV(this)){var b=new Set,c;for(c in this.i)"usable"!==this.i[c].status&&b.add(this.i[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex}; g.k.oa=function(){}; g.k.Td=function(){return this.url};g.w(aW,g.I);g.k=aW.prototype;g.k.HO=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}}; g.k.Vn=function(){this.K&&this.K(this.i.keyStatuses)}; g.k.BL=function(a){this.D&&this.D(a.message,"license-request")}; g.k.AL=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.k.zL=function(){this.J&&this.J()}; g.k.update=function(a){var b=this;if(this.i)return this.i.update(a).then(null,zs(function(c){uDa(b,"t.update",c)})); this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.N.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.N.keySystem,a,this.initData,this.sessionId);return Ft()}; g.k.ya=function(){this.i&&this.i.close();this.element=null;g.I.prototype.ya.call(this)};g.w(bW,g.I);g.k=bW.prototype;g.k.setServerCertificate=function(){return"widevine"===this.i.flavor&&this.i.B&&this.u.setServerCertificate?this.u.setServerCertificate(this.i.B):null}; g.k.createSession=function(a,b){var c=a.initData;if(this.i.keySystemAccess){b&&b("createsession");var d=this.u.createSession();zE(this.i)&&(c=wDa(c,this.i.u));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new aW(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},zs(function(f){uDa(e,"t.generateRequest",f)})); return e}if(wE(this.i))return yDa(this,c);if(yE(this.i))return xDa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.i.keySystem,c):this.element.webkitGenerateKeyRequest(this.i.keySystem,c);return this.C=new aW(this.element,this.i,c,null,null)}; g.k.KO=function(a){var b=dW(this,a);b&&b.BL(a)}; g.k.JO=function(a){var b=dW(this,a);b&&b.AL(a)}; g.k.IO=function(a){var b=dW(this,a);b&&b.zL(a)}; g.k.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a}; g.k.ya=function(){var a;this.B=this.u=null;null===(a=this.C)||void 0===a?void 0:a.dispose();for(var b=g.r(Object.values(this.J)),c=b.next();!c.done;c=b.next())c.value.dispose();this.J={};g.I.prototype.ya.call(this);delete this.element};g.w(eW,g.I); eW.prototype.init=function(){return g.H(this,function b(){var c=this,d,e;return g.B(b,function(f){if(1==f.i)return g.Vl(c.i,{position:"absolute",width:"1px",height:"1px",display:"block"}),c.i.src=c.B.D,document.body.appendChild(c.i),c.C.S(c.i,"encrypted",c.J),d=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.z(f,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",d),2);e=f.u;c.B.keySystemAccess= e;c.u=new bW(c.i,c.B);g.J(c,c.u);cW(c.u);g.sa(f)})})}; eW.prototype.J=function(a){var b=this;if(!this.isDisposed()){var c=new Uint8Array(a.initData);a=new IU(c,a.initDataType);var d=VCa(c).replace("skd://","https://"),e={},f=this.u.createSession(a,function(){b.oa()}); f&&(g.J(this,f),this.D.push(f),fDa(f,function(h){sDa(h,f.i,d,e)},function(){b.oa()},function(){},function(){}))}}; eW.prototype.oa=function(){}; eW.prototype.ya=function(){this.D=[];this.i&&this.i.parentNode&&this.i.parentNode.removeChild(this.i);g.I.prototype.ya.call(this)};g.w(fW,UV); fW.prototype.J=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.i,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.Z("log_qoe","wvagt.delay."+ c+".cpi."+a.cryptoPeriodIndex+".reqlen."+this.i.length);this.C&&0>=c?zDa(this,a):(this.i.push({time:b+c,info:a}),g.Nq(this.u,c))}}; fW.prototype.ya=function(){this.i=[];UV.prototype.ya.call(this)};gW.prototype.get=function(a){a=iW(this,a);return-1!==a?this.values[a]:null}; gW.prototype.remove=function(a){a=iW(this,a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))}; gW.prototype.set=function(a,b){var c=iW(this,a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};g.w(jW,g.R);g.k=jW.prototype;g.k.LO=function(a){this.Ig("onecpt");a.initData&&EDa(this,new Uint8Array(a.initData),a.initDataType)}; g.k.jU=function(a){this.Ig("onndky");EDa(this,a.initData,a.contentType)}; g.k.Bs=function(a){this.Ig("onneedkeyinfo");this.Y.U("html5_eme_loader_sync")&&(this.K.get(a.initData)||this.K.set(a.initData,a));DDa(this,a)}; g.k.XH=function(a){this.B.push(a);kW(this)}; g.k.createSession=function(a){this.u.get(a.initData);this.xa=!0;var b=new YV(this.videoData,this.Y,a,this.drmSessionId);this.u.set(a.initData,b);b.subscribe("ctmp",this.bL,this);b.subscribe("keystatuseschange",this.Vn,this);b.subscribe("licenseerror",this.Bz,this);b.subscribe("newlicense",this.vL,this);b.subscribe("newsession",this.wL,this);b.subscribe("sessionready",this.JL,this);b.subscribe("fairplay_next_need_key_info",this.mL,this);hDa(b,this.C)}; g.k.vL=function(a){this.isDisposed()||(this.oa(),this.Ig("onnelcswhb"),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.Z("heartbeatparams",a)))}; g.k.wL=function(){this.isDisposed()||(this.oa(),this.Ig("newlcssn"),this.B.shift(),this.xa=!1,kW(this))}; g.k.JL=function(){if(wE(this.i)&&(this.oa(),this.Ig("onsnrdy"),this.Ha--,0===this.Ha)){var a=this.ea;a.element.msSetMediaKeys(a.B)}}; g.k.Vn=function(a){if(!this.isDisposed()){!this.Ba&&this.videoData.U("html5_log_drm_metrics_on_key_statuses")&&(FDa(this),this.Ba=!0);this.oa();this.Ig("onksch");if(!ZV(a)&&g.cx&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(ZV(a))for(var d=g.r(Object.keys(a.i)),e=d.next();!e.done;e=d.next())e=e.value,"usable"===a.i[e].status&&b.push(a.i[e].type),"unknown"!==a.i[e].status&&(c=!1);if(!ZV(a)||c)b=a.D;b=g.ib(b,"UHD2")||g.ib(b,"UHD2HDR")? "highres":g.ib(b,"UHD1")||g.ib(b,"UHD1HDR")?"hd2160":g.ib(b,"HD")||g.ib(b,"HDHDR")?"hd1080":g.ib(b,"HD720")||g.ib(b,"HD720HDR")?"hd720":"large"}a:{c=qB("auto",b,!1,"l");if(this.videoData.Ng){if(oB(this.N,c))break a}else if(Uja(this.N,b))break a;this.N=c;this.Z("qualitychange");this.oa();this.Ig("updtlq"+b)}this.Z("keystatuseschange",a)}}; g.k.bL=function(a,b){this.isDisposed()||this.Z("ctmp",a,b)}; g.k.mL=function(a,b){this.isDisposed()||this.Z("fairplay_next_need_key_info",a,b)}; g.k.Bz=function(a,b,c,d){this.isDisposed()||(this.videoData.U("html5_log_drm_metrics_on_error")&&FDa(this),this.Z("licenseerror",a,b,c,d))}; g.k.Pr=function(){return this.N}; g.k.ya=function(){this.i.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.bL,this),b.unsubscribe("keystatuseschange",this.Vn,this),b.unsubscribe("licenseerror",this.Bz,this),b.unsubscribe("newlicense",this.vL,this),b.unsubscribe("newsession",this.wL,this),b.unsubscribe("sessionready",this.JL,this),b.unsubscribe("fairplay_next_need_key_info",this.mL,this),b.dispose(); hW(this.u);hW(this.J);hW(this.K);this.heartbeatParams=null;g.R.prototype.ya.call(this)}; g.k.Jb=function(){for(var a={systemInfo:this.i.Jb(),sessions:[]},b=g.r(this.u.values),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Jb());return a}; g.k.df=function(){return 0>=this.u.values.length?"no session":this.u.values[0].df()+(this.D?"/KR":"")}; g.k.Ig=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(this.oa(),(this.videoData.ma||b)&&this.Z("ctmp","drmlog",a))}; g.k.oa=function(){};g.w(nW,g.I);g.k=nW.prototype;g.k.Vy=function(){return this.B}; g.k.handleError=function(a){var b=this,c;KDa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!pW(this,a.errorCode,a.details))&&!MDa(this,a))if(a.i){var d=null===(c=this.Da.Ya)||void 0===c?void 0:c.u.B;if(("net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&a.details.fmt_unav)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.i.J&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.Da.Ff(a.errorCode, e,g.VD(a.details),f)}else this.Da.Z("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Od(a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.Q)(),(new JE(a,"manifest",function(h){b.K=!0;b.Ca("pathprobe",h)},function(h){b.Od(h.errorCode,h.details)})).send())}; g.k.Ca=function(a,b){this.Da.Vb.Ca(a,b)}; g.k.Od=function(a,b){b=g.VD(b);this.Da.Vb.Od(a,b)}; g.k.oa=function(){};qW.prototype.setPlaybackRate=function(a){this.playbackRate=a}; qW.prototype.U=function(a){return this.Y.U(a)};g.w(rW,g.I);rW.prototype.Jc=function(a){gEa(this);this.playerState=a.state;0<=this.B&&g.nI(a,16)&&this.seekCount++;a.state.isError()&&this.send()}; rW.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(qNa)?this.networkErrorCount++:this.nonNetworkErrorCount++)}; rW.prototype.send=function(){if(!(this.C||0>this.u)){gEa(this);var a=g.JS(this.i)-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");var d=RG(this.i.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"===d?c="LIVE_STREAM_MODE_LIVE":"dvr"===d&&(c="LIVE_STREAM_MODE_DVR");d=hEa(this.i);var e=0>this.B?a:this.B-this.u;a=this.i.Y.ob+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.i.videoData.isAd(),liveMode:c,hasDrm:!!g.PG(this.i.videoData),isGapless:this.i.videoData.Ma};!a&&this.i.U("html5_health_to_gel")&&g.cw("html5PlayerHealthEvent",b);this.i.U("html5_health_to_qoe")&&(b.muted=a,this.K(g.VD(b)));this.C=!0;this.dispose()}}; rW.prototype.ya=function(){this.C||this.send();g.I.prototype.ya.call(this)}; var qNa=/\bnet\b/;var lEa=window;var jEa=/[?&]cpn=/;g.w(g.vW,g.I);g.k=g.vW.prototype;g.k.qR=function(){var a=g.JS(this.i);wW(this,a)}; g.k.ov=function(){return this.Qa}; g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.JS(this.i),-1<["PL","B","S"].indexOf(this.pd)&&(!g.Wb(this.u)||a>=this.C+30)&&(g.uW(this,a,"vps",[this.pd]),this.C=a),!g.Wb(this.u))){7E3===this.sequenceNumber&&g.zz(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){xW(this,a);var b=a,c=this.i.Da.Av(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.eb,h=e&&!this.ob;if(d>c.totalVideoFrames||5E3=this.playTimeSecs&&(this.i.Da.dw(),this.u.qoealert=["1"],this.La=!0)}"B"!==d||"PL"!==this.pd&&"PB"!==this.pd||(this.xa=!0);this.C=c}"PL"===this.pd&&("B"=== d||"S"===d)||this.i.videoData.ma?xW(this,c):wW(this,c);"PL"===d&&g.Nq(this.Ab);this.i.U("html5_unstarted_buffering")&&this.i.videoData.ma&&g.U(a.state,64)&&"N"!==d&&this.Ca("unstub",d);g.uW(this,c,"vps",[d]);this.pd=d;this.C=this.Ta=c;this.D=!0}a=b.getData();g.U(b,128)&&a&&this.Od(c,a.errorCode,a.iM);(g.U(b,2)||g.U(b,128))&&this.reportStats(c);b.xc()&&!this.J&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.J=!0);yW(this)}; g.k.Un=ba(34);g.k.Tn=ba(37);g.k.zj=ba(15);g.k.getPlayerState=function(a){if(g.U(a,128))return"ER";if(g.U(a,512))return"SU";if(g.U(a,16)||g.U(a,32))return"S";if(g.hK(a)&&g.U(a,64))return"B";var b=rNa[kK(a)];g.uF(this.i.Y)&&"B"===b&&3===this.i.Da.getVisibilityState()&&(b="SU");"B"===b&&g.U(a,4)&&(b="PB");return b}; g.k.ya=function(){g.I.prototype.ya.call(this);window.clearInterval(this.Xa)}; g.k.Ca=function(a,b,c){var d=this.u.ctmp||[],e=-1!==this.Db.indexOf(a);e||this.Db.push(a);if(!c||!e){b="string"!==typeof b?g.VD(b):b;b=tEa(b);if(!c&&!/^t[.]/.test(b)){var f=1E3*g.JS(this.i);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.oa();this.u.ctmp=d;yW(this);return f}}; g.k.zw=function(a,b,c){this.K={nW:Number(this.Ca("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),UK:a,cW:b,isAd:c}}; g.k.Js=function(a,b,c){g.uW(this,g.JS(this.i),"ad_playback",[a,b,c])}; g.k.oa=function(){}; var i3={},rNa=(i3[5]="N",i3[-1]="N",i3[3]="B",i3[0]="EN",i3[2]="PA",i3[1]="PL",i3);uEa.prototype.update=function(){if(this.N){var a=this.i.Da.getCurrentTime()||0;this.i.Y.U("html5_vss_media_time_killswitch")||(a=this.i.Da.Dh()||0);var b=g.JS(this.i);if(a!==this.u||yEa(this,a,b)){var c;if(!(c=ab-this.lastUpdateTime+2||yEa(this,a,b))){var d=this.i.Eh();c=d.volume;var e=c!==this.ea;d=d.muted;d!==this.V?(this.V=d,c=!0):(!e||0<=this.D||(this.ea=c,this.D=b),c=b-this.D,0<=this.D&&2=this.i.videoData.Fb;a&&(this.C&&this.i.videoData.Fb&&(a=IW(this,"delayplay"),a.yh=!0,a.send(),this.ea=!0),CEa(this))}; g.k.Jc=function(a){this.isDisposed()||(g.U(a.state,2)?(this.currentPlayerState="paused",g.nI(a,2)&&this.C&&LW(this).send()):g.U(a.state,8)?(this.currentPlayerState="playing",this.C&&isNaN(this.B)&&JW(this,!1)):this.currentPlayerState="paused")}; g.k.ya=function(){g.I.prototype.ya.call(this);g.qt(this.B);this.B=NaN;wEa(this.u)}; g.k.Jb=function(){return FW(IW(this,"playback"))}; g.k.nt=function(){this.i.videoData.N.eventLabel=pH(this.i.videoData);this.i.videoData.N.playerStyle=this.i.Y.playerStyle;this.i.videoData.eh&&(this.i.videoData.N.feature="pyv");this.i.videoData.N.vid=this.i.videoData.videoId;var a=this.i.videoData.N;var b=this.i.videoData;b=b.isAd()||!!b.eh;a.isAd=b}; g.k.Fh=function(a){var b=IW(this,"engage");b.V=a;return zEa(b,HEa(this.i))};GEa.prototype.isEmpty=function(){return this.endTime===this.startTime};NW.prototype.U=function(a){return this.Y.U(a)}; var IEa={other:1,none:2,wifi:3,cellular:7};g.w(g.OW,g.I);g.k=g.OW.prototype;g.k.Jc=function(a){var b;if(g.nI(a,1024)||g.nI(a,512)||g.nI(a,4)){if(this.B){var c=this.B;0<=c.B||(c.u=-1,c.delay.stop())}this.qoe&&(c=this.qoe,c.J||(c.B=-1))}this.u.videoData.enableServerStitchedDai&&this.Pf?null===(b=this.C.get(this.Pf))||void 0===b?void 0:b.Jc(a):this.i&&this.i.Jc(a);this.qoe&&this.qoe.Jc(a);this.B&&this.B.Jc(a)}; g.k.kd=function(){var a;this.u.videoData.enableServerStitchedDai&&this.Pf?null===(a=this.C.get(this.Pf))||void 0===a?void 0:a.kd():this.i&&this.i.kd()}; g.k.Od=function(a,b){if(this.qoe)this.qoe.onError(a,b);if(this.B)this.B.onError(a)}; g.k.Un=ba(33);g.k.Ca=function(a,b,c){this.qoe&&this.qoe.Ca(a,b,c)}; g.k.zw=function(a,b,c){this.qoe&&this.qoe.zw(a,b,c)}; g.k.yw=function(a){this.qoe&&this.qoe.yw(a)}; g.k.Js=function(a,b,c){this.qoe&&this.qoe.Js(a,b,c)}; g.k.Tn=ba(36);g.k.zj=ba(14);g.k.ov=function(){if(this.qoe)return this.qoe.ov()}; g.k.Jb=function(){var a;if(this.u.videoData.enableServerStitchedDai&&this.Pf)null===(a=this.C.get(this.Pf))||void 0===a?void 0:a.Jb();else if(this.i)return this.i.Jb();return{}}; g.k.Fh=function(a){return this.i?this.i.Fh(a):function(){}}; g.k.nt=function(){this.i&&this.i.nt()};g.w(PW,g.I);g.k=PW.prototype;g.k.Kd=function(a){this.Zk();var b=this.i;if(1b.i.length)b.i=b.i.concat(a),b.i.sort(b.u);else{a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.i.length||0a&&this.C.start()))}; g.k.JC=function(a){var b=[];if(!a.length)return b;for(var c=0;ca&&(a=(a-this.B)/this.ma(),this.C.start(a)))}}; g.k.bK=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.K();g.U(a,32)&&this.V.start();for(var b=g.U(this.K(),2)?0x8000000000000:1E3*this.ea(),c=g.U(a,2),d=[],e=[],f=g.r(this.u),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.MC(e));f=e=null;c?(a=TEa(this.i,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=UEa(this.i)):a=this.B<=b&&iK(a)?SEa(this.i,this.B,b):TEa(this.i,b); d=d.concat(this.JC(a));e&&(d=d.concat(this.MC(e)));f&&(d=d.concat(this.JC(f)));this.B=b;XEa(this,d)}}; g.k.ya=function(){this.u=[];this.i.i=[];g.I.prototype.ya.call(this)}; g.CS.Qy(PW,{Kd:"crmacr",JC:"crmncr",MC:"crmxcr",bK:"crmis",Yf:"crmrcr"});g.w(TW,g.R);TW.prototype.Ul=function(){return this.K}; TW.prototype.hj=function(){return Math.max(this.N()-cFa(this,!0),this.videoData.getMinSeekableTime())}; TW.prototype.oa=function(){};g.w(YW,g.I);YW.prototype.Jc=function(){g.Nq(this.B)}; YW.prototype.D=function(){var a=this,b=this.Da.dd(),c=this.Da.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.i,f=g.U(c,8)&&g.U(c,16),h=this.Da.Fp().isBackground()||c.isSuspended();ZW(this,this.Ba,f&&!h,e,"qoe.slowseek",function(){},"timeout"); f=f&&isFinite(this.i)&&0d+5;q=p&&m&&q;ZW(this,this.K,q&&!h,p&&!m,"qoe.longrebuffer",n,"jiggle_cmt");ZW(this,this.N,q&&!h,p&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(f){var u=f.getCurrentTime();n=b.Dp();n=xla(n,u);n=!f.C.i&&d===n;ZW(this,this.Ta,p&&m&&n&&!h,p&&!m&&!n,"qoe.longrebuffer",function(){b.seekTo(u)},"seek_to_loader")}ZW(this,this.V,p&&m&&!h,p&&!m,"qoe.longrebuffer",function(){}, "timeout"); n=c.isSuspended();n=g.ib(this.Da.Fj,"ad")&&!n;ZW(this,this.J,n,!n,"qoe.start15s",function(){a.Da.Gd("ad")},"ads_preroll_timeout"); n=this.Da.getVideoData();q=.5>d-this.C;t=n.isAd()&&p&&!m&&q;p=function(){var x=a.Da,y=x.Bx.Ic();(!y||!x.videoData.isAd()||y.getVideoData().Cc!==x.getVideoData().Cc)&&x.videoData.Md||x.Ff("ad.rebuftimeout","RETRYABLE_ERROR","skipslad.vid."+x.videoData.videoId)}; ZW(this,this.Ma,t,!t,"ad.rebuftimeout",p,"skip_slow_ad");m=n.isAd()&&m&&PD(b.Qf(),d+5)&&q;ZW(this,this.La,m,!m,"ad.rebuftimeout",p,"skip_slow_ad_buf");ZW(this,this.Qa,g.hK(c)&&g.U(c,64)&&!h,e,"qoe.start15s",function(){},"timeout"); ZW(this,this.ea,!!f&&!f.mediaSource&&g.hK(c),e,"qoe.start15s",l,"newElemMse");this.C=d;this.B.start()}}; YW.prototype.Od=function(a,b,c){b=this.Jb(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.Da.Od(new g.UD(a,!1,b));this.u[a]=!0}; YW.prototype.Jb=function(a){a=Object.assign(this.Da.Jb(!0),a.Jb());this.i&&(a.stt=this.i.toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a}; WW.prototype.reset=function(){this.i=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1}; WW.prototype.Jb=function(){var a={},b=(0,g.Q)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.triggerTimestamp&&(a.wtd=(b-this.triggerTimestamp).toFixed());this.i&&(a.wssd=(b-this.i).toFixed());return a};g.w(aX,g.I);g.k=aX.prototype;g.k.setMediaElement=function(a){g.jy(this.Ma);(this.ra=a)?(tFa(this),$W(this)):cX(this)}; g.k.Jc=function(a){this.ea.Jc(a);this.U("html5_exponential_memory_for_sticky")&&(a.state.xc()?g.Nq(this.ma):this.ma.stop());var b;if(b=this.ra)b=8===a.Rn.state&&iK(a.state)&&g.jK(a.state)&&this.policy.B;if(b){a=this.ra.getCurrentTime();b=this.ra.Qf();var c=this.U("manifestless_post_live_ufph")||this.U("manifestless_post_live")?OD(b,Math.max(a-3.5,0)):OD(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.Ta-c)||(this.Da.Ca("seekover","b."+ND(b, "_")+";cmt."+a),this.Ta=c,this.seekTo(c,{Ip:!0,Pd:"playbacktimeline_postLiveDisc"})))}}; g.k.getCurrentTime=function(){return!isNaN(this.i)&&isFinite(this.i)?this.i:this.ra&&qFa(this)?this.ra.getCurrentTime()+this.timestampOffset:this.B||0}; g.k.Dh=function(){return this.getCurrentTime()-this.Qc()}; g.k.hj=function(){return this.u?this.u.hj():Infinity}; g.k.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return VW(this.u,a)}; g.k.Ul=function(){return!!this.u&&this.u.Ul()}; g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.lN?!1:c.lN;var d=void 0===c.mN?0:c.mN,e=void 0===c.Ip?!1:c.Ip,f=void 0===c.FF?0:c.FF,h=void 0===c.Pd?"":c.Pd;if(void 0===c.Yo?0:c.Yo)a+=this.Qc();c=a;var l=!isFinite(c)||(this.u?VW(this.u,c):c>=this.cd())||!g.hH(this.videoData);l||this.Da.Ca("seeknotallowed",c+";"+this.cd());if(!l)return this.C&&(this.C=null,fX(this)),fh(this.getCurrentTime());this.oa();if(.005>Math.abs(a-this.i)&&this.N)return this.oa(),this.D;h&&(c=a,(g.IG(this.videoData)|| this.U("html5_log_seek_reasons"))&&this.Da.Ca("seekreason","reason."+h+";tgt."+c));this.N&&cX(this);this.D||(this.D=new AS);a&&!isFinite(a)&&bX(this,!1);h=a;(eX(this)&&!(this.ra&&0e.videoData.endSeconds&& isFinite(a)&&(e.removeCueRange(e.vk),e.vk=null);a>31)}this.i.qK&&SQ(a,16,this.i.qK);this.i.viewportHeight&&this.i.viewportWidth&&(SQ(a,18,this.i.viewportWidth),SQ(a,19,this.i.viewportHeight));this.i.QM&&SQ(a,21,this.i.QM);this.i.gI&&SQ(a,23,this.i.gI);void 0!==this.i.visibilityState&&SQ(a,34,this.i.visibilityState);void 0!==this.i.YM&&SQ(a,39,this.i.YM)};g.w(uX,pX);uX.prototype.u=function(a){TQ(a,2,this.i);TQ(a,5,this.encryptedClientKey);TQ(a,6,this.iv);TQ(a,7,this.hmac);SQ(a,10,this.serializeResponseAsJson?1:0)};g.w(vX,pX);vX.prototype.u=function(a){Twa(a);this.i.u(a);Uwa(a);TQ(a,3,qX(this.B));this.onesieUstreamerConfig&&TQ(a,4,this.onesieUstreamerConfig)};wX.prototype.feed=function(a){hD(this.i,a);OFa(this)}; wX.prototype.dispose=function(){this.i=new gD};var l3={init:"0-1",index:"2-3",clen:"",url:"",sp:"",s:"",lmt:""},VFa=[Object.assign({itag:"137",bitrate:"4000000",size:"1920x1080",fps:"30",type:'video/mp4; codecs="avc1.4d401e"'},l3),Object.assign({itag:"248",bitrate:"2000000",fps:"30",size:"1920x1080",type:'video/webm; codecs="vp9"'},l3),Object.assign({itag:"399",bitrate:"1000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="av01.0.08M.08"'},l3),Object.assign({itag:"298",bitrate:"3500000",size:"1280x720",fps:"60",type:'video/mp4; codecs="avc1.64001e"'}, l3),Object.assign({itag:"299",bitrate:"5000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="avc1.64001e"'},l3),Object.assign({itag:"302",bitrate:"2500000",fps:"60",size:"1280x720",type:'video/webm; codecs="vp9"'},l3),Object.assign({itag:"303",bitrate:"3000000",fps:"60",size:"1920x1080",type:'video/webm; codecs="vp9"'},l3),Object.assign({itag:"140",type:'audio/mp4; codecs="mp4a.40.2"'},l3),Object.assign({itag:"251",audio_sample_rate:"48000",type:'audio/webm; codecs="opus"'},l3)],m3=["136","135", "134","133","160"],n3=["247","244","243","242"],o3={},TFa=(o3["137"]=m3,o3["248"]=n3,o3["399"]=["398","397","396","395","394"],o3["298"]=m3,o3["302"]=n3,o3["299"]=["298","137"].concat(m3),o3["303"]=["302","248"].concat(n3),o3["140"]=[],o3["251"]=["250"],o3),p3={},PFa=(p3["160"]=0,p3["133"]=22639,p3["134"]=45778,p3["135"]=73749,p3["136"]=153645,p3["137"]=332697,p3["278"]=0,p3["242"]=22702,p3["243"]=42954,p3["244"]=73575,p3["247"]=139201,p3["248"]=259369,p3["298"]=260272,p3["299"]=589187,p3["302"]= 295858,p3["303"]=528496,p3["394"]=0,p3["395"]=18457,p3["396"]=37231,p3["397"]=65872,p3["398"]=133087,p3["399"]=236318,p3),q3={},QFa=(q3["133"]=240,q3["134"]=360,q3["135"]=480,q3["136"]=720,q3["137"]=1080,q3["242"]=240,q3["243"]=360,q3["244"]=480,q3["247"]=720,q3["248"]=1080,q3["298"]=720,q3["299"]=1080,q3["302"]=720,q3["303"]=1080,q3["395"]=240,q3["396"]=360,q3["397"]=480,q3["398"]=720,q3["399"]=1080,q3),RFa=["1","9","h"];g.w(xX,g.I);g.k=xX.prototype;g.k.Te=function(a){this.Da.Te(a)}; g.k.qE=function(){this.Te("orpr");this.LJ=!0}; g.k.Gz=function(a,b){var c;null===(c=this.Ge)||void 0===c?void 0:(c.Ke.get(a).yk=b,c.oa());oX(this)}; g.k.Ca=function(a,b){this.Da.Ca(a,b)}; g.k.fetch=function(){return g.H(this,function b(){var c=this,d,e,f,h,l,m,n,p,q,t;return g.B(b,function(u){if(1==u.i){c.oa();c.Iz.start();c.Te("ogpd");var x=c.playerRequest,y=c.Y,A=c.videoData,E=y.Sg;E="https://youtubei.googleapis.com/youtubei/"+E.innertubeApiVersion+"/player?key="+E.innertubeApiKey;var G=[new rX({name:"Content-Type",value:"application/json"})],F=A.gf();F&&G.push(new rX({name:"Authorization",value:"Bearer "+F}));G.push(new rX({name:"User-Agent",value:g.ad}));(A=A.visitorData||g.P("VISITOR_DATA", void 0))&&G.push(new rX({name:"X-Goog-Visitor-Id",value:A}));(y=g.tE(y.experiments,"debug_sherlog_username"))&&G.push(new rX({name:"X-Youtube-Sherlog-Username",value:y}));x=JSON.stringify(x);e=new sX({url:E,httpHeaders:G,postBody:x});try{var K=c.Y;var V=c.Da.getPlayerSize();var L=c.Da.getVisibilityState(),da=c.MI.onesieUstreamerConfig,ta=c.EE;var lb=ta.encrypt(qX(e));var Pb=ta.i.encryptedClientKey,pb=ta.iv,ac=ta.iv,Qb=new iR(ta.i.u);Qb.update(lb);Qb.update(ac);var Pe=dxa(Qb);Qb.update(Qb.D);Qb.update(Pe); var Qe=dxa(Qb);Qb.reset();var bc=new uX(lb,Pb,pb,Qe);ta={};var Mi=pE(0);if(Mi){ta.qK=Mi;ta.lastManualDirection=fma();var Ni=Vz()||0;0=a.start);return a}; g.k.Ul=function(){return this.Kc.Ul()}; g.k.xc=function(){return this.playerState.xc()}; g.k.getPlayerState=function(){return this.playerState}; g.k.getPlayerType=function(){return this.playerType}; g.k.getPreferredQuality=function(){if(this.ze){var a=this.ze;a=a.videoData.Lo.compose(a.videoData.nK);a=tB(a)}else a="auto";return a}; g.k.vv=ba(9);g.k.isGapless=function(){return!!this.ra&&this.ra.isView()}; g.k.setMediaElement=function(a){this.oa();if(this.ra&&a.Je()===this.ra.Je()&&(a.isView()||this.ra.isView())){if(a.isView()||!this.ra.isView())g.jy(this.ut),this.ra=a,zGa(this),this.Kc.setMediaElement(this.ra)}else{this.ra&&this.Bg();if(!this.playerState.isError()){var b=eK(this.playerState,512);g.U(b,8)&&!g.U(b,2)&&(b=dK(b,1));a.isView()&&(b=eK(b,64));this.Sb(b)}this.ra=a;this.ra.setLoop(this.loop);this.ra.setPlaybackRate(this.playbackRate);zGa(this);this.Kc.setMediaElement(this.ra)}}; g.k.Bg=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.oa();if(this.ra){var c=this.getCurrentTime();0this.ra.getCurrentTime()&&this.Ya)return;break;case "resize":KGa(this);this.videoData.u&&"auto"===this.videoData.u.video.quality&&this.Z("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.eI&&g.U(this.playerState,8)&&!g.U(this.playerState,1024)&&0===this.getCurrentTime()&&g.nj){IX(this,"safari_autoplay_disabled");return}}if(this.ra&&this.ra.yf()===b){this.Z("videoelementevent",a);b=this.playerState;if(!g.U(b,128)){c=this.yu; e=this.ra;var f=this.Y.experiments;d=b.state;e=e?e:a.target;var h=e.getCurrentTime();if(!g.U(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.Ik()||1Math.abs(h-e.getDuration());h="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.U(b,4)&&!QW(c,h);if("pause"===a.type&&e.Ik()||l&&h)0a-this.Xy))this.Xy=a,b!==this.hf()&&(a=this.visibility,a.i!==b&&(a.i=b,a.ye()),this.Ca("airplay","rbld_"+b),oW(this)),this.Z("airplayactivechange")}; g.k.Bv=function(a){if(this.Ya){var b=this.Ya,c=b.B,d=b.currentTime;c.Ca("sdai","adfetchdone_"+a);a&&!isNaN(c.C)&&$Aa(c,d,c.C,c.B);c.i=4;g.Nq(b.V)}}; g.k.Ob=function(a){var b=this;a=void 0===a?!1:a;if(this.ra&&this.videoData){lFa(this.Kc,this.xc());var c=this.getCurrentTime();this.Ya&&(g.U(this.playerState,4)&&g.hH(this.videoData)||RCa(this.Ya,c));5Math.abs(l-f)?(b.Ca("setended","ct."+f+";bh."+h+";dur."+l+";live."+ +m),m&&b.U("html5_set_ended_in_pfx_live_cfl")||(b.ra.Ap()?(b.oa(),b.seekTo(0,{Pd:"videoplayer_loop"})):KS(b))):(g.jK(b.playerState)||VX(b,"progress_fix"),b.Sb(dK(b.playerState,1)))):(l&&!m&&!n&&0m-1&&b.Ca("misspg","t:"+f.toFixed(2)+";d:"+m.toFixed(2)+";r:"+l.toFixed(2)+";bh:"+h.toFixed(2))),g.U(b.playerState,4)&&g.jK(b.playerState)&&5<$J(b.ra)&&b.Sb(eK(b.playerState,1)));b.Ob()}}; 0===this.ra.Dp().length?this.lq=d?Iu(e,1,100):g.ot(e,100):this.lq=d?Iu(e,1,500):g.ot(e,500)}this.videoData.Vt=c;!a&&this.xc()&&EGa(this);aEa(this.Vf,this.ze,this.dd(),this.isBackground())&&OV(this);bEa(this.Vf,this.videoData.u)&&(this.Vb.Od("qoe.restart","droprate."+this.Vf.K),this.Y.C.K=!1,oW(this));this.Z("progresssync",this,a)}}; g.k.fR=function(){this.Ff("ad.rebuftimeout","RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.k.ov=function(){return this.Vb.ov()}; g.k.TC=function(){return this.Ya?this.Ya.TC():RE(this.Y.schedule,!0)}; g.k.rQ=function(){g.jK(this.playerState)&&ZDa(this.Vf,this.ze)&&OV(this)}; g.k.Sb=function(a){if(!g.gK(this.playerState,a)){this.oa();var b=new g.lI(a,this.playerState);this.playerState=a;JGa(this);var c=!this.Rz.length;this.Rz.push(b);var d=this.ra&&this.ra.Lt();g.nI(b,1)&&!g.U(b.Rn,16)&&!d&&g.U(this.playerState,8)&&!g.U(this.playerState,64)&&this.Ya&&(d=this.Ya,d.oa(),d.Aa=!0,this.ra&&5<=$J(this.ra)&&((d=g.T(this.Y.experiments,"html5_non_network_rebuffer_duration_ms"))?this.VK.start(d):ZDa(this.Vf,this.ze)&&OV(this)));(d=g.T(this.Y.experiments,"html5_ad_timeout_ms"))&& this.videoData.isAd()&&g.U(a,1)&&(g.U(a,8)||g.U(a,16))?this.TB.start(d):this.TB.stop();(0>mI(b,8)||g.nI(b,1024))&&this.Up.stop();!g.nI(b,8)||this.videoData.ob||g.U(b.state,1024)||this.Up.start();g.U(b.state,8)&&0>mI(b,16)&&!g.U(b.state,32)&&!g.U(b.state,2)&&this.playVideo();g.U(b.state,2)&&iH(this.videoData)&&(this.Gj(this.getCurrentTime()),this.Ob(!0));g.nI(b,2)&&this.fF(!0);g.nI(b,128)&&this.nm();this.videoData.i&&this.videoData.isLivePlayback&&!this.rN&&(0>mI(b,8)?(a=this.videoData.i,a.C&&a.C.stop()): g.nI(b,8)&&this.videoData.i.resume());this.Kc.Jc(b);this.Vb.Jc(b);if(c&&!this.isDisposed())try{for(var e=g.r(this.Rz),f=e.next();!f.done;f=e.next()){var h=f.value;this.Bh.Jc(h);this.Z("statechange",h)}}finally{this.Rz.length=0}}}; g.k.dw=function(){this.videoData.isLivePlayback||this.Z("connectionissue")}; g.k.AE=function(){this.Qb.tick("qoes")}; g.k.Bz=function(a,b,c,d){a:{var e=this.wk;d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"===a&&this.Ad&&1e.D)a="drm.sessionlimitexhausted",b=!1;else if(e.videoData.U("html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"===a&&2>e.J&&(e.J++,UX(e.Da),1=e.u.values.length){var f="ns;";e.V||(f+="nr;");e=f+="ql."+e.B.length}else e=pDa(e.u.values[0]);d.drmp=e}Object.assign(c,(null===(a=this.Ya)||void 0===a?void 0:a.Jb())||{});Object.assign(c,(null===(b=this.ra)||void 0===b?void 0:b.Jb())||{})}this.Vb.Od("qoe.start15s",g.VD(c));this.Z("loadsofttimeout")}}; g.k.Gj=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,FX(this))}; g.k.fF=function(a){var b=this;a=void 0===a?!1:a;if(!this.Cx){fB("att_s","player_att")||gB("att_s",void 0,"player_att");var c=new g.Ota(this.videoData);if("c1a"in c.i&&!g.zM.Vd()&&(gB("att_wb",void 0,"player_att"),2===this.bC&&.01>Math.random()&&g.zz(Error("Botguard not available after 2 attempts")),!a&&5>this.bC)){g.Nq(this.cC);this.bC++;return}if("c1b"in c.i){var d=NEa(this.Vb);d&&Rta(c).then(function(e){e&&!b.Cx&&d?(gB("att_f",void 0,"player_att"),d(e),b.Cx=!0):gB("att_e",void 0,"player_att")}, function(){gB("att_e",void 0,"player_att")})}else(a=g.Pta(c))?(gB("att_f",void 0,"player_att"),MEa(this.Vb,a),this.Cx=!0):gB("att_e",void 0,"player_att")}}; g.k.cd=function(a){return this.Kc.cd(void 0===a?!1:a)}; g.k.getMinSeekableTime=function(){return this.Kc.getMinSeekableTime()}; g.k.Qc=function(){return this.Kc?this.Kc.Qc():0}; g.k.getStreamTimeOffset=function(){return this.Kc?this.Kc.getStreamTimeOffset():0}; g.k.setPlaybackRate=function(a){var b=this.videoData.C&&this.videoData.C.videoInfos&&32=+c),b.dis=this.ra.getStyle("display"));(a=a?(0,g.AW)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Wa.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)}; g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.W().experiments.experimentIds.join(", ")},b=this.wb().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a}; g.k.getPresentingPlayerType=function(a){var b;return 1===this.K?1:$X(this)?3:a&&(null===(b=this.B)||void 0===b?0:b.isAdPlaying(this.getCurrentTime()))?2:g.WM(this).getPlayerType()}; g.k.wb=function(a){return 3===this.getPresentingPlayerType()?QM(this.C).pd:g.WM(this,a).getPlayerState()}; g.k.getAppState=function(){return this.K}; g.k.DE=function(a){var b=this;switch(a.type){case "loadedmetadata":fB("fvb",this.Qb.timerName)||this.Qb.tick("fvb");gB("fvb",void 0,"video_to_ad");this.rb.start();g.Db(this.Aa,function(c){nHa(b,c.id,c.iX,c.hX,!1)}); this.Aa=[];break;case "loadstart":fB("gv",this.Qb.timerName)||this.Qb.tick("gv");gB("gv",void 0,"video_to_ad");break;case "progress":case "timeupdate":!fB("l2s",this.Qb.timerName)&&2<=RD(a.target.Qf())&&this.Qb.tick("l2s");break;case "playing":g.KF&&this.rb.start(),gHa(this)&&(this.u.Ca("hidden","1",!0),this.getVideoData().Ab||(this.U("html5_new_elem_on_hidden")?(this.getVideoData().Ab=1,this.uL(null),this.u.playVideo()):cY(this,"hidden",!0)))}}; g.k.ST=function(a,b){this.Wa.Oa("onLoadProgress",b)}; g.k.nV=function(){this.Wa.Z("playbackstalledatstart")}; g.k.SO=function(a,b){a=hY(this,a);b=qY(this,a.getCurrentTime(),a);this.Wa.Oa("onVideoProgress",b)}; g.k.AT=function(){this.Wa.Oa("onDompaused")}; g.k.bT=function(){this.Wa.Oa("onAutoplayBlocked")}; g.k.EU=function(){this.Wa.Z("progresssync")}; g.k.YS=function(a){if(1===this.getPresentingPlayerType()){g.nI(a,1)&&!g.U(a.state,64)&&WX(this).isLivePlayback&&this.i.isAtLiveHead()&&1=1E3*(this.getDuration()-1)){eHa(this);return}$Ga(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.Wa.Oa("onError",$Ma[b.errorCode]|| 5);this.Wa.Oa("onDetailedError",{errorCode:b.errorCode,errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.KC});6048E5<(0,g.Q)()-this.Y.ob&&this.Wa.Oa("onReloadRequired")}b={};if(a.state.xc()&&!g.jK(a.state)&&!fB("pbresume","ad_to_video")&&fB("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);eB(b,"ad_to_video");dB("pbresume",void 0,"ad_to_video")}this.Wa.Z("applicationplayerstatechange",a)}}; g.k.QL=function(a){3!==this.getPresentingPlayerType()&&this.Wa.Z("presentingplayerstatechange",a)}; g.k.Nh=function(a){eY(this,kK(a.state));g.U(a.state,1024)&&this.Wa.isMutedByMutedAutoplay()&&(IM(this,{muted:!1,volume:this.dg.volume},!1),oY(this,!1))}; g.k.vU=function(a){a.state.xc()&&!g.jK(a.state)&&(Dua(this.C),g.jy(this.Pb))}; g.k.US=function(a,b,c){"newdata"===a&&XX(this);b=c.clipConfig;"dataloaded"===a&&b&&null!=b.startTimeMs&&null!=b.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId})}; g.k.MO=function(){this.Wa.Oa("onPlaybackAudioChange",this.Wa.getAudioTrack().yc.name)}; g.k.RO=function(a){var b=this.u.getVideoData();a===b&&this.Wa.Oa("onPlaybackQualityChange",a.u.video.quality)}; g.k.qb=function(a,b,c){this.oa("on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId);b===this.i&&(this.Y.Lf=c.oauthToken);this.getVideoData().enableServerStitchedDai&&!this.B?this.B=new g.NS(this.Wa,this.Y,this.i):!this.getVideoData().enableServerStitchedDai&&this.B&&(this.B=null);if("newdata"===a)this.oa(),qN(this.C,2),this.Wa.Z("videoplayerreset",b);else{if(!this.ra)return;if("dataloaded"===a)if(this.u===this.i)if(sF(c.B,c.rG),this.oa(),this.i.getPlayerState().isError())this.oa(); else{var d=$X(this);WX(this).isLoaded();d&&this.Sk(6);bHa(this);d||(d=rN(this.C))&&!d.created&&oN(this.C)&&d.create()}else bHa(this);if(1===b.getPlayerType()&&(this.Y.ma&&uHa(this),this.getVideoData().isLivePlayback&&!this.Y.ul&&this.Ie("html5.unsupportedlive","DEVICE_FALLBACK"),c.isLoaded())){if(c.eh||c.dG||c.Hq||c.N.focEnabled||c.N.rmktEnabled||this.getVideoData().rl)d=this.getVideoData(),tY(this,"part2viewed",1,0x8000000000000),tY(this,"engagedview",Math.max(1,1E3*d.Fb),0x8000000000000),d.isLivePlayback|| (d=1E3*d.lengthSeconds,tY(this,"videoplaytime25",.25*d,d),tY(this,"videoplaytime50",.5*d,d),tY(this,"videoplaytime75",.75*d,d),tY(this,"videoplaytime100",d,0x8000000000000),tY(this,"conversionview",d,0x8000000000000));if(c.hasProgressBarBoundaries()){var e;d=Number(null===(e=this.getVideoData().progressBarEndPosition)||void 0===e?void 0:e.utcTimeMillis)/1E3;!isNaN(d)&&(e=this.getIngestionTime())&&(e-=this.getCurrentTime(),e=1E3*(d-e),d=this.eb.progressEndBoundary,(null===d||void 0===d?void 0:d.start)!== e&&(d&&this.bA([d]),e=new g.wA(e,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.i.addCueRange(e),this.eb.progressEndBoundary=e))}}this.Wa.Z("videodatachange",a,c,b.getPlayerType())}this.Wa.Oa("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.iA();if(b=c.Gw){if(a=this.Jn,c=c.clientPlaybackNonce,a.clientPlaybackNonce!==c){a.clientPlaybackNonce=c;c=b;b=rK();var f=void 0===f?{}:f;Object.values(sMa).includes(c)||(g.zz(new g.hw("createClientScreen() called with a non-page VE", c)),c=83769);f.isHistoryNavigation||b.i.push({rootVe:c,key:f.key||""});b.D=[];b.K=[];f.QI?Uqa(b,c,f):Tqa(b,c,f);KAa(a)}}else KAa(this.Jn)}; g.k.ox=function(){iY(this,null);this.Wa.Oa("onPlaylistUpdate")}; g.k.ZK=function(a){var b=a.getId(),c=WX(this);"part2viewed"===b?(c.qH&&g.Wu(c.qH),c.dG&&zY(this,c.dG),c.Hq&&AY(this,c.Hq)):"conversionview"===b?this.i.nt():"engagedview"===b&&g.Wu(c.eh);if(c.sH){var d=a.getId();d=dt(c.sH,{label:d});g.Wu(d)}switch(b){case "videoplaytime25":c.kH&&zY(this,c.kH);c.XA&&AY(this,c.XA);c.wH&&g.Wu(c.wH);break;case "videoplaytime50":c.lH&&zY(this,c.lH);c.YA&&AY(this,c.YA);c.yH&&g.Wu(c.yH);break;case "videoplaytime75":c.pH&&zY(this,c.pH);c.ZA&&AY(this,c.ZA);c.FH&&g.Wu(c.FH); break;case "videoplaytime100":c.jH&&zY(this,c.jH),c.WA&&AY(this,c.WA),c.uH&&g.Wu(c.uH)}(b=this.getVideoData().rl)&&lHa(b,a.getId())&&lHa(b,a.getId()+"gaia");this.i.removeCueRange(a)}; g.k.DU=function(a){delete this.eb[a.getId()];this.i.removeCueRange(a);var b;a:{a=this.getVideoData();var c,d,e,f,h,l,m,n,p,q,t,u,x,y=(null===(h=null===(f=null===(e=null===(d=null===(c=a.watchNextResponse)||void 0===c?void 0:c.contents)||void 0===d?void 0:d.singleColumnWatchNextResults)||void 0===e?void 0:e.autoplay)||void 0===f?void 0:f.autoplay)||void 0===h?void 0:h.sets)||(null===(q=null===(p=null===(n=null===(m=null===(l=a.watchNextResponse)||void 0===l?void 0:l.contents)||void 0===m?void 0:m.twoColumnWatchNextResults)|| void 0===n?void 0:n.autoplay)||void 0===p?void 0:p.autoplay)||void 0===q?void 0:q.sets);if(y)for(c=g.r(y),d=c.next();!d.done;d=c.next())if(d=d.value,d=d.autoplayVideo||(null===(t=null===(b=d.autoplayVideoRenderer)||void 0===b?void 0:b.autoplayEndpointRenderer)||void 0===t?void 0:t.endpoint),(null===(u=null===d||void 0===d?void 0:d.watchEndpoint)||void 0===u?void 0:u.videoId)===a.videoId&&(null===(x=null===d||void 0===d?void 0:d.watchEndpoint)||void 0===x?0:x.continuePlayback)){b=d;break a}b=null}t= null===b||void 0===b?void 0:b.watchEndpoint;this.U("enable_linear_player_handling")&&t&&this.Wa.Oa("onPlayVideo",{sessionData:{autonav:"1",itct:null===b||void 0===b?void 0:b.clickTrackingParams},videoId:t.videoId,watchEndpoint:t})}; g.k.Sk=function(a){a!==this.K&&(this.oa(),2===a&&1===this.getPresentingPlayerType()&&(eY(this,-1),eY(this,5)),this.K=a,this.Wa.Z("appstatechange",a))}; g.k.Ie=function(a,b,c,d){this.i.Ff(a,b,c,d)}; g.k.Tk=ba(7);g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.WM(this,a);if(!c)return!1;a=gY(this,c);c=hY(this,c);return a!==c?a.isAtLiveHead(qY(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)}; g.k.xn=function(){var a=g.WM(this,void 0);return a?gY(this,a).xn():0}; g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.WM(this,d))2===this.K&&mY(this),this.Md(d)?this.B?this.B.seekTo(a,b,c):this.Hd.seekTo(a,b,c):d.seekTo(a,{lN:!b,mN:c,Pd:"application"})}; g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)}; g.k.QO=function(){this.Wa.Oa("SEEK_COMPLETE")}; g.k.dV=function(a,b){var c=a.getVideoData();if(1===this.K||2===this.K)c.startSeconds=b;2===this.K?g.U(a.getPlayerState(),512)||mY(this):this.Wa.Oa("SEEK_TO",b)}; g.k.NS=function(){this.Wa.Z("airplayactivechange");this.Wa.Oa("onAirPlayActiveChange",this.Wa.hf())}; g.k.OS=function(){this.Wa.Z("airplayavailabilitychange");this.Wa.Oa("onAirPlayAvailabilityChange",this.Wa.Jv())}; g.k.showAirplayPicker=function(){var a;null===(a=this.u)||void 0===a?void 0:a.zo()}; g.k.NO=function(){this.Wa.Z("beginseeking")}; g.k.OO=function(){this.Wa.Z("endseeking")}; g.k.getStoryboardFormat=function(a){return(a=g.WM(this,a))?gY(this,a).getVideoData().getStoryboardFormat():null}; g.k.Hh=function(a){return(a=g.WM(this,a))?gY(this,a).getVideoData().Hh():null}; g.k.Md=function(a){if(a=a||this.u){a=a.getVideoData();if(this.B)a=a===this.B.Da.getVideoData();else a:{var b=this.Hd;if(a===b.u.getVideoData()&&b.i.length)a=!0;else{b=g.r(b.i);for(var c=b.next();!c.done;c=b.next())if(a.Cc===c.value.Cc){a=!0;break a}a=!1}}if(a)return!0}return!1}; g.k.qr=function(a,b,c,d,e,f){var h;this.oa();this.Y.U("web_player_ssdai_add_to_timeline_logging_killswitch")||(null===(h=this.u)||void 0===h?void 0:h.Ca("sdai","app.attl."+(null!=this.B)));a=this.B?bAa(this.B,a,b,c,d,e,f):rAa(this.Hd,a,b,c,d,e);this.oa();return a}; g.k.Hv=function(a,b,c,d,e,f){var h;this.Y.U("web_player_ssdai_add_to_timeline_logging_killswitch")||(null===(h=this.u)||void 0===h?void 0:h.Ca("sdai","app.attlr."+(null!=this.B)));this.B&&(bAa(this.B,a,b,c,d,e,f),this.oa());return""}; g.k.Wn=function(a){var b;null===(b=this.B)||void 0===b?void 0:b.Wn(a)}; g.k.ip=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;this.B?this.Y.U("web_player_ssdai_prevent_clearing_timeline_killswitch")&&VS(this.B,a,b):MT(this.Hd,a,b)}; g.k.kt=function(a,b,c){if(this.B){var d=this.B,e=c;c=null;for(var f=g.r(d.u),h=f.next();!h.done;h=f.next())if(h=h.value,h.Cc===a){c=h;break}c?(d.oa(),void 0===e&&(e=c.ld),a=c,d.oa(),a.durationMs=b,a.ld=e,d.Y.U("web_player_ssdai_prevent_updating_ad_cuerange_killswitch")&&eAa(d,c)):d.Wd("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.Hd;e=null;f=g.r(d.i);for(h=f.next();!h.done;h=f.next())if(h=h.value,h.Cc===a){e=h;break}e?(d.oa(),void 0===c&&(c=e.ld),xAa(d,e,b,c)):d.Wd("e.InvalidTimelinePlaybackId timelinePlaybackId="+ a)}}; g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Md();a=new xG(this.Y,a);d&&(a.Cc=d);2===b&&this.i&&this.i.Js(a.clientPlaybackNonce,a.ac||"",a.breakType||0,a.Id);c=void 0===c?Infinity:c;this.oa();b=b||this.u.getPlayerType();var e;this.Y.U("html5_gapless_preloading")&&(e=pY(this,b,a,!0));e||(e=this.El(b,a));this.Wx(e,c)}; g.k.Wx=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.WM(this);e&&(gY(this,e).rN=!0);Sza(this.Ba,a,b,c).then(function(){d.Wa.Oa("onQueuedVideoLoaded")},function(){})}; g.k.gs=function(){return this.Ba.gs()}; g.k.clearQueue=function(){this.oa();this.Ba.clearQueue()}; g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f,h=!1,l=new xG(this.Y,a),m=null!==(f=l.tb)&&void 0!==f?f:"";this.Qb.timerName=m;if(!this.U("web_player_load_video_context_killswitch")&&e){for(;l.xi.length&&l.xi[0].isExpired();)l.xi.shift();h=l.xi.length-1;h=0Math.random()&&g.cw("autoplayTriggered",{intentional:this.hc});this.Fc=!1;this.Wa.Oa("onPlaybackStartExternal");this.Y.U("mweb_client_log_screen_associated");(function(){var c=g.Fy(a.Vc||(a.Fe()?3:0));if(c){var d={cpn:a.getVideoData().clientPlaybackNonce,csn:c};if(a.Y.U("web_playback_associated_ve")&& a.getVideoData().Xa){var e=g.zy(a.getVideoData().Xa);g.Hz(c,e,void 0);d.playbackVe=e.getAsJson()}a.Y.U("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(d.queueInfo=a.getVideoData().queueInfo);c={};a.U("web_playback_associated_log_ctt")&&a.getVideoData().gb&&(c.cttAuthInfo={token:a.getVideoData().gb,videoId:a.getVideoData().videoId});g.cw("playbackAssociated",d,c)}})(); bB("player_att");if(this.U("web_player_inline_botguard")){var b=this.getVideoData().botguardData;b&&(this.U("web_player_botguard_inline_skip_config_killswitch")&&(qs("BG_I",b.interpreterScript),qs("BG_IU",b.interpreterUrl),qs("BG_P",b.program)),g.EF(this.Y)?Ju(Mu(),function(){nY(a)}):nY(this))}this.iA()}; g.k.PO=function(){this.Wa.Z("internalAbandon");this.U("html5_ad_module_cleanup_killswitch")||rY(this)}; g.k.hL=function(a){a=a.i;!isNaN(a)&&0window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.ra.Su())}; g.k.RT=function(a){3!==this.getPresentingPlayerType()&&this.Wa.Z("liveviewshift",a)}; g.k.playVideo=function(a){this.oa();if(a=g.WM(this,a))2===this.K?mY(this):(null!=this.J&&this.J.zb&&this.J.start(),g.U(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())}; g.k.pauseVideo=function(a){(a=g.WM(this,a))&&a.pauseVideo()}; g.k.stopVideo=function(){this.oa();var a=this.i.getVideoData(),b=new xG(this.Y,{video_id:a.MB||a.videoId,oauth_token:a.oauthToken});b.V=g.$b(a.V);this.cancelPlayback(6);vY(this,b,1);null!=this.J&&this.J.stop()}; g.k.cancelPlayback=function(a,b){this.oa();Vv(this.ma);this.ma=0;var c=g.WM(this,b);c?(this.Y.U("html5_high_res_logging")&&c.Ca("canclpb","r."+a),1===this.K||2===this.K?this.oa():(c===this.u&&(this.oa(),qN(this.C,a)),1===b&&(this.Y.U("html5_stop_video_in_cancel_playback")&&c.stopVideo(),rY(this)),c.nm(),bY(this,"cuerangesremoved",c.vn()),c.Bh.reset(),this.Ba&&c.isGapless()&&(c.Bg(!0),c.setMediaElement(this.ra)))):this.oa()}; g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.WM(this,b))&&this.Y.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()}; g.k.Fh=function(a){var b=g.WM(this,void 0);return b&&this.Y.enabledEngageTypes.has(a.toString())?b.Fh(a):null}; g.k.updatePlaylist=function(){CF(this.Y)?jY(this):g.fF(this.Y)&&kY(this);this.Wa.Oa("onPlaylistUpdate")}; g.k.setSizeStyle=function(a,b){this.md=a;this.Db=b;this.Wa.Z("sizestylechange",a,b);this.template.resize()}; g.k.isWidescreen=function(){return this.Db}; g.k.Fe=function(){return this.visibility.Fe()}; g.k.isInline=function(){return this.visibility.isInline()}; g.k.Zr=function(){return this.visibility.Zr()}; g.k.Xr=function(){return this.visibility.Xr()}; g.k.GD=function(){return this.md}; g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return QM(this.C).getAdState();if(!this.Md()){var a=rN(this.ub());if(a)return a.getAdState()}return-1}; g.k.RU=function(a){var b=this.template.getVideoContentRect();Pl(this.uc,b)||(this.uc=b,this.u&&JX(this.u),this.i&&this.i!==this.u&&JX(this.i),1===this.visibility.fullscreen&&this.Ma&&sHa(this,!0));this.Fb&&g.hg(this.Fb,a)||(this.Wa.Z("appresize",a),this.Fb=a)}; g.k.kf=function(){return this.Wa.kf()}; g.k.iV=function(){2===this.getPresentingPlayerType()&&this.Hd.isManifestless()&&!this.U("web_player_manifestless_ad_signature_expiration_killswitch")?wAa(this.Hd):(this.B&&VS(this.B),cY(this,"signature",void 0,!0))}; g.k.uL=function(){this.Bg();aY(this)}; g.k.QU=function(a){ES(a,this.ra.Bp())}; g.k.kU=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Wa.Oa("onPlayerRequestAuthFailed")}; g.k.dw=function(){this.Wa.Oa("CONNECTION_ISSUE")}; g.k.gw=function(a){this.Wa.Z("heartbeatparams",a)}; g.k.gA=function(a){this.Wa.Oa("onAutonavChangeRequest",1!==a)}; g.k.dd=function(){return this.ra}; g.k.setBlackout=function(a){this.Y.Fb=a;this.u&&(this.u.Eq(),this.Y.ma&&uHa(this))}; g.k.setAccountLinkState=function(a){var b=g.WM(this);b&&(b.getVideoData().rH=a,b.Eq())}; g.k.updateAccountLinkingConfig=function(a){var b=g.WM(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Wa.Z("videodatachange","dataupdated",c,b.getPlayerType())}}; g.k.mU=function(){var a=g.WM(this);if(a){var b=!this.Wa.Mv();(a.KJ=b)||a.Up.stop();if(a.videoData.i)if(b)a.videoData.i.resume();else{var c=a.videoData.i;c.C&&c.C.stop()}a.Y.U("html5_suspend_loader")&&a.Ya&&(b?a.Ya.resume():QX(a,!0));a.Y.U("html5_fludd_suspend")&&(g.U(a.playerState,2)||b?g.U(a.playerState,512)&&b&&a.Sb(eK(a.playerState,512)):a.Sb(dK(a.playerState,512)));a=a.Vb;a.qoe&&(a=a.qoe,g.uW(a,g.JS(a.i),"stream",[b?"A":"I"]))}}; g.k.UT=function(){this.Wa.Oa("onLoadedMetadata")}; g.k.CT=function(){this.Wa.Oa("onDrmOutputRestricted")}; g.k.aC=function(){this.U("html5_skip_empty_load")&&(UMa=!0);XMa=this.U("html5_ios_force_seek_to_zero_on_stop");VMa=this.U("html5_ios7_force_play_on_stall");WMa=this.U("html5_ios4_seek_above_zero");this.U("html5_mediastream_applies_timestamp_offset")&&(SU=!0);this.U("html5_dont_override_default_sample_desc_index")&&(vka=!0);if(this.U("html5_androidtv_quic")){var a=window;"h5vcc"in a&&"settings"in a.h5vcc&&a.h5vcc.settings.set("QUIC",1)}Error.stackTraceLimit=25;var b=g.T(this.Y.experiments,"html5_idle_rate_limit_ms"); b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}}); this.U("html5_enable_cobalt_xhr")&&(Tja=!0)}; g.k.SD=function(){this.hc=!0}; g.k.ya=function(){this.C.dispose();this.Hd.dispose();this.B&&this.B.dispose();this.i.dispose();this.Bg();g.vf(Mb(this.Xa),this.playlist);Vv(this.ma);this.ma=0;g.I.prototype.ya.call(this)}; g.k.oa=function(){}; g.k.U=function(a){return this.Y.U(a)}; g.k.oA=function(){return this.Ta}; g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)}; g.k.setScreenLayer=function(a){this.Vc=a}; g.k.seekToChapterWithAnimation=function(a){var b,c,d=null===(b=JM(this.ub()))||void 0===b?void 0:b.Yu(),e=null===(c=this.getVideoData())||void 0===c?void 0:c.ll;if(this.U("web_player_seek_chapters_by_shortcut")&&e&&d instanceof g.TN&&aq.start&&dE;E++)if(y= (y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(u.charAt(E)),4==E%5){for(var G="",F=0;6>F;F++)G="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+G,y>>=5;A+=G}u=A.substr(0,4)+" "+A.substr(4,4)+" "+A.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",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=UT(h,"bandwidth");l.network_activity_samples=UT(h,"networkactivity");l.live_latency_samples=UT(h,"livelatency");l.buffer_health_samples=UT(h,"bufferhealth");c.U("woffle_orchestration")&& (b=g.wH(c),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";JG(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20210915_1_RC2",l.release_style=""):l.release_style="display:none";return l}; g.k.getVideoUrl=function(a,b,c,d,e){return this.D&&this.D.postId?(a=this.Y.getVideoUrl(a),a=Gi(a,"v"),a.replace("/watch","/clip/"+this.D.postId)):this.Y.getVideoUrl(a,b,c,d,e)}; var r3={};g.Fa("yt.player.Application.create",g.ZX.create,void 0);g.Fa("yt.player.Application.createAlternate",g.ZX.create,void 0);Ky(Ly(),{cm:[{Tv:/Unable to load player module/,weight:5},{Tv:/Failed to fetch/,weight:500},{Tv:/XHR API fetch failed/,weight:10},{Tv:/JSON parsing failed after XHR fetch/,weight:10},{Tv:/Retrying OnePlatform request/,weight:10}]});var sNa=g.Ga("ytcsi.tick");sNa&&sNa("pe");var tNa={B7:"replaceUrlMacros",g2:"isExternalShelfAllowedFor",m6:"onAboutThisAdPopupClosed"};BY.prototype.zk=function(){return"adLifecycleCommand"}; BY.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.Xg(function(){b.controller.Ym()}); break;case "END_LINEAR_AD_PLACEMENT":g.Xg(function(){b.controller.rk()}); break;case "FILL_ABOVE_FEED_SLOT":g.Xg(function(){a.elementId&&b.controller.Zx(a.elementId)}); break;case "CLEAR_ABOVE_FEED_SLOT":g.Xg(function(){b.controller.Lx()})}}; BY.prototype.Ql=function(a){this.handle(a)};CY.prototype.zk=function(){return"clearCueRangesCommand"}; CY.prototype.handle=function(){var a=this.xC();g.Xg(function(){a.Yf(Array.from(a.Uo))})}; CY.prototype.Ql=function(a){this.handle(a)};DY.prototype.zk=function(){return"muteAdEndpoint"}; DY.prototype.handle=function(a){xHa(this,a)}; DY.prototype.Ql=function(a,b){xHa(this,a,b)};EY.prototype.zk=function(){return"openPopupAction"}; EY.prototype.handle=function(){}; EY.prototype.Ql=function(a){this.handle(a)};FY.prototype.zk=function(){return"pingingEndpoint"}; FY.prototype.handle=function(){}; FY.prototype.Ql=function(a){this.handle(a)};GY.prototype.zk=function(){return"urlEndpoint"}; GY.prototype.handle=function(a,b){b=g.Hq(a.url,b);var c,d,e;if((null===(c=a.browserConversionApiData)||void 0===c?0:c.impressiondata)&&(null===(d=a.browserConversionApiData)||void 0===d?0:d.conversiondestination)){if(null===(e=a.browserConversionApiData)||void 0===e?0:e.originTrialToken)c=document.createElement("meta"),c.setAttribute("http-equiv","origin-trial"),c.setAttribute("content",a.browserConversionApiData.originTrialToken),document.head.appendChild(c);a={attributionSourceEventId:a.browserConversionApiData.impressiondata, attributionDestination:a.browserConversionApiData.conversiondestination,attributionReportTo:a.browserConversionApiData.reportingorigin,attributionExpiry:Number(a.browserConversionApiData.impressionexpiry)||void 0}}else a=void 0;g.JJ(b,void 0,void 0,a)}; GY.prototype.Ql=function(){S("Trying to handle UrlEndpoint with no macro in controlflow")};HY.prototype.zk=function(){return"adPingingEndpoint"}; HY.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Vo.send(a,b,c)}; HY.prototype.Ql=function(a,b){lJa(this.Va.get(),a,b,void 0)};IY.prototype.zk=function(){return"changeEngagementPanelVisibilityAction"}; IY.prototype.handle=function(a){this.I.Oa("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})}; IY.prototype.Ql=function(a){this.handle(a)};JY.prototype.zk=function(){return"loggingUrls"}; JY.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.Ph.send(d.baseUrl,b,c,d.headers)}; JY.prototype.Ql=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,lJa(this.Va.get(),c.baseUrl,b,c.headers)};g.w(zHa,g.I);var LHa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var UHa=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"]]);var DHa=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"]]),BHa=new Map([["normal",{Ms:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Us:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Ms:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Us:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}], ["muted",{Ms:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Us:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Ms:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Us:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Ms:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Us:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Ms:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Us:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}]]);g.w(SY,g.I);g.k=SY.prototype;g.k.fD=function(a,b){return this.i.fD(a,b)}; g.k.Di=function(a,b){QZ(this.dc,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.r(this.Ld),d=c.next();!d.done;d=c.next())d.value.Di(a,b)}; g.k.tf=function(a){if(WY(this.i,a)){NJ(this.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.i.tf(a);for(var b=g.r(this.Ld),c=b.next();!c.done;c=b.next())c.value.tf(a);HHa(this,a)}}; g.k.uf=function(a){if(WY(this.i,a)){NJ(this.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.i.uf(a);for(var b=g.r(this.Ld),c=b.next();!c.done;c=b.next())c.value.uf(a);WY(this.i,a)&&XY(this.i,a).D&&UY(this,a,!1)}}; g.k.Fz=function(a){NJ(this.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);WY(this.i,a)&&(this.i.Fz(a),UY(this,a,!1))}; g.k.Mc=function(a,b){if(WY(this.i,a)){YY(this.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.r(this.Ld),d=c.next();!d.done;d=c.next())d.value.Mc(a,b)}}; g.k.Tc=function(a,b,c){if(WY(this.i,a)){YY(this.dc,CHa(c),a,b);this.i.Tc(a,b);for(var d=g.r(this.Ld),e=d.next();!e.done;e=d.next())e.value.Tc(a,b,c);(c=kZ(this.i,a))&&b.layoutId===c.layoutId&&RHa(this,a,!1)}}; g.k.sf=function(a,b,c){S(c,a,b,void 0,c.Wo);UY(this,a,!0)}; g.k.ya=function(){var a=THa(this.i);a=g.r(a);for(var b=a.next();!b.done;b=a.next())UY(this,b.value,!1);g.I.prototype.ya.call(this)};SHa.prototype.isActive=function(){switch(this.i){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.w(ZY,Ta);g.w(hZ,Ta);g.w(nZ,g.I);g.k=nZ.prototype;g.k.fD=function(a,b){b=jZ(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.k.Oh=function(a){a=XY(this,a);"not_scheduled"!==a.i&&lZ(a.slot,a.i,"onSlotScheduled");a.i="scheduled"}; g.k.Uu=function(a){a=XY(this,a);a.C="fill_requested";a.K.Uu()}; g.k.tf=function(a){a=XY(this,a);"enter_requested"!==a.i&&lZ(a.slot,a.i,"onSlotEntered");a.i="entered"}; g.k.Fz=function(a){XY(this,a).C="fill_canceled"}; g.k.uf=function(a){a=XY(this,a);"exit_requested"!==a.i&&lZ(a.slot,a.i,"onSlotExited");a.i="scheduled"}; g.k.Tc=function(a,b){a=XY(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.i&&lZ(a.slot,a.i,"onLayoutExited"),a.i="entered")};g.w(rZ,g.I);rZ.prototype.B=function(){return this.u};g.w(sZ,g.I);sZ.prototype.get=function(){this.isDisposed()&&S("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.i});this.i||(this.i=this.u());return this.i};g.w(PZ,g.I);g.w(SZ,g.I);SZ.prototype.Ed=function(){}; SZ.prototype.rf=function(a){var b=this,c=this.i.get(a);c&&(this.i.delete(a),this.u.get().removeCueRange(a),gA(this.B.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.C.get();d=KZ(d.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign(Object.assign({},c),{slotId:d,Zb:c.Zb?cJa(c.slotId,d,c.Zb):void 0,Bc:dJa(c.slotId,d,c.Bc),Ac:dJa(c.slotId,d,c.Ac)})]},c.slotId))}; SZ.prototype.ih=function(){for(var a=g.r(this.i.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.u.get().removeCueRange(b);this.i.clear()}; SZ.prototype.yj=function(){};g.w(TZ,g.I);g.k=TZ.prototype;g.k.Oh=function(){}; g.k.Ej=function(){}; g.k.tf=function(){}; g.k.Dj=function(){}; g.k.uf=function(){}; g.k.Lk=function(){}; g.k.Mk=function(){}; g.k.Aj=function(a,b){this.i.has(a)||this.i.set(a,new Set);this.i.get(a).add(b)}; g.k.Bj=function(a,b){this.Mi.has(a)&&this.Mi.get(a)===b&&S("Unscheduled a Layout that is currently entered.",a,b);if(this.i.has(a)){var c=this.i.get(a);c.has(b)?(c.delete(b),0===c.size&&this.i.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.k.Mc=function(a,b){this.Mi.set(a,b)}; g.k.Tc=function(a){this.Mi.delete(a)}; g.k.Di=function(){};f_.prototype.clone=function(a){var b=this;return new f_(function(){return b.triggerId},a)};g_.prototype.clone=function(a){var b=this;return new g_(function(){return b.triggerId},a)};h_.prototype.clone=function(a){var b=this;return new h_(function(){return b.triggerId},a)};i_.prototype.clone=function(a){var b=this;return new i_(function(){return b.triggerId},a)};j_.prototype.clone=function(a){var b=this;return new j_(function(){return b.triggerId},a)};g.w(m_,g.I);m_.prototype.logEvent=function(a){QZ(this,a)};g.w(o_,g.I);g.k=o_.prototype;g.k.addListener=function(a){this.listeners.push(a)}; g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.k.ih=function(a,b,c,d,e,f,h){var l;if(""===a)S("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.I.W().experiments.Ga("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.i||c){this.i=a;this.Ja.get().ih(a,b,c,d,e,f,h);this.C.get().ih(a,b,c,d,e,f,h);null===(l=this.u)||void 0===l?void 0:l.get().ih(a,b,c,d,e,f,h);this.B.ih(a,b,c,d,e,f,h);for(var m=g.r(this.listeners),n=m.next();!n.done;n=m.next())n.value.ih(a,b,c,d,e,f,h)}}; g.k.UO=function(){this.i&&this.yj(this.i)}; g.k.yj=function(a){this.i=void 0;for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.yj(a)};g.w(p_,g.I);p_.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?2:f;h=void 0===h?1:h;this.i.has(a)?S("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new iJa(a,b,c,d,f),this.i.set(a.id,{ud:a,listener:e,Mj:h}),this.I.Kd([a],h))}; p_.prototype.removeCueRange=function(a){var b=this.i.get(a);b?(this.I.Yf([b.ud],b.Mj),this.i.delete(a)):S("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})}; p_.prototype.Ed=function(a){this.i.has(a.id)&&this.i.get(a.id).listener.Ed(a.id)}; p_.prototype.rf=function(a){this.i.has(a.id)&&this.i.get(a.id).listener.rf(a.id)}; g.w(iJa,g.wA);q_.prototype.Ei=function(a){this.I.Ei(a)}; q_.prototype.Oa=function(a,b){for(var c=[],d=1;d=this.u.length)throw new hZ("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});for(var a=g.r(this.u),b=a.next();!b.done;b=a.next())b=b.value,b.init(),dZ(this.B,this.slot,b.Kb())}; g.k.jo=function(){for(var a=g.r(this.u),b=a.next();!b.done;b=a.next())b=b.value,mqa(this.B,this.slot,b.Kb()),b.release()}; g.k.gq=function(a,b){var c=this.u[this.i];b.layoutId!==i0(c,a,b)?S("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.gq()}; g.k.qq=function(a,b){var c=this.u[this.i];b.layoutId!==i0(c,a,b)?S("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.qq()}; g.k.lw=function(a,b){var c=this.u[this.i];b.layoutId!==i0(c,a,b)?S("onSkipRequested for a PlayerBytes layout that is not currently active",c.wd(),c.Kb(),{requestingSlot:a,requestingLayout:b}):j0(this,c.wd(),c.Kb(),"skipped")}; g.k.Co=function(){-1===this.i&&JJa(this)}; g.k.pV=function(a,b){eZ(this.B,a,b)}; g.k.Do=function(a,b){var c=this;this.i!==this.u.length?(a=this.u[this.i],a.Ye(a.Kb(),b),this.D=function(){c.callback.Tc(c.slot,c.layout,b)}):this.callback.Tc(this.slot,this.layout,b)}; g.k.Mc=function(a,b){var c=this.u[this.i];c&&c.Mc(a,b)}; g.k.Tc=function(a,b,c){g0.prototype.Tc.call(this,a,b,c);var d=this.u[this.i];d&&d.Tc(a,b,c)}; g.k.EK=function(){var a=this.u[this.i];a&&a.Iy()}; g.k.Bi=function(a){var b=this.u[this.i];b&&b.Bi(a)}; g.k.CL=function(a){var b=this.u[this.i];b&&b.Cj(a)}; g.k.sf=function(a,b){-1===this.i&&(this.callback.Mc(this.slot,this.layout),this.i++);var c=this.u[this.i];c?c.Wv(a,b):S("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Kb().layoutId})}; g.k.Se=function(a){var b=this.u[this.i];b&&b.Se(a)}; g.k.xg=function(a){var b=this.u[this.i];b&&b.xg(a)}; g.k.wj=function(a){var b=this.u[this.i];b&&b.wj(a)}; g.k.Bf=function(){var a=this.u[this.i];a&&a.Bf()}; g.k.rV=function(a,b,c){j0(this,a,b,c)}; g.k.qV=function(a,b){j0(this,a,b,"error")};g.w(o0,g.I);g.k=o0.prototype;g.k.wd=function(){return this.slot}; g.k.Kb=function(){return this.layout}; g.k.init=function(){var a=X(this.layout.Ka,"metadata_type_video_length_seconds");w_(this.ma.get(),this.layout.layoutId,a,this);C_(this.Va.get(),this);this.In()}; g.k.release=function(){x_(this.ma.get(),this.layout.layoutId);D_(this.Va.get(),this);this.jo()}; g.k.gq=function(){}; g.k.qq=function(){}; g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.sf(this.slot,a,new ZY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.u="rendering_start_requested",epa(this.Ma.get(),1)?(this.Au(!1),this.K(-1),this.Co(a)):this.Wv("ui_unstable",new ZY("Failed to render media layout because ad ui unstable.")))}; g.k.Mc=function(a,b){var c,d,e;b.layoutId===this.layout.layoutId&&(this.u="rendering",X_(this.i,"impression"),X_(this.i,"start"),this.Ja.get().isMuted()&&(X_(this.i,"mute"),a=(null===(c=n0(this))||void 0===c?void 0:c.muteCommands)||[],this.B.get().Bd(a,this.layout.layoutId)),this.Ja.get().isFullscreen()&&(this.i.Hf("fullscreen"),a=(null===(d=n0(this))||void 0===d?void 0:d.fullscreenCommands)||[],this.B.get().Bd(a,this.layout.layoutId)),Cqa(this.Zc.get()),this.K(1),this.pL(),a=(null===(e=n0(this))|| void 0===e?void 0:e.impressionCommands)||[],this.B.get().Bd(a,this.layout.layoutId))}; g.k.Wv=function(a,b,c){this.Ha={MA:3,ax:"load_timeout"===a?402:400,errorMessage:b.message};var d;X(this.layout.Ka,"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR")&&S("There is a player error in this survey ads",this.wd(),this.Kb(),{playerType:String(c)});X_(this.i,"error");a=(null===(d=n0(this))||void 0===d?void 0:d.errorCommands)||[];this.B.get().Bd(a,this.layout.layoutId);this.callback.sf(this.slot,this.layout,b)}; g.k.Iy=function(){this.N()}; g.k.EJ=function(){var a;if("rendering"===this.u){this.i.Hf("pause");var b=(null===(a=n0(this))||void 0===a?void 0:a.pauseCommands)||[];this.B.get().Bd(b,this.layout.layoutId);this.K(2)}}; g.k.FJ=function(){var a;if("rendering"===this.u){this.i.Hf("resume");var b=(null===(a=n0(this))||void 0===a?void 0:a.resumeCommands)||[];this.B.get().Bd(b,this.layout.layoutId)}}; g.k.Ye=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.sf(this.slot,a,new ZY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):"rendering_stop_requested"!==this.u&&(this.u="rendering_stop_requested",this.V=b,this.Do(a,b))}; g.k.Tc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.u="not_rendering",this.V=void 0,this.Pa.get().I.W().experiments.Ga("html5_check_ad_position_and_reset_on_new_ad_playback_csi")?(a="normal"!==c||this.position+1===this.Ba)&&this.Au(a):this.Au(!0),this.qL(c),this.K(0),c){case "abandoned":var d;if(this.i.i.has("impression")){X_(this.i,"abandon");var e=(null===(d=n0(this))||void 0===d?void 0:d.abandonCommands)||[];this.B.get().Bd(e,this.layout.layoutId)}break;case "normal":X_(this.i, "complete");d=(null===(e=n0(this))||void 0===e?void 0:e.completeCommands)||[];this.B.get().Bd(d,this.layout.layoutId);break;case "skipped":var f;X_(this.i,"skip");d=(null===(f=n0(this))||void 0===f?void 0:f.skipCommands)||[];this.B.get().Bd(d,this.layout.layoutId)}}; g.k.qv=function(){return this.layout.layoutId}; g.k.QC=function(){return this.Ha}; g.k.Cj=function(a){if("not_rendering"!==this.u){this.Aa||(a=new g.lI(a.state,new g.bK),this.Aa=!0);var b=2===this.Ja.get().getPresentingPlayerType();"rendering_start_requested"===this.u?b&&l0(a)&&this.xa():b?g.nI(a,2)?this.TG():(l0(a)?this.K(1):g.nI(a,4)&&!g.nI(a,2)&&this.EJ(),0>mI(a,4)&&!(0>mI(a,2))&&this.FJ()):this.Iy()}}; g.k.Zv=function(){var a;if("rendering"===this.u){X_(this.i,"active_view_measurable");var b=(null===(a=n0(this))||void 0===a?void 0:a.activeViewMeasurableCommands)||[];this.B.get().Bd(b,this.layout.layoutId)}}; g.k.Yv=function(){var a;if("rendering"===this.u){X_(this.i,"active_view_fully_viewable_audible_half_duration");var b=(null===(a=n0(this))||void 0===a?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.B.get().Bd(b,this.layout.layoutId)}}; g.k.bw=function(){var a;if("rendering"===this.u){X_(this.i,"active_view_viewable");var b=(null===(a=n0(this))||void 0===a?void 0:a.activeViewViewableCommands)||[];this.B.get().Bd(b,this.layout.layoutId)}}; g.k.Au=function(a){this.Zc.get().Au(X(this.layout.Ka,"metadata_type_ad_placement_config").kind,a,this.position,this.Ba,!1)}; g.k.Se=function(a){var b,c;"rendering"===this.u&&(a?(this.i.Hf("fullscreen"),a=(null===(b=n0(this))||void 0===b?void 0:b.fullscreenCommands)||[],this.B.get().Bd(a,this.layout.layoutId)):(this.i.Hf("end_fullscreen"),a=(null===(c=n0(this))||void 0===c?void 0:c.endFullscreenCommands)||[],this.B.get().Bd(a,this.layout.layoutId)))}; g.k.Bf=function(){var a,b;if("rendering"===this.u)if(this.Ja.get().isMuted()){X_(this.i,"mute");var c=(null===(a=n0(this))||void 0===a?void 0:a.muteCommands)||[];this.B.get().Bd(c,this.layout.layoutId)}else X_(this.i,"unmute"),c=(null===(b=n0(this))||void 0===b?void 0:b.unmuteCommands)||[],this.B.get().Bd(c,this.layout.layoutId)}; g.k.xg=function(){}; g.k.wj=function(){};g.w(r0,o0);g.k=r0.prototype;g.k.In=function(){}; g.k.jo=function(){var a=this.Va.get();a.tA===this&&(a.tA=null);t_(this.Pa.get())?this.J.stop():this.D.stop()}; g.k.Co=function(){this.Va.get().tA=this;DJ();this.xa()}; g.k.pL=function(){OJa(this)}; g.k.TG=function(){}; g.k.gq=function(){t_(this.Pa.get())?this.J.stop():this.D.stop();o0.prototype.EJ.call(this)}; g.k.qq=function(){OJa(this);o0.prototype.FJ.call(this)}; g.k.Ll=function(){return X(this.Kb().Ka,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.k.Do=function(){t_(this.Pa.get())?this.J.stop():this.D.stop()}; g.k.Ob=function(){var a=Date.now(),b=a-this.ea;this.ea=a;this.C+=b;this.C>=this.Ll()?(this.C=this.Ll(),p0(this,this.C/1E3,!0),q0(this,this.C),this.N()):(p0(this,this.C/1E3),q0(this,this.C))}; g.k.qL=function(){}; g.k.Bi=function(){};g.w(s0,o0);g.k=s0.prototype;g.k.In=function(){X(this.Kb().Ka,"metadata_type_player_bytes_callback_ref").current=this}; g.k.jo=function(){X(this.Kb().Ka,"metadata_type_player_bytes_callback_ref").current=null;this.C&&this.J.get().removeCueRange(this.C);this.C=void 0;this.D.dispose()}; g.k.Co=function(a){var b=X(a.Ka,"metadata_type_ad_video_id"),c=X(a.Ka,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.La.get().I.W().V.add(b,{Cu:c});(b=X(a.Ka,"metadata_type_sodar_extension_data"))&&wJa(this.Qa.get(),b);uJa(this.Ja.get(),!1);b=this.zd.get();a=X(a.Ka,"metadata_type_player_vars");b.I.cueVideoByPlayerVars(a,2);this.D.start();this.zd.get().I.playVideo(2)}; g.k.pL=function(){var a;this.D.stop();this.C="adcompletioncuerange:"+this.Kb().layoutId;this.J.get().addCueRange(this.C,0x7ffffffffffff,0x8000000000000,!1,this,1,2);(this.adCpn=(null===(a=iA(this.ea.get(),2))||void 0===a?void 0:a.clientPlaybackNonce)||"")||S("Media layout confirmed started, but ad CPN not set.");this.Hc.get().Oa("onAdStart",this.adCpn)}; g.k.TG=function(){this.N()}; g.k.Ll=function(){var a;return null===(a=iA(this.ea.get(),2))||void 0===a?void 0:a.playbackDurationMs}; g.k.eA=function(){this.i.Hf("clickthrough")}; g.k.Do=function(){this.D.stop();uJa(this.Ja.get(),!0)}; g.k.Ed=function(a){a!==this.C?S("Received CueRangeEnter signal for unknown layout.",this.wd(),this.Kb(),{cueRangeId:a}):(this.J.get().removeCueRange(this.C),this.C=void 0,a=X(this.Kb().Ka,"metadata_type_video_length_seconds"),p0(this,a,!0),X_(this.i,"complete"))}; g.k.qL=function(a){"abandoned"!==a&&this.Hc.get().Oa("onAdComplete");this.Hc.get().Oa("onAdEnd",this.adCpn)}; g.k.rf=function(){}; g.k.Bi=function(a){"rendering"===this.u&&p0(this,a)};g.w(t0,g0);g.k=t0.prototype;g.k.wd=function(){return this.i.wd()}; g.k.Kb=function(){return this.i.Kb()}; g.k.In=function(){this.i.init()}; g.k.jo=function(){this.i.release()}; g.k.gq=function(){this.i.gq()}; g.k.qq=function(){this.i.qq()}; g.k.lw=function(a,b){S("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.wd(),this.Kb(),{requestingSlot:a,requestingLayout:b})}; g.k.Co=function(a){this.i.startRendering(a)}; g.k.Do=function(a,b){this.i.Ye(a,b)}; g.k.Mc=function(a,b){this.i.Mc(a,b)}; g.k.Tc=function(a,b,c){g0.prototype.Tc.call(this,a,b,c);this.i.Tc(a,b,c);b.layoutId===this.Kb().layoutId&&XJ(this.Zc.get())}; g.k.EK=function(){this.i.Iy()}; g.k.Bi=function(a){this.i.Bi(a)}; g.k.CL=function(a){this.i.Cj(a)}; g.k.sf=function(a,b,c){this.i.Wv(a,b,c)}; g.k.Se=function(a){this.i.Se(a)}; g.k.xg=function(a){this.i.xg(a)}; g.k.wj=function(a){this.i.wj(a)}; g.k.Bf=function(){this.i.Bf()};u0.prototype.Ve=function(a,b,c,d){if(a=RJa(a,b,c,d,this.Ue,this.J,this.Va,this.D,this.N,this.zd,this.K,this.Ja,this.B,this.Zc,this.Hc,this.i,this.u,this.C,this.Pa))return a;throw new ZY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+MY(d.Ka)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.w(v0,g.I);g.k=v0.prototype;g.k.sL=function(a){var b;this.i?SJa(this,this.i,a):null===(b=this.C)||void 0===b?void 0:b.get().Wn(a.identifier)}; g.k.iL=function(){}; g.k.ih=function(a){this.i&&this.i.contentCpn!==a&&(S("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.i.contentCpn}),this.i=null)}; g.k.yj=function(a){this.i&&this.i.contentCpn!==a&&S("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.i.contentCpn},!0);this.i=null}; g.k.ya=function(){g.I.prototype.ya.call(this);this.i=null};g.w(w0,g.I);g.k=w0.prototype;g.k.Mc=function(a,b){var c=this;this.Pa.get();if("LAYOUT_TYPE_MEDIA"===b.layoutType&&KY(b,this.K)){var d=iA(this.u.get(),2),e=this.D(b,d);e?gA(this.B.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){return[fJa(c.C.get(),e.contentCpn,e.AA,function(f){return c.J(f.slotId,"core",e,QY(c.i.get(),f))},e.RJ)]}):S("Expected MediaLayout to carry valid opportunity on entered",a,b)}}; g.k.Oh=function(){}; g.k.Ej=function(){}; g.k.tf=function(){}; g.k.Dj=function(){}; g.k.uf=function(){}; g.k.Lk=function(){}; g.k.Mk=function(){}; g.k.Aj=function(){}; g.k.Bj=function(){}; g.k.Di=function(){}; g.k.Tc=function(){};var s1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=WJa.prototype;g.k.init=function(){}; g.k.wd=function(){return this.slot}; g.k.Xx=function(){this.callback.tf(this.slot)}; g.k.Yx=function(){this.callback.uf(this.slot)}; g.k.release=function(){};y0.prototype.Ve=function(a,b){return new WJa(a,b)};g.k=XJa.prototype;g.k.init=function(){}; g.k.wd=function(){return this.slot}; g.k.Xx=function(){H_(this.Ja.get(),"ad-showing");this.callback.tf(this.slot)}; g.k.Yx=function(){this.callback.uf(this.slot);I_(this.Ja.get(),"ad-showing")}; g.k.release=function(){};g.k=YJa.prototype;g.k.init=function(){}; g.k.wd=function(){return this.slot}; g.k.Xx=function(){H_(this.Ja.get(),"ad-showing");H_(this.Ja.get(),"ad-interrupting");this.u=this.Ja.get().isAtLiveHead();this.i=Math.ceil(Date.now()/1E3);this.callback.tf(this.slot)}; g.k.Yx=function(){I_(this.Ja.get(),"ad-showing");I_(this.Ja.get(),"ad-interrupting");var a=this.u?Infinity:this.Ja.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.i;this.Ja.get().I.seekTo(a,void 0,void 0,1);this.callback.uf(this.slot)}; g.k.release=function(){};g.k=ZJa.prototype;g.k.init=function(){}; g.k.wd=function(){return this.slot}; g.k.Xx=function(){H_(this.Ja.get(),"ad-showing");H_(this.Ja.get(),"ad-interrupting");this.callback.tf(this.slot)}; g.k.Yx=function(){this.Ja.get().rp();I_(this.Ja.get(),"ad-showing");I_(this.Ja.get(),"ad-interrupting");this.callback.uf(this.slot)}; g.k.release=function(){this.Ja.get().rp()};z0.prototype.Ve=function(a,b){if(lA(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new XJa(a,b,this.Ja);if(b.Zb instanceof RZ&&lA(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new YJa(a,b,this.Ja);if(lA(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new ZJa(a,b,this.Ja);throw new hZ("Unsupported slot with type "+b.sb+" and client metadata: "+(MY(b.Ka)+" in PlayerBytesSlotAdapterFactory."));};g.w(B0,g.I);B0.prototype.i=function(a){for(var b=[],c=g.r(this.Hb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof AZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.Ae===a&&b.push(d)}b.length?fZ(this.vB(),b):S("Mute requested but no registered triggers can be activated.")};g.w(C0,B0);g.k=C0.prototype;g.k.Af=function(a,b){if(b)if("survey-submit"===a)$Ja(this,b);else if("skip-button"===a){a=[];for(var c=g.r(this.Hb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof AZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.Ae===b&&a.push(d)}a.length&&fZ(this.vB(),a)}else"survey-single-select-answer-button"===a&&$Ja(this,b)}; g.k.qD=function(a){B0.prototype.i.call(this,a)}; g.k.Hi=function(a,b,c,d){if(this.Hb.has(b.triggerId))throw new hZ("Tried to register duplicate trigger for slot.");if(!(b instanceof BZ||b instanceof AZ))throw new hZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Hb.set(b.triggerId,new A0(a,b,c,d))}; g.k.Ri=function(a){this.Hb.delete(a.triggerId)}; g.k.oD=function(){}; g.k.nD=function(){}; g.k.Jy=function(){};g.w(D0,g.I);g.k=D0.prototype; g.k.Hi=function(a,b,c,d){if(this.Hb.has(b.triggerId))throw new hZ("Tried to register duplicate trigger for slot.");if(!(b instanceof f_||b instanceof g_||b instanceof h_||b instanceof i_||b instanceof j_||b instanceof XZ||b instanceof b_||b instanceof zZ||b instanceof HZ||b instanceof WZ||b instanceof a_))throw new hZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new A0(a,b,c,d);this.Hb.set(b.triggerId,a);b instanceof j_&&this.D.has(b.Hg)&& fZ(this.i(),[a]);b instanceof f_&&this.B.has(b.Hg)&&fZ(this.i(),[a]);b instanceof b_&&this.u.has(b.Ae)&&fZ(this.i(),[a])}; g.k.Ri=function(a){this.Hb.delete(a.triggerId)}; g.k.Oh=function(a){this.D.add(a.slotId);for(var b=[],c=g.r(this.Hb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof j_&&a.slotId===d.trigger.Hg&&b.push(d);0mI(a,16)){a=g.r(this.i);for(var b=a.next();!b.done;b=a.next())this.Ed(b.value);this.i.clear()}}; g.k.Bi=function(){}; g.k.Se=function(){}; g.k.xg=function(){}; g.k.wj=function(){}; g.k.Bf=function(){};g.w(H0,g.I);g.k=H0.prototype;g.k.Hi=function(a,b,c,d){if(this.Hb.has(b.triggerId))throw new hZ("Tried to register duplicate trigger for slot.");if(!(b instanceof DZ||b instanceof e_))throw new hZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Hb.set(b.triggerId,new A0(a,b,c,d))}; g.k.Ri=function(a){this.Hb.delete(a.triggerId)}; g.k.Ym=function(){}; g.k.rk=function(){}; g.k.Mc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.sb&&(null!=this.i?S("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.i=b.layoutId)}; g.k.Tc=function(a){"SLOT_TYPE_ABOVE_FEED"===a.sb&&(this.i=null)}; g.k.Oh=function(){}; g.k.Ej=function(){}; g.k.Dj=function(){}; g.k.tf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.sb&&(null!=this.u?S("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.u=a.slotId)}; g.k.uf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.sb&&(null===this.u?S("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.u=null)}; g.k.Lk=function(){}; g.k.Mk=function(){}; g.k.Aj=function(){}; g.k.Bj=function(){}; g.k.Di=function(){}; g.k.Lx=function(){null!=this.i&&k0(this,this.i)}; g.k.Zx=function(a){if(null===this.u){for(var b=[],c=g.r(this.Hb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof e_&&d.trigger.slotId===a&&b.push(d);b.length&&fZ(this.B(),b)}};g.w(I0,g.I);g.k=I0.prototype;g.k.Di=function(a,b){for(var c=[],d=g.r(this.Hb.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&&fZ(this.i(),c)}; g.k.Hi=function(a,b,c,d){if(this.Hb.has(b.triggerId))throw new hZ("Tried to register duplicate trigger for slot.");if(!(b instanceof YIa))throw new hZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Hb.set(b.triggerId,new A0(a,b,c,d))}; g.k.Ri=function(a){this.Hb.delete(a.triggerId)}; g.k.Oh=function(){}; g.k.Ej=function(){}; g.k.Dj=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Lk=function(){}; g.k.Mk=function(){}; g.k.Aj=function(){}; g.k.Bj=function(){}; g.k.Mc=function(){}; g.k.Tc=function(){};g.w(J0,g.I);J0.prototype.ya=function(){this.D.get().removeListener(this);g.I.prototype.ya.call(this)};K0.prototype.fetch=function(a){var b=a.NI;return this.So.fetch(a.xN,{Hu:void 0===a.Hu?void 0:a.Hu,ud:b}).then(function(c){return cKa(c,b)})};g.w(L0,g.I);g.k=L0.prototype;g.k.addListener=function(a){this.listeners.push(a)}; g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.k.onAdUxClicked=function(a,b){M0(this,function(c){c.Af(a,b)})}; g.k.iE=function(a){M0(this,function(b){b.oD(a)})}; g.k.hE=function(a){M0(this,function(b){b.nD(a)})}; g.k.LS=function(a){M0(this,function(b){b.Jy(a)})};g.w(N0,g.I);g.k=N0.prototype;g.k.ih=function(){this.B=new QJ(this,jJa(this.Pa.get()));this.i=new RJ;eKa(this)}; g.k.yj=function(){}; g.k.addListener=function(a){this.listeners.push(a)}; g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.k.zE=function(a){this.zA.push(a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.sL(a)}; g.k.kL=function(a){g.Cb(this.i.i,1E3*a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.iL(a)}; g.k.oE=function(a){var b=iA(this.C.get(),1),c=b.clientPlaybackNonce;b=b.daiEnabled;var d=Date.now();a=g.r(a);for(var e=a.next();!e.done;e=a.next())e=e.value,(b||OZ(this.Pa.get()))&&B_(this.Va.get(),{cuepointTrigger:{event:fKa(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.i,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}}),this.u.add(e),b?this.B.reduce(e):OZ(this.Pa.get())&&0!==this.I.getCurrentTime(1)&&"start"===e.event&&this.zE(e)}; g.k.ya=function(){this.I.getVideoData(1).unsubscribe("cuepointupdated",this.oE,this);this.listeners.length=0;this.u.clear();this.zA.length=0;g.I.prototype.ya.call(this)};Q0.prototype.addListener=function(a){this.listeners.push(a)}; Q0.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=R0.prototype;g.k.wd=function(){return this.slot}; g.k.Kb=function(){return this.layout}; g.k.init=function(){var a;this.C.get().addListener(this);this.Ja.get().addListener(this);this.In();var b=X(this.layout.Ka,"metadata_type_layout_enter_ms"),c=X(this.layout.Ka,"metadata_type_layout_exit_ms"),d=null===(a=this.B.get().np)||void 0===a?void 0:a.clientPlaybackNonce,e=this.layout.Ec.adClientDataEntry;B_(this.Va.get(),{daiStateTrigger:{filledAdsDurationMs:c-b,contentCpn:d,adClientData:e}});var f=this.C.get();f=SJ(f.i,b,c);null!==f&&(B_(this.Va.get(),{daiStateTrigger:{filledAdsDurationMs:f- b,contentCpn:d,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:e}}),this.K.get().ip(f,c))}; g.k.release=function(){this.jo();this.C.get().removeListener(this);this.Ja.get().removeListener(this)}; g.k.startRendering=function(){this.Co();this.callback.Mc(this.slot,this.layout);X_(this.i,"ad_placement_start")}; g.k.Ye=function(a,b){this.Do(b);null!==this.driftRecoveryMs&&(S0(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(hKa(this)-X(this.layout.Ka,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ja.get().I.xn()).toString()}),this.driftRecoveryMs=null);this.callback.Tc(this.slot,this.layout,b);"normal"!==b?a=!1:(a=this.Ja.get().getCurrentTimeSec(2,!0),b=X(this.layout.Ka,"metadata_type_layout_exit_ms")/1E3,a=1>=Math.abs(a-b));a&&X_(this.i,"ad_placement_end")}; g.k.sL=function(){}; g.k.iL=function(a){var b,c=X(this.layout.Ka,"metadata_type_layout_enter_ms"),d=X(this.layout.Ka,"metadata_type_layout_exit_ms");a*=1E3;c<=a&&aa.width&&a1(this.B,this.layout)}; g.k.Bf=function(){}; g.k.Bi=function(){}; g.k.Se=function(){}; g.k.xg=function(){}; g.k.Cj=function(){}; g.k.ya=function(){Z_.prototype.ya.call(this)}; g.k.release=function(){Z_.prototype.release.call(this);this.Ja.get().removeListener(this)};BKa.prototype.Ve=function(a,b,c,d){if(b=e0(a,c,d,this.i,this.Ja,this.Va,this.J,this.Jd))return b;if(S_(d,AKa()))return new n1(c,d,this.Va,this.C,this.i,a,this.u,this.D,this.Ja,this.B,this.Pa,this.Jd,new o1(this.Ja));if(S_(d,zKa()))return new m1(c,d,this.Va,this.C,this.i,a,this.u,this.Ja,this.B,this.Pa,this.Jd,new o1(this.Ja));if(S_(d,{ge:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],nf:["LAYOUT_TYPE_SURVEY"]}))return new p1(c,d,a,this.i,this.u,this.Ja,this.Pa);if(S_(d,{ge:["metadata_type_player_bytes_layout_controls_callback_ref", "metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],nf:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new g1(c,d,a,this.i,this.Va);throw new ZY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+MY(d.Ka)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.w(q1,g.I);g.k=q1.prototype;g.k.Hi=function(a,b,c,d){if(this.Hb.has(b.triggerId))throw new hZ("Tried to register duplicate trigger for slot.");if(!(b instanceof GZ))throw new hZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Hb.set(b.triggerId,new A0(a,b,c,d));a=this.i.has(b.Ae)?this.i.get(b.Ae):new Set;a.add(b);this.i.set(b.Ae,a)}; g.k.Ri=function(a){this.Hb.delete(a.triggerId);if(!(a instanceof GZ))throw new hZ("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.i.get(a.Ae))b.delete(a),0===b.size&&this.i.delete(a.Ae)}; g.k.Oh=function(){}; g.k.Ej=function(){}; g.k.Dj=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Lk=function(){}; g.k.Mk=function(){}; g.k.Aj=function(){}; g.k.Bj=function(){}; g.k.Di=function(){}; g.k.Mc=function(a,b){var c=this;if(this.i.has(b.layoutId)){b=this.i.get(b.layoutId);a={};b=g.r(b);for(var d=b.next();!d.done;a={xt:a.xt},d=b.next())a.xt=d.value,d=new g.M(function(e){return function(){var f=c.Hb.get(e.xt.triggerId);fZ(c.B(),[f])}}(a),a.xt.durationMs),d.start(),this.u.set(a.xt.triggerId,d)}}; g.k.Tc=function(){};g.w(r1,g.I);r1.prototype.ya=function(){this.C.get().removeListener(this);g.I.prototype.ya.call(this)};g.w(DKa,g.I);EKa.prototype.Ve=function(a,b,c,d){if(b=e0(a,c,d,this.i,this.Ja,this.Va,this.J,this.Jd))return b;if(S_(d,AKa()))return new n1(c,d,this.Va,this.C,this.i,a,this.u,this.D,this.Ja,this.B,this.Pa,this.Jd,new o1(this.Ja));if(S_(d,zKa()))return new m1(c,d,this.Va,this.C,this.i,a,this.u,this.Ja,this.B,this.Pa,this.Jd,new o1(this.Ja));throw new ZY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+MY(d.Ka)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.w(FKa,g.I);g.w(GKa,g.I);g.w(HKa,g.I);g.w(t1,d0);t1.prototype.startRendering=function(a){d0.prototype.startRendering.call(this,a);X(this.layout.Ka,"metadata_ad_video_is_listed")&&(a=X(this.layout.Ka,"metadata_type_ad_info_ad_metadata"),this.J.get().I.Oa("onAdMetadataAvailable",a))};JKa.prototype.Ve=function(a,b,c,d){if(S_(d,IKa()))return new t1(a,c,d,this.u,this.Ja,this.Va,this.B,this.i,this.Jd);throw new ZY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+MY(d.Ka)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.w(KKa,g.I);LKa.prototype.Ve=function(a,b,c,d){if(S_(d,IKa()))return new t1(a,c,d,this.i,this.Ja,this.Va,this.u,this.B,this.Jd);if(a=e0(a,c,d,this.i,this.Ja,this.Va,this.u,this.Jd))return a;throw new ZY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+MY(d.Ka)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.w(MKa,g.I);g.w(u1,g.I);u1.prototype.B=function(){return this.u};v1.prototype.Zx=function(a){this.hk.Zx(a)}; v1.prototype.Lx=function(){try{this.hk.Lx()}catch(a){}}; v1.prototype.Ym=function(){this.i().Ym()}; v1.prototype.rk=function(){this.i().rk()};g.w(w1,xL); w1.prototype.B=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.i,interactionLoggingClientData:b.yb});break;case 3:this.i.Oa("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1); this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.i,interactionLoggingClientData:b.yb});break;case 3:b.renderer&&(b=this.i.getVideoData(1),this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.i.Oa("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);this.i.Oa("updateKevlarOrC3Companion", {contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.i,interactionLoggingClientData:b.yb});break;case 3:b=this.i.getVideoData(1),this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.i.Oa("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.i.Oa("updateEngagementPanelAction",b.addAction);this.i.Oa("changeEngagementPanelVisibility", b.expandAction);break;case 3:this.i.Oa("changeEngagementPanelVisibility",b.hideAction),this.i.Oa("updateEngagementPanelAction",b.removeAction)}};g.w(x1,EL);g.k=x1.prototype;g.k.init=function(a,b,c){EL.prototype.init.call(this,a,b,c);g.Vl(this.B,"stroke-dasharray","0 "+this.u);this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){GL(this);EL.prototype.hide.call(this)}; g.k.show=function(){FL(this);EL.prototype.show.call(this)}; g.k.kq=function(){this.hide()}; g.k.Zn=function(){if(this.i){var a=this.i.getProgressState();null!=a&&null!=a.current&&g.Vl(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.u+" "+this.u)}};g.w(y1,$K);g.k=y1.prototype; g.k.init=function(a,b,c){$K.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.yz(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.K=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.B-a)/1E3)),a!==this.V&&(DL(this.messageText,{TIME_REMAINING:String(a)}),this.V=a)))}};g.w(G1,$K); G1.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new nL(this.api,this.Za,this.layoutId,this.yb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ea(this.answer),a.init(EH("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.i=new vL(this.api,this.Za,this.layoutId,this.yb,["ytp-ad-survey-answer-toggle-button"]),this.i.Ea(this.answer), g.J(this,this.i),this.i.init(EH("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()}; G1.prototype.clear=function(){this.hide()};g.w(H1,$K);H1.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new vL(this.api,this.Za,this.layoutId,this.yb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ea(this.i),this.button.init(EH("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.w(I1,nL);I1.prototype.init=function(a,b,c){nL.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.DA(b.text),a=!g.xc(b));a||g.zz(Error("No submit text was present in the renderer."))}; I1.prototype.onClick=function(a){this.Z("l");nL.prototype.onClick.call(this,a)};g.w(J1,$K); J1.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new PL(this.api,this.Za,this.layoutId,this.yb,this.B,this.Li),c.Ea(this.D),c.init(EH("skip-button"),a,this.macros),g.J(this,c),this.i=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new JL(this.api,this.Za,this.layoutId,this.yb,this.B,!1),c.Ea(this.D),c.init(EH("ad-preview"),a,this.macros),KL(c),g.J(this,c),this.i=c);null==this.i&&g.yz(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b))); b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new I1(this.api,this.Za,this.layoutId,this.yb),c.Ea(this.submitButton),c.init(EH("survey-submit"),a,this.macros),g.J(this,c),this.u=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new RL(this.api,this.Za,this.layoutId,this.yb,!0),c.Ea(this.C),c.init(EH("simple-ad-badge"),a,this.macros),g.J(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new WL(this.api,this.Za,this.layoutId,this.yb,this.B,void 0), c.Ea(this.C),c.init(EH("ad-duration-remaining"),a,this.macros),g.J(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new BL(this.api,this.Za,this.layoutId,this.yb,this.element),g.J(this,a),a.Ea(this.C),a.init(EH("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()}; J1.prototype.clear=function(){this.hide()};g.w(K1,$K);K1.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);aLa(this)}; K1.prototype.show=function(){this.C=g.Pa();$K.prototype.show.call(this)}; K1.prototype.oM=function(){};g.w(L1,K1);g.k=L1.prototype;g.k.init=function(a,b,c){var d=this;K1.prototype.init.call(this,a,b,c);b.questionText&&g.Jg(this.questionText,g.DA(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&YKa(d,e.instreamSurveyAdAnswerRenderer,c)}); this.K=new Set(this.u.map(function(e){return e.i.i})); (a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&bLa(this,a,c);b.surveyAdQuestionCommon&&$Ka(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.S(this.element,"change",this.onChange);this.show()}; g.k.oM=function(){M1(this,!1);this.D.u.subscribe("l",this.sV,this)}; g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.i?cLa(this):this.K.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),M1(this,!0))}; g.k.sV=function(){var a=this,b=this.u.reduce(function(d,e){var f=e.toggledLoggingParams;e.i&&e.i.isToggled()&&f&&d.push(f);return d},[]).join("&"),c=this.submitEndpoints.map(function(d){if(!d.loggingUrls)return d; d=g.cc(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=Ci(e.baseUrl,b));return e}); return d}); c&&c.forEach(function(d){return a.Za.executeCommand(d,a.macros)})}; g.k.clear=function(){this.api.W().experiments.Ga("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(N1,K1);N1.prototype.init=function(a,b,c){var d=this;K1.prototype.init.call(this,a,b,c);b.questionText&&g.Jg(this.questionText,g.DA(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&YKa(d,e.instreamSurveyAdAnswerRenderer,c)}); b.surveyAdQuestionCommon?$Ka(this,b.surveyAdQuestionCommon):g.yz(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()}; N1.prototype.clear=function(){this.api.W().experiments.Ga("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(O1,$K); O1.prototype.init=function(a,b,c){var d=this;$K.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new N1(d.api,d.Za,d.layoutId,d.yb,d.Dg,d.Li,d.i);f.Ea(d.u);f.init(EH("survey-question-single-select"),e,c);d.questions.push(f);g.J(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new L1(d.api,d.Za,d.layoutId,d.yb,d.Dg, d.Li,d.i),f.Ea(d.u),f.init(EH("survey-question-multi-select"),e,c),d.questions.push(f),g.J(d,f))}); this.show()}; O1.prototype.clear=function(){this.api.W().experiments.Ga("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.w(P1,$K); P1.prototype.init=function(a,b,c){var d=this;$K.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.yz(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&b.ctaButton.buttonRenderer)if(b.brandImage)if(b.backgroundImage&&b.backgroundImage.thumbnailLandscapePortraitRenderer&&b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape){eLa(this.interstitial,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape); eLa(this.logoImage,b.brandImage);g.Jg(this.text,g.DA(b.text));this.actionButton=new nL(this.api,this.Za,this.layoutId,this.yb,["ytp-ad-survey-interstitial-action-button"]);g.J(this,this.actionButton);this.actionButton.Ea(this.u);this.actionButton.init(EH("button"),b.ctaButton.buttonRenderer,c);this.actionButton.show();var e=b.timeoutCommands,f=this.api.W().experiments.Ga("html5_use_normal_timer_for_survey");this.i=this.Dg?new SL(this.api,1E3*a):new TL(1E3*a,void 0,f);this.i.subscribe("g",function(){d.transition.hide(); if(!d.Dg){for(var h=g.r(e),l=h.next();!l.done;l=h.next())d.Za.executeCommand(l.value,c);d.Za.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)}}); g.J(this,this.i);this.S(this.element,"click",function(h){var l=b.dismissCommands,m=h.target===d.interstitial;h=d.actionButton.element.contains(h.target);if(m||h)if(d.transition.hide(),m)if(d.nF)d.api.onAdUxClicked(d.componentType,d.layoutId);else for(l=g.r(l),m=l.next();!m.done;m=l.next())d.Za.executeCommand(m.value,d.macros)}); this.transition.show(100);if(!this.Dg&&b.impressionCommands)for(a=g.r(b.impressionCommands),f=a.next();!f.done;f=a.next())this.Za.executeCommand(f.value,c)}else g.yz(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.yz(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.yz(Error("SurveyTextInterstitialRenderer has no button."));else g.yz(Error("SurveyTextInterstitialRenderer has no text."));else g.yz(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; P1.prototype.clear=function(){this.hide()}; P1.prototype.show=function(){fLa(!0);$K.prototype.show.call(this)}; P1.prototype.hide=function(){fLa(!1);$K.prototype.hide.call(this)};var uNa="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(Q1,xL); Q1.prototype.B=function(a){var b,c=a.id,d=a.content,e=d.componentType;if(!uNa.includes(e))switch(a.actionType){case 1:a=this.J();var f=d instanceof sI||d instanceof BJ||d instanceof GJ?d.Dg:!1,h=d instanceof sI||d instanceof KJ||d instanceof BJ?d.Li:!1,l=d instanceof BJ&&(null===(b=d.renderer)||void 0===b?void 0:b.controlWithFixEnabled);var m=this.api,n=d.layoutId,p=d.yb,q=d instanceof GJ?d.nF:!1;p=void 0===p?{}:p;f=void 0===f?!1:f;h=void 0===h?!1:h;q=void 0===q?!1:q;l=void 0===l?!1:l;switch(e){case "invideo-overlay":a= new z1(m,a,n,p);break;case "player-overlay":a=new cM(m,a,n,p,new XN(m),h);break;case "survey":a=new O1(m,a,n,p,f,h,l);break;case "ad-action-interstitial":a=new y1(m,a,n,p,f,h);break;case "survey-interstitial":a=new P1(m,a,n,p,f,q);break;case "ad-message":a=new F1(m,a,n,p,new XN(m,1));break;default:a=null}if(!a){g.zz(Error("No UI component returned from ComponentFactory for type: "+e));break}Ob(this.u,c)?g.zz(Error("Ad UI component already registered: "+c)):this.u[c]=a;a.bind(d);this.C.append(a.AM); break;case 2:c=gLa(this,a);if(null==c)break;c.bind(d);break;case 3:d=gLa(this,a),null!=d&&(g.uf(d),Ob(this.u,c)?(d=this.u,c in d&&delete d[c]):g.zz(Error("Ad UI component does not exist: "+c)))}}; Q1.prototype.ya=function(){g.vf(Object.values(this.u));this.u={};xL.prototype.ya.call(this)};g.w(R1,g.fN);g.k=R1.prototype;g.k.create=function(){if(oZ(this.i.i.xe.jg))try{hLa(this),this.load(),this.created=!0,hLa(this)}catch(a){S(a instanceof Error?a:String(a))}else this.load(),this.created=!0}; g.k.load=function(){g.fN.prototype.load.call(this);var a=this.i.i.xe.jg;aja(a.I.W().experiments.Ga("html5_reduce_ecatcher_errors"));if(oZ(a))try{this.player.getRootNode().classList.add("ad-created")}catch(l){S(l instanceof Error?l:String(l))}else this.player.getRootNode().classList.add("ad-created");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 h=c&&c.Sf()||!1;a=lLa(f,a,e,h);f=c&&c.clientPlaybackNonce||"";c=c&&c.fp||!1;h=1E3*this.player.getDuration(1);this.Za=new PK(this,this,this.player,this.So,b,this.i.i.xe);gsa(this.Za,a.Bu);this.i.i.Sn.ih(f,h,c,a.Mz,a.Mz.concat(a.Bu),e,d);QK(this.Za)}; g.k.destroy=function(){var a=this.player.getVideoData(1);this.i.i.Sn.yj(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1}; g.k.unload=function(){g.fN.prototype.unload.call(this);aja(!1);if(oZ(this.i.i.xe.jg))try{this.player.getRootNode().classList.remove("ad-created")}catch(b){S(b instanceof Error?b:String(b))}else this.player.getRootNode().classList.remove("ad-created");if(null!==this.Za){var a=this.Za;this.Za=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.So.reset()}; g.k.Ki=function(){return!1}; g.k.oF=function(){return null===this.Za?!1:this.Za.oF()}; g.k.Kk=function(a){null!==this.Za&&this.Za.Kk(a)}; g.k.getAdState=function(){return this.Za?this.Za.Oy:-1}; g.k.getOptions=function(){return Object.values(tNa)}; g.k.bf=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=WH(this.player),Object.assign(b,a.D$),this.Za&&!b.AD_CPN&&(b.AD_CPN=this.Za.qy()),a=g.Hq(a.url,b)):a=null,a;case "isExternalShelfAllowedFor":a:if(b.playerResponse){a=b.playerResponse.adPlacements||[];for(b=0;b