var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ 'use strict';var ba,da,zaa,ia,ka,la,pa,qa,ra,ta,ua,va,wa,xa,Aaa,Baa,za,Aa,Haa,Ba,Ca,Da,Ea,Fa,Ja,Ka,Jaa,Kaa,Ta,Ua,Va,Laa,Maa,Xa,Naa,Ya,$a,Oaa,Paa,bb,ib,Qaa,qb,rb,Raa,wb,tb,Saa,ub,Taa,Uaa,Vaa,Eb,Gb,Hb,Ib,Lb,Nb,Ob,Rb,Xb,Zb,bc,cc,fc,hc,ic,Yaa,jc,kc,nc,wc,xc,zc,Ec,Mc,Nc,Rc,Pc,bba,eba,fba,gba,Vc,Wc,Yc,Xc,$c,cd,hba,iba,bd,jba,hd,id,jd,kd,ld,od,pd,qd,rd,mba,sd,td,xd,yd,zd,Ad,Bd,Cd,Dd,Ed,Gd,Id,Jd,Md,Nd,Od,oba,Pd,Rd,pba,Td,Vd,Wd,Xd,Yd,Zd,fe,he,ke,oe,pe,ue,ve,ye,we,Ae,De,Ce,Be,uba,me,Se,Qe,Re,Ue,Te,le,Ve,wba, Ze,af,Ye,cf,df,ef,ff,gf,hf,jf,kf,lf,mf,xba,uf,nf,wf,zf,Af,yba,Cf,Gf,Ff,Hf,If,Jf,Kf,Lf,Mf,Nf,Of,Pf,Rf,Qf,Sf,Tf,Bba,Dba,Eba,Gba,Xf,Yf,Zf,ag,bg,cg,eg,gg,mg,ng,qg,Hba,tg,sg,ug,Iba,Cg,Dg,Eg,Jba,Fg,Gg,Hg,Ig,Jg,Kg,Lg,Kba,Mg,Ng,Og,Lba,Mba,Pg,Rg,Qg,Tg,Ug,Xg,Vg,Oba,Wg,Yg,Zg,ah,$g,Qba,Pba,bh,Sba,Rba,Tba,eh,Uba,gh,hh,ih,fh,jh,Vba,kh,Wba,Xba,mh,aca,nh,oh,ph,bca,rh,th,yh,Bh,Dh,Ah,zh,Eh,cca,Fh,Gh,Hh,Ih,eca,Nh,Oh,Ph,Qh,gca,Rh,Sh,Th,Uh,Vh,hca,Xh,Yh,Zh,$h,ai,bi,di,ei,fi,gi,hi,ci,ii,ji,ki,ica,li,mi,jca,ni,oi,kca,qi, lca,ri,si,ti,mca,Ci,Di,Fi,Hi,Ii,Ji,Ki,Li,Ei,Gi,oca,Mi,Ni,Pi,Oi,pca,qca,rca,Qi,Ri,Si,Ti,vca,wca,xca,yca,zca,Vi,Wi,Aca,Xi,Bca,Cca,Yi,Zi,$i,Dca,aj,cj,dj,ej,fj,gj,hj,ij,jj,kj,Eca,Fca,lj,Gca,nj,mj,qj,rj,pj,Hca,Lca,Kca,tj,Mca,Nca,Oca,Qca,Pca,Rca,uj,wj,yj,zj,Aj,Tca,Cj,Dj,Uca,Vca,Ej,Fj,Gj,Hj,Wca,Lj,Mj,Yca,Nj,Zca,Oj,Qj,Pj,Rj,Sj,Uj,ada,Vj,$ca,Wj,bda,Xj,cda,dda,Zj,bk,ck,dk,ek,ak,hk,ik,fk,eda,gda,hda,kk,lk,mk,nk,ida,ok,pk,qk,rk,sk,tk,uk,vk,yk,xk,kda,lda,zk,Bk,wk,Ak,jda,Ck,Dk,nda,oda,pda,qda,Hk,Ik,Jk,Ek,Kk,Lk, mda,rda,sda,tda,Ok,Mk,Pk,Rk,yda,uda,Vk,Wk,Xk,Yk,Zk,$k,bj,zda,al,bl,Ada,Bda,Cda,Dda,Eda,dl,el,fl,gl,hl,il,Hda,jl,Ida,kl,ll,ml,nl,ol,pl,ql,Kda,rl,tl,vl,Dl,Mda,El,Fl,Gl,Hl,Jl,Ll,Nda,Il,Ql,Rl,Ol,Pda,Ml,Kl,Vl,Wl,Xl,Zl,Qda,$l,am,bm,Rda,gm,im,km,lm,nm,om,pm,rm,Sda,sm,um,xm,tm,vm,jm,qm,Uda,Am,ym,zm,Cm,Tda,Bm,Gm,Hm,Vda,Mm,Lm,Im,Jm,Km,Qm,Pm,Vm,Wm,Ym,Yda,Xm,$m,bn,an,Wda,en,gn,aea,kn,ln,pn,qn,rn,sn,yn,bea,An,Bn,dea,Cn,Dn,iea,eea,Kn,nea,Ln,Mn,Nn,pea,Qn,Rn,Sn,Tn,qea,Wn,Xn,Yn,Zn,ao,bo,co,ro,to,uo,vo,wo,xo,yo,sea, zo,tea,Bo,Do,Eo,wea,xea,yea,Ko,Lo,Mo,Oo,Po,Qo,To,Uo,Ro,Vo,zea,Yo,Zo,ap,bp,cp,dp,gp,hp,fp,ip,jp,kp,$o,np,mp,Eea,pp,sp,Fea,wp,vp,Hea,Iea,Jea,Ap,Kea,Lea,xp,Cp,Bp,Mea,Ep,Fp,Gp,Ip,Hp,Nea,Lp,Mp,Np,Op,Qp,Rp,Sp,Tp,Pea,Qea,$p,aq,bq,Rea,gq,hq,iq,kq,mq,nq,jq,qq,tq,sq,rq,vq,wq,xq,zq,Aq,Cq,Dq,Eq,Gq,Hq,Iq,Kq,Mq,Nq,yq,Qq,Oq,Sea,$q,Zq,Uea,Vea,er,gr,hr,Yea,Xea,br,sr,tr,ur,zr,Ar,xr,Br,Dr,Fr,Gr,Zea,Hr,Ir,Jr,Lr,$ea,hs,gs,Kr,is,js,ks,ms,ns,afa,vs,ws,zs,ys,Bs,Cs,Es,Fs,efa,ffa,gfa,Hs,Js,Ks,Is,Ls,hfa,Ms,Ns,Os,Ps,Qs,Ss,ifa, Ts,Xs,Ys,Rs,kfa,lfa,Us,Zs,mfa,Ws,jfa,Vs,at,nfa,bt,ct,$s,ofa,dt,et,ft,ht,it,pfa,qfa,rfa,lt,mt,nt,sfa,tfa,ufa,vfa,wfa,xfa,ot,pt,yfa,qt,tt,wt,zfa,Afa,Bfa,xt,ut,vt,Bt,Ct,Dt,Et,Dfa,Cfa,Gt,Ft,It,Ht,Pt,Qt,Rt,Tt,Mt,Ffa,Jt,Nt,Lt,Kt,Ot,Ifa,Gfa,Zt,$t,Yt,bu,eu,fu,Kfa,cu,du,gu,hu,ju,ku,nu,lu,pu,ou,qu,Lfa,tu,uu,wu,Nfa,yu,zu,Au,Cu,Ofa,Eu,Gu,Pfa,Qfa,Ju,Iu,Sfa,Ku,Nu,Lu,Mu,qs,Xfa,Uu,Yu,Zu,Yfa,Vu,Zfa,gv,lv,cga,dga,pv,uv,tv,wv,rv,vv,xv,fga,gga,Cv,Dv,Q,Ev,Fv,Gv,Hv,Jv,Lv,Mv,Ov,nga,Pv,Qv,Rv,Uv,rga,Yv,Zv,$v,aw,bw,ew,fw, sga,hw,kw,lw,jw,mw,nw,ow,qw,rw,gw,tw,pw,vw,uga,ww,yw,zw,xw,Aw,Bw,Dw,Ew,Gw,Jw,Fw,Kw,Mw,Nw,Rw,Pw,Uw,Tw,Vw,Ww,Xw,Yw,Qw,$w,Zw,Ow,yga,zga,bx,cx,dx,ex,fx,hx,ix,kx,lx,mx,qx,rx,px,Cga,Ega,my,ly,Bga,Aga,ky,oy,py,ry,sy,ty,vy,wy,yy,zy,uy,Fga,Ay,By,Cy,Dy,Ey,Fy,Gy,Hy,Iy,Jy,Ky,Ly,My,Ny,Oy,Py,Gga,Qy,Sy,Uy,Vy,Ry,Iga,Wy,Xy,Zy,az,Jga,bz,fz,dz,$y,gz,cz,ez,hz,iz,jz,Kga,lz,mz,sz,Lga,oz,uz,wz,zz,yz,qz,vz,tz,Mga,Az,Nga,Bz,Cz,nz,pz,rz,xz,Dz,Ez,Oga,Gz,Pga,Qga,Hz,Iz,Rga,Kz,Sga,Jz,Lz,Nz,Oz,Pz,Qz,Rz,Sz,Vz,Tz,Tga,Wz,Xz,Yz,Zz, Uga,Uz,$z,aA,bA,cA,dA,eA,gA,hA,iA,Vga,jA,kA,lA,mA,nA,Wga,Xga,aha,bha,Yga,Zga,$ga,oA,qA,pA,rA,sA,tA,cha,uA,vA,wA,xA,yA,zA,AA,BA,CA,DA,EA,FA,GA,HA,IA,JA,LA,NA,MA,OA,PA,QA,RA,SA,TA,UA,VA,dha,XA,WA,aB,bB,cB,dB,eB,fB,ZA,gB,hB,iB,jB,eha,kB,mB,nB,oB,pB,qB,rB,sB,fha,tB,uB,vB,wB,xB,AB,CB,DB,EB,FB,gha,HB,IB,GB,KB,JB,LB,MB,hha,NB,QB,Dga,ux,jha,RB,SB,TB,kha,lha,nx,UB,XB,oha,nha,VB,mha,$B,WB,cC,pha,qha,eC,rha,fC,dC,sha,hC,gC,iC,jC,tha,uha,vha,kC,aC,wha,mC,xha,nC,oC,pC,qC,rC,yha,sC,zha,ny,jy,vC,xC,zC,AC,BC,CC, DC,yC,GC,Aha,IC,Cha,JC,KC,Dha,Bha,Eha,Fha,Gha,LC,ox,MC,NC,sx,Hha,PC,Iha,QC,Jha,RC,TC,SC,UC,Lha,WC,XC,YC,ZC,$C,bD,cD,Mha,eD,gD,fD,dD,iD,jD,kD,lD,mD,nD,OD,ID,QD,TD,UD,yD,FD,VD,oD,KD,JD,MD,YD,ZD,bE,Uha,vD,fE,uD,gE,HD,iE,jE,kE,lE,mE,Wha,Xha,nE,oE,Yha,bia,pE,Zha,aia,$ha,qE,cia,rE,dia,eia,tE,uE,vE,wE,fia,xE,gia,hia,AE,jia,kia,DE,mia,nia,oia,pia,BE,CE,lia,qia,LE,bF,cF,fF,eF,gF,hF,iF,jF,sia,tia,uia,lF,nF,oF,rF,tF,sF,Aia,uF,wF,xF,pF,yF,zF,Bia,Cia,AF,IF,CF,HF,OF,SF,Nia,Pia,Iia,NF,WF,Mia,Oia,XF,Qia,Ria,YF,Gia, Tia,Sia,FF,VF,RF,Zia,Via,$ia,Wia,Xia,Yia,aja,ZF,bja,cja,aG,bG,dja,dG,EF,UF,Jia,GF,Lia,Kia,fG,Uia,fja,mG,nG,oG,pG,ija,PF,rG,qG,Hia,eja,QF,jja,LF,MF,KF,kF,vG,lja,wG,yG,mja,nja,pja,oja,zG,AG,qja,BG,rja,CG,DG,EG,FG,GG,HG,IG,sja,JG,tja,KG,MG,wja,LG,xja,uja,yja,vja,zja,Aja,Bja,NG,OG,PG,QG,RG,Dja,SG,TG,UG,Eja,Fja,Gja,Jja,ZG,WG,Ija,bH,Hja,cH,YG,dH,aH,$G,XG,VG,Kja,gH,fH,hH,Lja,jH,lH,mH,Nja,Mja,nH,oH,pH,qH,rH,sH,Oja,tH,Pja,uH,Rja,Sja,wH,Tja,Uja,Vja,Yja,Wja,Xja,Zja,$ja,xH,aka,bka,cka,dka,eka,fka,yH,zH,AH,BH, CH,DH,EH,FH,GH,HH,IH,JH,KH,LH,MH,NH,OH,PH,QH,RH,SH,TH,UH,VH,WH,XH,YH,ZH,$H,aI,bI,cI,dI,eI,fI,gI,hI,iI,jI,kI,lI,mI,nI,oI,pI,qI,rI,hka,gka,jka,kka,ika,sI,lka,tI,uI,vI,wI,mka,oka,nka,qka,rka,ska,zI,tka,uka,AI,vka,DI,EI,wka,FI,Aka,Bka,Cka,GI,Dka,HI,Eka,Fka,II,Gka,Hka,Jka,Kka,Lka,KI,JI,Ika,LI,Mka,Nka,Pka,Oka,Qka,Rka,MI,NI,Uka,Vka,OI,Wka,Xka,PI,QI,SI,TI,UI,VI,YI,Yka,$I,aJ,Zka,$ka,ala,bJ,dla,ela,cJ,fla,eJ,gla,hla,fJ,gJ,ila,jla,hJ,lla,kla,iJ,ola,qla,rla,pla,kJ,lJ,sla,tla,ula,vla,wla,xla,nJ,pJ,Bla,Ela,yla, qJ,Ola,Nla,rJ,Qla,Pla,Sla,Tla,Vla,Ula,Wla,Xla,Yla,Zla,$la,ama,bma,cma,sJ,tJ,dma,ema,fma,hma,ima,jma,kma,lma,AJ,nma,oma,yJ,zJ,mma,pma,qma,BJ,tma,rma,vma,uma,CJ,Ama,xma,yma,zma,Bma,DJ,Cma,Ema,Fma,Dma,EJ,Gma,dJ,Ima,Jma,bla,Hma,GJ,HJ,IJ,Kma,Lma,Mma,JJ,LJ,Oma,MJ,PJ,Pma,QJ,Qma,Rma,RJ,Tma,Uma,Vma,Wma,Xma,Yma,Zma,$ma,WJ,ana,XJ,bna,cna,dna,ena,fna,aK,bK,cK,gna,dK,hna,fK,jna,ina,gK,hK,iK,jK,kna,kK,lK,lna,mK,nK,pna,mna,ona,nna,qna,oK,pK,rna,sna,tna,una,qK,vna,xna,wna,rK,sK,tK,uK,vK,xK,yK,zK,AK,BK,yna,CK,DK, Ana,zna,EK,FK,GK,HK,IK,JK,MK,NK,OK,PK,QK,RK,SK,TK,Cna,UK,Dna,Gna,WK,Hna,XK,YK,ZK,$K,aL,Lna,Mna,Kna,Ona,Nna,Jna,bL,cL,dL,eL,fL,gL,hL,Qna,Rna,Tna,Sna,ps,Vna,Una,lL,Xna,Wna,Zna,Yna,$na,aoa,boa,doa,eoa,goa,oL,hoa,rL,pL,sL,qL,wma,ioa,joa,koa,loa,xL,wL,zL,qoa,roa,HL,soa,voa,IL,xoa,KL,ML,JL,NL,toa,OL,woa,uoa,QL,LL,RL,Aoa,TL,Boa,WL,Coa,Doa,XL,YL,ZL,Eoa,aM,Moa,Poa,Noa,Qoa,Roa,Soa,Toa,Voa,jM,Zoa,mM,apa,Yoa,bpa,cpa,lM,$oa,pM,qM,rM,sM,uL,uM,dpa,oM,vM,yM,epa,xM,AM,fpa,DM,EM,FM,JM,ipa,jpa,LM,KM,MM,kpa,lpa,NM,mpa, npa,PM,QM,opa,TM,qpa,VM,RM,rpa,spa,ppa,WM,XM,$M,tpa,ZM,bN,aN,dN,vpa,wpa,hN,xpa,kN,ypa,Bpa,zpa,oN,pN,Cpa,sN,tN,uN,vN,xN,Dpa,Epa,zN,Gpa,Fpa,Hpa,Ipa,Jpa,Kpa,FN,GN,HN,Lpa,IN,JN,Mpa,Npa,MN,Ppa,Opa,NN,ON,PN,Qpa,QN,RN,SN,TN,Rpa,UN,VN,Spa,WN,Tpa,Vpa,Upa,aO,ZN,$N,Wpa,Xpa,Ypa,bO,cO,dO,eO,fO,Zpa,iO,$pa,kO,lO,mO,oO,pO,qO,rO,aqa,dqa,sO,bqa,cqa,hqa,iqa,uO,kqa,jqa,lqa,mqa,nqa,xO,oqa,zO,rqa,pqa,qqa,sqa,AO,BO,CO,DO,tqa,uqa,vqa,wqa,xqa,Aqa,zqa,yqa,Dqa,Cqa,HO,LO,Fqa,Gqa,JO,FO,IO,NO,Jqa,OO,KO,Bqa,Iqa,MO,Eqa,Hqa,Kqa, Lqa,QO,RO,SO,TO,Nqa,WO,XO,YO,ZO,$O,aP,Oqa,bP,dP,cP,eP,fP,Pqa,gP,Qqa,Sqa,Rqa,hP,iP,Tqa,jP,kP,Uqa,lP,Vqa,mP,Wqa,nP,sP,rP,Xqa,qP,vP,Yqa,Zqa,wP,xP,yP,zP,BP,$qa,iN,dra,DN,ara,uP,cra,EN,bra,era,ira,hra,jra,kra,FP,lra,GP,mra,IP,JP,KP,LP,MP,NP,OP,ora,PP,QP,RP,SP,UP,pra,qra,VP,WP,tra,XP,ura,YP,ZP,aQ,bQ,cQ,vra,$P,dQ,eQ,fQ,gQ,yra,zra,hQ,iQ,xra,kQ,Dra,Cra,Era,lQ,mQ,nQ,Fra,rQ,Gra,Hra,Ira,sQ,tQ,uQ,vQ,Mra,Ora,Kra,Lra,wQ,Jra,Pra,Qra,xQ,yQ,zQ,Tra,Ura,Rra,Sra,AQ,BQ,Xra,Yra,Wra,$ra,CQ,csa,dsa,esa,asa,fsa,bsa,DQ,ZQ, hsa,isa,jsa,ksa,lsa,kR,msa,nsa,osa,lR,qsa,mR,rsa,ssa,psa,usa,vsa,tsa,wsa,ysa,xsa,zsa,Asa,Csa,Bsa,Dsa,nR,Esa,Fsa,Gsa,oR,Hsa,pR,Ksa,Jsa,Isa,Psa,Qsa,Ssa,Tsa,Rsa,sR,Usa,qR,Lsa,Nsa,Osa,Wsa,Vsa,Xsa,Ysa,Zsa,ata,bta,cta,$sa,dta,fta,zR,hta,ita,AR,kta,mta,lta,nta,pta,ota,CR,qta,rta,sta,tta,FR,GR,yta,Bta,zta,vta,JR,uta,Ata,MR,Dta,Cta,NR,Fta,Hta,Ita,Gta,QR,Jta,Nta,Ota,Pta,WR,YR,Qta,RR,ZR,aS,Rta,UR,Sta,bS,Tta,cS,Vta,Lta,SR,eS,aua,fS,bua,cua,Zta,hS,dua,iS,Xta,lS,$ta,eua,jS,gS,fua,mS,gua,iua,pS,nS,qS,oS,rS,jua, sS,tS,uS,vS,kua,wS,lua,yS,nua,oua,pua,BS,AS,zS,qua,rua,sua,tua,ES,GS,HS,uua,yoa,zoa,IS,JS,vua,KS,LS,MS,wua,yua,Cua,zua,Aua,Bua,RS,SS,TS,US,Wta,VS,Eua,dS,Fua,Gua,WS,Hua,Mua,Nua,Oua,aT,bT,Pua,cT,Lua,Qua,Rua,XS,Iua,Sua,YS,ZS,Jua,Kua,Tua,$S,Uua,Vua,Wua,Xua,gT,Zua,Yua,dT,eT,fT,$ua,ava,bva,cva,hT,dva,iT,eva,jT,kT,fva,mT,gva,nT,kva,pT,mva,sT,iva,jva,hva,qT,oT,lva,rva,pva,nva,uT,sva,vT,tva,wT,xT,uva,vva,wva,xva,yva,yT,zva,zT,AT,BT,CT,DT,Ava,Bva,OS,QS,Eva,GT,HT,PS,Dua,KT,FT,Fva,ET,Cva,Dva,LT,MT,Gva,JT,NS, IT,Hva,Iva,Jva,NT,Lva,Kva,OT,Mva,Nva,RT,Rva,PT,Zva,QT,$va,ST,Vva,Sva,Wva,Pva,TT,awa,bwa,ewa,dwa,cwa,UT,iwa,jwa,$T,aU,kwa,cU,dU,fU,nwa,owa,pwa,gU,qwa,XT,iU,rwa,swa,uwa,qva,hU,twa,gwa,lT,eU,lwa,vwa,wwa,xwa,fwa,ZT,WT,rT,bU,ywa,ova,kU,lU,zwa,Awa,Bwa,Dwa,Cwa,mU,Ewa,Gwa,Fwa,Iwa,oU,Nwa,Jwa,Owa,Pwa,Lwa,Qwa,Mwa,pU,Uwa,Swa,Twa,Zwa,Wwa,$wa,axa,qU,nU,Vwa,Ywa,Rwa,bxa,rU,cxa,Kwa,dxa,sU,tU,exa,gxa,hxa,uU,fxa,vU,wU,xU,yU,AU,jxa,lxa,nxa,mxa,BU,kxa,DU,CU,oxa,zU,pxa,EU,HU,qxa,sxa,rxa,GU,txa,uxa,wxa,vxa,xxa,IU,FU,yxa, JU,Axa,Bxa,Cxa,zxa,Dxa,Exa,Gxa,Ixa,Jxa,Fxa,Lxa,Mxa,Nxa,Hxa,MU,Oxa,Pxa,Qxa,Rxa,NU,OU,RU,SU,Uxa,TU,Vxa,Wxa,Xxa,UU,Sxa,Yxa,Zxa,XU,$xa,bya,aya,cya,YU,ZU,dya,$U,aV,bV,gya,dV,cV,hya,fV,fya,jya,kya,iya,eV,lya,gV,mya,Txa,WU,oya,pya,qya,rya,sya,tya,uya,wya,xya,yya,vya,zya,Aya,iV,Bya,Cya,Dya,jV,kV,Eya,Fya,Gya,mV,Iya,pV,oV,Jya,Kya,nV,lV,Hya,sV,rV,tV,qV,Lya,vV,Pya,yV,AV,BV,Rya,Nya,wV,zV,CV,Oya,Sya,DV,Uya,uV,Vya,Wya,Tya,Xya,xV,Qya,Yya,Mya,EV,FV,GV,Zya,$ya,hwa,HV,bza,cza,dza,eza,fza,hza,iza,jza,kza,lza,mza,oza, IV,qza,rza,KV,LV,MV,NV,OV,PV,sza,QV,tza,uza,vza,wza,yza,Aza,Bza,pza,Eza,aza,JV,Fza,Cza,Dza,Nza,Iza,Lza,Oza,Mza,Jza,Pza,Kza,Rza,RV,Tza,Uza,Vza,$V,eH,aW,rR,Yza,Kta,aAa,bW,ZV,bAa,hW,dW,PR,Zza,jW,dAa,IR,kW,lW,Msa,gW,mW,TV,cAa,Wza,XV,pW,qW,KR,kAa,WV,Eta,oW,$R,kS,cW,eAa,mAa,lAa,nAa,rW,xta,oAa,pAa,iAa,SV,qAa,sW,eW,UV,YV,LR,fW,rAa,Xza,tW,VR,sAa,tAa,uAa,wta,nW,jAa,$za,JAa,EAa,DAa,MAa,NAa,xW,BW,QAa,OAa,zW,PAa,uW,DW,EW,SAa,FW,GW,HAa,IAa,MW,VAa,LW,wW,WAa,KAa,PW,XAa,YAa,IW,JW,HW,SW,cBa,CW,dBa,eBa,TW,OW,UW,VW, fBa,KW,RAa,RW,ZAa,gBa,hBa,tL,jBa,NW,WW,lBa,yW,XW,AW,nBa,oBa,GAa,QW,pBa,FAa,YW,ZW,mua,qBa,$W,aX,bX,rBa,cX,dX,eX,fX,gX,hX,tBa,sBa,iX,uBa,jX,X,kX,wBa,mX,yBa,lX,zBa,oX,ABa,pX,nX,qX,rX,yka,zka,Qja,tX,DBa,BX,CX,BI,AX,DX,GBa,HBa,IBa,JBa,CBa,KBa,sX,LBa,MBa,GX,xX,FX,LX,HX,vX,NBa,uX,EX,IX,MX,yX,zX,KX,JX,PBa,NX,OX,QBa,PX,Y,RBa,SBa,VBa,WBa,$Ba,QX,aCa,XBa,bCa,RX,SX,TX,dCa,gCa,eCa,jCa,mCa,lCa,nCa,qCa,pCa,tCa,vCa,yCa,zCa,BCa,CCa,GCa,eY,DCa,JCa,HCa,LCa,hY,Bv,MCa,jY,yv,lY,mY,ega,nY,OCa,oY,fY,VX,pY,gY,cY,WX,PCa,qY, rY,ZX,QCa,iCa,XX,YX,bY,RCa,SCa,sY,tY,TCa,iY,aY,$X,UX,wCa,ACa,dY,ECa,oCa,rCa,uY,vY,wY,UCa,xY,yY,zY,AY,BY,CY,DY,EY,TBa,FY,UBa,WCa,VCa,cCa,xCa,XCa,KCa,YCa,uCa,hCa,fCa,ZBa,YBa,kCa,FCa,ICa,sCa,GY,ZCa,HY,CI,wX,EBa,kY,IY,JY,KY,$Ca,LY,MY,NY,OY,FJ,aDa,BBa,bDa,PY,cDa,dDa,RY,fDa,gDa,TY,UY,VY,eDa,SY,hDa,iDa,WY,Av,lDa,kDa,XY,QY,mDa,nDa,oDa,YY,ZY,pDa,qDa,rDa,sDa,$Y,aZ,bZ,cZ,dZ,eZ,fZ,tDa,gZ,hZ,iZ,jZ,kZ,lZ,uDa,vDa,wDa,mZ,nZ,oZ,pZ,xDa,qZ,yDa,rZ,zDa,sZ,ADa,tZ,uZ,vZ,wZ,xZ,yZ,BDa,AZ,BZ,CDa,DDa,EDa,DZ,CZ,EZ,FZ,FDa,GDa, GZ,HZ,HDa,IZ,JDa,IDa,JZ,KZ,KDa,LZ,MDa,NDa,LDa,ODa,MZ,PDa,QDa,NZ,OZ,PZ,RDa,QZ,RZ,SZ,SDa,TZ,UZ,TDa,VZ,zZ,WZ,XZ,xka,YZ,UDa,ZZ,VDa,$Z,a_,b_,c_,WDa,XDa,ZDa,aEa,YDa,d_,bEa,dEa,cEa,eEa,e_,f_,g_,NCa,fEa,h_,i_,j_,gEa,k_,$Da,hEa,iEa,l_,m_,jEa,n_,kEa,lEa,o_,mEa,nEa,p_,q_,s_,oEa,t_,u_,v_,pEa,w_,qEa,x_,y_,rEa,z_,sEa,A_,tEa,uEa,vEa,wEa,xEa,C_,yEa,zEa,AEa,BEa,CEa,D_,DEa,E_,F_,G_,H_,EEa,I_,FEa,GEa,HEa,L_,IEa,JEa,KEa,LEa,M_,K_,MEa,O_,NEa,P_,Q_,R_,S_,T_,OEa,QEa,PEa,REa,U_,SEa,TEa,V_,UEa,W_,X_,Y_,VEa,WEa,Z_,XEa,$_, a0,YEa,ZEa,$Ea,zv,aFa,bFa,dFa,aa,ha,ea,Na,Iaa;ba=function(a){return function(){return aa[a].apply(this,arguments)}}; g.ca=function(a,b){return aa[a]=b}; da=function(a){var b=0;return function(){return bb?null:"string"===typeof a?a.charAt(b):a[b]}; bb=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)}; Raa=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.sb(a,-(c+1),0,b)}; g.Bb=function(a,b,c){var d={};(0,g.Ab)(a,function(e,f){d[b.call(c,e,f,a)]=e}); return d}; Uaa=function(a){for(var b=[],c=0;c")&&(a=a.replace(rc,">"));-1!=a.indexOf('"')&&(a=a.replace(tc,"""));-1!=a.indexOf("'")&&(a=a.replace(uc,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(vc,"�"))}return a}; xc=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())}; g.Ac=function(a,b){var c=0;a=yc(String(a)).split(".");b=yc(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&eb?1:0}; g.Cc=function(a,b){this.i=b===Bc?a:""}; g.Dc=function(a){return a instanceof g.Cc&&a.constructor===g.Cc?a.i:"type_error:SafeUrl"}; Ec=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match($aa);return b&&aba.test(b[1])?new g.Cc(a,Bc):null}; g.Hc=function(a){a instanceof g.Cc||(a="object"==typeof a&&a.Mj?a.gh():String(a),a=Fc.test(a)?new g.Cc(a,Bc):Ec(a));return a||Gc}; g.Ic=function(a,b){if(a instanceof g.Cc)return a;a="object"==typeof a&&a.Mj?a.gh():String(a);if(b&&/^data:/i.test(a)&&(b=Ec(a)||Gc,b.gh()==a))return b;Fc.test(a)||(a="about:invalid#zClosurez");return new g.Cc(a,Bc)}; Mc=function(a,b){this.i=b===Lc?a:""}; Nc=function(a){return a instanceof Mc&&a.constructor===Mc?a.i:"type_error:SafeStyle"}; Rc=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)?g.Oc(d,Pc).join(" "):Pc(d),b+=c+":"+d+";")}return b?new Mc(b,Lc):Qc}; Pc=function(a){if(a instanceof g.Cc)return'url("'+g.Dc(a).replace(/>>0;return b}; pd=function(a){var b=Number(a);return 0==b&&g.oc(a)?NaN:b}; qd=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}; rd=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; mba=function(a){return a.replace(/(^|[\s]+)([a-z])/g,function(b,c,d){return c+d.toUpperCase()})}; sd=function(a,b,c,d,e,f,h){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);h&&(l+="#"+h);return l}; td=function(a){return a?decodeURI(a):a}; g.vd=function(a,b){return b.match(ud)[a]||null}; g.wd=function(a){return td(g.vd(3,a))}; xd=function(a){a=a.match(ud);return sd(a[1],null,a[3],a[4])}; yd=function(a){a=a.match(ud);return sd(null,null,null,null,a[5],a[6],a[7])}; zd=function(a,b){if(a){a=a.split("&");for(var c=0;cb&&(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)]}; Bd=function(a,b){return b?a?a+"&"+b:b:a}; Cd=function(a,b){if(!b)return a;a=Ad(a);a[1]=Bd(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; Dd=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 ld(a.substr(d,e-d))}; Nd=function(a,b){for(var c=a.search(Kd),d=0,e,f=[];0<=(e=Jd(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(nba,"$1")}; Od=function(a,b,c){return Id(Nd(a,b),b,c)}; oba=function(a,b){a=Ad(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]=Bd(d.join("&"),g.Fd(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; g.D=function(a,b){var c=void 0;return new (c||(c=Promise))(function(d,e){function f(m){try{l(b.next(m))}catch(n){e(n)}} function h(m){try{l(b["throw"](m))}catch(n){e(n)}} function l(m){m.done?d(m.value):(new c(function(n){n(m.value)})).then(f,h)} l((b=b.apply(a,void 0)).next())})}; Pd=function(){}; Rd=function(a,b){if(b!==Qd)throw Error("Bad secret");this.i=a}; pba=function(a){if(a instanceof Pd)if(a instanceof Rd)a=a.i;else throw Error("wrong type");else a=g.Dc(a);return a}; g.Sd=function(a,b){a.src=ic(b);var c;b=(a.ownerDocument&&a.ownerDocument.defaultView||window).document;(c=(b=null===(c=b.querySelector)||void 0===c?void 0:c.call(b,"script[nonce]"))?b.nonce||b.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",c)}; Td=function(){return Vc("iPhone")&&!Vc("iPod")&&!Vc("iPad")}; Vd=function(){return Td()||Vc("iPad")||Vc("iPod")}; Wd=function(a){Wd[" "](a);return a}; Xd=function(a,b){try{return Wd(a[b]),!0}catch(c){}return!1}; Yd=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)}; Zd=function(){var a=g.B.document;return a?a.documentMode:void 0}; g.ae=function(a){return Yd(qba,a,function(){return 0<=g.Ac($d,a)})}; g.be=function(a){return Number(rba)>=a}; g.ce=function(a,b,c){return Math.min(Math.max(a,b),c)}; g.de=function(a,b){a%=b;return 0>a*b?a+b:a}; g.ee=function(a,b,c){return a+c*(b-a)}; fe=function(a,b){return 1E-6>=Math.abs(a-b)}; g.ge=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}; he=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; g.ie=function(a,b){this.width=a;this.height=b}; g.je=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}; ke=function(a){return a.width*a.height}; oe=function(a){return a?new le(me(a)):ne||(ne=new le)}; pe=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a}; g.re=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.qe(document,"*",a,b)}; g.se=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.qe(c,"*",a,b)[0]||null}return a||null}; g.qe=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.fb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a}; ue=function(a,b){g.Cb(b,function(c,d){c&&"object"==typeof c&&c.Mj&&(c=c.gh());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:te.hasOwnProperty(d)?a.setAttribute(te[d],c):kc(d,"aria-")||kc(d,"data-")?a.setAttribute(d,c):a[d]=c})}; ve=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.ie(a.clientWidth,a.clientHeight)}; ye=function(a){var b=we(a);a=a.parentWindow||a.defaultView;return g.xe&&g.ae("10")&&a.pageYOffset!=b.scrollTop?new g.ge(b.scrollLeft,b.scrollTop):new g.ge(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}; we=function(a){return a.scrollingElement?a.scrollingElement:g.ze||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement}; Ae=function(a){return a?a.parentWindow||a.defaultView:window}; De=function(a,b,c){var d=arguments,e=document,f=String(d[0]),h=d[1];if(!sba&&h&&(h.name||h.type)){f=["<",f];h.name&&f.push(' name="',g.md(h.name),'"');if(h.type){f.push(' type="',g.md(h.type),'"');var l={};g.Wb(l,h);delete l.type;h=l}f.push(">");f=f.join("")}f=Be(e,f);h&&("string"===typeof h?f.className=h:Array.isArray(h)?f.className=h.join(" "):ue(f,h));2a}; Ue=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Te(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.fb(f.className.split(/\s+/),c))},!0,d)}; Te=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}; le=function(a){this.i=a||g.B.document||document}; Ve=function(a,b,c,d){var e=window,f="//pagead2.googlesyndication.com/bg/"+g.md(c)+".js";c=e.document;var h={};b&&(h._scs_=b);h._bgu_=f;h._bgp_=d;h._li_="v_h.3.0.0.0";(b=e.GoogleTyFxhY)&&"function"==typeof b.push||(b=e.GoogleTyFxhY=[]);b.push(h);e=oe(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=Yaa(g.dc("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.md(a)+".js"});g.Sd(e,a);c.getElementsByTagName("head")[0].appendChild(e)}; wba=function(a){return g.Oc(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.Xe=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("")}; Ze=function(a,b,c){this.l=null;this.i=this.u=this.B=0;this.C=!1;a&&Ye(this,a,b,c)}; af=function(a,b,c){if($e.length){var d=$e.pop();a&&Ye(d,a,b,c);return d}return new Ze(a,b,c)}; Ye=function(a,b,c,d){b=b.constructor===Uint8Array?b:b.constructor===ArrayBuffer?new Uint8Array(b):b.constructor===Array?new Uint8Array(b):b.constructor===String?g.bf(b):b instanceof Uint8Array?new Uint8Array(b.buffer,b.byteOffset,b.byteLength):new Uint8Array(0);a.l=b;a.B=void 0!==c?c:0;a.u=void 0!==d?a.B+d:a.l.length;a.i=a.B}; cf=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=a.l[a.i++],c|=(b&127)<<7*e;128<=b&&(b=a.l[a.i++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.l[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.C=!0}; df=function(a){var b=a.l;var c=b[a.i+0];var 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}; ef=function(a){this.i=af(a,void 0,void 0);this.C=this.i.i;this.l=this.u=-1;this.B=!1}; ff=function(a){var b=a.i;(b=b.i==b.u)||(b=a.B)||(b=a.i,b=b.C||0>b.i||b.i>b.u);if(b)return!1;a.C=a.i.i;b=df(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.u=b>>>3;a.l=c;return!0}; gf=function(a){switch(a.l){case 0:if(0!=a.l)gf(a);else{for(a=a.i;a.l[a.i]&128;)a.i++;a.i++}break;case 1:1!=a.l?gf(a):a.i.advance(8);break;case 2:if(2!=a.l)gf(a);else{var b=df(a.i);a.i.advance(b)}break;case 5:5!=a.l?gf(a):a.i.advance(4);break;case 3:b=a.u;do{if(!ff(a)){a.B=!0;break}if(4==a.l){a.u!=b&&(a.B=!0);break}gf(a)}while(1);break;default:a.B=!0}}; hf=function(a){var b=df(a.i);a=a.i;var c=a.l,d=a.i,e=d+b;b=[];for(var f="";dh)b.push(h);else if(192>h)continue;else if(224>h){var l=c[d++];b.push((h&31)<<6|l&63)}else if(240>h){l=c[d++];var m=c[d++];b.push((h&15)<<12|(l&63)<<6|m&63)}else if(248>h){l=c[d++];m=c[d++];var n=c[d++];h=(h&7)<<18|(l&63)<<12|(m&63)<<6|n&63;h-=65536;b.push((h>>10&1023)+55296,(h&1023)+56320)}8192<=b.length&&(f+=String.fromCharCode.apply(null,b),b.length=0)}c=f;if(8192>=b.length)b=String.fromCharCode.apply(null, b);else{e="";for(f=0;fb||a.i+b>a.l.length)a.C=!0,b=new Uint8Array(0);else{var c=a.l.subarray(a.i,a.i+b);a.i+=b;b=c}return b}; kf=function(){this.i=[]}; lf=function(a,b){for(;127>>=7;a.i.push(b)}; mf=function(a,b){a.i.push(b>>>0&255);a.i.push(b>>>8&255);a.i.push(b>>>16&255);a.i.push(b>>>24&255)}; g.sf=function(a,b){void 0===b&&(b=0);nf();b=rf[b];for(var c=[],d=0;d>2;e=(e&3)<<4|h>>4;h=(h&15)<<2|m>>6;m&=63;l||(m=64,f||(h=64));c.push(b[n],b[e],b[h]||"",b[m]||"")}return c.join("")}; g.tf=function(a){for(var b=[],c=0,d=0;d>=8);b[c++]=e}return g.sf(b,3)}; xba=function(a){var b=[];uf(a,function(c){b.push(c)}); return b}; g.bf=function(a){!g.xe||g.ae("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;uf(a,function(f){d[e++]=f}); return d.subarray(0,e)}; uf=function(a,b){function c(m){for(;d>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}}; nf=function(){if(!vf){vf={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));rf[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.i.push(c)}}; Af=function(a){if(Array.isArray(a)){for(var b=Array(a.length),c=0;ca.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}; g.rg=function(a){var b=me(a),c=new g.ge(0,0);var d=b?me(b):document;d=!g.xe||g.be(9)||"CSS1Compat"==oe(d).i.compatMode?d.documentElement:d.body;if(a==d)return c;a=qg(a);b=ye(oe(b).i);c.x=a.left+b.x;c.y=a.top+b.y;return c}; tg=function(a,b){var c=new g.ge(0,0),d=Ae(me(a));if(!Xd(d,"parent"))return c;do{var e=d==b?g.rg(a):sg(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.vg=function(a,b){a=ug(a);b=ug(b);return new g.ge(a.x-b.x,a.y-b.y)}; sg=function(a){a=qg(a);return new g.ge(a.left,a.top)}; ug=function(a){if(1==a.nodeType)return sg(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.ge(a.clientX,a.clientY)}; g.wg=function(a,b,c){if(b instanceof g.ie)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.og(b,!0);a.style.height=g.og(c,!0)}; g.og=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}; g.xg=function(a){var b=Iba;if("none"!=ng(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}; Iba=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.ze&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=qg(a),new g.ie(a.right-a.left,a.bottom-a.top)):new g.ie(b,c)}; g.yg=function(a,b){a.style.display=b?"":"none"}; Cg=function(){if(zg&&!Sf(Ag)){var a="."+Bg.domain;try{for(;2e?encodeURIComponent(ah(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))}; Qba=function(a,b,c){b=b+"//pagead2.googlesyndication.com"+c;var d=Pba(a)-c.length;if(0>d)return"";a.i.sort(function(p,r){return p-r}); c=null;for(var e="",f=0;f=n.length){d-=n.length;b+=n;e=a.u;break}c=null==c?h:c}}a="";null!=c&&(a=e+"trn="+c);return b+a+""}; Pba=function(a){var b=1,c;for(c in a.l)b=c.length>b?c.length:b;return 3997-b-a.u.length-1}; bh=function(a,b){this.i=a;this.depth=b}; Sba=function(){function a(l,m){return null==l?m:l} var b=Vg(),c=Math.max(b.length-1,0),d=Xg(b);b=d.i;var e=d.l,f=d.u,h=[];f&&h.push(new bh([f.url,f.eB?2:0],a(f.depth,1)));e&&e!=f&&h.push(new bh([e.url,2],0));b.url&&b!=f&&h.push(new bh([b.url,0],a(b.depth,c)));d=g.Oc(h,function(l,m){return h.slice(0,h.length-m)}); !b.url||(f||e)&&b!=f||(e=Dba(b.url))&&d.push([new bh([e,1],a(b.depth,c))]);d.push([]);return g.Oc(d,function(l){return Rba(c,l)})}; Rba=function(a,b){g.ch(b,function(e){return 0<=e.depth}); var c=dh(b,function(e,f){return Math.max(e,f.depth)},-1),d=Uaa(c+2); d[0]=a;g.Ab(b,function(e){return d[e.depth+1]=e.i}); return d}; Tba=function(){var a=Sba();return g.Oc(a,function(b){return $g(b)})}; eh=function(){this.l=new Ug;this.i=Qg()?new Rg:new Pg}; Uba=function(){fh();var a=Sg.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Sg.setInterval&&"function"===typeof Sg.clearInterval&&"function"===typeof Sg.setTimeout&&"function"===typeof Sg.clearTimeout)}; gh=function(a){fh();var b=Cg()||Sg;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)}; hh=function(){fh();return Tba()}; ih=function(){}; fh=function(){return ih.getInstance().getContext()}; jh=function(a){Gf(this,a,null)}; Vba=function(a){this.u=a;this.i=-1;this.l=this.B=0}; kh=function(a,b){return function(c){for(var d=[],e=0;eMath.random())}; th=function(a){a&&sh&&qh()&&(sh.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),sh.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))}; yh=function(){var a=uh;this.i=vh;this.TF="jserror";this.GC=!0;this.Bz=null;this.l=this.sB;this.Hb=void 0===a?null:a}; Bh=function(a,b,c,d){return kh(mh.getInstance().i.i,function(){try{if(a.Hb&&a.Hb.i){var e=a.Hb.start(b.toString(),3);var f=c();a.Hb.end(e)}else f=c()}catch(m){var h=a.GC;try{th(e);var l=new zh(Ah(m));h=a.l(b,l,void 0,d)}catch(n){a.sB(217,n)}if(!h)throw m;}return f})()}; Dh=function(a,b,c){var d=Ch;return kh(mh.getInstance().i.i,function(e){for(var f=[],h=0;hd?500:h}; Nh=function(a,b,c){var d=new Xf(0,0,0,0);this.time=a;this.volume=null;this.u=b;this.i=d;this.l=c}; Oh=function(a,b,c,d,e,f,h){this.B=a;this.u=b;this.G=c;this.i=d;this.C=e;this.l=f;this.J=h}; Ph=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,Sf(a)&&(c=a,b=d);return{Pf:c,level:b}}; Qh=function(a){var b=a!==a.top,c=a.top===Ph(a).Pf,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),Gb(fca,function(h){return"function"===typeof f[h]})||(e=1)); return{Fi:f,compatibility:e,VS:d}}; gca=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint}; Rh=function(a,b,c,d){var e=void 0===e?!1:e;c=Dh(d,c,void 0);Of(a,b,c,{capture:e})}; Sh=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b}; Th=function(a){return new Xf(a.top,a.right,a.bottom,a.left)}; Uh=function(a){var b=a.top||0,c=a.left||0;return new Xf(b,c+(a.width||0),b+(a.height||0),c)}; Vh=function(a){return null!=a&&0<=a&&1>=a}; hca=function(){var a=g.Uc;return a?Wh("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return xc(a,b)})||xc(a,"OMI/")&&!xc(a,"XiaoMi/")?!0:xc(a,"Presto")&&xc(a,"Linux")&&!xc(a,"X11")&&!xc(a,"Android")&&!xc(a,"Mobi"):!1}; Xh=function(){this.u=!Sf(Sg.top);this.isMobileDevice=Qf()||Rf();var a=Vg();this.domain=0c.height?m>p?(d=m,e=n):(d=p,e=r):mb.u?!1:a.lb.l?!1:typeof a.itypeof b.i?!1:a.ic++;){if(a===b)return!0;try{if(a=g.Ke(a)||a){var d=me(a),e=d&&Ae(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1}; qca=function(a,b,c){if(!a||!b)return!1;b=Zf(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=Cg();Sf(d.top)&&d.top&&d.top.document&&(d=d.top);if(!gca(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=me(c))&&b.defaultView&&b.defaultView.frameElement)&&pca(b,a);d=a===c;a=!d&&a&&Te(a,function(e){return e===c}); return!(b||d||a)}; rca=function(a,b,c,d){return Xh.getInstance().u?!1:0>=Yf(a)||0>=a.getHeight()?!0:c&&d?Fh(208,function(){return qca(a,b,c)}):!1}; Qi=function(a,b,c){g.F.call(this);this.position=sca.clone();this.Jw=this.Uv();this.qB=-2;this.hT=Date.now();this.IJ=-1;this.lastUpdateTime=b;this.Aw=null;this.Bv=!1;this.Tw=null;this.opacity=-1;this.requestSource=c;this.TJ=this.uB=g.Ia;this.Bg=new Mba;this.Bg.Am=a;this.Bg.i=a;this.rq=!1;this.On={BB:null,zB:null};this.sJ=!0;this.ju=null;this.kq=this.BO=!1;mh.getInstance().G++;this.Te=this.EA();this.DJ=-1;this.kd=null;this.yO=!1;a=this.featureSet=new Kg;Lg(a,"od",tca);Lg(a,"opac",lh).i=!0;Lg(a,"sbeos", lh).i=!0;Lg(a,"prf",lh).i=!0;Lg(a,"mwt",lh).i=!0;Lg(a,"iogeo",lh);(a=this.Bg.Am)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(uca&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+rd()):a.getAttribute("data-"+rd()))&&(Xh.getInstance().l=!0);1==this.requestSource?Mg(this.featureSet,"od",1):Mg(this.featureSet,"od",0)}; Ri=function(a,b){b!=a.kq&&(a.kq=b,a=Xh.getInstance(),b?a.G++:0c?0:a}; vca=function(a,b,c){if(a.kd){a.kd.Kl();var d=a.kd.J,e=d.B,f=e.i;if(null!=d.G){var h=d.u;a.Tw=new g.ge(h.left-f.left,h.top-f.top)}f=a.Gx()?Math.max(d.i,d.C):d.i;h={};null!==e.volume&&(h.volume=e.volume);e=a.pG(d);a.Aw=d;a.Ma(f,b,c,!1,h,e,d.J)}}; wca=function(a){if(a.Bv&&a.ju){var b=1==Ng(a.featureSet,"od"),c=Xh.getInstance().i,d=a.ju,e=a.kd?a.kd.getName():"ns",f=new g.ie(Yf(c),c.getHeight());c=a.Gx();a={XS:e,Tw:a.Tw,DT:f,Gx:c,Oc:a.Te.Oc,BT:b};if(b=d.l){b.Kl();e=b.J;f=e.B.i;var h=null,l=null;null!=e.G&&f&&(h=e.u,h=new g.ge(h.left-f.left,h.top-f.top),l=new g.ie(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.i,e.C):e.i;c={XS:b.getName(),Tw:h,DT:l,Gx:c,BT:!1,Oc:e}}else c=null;c&&mca(d,a,c)}}; xca=function(a,b,c){b&&(a.uB=b);c&&(a.TJ=c)}; g.Ui=function(){}; yca=function(){this.B=this.i=this.u=this.l=this.C=0}; zca=function(a){var b={};var c=g.Ra()-a.C;b=(b.ptlt=c,b);(c=a.l)&&(b.pnk=c);(c=a.u)&&(b.pnc=c);(c=a.B)&&(b.pnmm=c);(a=a.i)&&(b.pns=a);return b}; Vi=function(){Fg.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; Wi=function(a){return Vh(a.volume)&&0Math.max(1E4,a.u/3)?0:b);var c=a.L(a)||{};c=void 0!==c.currentTime?c.currentTime:a.Y;var d=c-a.Y,e=0;0<=d?(a.X+=b,a.Aa+=Math.max(b-d,0),e=Math.min(d,a.X)):a.Ea+=Math.abs(d);0!=d&&(a.X=0);-1==a.Ha&&0=a.u/2:0=a.xa:!1:!1}; Gca=function(a){var b=Sh(a.Te.Oc,2),c=a.Le.u,d=a.Te,e=jj(a),f=ij(e.B),h=ij(e.G),l=ij(d.volume),m=Sh(e.J,2),n=Sh(e.X,2),p=Sh(d.Oc,2),r=Sh(e.ma,2),t=Sh(e.xa,2);d=Sh(d.Qg,2);a=a.em().clone();a.round();e=Ni(e,!1);return{CT:b,Us:c,Kw:f,Gw:h,Jr:l,Lw:m,Hw:n,Oc:p,Mw:r,Iw:t,Qg:d,position:a,Rw:e}}; nj=function(a,b){mj(a.i,b,function(){return{CT:0,Us:void 0,Kw:-1,Gw:-1,Jr:-1,Lw:-1,Hw:-1,Oc:-1,Mw:-1,Iw:-1,Qg:-1,position:void 0,Rw:[]}}); a.i[b]=Gca(a)}; mj=function(a,b,c){for(var d=a.length;dc.time?b:c},a[0])}; Oj=function(a){a=void 0===a?Sg:a;ji.call(this,new bi(a,2))}; Qj=function(){var a=Pj();bi.call(this,Sg.top,a,"geo")}; Pj=function(){mh.getInstance();var a=Xh.getInstance();return a.u||a.l?0:2}; Rj=function(){}; Sj=function(){this.done=!1;this.i={SM:0,aF:0,C6:0,RF:0,bB:-1,jN:0,iN:0,kN:0};this.C=null;this.G=!1;this.u=null;this.J=0;this.l=new ai(this)}; Uj=function(){var a=Tj;a.G||(a.G=!0,$ca(a,function(b){for(var c=[],d=0;dm?1:0)?-m:m;if(0===m)yf=0<1/m?0:2147483648,xf=0;else if(isNaN(m))yf=2147483647,xf=4294967295;else if(1.7976931348623157E308>>0,xf=0;else if(2.2250738585072014E-308>m)m/=Math.pow(2,-1074),yf=(h<<31|m/4294967296)>>>0,xf=m>>>0;else{n=m;l=0;if(2<=n)for(;2<= n&&1023>l;)l++,n/=2;else for(;1>n&&-1022>>0;xf=4503599627370496*m>>>0}mf(y,xf);mf(y,yf)}y=If(f,2);0!==y&&zf(x,2,y);y=If(f,3);0!==y&&zf(x,3,y);y=If(f,4);0!==y&&zf(x,4,y);y=If(f,5);if(0!==y&&(f=y,null!=f&&null!=f))if(lf(x.i,40),y=x.i,0<=f)lf(y,f);else{for(h=0;9>h;h++)y.i.push(f&127|128),f>>=7;y.i.push(1)}y=new Uint8Array(x.u+x.i.length());h=x.l;l=h.length;for(m=f=0;mg.Kb(fda).length?null:dh(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===jk[d[0]]||!jk[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}}; hda=function(a,b){if(void 0==a.i)return 0;switch(a.C){case "mtos":return a.l?Ji(b.i,a.i):Ji(b.l,a.i);case "tos":return a.l?Hi(b.i,a.i):Hi(b.l,a.i)}return 0}; kk=function(a,b,c,d){aj.call(this,b,d);this.G=a;this.J=c}; lk=function(a){aj.call(this,"fully_viewable_audible_half_duration_impression",a)}; mk=function(a,b){aj.call(this,a,b)}; nk=function(){this.l=this.B=this.G=this.C=this.u=this.i=""}; ida=function(){}; ok=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.Wb(f,a);void 0!==c&&g.Wb(f,c);a=oi(ni(new mi,f));0String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1}; Rk=function(a){return!!(1<>>0]|=f<>>0).toString(16)+"&"}); c=105;g.Ab(wda,function(d){var e="false";try{e=d(Sg)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"}); g.Ab(xda,function(d){var e="";try{e=g.tf(d(Sg))}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"}); return a.slice(0,-1)}; uda=function(){if(!Sk){var a=function(){Tk=!0;Sg.document.removeEventListener("webdriver-evaluate",a,!0)}; Sg.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){Uk=!0;Sg.document.removeEventListener("webdriver-evaluate-response",b,!0)}; Sg.document.addEventListener("webdriver-evaluate-response",b,!0);Sk=!0}}; Vk=function(){this.blockSize=-1}; Wk=function(){this.blockSize=-1;this.blockSize=64;this.i=Array(4);this.B=Array(this.blockSize);this.u=this.l=0;this.reset()}; Xk=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}; Yk=function(){this.l=null}; Zk=function(a){return function(b){var c=new Wk;c.update(b+a);return wba(c.digest()).slice(-8)}}; $k=function(a,b){this.u=a;this.B=b}; bj=function(a,b,c){var d=a.i(c);if("function"===typeof d){var e={};e=(e.sv="897",e.cb="j",e.e=zda(b),e);var f=qj(c,b,$h());g.Wb(e,f);c.fK[b]=f;a=2==c.Jj()?lca(e).join("&"):a.B.i(e).i;try{return d(c.wf,a,b),0}catch(h){return 2}}else return 1}; zda=function(a){var b=ik(a)?"custom_metric_viewable":a;a=Nb(oj,function(c){return c==b}); return gk[a]}; al=function(a,b,c){$k.call(this,a,b);this.l=c}; bl=function(){Ck.call(this);this.G=null;this.C=!1;this.J={};this.u=new Yk}; Ada=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.l&&Array.isArray(c)&&nda(a,c,b)}; Bda=function(a,b,c){var d=zj(Bj,b);d||(d=c.opt_nativeTime||-1,d=Dk(a,b,Ik(a),d),c.opt_osdId&&(d.Bq=c.opt_osdId));return d}; Cda=function(a,b,c){var d=zj(Bj,b);d||(d=Dk(a,b,"n",c.opt_nativeTime||-1));return d}; Dda=function(a,b){var c=zj(Bj,b);c||(c=Dk(a,b,"h",-1));return c}; Eda=function(a){mh.getInstance();switch(Ik(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}; dl=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.Wb(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.u.i(hk("ol",d));if(void 0!==d)if(void 0!==fk(d))if(Fk)b=hk("ue",d);else if(qda(a),"i"==Gk)b=hk("i",d),b["if"]=0;else if(b=a.Yv(b,e))if(a.B&&3==b.ag)b="stopped";else{b:{"i"==Gk&&(b.rq=!0,a.wC());c=e.opt_fullscreen;void 0!==c&&Ri(b,!!c);var f;if(c=!Xh.getInstance().l)(c=xc(g.Uc,"CrKey")||xc(g.Uc,"PlayStation")||xc(g.Uc,"Roku")||hca()||xc(g.Uc,"Xbox"))||(c=g.Uc,c=xc(c,"AppleTV")|| xc(c,"Apple TV")||xc(c,"CFNetwork")||xc(c,"tvOS")),c||(c=g.Uc,c=xc(c,"sdk_google_atv_x86")||xc(c,"Android TV")),c=!c;c&&(fh(),c=0===Tg(Bg));if(f=c){switch(b.Jj()){case 1:Kk(a,b,"pv");break;case 2:a.oC(b)}Hk("pv")}c=d.toLowerCase();if(f=!f)f=Ng(mh.getInstance().featureSet,"ssmol")&&"loaded"===c?!1:g.fb(Fda,c);if(f&&0==b.ag){"i"!=Gk&&(Tj.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;Mh=f="number"===typeof f?f:Ih();b.Bv=!0;var h=$h();b.ag=1;b.Xe={};b.Xe.start=!1;b.Xe.firstquartile=!1;b.Xe.midpoint=!1; b.Xe.thirdquartile=!1;b.Xe.complete=!1;b.Xe.resume=!1;b.Xe.pause=!1;b.Xe.skip=!1;b.Xe.mute=!1;b.Xe.unmute=!1;b.Xe.viewable_impression=!1;b.Xe.measurable_impression=!1;b.Xe.fully_viewable_audible_half_duration_impression=!1;b.Xe.fullscreen=!1;b.Xe.exitfullscreen=!1;b.eA=0;h||(b.Eg().L=f);Vj(Tj,[b],!h)}(f=b.mp[c])&&Xi(b.Le,f);g.fb(Gda,c)&&!b.rq&&b.Ho&&0!=b.ag&&(f=b.Ho,f.i||(f.i=cj(f,b)));switch(b.Jj()){case 1:var l=ik(c)?a.L.custom_metric_viewable:a.L[c];break;case 2:l=a.U[c]}if(l&&(d=l.call(a,b,e, d),void 0!==d)){e=hk(void 0,c);g.Wb(e,d);d=e;break b}d=void 0}3==b.ag&&(a.B?b.kd&&b.kd.dr():a.Xr(b));b=d}else b=hk("nf",d);else b=void 0;else Fk?b=hk("ue"):(b=a.Yv(b,e))?(d=hk(),g.Wb(d,pj(b,!0,!1,!1)),b=d):b=hk("nf");return"string"===typeof b?a.B&&"stopped"===b?cl:a.u.i(void 0):a.u.i(b)}; el=function(a){return mh.getInstance(),"h"!=Ik(a)&&Ik(a),!1}; fl=function(a){var b={};return b.viewability=a.i,b.googleViewability=a.u,b.moatInit=a.C,b.moatViewability=a.G,b.integralAdsViewability=a.B,b.doubleVerifyViewability=a.l,b}; gl=function(a,b,c){c=void 0===c?{}:c;a=dl(bl.getInstance(),b,c,a);return fl(a)}; hl=function(a,b){b=void 0===b?!1:b;var c=bl.getInstance().Yv(a,{});c?hj(c):b&&(a=bl.getInstance().Lt(null,Ih(),!1,a),a.ag=3,Ej([a]))}; il=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!== c&&"app"!==c&&"devtools"!==c)throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a}; Hda=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0} function b(r){for(var t=h,u=0;64>u;u+=4)t[u/4]=r[u]<<24|r[u+1]<<16|r[u+2]<<8|r[u+3];for(u=16;80>u;u++)r=t[u-3]^t[u-8]^t[u-14]^t[u-16],t[u]=(r<<1|r>>>31)&4294967295;r=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 I=A^x&(y^A);var H=1518500249}else I=x^y^A,H=1859775393;else 60>u?(I=x&y|A&(x|y),H=2400959708):(I=x^y^A,H=3395469782);I=((r<<5|r>>>27)&4294967295)+I+E+H+t[u]&4294967295;E=A;A=y;y=(x<<30|x>>>2)&4294967295;x=r;r=I}e[0]=e[0]+r&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(r,t){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var u=[],x=0,y=r.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)r[t++]=e[u]>>x&255;return r} 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,rN:function(){for(var r=d(),t="",u=0;ua.l&&(a.l++,b.next=a.i,a.i=b)}; Zl=function(a){"function"!==typeof g.B.setImmediate||g.B.Window&&g.B.Window.prototype&&!Vc("Edge")&&g.B.Window.prototype.setImmediate==g.B.setImmediate?(Yl||(Yl=Qda()),Yl(a)):g.B.setImmediate(a)}; Qda=function(){var a=g.B.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Vc("Presto")&&(a=function(){var e=g.Ee("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.C)(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&&!Vc("Trident")&&!Vc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.sF;c.sF=null;e()}}; return function(e){d.next={sF:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.B.setTimeout(e,0)}}; $l=function(a){g.B.setTimeout(function(){throw a;},0)}; am=function(){this.l=this.i=null}; bm=function(){this.next=this.scope=this.i=null}; g.fm=function(a,b){cm||Rda();dm||(cm(),dm=!0);em.add(a,b)}; Rda=function(){if(g.B.Promise&&g.B.Promise.resolve){var a=g.B.Promise.resolve(void 0);cm=function(){a.then(gm)}}else cm=function(){Zl(gm)}}; gm=function(){for(var a;a=em.remove();){try{a.i.call(a.scope)}catch(b){$l(b)}Xl(hm,a)}dm=!1}; im=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}}; km=function(a){this.gb=0;this.Mm=void 0;this.Qp=this.Ll=this.Oo=null;this.cw=this.qA=!1;if(a!=g.Ia)try{var b=this;a.call(void 0,function(c){jm(b,2,c)},function(c){jm(b,3,c)})}catch(c){jm(this,3,c)}}; lm=function(){this.next=this.context=this.onRejected=this.l=this.i=null;this.u=!1}; nm=function(a,b,c){var d=mm.get();d.l=a;d.onRejected=b;d.context=c;return d}; om=function(a){if(a instanceof km)return a;var b=new km(g.Ia);jm(b,2,a);return b}; pm=function(a){return new km(function(b,c){c(a)})}; rm=function(a,b,c){qm(a,b,c,null)||g.fm(g.Pa(b,a))}; Sda=function(a){return new km(function(b,c){a.length||b(void 0);for(var d=0,e;db)throw Error("Bad port number "+b);a.u=b}else a.u=null}; Vm=function(a,b,c){b instanceof Xm?(a.l=b,Wda(a.l,a.G)):(c||(b=Ym(b,Xda)),a.l=new Xm(b,a.G))}; g.Zm=function(a){return a instanceof g.Rm?a.clone():new g.Rm(a,void 0)}; Wm=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}; Ym=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Yda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}; Yda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}; Xm=function(a,b){this.l=this.i=null;this.u=a||null;this.B=!!b}; $m=function(a){a.i||(a.i=new g.Om,a.l=0,a.u&&zd(a.u,function(b,c){a.add(ld(b),c)}))}; bn=function(a,b){$m(a);b=an(a,b);return a.i.has(b)}; g.cn=function(a,b,c){a.remove(b);0e;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.i[0];c=a.i[1];var h=a.i[2],l=a.i[3],m=a.i[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=l^c&(h^l);var n=1518500249}else f=c^h^l,n=1859775393;else 60>e?(f=c&h|l&(c|h),n=2400959708): (f=c^h^l,n=3395469782);f=(b<<5|b>>>27)+f+m+n+d[e]&4294967295;m=l;l=h;h=(c<<30|c>>>2)&4294967295;c=b;b=f}a.i[0]=a.i[0]+b&4294967295;a.i[1]=a.i[1]+c&4294967295;a.i[2]=a.i[2]+h&4294967295;a.i[3]=a.i[3]+l&4294967295;a.i[4]=a.i[4]+m&4294967295}; rn=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""}; sn=function(a){return a.classList?a.classList:rn(a).match(/\S+/g)||[]}; g.tn=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)}; g.un=function(a,b){return a.classList?a.classList.contains(b):g.fb(sn(a),b)}; g.K=function(a,b){if(a.classList)a.classList.add(b);else if(!g.un(a,b)){var c=rn(a);g.tn(a,c+(0document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)}; iea=function(a){if(!a)return Qc;var b=document.createElement("div").style,c=eea(a);g.Ab(c,function(d){var e=g.ze&&d in fea?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");kc(e,"--")||kc(e,"var")||(d=Dn(gea,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[d])||"",d=dea(d),null!=d&&Dn(hea,b,b.setProperty?"setProperty":"setAttribute",[e,d]))}); return jba(b.cssText||"")}; eea=function(a){g.La(a)?a=g.pb(a):(a=g.Kb(a),g.lb(a,"cssText"));return a}; g.Fn=function(a){var b,c=b=0,d=!1;a=a.split(jea);for(var e=0;eg.Ra()}; g.Vn=function(a){this.i=a}; qea=function(){}; Wn=function(){}; Xn=function(a){this.i=a}; Yn=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.i=a}; Zn=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.i=a}; ao=function(a,b){this.l=a;this.i=null;if(g.xe&&!g.be(9)){$n||($n=new g.Om);this.i=$n.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)),$n.set(a,this.i));try{this.i.load(this.l)}catch(c){this.i=null}}}; bo=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return rea[b]})}; co=function(a){try{a.i.save(a.l)}catch(b){throw"Storage mechanism: Quota exceeded";}}; ro=function(a,b){this.l=a;this.i=b+"::"}; g.so=function(a){var b=new Yn;return b.isAvailable()?a?new ro(b,a):b:null}; to=function(a,b){this.i=a;this.l=b}; uo=function(a){this.i=[];if(a)a:{if(a instanceof uo){var b=a.Hh();a=a.Fg();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}; wo=function(){uo.call(this)}; xo=function(){}; yo=function(a){for(var b=[],c=0;cm.status,t=500<=m.status&&600>m.status;if(n||r||t)p=Jea(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||{};r=b.context||g.B;n?b.onSuccess&&b.onSuccess.call(r,m,p):b.onError&&b.onError.call(r,m,p);b.onFinish&&b.onFinish.call(r,m,p)}}, b.method,d,b.headers,b.responseType,b.withCredentials); if(b.onTimeout&&0=m||403===pp(p.xhr))return pm(new Bp("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var r=0a;a++)this.l.push(0);this.u=0;this.X=g.Xp(window,"mousemove",(0,g.C)(this.U,this));this.L=sp((0,g.C)(this.Y,this),25)}; iq=function(){}; kq=function(a,b,c){return jq(b,0,c)}; g.lq=function(a,b){return jq(a,1,b)}; mq=function(){iq.apply(this,arguments)}; nq=function(){mq.i||(mq.i=new mq);return mq.i}; g.oq=function(){return!!g.Ha("yt.scheduler.instance")}; jq=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ha("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.rp(a,c||0)}; g.pq=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ha("yt.scheduler.instance.cancelJob");b?b(a):g.tp(a)}}; qq=function(a){var b=g.Ha("yt.scheduler.instance.setPriorityThreshold");b&&b(a)}; tq=function(){var a={},b=void 0===a.tO?!0:a.tO;a=void 0===a.uS?!1:a.uS;if(null==g.Ha("_lact",window)){var c=parseInt(g.M("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Ga("_lact",c,window);g.Ga("_fact",c,window);-1==c&&rq();g.Xp(document,"keydown",rq);g.Xp(document,"keyup",rq);g.Xp(document,"mousedown",rq);g.Xp(document,"mouseup",rq);b&&(a?g.Xp(window,"touchmove",function(){sq("touchmove",200)},{passive:!0}):(g.Xp(window,"resize",function(){sq("resize",200)}),g.Xp(window,"scroll",function(){sq("scroll", 200)}))); new hq(function(){sq("mouse",100)}); g.Xp(document,"touchstart",rq,{passive:!0});g.Xp(document,"touchend",rq,{passive:!0})}}; sq=function(a,b){uq[a]||(uq[a]=!0,g.lq(function(){rq();uq[a]=!1},b))}; rq=function(){null==g.Ha("_lact",window)&&(tq(),g.Ha("_lact",window));var a=Date.now();g.Ga("_lact",a,window);-1==g.Ha("_fact",window)&&g.Ga("_fact",a,window);(a=g.Ha("ytglobal.ytUtilActivityCallback_"))&&a()}; vq=function(){var a=g.Ha("_lact",window),b;null==a?b=-1:b=Math.max(Date.now()-a,0);return b}; wq=function(){var a=/Chrome\/(\d+)/.exec(g.Uc);return a?parseFloat(a[1]):NaN}; xq=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.Uc);if(!a)return NaN;var b=[];a=g.q(a[1].split("."));for(var c=a.next();!c.done;c=a.next())c=parseInt(c.value,10),0<=c&&b.push(c);return parseFloat(b.join("."))}; zq=function(){return yq("android")&&yq("chrome")&&!(yq("trident/")||yq("edge/"))&&!yq("cobalt")}; Aq=function(){return yq("armv7")||yq("aarch64")||yq("android")}; g.Bq=function(){return yq("cobalt")}; Cq=function(){return yq("cobalt")&&yq("appletv")}; Dq=function(){return yq("(ps3; leanback shell)")||yq("ps3")&&g.Bq()}; Eq=function(){return yq("(ps4; leanback shell)")||yq("ps4")&&g.Bq()}; g.Fq=function(){return g.Bq()&&(yq("ps4 vr")||yq("ps4 pro vr"))}; Gq=function(){var a=/WebKit\/([0-9]+)/.exec(g.Uc);return!!(a&&600<=parseInt(a[1],10))}; Hq=function(){var a=/WebKit\/([0-9]+)/.exec(g.Uc);return!!(a&&602<=parseInt(a[1],10))}; Iq=function(){return yq("iemobile")||yq("windows phone")&&yq("edge")}; Kq=function(){return Jq&&yq("applewebkit")&&!yq("version")&&(!yq("safari")||yq("gsa/"))}; Mq=function(){return g.Lq&&yq("version/")}; Nq=function(){return yq("smart-tv")&&yq("samsung")}; yq=function(a){var b=g.Uc;return b?0<=b.toLowerCase().indexOf(a):!1}; g.Pq=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.Bq())a&&(a=g.Dc(g.Hc(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.ad(cd(a)).toString(),a=kd(g.vj(a))),g.oc(a)||(a=De("IFRAME",{src:'javascript:""',style:"display:none"}),me(a).body.appendChild(a)));else if(e)xp(a,b,"POST",e,d);else if(g.M("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)xp(a,b,"GET","",d);else{b:{try{var f=new Maa({url:a});if(f.u&&f.l||f.B){var h=td(g.vd(5,a));var l=!(!h||!h.endsWith("/aclk")|| "1"!==Md(a,"ri"));break b}}catch(m){}l=!1}l?Oq(a)?(b&&b(),c=!0):c=!1:c=!1;c||Sea(a,b)}}; Qq=function(a,b,c){c=void 0===c?"":c;Oq(a,c)?b&&b():g.Pq(a,b,void 0,void 0,c)}; Oq=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1}; Sea=function(a,b){var c=new Image,d=""+Tea++;Rq[d]=c;c.onload=c.onerror=function(){b&&Rq[d]&&b();delete Rq[d]}; c.src=a}; g.Wq=function(a,b,c){var d=g.Sq();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){Tq[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)}; try{g.Uq[a]?h():g.rp(h,0)}catch(l){g.Xo(l)}},c); Tq[e]=!0;Vq[a]||(Vq[a]=[]);Vq[a].push(e);return e}return 0}; g.Xq=function(a){var b=g.Sq();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Ab(a,function(c){b.unsubscribeByKey(c);delete Tq[c]}))}; g.Yq=function(a,b){var c=g.Sq();return c?c.publish.apply(c,arguments):!1}; $q=function(a){var b=g.Sq();if(b)if(b.clear(a),a)Zq(a);else for(var c in Vq)Zq(c)}; g.Sq=function(){return g.B.ytPubsubPubsubInstance}; Zq=function(a){Vq[a]&&(a=Vq[a],g.Ab(a,function(b){Tq[b]&&delete Tq[b]}),a.length=0)}; Uea=function(a,b){if("log_event"===a.endpoint){var c="";a.zv?c="visitorOnlyApprovedKey":a.Ce&&(ar[a.Ce.token]=br(a.Ce),c=a.Ce.token);var d=cr.get(c)||[];cr.set(c,d);d.push(a.payload);b&&(dr=new b);a=To("tvhtml5_logging_max_batch")||To("web_logging_max_batch")||100;b=(0,g.O)();d.length>=a?er({writeThenSend:!0}):10<=b-fr&&(gr(),fr=b)}}; Vea=function(a,b){if("log_event"===a.endpoint){var c="";a.zv?c="visitorOnlyApprovedKey":a.Ce&&(ar[a.Ce.token]=br(a.Ce),c=a.Ce.token);var d=new Map;d.set(c,[a.payload]);b&&(dr=new b);return new km(function(e){dr&&dr.isReady()?hr(d,e,{bypassNetworkless:!0}):e()})}}; er=function(a){a=void 0===a?{}:a;new km(function(b){g.tp(ir);g.tp(jr);jr=0;dr&&dr.isReady()?(hr(cr,b,a),cr.clear()):(gr(),b())})}; gr=function(){g.So("web_gel_timeout_cap")&&!jr&&(jr=g.rp(function(){er({writeThenSend:!0})},6E4)); g.tp(ir);var a=g.M("LOGGING_BATCH_TIMEOUT",To("web_gel_debounce_ms",1E4));g.So("shorten_initial_gel_batch_timeout")&&kr&&(a=Wea);ir=g.rp(function(){er({writeThenSend:!0})},a)}; hr=function(a,b,c){var d=dr;c=void 0===c?{}:c;var e=Math.round((0,g.O)()),f=a.size;a=g.q(a);for(var h=a.next();!h.done;h=a.next()){var l=g.q(h.value);h=l.next().value;var m=l.next().value;l=g.Ub({context:g.lr(d.config_||g.mr())});l.events=m;(m=ar[h])&&Xea(l,h,m);delete ar[h];h="visitorOnlyApprovedKey"===h;Yea(l,e,h);g.So("send_beacon_before_gel")&&window.navigator&&window.navigator.sendBeacon&&!c.writeThenSend&&Qq("/generate_204");g.nr(d,"log_event",l,{retry:!0,onSuccess:function(){f--;f||b();or= Math.round((0,g.O)()-e)}, onError:function(){f--;f||b()}, EH:c,zv:h});kr=!1}}; Yea=function(a,b,c){a.requestTimeMs=String(b);g.So("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.M("EVENT_ID",void 0))&&((c=g.M("BATCH_CLIENT_COUNTER",void 0)||0)||(c=Math.floor(Math.random()*pr/2)),c++,c>pr&&(c=1),Oo("BATCH_CLIENT_COUNTER",c),b={serializedEventId:b,clientCounter:String(c)},a.serializedClientEventId=b,qr&&or&&g.So("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:qr,roundtripMs:String(or)}),qr=b,or=0)}; Xea=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}]}; br=function(a){var b={};a.videoId?b.videoId=a.videoId:a.playlistId&&(b.playlistId=a.playlistId);return b}; sr=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.O)());e.eventTimeMs=f=m)Xs(h,r,A,n,E,b.join(),l),p=E;H.xb(2);break;case 3:return H.return(Promise.reject(p))}})})}; Xs=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof Es&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&ws("QUOTA_EXCEEDED",{dbName:Cs(a.i.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof Es&&"UNKNOWN_ABORT"===e.type&&(ws("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c-a.u}),a.l=!0),Ys(a,!1,d,f,b),vs(e)):Ys(a,!0,d,f,b)}; Ys=function(a,b,c,d,e){ws("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.l,duration:e,isSuccessful:b,tryCount:c})}; Rs=function(a){this.i=a}; kfa=function(a,b){return Zs(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})}; lfa=function(a,b,c){var d=[];return Zs(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})}; Us=function(a,b,c){return Ms(a.i.put(b,c))}; Zs=function(a,b,c){a=a.i.openCursor(b.query,b.direction);return $s(a).then(function(d){return Ns(d,c)})}; mfa=function(a,b){var c={},d=c.query;c=c.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.i.openKeyCursor(d,c):a.i.openCursor(d,c);return Ps(a).then(function(e){return Ns(e,b)})}; Ws=function(a){var b=this;this.i=a;this.l=new Map;this.aborted=!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.aborted){e=Es;for(var f=b.i.objectStoreNames,h=[],l=0;l=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})}; bt=function(a,b,c){a=a.i.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return $s(a).then(function(d){return Ns(d,c)})}; ct=function(a,b){this.request=a;this.cursor=b}; $s=function(a){return Ms(a).then(function(b){return null===b?null:new ct(a,b)})}; ofa=function(a,b,c){return new Promise(function(d,e){function f(){t||(t=new Qs(h.result,{closed:r}));return t} var h=self.indexedDB.open(a,b),l=c.blocked,m=c.blocking,n=c.eT,p=c.upgrade,r=c.closed,t;h.addEventListener("upgradeneeded",function(u){try{if(null===u.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");u.dataLoss&&"none"!==u.dataLoss&&ws("IDB_DATA_CORRUPTED",{reason:u.dataLossMessage||"unknown reason",dbName:Cs(a)});var x=f(),y=new Ws(h.transaction);p&&p(x,u.oldVersion,u.newVersion, 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(){ws("IDB_UNEXPECTEDLY_CLOSED",{dbName:Cs(a),dbVersion:u.version});n&&n()}); d(f())}); h.addEventListener("error",function(){e(h.error)}); l&&h.addEventListener("blocked",function(){l()})})}; dt=function(a,b,c){c=void 0===c?{}:c;return ofa(a,b,c)}; et=function(a,b){b=void 0===b?{}:b;return g.D(this,function d(){var e,f,h;return g.z(d,function(l){e=self.indexedDB.deleteDatabase(a);f=b;(h=f.blocked)&&e.addEventListener("blocked",function(){h()}); return g.w(l,hfa(e),0)})})}; ft=function(a,b){this.name=a;this.options=b;this.u=!1}; ht=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,gt.open(),2);d=e.l;return e.return(Ts(d,["databases"],{Zg:!0,mode:"readwrite"},function(f){var h=Vs(f,"databases");return h.get(a.actualName).then(function(l){if(l?a.actualName!==l.actualName||a.publicName!==l.publicName||a.userIdentifier!==l.userIdentifier||a.clearDataOnAuthChange!==l.clearDataOnAuthChange:1)return Us(h,a).then(function(){})})}))})})}; it=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,gt.open(),2);d=e.l;return e.return(d.delete("databases",a))})})}; pfa=function(a){return g.D(this,function c(){var d,e;return g.z(c,function(f){return 1==f.i?(d=[],g.w(f,gt.open(),2)):3!=f.i?(e=f.l,g.w(f,Ts(e,["databases"],{Zg:!0,mode:"readonly"},function(h){d.length=0;return Zs(Vs(h,"databases"),{},function(l){a(l.getValue())&&d.push(l.getValue());return l.continue()})}),3)):f.return(d)})})}; qfa=function(){return g.D(this,function b(){var c,d;return g.z(b,function(e){if(1==e.i)return c=ys("YtIdbMeta"),g.w(e,pfa(function(f){return"yt-player-local-media"===f.publicName&&f.userIdentifier===c}),2); d=e.l;return e.return(0c&&2<=d&&(Ss(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0}).i.createIndex("newRequest",["status","authHash","interface","timestamp"],{unique:!1}),Ss(b,"sapisid"));3>c&&3<=d&&Ss(b,"SWHealthLog",{keyPath:"id",autoIncrement:!0}).i.createIndex("swHealthNewRequest", ["interface","timestamp"],{unique:!1})}, version:3});return rt()}; wt=function(a){return g.D(this,function c(){var d,e,f,h,l;return g.z(c,function(m){switch(m.i){case 1:return d={startTime:(0,g.O)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.w(m,ut(),2);case 2:return e=m.l,g.w(m,tt().open(),3);case 3:return f=m.l,h=Object.assign(Object.assign({},a),{options:JSON.parse(JSON.stringify(a.options)),authHash:e,interface:g.M("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.w(m,ifa(f,h),4);case 4:return l=m.l,d.lT=(0,g.O)(),vt(d),m.return(l)}})})}; zfa=function(){return g.D(this,function b(){var c,d,e,f,h,l,m,n;return g.z(b,function(p){switch(p.i){case 1:return c={startTime:(0,g.O)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.w(p,ut(),2);case 2:return d=p.l,e=g.M("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=["NEW",d,e,0],h=["NEW",d,e,(0,g.O)()],l=IDBKeyRange.bound(f,h),g.w(p,tt().open(),3);case 3:return m=p.l,n=void 0,g.w(p,Ts(m,["LogsRequestsStore"],{mode:"readwrite",Zg:!0},function(r){return bt(Vs(r,"LogsRequestsStore").index("newRequest"), {query:l,direction:"prev"},function(t){t.getValue()&&(n=t.getValue(),n.status="QUEUED",t.update(n))})}),4); case 4:return c.lT=(0,g.O)(),vt(c),p.return(n)}})})}; Afa=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,tt().open(),2);d=e.l;return e.return(Ts(d,["LogsRequestsStore"],{mode:"readwrite",Zg:!0},function(f){var h=Vs(f,"LogsRequestsStore");return h.get(a).then(function(l){if(l)return l.status="QUEUED",Us(h,l).then(function(){return l})})}))})})}; Bfa=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,tt().open(),2);d=e.l;return e.return(Ts(d,["LogsRequestsStore"],{mode:"readwrite",Zg:!0},function(f){var h=Vs(f,"LogsRequestsStore");return h.get(a).then(function(l){return l?(l.status="NEW",l.sendCount+=1,Us(h,l).then(function(){return l})):ot.resolve(void 0)})}))})})}; xt=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,tt().open(),2);d=e.l;return e.return(d.delete("LogsRequestsStore",a))})})}; ut=function(){return g.D(this,function b(){var c;return g.z(b,function(d){if(1==d.i)return g.w(d,ks(js(),zt),2);c=d.l;var e=d.return,f=Object.assign({},c);delete f.Authorization;var h=ql();if(h){var l=new pn;l.update(g.M("INNERTUBE_API_KEY",void 0));l.update(h);f.hash=g.sf(l.digest(),3)}h=new pn;h.update(JSON.stringify(f,Object.keys(f).sort()));f=h.digest();h="";for(l=0;la.sendCount?g.w(m,Bfa(a.id),8):g.w(m,xt(a.id),4);case 8:g.lq(function(){Jt().Rj()&&Tt()},5E3); case 4:c(e,f),g.sa(m)}})})}; var d=a.options.onSuccess?a.options.onSuccess:function(){}; a.options.onSuccess=function(e,f){return g.D(b,function l(){return g.z(l,function(m){if(1==m.i)return void 0===(null===a||void 0===a?void 0:a.id)?m.xb(2):g.w(m,xt(a.id),2);d(e,f);g.sa(m)})})}; return a}; Jt=function(){Wt||(Wt=new It({KO:!0,wN:g.So("trigger_nsm_validation_checks_with_nwl")}));return Wt}; Nt=function(a){if(Jt().Rj())g.Xo(a);else if(g.So("offline_error_handling")){var b=Bt().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Bt().set("errors",b,2592E3,!0)}}; Lt=function(a,b){if(g.So("networkless_with_beacon")){var c=["method","postBody"];if(Object.keys(b).length>c.length)var d=!0;else{d=0;c=g.q(c);for(var e=c.next();!e.done;e=c.next())b.hasOwnProperty(e.value)&&d++;d=Object.keys(b).length!==d}d?g.yp(a,b):Qq(a,void 0,b.postBody)}else g.yp(a,b)}; Kt=function(){return g.Ha("ytNetworklessLoggingInitializationOptions")?Ut.isNwlInitialized:!1}; Ot=function(){return g.Ha("ytNetworklessLoggingInitializationOptions")?Ut.isIdbSupported:!1}; g.Xt=function(a){this.config_=null;a?this.config_=a:Gr()&&(this.config_=g.mr())}; g.nr=function(a,b,c,d){function e(m){try{(void 0===m?0:m)&&d.retry&&!d.EH.bypassNetworkless?(f.method="POST",!d.EH.writeThenSend&&g.So("nwl_send_fast_on_unload")?Rt(l,f):Pt(l,f)):(f.method="POST",f.postParams||(f.postParams={}),g.yp(l,f))}catch(n){if("InvalidAccessError"==n.name)Zo(Error("An extension is blocking network request."));else throw n;}} !g.M("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&Zo(new g.xs("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.xs("innertube xhrclient not ready",b,c,d),g.Xo(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_.QG;h&&(c=h);h=Zea(a.config_.TG||!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_.SG&&f.headers.Authorization||(h.key=a.config_.innertubeApiKey);var l=gp(""+c+b,h);Kt()?lt().then(function(m){e(m)}):e(!1)}; g.rs=function(a,b,c){c=void 0===c?{}:c;var d=g.Xt;g.M("ytLoggingEventsDefaultDisabled",!1)&&g.Xt==g.Xt&&(d=null);sr(a,b,d,c)}; Ifa=function(){var a=void 0===a?window.location.href:a;if(g.So("kevlar_disable_theme_param"))return null;var b=td(g.vd(5,a));if(Gfa(b))return"USER_INTERFACE_THEME_DARK";try{var c=g.ep(a).theme;return Hfa.get(c)||null}catch(d){}return null}; Gfa=function(a){var b=Jfa.map(function(c){return c.toLowerCase()}); return!g.So("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1}; Zt=function(a,b,c){a&&(a.dataset?a.dataset[Yt(b)]=String(c):a.setAttribute("data-"+b,c))}; $t=function(a){return a?a.dataset?a.dataset[Yt("loaded")]:a.getAttribute("data-loaded"):null}; Yt=function(a){return au[a]||(au[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))}; bu=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()}; eu=function(a){var b;cu()?du()==a&&(b=document):b=a;return b&&(a=Rp(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()}; fu=function(a){return g.cb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})}; Kfa=function(){var a=document;return g.cb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})}; cu=function(){return!!Rp(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; du=function(a){a=void 0===a?!1:a;var b=Rp(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null}; gu=function(a){g.F.call(this);this.G=[];this.Ha=a||this}; hu=function(a,b,c,d){for(var e=0;eb;b++){c=Date.now();for(var d=0;d>3;switch(e&7){case 0:e=Ku(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Ku(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}; Nu=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($fa,""),c=c.replace(aga,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else cga(a,b,c)}; cga=function(a,b,c){c=void 0===c?null:c;var d=pv(a),e=document.getElementById(d),f=e&&$t(e),h=e&&!f;f?b&&b():(b&&(f=g.Wq(d,b),b=""+g.Oa(b),qv[b]=f),h||(e=dga(a,d,function(){$t(e)||(Zt(e,"loaded","true"),g.Yq(d),g.rp(g.Pa($q,d),0))},c)))}; dga=function(a,b,c,d){d=void 0===d?null:d;var e=g.Ee("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.Sd(e,g.fg(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e}; pv=function(a){var b=document.createElement("a");g.gd(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+od(a)}; uv=function(a,b){for(var c=[],d=1;dMath.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.xs(a);if(a.args)for(var f=g.q(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.ob:"");c&&(d.layout=c?"layout: "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.Pu(a)}}; Ev=function(a,b,c,d,e,f,h){g.F.call(this);this.u=a;this.l=b;this.zz=c;this.Pa=d;this.B=e;this.i=f;this.Ga=h}; Fv=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}; Gv=function(a,b,c,d){this.u=a;this.Dd=null;this.l=b;this.i=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.B=void 0===d?!1:d}; Hv=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.Pu(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a}; Jv=function(a,b,c){return b&&b.test(a)||Iv&&c&&c.test(a)?!0:!1}; Lv=function(a){return(a=Kv&&Kv.exec(a))?a[0]:""}; Mv=function(a){var b=void 0===b?!1:b;return Hv(Jv(a,hga,iga),a,b,"Trusted Stream URL")}; g.Nv=function(a){var b=void 0===b?!1:b;return Hv(Jv(a,jga,kga),a,b,"Trusted Image URL")}; Ov=function(a){var b=void 0===b?!1:b;return Hv(Jv(a,lga,null),a,b,"Trusted Promoted Video Domain URL")}; nga=function(a){var b=void 0===b?!1:b;return Hv(Jv(a,mga,null),a,b,"Drm Licensor URL")}; Pv=function(a,b){b=void 0===b?!1:b;return Hv(Jv(a,oga,pga),a,b,"Captions URL")}; Qv=function(a){a=new g.Rm(a);g.Sm(a,document.location.protocol);g.Tm(a,document.location.hostname);document.location.port&&g.Um(a,document.location.port);return a.toString()}; Rv=function(a){a=new g.Rm(a);g.Sm(a,document.location.protocol);return a.toString()}; g.Tv=function(a,b,c){this.start=a;this.end=b;this.active=!0;this.color="";this.B=qga++;a=c||{};this.id=a.id||"";this.priority=a.priority||7;this.visible=a.visible||!1;this.style=a.style||Sv.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.ch(d.thumbnails,function(e){return g.Nv(e.url)})}):null; this.visible=this.visible;this.style=this.style;this.start=this.start}; Uv=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()}; rga=function(a,b){switch(a.style){case Sv.CHAPTER_MARKER:return b?8:5;case Sv.AD_MARKER:return 6;case Sv.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; g.Vv=function(a,b){return a.start-b.start||a.priority-b.priority||a.B-b.B}; g.Wv=function(a){return"crn_"+a}; g.Xv=function(a){return"crx_"+a}; Yv=function(a,b,c,d,e){g.Tv.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.i=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.l=!1;this.u=null}; Zv=function(a){return"AD_PLACEMENT_KIND_START"==a.i}; $v=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i}; aw=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new Kn(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new Kn(Math.max(0,b.u-b.i),0x7ffffffffffff):new Kn(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.u);if(c&&(d=a,a=Math.max(0,a-b.i),a==d))break;return new Kn(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d= b.Dd;a=1E3*d.startSecs;if(c){if(a1E5*Math.random()&&(c=new g.xs("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.Pu(c)),!0):!1}; Ew=function(a){return!!g.M("FORCE_CSI_ON_GEL",!1)||g.So("csi_on_gel")||g.So("enable_csi_on_gel")||!!qw(a).useGel}; Gw=function(a,b,c){var d=Fw(c);d.gelTicks&&(d.gelTicks["tick_"+a]=!0);c||b||(0,g.O)();return Ew(c)?(yw(c||"").tick[a]=b||(0,g.O)(),d=tw(c),"_start"===a?(a=Bw(),Dw(a,"baseline_"+d)||g.rs("latencyActionBaselined",{clientActionNonce:d},{timestamp:b})):Bw().tick(a,d,b),vw(c),!0):!1}; Jw=function(a,b,c){c=Fw(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 Hw){c=Hw[a];g.fb(vga,c)&&(b=!!b);a in Iw&&"string"===typeof b&&(b=Iw[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},h=0;hc.duration?d:c},{duration:0}))&&0=b)}; mx=function(a,b,c){this.videoInfos=a;this.audioTracks=[];this.i=b||null;this.l=c||null;if(this.i)for(a=new Set,b=g.q(this.i),c=b.next();!c.done;c=b.next())if(c=c.value,c.Ic&&!a.has(c.Ic.id)){var d=new dx(c.id,c.Ic);a.add(c.Ic.id);this.audioTracks.push(d)}}; qx=function(a,b,c,d){var e=[],f=new Set,h=a.X||a.Ya,l={};if(nx(c)){for(var m in c.i)c.i.hasOwnProperty(m)&&(d=c.i[m],l[d.info.i]=[d.info]);return l}for(var n in c.i)if(c.i.hasOwnProperty(n)){m=c.i[n];var p=m.info.kc();if(""===m.info.i)e.push(p),e.push("unkn");else if("304"!==p&&"266"!==p||!a.Qa)if(a.C&&m.info.video&&m.info.video.i>a.C)e.push(p),e.push("max"+a.C);else if(a.G&&m.info.video&&m.info.video.iy}; a.i&&e("lth."+x+".uth."+y);p=p.filter(function(E){return A(E.fb().i)}); r=r.filter(function(E){return!A(E.fb().i)})}u=[m, n];t=p.concat(r).filter(function(E){return E})}if(t.length&&!a.u){ly(t,d,u); if(a.i){a=[];m=g.q(t);for(n=m.next();!n.done;n=m.next())a.push(n.value.kc());e("hbdfmt."+a.join("."))}return Gp(new mx(t,d,my(l,"",b)))}t=ny(a);t=g.cb(t,h);if(!t){if(l[m]&&a.eb)return e=l[m],ly(e,d),Gp(new mx(e,d,my(l,m,b)));a.i&&e("novideo");return Fp()}a.zb&&("1"===t||"1h"===t)&&l[n]&&(m=ky(l[t]),ky(l[n])>m&&(t=n));"9"===t&&l.h&&(m=ky(l["9"]),ky(l.h)>1.5*m&&(t="h"));a.i&&e("vfmly."+rx(t));m=l[t];if(!m.length)return a.i&&e("novfmly."+rx(t)),Fp();ly(m,d);return Gp(new mx(m,d,my(l,t,b)))}; my=function(a,b,c){var d=a.h;"f"===b&&(d=a[b]);var e=a.a;b=a[b]!==d;a=a[c]!==e;return d&&e&&(b||a)?(ly(d,e),new mx(d,e)):null}; ly=function(a,b,c){c=void 0===c?[]:c;g.xb(a,function(d,e){var f=e.fb().height*e.fb().width-d.fb().height*d.fb().width;if(!f&&c&&0d){var e=!0;if(c){for(var f=c=0,h=g.q(b),l=h.next();!l.done;l=h.next())l=l.value.fb(),32f?f=l.i:!(32c&&(c=l.i);1080f&&(e=!1)}b=a.J&&(a.Y||sx(a,tx.FRAMERATE))&&e?g.Je(b,function(m){return 32a.getLastSegmentNumber())a.segments=[];else{var c=bb(a.segments,function(d){return d.Ka>=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.l.byteLength}; sz=function(a,b,c){var d=new lz(c);if(!nz(d,a))return!1;d=oz(d);if(!pz(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.i;var e=qz(d,!0);d=a+(d.start+d.i-b)+e;d=9b;b++)c=256*c+yz(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+yz(a),d*=128;return b?c-d:c}; vz=function(a){var b=qz(a,!0);a.i+=b}; tz=function(a){var b=a.i;a.i=0;var c=!1;try{pz(a,440786851)&&(a.i=0,pz(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.i=0,c=!1,g.Pu(d);else throw d;}a.i=b;return c}; Mga=function(a){if(!pz(a,440786851,!0))return null;var b=a.i;qz(a,!1);var c=qz(a,!0)+a.i-b;a.i=b+c;if(!pz(a,408125543,!1))return null;qz(a,!0);if(!pz(a,357149030,!0))return null;var d=a.i;qz(a,!1);var e=qz(a,!0)+a.i-d;a.i=d+e;if(!pz(a,374648427,!0))return null;var f=a.i;qz(a,!1);var h=qz(a,!0)+a.i-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.l.buffer,a.l.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.l.buffer, a.l.byteOffset+d,e),c+12);l.set(new Uint8Array(a.l.buffer,a.l.byteOffset+f,h),c+12+e);return l}; Az=function(a){var b=a.i;a.i=0;var c=1E6;nz(a,[408125543,357149030,2807729])&&(c=uz(a));a.i=b;return c}; Nga=function(a,b){var c=a.i;a.i=0;if(160!==a.l.getUint8(a.i)&&!Bz(a)||!pz(a,160))return a.i=c,NaN;qz(a,!0);var d=a.i;if(!pz(a,161))return a.i=c,NaN;qz(a,!0);yz(a);var e=yz(a)<<8|yz(a);a.i=d;if(!pz(a,155))return a.i=c,NaN;d=uz(a);a.i=c;return(e+d)*b/1E9}; Bz=function(a){if(!Cz(a)||!pz(a,524531317))return!1;qz(a,!0);return!0}; Cz=function(a){if(tz(a)){if(!pz(a,408125543))return!1;qz(a,!0)}return!0}; nz=function(a,b){for(var c=0;cb.Td?a.C+1E3*Math.pow(b.cg,a.l-b.Td)<(0,g.O)():!0}; g.Mz=function(a,b,c){b.Yg===a.i&&(a.i=Gz(b,c));b.Yg===a.u&&(a.u=Gz(b,c))}; Nz=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.i=null;this.B=!1;this.C=null;this.L=0;this.u=null;this.U=NaN;this.G=null;this.info=b;this.l=new Rga(a)}; Oz=function(a){var b=g.q(a.info.id.split(";")),c=b.next().value;b=b.next().value;return c+";"+a.info.lastModified+";"+(void 0===b?"":b)}; Pz=function(a,b){this.start=a;this.end=b;this.length=b-a+1}; Qz=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new Pz(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0a.Ab&&b.Ab+b.l<=a.Ab+a.l}; bA=function(a,b){var c=b.i;a.G="updateWithEmsg";a.Ka=c;b.B&&(a.u=b.B)}; cA=function(a,b){var c=b.Ka;a.G="updateWithSegmentInfo";a.Ka=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,Tz(a)}; dA=function(a,b){this.i=a;this.B="";this.C=this.re=NaN;this.G=this.requestId=null;this.l=a[0].i.l;this.u=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 Dy(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}}; uA=function(a){var b=this;a=void 0===a?[]:a;this.i=[];this.u=this.l=0;this.B=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})}; vA=function(a,b){return 0===a.i.length?!1:(a=a.i[a.i.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset}; wA=function(a,b){b=g.q(b.i);for(var c=b.next();!c.done;c=b.next())a.append(c.value)}; xA=function(a){a.B=void 0;a.l=0;a.u=0}; yA=function(a,b,c){a.isFocused(b);return b-a.u+c<=a.i[a.l].length}; zA=function(a){if(!a.B){var b=a.i[a.l];a.B=new DataView(b.buffer,b.byteOffset,b.length)}return a.B}; AA=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!yA(a,b,c)){var d=a.l,e=a.u;a.focus(b+c-1);e=new Uint8Array(a.u+a.i[a.l].length-e);for(var f=0,h=d;h<=a.l;h++)e.set(a.i[h],f),f+=a.i[h].length;a.i.splice(d,a.l-d+1,e);xA(a);a.focus(b)}d=a.i[a.l];return new DataView(d.buffer,d.byteOffset+b-a.u,c)}; BA=function(a,b,c){a=AA(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}; CA=function(a){a=BA(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.l.setUint8(c.i+d,b&255),b>>>=8;c.i=a;b=!0}else b=!1;return b}; OA=function(a){g.KA(a.info.i.info)||a.info.i.info.ye();if(a.l&&6===a.info.type)return a.l.Xh;if(g.KA(a.info.i.info)){var b=GA(a);var c=0;b=jz(b,1936286840);b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=gz(d.value),c+=d.MC[0]/d.RC;c=c||NaN;if(!(0<=c))a:{c=GA(a);b=a.info.i.i;for(var e=d=0,f=0;cz(c,d);){var h=dz(c,d);if(1836476516===h.type)e=$y(h);else if(1836019558===h.type){!e&&b&&(e=az(b));if(!e){c=NaN;break a}var l=bz(h.data,h.dataOffset,1953653094),m=e,n=bz(l.data,l.dataOffset,1952868452);l= bz(l.data,l.dataOffset,1953658222);var p=My(n);My(n);p&2&&My(n);n=p&8?My(n):0;var r=My(l),t=r&1;p=r&4;var u=r&256,x=r&512,y=r&1024;r&=2048;var A=Ny(l);t&&My(l);p&&My(l);for(var E=t=0;E=c+d)break}return new dA(e)}; VA=function(a,b,c,d){this.sampleRate=a||0;this.i=b||0;this.spatialAudioType=c||0;this.itag=d||""}; dha=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d}; XA=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||WA(a,b);this.i=g.gx[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.gx[this.quality],0===a?a="Auto":(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"}; aB=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;this.u=!0;this.isSupported=this.l=null;0=b)return c}catch(d){}return-1}; sB=function(a,b){return 0<=rB(a,b)}; fha=function(a,b){if(!a)return NaN;b=rB(a,b);return 0<=b?a.start(b):NaN}; tB=function(a,b){if(!a)return NaN;b=rB(a,b);return 0<=b?a.end(b):NaN}; uB=function(a){return a&&a.length?a.end(a.length-1):NaN}; vB=function(a,b){a=tB(a,b);return 0<=a?a-b:0}; wB=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 pB(d,e)}; xB=function(a,b,c,d){g.P.call(this);var e=this;this.Zc=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.DG={error:function(){!e.Ia()&&e.isActive&&e.W("error",e)}, updateend:function(){!e.Ia()&&e.isActive&&e.W("updateend",e)}}; ju(this.Zc,this.DG);this.Du=this.isActive}; g.yB=function(a,b,c){this.errorCode=a;this.i=b;this.details=c||{}}; g.zB=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||""}; AB=function(a){var b=void 0===b?!1:b;if(a instanceof g.yB)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.Ou(a):g.Pu(a);return new g.yB(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})}; CB=function(a,b,c,d,e){var f;g.P.call(this);var h=this;this.Rb=a;this.me=b;this.id=c;this.containerType=d;this.isVideo=e;this.eH=this.zw=this.ze=null;this.appendWindowStart=this.timestampOffset=0;this.oF=pB([],[]);this.Zu=!1;this.St=BB?[]:void 0;this.Wd=function(l){return h.W(l.type,h)}; if(null===(f=this.Rb)||void 0===f?0:f.addEventListener)this.Rb.addEventListener("updateend",this.Wd),this.Rb.addEventListener("error",this.Wd)}; DB=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; EB=function(a,b){this.i=a;this.l=void 0===b?!1:b;this.u=!1}; FB=function(a,b,c){c=void 0===c?!1:c;g.F.call(this);this.mediaSource=a;this.me=b;this.isView=c;this.u=0;this.callback=null;this.events=new gu(this);g.G(this,this.events);this.kt=new EB(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.me.webkitMediaSourceURL,!0);a=this.mediaSource||this.me;hu(this.events,a,["sourceopen","webkitsourceopen"],this.C);hu(this.events,a,["sourceclose","webkitsourceclose"],this.B)}; gha=function(a,b){GB(a)?g.fm(function(){b(a)}):a.callback=b}; HB=function(a,b){try{a.mediaSource?a.mediaSource.duration=b:(a.u=b,a.me.webkitSourceSetDuration(b))}catch(c){}}; IB=function(a){return!!a.i||!!a.l}; GB=function(a){try{return"open"===JB(a)}catch(b){return!1}}; KB=function(a){try{return"closed"===JB(a)}catch(b){return!0}}; JB=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.me.webkitSourceState){case a.me.SOURCE_OPEN:return"open";case a.me.SOURCE_ENDED:return"ended";default:return"closed"}}; LB=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)}; MB=function(a,b,c,d){if(!a.i||!a.l)return null;var e=a.i.isView()?a.i.Zc:a.i,f=a.l.isView()?a.l.Zc:a.l,h=new FB(a.mediaSource,a.me,!0);h.kt=a.kt;e=new xB(e,b,c,d);b=new xB(f,b,c,d);h.i=e;h.l=b;g.G(h,e);g.G(h,b);GB(a)||a.i.Mq(a.i.Kc());return h}; hha=function(a,b){return NB(function(c,d){return g.Dp(c,d,4,1E3)},a,b)}; g.OB=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=Iy(new Uint8Array(a.response))):b=a.responseText;return!b||2048a.U&&a.isLivePlayback;a.Ea=Number(jA(c,aC(a,"earliestMediaSequence")))||0;if(d=Date.parse(mA(jA(c,aC(a,"mpdResponseTime")))))a.ma=(g.Ra()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.ch(c.getElementsByTagName("Period"),a.qS,a);a.state=2;a.W("loaded");dC(a)}return a}),function(c){if(c instanceof Bp){var d=c.xhr; a.X=d.status}a.state=3;a.W("loaderror");return pm(d)})}; rha=function(a,b,c){return eC(new QB(a,b,c),a)}; fC=function(a){return a.isLive&&(0,g.O)()-a.xa>=a.U}; dC=function(a){var b=a.U;isFinite(b)&&(fC(a)?a.refresh():(b=Math.max(0,a.xa+b-(0,g.O)()),a.B||(a.B=new g.J(a.refresh,b,a),g.G(a,a.B)),a.B.start(b)))}; sha=function(a){a=a.i;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0}; hC=function(a){if(a.isManifestless&&a.L&&gC(a))return gC(a);a=a.i;var b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&(f.G&&(b=!0),h=h.getMaxKnownEndTime(),f.info.wm()&&(isNaN(c)||ha.Oa&&(a.va=b);return b}if(a.isLive&&(d=b[c],d.Xh))return d.Xh}return NaN}; tha=function(a,b){a=Ob(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:ca.previousQuality)return 1;if(a.quality=navigator.hardwareConcurrency&&(d=e);(e=g.S(a.experiments,"html5_av1_thresh_hcc"))&&4Number(h.get("dhmu",l.toString())));this.wj=l;this.bb="3"===this.controlsType||this.i||iD(!1,a.use_media_volume);this.X=oB();this.zk=g.sD;this.lh=iD(!1,b&&f?b.embedOptOutDeprecation:a.opt_out_deprecation);this.pfpChazalUi=iD(!1,(b&&f?b.pfpChazalUi: a.pfp_chazal_ui)&&!this.Z("embeds_pfp_chazal_ui_killswitch"));var n;b?void 0!==b.hideInfo&&(n=!b.hideInfo):n=a.showinfo;this.Yi=g.tD(this)&&!this.lh||iD(!uD(this)&&!vD(this)&&!this.C,n);this.nh=b?!!b.mobileIphoneSupportsInlinePlayback:iD(!1,a.playsinline);n=this.i&&wD&&null!=xD&&0=xD;l=b?b.useNativeControls:a.use_native_controls;h=this.i&&!this.Z("embeds_enable_mobile_custom_controls");l=yD(this)||!n&&iD(h,l)?"3":"1";h=b?b.controlsType:a.controls;this.controlsType="0"!==h&&0!==h?l:"0";this.L= (this.Z("embeds_enable_mobile_custom_controls")||"1"===this.controlsType&&!this.Z("embeds_use_native_controls_killswitch"))&&g.tD(this)&&this.i;this.Ac=this.i;this.color=jD("red",b&&f?b.progressBarColor:a.color,Tha);this.wk="3"===this.controlsType||iD(!1,b&&f?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.Xa=!this.l;this.bj=(l=!this.Xa&&!vD(this)&&!this.J&&!this.C&&!uD(this))&&!this.wk&&"1"===this.controlsType;this.rb=g.zD(this)&&l&&"0"===this.controlsType&&!this.bj;this.Ck= this.xk=n;this.cj=AD&&!g.ae(601)?!1:!0;this.vj=this.l||!1;this.Xb=vD(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=lD("",b&&f?b.widgetReferrer:a.widget_referrer);var p;b&&f?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.u||iD(!0,p);n=!0;b&&b.disableMdxCast&&(n=!1);this.Ke=this.Z("enable_cast_for_web_unplugged")&&g.BD(this)&&n||this.Z("enable_mdx_module_for_music_web")&&g.CD(this)&&n||p&&n&&"1"===this.controlsType&&!this.i&&(vD(this)||g.zD(this)||g.DD(this))&& !g.ED(this)&&!FD(this);this.Bk=mB()||nB();p=b?!!b.supportsAutoplayOverride:iD(!1,a.autoplayoverride);this.qf=!this.i&&!yq("nintendo wiiu")&&!yq("nintendo 3ds")||p;p=b?!!b.enableMutedAutoplay:iD(!1,a.mutedautoplay);n=this.Z("embeds_enable_muted_autoplay")&&g.tD(this);this.xc=p&&n&&this.X&&!yD(this);p=(vD(this)||uD(this))&&"blazer"===this.playerStyle;this.bf=b?!!b.disableFullscreen:!iD(!0,a.fs);this.Oa=!this.bf&&(p||cu());this.Jf=this.Z("uniplayer_block_pip")&&(zq()&&Mn(58)&&!Mq()||Jq);p=g.tD(this)&& !this.lh;var r;b?void 0!==b.disableRelatedVideos&&(r=!b.disableRelatedVideos):r=a.rel;this.qb=p||iD(!this.C,r);this.Xi=iD(!1,b&&f?b.enableContentOwnerRelatedVideos:a.co_rel);this.G=Mq()&&0=xD?"_top":"_blank";this.qc=g.DD(this);this.jf=iD("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":r="bl";break;case "gmail":r="gm";break;case "books":r="gb";break;case "docs":r="gd";break;case "duo":r="gu";break;case "google-live":r="gl";break;case "google-one":r= "go";break;case "play":r="gp";break;case "chat":r="hc";break;case "hangouts-meet":r="hm";break;case "photos-edu":case "picasaweb":r="pw";break;default:r="yt"}this.va=r;this.Y=lD("",b&&f?b.authorizedUserIndex:a.authuser);var t;b?void 0!==b.disableWatchLater&&(t=!b.disableWatchLater):t=a.showwatchlater;this.ij=(this.l&&!this.xa||!!this.Y)&&iD(!this.J,this.u?t:void 0);this.Td=b?!!b.disableKeyboardControls:iD(!1,a.disablekb);this.loop=iD(!1,a.loop);this.pageId=lD("",!this.Z("wpcc_pageid_killswitch")&& b?b.initialDelegatedSessionId:a.pageid);this.Ak=iD(!0,a.canplaylive);this.hj=iD(!1,a.livemonitor);this.disableSharing=iD(this.C,b?b.disableSharing:a.ss);(t=b&&this.Z("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(r=t.split("x"),2!==r.length?t=null:(t=Number(r[0]),r=Number(r[1]),t=isNaN(t)||isNaN(r)||0>=t*r?null:new g.ie(t,r))):t=null;this.dj=t;this.mute=b?!!b.startMuted:iD(!1,a.mute);this.kf=!this.mute&&iD("0"!==this.controlsType,a.store_user_volume); t=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:jD(void 0,t,GD);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":lD("",a.cc_lang_pref);t=jD(2,b&&f?b.captionsLanguageLoadPolicy:a.cc_load_policy,GD);"3"===this.controlsType&&2===t&&(t=3);this.Ha=t;this.Tc=b?b.hl||"en_US":lD("en_US",a.hl);this.region=b?b.contentRegion||"US":lD("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":lD("en",a.host_language);this.lj=!this.xa&&Math.random()< g.S(this.experiments,"web_player_api_logging_fraction");this.Ea=!this.xa;this.enabledEngageTypes=new Set;this.deviceHasDisplay=b?!b.deviceIsAudioOnly:iD(!0,a.deviceHasDisplay);this.cd=kD(this.cd,a.ismb);t=a;g.wC(this.experiments,"html5_qoe_intercept")?t=g.wC(this.experiments,"html5_qoe_intercept"):this.xj?(t=t.vss_host||"s.youtube.com",this.Z("www_for_videostats")&&"s.youtube.com"===t&&(t=HD(this.Aa)||"www.youtube.com")):t="video.google.com";this.ej=t;ID(this,a,!0);this.U=new PC;g.G(this,this.U); t=b?b.innertubeApiKey:lD("",a.innertube_api_key);r=b?b.innertubeApiVersion:lD("",a.innertube_api_version);p=b?b.innertubeContextClientVersion:lD("",a.innertube_context_client_version);this.df={innertubeApiKey:Po("INNERTUBE_API_KEY")||t,innertubeApiVersion:Po("INNERTUBE_API_VERSION")||r,MG:g.M("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),NG:this.deviceParams.c,innertubeContextClientVersion:Po("INNERTUBE_CONTEXT_CLIENT_VERSION")||p,PG:this.hostLanguage,OG:this.region,QG:Po("INNERTUBE_HOST_OVERRIDE")||"", TG:!!g.M("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),SG:!!g.M("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Yh=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.B=new LC(this.experiments,this.Z("html5_force_hfr_support")?!0:JD(this)||Dq()||Eq()||KD(this),g.lB&&g.ae(56)||g.FC&&g.ae(54)||KD(this));t=this.cd;r=this.experiments;p=new Mha;g.LD(this)&&(p.i=!0,p.B=.1);g.R(r,"html5_pctile_bandwidth_estimator")&&(p.i=!1);t&&(p.u=t/8);this.schedule=new Lha(p);this.enableSafetyMode=null!==(d= null===b||void 0===b?void 0:b.initialEnableSafetyMode)&&void 0!==d?d:iD(!1,a.enable_safety_mode);t=this.ma?!1:vD(this)&&"blazer"!==this.playerStyle;var u;b&&f?null!=b.disableAutonav&&(u=!b.disableAutonav):u=a.allow_autonav;this.zb=iD(t,!this.J&&u);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:iD(!1,a.send_visitor_id_header);this.Ya=(0,g.O)();var x;"docs"===this.playerStyle&&(b&&f?x=b.disableNativeContextMenu:x=a.disable_native_context_menu);this.disableNativeContextMenu=iD(!1,x);this.pj=JD(this)&& this.Z("enable_skip_intro_button");this.embedConfig=lD("",b&&f?b.serializedEmbedConfig:a.embed_config);this.cf=iD(!1,a.full_window);this.eb=!g.BD(this)&&!MD(this)&&!g.ED(this)&&!FD(this)&&!0;this.livingRoomAppMode=jD("LIVING_ROOM_APP_MODE_UNSPECIFIED",b?null===(e=b.device)||void 0===e?void 0:e.livingRoomAppMode:a.living_room_app_mode,ND);this.transparentBackground=b?!!b.transparentBackground:iD(!1,a.transparent_background);this.useFastSizingOnWatchDefault=iD(!0,b?b.useFastSizingOnWatchDefault:a.use_fast_sizing_on_watch_default); this.showMiniplayerButton=b?!!b.showMiniplayerButton:iD(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:iD(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:iD(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.showBackButton=iD(!1,a.showbackbutton);this.zj=1E-4>Math.random();this.hf=a.onesie_hot_config||(null===b||void 0===b?0:b.onesieHotConfig)?new Jha(a.onesie_hot_config,null===b||void 0=== b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b&&!this.Z("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic;this.yk=c;this.Pb=new eD;g.G(this,this.Pb);this.cg=iD(!1,a.force_gvi);this.datasyncId=(null===b||void 0===b?void 0:b.datasyncId)||g.M("DATASYNC_ID",void 0);g.So("disable_set_datasync_id")||(As=this.datasyncId);this.jj=(null===b||void 0===b?void 0:b.allowWoffleManagement)||!1;this.If=0}; ID=function(a,b,c){c=void 0===c?!1:c;a.Ib=lD(a.Ib,b.video_id);a.Bb=lD(a.Bb,b.eventid);for(var d=[],e=g.q(Object.keys(PD)),f=e.next();!f.done;f=e.next()){f=PD[f.value];var h=b[f];null!=h&&(h!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=h)}!c&&0u.width*u.height*u.fps)u=E}else r.push(E)}else h.push(A),h.push("disdrmhfr");t.reduce(function(U,N){return N.Pe().isEncrypted()&&U},!0)&&(p=n); c=u||{};t.push(pE(r,m,e,"93",void 0===c.width?0:c.width,void 0===c.height?0:c.height,void 0===c.fps?0:c.fps,l,"auto",Math.max(d,0),p,x));h.length&&f(h.join("."));return jE(a.B,t,QD(a,b))}; pE=function(a,b,c,d,e,f,h,l,m,n,p,r){for(var t=0,u="",x=g.q(a),y=x.next();!y.done;y=x.next())y=y.value,u||(u=y.itag),y.audioChannels&&y.audioChannels>t&&(t=y.audioChannels,u=y.itag);d=new aB(d,"application/x-mpegURL",{audio:new VA(0,t,null,u),video:new XA(e,f,h,null,void 0,m,void 0,r),Fd:p});a=new kE(a,b,c);a.B=n?n:1369843;return new oE(d,a,l)}; Zha=function(a){a=g.q(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}; aia=function(a,b){for(var c=g.q(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Fd===b.Fd&&!e.audioChannels)return d}return""}; $ha=function(a){for(var b=new Set,c=g.q(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.q(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.q(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]}; qE=function(a,b){this.i=a;this.l=b}; cia=function(a,b,c,d){var e=[];c=g.q(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new sy(h.url,!0);if(h.s){var l=h.sp,m=ry(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.q(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=gB(h.type,h.quality,h.itag,h.width,h.height);e.push(new qE(h,f))}}return jE(a.B,e,QD(a,b))}; rE=function(a,b){this.i=a;this.l=b}; dia=function(a){var b=[];g.Ab(a,function(c){if(c&&c.url){var d=gB(c.type,"medium","0");b.push(new rE(d,c.url))}}); return b}; eia=function(a,b,c){c=dia(c);return jE(a.B,c,QD(a,b))}; tE=function(){void 0===sE&&(sE=g.so());return sE}; uE=function(){var a=tE();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}}; vE=function(a){var b=tE();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))}; wE=function(a){return uE()[a]||0}; fia=function(){var a=uE();return Object.keys(a).filter(function(b){return 2===a[b]})}; xE=function(a,b){var c=uE();b!==c[a]&&(0!==b?c[a]=b:delete c[a],vE(c))}; gia=function(a){var b=uE();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]):3!==b[c]&&2!==b[c]&&(b[c]=4);Object.assign(b,a);vE(b);JSON.stringify(b);return b}; hia=function(){return g.D(this,function b(){return g.z(b,function(c){return c.return(xfa())})})}; g.zE=function(){return g.D(this,function b(){return g.z(b,function(c){return c.return(yE().open())})})}; AE=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,(0,g.zE)(),2);d=e.l;return e.return(Ts(d,["index","media","captions"],"readwrite",function(f){var h=IDBKeyRange.bound(a+"|",a+"~");f=[Vs(f,"index").delete(h),Vs(f,"media").delete(h),Vs(f,"captions").delete(h)];return ot.all(f).then(function(){})}))})})}; jia=function(){return g.D(this,function b(){var c;return g.z(b,function(d){if(1==d.i)return g.w(d,(0,g.zE)(),2);c=d.l;return d.return(Ts(c,["index","media"],"readwrite",function(e){var f={};return Zs(Vs(e,"index"),{},function(h){var l,m=h.getKey().match(/^([\w\-_]+)\|(a|v)$/),n=ot.resolve(void 0);if(m){var p=m[1];m=m[2];f[p]=f[p]||{};f[p][m]=BE(null===(l=h.getValue())||void 0===l?void 0:l.fmts)}else n=h.delete().then(function(){}); return ot.all([h.continue(),n]).then(function(r){return g.q(r).next().value})}).then(function(){for(var h={},l=g.q(Object.keys(f)),m=l.next();!m.done;m=l.next()){m=m.value; var n=f[m].v;h[m]=f[m].a&&n?1:2}var p=gia(h);return mfa(Vs(e,"media"),function(r){var t=r.getKey().match(iia);t&&h[t[1]]||Vs(e,"media").delete(r.getKey());return r.continue()}).then(function(){return p})})}))})})}; kia=function(a,b){return g.D(this,function d(){var e;return g.z(d,function(f){if(1==f.i)return g.w(f,(0,g.zE)(),2);e=f.l;return g.w(f,Ts(e,["captions"],"readwrite",function(h){var l=[];h=Vs(h,"captions");for(var m=0;m> "+a.translationLanguage.languageName);return c.join("")}; LE=function(a,b,c,d){a||(a=b&&IE.hasOwnProperty(b)&&JE.hasOwnProperty(b)?JE[b]+"_"+IE[b]:void 0);b=a;if(!b)return null;a=b.match(KE);if(!a||5!==a.length)return null;if(a=b.match(KE)){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}; bF=function(a){for(var b={},c=g.q(Object.keys(aF)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[aF[d]];e&&(b[d]=e)}return b}; cF=function(a,b){for(var c={},d=g.q(Object.keys(aF)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.Nv(f)&&(c[aF[e]]=f)}return c}; fF=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.q(Object.keys(dF)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=dF[e];for(var f=g.q(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=eF(h.url);g.Nv(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=eF(a.url),g.Nv(a)&&(b["maxresdefault.jpg"]=a));return b}; eF=function(a){return a.startsWith("//")?"https:"+a:a}; gF=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return ria[a];return null}; hF=function(a){return a&&a.baseUrl||""}; iF=function(a){a=g.ep(a);for(var b=g.q(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}; jF=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Aa=b)}; sia=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.q(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=kF(d.baseUrl);if(!e)return;d=new g.EE({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.cw(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.rz=b.audioTracks||[];a.cH=b.defaultAudioTrackIndex||0;a.sz=b.translationLanguages?g.Oc(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.cw(f.languageName)}}): []; a.Ak=!!b.contribute&&!!b.contribute.captionsMetadataRenderer}; tia=function(a,b){b=g.q(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},cp(h))}); d=g.q(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,Zi:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Zi: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, Zi:0===f?5:7})}}}; uia=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer}; lF=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)}; nF=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=cp(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=via[c]);(c=a.projectionType)&&(b.projection_type=wia[c]);(c=a.stereoLayout)&&(b.stereo_layout=xia[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=yia[c]);if(d=a.drmFamilies){c=[];d=g.q(d);for(var e=d.next();!e.done;e=d.next())c.push(mF[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=gF(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=zia[a])&&(b.primaries=a);return g.Fd(b)}; oF=function(a){g.P.call(this);this.i=null;this.u=new wo;this.i=null;this.J=new Set;this.C=a||""}; rF=function(a,b,c){for(c=pF(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(Math.floor(b/(d.columns*d.rows)))&&(d=g.qF(d,b)))return d;c--}return g.qF(a.levels[0],b)}; tF=function(a,b,c){c=pF(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.J.has(h)||(d.J.add(h),vo(d.u,f,{mH:f,wH:e}))}sF(a)}; sF=function(a){if(!a.i&&!a.u.isEmpty()){var b=a.u.remove();a.i=Aia(a,b)}}; Aia=function(a,b){var c=document.createElement("img");a.C&&(c.crossOrigin=a.C);c.src=uF(a.levels[b.mH],b.wH);c.onload=function(){var d=b.mH,e=b.wH;null!==a.i&&(a.i.onload=null,a.i=null);d=a.levels[d];d.loaded.add(e);sF(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.AA()-1);e=[e,d];a.W("l",e[0],e[1])}; return c}; g.vF=function(a,b,c,d){this.level=a;this.C=b;this.loaded=new Set;this.level=a;this.C=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.u=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.B=a[6];this.signature=a[7];this.videoLength=d}; uF=function(a,b){var c=a.C;c=c.replace("$N",a.B);c=c.replace("$L",a.level.toString());c=c.replace("$M",b.toString());a.signature&&(c=g.Hd(c,{sigh:a.signature}));return Rv(c)}; g.qF=function(a,b){b>=a.Ey()&&a.rr();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.rr()+1-d*c;if(f=b)return a.B.set(b,d),d;a.B.set(b,c-1);return c-1}; yF=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.vF.call(this,a,b,c,0);this.l=null;this.G=d?3:0}; zF=function(a,b,c,d){wF.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;ab&&(DB()||g.R(d.experiments,"html5_format_hybridization"))&&(n.l.supportsChangeType=+DB(),n.J=b);2160<=b&&(n.qb=!0);tC()&&(n.l.serveVp9OverAv1IfHigherRes=0,n.zb=!1);n.Bb=m;m=g.jt||Nq()&&!m?!1:!0;n.Ea=m;n.ma=g.R(d.experiments,"html5_format_hybridization");n.eb=g.R(d.experiments,"html5_offline_av1_fallback");n.X=g.R(d.experiments,"html5_disable_codec_on_errors_with_exp_backoff"); n.Ya=g.R(d.experiments,"html5_disable_codec_on_platform_errors");Cq()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(n.U=!0,n.Y=!0);a.jz&&(n.L=a.jz);a.gz&&(n.B=a.gz);n.Fa=a.isLivePlayback&&RF(a)&&a.B.Z("html5_drm_live_audio_51");return a.Gc=n}; Nia=function(a){a.Sb||a.i&&ux(a.i);var b={};a.i&&(b=qx(SF(a),a.B.B,a.i,function(c){return a.W("ctmp","fmtflt",c)})); b=new IC(b,a.B.experiments,a.LE,Mia(a),function(c,d){a.La(c,d)}); g.G(a,b);a.di=!1;a.X=!0;Cha(b,function(c){for(var d=g.q(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.l=a.Sb;e.J=a.QN;e.G=a.qN;break;case "widevine":e.B=a.QE}a.kf=c;if(0b)return!1}return!XF(a)||"ULTRALOW"!=a.latencyClass&&21530001!=YF(a)?window.AbortController?a.Z("html5_streaming_xhr")||a.Z("html5_streaming_xhr_manifestless")&&XF(a)?!0:!1:!1:!0}; Ria=function(a){return oy({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,Lj:a.Lj,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:XF(a),LC:Qia(a)})}; YF=function(a){return a.isLowLatencyLiveStream&&void 0!=a.i&&5<=jC(a.i)?21530001:a.liveExperimentalContentId}; Gia=function(a){return Cq()&&WF(a)?!1:!MC()||a.dH?!0:!1}; Tia=function(a){a.X=!0;a.xc=!1;if(Hia(a))mia(a.videoId).then(function(d){Sia(a,d)}).then(function(){FF(a)}); else{Mv(a.Oa)||g.Pu(new g.xs("DASH MPD Origin invalid: ",a.Oa));var b=a.Oa,c=g.S(a.B.experiments,"dash_manifest_version")||4;b=g.Hd(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Hd(b,{pacing:0}));rha(b,a.B.experiments,a.isLivePlayback).then(function(d){a.Ia()||(VF(a,d,!0),Tw("mrc",void 0,a.Ya),FF(a))},function(d){a.Ia()||(a.X=!1,a.W("dataloaderror",new g.yB("manifest.net.retryexhausted",!0,{backend:"manifest", rc:d.status})))}); Tw("mrs",void 0,a.Ya)}}; Sia=function(a,b){var c=b.map(function(e){return e.itag}),d=a.playerResponse.streamingData.adaptiveFormats.filter(function(e){return c.includes(e.itag)}).map(function(e){e=Object.assign({},e); e.url=b.find(function(f){return f.itag===e.itag}).url; e.signatureCipher="";return nF(e)}).join(","); d=Pia(a,d);VF(a,d);a.La("dlr","")}; FF=function(a){a.Ia()||(a.X=!1,a.W("dataloaded"))}; VF=function(a,b,c){c=void 0===c?!1:c;a.i=b;g.G(a,b);b.Qd=a.Qd;b.Zf=a.Zf;b.G=a.HE;b.C=a.FE;g.R(a.B.experiments,"html5_start_walltime_min_seekable_killswitch")||(b.J=a.OE);Uia(a)&&a.Y.push("webgl");a.i.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.jf=Number(d[d.indexOf("manifest_duration")+1]));b.u&&(b.subscribe("clienttemp",a.La,a),c?b.subscribe("refresh",a.WH,a):b.subscribe("cuepointsadded",a.zF,a));ux(b)&&(a.di=!0)}; RF=function(a){return a.Fd?!0:!!a.i&&ux(a.i)}; Zia=function(a,b){if(a.Ia())return Fp();a.u=null;a.Ha=null;a.qb=null;var c=a.B.deviceParams.c;a.Z("disable_rqs")||(a.rb=/^rq/.test(a.clientPlaybackNonce)||/^r/.test(a.clientPlaybackNonce)&&/UNPLUGGED/.test(c)||g.TF(a));return Via(a,b).then(void 0,function(){return Wia(a,b)}).then(void 0,function(){return Xia(a)}).then(void 0,function(){return Yia(a)})}; Via=function(a,b){b=b||Gia(a);return a.i&&!b?(PF(a)&&vha(a.i,a.isLivePlayback),QF(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(a.B.B.l=!0),$ia(a).then(function(){return Ega(SF(a),a.B.B,a.i,a.G,function(c){return a.W("ctmp","fmtflt",c)},a.Z("html5_dynamic_av1_hybrid_threshold")).then(function(c){aja(a,c); /^av/.test(a.clientPlaybackNonce)&&a.Gc&&a.La("av1",g.zB(a.Gc.l))})})):Fp()}; $ia=function(a){if(!a.i||!a.i.i||!a.Z("html5_use_media_capability"))return Gp();for(var b=[],c=g.q(Object.keys(a.i.i)),d=c.next();!d.done;d=c.next())(d=a.i.i[d.value])&&d.info&&b.push(d.info);return AF(b)}; Wia=function(a,b){var c;if(b&&a.hlsvp)return Fp();if(a.hlsFormats){b=UF(a.hlsFormats);if((null===(c=a.Gc)||void 0===c?0:c.i)&&b){for(var d=[],e=g.q(b),f=e.next();!f.done;f=e.next())d.push(f.value.itag);a.La("hlsfmt",d.join("."))}a.zn=Yha(a.B,b);d=a.clientPlaybackNonce;return bia(a.B,a.isAd(),b,a.Yh,d,function(h){return a.W("ctmp","hlsflt",h)}).then(function(h){for(var l,m,n,p,r=0,t=[],u=g.q(h),x=u.next();!x.done;x=u.next())x=x.value,t.push(null===(l=x.Pe())||void 0===l?void 0:l.kc()),(null===(n=null=== (m=x.Pe())||void 0===m?void 0:m.audio)||void 0===n?void 0:n.i)>r&&(r=x.Pe().audio.i); 2=a.u.videoInfos.length)&&(b=eB(a.u.videoInfos[0]),b!=("fairplay"==a.G.flavor)))for(c=g.q(a.kf),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.G=d;break}}; ZF=function(a,b){a.qb=b;aja(a,new mx(g.Oc(a.qb,function(c){return c.Pe()})))}; bja=function(a){var b={cpn:a.clientPlaybackNonce,c:a.B.deviceParams.c,cver:a.B.deviceParams.cver};a.Do&&(b.ptk=a.Do,b.oid=a.vD,b.ptchn=a.uD,b.pltype=a.wD);return b}; g.$F=function(a){return NF(a)&&a.Sb?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.l&&a.l.Fd||null}; cja=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.cw(b.text):a.paidContentOverlayText}; aG=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?pd(b.durationMs):a.paidContentOverlayDurationMs}; bG=function(a){var b="";if(a.NC)return a.NC;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b}; g.cG=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]}; dja=function(a){return a.i&&!isNaN(hC(a.i))?hC(a.i):XF(a)?0:a.lengthSeconds}; dG=function(a){return!!(a.Oa||a.adaptiveFormats||a.pj||a.cg||a.hlsvp)}; EF=function(a){var b=g.fb(a.Y,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.X&&(dG(a)||g.fb(a.Y,"heartbeat")||b)}; UF=function(a,b){a=dp(a);var c={};if(b){b=g.q(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.q(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}; Jia=function(a,b){var c,d;a.showShareButton=!!b;if(b=(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))a.nj=!!b.copyTextEndpoint}; GF=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.Cg=m);if(a.Cg){if(m=a.Cg.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.Cg.embedPreview){m=m.thumbnailPreviewRenderer;n=m.controlBgHtml;null!=n?(a.Fa=n,a.C=!0):(a.Fa="",a.C=!1);if(n=m.defaultThumbnail)a.Bb=fF(n), a.sampledThumbnailColor=n.sampledThumbnailColor;(n=null===(c=null===m||void 0===m?void 0:m.videoDetails)||void 0===c?void 0:c.embeddedPlayerOverlayVideoDetailsRenderer)&&Kia(a,b,n);if(n=null===(d=null===m||void 0===m?void 0:m.videoDetails)||void 0===d?void 0:d.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.cA=n.title,a.Mz=n.byline,n.musicVideoType&&(a.musicVideoType=n.musicVideoType);a.Ke=!!m.addToWatchLaterButton;Jia(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,r=null===(p=null===n||void 0===n?void 0:n.watchEndpointSupportedOnesieConfig)||void 0===p?void 0:p.html5PlaybackOnesieConfig;r&&(a.uo=new qia(r));a.videoId=n.videoId||a.videoId}m.videoDurationSeconds&&(a.lengthSeconds=pd(m.videoDurationSeconds));a.Z("web_player_include_innertube_commands")&&m.webPlayerActionsPorting&&lF(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){r=0;for(var t=p.contents.length;r(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.Xc&&(c||VD(a.B))&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.Z("cast_prefer_audio_only_for_atv_and_uploads")||a.Z("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.Xc=!0);return!a.B.deviceHasDisplay||a.Xc&&a.B.u}; rG=function(a){return qG(a)&&!!a.adaptiveFormats}; qG=function(a){return!!(a.Z("woffle_orchestration")&&a.qn&&a.B.u)}; Hia=function(a){if(a.Z("woffle_orchestration")){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===wE(b);a=b&&!a.qn}else a=!1;return a}; g.sG=function(a){if(!a.i||!a.l||!a.J)return!1;var b=a.i.i;return!!b[a.l.id]&&wy(b[a.l.id].l.i)&&!!b[a.J.id]&&wy(b[a.J.id].l.i)}; eja=function(a){return(a=a.cj)&&a.showError?a.showError:!1}; g.TF=function(a){return a.Z("disable_rqs")?!1:QF(a,"html5_high_res_logging")}; QF=function(a,b){return a.Z(b)?!0:(a.fflags||"").includes(b+"=true")}; jja=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null}; LF=function(a,b){if(b=b.video_masthead_ad_quartile_urls)a.rD=b.quartile_0_url,a.BD=b.quartile_25_url,a.CD=b.quartile_50_url,a.tE=b.quartile_75_url,a.AD=b.quartile_100_url,a.Fo=b.quartile_0_urls,a.py=b.quartile_25_urls,a.qy=b.quartile_50_urls,a.sy=b.quartile_75_urls,a.sD=b.quartile_100_urls}; MF=function(a){return a?MC()?!0:tG&&5>uG?!1:!0:!1}; KF=function(a){var b={};a=g.q(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}; kF=function(a){if(a){if(Pv(a))return a;a=Qv(a);if(Pv(a,!0))return a}return""}; g.kja=function(a){return a.captionsLanguagePreference||a.B.captionsLanguagePreference||g.cG(a,"yt:cc_default_lang")||a.B.Tc}; vG=function(a,b){this.i=a;this.Ha=b||{};this.L=String(Math.floor(1E9*Math.random()));this.J={};this.U=0}; lja=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}}; wG=function(){g.P.call(this);var a=this;this.i={};g.Bi(this,function(){return Object.keys(a.i).forEach(function(b){return delete a.i[b]})})}; yG=function(){if(null===xG){xG=new wG;bl.getInstance().i="b";var a=bl.getInstance(),b="h"==Ik(a)||"b"==Ik(a),c=!(mh.getInstance(),!1);b&&c&&(a.C=!0,a.G=new Lca)}return xG}; mja=function(a,b,c){a.i[b]=c}; nja=function(a){this.u=a;this.l={};this.i=Rf()?500:g.LD(a.T())?1E3:2500}; pja=function(a,b){if(!b.length)return null;b=b.filter(function(c){if(!c.mimeType)return!1;c.mimeType in a.l||(a.l[c.mimeType]=a.u.canPlayType(c.mimeType));return a.l[c.mimeType]?!!c.mimeType&&"application/x-mpegurl"==c.mimeType.toLowerCase()||!!c.mimeType&&"application/dash+xml"==c.mimeType.toLowerCase()||"PROGRESSIVE"==c.delivery:!1}); return oja(a,b)}; oja=function(a,b){for(var c=null,d=g.q(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}; zG=function(a,b,c){this.i=a;this.C=b;this.u=c;this.l=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0); c=0;for(a+=1;a=a.l}; DG=function(){this.i=[];this.l=0}; EG=function(a,b){b&&a.i.push(b)}; FG=function(a){if(!a)return[];var b=[];a=g.q(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.q(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b}; GG=function(a){if(!a)return[];var b=[];a.forEach(function(c){c.command.loggingUrls.forEach(function(d){b.push({baseUrl:d.baseUrl,offsetMilliseconds:c.adVideoOffset.milliseconds})})}); return b}; HG=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0}; IG=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind}; sja=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=FG(a.impressionCommands)||[];b.error=FG(a.errorCommands)||[];b.mute=FG(a.muteCommands)||[];b.unmute=FG(a.unmuteCommands)||[];b.pause=FG(a.pauseCommands)||[];b.rewind=FG(a.rewindCommands)||[];b.resume=FG(a.resumeCommands)||[];b.skip=FG(a.skipCommands)||[];b.close=FG(a.closeCommands)||[];b.clickthrough=FG(a.clickthroughCommands)||[];b.fullscreen=FG(a.fullscreenCommands)||[];b.active_view_viewable=FG(a.activeViewViewableCommands)|| [];b.active_view_measurable=FG(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=FG(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=FG(a.endFullscreenCommands)||[];b.channel_clickthrough=FG(a.channelClickthroughCommands)||[];b.abandon=FG(a.abandonCommands)||[];b.progress=GG(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind})); b.start=GG(a.progressCommands.filter(function(c){return IG(c)&&fe(HG(c),0)})); b.first_quartile=GG(a.progressCommands.filter(function(c){return IG(c)&&fe(HG(c),.25)})); b.midpoint=GG(a.progressCommands.filter(function(c){return IG(c)&&fe(HG(c),.5)})); b.third_quartile=GG(a.progressCommands.filter(function(c){return IG(c)&&fe(HG(c),.75)})); b.complete=GG(a.progressCommands.filter(function(c){return IG(c)&&fe(HG(c),1)})); return b}; JG=function(a){vG.call(this,a,sja(a));this.l=a.questions?a.questions.reduce(function(b,c){return(c=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer)?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0):0}; tja=function(a,b,c,d){this.id=b;this.X=a.placementStartPings||[];this.Y=a.placementEndPings||[];this.B=d.Dd;b=a.config&&a.config.adPlacementConfig;if(!b)throw Error("Malformed AdPlacementRenderer: missing AdPlacementConfig");var e=a.renderer&&a.renderer.adBreakServiceRenderer&&a.renderer.adBreakServiceRenderer||{};this.u=(this.G=e.getAdBreakUrl||"")?0:2;d.i=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=aw(b,d);if(null==f)d=new Yv(b,new Kn(-1,-1),!1,"adcuerange:invalid", 2),d.deactivate(),d=[null,d];else{e=":"+(xo.getInstance().i++).toString(36);var h=d.daiEnabled||d.Dd;f=new Yv(b,f,d.visible&&!h,"adcuerange:"+e,2);h=null;if(d.Dd||0=c*a.B.yD||d)&&YG(a,"first_quartile");(b>=c*a.B.SECOND||d)&&YG(a,"midpoint");(b>=c*a.B.JE||d)&&YG(a,"third_quartile")}; bH=function(a,b,c,d){if(null==a.C){if(cd||d>c)return;YG(a,b)}; Hja=function(a,b,c){if(0l.B&&l.Tg()}}; Rja=function(a){if(a.C&&a.U){a.U=!1;a=g.q(a.C.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.l=void 0;Qja(b.u(),c)}else Q("Received AdNotify terminated event when no slot is active")}}; Sja=function(){gH.call(this,"ad-attribution-bar");this.adPodPositionInfoString=null;this.adPodPosition=0;this.adPodLength=1;this.adBreakLengthSeconds=0;this.adBadgeText=null;this.adBreakRemainingLengthSeconds=0;this.adBreakEndSeconds=null;this.adVideoId=""}; g.vH=function(a,b){for(var c={},d=g.q(Object.keys(b)),e=d.next();!e.done;c={jy:c.jy},e=d.next())e=e.value,c.jy=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.jy}}(c)); return a}; wH=function(a){return a?g.cw(a):null}; Tja=function(a){if(!a)return[];var b=a.loggingUrls;if(!b)return[];a=[];b=g.q(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}; Uja=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null}; Vja=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}}; Yja=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&&(Wja(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=wH(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&& Xja(a,b,c,d))}}; Wja=function(a,b,c){var d=wH(b.confirmLabel)||"",e=wH(b.title)||"",f=[];if(b.adReasons)for(var h=g.q(b.adReasons),l=h.next();!l.done;l=h.next())f.push(wH(l.value)||"");h=b.headerTitle?g.cw(b.headerTitle):"";d={closeButton:d,menuTitle:h,targetingReasonHeader:e,targetingReasons:f,dialogMessage:wH(b.dialogMessage)||"",adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};a.whyThisAdInfo=d;a.whyThisAdClicked=function(){if(b.impressionEndpoints)for(var m=g.q(b.impressionEndpoints), n=m.next();!n.done;n=m.next())c(n.value)}; a.whyThisAdClosed=function(){b.confirmServiceEndpoint&&c(b.confirmServiceEndpoint)}}; Xja=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:wH(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=Tja(b.navigationEndpoint);var h=Vja(b[1]),l=[Vja(b[0])];(b=Uja(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.q(l),p=n.next();!p.done;p=n.next())c(p.value)}; Zja(a,e,d)}}}; Zja=function(a,b,c){a.muteAdInfo.goneText=wH(b.title)||"";a.muteAdInfo.questionText=wH(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=wH(b.undoRenderer.buttonRenderer.text)||"");a.sendAdsPing=function(f){c(f)}; a=a.muteAdInfo.surveyOptions;b=g.q(b.reasons||[]);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=wH(e.reason)||"";e=Tja(e.endpoint)[0];a.push({label:d,url:e})}}; $ja=function(a,b){var c=new Sja;c.adBadgeText="Ad";1=d.l&&(d.i=d.l,d.Hb.stop());e=d.i/1E3;d.C&&d.C.Ub(e);lka(d,{current:e,duration:d.l/1E3})}); g.G(this,this.Hb);this.i=0;this.u=null;g.Bi(this,function(){d.u=null}); this.B=0}; lka=function(a,b){a.G.Na("onAdPlaybackProgress",b);a.u=b}; tI=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;gH.call(this,"survey",a,{},b,c);this.Rg=d;this.Vh=e}; uI=function(a,b,c,d,e,f,h){lH.call(this,a,b,c,d,e,1);var l=this;this.C=b;this.B=new gu;g.G(this,this.B);this.B.N(this.I,"resize",function(){450>l.I.Za().Uf().width&&(g.iu(l.B),l.Vf())}); this.L=0;this.J=h(this,function(){return""+(Date.now()-l.L)}); if(this.i=g.LD(a.T())?new sI(1E3*b.l,a,f):null)g.G(this,this.i),this.B.N(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&(m=l.C.i,(m=m.questions&&m.questions[0])?(m=(m=m.instreamSurveyAdMultiSelectQuestionRenderer||m.instreamSurveyAdSingleSelectQuestionRenderer)&&m.surveyAdQuestionCommon,l.J.md(m&&m.timeoutCommands)):g.Ou(Error("Expected a survey question in InstreamSurveyAdRenderer.")))})}; vI=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;gH.call(this,"survey-interstitial",a,b,c,d);this.Rg=e;this.EC=f}; wI=function(a,b,c,d,e){lH.call(this,a,b,c,d,e,1);this.i=b}; mka=function(){if(ol())return!0;var a=g.M("INNERTUBE_CLIENT_NAME");return!a||"WEB"!==a&&"MWEB"!==a?!0:(a=g.Io("CONSENT"))?a.startsWith("YES+"):!0}; oka=function(a,b){var c=void 0===c?!0:c;var d=g.M("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.wd(window.location.href);e&&d.push(e);e=g.wd(a);if(g.fb(d,e)||!e&&kc(a,"/"))if(g.So("autoescape_tempdata_url")&&(d=document.createElement("a"),g.gd(d,a),a=d.href),a&&(a=yd(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.Du()},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{lN:new Kn(b,c),wO:new Fv(b,c-b,a.context,a.identifier,a.event,a.i)}}; HI=function(){this.i=[]}; Eka=function(a,b,c){var d=g.vb(a.i,b);if(0<=d)return b;b=-d-1;return b>=a.i.length||a.i[b]>c?null:a.i[b]}; Fka=function(){this.i=new HI}; II=function(a){this.i=a}; Gka=function(a){a=[a,a.u].filter(function(d){return!!d}); for(var b=g.q(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a}; Hka=function(a,b,c){this.u=a;this.i=b;this.l=c;this.B=a.getCurrentTime()}; Jka=function(a,b){var c=void 0===c?Date.now():c;b=g.q(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=c,f=a.i;JI({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:Ika(d.event),cuepointId:d.identifier,totalCueDurationMs:1E3*d.durationSecs,playheadTimeMs:d.i,cueStartTimeMs:1E3*d.startSecs,cuepointReceivedTimeMs:e,contentCpn:f}});a.l&&("unknown"===d.event&&KI("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.i),d=d.startSecs+d.i/1E3,d>a.B&&a.u.getCurrentTime()>d&&KI("DAI_ERROR_TYPE_LATE_CUEPOINT", a.i))}}; Kka=function(a,b,c){a.l&&JI({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.i}})}; Lka=function(a,b){a.l&&JI({adTrimmingInfo:{contentCpn:a.i,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.ZM}})}; KI=function(a,b){JI({daiStateTrigger:{errorType:a,contentCpn:b}})}; JI=function(a){g.rs("adsClientStateChange",a)}; Ika=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"}}; LI=function(a){this.I=a;this.adVideoId=this.videoId=this.adCpn=this.contentCpn=null;this.u=!0;this.B=this.i=this.Wf=!1;this.adFormat=null;this.l="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; Mka=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.l="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.Wf=!1;a.i=!1}; Nka=function(a){a.i=!1;Rw("video_to_ad",["apbs"],void 0,void 0)}; Pka=function(a){a.B?Oka(a):(a.i=!1,Rw("ad_to_ad",["apbs"],void 0,void 0))}; Oka=function(a){a.i=!1;Rw("ad_to_video",["pbresume"],void 0,void 0)}; Qka=function(a){a.Wf&&!a.i&&(a.u=!1,a.i=!0,"ad_to_video"!==a.actionType&&(Tw("apbs",void 0,a.actionType),g.So("finalize_all_timelines")&&(a=a.actionType,Ow("c",a),zw(a),Nw(a))))}; Rka=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.Tka=function(a){return(a=Ska[a.toString()])?a:"LICENSE"}; MI=function(){g.F.call(this);this.l=null;this.G=this.C=!1;this.u=new g.Ul;g.G(this,this.u)}; NI=function(a){a=a.Js();return 1>a.length?NaN:a.end(a.length-1)}; Uka=function(a,b,c){a.Dl()||a.getCurrentTime()>b||10=Math.abs(b-a.i.i.end/1E3)):b=!0;if(b&&!a.i.C.hasOwnProperty("ad_placement_end")){b=g.q(a.i.Y);for(var d=b.next();!d.done;d=b.next())$ka(d.value);a.i.C.ad_placement_end=!0}b=a.i.L;if(null!==b){d=a.Ik;var e=a.i.B&&a.i.B.identifier,f=a.i.i.start,h=cJ(a);d.l&&JI({driftRecoveryInfo:{contentCpn:d.i,cueIdentifier:e||void 0,driftRecoveryMs:b.toString(),breakDurationMs:Math.round(h- f).toString(),driftFromHeadMs:Math.round(1E3*d.u.cm()).toString()}});a.i.L=null}c||a.daiEnabled?dJ(a.Df,!0):a.U&&a.rE()&&a.Zs()?dJ(a.Df,!1,gla(a)):dJ(a.Df,!1);ala(a,!0)}; gla=function(a){if(a.va)return function(c){c.seekTo(Infinity,!0,void 0,1)}; var b=Math.floor(g.Ra()/1E3)-a.ma;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}}; hla=function(a,b,c){this.i=a;this.l=b;this.u=c}; fJ=function(){this.B=[];this.C=[];this.i=[];this.l=new Set;this.G=new Map}; gJ=function(){fJ.i||(fJ.i=new fJ);return fJ.i}; ila=function(a,b,c){c=void 0===c?0:c;b.then(function(d){var e,f;a.l.has(c)&&a.u&&a.u();var h=g.Du(c),l=g.Bu(c);h&&l&&(d.csn=h,(null===(e=d.response)||void 0===e?0:e.trackingParams)&&g.Wu(a.client,h,l,[g.xu(d.response.trackingParams)]),(null===(f=d.playerResponse)||void 0===f?0:f.trackingParams)&&g.Wu(a.client,h,l,[g.xu(d.playerResponse.trackingParams)]))})}; jla=function(a,b){hJ(a,g.xu(b),void 0,void 0)}; hJ=function(a,b,c,d){d=void 0===d?0:d;if(a.l.has(d))a.B.push([b,c]);else{var e=g.Du(d);c=c||g.Bu(d);e&&c&&g.Wu(a.client,e,c,[b])}}; lla=function(a,b,c){c=void 0===c?{}:c;a.l.add(c.layer||0);a.u=function(){kla(a,b,c);var f=g.Bu(c.layer);if(f){for(var h=g.q(a.B),l=h.next();!l.done;l=h.next())l=l.value,hJ(a,l[0],l[1]||f,c.layer);f=g.q(a.C);for(h=f.next();!h.done;h=f.next()){var m=h.value;h=void 0;h=void 0===h?0:h;l=g.Du(h);var n=m[0]||g.Bu(h);l&&n&&(h=a.client,m=m[1],m={csn:l,ve:n.getAsJson(),clientData:m},n={Ce:Eu(l),ql:l},"UNDEFINED_CSN"==l?Vu("visualElementStateChanged",m,n):h?sr("visualElementStateChanged",m,h,n):g.rs("visualElementStateChanged", m,n))}}}; g.Du(c.layer)||a.u();if(c.OF)for(var d=g.q(c.OF),e=d.next();!e.done;e=d.next())ila(a,e.value,c.layer);else g.Ou(Error("Delayed screen needs a data promise."))}; kla=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.pS?c.pS:c.layer;var e=g.Du(d);d=g.Bu(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.M("EVENT_ID");g.So("screen_manager_log_servlet_ei")&&"UNDEFINED_CSN"===e&&l&&(h={servletData:{serializedServletEventId:l}});try{var m=a.client;l=f;var n=c.LF,p=c.Ce,r=mla(),t={csn:r,pageVe:(new wu({veType:b,youtubeData:h})).getAsJson()}; l&&l.visualElement?t.implicitGesture={parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()}:l&&g.Pu(new g.xs("newScreen() parent element does not have a VE - rootVe",b));n&&(t.cloneCsn=n);n={Ce:p,ql:r};m?sr("screenCreated",t,m,n):g.rs("screenCreated",t,n);Lr(bv,new Uu(r));var u=r}catch(x){Xfa(x,{Ut:b,rootVe:d,parentVisualElement:void 0,b6:e,t6:f,LF:c.LF});g.Ou(x);return}Gu(u,b,c.layer,c.Ce);if((b=e&&"UNDEFINED_CSN"!==e&&d)&&!(b=g.So("screen_manager_skip_hide_killswitch"))){a:{b=g.q(Object.values(nla)); for(f=b.next();!f.done;f=b.next())if(g.Du(f.value)==e){b=!0;break a}b=!1}b=!b}b&&Yu(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.Sw("csn",u);gv.getInstance().clear();d=g.Bu(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.So("web_mark_root_visible")||g.So("music_web_mark_root_visible"))&&g.Xu(u,d,void 0);a.l.delete(c.layer||0);a.u=void 0;e=g.q(a.G);for(u=e.next();!u.done;u=e.next())u=g.q(u.value),b=u.next().value,u.next().value.has(c.layer)&&d&&hJ(a,b,d,c.layer)}; iJ=function(){this.i={};if(this.l=yea()){var a=g.Io("CONSISTENCY");a&&ola(this,{encryptedTokenJarContents:a})}}; ola=function(a,b){if(b.encryptedTokenJarContents&&(a.i[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.i[b.encryptedTokenJarContents]},1E3*c); a.l&&g.Ho("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}}; qla=function(){var a=g.M("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.M("INNERTUBE_CLIENT_NAME")&&(this.localStorage=pla(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.i=void 0)}; rla=function(){jJ=g.Ha("ytglobal.ClientLocationService.instance");jJ||(jJ=new qla,g.Ga("ytglobal.ClientLocationService.instance",jJ,void 0));return jJ}; pla=function(a){return void 0===a.localStorage?new Hr("yt-client-location"):a.localStorage}; kJ=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.M("INNERTUBE_CONTEXT");if(!d)return g.Ou(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.Ub(d);g.So("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&(e.clientFormFactor=g.M("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio|| 1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=void 0===f?!1:f;g.wr.getInstance();var h="USER_INTERFACE_THEME_LIGHT";g.yr(0,165)?h="USER_INTERFACE_THEME_DARK":g.yr(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.So("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(h="USER_INTERFACE_THEME_DARK");f=f?h:Ifa()||h;e.userInterfaceTheme= f;if(g.So("web_log_connection")&&!b){if(f=Dr())e.connectionType=f;g.So("web_log_effective_connection_type")&&(f=Fr())&&(d.client.effectiveConnectionType=f)}f=g.ep(g.B.location.href);!g.So("web_populate_internal_geo_killswitch")&&f.internalcountrycode&&(e.internalGeo=f.internalcountrycode);if("MWEB"===e.clientName||"WEB"===e.clientName)e.mainAppWebInfo={graftUrl:g.B.location.href},g.So("kevlar_woffle")&&tr.i&&(e.mainAppWebInfo.pwaInstallabilityStatus=tr.i.i?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),g.So("web_include_display_mode_killswitch")||(e.mainAppWebInfo.webDisplayMode=ur()),g.So("kevlar_share_panel_more_button")&&(e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share);if(!g.So("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var l=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(I){}l=void 0}l&&(e.timeZone=l)}(l=g.M("EXPERIMENTS_TOKEN",""))?e.experimentsToken=l:delete e.experimentsToken; l=Vo();iJ.i||(iJ.i=new iJ);e=g.Jb(iJ.i.i);d.request=Object.assign(Object.assign({},d.request),{internalExperimentFlags:l,consistencyTokenJars:e});e=g.wr.getInstance();l=g.yr(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);l&&(d.user.enableSafetyMode=l);e&&(d.user.lockedSafetyMode=!0);(l=g.M("DELEGATED_SESSION_ID"))&&!g.So("pageid_as_header_web")&&(d.user.onBehalfOfUser=l);g.So("warm_op_csn_cleanup")?c&&(b=g.Du())&&(d.clientScreenNonce=b):!b&&(b=g.Du())&&(d.clientScreenNonce=b);a&&(d.clickTracking= {clickTrackingParams:a});g.So("web_enable_client_location_service")&&(a=rla(),d.client||(d.client={}),a.i?(d.client.locationInfo||(d.client.locationInfo={}),d.client.locationInfo.latitudeE7=1E7*a.i.coords.latitude,d.client.locationInfo.longitudeE7=1E7*a.i.coords.longitude,d.client.locationInfo.horizontalAccuracyMeters=a.i.coords.accuracy,d.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):a.locationPlayabilityToken&&(d.client.locationPlayabilityToken=a.locationPlayabilityToken));var m, n;try{var p=null===(m=d.adSignalsInfo)||void 0===m?void 0:m.consentBumpParams,r=np(void 0),t=r.bid;delete r.bid;d.adSignalsInfo={params:[],bid:t};for(var u=g.q(Object.entries(r)),x=u.next();!x.done;x=u.next()){var y=g.q(x.value),A=y.next().value,E=y.next().value;null===(n=d.adSignalsInfo.params)||void 0===n?void 0:n.push({key:A,value:""+E})}!Ko()&&p&&(d.adSignalsInfo.consentBumpParams=p)}catch(I){g.Ou(I)}return d}; lJ=function(){is.apply(this,arguments);this.i={}}; sla=function(){mJ||(mJ=new lJ);return mJ}; tla=function(a,b){b?a.i.Authorization="Bearer "+b:delete a.i.Authorization}; ula=function(a){return a.isTimeout?"NO_BID":"ERR_BID"}; vla=function(){var a=null;Op().then(function(b){return a=b},function(b){return a=ula(b)}); return a}; wla=function(){var a=Gm(1E3,"NO_BID");return um(g.wm(Sda([Op(),a]),ula),function(){return a.cancel()})}; xla=function(a){return a.zb?g.yr(g.wr.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; nJ=function(a){this.player=a;this.l=this.i=1}; pJ=function(a,b,c,d){c=void 0===c?{}:c;var e=c.Vr,f=c.Od;d=void 0===d?"":d;c=a.player.getVideoData(1);var h=a.player.T().mj,l={AD_BLOCK:a.i++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:xla(a.player.T()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.cm(),LACT:vq(),LIVE_INDEX:e?a.l++:1,LIVE_TARGETING_CONTEXT:e&&e.context?e.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.Za().Uf().height, P_W:a.player.Za().Uf().width,YT_REMOTE:h?h.join(","):""},m=mp(lp);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())}); ""!==d&&(l.BISCOTTI_ID=d);d={};kp(b)&&(d.sts="18778",(e=a.player.T().Va)&&(d.forced_experiments=e));b=hp(g.fn(b,l),d);a.player.getVideoData();if(2!==b.split("?").length)return pm(Error("Invalid AdBreakInfo URL"));if((d=null===c||void 0===c?void 0:c.oauthToken)&&jp()){var n=sla();tla(n,d)}n=a.player.Pk(n);a=yla(a,b,l,c.isMdxPlayback);return g.oJ(n,a,"/youtubei/v1/player/ad_break")}; Bla=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=ip(b),f=zla(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=zla(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=bp(np(c)).split("&");var l=new Map;b.forEach(function(m){m=m.split("=");1d.length||(d[0]in Cla&&(f.clientName=Cla[d[0]]),d[1]in Dla&&(f.platform=Dla[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.LK=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)}; MK=function(a,b,c,d,e,f){tK.call(this,a,b,{D:"span",K:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e);this.videoAdDurationSeconds=f;this.u=null;this.hide()}; NK=function(a,b,c,d){rK.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")}; OK=function(a,b){this.l=a;this.i=b}; PK=function(a){return a.i-a.l}; QK=function(a,b){return a.l+b*PK(a)}; RK=function(a,b,c){return PK(a)?g.ce((b-a.l)/PK(a),0,1):null!=c?c:Infinity}; SK=function(a,b){g.OJ.call(this,{D:"div",K:"ytp-ad-persistent-progress-bar-container",S:[{D:"div",K:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.l=b;g.G(this,this.l);this.Fc=this.Ba("ytp-ad-persistent-progress-bar");this.i=-1;this.N(a,"presentingplayerstatechange",this.u);this.hide();this.u()}; TK=function(a,b,c,d,e,f){PJ.call(this,a,b,{D:"div",K:"ytp-ad-player-overlay",S:[{D:"div",K:"ytp-ad-player-overlay-flyout-cta"},{D:"div",K:"ytp-ad-player-overlay-instream-info"},{D:"div",K:"ytp-ad-player-overlay-skip-or-preview"},{D:"div",K:"ytp-ad-player-overlay-progress-bar"},{D:"div",K:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d);this.G=f;this.L=this.Ba("ytp-ad-player-overlay-flyout-cta");this.u=this.Ba("ytp-ad-player-overlay-instream-info");this.B=null;Cna(this)&&(a= De("div"),g.K(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 NK(this.api,this.Ta,this.layoutId,this.i),c.ya(a),c.init(fH("ad-title"),{text:b.title},this.macros),g.G(this,c)),this.B=a);this.C=this.Ba("ytp-ad-player-overlay-skip-or-preview");this.xa=this.Ba("ytp-ad-player-overlay-progress-bar");this.X=this.Ba("ytp-ad-player-overlay-instream-user-sentiment");this.l=e;g.G(this,this.l);this.hide()}; Cna=function(a){a=a.api.T();return g.CD(a)&&a.i}; UK=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.Hd("/sharing_services",a);g.Pq(d)}; g.Ena=function(a,b,c){b=Dna(null,b,c);if(b=hd(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.Wq("LOGGED_IN",function(d){g.Xq(g.M("LOGGED_IN_PUBSUB_KEY",void 0));Oo("LOGGED_IN",!0);a(d)}),Oo("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)}; Dna=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=Gd(c,"mode",a));a=Gd(d,"next",c);b&&(a=Gd(a,"feature",b));return a}; Gna=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=Fna[b];if(c){var d=new RegExp(c),e=g.q(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(Fna).forEach(function(h){var l=g.q(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.q(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]}; g.VK=function(a){return"/youtubei/v1/"+Gna(a)}; WK=function(a){var b=g.M("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(yd(a)));return a}; Hna=function(a,b){g.M("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null===b||void 0===b?0:b.Authorization)||(a=hp(a,{key:g.M("INNERTUBE_API_KEY")}));return a}; XK=function(a,b){return{method:void 0===b?"POST":b,mode:ip(a)?"same-origin":"cors",credentials:ip(a)?"same-origin":"include"}}; YK=function(){}; ZK=function(){}; $K=function(a,b,c,d){var e=qs;this.i=a;this.B=b;this.l=c;this.handleError=e;this.u=d;a.hp||(a.hp={});a.hp=Object.assign(Object.assign({},Ina),a.hp)}; aL=function(a,b,c){var d=void 0===d?zt:d;var e=Jna(a,b);if(!e)return a.handleError(new g.xs("Error: No request builder found for command.",b)),om({});var f=e.C(b,c,d);if(f)return new km(function(h){return g.D(a,function m(){var n,p,r=this,t;return g.z(m,function(u){if(1==u.i)return p="cors"===(null===(n=f.Wo)||void 0===n?void 0:n.mode)?"cors":void 0,g.w(u,Kna(r,f.config,p),2);t=u.l;h(Lna(r,f,t));g.sa(u)})})}); a.handleError(new g.xs("Error: Failed to build request for command.",b));return om({})}; g.oJ=function(a,b,c){var d=void 0===d?{Fn:{identity:zt}}:d;var e=void 0===e?!0:e;b.context||(b.context=kJ(void 0,e));return new km(function(f){return g.D(a,function l(){var m,n,p=this,r,t,u;return g.z(l,function(x){if(1==x.i)return m=WK(c),n=ip(m)?"same-origin":"cors",g.w(x,Kna(p,d,n),2);r=x.l;t=Hna(WK(c),r);u={input:t,Wo:XK(t),Ss:b,config:d};f(Lna(p,u,r));g.sa(x)})})})}; Lna=function(a,b,c){return g.D(a,function e(){var f=this,h,l,m,n,p,r,t,u,x;return g.z(e,function(y){switch(y.i){case 1:y.xb(2);break;case 3:if((h=y.l)&&!h.isExpired())return y.return(Promise.resolve(h.i()));case 2:l=g.q([]);for(m=l.next();!m.done;m=l.next())n=m.value,n.y6(b.Ss.context);p=JSON.stringify(b.Ss);b.Wo=Object.assign(Object.assign({},b.Wo),{headers:c});r=Object.assign({},b.Wo);"POST"===b.Wo.method&&(r=Object.assign(Object.assign({},r),{body:p}));return g.w(y,f.B.fetch(b.input,r),4);case 4:if((t= y.l)&&f.u)for(u=g.q(f.u),m=u.next();!m.done;m=u.next())x=m.value,x.qo(t,b);return y.return(t)}})})}; Mna=function(a,b){var c,d;if(!b)return!1;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.i.hp)return Uo("web_op_signal_type_banlist").includes(b.signalServiceEndpoint.signal)?!1:!!a.i.hp[b.signalServiceEndpoint.signal];if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.i.Xz)return Uo("web_op_continuation_type_banlist").includes(b.continuationCommand.request)?!1:!!a.i.Xz[b.continuationCommand.request];for(var e in b)if(a.i.Uz[e]){if(Uo("web_op_endpoint_banlist").includes(e))break; return!0}return!1}; Kna=function(a,b,c){return g.D(a,function e(){var f=this;return g.z(e,function(h){if(f.l.cT){var l=h.return,m,n,p=(null===(n=null===b||void 0===b?void 0:b.Fn)||void 0===n?void 0:n.identity)||zt;n=null===(m=null===b||void 0===b?void 0:b.Fn)||void 0===m?void 0:m.sessionIndex;m=f.l.Ov(p,{sessionIndex:n});m=Object.assign(Object.assign({},Nna(c)),m);h=l.call(h,m)}else h=h.return(Ona(f,b,c));return h})})}; Ona=function(a,b,c){var d,e,f=(null===(d=null===b||void 0===b?void 0:b.Fn)||void 0===d?void 0:d.identity)||zt;b=null===(e=null===b||void 0===b?void 0:b.Fn)||void 0===e?void 0:e.sessionIndex;return ks(a.l,f,{sessionIndex:b}).then(function(h){return Promise.resolve(Object.assign(Object.assign({},Nna(c)),h))})}; Nna=function(a){var b={"Content-Type":"application/json"},c=g.M("VISITOR_DATA");c&&(b["X-Goog-Visitor-Id"]=c);"cors"!==a&&((a=g.M("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.M("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.M("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a));return b}; Jna=function(a,b){var c,d;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.i.hp){var e=a.i.hp[b.signalServiceEndpoint.signal];if(e)return new e}if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.i.Xz&&(e=a.i.Xz[b.continuationCommand.request]))return new e;for(var f in b)if(a.i.Uz[f]&&(b=a.i.Uz[f]))return new b}; bL=function(){}; cL=function(){}; dL=function(){}; eL=function(){}; fL=function(){}; gL=function(){}; hL=function(){this.i=this.l=void 0}; g.jL=function(a,b){if(!iL){var c={Uz:{feedbackEndpoint:dL,modifyChannelNotificationPreferenceEndpoint:eL,playlistEditEndpoint:fL,subscribeEndpoint:bL,unsubscribeEndpoint:cL,webPlayerShareEntityServiceEndpoint:gL}},d=g.So("web_enable_client_location_service")?rla():void 0,e=[];d&&e.push(d);void 0===a&&(a=js());void 0===b&&(hL.i||(hL.i=new hL),b=hL.i);$K.i=new $K(c,b,a,e);iL=$K.i}return iL}; Qna=function(){if((!g.So("condition_ad_status_fetch_on_consent_cookie_html5_clients")||Ko())&&"1"!=Rb(g.M("PLAYER_VARS",{}),"privembed",!1)){var a=function(){kL=!0;"google_ad_status"in window?Oo("DCLKSTAT",1):Oo("DCLKSTAT",2)}; try{g.ov("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}Pna.push(g.lq(function(){if(!(kL||"google_ad_status"in window)){try{if(a){var b=""+g.Oa(a),c=qv[b];c&&g.Xq(c)}}catch(d){}kL=!0;Oo("DCLKSTAT",3)}},5E3))}}; Rna=function(){var a=Number(g.M("DCLKSTAT",0));return isNaN(a)?0:a}; Tna=function(){var a,b;return g.D(this,function d(){var e;return g.z(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(Sna()):f.return()})})}; Sna=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."))})}; ps=function(a,b){var c=this;this.handleError=a;this.i=b;this.l=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.l=!0})}; Vna=function(a,b){Tna().then(function(c){c=Object.assign(Object.assign({},b),{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:Una(null===c||void 0===c?void 0:c.usage),deviceStorageQuotaMbytes:Una(null===c||void 0===c?void 0:c.quota)});a.i("idbQuotaExceeded",c)})}; Una=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))}; lL=function(){this.l=!1;this.i=null}; Xna=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;c?(a.l=!0,g.ov(c,function(){a.l=!1;var l=0<=c.indexOf("/th/");if(l?window.trayride:window.botguard)Wna(a,d,!!h,l,e);else{l=pv(c);var m=document.getElementById(l);m&&($q(l),m.parentNode.removeChild(m));g.Pu(new g.xs("Unable to load Botguard","from "+c))}},f)):b&&(f=g.Ee("SCRIPT"),f.textContent=b,f.nonce=jd(),document.head.appendChild(f),document.head.removeChild(f),((b=b.includes("trayride"))?window.trayride:window.botguard)?Wna(a,d,!!h,b,e):g.Pu(Error("Unable to load Botguard from JS")))}; Wna=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{Yna(a,new d(b,e?function(){return e(b)}:g.Ia))}catch(l){l instanceof Error&&g.Pu(l)}else{try{Yna(a,new d(b))}catch(l){l instanceof Error&&g.Pu(l)}e&&e(b)}else g.Pu(Error("Failed to finish initializing VM"))}; Zna=function(a,b){var c=mL;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)}; Yna=function(a,b){a.i=b}; $na=function(){Yw("bg_l","player_att");nL=(0,g.O)()}; aoa=function(a){a=void 0===a?{}:a;return mL.invoke(a)}; boa=function(a){var b=To("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return Zna(a,b)}; g.coa=function(a){var b=this;this.videoData=a;a={};this.l=(a.c1a=function(){if(mL.Pd()){var c="";b.videoData&&b.videoData.Aa&&(c=b.videoData.Aa+("&r1b="+b.videoData.clientPlaybackNonce));var d={};c=(d.atr_challenge=c,d);Yw("bg_v","player_att");c=aoa(c);Yw("bg_s","player_att");c=c?"r1a="+c:"r1c=2"}else Yw("bg_e","player_att"),c=window.trayride||window.botguard?"r1c=1":"r1c=4";return c},a.c3a=function(c){return"r3a="+Math.floor(b.videoData.lengthSeconds%Number(c.c3a)).toString()},a.c6a=function(c){return"r6a="+ (Number(c.c)^Rna())},a); this.videoData&&this.videoData.Aa?this.i=cp(this.videoData.Aa):this.i={}}; doa=function(a){if(a.videoData&&a.videoData.Aa){for(var b=[a.videoData.Aa],c=g.q(Object.keys(a.l)),d=c.next();!d.done;d=c.next())d=d.value,a.i[d]&&a.l[d]&&(d=a.l[d](a.i))&&b.push(d);return b.join("&")}return null}; g.foa=function(a){var b={};Object.assign(b,a.l);"c1b"in a.i&&(b.c1a=function(){return eoa(a)}); if(a.videoData&&a.videoData.Aa){for(var c=[a.videoData.Aa],d=g.q(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.i[e]&&b[e]&&(e=b[e](a.i))&&c.push(e);return new Promise(function(f,h){Promise.all(c).then(function(l){f(l.filter(function(m){return!!m}).join("&"))},h)})}return Promise.resolve(null)}; eoa=function(a){if(!mL.Pd())return Yw("bg_e","player_att"),window.trayride||window.botguard?Promise.resolve("r1c=1"):Promise.resolve("r1c=4");var b="";a.videoData&&a.videoData.Aa&&(b=a.videoData.Aa+("&r1b="+a.videoData.clientPlaybackNonce));a={};var c=(a.atr_challenge=b,a);return new Promise(function(d){Yw("bg_v","player_att");boa(c).then(function(e){e?(Yw("bg_s","player_att"),d("r1a="+e)):(Yw("bg_e","player_att"),d("r1c=2"))},function(){Yw("bg_e","player_att"); d("r1c=3")})})}; goa=function(a,b,c){"string"===typeof a&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});a:{if((b=a.mediaContentUrl)&&(b=/\/([ve]|embed)\/([^#?]+)/.exec(b))&&b[2]){b=b[2];break a}b=null}a.videoId=b;return oL(a)}; oL=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b=["endSeconds","startSeconds","mediaContentUrl","suggestedQuality","videoId"];c={};for(var d=0;dd&&(d=-(d+1));g.He(a,b,d);b.setAttribute("data-layer",String(c))}; g.GL=function(a){var b=a.T();if(!b.zb)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=!c.isLiveDefaultBroadcast||g.R(b.experiments,"allow_poltergust_autoplay");d=c.isLivePlayback&&(!g.R(b.experiments,"allow_live_autoplay")||!d);var e=c.isLivePlayback&&g.R(b.experiments,"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.C&&f;return!c.ypcPreview&&(!d||e)&&!g.fb(c.Y,"ypc")&&!a&&(!g.tD(b)||f)}; qoa=function(a){a=g.W(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.l||!b.l.video||1080>b.l.video.i||b.WI)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.l.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.La("iqss",d,!0),!0):!1}; roa=function(a){this.schedule=a;this.i=NaN;this.l=[];this.totalBytes=0}; HL=function(a,b,c,d){var e=void 0===d?{}:d;d=void 0===e.Eh?!1:e.Eh;var f=void 0===e.Qj?!1:e.Qj,h=e.Jg,l=e.Ka;e=e.re;this.schedule=a;this.hs=b;this.Va=c;this.Aa=null;this.xa=this.i=NaN;this.Qa=0;this.ma=this.Fa=this.l=this.B=NaN;this.Ha=this.va=this.isActive=!1;this.u=0;this.Y=NaN;this.L=this.G=Infinity;this.X=NaN;this.Oa=!1;this.J=this.U=NaN;this.C=this.Ea=void 0;this.Eh=d;this.Qj=f;this.Jg=h;this.Ka=l;this.re=e;this.snapshot=$C(this.schedule)}; soa=function(a){return{rt:(a.now()-a.i).toFixed(),lb:a.l.toFixed(),pt:(1E3*a.Y).toFixed(),pb:a.hs.toFixed(),stall:(1E3*a.u).toFixed(),elbowTime:(a.xa-a.i).toFixed(),elbowBytes:a.Qa.toFixed()}}; voa=function(a){a.i=a.now();a.B=a.i;a.l=0;a.Fa=a.i;a.ma=0;a.C&&(a.C=[]);a.va=!1;a.Ha=!1;a.u=0;a.snapshot=$C(a.schedule);a.G=Infinity;a.L=Infinity;toa(a);uoa(a,a.i);a.Y=(a.U-a.i)/1E3;a.J=NaN;a.Ea=void 0}; IL=function(a){!a.J&&a.Aa&&(a.J=a.Aa(),3===a.J&&(a.Ea=new roa(a.schedule)));return a.J}; xoa=function(a,b,c){var d=(b-a.B)/1E3,e=c-a.l,f=IL(a);if(3===f&&e){var h=a.Ea;h.l.push({n6:e,I6:isNaN(h.i)?NaN:b-h.i,u6:b});h.i=b}a.isActive?1===f&&0e?(a.u+=d,.2d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=NL(a)?d+b:d+Math.max(b,c);a.U=d}; QL=function(a,b){return PL?b:b>a.i&&4E12>b?b:a.now()}; LL=function(a,b){for(var c="";4095>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))}; RL=function(a,b,c){var d=this;c=void 0===c?{}:c;this.u=b;this.l=this.status=0;this.Ia=this.i=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.q(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){2===d.xhr.readyState&&d.u.UB()}; a=Yo(function(f){d.onDone(f)}); this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);c.body?this.xhr.send(c.body):this.xhr.send();this.xhr.addEventListener("progress",Yo(function(f){d.Rc(f)}),!1)}; g.SL=function(){gu.apply(this,arguments)}; Aoa=function(){this.l=this.i=NaN}; TL=function(a,b){this.u=a;this.timerName="";this.l=!1;this.B=new Aoa;this.i=b||null;this.l=!1}; Boa=function(a,b,c){var d=g.zD(b.B)&&!b.B.C;if(b.B.jf&&(vD(b.B)||fE(b.B)||d)&&!a.l){a.l=!0;g.M("TIMING_ACTION")||Oo("TIMING_ACTION",a.u.csiPageType);a.u.csiServiceName&&Oo("CSI_SERVICE_NAME",a.u.csiServiceName);if(a.i){b=a.i.bq();d=g.q(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,Tw(e,b[e],a.timerName);b=a.i.Ur;d=g.q(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,g.Sw(e,b[e],a.timerName);b=a.i;b.i={};b.Ur={}}g.Sw("yt_pvis",$w(),a.timerName);g.Sw("yt_pt","html5",a.timerName); c&&!Xw("pbs",a.timerName)&&a.tick("pbs",c);c=a.u;!fE(c)&&!vD(c)&&Xw("_start",a.timerName)&&Zw(a.timerName)}}; g.UL=function(a,b){this.type=a||"";this.id=b||""}; g.VL=function(a,b){g.P.call(this);this.l=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.Ld=this.jA=this.i=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.B={};this.u=0;if(a=b.session_data)this.Ld=ap(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 g.UL("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=new g.UL(a.substr(0,2),a.substr(2));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}; Doa=function(a){var b=a.index-1;return 0>b?a.length-1:b}; XL=function(a,b){a.index=g.ce(b,0,a.length-1);a.startSeconds=0}; YL=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=a.fb();a.items=[];for(var d=g.q(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))){r={applicationState:r?"INACTIVE":"ACTIVE",clientFormFactor:Ioa[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:Joa[t[0]]||"UNKNOWN_INTERFACE",clientVersion:t[2]||"",platform:Koa[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(m){var u=void 0;try{u=JSON.parse(m)}catch(x){g.Pu(x)}u&& (t={params:[{key:"ms",value:u.ms}]},r.osName=u.os_name,r.userAgent=u.user_agent,r.windowHeightPoints=u.window_height_points,r.windowWidthPoints=u.window_width_points)}n.push({adSignalsInfo:t,remoteClient:r})}}l.remoteContexts=n}h.mdxContext=l;l=b.width;0Math.random()){var A=new g.xs("Unable to load player module",(c||"lib")+".js from "+b+" on "+(document.location&&document.location.origin)+".");g.Ou(A)}Zl(e);t&&t(y)}; var u=m,x=u.onreadystatechange;u.onreadystatechange=function(y){switch(u.readyState){case "loaded":case "complete":Zl(f)}x&&x(y)}; l&&((h=a.I.T().cspNonce)&&m.setAttribute("nonce",h),g.Sd(m,g.fg(b)),h=document.getElementsByTagName("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.Bi(a,function(){m.parentNode&&m.parentNode.removeChild(m);c&&(g.nM[c]=null);"annotations_module"===c&&(g.nM.creatorendscreen=null)}))}; vM=function(a,b,c){g.ul.call(this,b,a);this.i=c}; g.wM=function(a){MI.call(this);var b=this;this.i=a;this.B={};this.listener=function(c){b.dispatchEvent(new vM(b,c.type,c))}}; yM=function(a,b,c,d){g.P.call(this);var e=this;this.target=a;this.hv=b;this.l=0;this.G=!1;this.B=new g.ge(NaN,NaN);this.i=new g.SL(this);this.va=this.u=this.J=null;g.G(this,this.i);b=d?4E3:3E3;this.U=new g.J(function(){xM(e,1,!1)},b,this); g.G(this,this.U);this.Y=new g.J(function(){xM(e,2,!1)},b,this); g.G(this,this.Y);this.X=new g.J(function(){xM(e,512,!1)},b,this); g.G(this,this.X);this.ma=c&&01+b&&a.api.toggleFullscreen()}; ppa=function(){var a=zq()&&67<=wq();return!yq("tizen")&&!rD&&!a&&!0}; WM=function(a,b){b=void 0===b?2:b;g.P.call(this);this.api=a;this.i=null;this.Wd=new gu(this);g.G(this,this.Wd);this.l=Bna;this.Wd.N(this.api,"presentingplayerstatechange",this.Ec);this.i=this.Wd.N(this.api,"progresssync",this.Ub);this.Zi=b;1===this.Zi&&this.Ub()}; XM=function(a){g.V.call(this,{D:"button",Ca:["ytp-button","ytp-back-button"],S:[{D:"div",K:"ytp-arrow-back-icon",S:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},S:[{D:"path",V:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",Ob:!0,V:{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.NJ(this,a.T().showBackButton);this.Ra("click",this.onClick)}; g.YM=function(a){g.V.call(this,{D:"div",S:[{D:"div",K:"ytp-bezel-text-wrapper",S:[{D:"div",K:"ytp-bezel-text",oa:"{{title}}"}]},{D:"div",K:"ytp-bezel",V:{role:"status","aria-label":"{{label}}"},S:[{D:"div",K:"ytp-bezel-icon",oa:"{{icon}}"}]}]});this.I=a;this.l=new g.J(this.show,10,this);this.i=new g.J(this.hide,500,this);g.G(this,this.l);g.G(this,this.i);this.hide()}; $M=function(a,b,c){if(0>=b){c=aK();b="muted";var d=0}else c=c?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Ob:!0,V:{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"}}]}:{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Ob:!0,V:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";ZM(a,c,b,d+"%")}; tpa=function(a,b){b=b?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Ob:!0,K:"ytp-svg-fill",V:{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"}}]}:{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Ob:!0,K:"ytp-svg-fill",V:{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.vH("Speed is $RATE",{RATE:String(c)});ZM(a,b,d,c+"x")}; ZM=function(a,b,c,d){d=void 0===d?"":d;a.Sa("label",void 0===c?"":c);a.Sa("icon",b);g.on(a.i);a.l.start();a.Sa("title",d);g.L(a.element,"ytp-bezel-text-hide",!d)}; bN=function(a,b,c){g.V.call(this,{D:"button",Ca:["ytp-button","ytp-cards-button"],V:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.tD(a.T()))},S:[{D:"span",K:"ytp-cards-button-icon-default",S:[{D:"div",K:"ytp-cards-button-icon",S:[Zma()]},{D:"div",K:"ytp-cards-button-title",oa:"Info"}]},{D:"span",K:"ytp-cards-button-icon-shopping",S:[{D:"div",K:"ytp-cards-button-icon",S:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"}, S:[{D:"path",K:"ytp-svg-shadow",V:{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"}},{D:"path",K:"ytp-svg-fill",V:{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"}},{D:"path",K:"ytp-svg-shadow-fill",V:{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"}}]}]},{D:"div", K:"ytp-cards-button-title",oa:"Shopping"}]}]});this.I=a;this.u=b;this.B=c;this.i=null;this.l=new g.wK(this,250,!0,100);g.G(this,this.l);g.L(this.B,"ytp-show-cards-title",g.tD(a.T()));this.hide();this.Ra("click",this.onClicked);this.Ra("mouseover",this.iQ);aN(this,!0)}; aN=function(a,b){b?a.i=g.cN(a.u.ac(),a.element):(a.i=a.i,a.i(),a.i=null)}; dN=function(a,b,c){g.V.call(this,{D:"div",K:"ytp-cards-teaser",S:[{D:"div",K:"ytp-cards-teaser-box"},{D:"div",K:"ytp-cards-teaser-text",S:a.T().Z("player_new_info_card_format")?[{D:"div",K:"ytp-cards-teaser-info-icon",S:[Zma()]},{D:"span",K:"ytp-cards-teaser-label",oa:"{{text}}"},{D:"button",K:"ytp-cards-teaser-close-button",V:{"aria-label":"Close"},S:[g.UJ()]}]:[{D:"span",K:"ytp-cards-teaser-label",oa:"{{text}}"}]}]});var d=this;this.I=a;this.U=b;this.oi=c;this.B=new g.wK(this,250,!1,250);this.i= null;this.J=new g.J(this.zQ,300,this);this.G=new g.J(this.yQ,2E3,this);this.C=[];this.l=null;this.L=new g.J(function(){d.element.style.margin="0"},250); this.u=null;g.G(this,this.B);g.G(this,this.J);g.G(this,this.G);g.G(this,this.L);g.R(a.T().experiments,"player_new_info_card_format")?(g.K(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.N(this.Ba("ytp-cards-teaser-close-button"),"click",this.Nh),this.N(this.Ba("ytp-cards-teaser-info-icon"),"click",this.OC),this.N(this.Ba("ytp-cards-teaser-label"),"click",this.OC)):this.Ra("click",this.OC);this.N(c.element,"mouseover",this.QD);this.N(c.element,"mouseout",this.PD);this.N(a,"cardsteasershow",this.NR); this.N(a,"cardsteaserhide",this.Cb);this.N(a,"cardstatechange",this.UJ);this.N(a,"presentingplayerstatechange",this.UJ);this.N(a,"appresize",this.lD);this.N(a,"onShowControls",this.lD);this.N(a,"onHideControls",this.gN);this.Ra("mouseenter",this.NK)}; vpa=function(a,b,c,d){var e=window.location.search;if(38===b.ma&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.Hd("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.RO});if(30===b.ma&&"docs"===a.playerStyle)return g.Hd("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.zE,authkey:b.authKey,eurl:a.Xb});if(33===b.ma&&"google-live"===a.playerStyle)return g.Hd("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId}); "yt"!==a.va&&g.Ou(Error("getVideoInfoUrl for invalid namespace: "+a.va));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Xb,ps:a.playerStyle,el:mG(b),hl:a.Tc,list:b.playlistId,agcid:b.SE,aqi:b.adQueryId,sts:18778,lact:vq()};g.Qa(f,a.deviceParams);a.Va&&(f.forced_experiments=a.Va);b.va?(f.vvt=b.va,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):b.Re()&&(f.access_token=b.Re());b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&& (f.break_type=b.breakType);null!==b.lz&&(f.ad_id=b.lz);null!==b.oz&&(f.ad_sys=b.oz);null!==b.Ez&&(f.encoded_ad_playback_context=b.Ez);b.yy&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.Ha&&2!==a.Ha&&(f.cc_load_policy=a.Ha);var h=g.yr(g.wr.getInstance(),65);g.cE(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.un&&(f.endscreen_ad_tracking= b.un);(h=a.U.get(b.videoId))&&h.xu&&(f.ic_track=h.xu);b.Ea&&(f.itct=b.Ea);pG(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.Oj&&(f.autonav="1");b.nB&&(f.noiba="1");g.R(a.experiments,"send_mdx_remote_data_if_present")?(b.isMdxPlayback&&(f.mdx="1"),b.xf&&(f.ytr=b.xf)):b.isMdxPlayback&&(f.mdx="1",f.ytr=b.xf);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.Hk&&(f.ytrcc=b.Hk);b.ZB&&(f.utpsa="1");b.hB&&(f.is_fling="1");b.iB&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);b.hf&&(h= 3===b.hf.split("|").length,f.force_ad_params=h?b.hf:"||"+b.hf);b.Mb&&(f.preload=b.Mb);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.Td&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");nG(b)&&(f.content_v=nG(b));b.zb&&(f.livemonitor=1);a.Y&&(f.authuser=a.Y);a.pageId&&(f.pageid=a.pageId);a.Bb&&(f.ei=a.Bb);a.l&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.u&&b.Rn&&(f.live_start_walltime=b.Rn);a.u&&b.jf&&(f.live_manifest_duration=b.jf);a.u&&b.playerParams&&(f.player_params= b.playerParams);a.u&&b.cycToken&&(f.cyc=b.cycToken);a.u&&b.zy&&(f.tkn=b.zy);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.bb&&(f.kpt=b.bb);b.gj&&(f.kids_age_up_mode=b.gj);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.kp&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.U?(h=null!=b.U.latitudeE7&&null!=b.U.longitudeE7?b.U.latitudeE7+","+b.U.longitudeE7:",",h+=","+(b.U.clientPermissionState||0)+","+(b.U.locationRadiusMeters|| "")+","+(b.U.locationOverrideToken||"")):h=null;h&&(f.uloc=h);b.dj&&(f.internalipoverride=b.dj);a.embedConfig&&(f.embed_config=a.embedConfig);a.Xi&&(f.co_rel="1");0=a.i.length)){var b=a.i.pop(),c=a.i[0];a.i=[c];zN(a,b,c,!0)}}; zN=function(a,b,c,d){Fpa(a);b&&(b.unsubscribe("size-change",a.Uq,a),b.unsubscribe("back",a.Og,a));c.subscribe("size-change",a.Uq,a);c.subscribe("back",a.Og,a);if(a.wb){g.K(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.ya(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;Epa(a);g.wg(a.element,e);a.B=new g.J(function(){Gpa(a,b,c,d)},20,a); a.B.start()}else c.ya(a.element),b&&b.detach()}; Gpa=function(a,b,c,d){a.B.dispose();a.B=null;g.K(a.element,"ytp-popup-animating");d?(g.K(b.element,"ytp-panel-animate-forward"),g.wn(c.element,"ytp-panel-animate-back")):(g.K(b.element,"ytp-panel-animate-back"),g.wn(c.element,"ytp-panel-animate-forward"));g.wg(a.element,a.size);a.G=new g.J(function(){g.wn(a.element,"ytp-popup-animating");b.detach();g.xn(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.G.dispose();a.G=null},250,a); a.G.start()}; Fpa=function(a){a.B&&g.nn(a.B);a.G&&g.nn(a.G)}; g.BN=function(a,b,c){g.yN.call(this,a);this.va=b;this.jc=c;this.u=new g.SL(this);this.X=new g.J(this.SR,1E3,this);this.ma=this.C=null;g.G(this,this.u);g.G(this,this.X);a.Yb(this.element,this,28656);g.K(this.element,"ytp-contextmenu");Hpa(this);this.hide()}; Hpa=function(a){g.iu(a.u);if("gvn"!==a.I.T().playerStyle){var b=a.I.Za();a.u.N(b,"contextmenu",a.RP);a.u.N(b,"touchstart",a.QK,null,!0);a.u.N(b,"touchmove",a.AI,null,!0);a.u.N(b,"touchend",a.AI,null,!0)}}; Ipa=function(a){a.I.isFullscreen()?g.FL(a.I,a.element,9):a.ya(document.body)}; g.CN=function(a,b,c){c=void 0===c?240:c;g.V.call(this,{D:"button",Ca:["ytp-button","ytp-copylink-button"],V:{title:"{{title-attr}}","data-tooltip-opaque":String(g.tD(a.T()))},S:[{D:"div",K:"ytp-copylink-icon",oa:"{{icon}}"},{D:"div",K:"ytp-copylink-title",oa:"Copy link",V:{"aria-hidden":"true"}}]});this.api=a;this.i=b;this.l=c;this.visible=!1;this.tooltip=this.i.ac();b=a.T();iN(this.tooltip);g.L(this.element,"ytp-show-copylink-title",g.tD(b)&&!g.ED(b));a.Yb(this.element,this,86570);this.Ra("click", this.onClick);this.N(a,"videodatachange",this.Ma);this.N(a,"videoplayerreset",this.Ma);this.N(a,"appresize",this.Ma);this.Ma();g.Bi(this,g.cN(this.tooltip,this.element))}; Jpa=function(a){a.Sa("icon",RJ());if(a.api.T().i)DN(a.tooltip,a.element,"Link copied to clipboard");else{a.Sa("title-attr","Link copied to clipboard");EN(a.tooltip);DN(a.tooltip,a.element);var b=a.Ra("mouseleave",function(){a.fc(b);a.Ma();a.tooltip.ni()})}}; Kpa=function(a,b){return g.D(a,function d(){var e=this;return g.z(d,function(f){if(1==f.i)return ta(f,2),g.w(f,navigator.clipboard.writeText(b),4);if(2!=f.i)return f.return(!0);va(f);var h=f.return,l=!1,m=g.Ee("TEXTAREA");m.value=b;m.setAttribute("readonly","");var n=e.api.getRootNode();n.appendChild(m);if(Jq){var p=window.getSelection();p.removeAllRanges();var r=document.createRange();r.selectNodeContents(m);p.addRange(r);m.setSelectionRange(0,b.length)}else m.select();try{l=document.execCommand("copy")}catch(t){}n.removeChild(m); return h.call(f,l)})})}; FN=function(a){g.V.call(this,{D:"div",K:"ytp-doubletap-ui",S:[{D:"div",K:"ytp-doubletap-fast-forward-ve"},{D:"div",K:"ytp-doubletap-rewind-ve"},{D:"div",K:"ytp-doubletap-static-circle",S:[{D:"div",K:"ytp-doubletap-ripple"}]},{D:"div",K:"ytp-doubletap-overlay-a11y"},{D:"div",K:"ytp-doubletap-seek-info-container",S:[{D:"div",K:"ytp-doubletap-arrows-container",S:[{D:"span",K:"ytp-doubletap-base-arrow"},{D:"span",K:"ytp-doubletap-base-arrow"},{D:"span",K:"ytp-doubletap-base-arrow"}]},{D:"div",K:"ytp-doubletap-tooltip", S:[{D:"div",K:"ytp-chapter-seek-text",oa:"{{seekText}}"},{D:"div",K:"ytp-doubletap-tooltip-label",oa:"{{seekTime}}"}]}]}]});this.I=a;this.u=new g.J(this.show,10,this);this.l=new g.J(this.hide,700,this);this.i=this.Ba("ytp-doubletap-static-circle");g.G(this,this.u);g.G(this,this.l);this.hide();this.B=this.Ba("ytp-doubletap-fast-forward-ve");this.C=this.Ba("ytp-doubletap-rewind-ve");this.I.Yb(this.B,this,28240);this.I.Yb(this.C,this,28239);this.I.jb(this.B,!0);this.I.jb(this.C,!0)}; GN=function(a,b,c){var d=a.I.Za().getPlayerSize();g.on(a.l);a.u.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.K(a.element,"ytp-time-seeking");a.i.style.width="110px";a.i.style.height="110px";1===b?(a.i.style.right="",a.i.style.left=.8*d.width-30+"px"):-1===b&&(a.i.style.right="",a.i.style.left=.1*d.width-15+"px");a.i.style.top=.5*d.height+15+"px";Lpa(a,c)}; HN=function(a,b,c){g.on(a.l);a.u.start();a.element.setAttribute("data-side",-1===b?"back":"forward");a.i.style.width="0";a.i.style.height="0";g.K(a.element,"ytp-chapter-seek");a.Sa("seekText",c);a.Sa("seekTime","")}; Lpa=function(a,b){b=g.vH("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Sa("seekTime",b)}; IN=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b}; JN=function(a,b){var c=0;a=g.q(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1}; Mpa=function(a,b){b=JN(a,b)+1;return bd;e={Al:e.Al},f++){e.Al=c[f];a:switch(e.Al.img||e.Al.iconId){case "facebook":var h={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{D:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",V:{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={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{D:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",V:{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.V({D:"a",Ca:["ytp-share-panel-service-button","ytp-button"],V:{href:e.Al.url,target:"_blank",title:e.Al.sname||e.Al.serviceName},S:[h]}),h.Ra("click",function(m){return function(n){if(g.LK(n)){var p=m.Al.url;var r=void 0===r?{}:r;r.target=r.target||"YouTube";r.width=r.width||"600";r.height=r.height||"600";r||(r={});var t=window;var u=p instanceof g.Cc?p:g.Hc("undefined"!=typeof p.href?p.href:String(p));p=r.target||p.target;var x=[];for(y in r)switch(y){case "width":case "height":case "top":case "left":x.push(y+ "="+r[y]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(y+"="+(r[y]?1:0))}var y=x.join(",");Vd()&&t.navigator&&t.navigator.standalone&&p&&"_self"!=p?(y=g.Ee("A"),g.gd(y,u),y.setAttribute("target",p),r.noreferrer&&y.setAttribute("rel","noreferrer"),r=document.createEvent("MouseEvent"),r.initMouseEvent("click",!0,!0,t,1),y.dispatchEvent(r),t={}):r.noreferrer?(t=hd("",t,p,y),r=g.Dc(u),t&&(g.dE&&-1!=r.indexOf(";")&&(r="'"+r.replace(/'/g,"%27")+"'"),t.opener=null,r=g.ed(g.dc("b/12014412, meta tag with sanitized URL"), ''),(u=t.document)&&u.write&&(u.write(g.ad(r)),u.close()))):(t=hd(u,t,p,y))&&r.noopener&&(t.opener=null);if(r=t)r.opener||(r.opener=window),r.focus();g.cq(n)}}}(e)),g.Bi(h,g.cN(a.tooltip,h.element)),a.i.push(h),d++)}var l=b.more||b.moreLink; b=new g.V({D:"a",Ca:["ytp-share-panel-service-button","ytp-button"],S:[{D:"span",K:"ytp-share-panel-service-button-more",S:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{D:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",V:{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"}}]}]}],V:{href:l,target:"_blank",title:"More"}});b.Ra("click",function(m){g.CM(l,a.api,m)&&a.api.Na("SHARE_CLICKED")}); g.Bi(b,g.cN(a.tooltip,b.element));a.i.push(b);a.Sa("buttons",a.i)}; Upa=function(a){for(var b=g.q(a.i),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.ui(c);a.i=[]}; aO=function(a,b,c){c=void 0===c?!0:c;g.V.call(this,{D:"div",K:"ytp-suggested-action"});var d=this;this.I=a;this.Ya=b;this.Ha=this.J=this.i=this.C=this.B=this.l=this.expanded=this.enabled=this.u=!1;this.Xa=!0;this.Fa=new g.J(function(){d.badge.element.style.width=""},200,this); this.X=new g.J(function(){ZN(d);$N(d)},200,this); this.dismissButton=new g.V({D:"button",Ca:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.G(this,this.dismissButton);this.G=new g.V({D:"div",K:"ytp-suggested-action-badge-expanded-content-container",S:[{D:"label",K:"ytp-suggested-action-badge-title",oa:"{{badgeLabel}}"},this.dismissButton]});g.G(this,this.G);this.badge=new g.V({D:"button",Ca:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],S:[c?{D:"div",K:"ytp-suggested-action-badge-icon"}: "",this.G]});g.G(this,this.badge);this.badge.ya(this.element);this.L=new g.wK(this.badge,250,!1,100);g.G(this,this.L);this.va=new g.wK(this.G,250,!1,100);g.G(this,this.va);this.Ea=new g.hn(this.WS,null,this);g.G(this,this.Ea);this.ma=new g.hn(this.yN,null,this);g.G(this,this.ma);g.G(this,this.Fa);g.G(this,this.X);this.I.Ag(this.badge.element,this.badge,!0);this.I.Ag(this.dismissButton.element,this.dismissButton,!0);this.N(this.I,"onHideControls",function(){d.i=!1;$N(d);ZN(d);d.qh()}); this.N(this.I,"onShowControls",function(){d.i=!0;$N(d);ZN(d);d.qh()}); this.N(this.badge.element,"click",this.GB);this.N(this.dismissButton.element,"click",this.HB);this.N(this.I,"pageTransition",this.UK);this.N(this.I,"appresize",this.qh);this.N(this.I,"fullscreentoggled",this.fQ);this.N(this.I,"cardstatechange",this.HP);this.N(this.I,"annotationvisibility",this.vT,this);this.N(this.I,"offlineslatestatechange",this.wT,this)}; ZN=function(a){g.L(a.badge.element,"ytp-suggested-action-badge-with-controls",a.i||!a.l)}; $N=function(a,b){var c=a.J||a.i||!a.l;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.Ea.stop(),a.ma.stop(),a.Fa.stop(),a.Ea.start()):(g.NJ(a.G,a.expanded),g.L(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),Wpa(a))}; Wpa=function(a){a.B&&a.I.jb(a.badge.element,a.Yt());a.C&&a.I.jb(a.dismissButton.element,a.Yt()&&(a.J||a.i||!a.l))}; Xpa=function(a){var b=a.text||"";g.Me(g.se("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Oa?a.Oa:"")}; Ypa=function(a,b){b?a.C&&a.I.Gb(a.dismissButton.element):a.B&&a.I.Gb(a.badge.element)}; bO=function(a,b){aO.call(this,a,b);var c=this;this.U=this.xa=this.Aa=!1;this.N(this.I,g.Wv("shopping_overlay_visible"),function(){c.Ae(!0)}); this.N(this.I,g.Xv("shopping_overlay_visible"),function(){c.Ae(!1)}); this.N(this.I,g.Wv("shopping_overlay_expanded"),function(){c.J=!0;$N(c)}); this.N(this.I,g.Xv("shopping_overlay_expanded"),function(){c.J=!1;$N(c)}); this.N(this.I,"changeProductsInVideoVisibility",this.TQ);this.N(this.I,"videodatachange",this.kb);this.N(this.I,"paidcontentoverlayvisibilitychange",this.KQ)}; cO=function(a){a.I.We("shopping_overlay_visible");a.I.We("shopping_overlay_expanded")}; dO=function(a){g.OM.call(this,a,{D:"button",Ca:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{D:"div",K:"ytp-skip-intro-button-text",oa:"Skip Intro"}]},100);var b=this;this.C=!1;this.B=new g.J(function(){b.hide()},5E3); this.i=this.u=NaN;g.G(this,this.B);this.ma=function(){b.show()}; this.X=function(){b.hide()}; this.G=function(){var c=b.I.getCurrentTime();c>b.u/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+") "+r+"px "+t+"px/"+l+"px "+m+"px"}; g.jO=function(a){g.V.call(this,{D:"div",K:"ytp-storyboard-framepreview",S:[{D:"div",K:"ytp-storyboard-framepreview-img"}]});this.api=a;this.B=this.Ba("ytp-storyboard-framepreview-img");this.l=null;this.u=NaN;this.events=new g.SL(this);this.i=new g.wK(this,100);g.G(this,this.events);g.G(this,this.i);this.N(this.api,"presentingplayerstatechange",this.Ec)}; kO=function(a,b){var c=!!a.l;a.l=b;a.l?(c||(a.events.N(a.api,"videodatachange",function(){kO(a,a.api.fh())}),a.events.N(a.api,"progresssync",a.Rc),a.events.N(a.api,"appresize",a.C)),a.u=NaN,lO(a),a.i.show(200)):(c&&g.iu(a.events),a.i.hide(),a.i.stop())}; lO=function(a){var b=a.l,c=a.api.getCurrentTime(),d=a.api.Za().getPlayerSize(),e=pF(b,d.width);c=xF(b,e,c);c!==a.u&&(a.u=c,tF(b,c,d.width),b=rF(b,c,d.width),$pa(a.B,b,d.width,d.height))}; mO=function(a,b){g.V.call(this,{D:"button",Ca:["ytp-fullerscreen-edu-button","ytp-button"],S:[{D:"div",Ca:["ytp-fullerscreen-edu-text"],oa:"Scroll for details"},{D:"div",Ca:["ytp-fullerscreen-edu-chevron"],S:[{D:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",V:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.i=a;this.B=b;this.l=new g.wK(this,250,void 0,100);this.C=this.u=!1;a.Yb(this.element,this,61214);this.B=b;g.G(this,this.l);this.N(a, "fullscreentoggled",this.Ma);this.N(a,"presentingplayerstatechange",this.Ma);this.Ra("click",this.onClick);this.Ma()}; g.nO=function(a,b){g.V.call(this,{D:"button",Ca:["ytp-fullscreen-button","ytp-button"],V:{title:"{{title}}"},oa:"{{icon}}"});this.I=a;this.l=b;this.message=null;this.i=g.cN(this.l.ac(),this.element);this.u=new g.J(this.dN,2E3,this);g.G(this,this.u);this.N(a,"fullscreentoggled",this.Sh);this.N(a,"presentingplayerstatechange",this.Ma);this.Ra("click",this.onClick);cu()&&(b=this.I.Za(),this.N(b,Kfa(),this.NB),this.N(b,fu(document),this.fl));a.T().Oa||a.T().L||this.disable();this.Ma();this.Sh(a.isFullscreen())}; oO=function(a,b){g.V.call(this,{D:"button",Ca:["ytp-miniplayer-button","ytp-button"],V:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},S:[cna()]});this.I=a;this.visible=!1;this.Ra("click",this.onClick);this.N(a,"fullscreentoggled",this.Ma);this.Sa("title",FM(a,"Miniplayer","i"));g.Bi(this,g.cN(b.ac(),this.element));a.Yb(this.element,this,62946);this.Ma()}; pO=function(a,b,c){g.V.call(this,{D:"button",Ca:["ytp-multicam-button","ytp-button"],V:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},S:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Ob:!0,V:{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.l=new g.J(this.u,400,this);this.tooltip=b.ac();iN(this.tooltip);g.G(this,this.l);this.Ra("click",function(){PM(c,d.element,!1)}); this.N(a,"presentingplayerstatechange",function(){d.Ma(!1)}); this.N(a,"videodatachange",this.kb);this.Ma(!0);g.Bi(this,g.cN(this.tooltip,this.element))}; qO=function(a){g.OM.call(this,a,{D:"div",K:"ytp-multicam-menu",V:{role:"dialog"},S:[{D:"div",K:"ytp-multicam-menu-header",S:[{D:"div",K:"ytp-multicam-menu-title",S:["Switch camera",{D:"button",Ca:["ytp-multicam-menu-close","ytp-button"],V:{"aria-label":"Close"},S:[g.UJ()]}]}]},{D:"div",K:"ytp-multicam-menu-items"}]},250);this.api=a;this.u=new g.SL(this);this.items=this.Ba("ytp-multicam-menu-items");this.i=[];g.G(this,this.u);a=this.Ba("ytp-multicam-menu-close");this.N(a,"click",this.Cb);this.hide()}; rO=function(){g.F.call(this);this.l=null;this.startTime=this.duration=0;this.delay=new g.hn(this.i,null,this);g.G(this,this.delay)}; aqa=function(a,b){if("path"===b.D)return b.V.d;if(b.S)for(var c=0;c=p.oy&&r<=p.dy}}(h)); rqa(a.J[l],n);e+=m+(a.u?3:2)}}; Cqa=function(a,b){var c=0,d=!1,e=a.i.length,f=1E3*a.l.i;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0l)a.i[c].width=n;else{a.i[c].width=0;var p=a,r=c,t=p.i[r-1];void 0!==t&&0a.Qa&&(a.Qa=m/f),d=!0)}c++}}return d}; HO=function(a){if(a.B){var b=a.api.getProgressState(),c=new OK(b.seekableStart,b.seekableEnd),d=RK(c,b.loaded,0);b=RK(c,b.current,0);var e=a.l.l!==c.l||a.l.i!==c.i;a.l=c;IO(a,b,d);e&&JO(a);Eqa(a)}}; LO=function(a,b){var c=QK(a.l,b.u);if(1=a.i.length?!1:4>Math.abs(b-a.i[c].startTime/1E3)/a.l.i*(a.B-(a.u?3:2)*a.xa)}; Gqa=function(a,b,c,d){b=g.ce(b,0,a.u?60:40);a.X=b;var e=a.Ea;a.Ea=b/(a.u?60:40)*(Math.max(PK(a.l)/a.B,1)-1)+1;b=a.B*a.Ea;a.ma=g.ce(d*b-c,0,b-a.B);e!==a.Ea&&JO(a)}; JO=function(a){var b=FO(a),c=-b.l/b.i,d=(-b.l+b.width)/b.i,e=uba(a.Sb),f=0;if(a.X>.2*(a.u?60:40)&&1===a.i.length)for(var h=PK(a.l)/60*d,l=Math.ceil(PK(a.l)/60*c);l=f;c--)g.Ie(e[c]);a.element.style.height=a.X+(a.u?8:5)+"px";a.W("height-change",a.X);a.cd.style.height=a.X+(a.u?20:13)+"px";e=g.q(Object.keys(a.Aa));for(f=e.next();!f.done;f=e.next())Hqa(a,f.value);MO(a);IO(a,a.U,a.Oa)}; FO=function(a){var b=a.bb.x,c=a.B*a.Ea;b=g.ce(b,0,a.B);a.qc.update(b,a.B,-a.ma,-(c-a.ma-a.B));return a.qc}; IO=function(a,b,c){var d,e;a.U=b;a.Oa=c;var f=FO(a),h=a.l.i,l=QK(a.l,a.U),m=g.vH("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.KK(l,!0),DURATION:g.KK(h,!0)}),n=JN(a.i,1E3*l);n=a.i[n].title;a.update({ariamin:Math.floor(a.l.l),ariamax:Math.floor(h),arianow:Math.floor(l),arianowtext:n?n+" "+m:m});h=a.clipStart;l=a.clipEnd;a.G&&2!==a.api.getPresentingPlayerType()&&(h=a.G.startTimeMs/1E3,l=a.G.endTimeMs/1E3);h=RK(a.l,h,0);m=RK(a.l,l,1);n=!(null===(d=a.api.getVideoData())||void 0===d||!g.sG(d));l=g.ce(b, h,m);c=n?1:g.ce(c,h,m);b=Bqa(a,b,f);g.hg(a.Td,"transform","translateX("+b+"px)");NO(a,f,h,l,"PLAY_PROGRESS");NO(a,f,h,c,"LOAD_PROGRESS");a.api.Z("web_player_heat_map")&&(null===(e=a.J[0])||void 0===e?void 0:e.u.setAttribute("width",(100*l).toFixed(2)+"%"))}; NO=function(a,b,c,d,e){var f=a.i.length,h=b.i-a.xa*(a.u?3:2),l=c*h;c=KO(a,l);var m=d*h;h=KO(a,m);"HOVER_PROGRESS"===e&&(h=KO(a,b.i*d,!0),m=b.i*d-Iqa(a,b.i*d)*(a.u?3:2));b=Math.max(l-Jqa(a,c),0);for(d=c;d=a.i.length)return a.B;for(var c=0,d=0;de.width)b-=e.width;else break;d++}return d===a.i.length?d-1:d}; Bqa=function(a,b,c){for(var d=b*a.l.i*1E3,e=-1,f=g.q(a.i),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0e?0:e)+c.l}; Iqa=function(a,b){for(var c=a.i.length,d=0,e=g.q(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.u?3:2,d++;else break;return d===c?c-1:d}; g.PO=function(a,b,c,d){var e=a.B!==c;a.Ac=b;a.B=c;a.u=d;JO(a);1===a.i.length&&(a.i[0].width=c||0);e&&g.GO(a)}; MO=function(a){var b=!!a.G&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.G?(c=a.G.startTimeMs/1E3,d=a.G.endTimeMs/1E3):(e=c>a.l.l,f=0a.U);g.L(a.cd,"ytp-scrubber-button-hover",d===e&&1b||b===a.l)){a.l=b;b=160*a.scale;var c=160*a.scale,d=rF(a.i,a.l,b);$pa(a.bg,d,b,c,!0);a.X.start()}}; era=function(a){var b=a.activeElement;3===a.type&&a.ma.stop();a.api.removeEventListener("appresize",a.U);a.J||b.setAttribute("title",a.C);a.C="";a.activeElement=null}; g.EP=function(a,b){g.V.call(this,{D:"button",Ca:["ytp-watch-later-button","ytp-button"],V:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.tD(a.T()))},S:[{D:"div",K:"ytp-watch-later-icon",oa:"{{icon}}"},{D:"div",K:"ytp-watch-later-title",oa:"Watch later"}]});this.I=a;this.icon=null;this.visible=this.isRequestPending=this.i=!1;this.tooltip=b.ac();iN(this.tooltip);a.Yb(this.element,this,28665);this.Ra("click",this.onClick,this);this.N(a,"videoplayerreset",this.hL); this.N(a,"appresize",this.Pu);this.N(a,"videodatachange",this.Pu);this.N(a,"presentingplayerstatechange",this.Pu);this.Pu();a=this.I.T();var c=fra();a.l&&c?(gra(),hra(this)):this.Ma(2);g.L(this.element,"ytp-show-watch-later-title",g.tD(a));g.Bi(this,g.cN(b.ac(),this.element))}; ira=function(a,b){g.Ena(function(){gra({videoId:b});window.location.reload()},"wl_button",g.RD(a.I.T()))}; hra=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ma(3);var b=a.I.getVideoData();b=a.i?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.I.Pk(),d=a.i?function(){a.i=!1;a.isRequestPending=!1;a.Ma(2);a.I.T().u&&a.I.Na("WATCH_LATER_VIDEO_REMOVED")}:function(){a.i=!0; a.isRequestPending=!1;a.Ma(1);a.I.T().i&&DN(a.tooltip,a.element);a.I.T().u&&a.I.Na("WATCH_LATER_VIDEO_ADDED")}; aL(c,b).then(d,function(){a.isRequestPending=!1;jra(a,"An error occurred. Please try again later.")})}}; jra=function(a,b){a.Ma(4,b);a.I.T().u&&a.I.Na("WATCH_LATER_ERROR",b)}; kra=function(a,b){var c=a.I.T();if(b!==a.icon){switch(b){case 3:var d=DM();break;case 1:d=RJ();break;case 2:d={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Ob:!0,K:"ytp-svg-fill",V:{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=g.R(c.experiments,"watch_later_iconchange_killswitch")?{D:"svg",V:{height:"100%", version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Ob:!0,K:"ytp-svg-fill",V:{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"}}]}:{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Ob:!0,V:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.Sa("icon",d); a.icon=b}}; FP=function(a){g.SM.call(this,a);var b=this;this.qw=(this.zo=g.tD(this.api.T()))&&(this.api.T().i||Mq()||Kq());this.Qz=48;this.Rz=69;this.Dj=null;this.Em=[];this.jc=new g.YM(this.api);this.Zr=new FN(this.api);this.oh=new g.V({D:"div",K:"ytp-chrome-top"});this.wu=[];this.tooltip=new g.CP(this.api,this);this.backButton=this.Cq=null;this.channelAvatar=new kN(this.api,this);this.title=new BP(this.api,this);this.rg=new g.KJ({D:"div",K:"ytp-chrome-top-buttons"});this.Sg=null;this.oi=new bN(this.api,this, this.oh.element);this.overflowButton=this.Kf=null;this.Mf="1"===this.api.T().controlsType?new vP(this.api,this,this.fd):null;this.contextMenu=new g.BN(this.api,this,this.jc);this.Dz=!1;this.Hv=new g.V({D:"div",V:{tabindex:"0"}});this.Gv=new g.V({D:"div",V:{tabindex:"0"}});this.Jt=null;this.CC=this.xv=!1;var c=a.Za(),d=a.T(),e=a.getVideoData();this.zo&&(g.K(a.getRootNode(),"ytp-embed"),g.K(a.getRootNode(),"ytp-embed-playlist"),g.R(d.experiments,"embeds_enable_player_overlays_autohide")&&this.qw&&(g.K(a.getRootNode(), "ytp-embed-overlays-autohide"),g.K(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.Qz=60,this.Rz=89);this.api.T().i&&(g.K(a.getRootNode(),"ytp-mobile"),this.api.T().L&&g.K(a.getRootNode(),"ytp-embed-mobile-exp"));this.Cg=e&&e.Cg;g.G(this,this.jc);g.FL(a,this.jc.element,4);g.G(this,this.Zr);g.FL(a,this.Zr.element,4);e=new g.V({D:"div",K:"ytp-gradient-top"});g.G(this,e);g.FL(a,e.element,1);this.WC=new g.wK(e,250,!0,100);g.G(this,this.WC);g.G(this,this.oh);g.FL(a,this.oh.element,1);this.VC= new g.wK(this.oh,250,!0,100);g.G(this,this.VC);g.G(this,this.tooltip);g.FL(a,this.tooltip.element,4);var f=new RN(a);g.G(this,f);g.FL(a,f.element,5);f.subscribe("show",function(l){b.Sl(f,l)}); this.wu.push(f);this.Cq=new SN(a,this,f);g.G(this,this.Cq);d.showBackButton&&(this.backButton=new XM(a),g.G(this,this.backButton),this.backButton.ya(this.oh.element));this.zo||this.Cq.ya(this.oh.element);this.channelAvatar.ya(this.oh.element);g.G(this,this.channelAvatar);g.G(this,this.title);this.title.ya(this.oh.element);g.G(this,this.rg);this.rg.ya(this.oh.element);this.Sg=new g.EP(a,this);g.G(this,this.Sg);this.Sg.ya(this.rg.element);var h=new g.YN(a,this);g.G(this,h);g.FL(a,h.element,5);h.subscribe("show", function(l){b.Sl(h,l)}); this.wu.push(h);this.shareButton=new g.XN(a,this,h);g.G(this,this.shareButton);this.shareButton.ya(this.rg.element);this.zg=new g.CN(a,this);g.G(this,this.zg);this.zg.ya(this.rg.element);d.pj&&(e=new dO(a),g.G(this,e),g.FL(a,e.element,4));this.zo&&this.Cq.ya(this.rg.element);g.G(this,this.oi);this.oi.ya(this.rg.element);e=new dN(a,this,this.oi);g.G(this,e);e.ya(this.rg.element);this.Kf=new ON(a,this);g.G(this,this.Kf);g.FL(a,this.Kf.element,5);this.Kf.subscribe("show",function(){b.Sl(b.Kf,b.Kf.Hf())}); this.wu.push(this.Kf);this.overflowButton=new NN(a,this,this.Kf);g.G(this,this.overflowButton);this.overflowButton.ya(this.rg.element);this.Mf&&g.G(this,this.Mf);"3"===d.controlsType&&(e=new WN(a,this),g.G(this,e),g.FL(a,e.element,8));g.G(this,this.contextMenu);this.contextMenu.subscribe("show",this.cK,this);e=new SK(a,new WM(a));g.G(this,e);g.FL(a,e.element,4);this.Hv.Ra("focus",this.GN,this);g.G(this,this.Hv);this.Gv.Ra("focus",this.HN,this);g.G(this,this.Gv);(this.Wk=d.Ac?null:new g.KN(a,c,this.contextMenu, this.fd,this.jc,this.Zr,function(){return b.Hj()}))&&g.G(this,this.Wk); this.zo||(this.qJ=new bO(this.api,this),g.G(this,this.qJ),g.FL(a,this.qJ.element,4));this.AJ=new yP(this.api,this);g.G(this,this.AJ);g.FL(a,this.AJ.element,4);this.Dm.push(this.jc.element);this.N(a,"fullscreentoggled",this.fl);this.N(a,"offlineslatestatechange",function(){b.api.Ys()&&xM(b.fd,128,!1)}); this.N(a,"cardstatechange",function(){b.ci()}); this.N(a,"resize",this.SP);this.N(a,"showpromotooltip",this.uQ)}; lra=function(a){var b=a.api.T(),c=g.T(a.api.ub(),128);return b.l&&c&&!a.api.isFullscreen()}; GP=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==mg(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=GP(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=DA(a.l,a.i),++a.i,d*=128,c+=(b&127)*d;return c}; LP=function(a,b){a.B=b;var c=a.u;for(a.u=-1;a.i+1<=a.l.totalLength;){0>c&&(c=KP(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.u=c;break}c=-1;switch(e){case 0:KP(a);break;case 1:a.i+=8;break;case 2:d=KP(a);a.i+=d;break;case 5:a.i+=4}}return!1}; MP=function(a,b,c){c=void 0===c?0:c;return LP(a,b)?KP(a):c}; NP=function(a,b){var c=void 0===c?"":c;if(!LP(a,b))return c;b=KP(a);if(!b)return"";c=BA(a.l,a.i,b);a.i+=b;return g.B.TextDecoder?(new TextDecoder).decode(c):g.Xe(c)}; OP=function(a,b){var c=void 0===c?null:c;if(!LP(a,b))return c;b=KP(a);c=BA(a.l,a.i,b);a.i+=b;return c}; ora=function(){this.i=0;this.u=void 0;this.B=[];this.l=new Uint8Array(4096);this.view=new DataView(this.l.buffer);g.B.TextEncoder&&(this.u=new TextEncoder)}; PP=function(a,b){b=a.i+b;if(!(a.l.length>=b)){for(var c=2*a.l.length;cd;d++)a.view.setUint8(a.i,c&127|128),c>>=7,a.i+=1;b=Math.floor(b/268435456)}for(PP(a,4);127>=7,a.i+=1;a.view.setUint8(a.i,b);a.i+=1}; RP=function(a,b,c){QP(a,b<<3|0);QP(a,c)}; SP=function(a,b,c){QP(a,b<<3|2);b=c.length;QP(a,b);PP(a,b);a.l.set(c,a.i);a.i+=b}; UP=function(a,b,c){c=a.u?a.u.encode(c):new Uint8Array(TP(g.We(c)).buffer);SP(a,b,c)}; pra=function(a){QP(a,18);a.B.push(a.i);a.i+=2}; qra=function(a){var b=a.B.pop()||0,c=a.i-b-2;a.view.setUint8(b,c&127|128);a.view.setUint8(b+1,c>>7)}; VP=function(a){var b=new JP(new uA([g.bf(decodeURIComponent(a))]));a=NP(b,2);b=MP(b,4);return{AN:b,entityType:rra[b],entityId:a}}; WP=function(a,b){var c=new ora;UP(c,2,a);RP(c,4,sra[b]);RP(c,5,1);a=new Uint8Array(c.l.buffer,0,c.i);return encodeURIComponent(g.sf(a))}; tra=function(a){a=a.key||a.id;if(!a)throw Error("Entity key is missing");return a}; XP=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))}; ura=function(a){this.i=a;this.l={}}; YP=function(a,b,c){return Vs(a.i,"EntityStore").get(b).then(function(d){if(d){if(c&&d.entityType!==c)throw Error("Incorrect entity type");return d.data}})}; ZP=function(a,b,c){return c?(c=c.map(function(d){return YP(a,d,b)}),ot.all(c)):Vs(a.i,"EntityStore").index("entityType").getAll(IDBKeyRange.only(b)).then(function(d){return d.map(function(e){return e.data})})}; aQ=function(a,b,c){function d(){return Us(Vs(a.i,"EntityStore"),f).then(function(h){$P(a,h,c);return h})} var e=tra(b),f={key:e,entityType:c,data:b};return c?Vs(a.i,"EntityStore").get(e).then(function(h){if(h&&c&&h.entityType!==c)throw Error("Incorrect entity type");}).then(d):d()}; bQ=function(a,b,c){b=b.map(function(d){return aQ(a,d,c)}); return ot.all(b)}; cQ=function(a,b){var c=VP(b).entityType;return Vs(a.i,"EntityStore").delete(b).then(function(){$P(a,b,c)})}; vra=function(a,b){return bt(Vs(a.i,"EntityStore").index("entityType"),{query:IDBKeyRange.only(b)},function(c){return c.delete().then(function(){$P(a,c.rG(),b);return c.continue()})})}; $P=function(a,b,c){var d=a.l[c];d||(d=new Set,a.l[c]=d);d.add(b)}; dQ=function(){g.F.apply(this,arguments);this.i=[];if(!zs())throw Error("Datasync ID is missing");if("undefined"===typeof BroadcastChannel)var a=null;else a=new BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+ys()),a.onmessage=this.l.bind(this);this.channel=a}; eQ=function(a,b,c){return g.D(a,function e(){var f,h,l,m,n=this;return g.z(e,function(p){if(1==p.i)return g.w(p,wra().open(),2);if(3!=p.i)return f=p.l,g.w(p,Ts(f,["EntityStore"],b,function(r){h=new ura(r);return c(h)}),3); l=p.l;h&&(m=h.l,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.w(f,Cra(e),2)}e.length=0;g.sa(f)})})}; Cra=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){return 1==e.i?g.w(e,kQ(),2):(d=e.l)?g.w(e,eQ(d,"readwrite",function(f){for(var h=[],l=g.q(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=Hb(m.payload),"ENTITY_MUTATION_TYPE_REPLACE"===m.type&&h.push(aQ(f,m.payload[n],n)),"ENTITY_MUTATION_TYPE_DELETE"=== m.type&&h.push(cQ(f,m.entityKey)))}return ot.all(h)}),0):e.return()})})}; Era=function(a){return void 0!==a}; lQ=function(){}; mQ=function(){}; nQ=function(a){if(a.includes(":"))throw Error("Invalid user cache name: "+a);return a+":"+ys("CacheStorage get")}; Fra=function(){return g.D(this,function b(){var c=this,d;return g.z(b,function(e){d=c;if(void 0!==oQ)return e.return(oQ);oQ=new Promise(function(f){return g.D(d,function l(){var m;return g.z(l,function(n){switch(n.i){case 1:return ta(n,2),g.w(n,pQ.open("test-only"),4);case 4:return g.w(n,pQ.delete("test-only"),5);case 5:ua(n,3);break;case 2:if(m=va(n),m instanceof Error&&"SecurityError"===m.name)return f(!1),n.return();case 3:f("caches"in window),g.sa(n)}})})}); return e.return(oQ)})})}; rQ=function(){return g.D(this,function b(){return g.z(b,function(c){if(1==c.i)return g.w(c,Fra(),2);if(!c.l)return c.return(void 0);qQ||(qQ=new mQ);return c.return(qQ)})})}; Gra=function(){return g.D(this,function b(){var c;return g.z(b,function(d){return 1==d.i?g.w(d,rQ(),2):(c=d.l)?d.return(c.delete("yt-player-local-img")):d.return(!0)})})}; Hra=function(a){return g.D(this,function c(){var d,e;return g.z(c,function(f){if(1==f.i)return g.w(f,rQ(),2);if(3!=f.i){d=f.l;if(!d)throw Error("Cache API not supported");return a.length?g.w(f,d.open("yt-player-local-img"),3):f.return()}e=f.l;return g.w(f,Promise.all(a.map(function(h){return e.delete(h)})),0)})})}; Ira=function(a){return g.D(this,function c(){var d,e;return g.z(c,function(f){if(1==f.i)return g.w(f,rQ(),2);if(3!=f.i){d=f.l;if(!d)throw Error("Cache API not supported");return a.length?g.w(f,d.open("yt-player-local-img"),3):f.return()}e=f.l;return g.w(f,e.addAll(a),0)})})}; sQ=function(a){g.rs("offlineTransferStatusChanged",a)}; tQ=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)}; uQ=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===a.actionType&&!!a.entityKey}; vQ=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"===a.actionType&&!!a.entityKey}; Mra=function(a,b,c){return g.D(this,function e(){var f,h,l,m,n,p,r,t,u,x,y,A,E,I,H,U,N,fa;return g.z(e,function(ya){switch(ya.i){case 1:return f=WP(a,"ytMainVideoEntity"),h=WP(a,"ytMainChannelEntity"),l=WP(a,"transfer"),g.w(ya,eQ(b,"readonly",function(Za){return ot.all([YP(Za,f,"ytMainVideoEntity"),YP(Za,h,"ytMainChannelEntity"),YP(Za,l,"transfer"),ZP(Za,"ytMainChannelEntity"),ZP(Za,"offlineOrchestrationActionWrapperEntity")])}),2); case 2:m=ya.l;n=g.q(m);p=n.next().value;r=n.next().value;t=n.next().value;u=n.next().value;x=n.next().value;if(!p&&!r){ya.xb(3);break}y=p?wQ(p.thumbnail):[];if(!r){A=[];ya.xb(4);break}return g.w(ya,Jra(r,u),5);case 5:A=ya.l;case 4:return E=A,g.w(ya,Hra(y.concat(E)),3);case 3:I=[WP(a,"ytMainDownloadedVideoEntity"),f,h,WP(a,"playbackData"),l,WP(a,"offlineVideoPolicy"),WP(a,"offlineVideoStreams")];H=g.q(x);for(U=H.next();!U.done;U=H.next())N=U.value,fa=VP(N.key).entityId,fa!==a||Kra(c,N.actionProto)|| I.push(N.key);return g.w(ya,eQ(b,"readwrite",function(Za){return ot.all(I.map(function(Jc){return cQ(Za,Jc)})).then(function(){return m})}),7); case 7:Lra(t),g.sa(ya)}})})}; Ora=function(a,b){return g.D(this,function d(){var e,f,h,l;return g.z(d,function(m){if(1==m.i)return g.w(m,eQ(a,"readwrite",function(n){var p=ZP(n,"transfer"),r=ZP(n,"offlineOrchestrationActionWrapperEntity");return ot.all([p,r]).then(function(t){t=g.q(t);var u=t.next().value,x=t.next().value;t=Nra.map(function(I){return vra(n,I)}); x=g.q(x);for(var y=x.next();!y.done;y=x.next()){y=y.value;var A="ytMainDownloadedVideoEntity"===VP(y.actionProto.entityKey).entityType,E="OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===y.actionProto.actionType;Kra(b,y.actionProto)||A&&(!A||E)||t.push(cQ(n,y.key))}return ot.all(t).then(function(){return u})})}),2); e=m.l;f=g.q(e);for(h=f.next();!h.done;h=f.next())l=h.value,Lra(l);return g.w(m,Gra(),0)})})}; Kra=function(a,b){return a.actionType===b.actionType&&a.entityKey===b.entityKey}; Lra=function(a){if(a&&"TRANSFER_STATE_COMPLETE"!==a.transferState&&"TRANSFER_STATE_FAILED"!==a.transferState){var b=VP(a.key).entityId;sQ({encryptedVideoId:b,cotn:a.cotn,transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_BY_USER",statusType:"CANCELLED"})}}; wQ=function(a){if(!a||!a.thumbnails)return[];var b=[];a=g.q(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&b.push(c.url);return b}; Jra=function(a,b){return g.D(this,function d(){var e,f,h,l,m,n,p,r;return g.z(d,function(t){e=wQ(a.avatar);f=g.q(b);for(h=f.next();!h.done;h=f.next())if(l=h.value,l.id!==a.id)for(m=g.q(wQ(l.avatar)),n=m.next();!n.done;n=m.next())p=n.value,r=e.indexOf(p),-1!==r&&e.splice(r,1);return t.return(e)})})}; Pra=function(){try{Rw("entity_key_serialization_perf",["ekspe"],0);Rw("entity_key_deserialization_perf",["ekdpe"],0);var a="";Tw("eksps",void 0,"entity_key_serialization_perf");for(var b=0;100>b;b++)a=WP("entity_id","playbackData");Tw("ekspe",void 0,"entity_key_serialization_perf");Tw("ekdps",void 0,"entity_key_deserialization_perf");for(b=0;100>b;b++)VP(a);Tw("ekdpe",void 0,"entity_key_deserialization_perf")}catch(c){g.Pu(Error("Entity key serialization/deserialization failed: "+c))}}; Qra=function(a,b){var c={};c=void 0===c?{}:c;g.D(this,function e(){return g.z(e,function(f){if("locks"in navigator)return f.return(navigator.locks.request(a,c,function(h){return b(h)})); throw Error("Web lock is not supported.");})})}; xQ=function(a){this.i=a}; yQ=function(a,b,c){this.status=a;this.i=b;this.l=c}; zQ=function(a,b){this.i=a;this.u=b}; Tra=function(a,b){var c,d;return g.D(a,function f(){var h,l,m=this,n;return g.z(f,function(p){switch(p.i){case 1:return h=b.entityKey,l=null===(d=null===(c=b.actionMetadata)||void 0===c?void 0:c.playbackDataActionMetadata)||void 0===d?void 0:d.isEnqueuedForExpiredStreamUrlRefetch,ta(p,2),g.w(p,Rra(m,h,{isEnqueuedForExpiredStreamUrlRefetch:l}),4);case 4:return(n=p.l)?g.w(p,Sra(m,n,b),5):p.return(AQ(b,!1));case 5:return p.return(AQ(b,!0,n.orchestrationActions));case 2:return va(p),p.return(AQ(b,!1))}})})}; Ura=function(a,b){return g.D(a,function d(){var e,f=this,h,l,m,n,p,r;return g.z(d,function(t){switch(t.i){case 1:return e=b.entityKey,g.w(t,eQ(f.i,"readonly",function(u){var x=YP(u,e,"playbackData");u=YP(u,WP(VP(b.entityKey).entityId,"offlineVideoPolicy"),"offlineVideoPolicy");return ot.all([x,u])}),2); case 2:h=t.l;l=g.q(h);m=l.next().value;n=l.next().value;if(!m||!n)return t.return(AQ(b,!1));p={lastPlayerResponseTimestampSeconds:m.playerResponseTimestamp,offlineToken:n.offlineToken};ta(t,3);return g.w(t,Rra(f,e,{refreshData:p}),5);case 5:return(r=t.l)?g.w(t,Sra(f,r,b),6):t.return(AQ(b,!1));case 6:return t.return(AQ(b,!0,r.orchestrationActions));case 3:return va(t),t.return(AQ(b,!1))}})})}; Rra=function(a,b,c){return g.D(a,function e(){var f,h=this,l,m;return g.z(e,function(n){f=g.jL();var p=h.u,r=c.refreshData,t=c.isEnqueuedForExpiredStreamUrlRefetch,u={entityKey:b};r&&(u.refreshData=r);t&&(u.isExpiredStreamUrlRefetch=t);l={context:Eoa(p),signatureTimestamp:18778,videos:[u]};m=g.VK(Vra);return n.return(g.oJ(f,l,m))})})}; Sra=function(a,b,c){return g.D(a,function e(){var f,h=this;return g.z(e,function(l){if(1==l.i){if(!b.frameworkUpdates||!b.frameworkUpdates.entityBatchUpdate)return l.return();if(!(b.frameworkUpdates.entityBatchUpdate.mutations&&0e.retryScheduleIndex&&osa(d.u,[e]);l.xb(5);break;case 6:return g.w(l,mR(d),0)}})})}; rsa=function(a,b,c){var d;return g.D(a,function f(){var h=this,l,m;return g.z(f,function(n){if(1==n.i){l=h;if("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS"===c.status)return m=null===(d=c.l)||void 0===d?void 0:d.map(function(p){return l.createAction(p,b)}),msa(b,c,m),g.w(n,eQ(h.i,"readwrite",function(p){var r=[]; if(m){var t=m.map(function(u){return ZQ(u)}); r.push(bQ(p,t,"offlineOrchestrationActionWrapperEntity"))}t=ZQ(b);r.push(cQ(p,t.key));return ot.all(r)}),9); if("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE"!==c.status)return n.xb(0);msa(b,c);return c.i&&3>b.retryScheduleIndex+1?g.w(n,ssa(h,b),0):g.w(n,zra(h.i,ZQ(b).key),0)}kR(b,4);g.sa(n)})})}; ssa=function(a,b){return g.D(a,function d(){var e=this;return g.z(d,function(f){b.retryScheduleIndex++;return g.w(f,tsa(e,[b]),0)})})}; psa=function(a){return g.D(a,function c(){var d=this,e;return g.z(c,function(f){if(1==f.i)return g.w(f,iQ(d.i,"offlineOrchestrationActionWrapperEntity"),2);e=f.l;usa(d,e);g.sa(f)})})}; usa=function(a,b){0!==b.length&&b.forEach(function(c){if(!c.key)throw Error("Entity key is required.");if(!c.actionProto)throw Error("OfflineOrchestrationAction is required.");var d=VP(c.key),e=VP(c.actionProto.entityKey);c=new DQ(e.entityType,d.entityId,c.actionProto,c.parentActionId,c.rootActionId,c.childActionIds,c.prereqActionId,c.postreqActionIds,c.retryScheduleIndex,c.hasChildActionFailed,1E3*Number(c.enqueueTimeSec));3>c.retryScheduleIndex&&osa(a.u,[c])})}; vsa=function(a,b){return g.D(a,function d(){var e=this,f;return g.z(d,function(h){if(1==h.i)return g.w(h,iQ(e.i,"offlineOrchestrationActionWrapperEntity",b),2);f=h.l;return h.return(f.filter(Era))})})}; tsa=function(a,b){if(0===b.length)return Promise.resolve([]);b=b.map(function(c){return ZQ(c)}); return yra(a.i,b)}; wsa=function(a){this.api=a;this.i=void 0}; ysa=function(a,b){return g.D(a,function d(){var e=this,f,h,l,m,n;return g.z(d,function(p){f=e;h=b.videoId;l=e.api.T();m=!0;if(b.captionTracks.length)e.i=new g.gM(e.api.T(),b,e.api.getAudioTrack());else if(b.Ac)n=g.kja(b),e.i=new g.iM(b.Ac,h,n,b.Xi,l),m=b.Xi;else return p.return();return p.return(new Promise(function(r){var t;null===(t=f.i)||void 0===t?void 0:t.wq(function(){return g.D(f,function x(){var y=this;return g.z(x,function(A){if(1==A.i)return g.w(A,xsa(y,h,m),2);r();g.sa(A)})})})}))})})}; xsa=function(a,b,c){c=void 0===c?!0:c;return g.D(a,function e(){var f=this,h,l,m,n,p,r,t,u,x;return g.z(e,function(y){switch(y.i){case 1:if(!f.i)return y.return();h=[];l=g.dM(f.i.l,c);m=g.q(l);for(n=m.next();!n.done;n=m.next())p=n.value,r=f.i.oo(p,"json3"),t=g.Dp(r,{withCredentials:!0},3,500),h.push(t);return g.w(y,sm(h),2);case 2:return u=y.l,x=u.map(function(A,E){return{metadata:g.GE(l[E]),trackData:A.xhr.responseText}}),ta(y,3),g.w(y,kia(b,x),5); case 5:ua(y,0);break;case 3:va(y),g.sa(y)}})})}; zsa=function(a,b,c,d){this.api=a;this.player=b;this.u=c;this.i=d;this.player.subscribe("localmediachange",this.B,this)}; Asa=function(a){return g.D(this,function c(){return g.z(c,function(d){return d.return(oia(a))})})}; Csa=function(a){return jia().then(function(){var b=fia(),c={};b=g.q(b);for(var d=b.next();!d.done;c={Gu:c.Gu},d=b.next())c.Gu=d.value,Bsa(a,c.Gu)||xE(c.Gu,3)})}; Bsa=function(a,b){return a.player.getVideoData().videoId===b?a.player:null}; Dsa=function(){switch(g.wr.getInstance().get("lmqf")){case "HD_1080":return"hd1080";case "HD":return"hd720";case "SD":return"large";case "LD":return"tiny";default:return"hd720"}}; nR=function(a){g.F.call(this);this.i=a;this.l=fQ(this.i,this.u.bind(this))}; Esa=function(a,b){return g.D(a,function d(){var e,f=this,h,l,m,n,p,r;return g.z(d,function(t){switch(t.i){case 1:if(0===b.length)return t.return([]);e=b.map(function(u){return WP(u,"transfer")}); return g.w(t,iQ(f.i,"transfer",e),2);case 2:h=t.l;l=h.filter(Era).map(function(u){return VP(u.key).entityId}); m=b.filter(function(u){return-1===l.indexOf(u)}); if(0===m.length)return t.return([]);n=g.q(m);p=n.next();case 3:if(p.done){t.xb(5);break}r=p.value;return g.w(t,Asa(r),4);case 4:p=n.next();t.xb(3);break;case 5:return t.return(m)}})})}; Fsa=function(a,b,c,d,e,f){return g.D(this,function l(){var m,n,p;return g.z(l,function(r){m="STREAM_TYPE_UNKNOWN";c.video&&c.audio?m="STREAM_TYPE_AUDIO_AND_VIDEO":c.video&&!c.audio?m="STREAM_TYPE_VIDEO":!c.video&&c.audio&&(m="STREAM_TYPE_AUDIO");n=WP(b,"offlineVideoStreams");p={numBytesDownloaded:e.toFixed(),numTotalBytes:f.toFixed(),streamType:m,streamState:"DOWNLOAD_STREAM_STATE_IN_PROGRESS",formatStreamBytes:JSON.stringify(d),itag:"STREAM_TYPE_AUDIO_AND_VIDEO"===m?Number(c.kc()):void 0};return g.w(r, eQ(a,"readwrite",function(t){return YP(t,n,"offlineVideoStreams").then(function(u){if(u&&u.streamsProgress){var x=u;a:{var y=d.itag+";"+d.xtags;for(var A=u.streamsProgress,E=0;E(f.transferRetryCount||0);h&&(f.transferRetryCount=(f.transferRetryCount||0)+1);return h?g.w(e,sR(d,"TRANSFER_STATE_TRANSFER_IN_QUEUE"),3):g.w(e,Rsa(d),3)}qR(d);pR(d);g.sa(e)})})}; Tsa=function(a,b,c){g.D(a,function e(){var f=this;return g.z(e,function(h){if(1==h.i)return"TRANSFER_STATE_TRANSFERRING"===f.i.transferState?h.xb(2):g.w(h,Psa(f),2);if(4!=h.i)return g.w(h,Fsa(f.l,c.videoId,c.i,c.formatStream,c.bytesDownloaded,c.l),4);sQ({encryptedVideoId:b,cotn:f.i.cotn,transferStatusType:"TRANSFER_STATUS_TYPE_PROCESSING",statusType:"OFFLINING_STARTED"});g.sa(h)})})}; Rsa=function(a){var b="TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES";b=void 0===b?"TRANSFER_FAILURE_REASON_UNKNOWN":b;return g.D(a,function d(){var e=this,f;return g.z(d,function(h){if(1==h.i)return g.w(h,sR(e,"TRANSFER_STATE_FAILED","DOWNLOAD_STREAM_STATE_ERROR_STREAMS_MISSING",b),2);f=VP(e.i.key).entityId;sQ({encryptedVideoId:f,cotn:e.i.cotn,transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_WITH_FAILURE",statusType:"FAILED"});g.sa(h)})})}; sR=function(a,b,c,d){return g.D(a,function f(){var h=this,l;return g.z(f,function(m){l=h;h.i.transferState=b;h.i.failureReason=d;return g.w(m,Usa(h,function(n){return c?ZP(n,"offlineVideoStreams",l.i.offlineVideoStreams).then(function(p){for(var r=g.q(p),t=r.next();!t.done;t=r.next())if((t=t.value)&&t.streamsProgress){t=g.q(t.streamsProgress);for(var u=t.next();!u.done;u=t.next())u.value.streamState=c}return bQ(n,p.filter(function(x){return!!x}),"offlineVideoStreams")}):ot.resolve(void 0)}),0)})})}; Usa=function(a,b){return g.D(a,function d(){var e=this,f;return g.z(d,function(h){if(!e.i)return h.return();f=e.i;return g.w(h,eQ(e.l,"readwrite",function(l){var m=[aQ(l,f,"transfer")];b&&m.push(b(l));return ot.all(m)}),0)})})}; qR=function(a){a.i=void 0;a.u=void 0}; Lsa=function(a,b){return g.D(a,function d(){var e,f,h,l=this,m;return g.z(d,function(n){if(1==n.i)return e=VP(b.key),f=e.entityId,h=WP(f,"playbackData"),g.w(n,hQ(l.l,h,"playbackData"),2);m=n.l;if(null===m||void 0===m?0:m.playerResponseJson)return n.return(JSON.parse(m.playerResponseJson));throw Error("No PlayerResponse found");})})}; Nsa=function(a){return void 0!==tR[a.transferState]}; Osa=function(a,b){var c=tR[a.transferState],d=tR[b.transferState];return c!==d?c-d:Number(a.enqueuedTimestampMs)-Number(b.enqueuedTimestampMs)}; Wsa=function(a,b,c,d){this.C=a;this.api=b;this.player=c;this.G=d;this.B=new It;this.u=!1;this.l=new Nn;Vsa(this)}; Vsa=function(a){var b=ys("OfflineManager");Qra("woffle_orchestration_leader:"+b,function(){return Xsa(a)})}; Xsa=function(a){return g.D(a,function c(){var d=this;return g.z(c,function(e){if(1==e.i){d.J=new Nn;d.u=!0;d.api.Na("onOrchestrationBecameLeader");d.i&&d.L||Ysa(d).then(d.l.resolve).catch(d.l.reject);var f=d.l.promise;return g.w(e,f,2)}return g.w(e,d.J.promise,0)})})}; Ysa=function(a){return g.D(a,function c(){var d,e=this,f,h;return g.z(c,function(l){if(1==l.i)return g.w(l,kQ(),2);if(3!=l.i){d=l.l;if(!d)return l.return();e.i=new oR(d,e.api,e.player,e.G);f={};h=(f.ytMainDownloadedVideoEntity=new CQ(d),f.playbackData=new zQ(d,e.C),f.transfer=new BQ(d),f);return g.w(l,qsa(d,h),3)}e.L=l.l;return g.w(l,Zsa(e),0)})})}; Zsa=function(a){return g.D(a,function c(){var d=this,e;return g.z(c,function(f){if(1==f.i)return e=d,d.i?g.w(f,pR(d.i),2):f.return();if(3!=f.i)return g.w(f,$sa(d),3);d.U=sp(function(){$sa(e)},9E5); kq(nq(),function(){e.i&&Hsa(e.i)}); g.sa(f)})})}; ata=function(a,b){return g.D(a,function d(){var e=this;return g.z(d,function(f){return f.return(e.Kt(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"))})})}; bta=function(a,b){return g.D(a,function d(){var e=this;return g.z(d,function(f){return f.return(e.Kt(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})})}; cta=function(a){return g.D(a,function c(){var d,e,f;return g.z(c,function(h){if(1==h.i)return g.w(h,kQ(),2);if(3!=h.i)return(d=h.l)?g.w(h,iQ(d,"ytMainDownloadedVideoEntity"),3):h.return([]);e=h.l;f=e.map(function(l){return VP(l.id).entityId}); return h.return(f)})})}; $sa=function(a){return g.D(a,function c(){var d=this,e,f,h,l,m,n,p,r;return g.z(c,function(t){if(1==t.i)return d.B.Rj()?g.w(t,kQ(),2):t.return(dta(d));if(3!=t.i){e=t.l;if(!e)return t.return();f=Date.now()/1E3;return g.w(t,iQ(e,"offlineVideoPolicy"),3)}h=t.l;l=[];m=g.q(h);for(n=m.next();!n.done;n=m.next())p=n.value,Number(p.lastUpdatedTimestampSeconds)+43200<=f&&(r=VP(p.key).entityId,l.push(r));return l.length?g.w(t,bta(d,l),0):t.xb(0)})})}; dta=function(a){return g.D(a,function c(){var d,e,f,h,l,m;return g.z(c,function(n){switch(n.i){case 1:return g.w(n,kQ(),2);case 2:d=n.l;if(!d)return n.return();e=Date.now()/1E3;return g.w(n,iQ(d,"offlineVideoPolicy"),3);case 3:f=n.l,h=g.q(f),l=h.next();case 4:if(l.done){n.xb(0);break}m=l.value;if(!(m.expirationTimestamp&&Number(m.expirationTimestamp)b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);uR=new Uint8Array(256);vR=[];wR=[];xR=[];yR=[];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;uR[f]=e;b=e<<1^(e>>7&&283);var h=b^e;vR.push(b<<24|e<<16|e<<8|h);wR.push(h<<24|vR[f]>>>8);xR.push(e<<24|wR[f]>>>8);yR.push(e<<24|xR[f]>>>8)}gta=!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=(uR[a>>16&255]^d)<<24|uR[a>>8&255]<<16|uR[a&255]<<8|uR[a>>>24],d=d<<1^(d>>7&&283)),e.push(e[c-4]^a);this.key=e}; hta=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}; ita=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=vR[c>>>24]^wR[d>>16&255]^xR[e>>8&255]^yR[f&255]^b[h++];var m=vR[d>>>24]^wR[e>>16&255]^xR[f>>8&255]^yR[c&255]^b[h++];var n=vR[e>>>24]^wR[f>>16&255]^xR[c>>8&255]^yR[d&255]^b[h++];f=vR[f>>>24]^wR[c>>16&255]^xR[d>>8&255]^yR[e&255]^b[h++];c=l;d=m;e=n}a=a.l;c=[c,d,e,f];for(d=0;16>d;)a[d++]=uR[c[0]>>>24]^b[h]>>>24,a[d++]=uR[c[1]>> 16&255]^b[h]>>16&255,a[d++]=uR[c[2]>>8&255]^b[h]>>8&255,a[d++]=uR[c[3]&255]^b[h++]&255,c.push(c.shift())}; AR=function(a){this.C=new Uint8Array(64);this.u=new Uint8Array(64);this.B=0;this.G=new Uint8Array(64);this.l=0;this.C.set(a);this.u.set(a);for(a=0;64>a;a++)this.C[a]^=92,this.u[a]^=54;this.reset()}; kta=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,r,t=0;64>t;t++)p=n+jta[t]+d[t]+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^~h&m),r=((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+r;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}; mta=function(a){var b=new Uint8Array(32),c=64-a.l;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;lta(a);return b}; lta=function(a){a.i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.B=0;a.l=0}; nta=function(a,b,c){return g.D(this,function e(){var f,h,l,m,n,p,r,t;return g.z(e,function(u){switch(u.i){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){u.xb(2);break}h=window.crypto.subtle;l={name:"HMAC",hash:{name:"SHA-256"}};m=["sign"];n=new Uint8Array(b.length+c.length);n.set(b);n.set(c,b.length);ta(u,3);return g.w(u,h.importKey("raw",a,l,!1,m),5);case 5:return p=u.l,g.w(u,h.sign(l,p,n),6);case 6:r=u.l;f=new Uint8Array(r);ua(u,2);break;case 3:va(u);case 2:if(!f){t= new AR(a);t.update(b);t.update(c);var x=mta(t);t.update(t.C);t.update(x);x=mta(t);t.reset();f=x}return u.return(f)}})})}; pta=function(a,b,c){return g.D(this,function e(){var f,h,l,m,n,p,r;return g.z(e,function(t){switch(t.i){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){t.xb(2);break}h=window.crypto.subtle;l={name:"AES-CTR",counter:c,length:128};ta(t,3);return g.w(t,ota(a),5);case 5:return m=t.l,n=BR.au("oan2"),g.w(t,h.encrypt(l,m,b),6);case 6:p=t.l;BR.rs(n,Math.ceil(b.byteLength/16));f=new Uint8Array(p);ua(t,2);break;case 3:va(t);case 2:return f||(r=new zR(a),hta(r,c),f=r.encrypt(b)), t.return(f)}})})}; ota=function(a){return window.crypto.subtle.importKey("raw",a,{name:"AES-CTR"},!1,["encrypt"])}; CR=function(a){var b=this,c=new zR(a);return function(d,e){return g.D(b,function h(){return g.z(h,function(l){hta(c,e);return l.return(new Uint8Array(c.encrypt(d)))})})}}; qta=function(){for(var a=DR.length;4>a;a++){var b=g.Ee("VIDEO");b.load();DR.push(new g.wM(b))}}; rta=function(){this.l=200;this.i=12}; sta=function(a){var b=new rta;b.l=g.S(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.i=g.S(a.experiments,"html5_gapless_max_played_ranges");return b}; g.ER=function(a,b,c,d){d=void 0===d?!1:d;MI.call(this);this.i=a;this.start=b;this.end=c;this.B=d}; tta=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";c=f.u;if(b.Ok()>d/1E3+1)return"in-the-past";if(f.isLivePlayback&&!isFinite(d))return"live-infinite";if(a.i&&((b=b.rd())&&b.isView()&&(b=b.i),b&&b.ao().length>a.i&&g.$F(e)))return"played-ranges";if(!e.u)return null;if(!e.u.i||!c.i)return"non-dash";if(e.u.videoInfos[0].containerType!==c.videoInfos[0].containerType)return"container";if(g.$F(f)&&g.$F(e))return"content-protection";a=c.i[0].audio; e=e.u.i[0].audio;return a.sampleRate===e.sampleRate||g.lB?(a.i||2)!==(e.i||2)?"channel-count":null:"sample-rate"}; FR=function(){var a=this;this.i=this.l=Laa;this.promise=new km(function(b,c){a.l=b;a.i=c})}; GR=function(a,b,c,d){g.F.call(this);var e=this;this.policy=a;this.i=b;this.l=c;this.B=this.u=null;this.G=-1;this.J=!1;this.C=new FR;this.Vi=d-1E3*b.Kc();this.C.then(void 0,function(){}); this.timeout=new g.J(function(){e.oe("timeout")},1E4); g.G(this,this.timeout);this.L=isFinite(d);this.status={status:0,error:null};this.ea()}; yta=function(a){return g.D(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,u;return g.z(c,function(x){if(1==x.i){e=d;if(d.Ia())return x.return(Promise.reject(Error(d.status.error||"disposed")));d.ea();d.timeout.start();f=g.HR.au("gtfta");return g.w(x,d.C,2)}g.HR.rs(f);h=d.i.rd();if(h.Pj())return d.oe("ended_in_finishTransition"),x.return(Promise.reject(Error(d.status.error||"")));if(!d.B||!GB(d.B))return d.oe("next_mse_closed"),x.return(Promise.reject(Error(d.status.error||"")));if(d.l.mediaSource!== d.B)return d.oe("next_mse_mismatch"),x.return(Promise.reject(Error(d.status.error||"")));l=uta(d);m=l.GH;n=l.NF;p=l.FH;d.i.jg(!1,!0);r=vta(h,m,p,!d.l.getVideoData().isAd());IR(d.l,r);d.L&&(d.l.seekTo(d.l.getCurrentTime()+.001,{Qs:!0,UC:3,ge:"gapless_pseudo"}),r.play()||Gp());t=h.Db();t.cpn=d.i.getVideoData().clientPlaybackNonce;t.st=""+m;t.et=""+p;d.l.La("gapless",g.zB(t));d.i.La("gaplessTo",d.l.getVideoData().clientPlaybackNonce);u=d.i.getPlayerType()===d.l.getPlayerType();wta(d.i,n,!1,u,d.l.getVideoData().clientPlaybackNonce); wta(d.l,d.l.getCurrentTime(),!0,u,d.i.getVideoData().clientPlaybackNonce);g.fm(function(){!e.l.getVideoData().Xa&&g.XI(e.l.getPlayerState())&&xta(e.l)}); JR(d,6);d.dispose();return x.return(Promise.resolve())})})}; Bta=function(a){if(a.l.getVideoData().u){KR(a.l,a.B);JR(a,3);zta(a);var b=Ata(a),c=b.pJ;b=b.US;c.subscribe("updateend",a.Gp,a);b.subscribe("updateend",a.Gp,a);a.Gp(c);a.Gp(b)}}; zta=function(a){a.i.unsubscribe("internalvideodatachange",a.En,a);a.l.unsubscribe("internalvideodatachange",a.En,a);a.i.unsubscribe("mediasourceattached",a.En,a);a.l.unsubscribe("statechange",a.Ec,a)}; vta=function(a,b,c,d){a=a.isView()?a.i:a;return new g.ER(a,b,c,d)}; JR=function(a,b){a.ea();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.C.resolve(void 0))}; uta=function(a){var b=a.i.rd();b=b.isView()?b.start:0;var c=a.i.getVideoData().isLivePlayback?Infinity:LR(a.i,!0);c=Math.min(a.Vi/1E3,c)+b;var d=a.L?100:0;a=c-a.l.Ok()+d;return{nN:b,GH:a,NF:c,FH:Infinity}}; Ata=function(a){return{pJ:a.u.i.Zc,US:a.u.l.Zc}}; MR=function(a){g.F.call(this);var b=this;this.api=a;this.C=this.i=this.l=null;this.J=!1;this.B=null;this.L=sta(this.api.T());this.u=null;this.G=function(){g.fm(function(){Cta(b)})}}; Dta=function(a,b,c,d){d=void 0===d?0:d;a.ea();a.qq()||NR(a);a.B=new FR;a.l=b;var e=c,f=a.api.Jc(),h=f.getVideoData().isLivePlayback?Infinity:1E3*LR(f,!0);e>h&&(e=h-a.L.l,a.J=!0);f.getCurrentTime()>=e/1E3?a.G():(a.i=f,f=e,e=a.i,a.api.addEventListener(g.Wv("vqueued"),a.G),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.C=new g.Tv(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.C));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,LR(a.i,!0)),l=Math.max(0,f-a.i.getCurrentTime()),h=Math.min(d,LR(b)+l));f=tha(e,h)||d;f!==d&&a.l.La("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.l;if(e=a.api.Jc())d.Pb=e;d.getVideoData().Mb=!0;d.getVideoData().Qa=!0;rR(d,!0);e="";a.i&&(e=g.OR(a.i.C.l),f=a.i.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.La("queued",e);0!==b&&d.seekTo(b+.01,{Qs:!0,UC:3,ge:"videoqueuer_queued"});a.u=new GR(a.L,a.api.Jc(),a.l,c);c=a.u;c.ea();Infinity!==c.status.status&&(JR(c, 1),c.i.subscribe("internalvideodatachange",c.En,c),c.l.subscribe("internalvideodatachange",c.En,c),c.i.subscribe("mediasourceattached",c.En,c),c.l.subscribe("statechange",c.Ec,c),c.i.subscribe("newelementrequired",c.gI,c),c.En());return a.B}; Cta=function(a){g.D(a,function c(){var d=this,e,f,h,l;return g.z(c,function(m){switch(m.i){case 1:e=d;if(d.Ia())return m.return();d.ea();if(!d.B||!d.l)return d.ea(),m.return();d.J&&PR(d.api.Jc(),!0,!1);f=null;if(!d.u){m.xb(2);break}ta(m,3);return g.w(m,yta(d.u),5);case 5:ua(m,2);break;case 3:f=h=va(m);case 2:return d.api.qv(d.l),g.HR.kC("vqsp",function(){e.api.Qi(e.l.getPlayerType())}),g.HR.kC("vqpv",function(){e.api.playVideo()}),f&&Eta(d.l,f.message),l=d.B,NR(d),m.return(l.resolve(void 0))}})})}; NR=function(a){if(a.i){var b=a.i;a.api.removeEventListener(g.Wv("vqueued"),a.G);b.removeCueRange(a.C);a.i=null;a.C=null}a.u&&(a.u.isFinished()||(b=a.u,Infinity!==b.status.status&&b.oe("Canceled")),a.u=null);a.B=null;a.l=null;a.J=!1}; Fta=function(){var a=Qp();return!(!a||"visible"===a)}; Hta=function(a){var b=Gta();b&&document.addEventListener(b,a,!1)}; Ita=function(a){var b=Gta();b&&document.removeEventListener(b,a,!1)}; Gta=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Pp+"VisibilityState"])return"";a=Pp+"visibilitychange"}return a}; QR=function(){g.P.call(this);var a=this;this.fullscreen=0;this.l=this.pictureInPicture=this.i=this.u=this.inline=!1;this.B=function(){a.Ae()}; Hta(this.B);this.C=this.getVisibilityState(this.rf(),this.isFullscreen(),this.Ee(),this.isInline(),this.oq(),this.mq())}; Jta=function(a){this.end=this.start=a}; g.TR=function(a,b,c){g.F.call(this);var d=this;this.api=a;this.u=b;this.i=c;this.C=new Map;this.G=[];this.B=[];this.Qa=NaN;this.xa=this.ma=null;this.Oa=new g.J(function(){RR(d,d.Qa)}); this.events=new g.SL(this);this.isLiveNow=!0;this.Xa=g.S(this.u.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.J=new g.J(function(){d.L=!0;d.i.La("sdai","aftimeout."+d.Xa.toString());SR(d,!1);d.va=!1},this.Xa); this.L=!1;this.Fa=new Map;this.Ha=[];this.Y=null;this.X=[];this.Ya=[];this.l=void 0;this.Va=0;this.Ea=!0;this.va=this.U=!1;this.Aa=[];this.i.getPlayerType();Kta(this.i,this);g.G(this,this.Oa);g.G(this,this.events);g.G(this,this.J);this.events.N(this.api,g.Wv("serverstitchedcuerange"),this.xd);this.events.N(this.api,g.Xv("serverstitchedcuerange"),this.Ue)}; Nta=function(a,b,c,d,e,f){var h=Lta(a,e,e+d);a.L&&a.i.La("sdai","adaftto");var l=g.R(a.u.experiments,"web_player_ssdai_reject_invalid_ads_killswitch"),m=a.i;f=void 0===f?e+d:f;e===f&&!d&&a.u.Z("html5_allow_zero_duration_ads_on_timeline")&&a.i.La("sdai","attl0d");if(e>f&&(a.wd("Invalid playback enterTimeMs="+e+" is greater than parentReturnTimeMs="+f),l))return"";var n=1E3*m.getMinSeekableTime();if(em&&(a.wd("Invalid playback parentReturnTimeMs="+f+" is greater than parentDurationMs="+m),l))return"";m=null;n=g.q(a.B);for(var p=n.next();!p.done;p=n.next()){p=p.value;if(e>=p.Hc&&ep.Hc&&(a.wd("Overlapping child playbacks not allowed. New playback {video_id="+(b.video_id+" enterTimeMs="+ e+" parentReturnTimeMs="+f+"} overlaps existing ChildPlayback "+UR(p))),l)||f===p.Hc&&(a.wd("Neighboring child playbacks must be added sequentially. New playback {video_id="+(b.video_id+" enterTimeMs="+e+" parentReturnTimeMs="+f+"} added after existing ChildPlayback "+UR(p))),l))return"";e===p.pd&&(m=p)}if(h&&m)for(l=g.q(a.X.entries()),n=l.next();!n.done;n=l.next()){if(n=g.q(n.value),p=n.next().value,n.next().value.identifier===h.identifier){a.X.splice(p,1);break}}else if(h&&g.R(a.u.experiments,"web_player_ss_timeout_skip_ads"))return""; h="childplayback_"+Mta++;l=b.raw_player_response;l||g.R(a.u.experiments,"web_player_parse_ad_response_killswitch")||(n=b.player_response)&&(l=JSON.parse(n));b.cpn||(b.cpn=uu());n=b.cpn;b=new g.DF(a.u,b);b.Wc=h;c={Wc:h,playerType:c,durationMs:d,Hc:e,pd:f,playerResponse:l,cpn:n,videoData:b};a.B=a.B.concat(c).sort(function(r,t){return r.Hc-t.Hc}); m?c.An=m.An:c.An=c.cpn;a.J.isActive()&&(a.L=!1,a.J.stop(),SR(a,!0));a.ea();return h}; Ota=function(a,b){return new g.Tv(a,b,{namespace:"serverstitchedcuerange",priority:7})}; Pta=function(a,b,c){var d=a.U,e={cpn:a.i.getVideoData().clientPlaybackNonce,durationMs:0,Hc:0,playerType:1,pd:0,videoData:a.i.getVideoData()};if(b.isAd&&c.isAd){e=a.B.find(function(h){return h.cpn===b.adCpn}); var f=a.B.find(function(h){return h.cpn===c.adCpn}); f&&e&&(a.api.W("serverstitchedvideochange",e.Wc),VR(a.i,f,e,c.wl,b.wl,d))}else!b.isAd&&c.isAd?(a.api.W("serverstitchedvideochange"),f=c.Od,a.Va=f.end-f.start,(f=a.B.find(function(h){return h.cpn===c.adCpn}))&&VR(a.i,f,e,c.wl,b.wl,d)):b.isAd&&!c.isAd&&(f=a.B.find(function(h){return h.cpn===b.adCpn}))&&(a.api.W("serverstitchedvideochange",f.Wc),a.Va=0,VR(a.i,e,f,c.wl,b.wl,d))}; WR=function(a,b,c){c=void 0===c?0:c;var d=0;a=g.q(a.B);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.Hc/1E3+d,h=f+e.durationMs/1E3;if(f>b+c)break;if(h>b)return{Gk:e,Io:b-d};d=h-e.pd/1E3}return{Gk:void 0,Io:b-d}}; YR=function(a,b){var c=Qta(a,b);if(c)return a.B.find(function(d){return d.cpn===a.C.get(c)})}; Qta=function(a,b){a=g.q(a.C.keys());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c}; RR=function(a,b){var c=a.xa||a.api.Jc().getPlayerState();ZR(a,!0);var d=b;g.R(a.u.experiments,"web_player_ssdai_seek_without_offset_killswitch")&&(d=WR(a,b).Io);a.i.seekTo(d);a=a.api.Jc();b=a.getPlayerState();g.XI(c)&&!g.XI(b)?a.playVideo():g.T(c,4)&&!g.T(b,4)&&a.pauseVideo()}; ZR=function(a,b){a.Qa=NaN;a.Oa.stop();a.ma&&b&&$R(a.ma);a.xa=null;a.ma=null}; aS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.ea();for(var d=b,e=c,f=[],h=g.q(a.B),l=h.next();!l.done;l=h.next())l=l.value,(l.Hce)&&f.push(l);a.B=f;d=b;e=c;f=g.q(a.C.keys());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.i.removeCueRange(h),a.C.delete(h));d=WR(a,b/1E3);b=d.Gk;d=d.Io;b&&(d=1E3*d-b.Hc,e=b.Hc+d,a.ea(),b.durationMs=d,b.pd=e,Rta(a,b));(b=WR(a,c/1E3).Gk)&&a.wd("Invalid clearEndTimeMs="+c+" that falls during "+UR(b)+".Child playbacks can only have duration updated not their start.")}; Rta=function(a,b){for(var c=null,d=g.q(a.C),e=d.next();!e.done;e=d.next()){e=g.q(e.value);var f=e.next().value;e.next().value===b.cpn&&(c=f)}if(c){a=g.q(a.G);for(d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.Hc+b.durationMs:d.end===c.start&&(d.end=b.Hc);c.start=b.Hc;c.end=b.Hc+b.durationMs}}; UR=function(a){var b;return"playback={timelinePlaybackId="+a.Wc+" video_id="+(null===(b=a.videoData)||void 0===b?void 0:b.videoId)+" durationMs="+a.durationMs+" enterTimeMs="+a.Hc+" parentReturnTimeMs="+a.pd+"}"}; Sta=function(a,b,c){c=a.Fa.get(c);c||(c=0,a.u.Z("web_player_ss_media_time_offset")&&(c=0===a.i.getStreamTimeOffset()?a.i.Kc():a.i.getStreamTimeOffset()),c=WR(a,b+c,1).Gk);return c}; bS=function(a,b,c,d){if(d)for(d=0;dc){var f=e.end;e.end=b;Tta(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.i.removeCueRange(e);a.Aa.includes(e)&&a.Ue(e);a.G.splice(d,1);continue}d++}else Tta(a,b,c)}; Tta=function(a,b,c){b=Ota(b,c);c=!0;g.zb(a.G,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.i.removeCueRange(e):c=!1;a.G.splice(d,1);continue}}d++}c&&a.i.addCueRange(b)}; cS=function(a,b,c){if(void 0===c||!c){c=g.q(a.Ha);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.Ha.push(new Jta(b))}}; g.Uta=function(a,b){a=g.q(a.Ha);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1}; Vta=function(a,b){var c=[];a=g.q(a.B);for(var d=a.next();!d.done;d=a.next())d=d.value,d.An===b&&d.cpn&&c.push(d.cpn);return c}; Lta=function(a,b,c){if(a.X.length)for(var d={},e=g.q(a.X),f=e.next();!f.done;d={Vm:d.Vm},f=e.next()){d.Vm=f.value;f=1E3*d.Vm.startSecs;var h=1E3*d.Vm.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.Kc(),a.wd(h),"";l=null; for(var m=g.q(a.i),n=m.next();!n.done;n=m.next()){n=n.value;if(e>=n.Hc&&en.Hc)return a.wd("e.overlappingReturn"),a.ea(),"";if(f===n.Hc)return a.wd("e.outOfOrder"),a.ea(),"";e===n.pd&&(l=n)}m="childplayback_"+Yta++;n={Od:fS(d,!0),Vi:Infinity,target:null};var p={Wc:m,playerVars:b,playerType:c,durationMs:d,Hc:e,pd:f,Ul:n};a.i=a.i.concat(p).sort(function(u,x){return u.Hc-x.Hc}); l?Zta(a,l,{Od:fS(l.durationMs,!0),Vi:a.C.Z("timeline_manager_transition_killswitch")?Infinity:l.Ul.Vi,target:p}):(b={Od:fS(e,!1),Vi:e,target:p},a.J.set(b.Od,b),a.ea(),h.addCueRange(b.Od));b=g.R(a.C.experiments,"html5_gapless_preloading");if(a.l===a.api.Jc()&&(h=1E3*h.getCurrentTime(),h>=p.Hc&&hb)break;if(f>b)return{Gk:d,Io:b-e};c=f-d.pd/1E3}return{Gk:null,Io:b-c}}; Xta=function(a,b){var c=a.G||a.api.Jc().getPlayerState();jS(a,!0);b=g.R(a.C.experiments,"html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:kS(a.l);var d=iS(a,b);b=d.Gk;d=d.Io;var e=b&&!gS(a,b)||!b&&a.l!==a.api.Jc(),f=1E3*d;f=a.u&&a.u.start<=f&&f<=a.u.end;!e&&f||hS(a);a.ea();b?(a.ea(),$ta(a,b,d,c)):(a.ea(),lS(a,d,c))}; lS=function(a,b,c){var d=a.l,e=a.api.Jc();d!==e&&a.api.Qi(d.getPlayerType());d.seekTo(b,{ge:"application_timelinemanager"});eua(a,c)}; $ta=function(a,b,c,d){var e=gS(a,b);if(!e){a.api.Qi(b.playerType);b.playerVars.prefer_gapless=!0;var f=new g.DF(a.C,b.playerVars);f.Wc=b.Wc;a.api.zm(f,b.playerType)}f=a.api.Jc();e||(b=b.Ul,a.ea(),f.addCueRange(b.Od));f.seekTo(c,{ge:"application_timelinemanager"});eua(a,d)}; eua=function(a,b){a=a.api.Jc();var c=a.getPlayerState();g.XI(b)&&!g.XI(c)?a.playVideo():g.T(b,4)&&!g.T(c,4)&&a.pauseVideo()}; jS=function(a,b){a.Y=NaN;a.U.stop();a.B&&b&&$R(a.B);a.G=null;a.B=null}; gS=function(a,b){a=a.api.Jc();return!!a&&a.getVideoData().Wc===b.Wc}; fua=function(a){var b=a.i.find(function(d){return gS(a,d)}); if(b){hS(a);var c=new g.RI(8);b=dua(a,b)/1E3;lS(a,b,c)}}; mS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.ea();for(var d=b,e=c,f=g.q(a.J),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.Vi>=d&&l.target&&l.target.pd<=e&&(a.l.removeCueRange(h),a.J.delete(h))}d=b;e=c;f=[];h=g.q(a.i);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Hc>=d&&l.pd<=e){var m=a;m.L===l&&hS(m);gS(m,l)&&m.api.Km(l.playerType)}else f.push(l);a.i=f;d=iS(a,b/1E3);b=d.Gk;d=d.Io;b&&(d*=1E3,gua(a,b,d,b.pd===b.Hc+b.durationMs?b.Hc+d:b.pd)); (b=iS(a,c/1E3).Gk)&&a.wd("Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Wc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Hc+" parentReturnTimeMs="+b.pd+"}.Child playbacks can only have duration updated not their start."))}; gua=function(a,b,c,d){a.ea();b.durationMs=c;b.pd=d;d={Od:fS(c,!0),Vi:c,target:null};Zta(a,b,d);gS(a,b)&&1E3*a.api.Jc().getCurrentTime()>c&&(b=dua(a,b)/1E3,c=a.api.Jc().getPlayerState(),lS(a,b,c))}; iua=function(a){a&&"web"!==a&&hua.includes(a)}; pS=function(a,b){g.F.call(this);var c=this;this.data=[];this.u=a||NaN;this.l=b||null;this.i=new g.J(function(){nS(c);oS(c)}); g.G(this,this.i)}; nS=function(a){var b=(0,g.O)();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.l=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.l.observe(a)}; lua=function(a,b){Zt(a,"version",b)}; yS=function(a){g.V.call(this,{D:"div",Ca:["html5-video-player"],V:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},S:[{D:"div",K:g.xS.VIDEO_CONTAINER,V:{"data-layer":"0"}}]});var b=this;this.app=a;this.Sr=this.Ba(g.xS.VIDEO_CONTAINER);this.Fq=new g.$f(0,0,0,0);this.Fb=null;this.hx=new g.$f(0,0,0,0);this.MA=this.xB=this.wB=NaN;this.hw=this.vF=!1;this.Wz=NaN;this.gB=!1;this.gt=null;this.dispatchEvent=function(){}; this.MB=function(){b.element.focus()}; this.Zx=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.T();e.transparentBackground&&this.Hl("ytp-transparent");"0"===e.controlsType&&this.Hl("ytp-hide-controls");g.K(this.element,"ytp-exp-bottom-control-flexbox");e.Z("html5_player_bottom_linear_gradient")&&g.K(this.element,"ytp-linear-gradient-bottom-experiment");e.Z("web_player_bigger_buttons_like_mobile")&&g.K(this.element,"ytp-exp-bigger-button-like-mobile");e.Z("enable_new_paid_product_placement")&&!g.aE(e)&&g.K(this.element,"ytp-exp-ppp-update");lua(this.element,mua(a));this.rJ=!1;UD(e)&& "blazer"!==e.playerStyle&&window.matchMedia&&(this.Zx="desktop-polymer"===e.playerStyle?[{query:window.matchMedia("(max-width: 656px)"),size:new g.ie(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.ie(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.ie(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.ie(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.ie(854,480)},{query:window.matchMedia("(min-width: 1000px)"), size:new g.ie(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),size:new g.ie(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.ie(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.ie(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.ie(640,360)}]);this.nD=e.useFastSizingOnWatchDefault;this.us=new g.ie(NaN,NaN);nua(this);this.N(a.Ua,"onMutedAutoplayChange",this.Ct)}; nua=function(a){function b(){a.Fb&&zS(a);AS(a)!==a.gB&&a.resize()} function c(h,l){a.iq(h,l)} function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())} function e(){a.hx=new g.$f(0,0,0,0);a.Fq=new g.$f(0,0,0,0)} var f=a.app.Ua;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.Bi(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})}; oua=function(a){var b=g.W(a.app);if(b=b?b.getVideoData():null){if(g.gG(b)||g.hG(b)||g.jG(b))return 16/9;if(OF(b)&&b.u.i)return a=b.u.videoInfos[0].video,BS(a.width,a.height)}return(a=a.Fb)?BS(a.videoWidth,a.videoHeight):16/9}; pua=function(a,b,c,d){var e=c,f=BS(b.width,b.height);a.vF?e=cf?{width:b.width,height:b.width/e,aspectRatio:e}:ee?a.width=a.height*c:cMath.abs(CS*b-a)||1>Math.abs(CS/a-b)?CS:a/b}; AS=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.W(a.app);if(!b||b.Uk())return!1;var c=a.app.Ua.ub();a=!g.T(c,2)||!g.R(a.app.T().experiments,"html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Qa;b=g.T(c,1024);return c&&a&&!b&&!c.isCued()}; zS=function(a){var b="3"===a.app.T().controlsType&&!a.hw&&AS(a)&&!a.app.ot||!1;a.Fb.controls=b;a.Fb.tabIndex=b?0:-1;b?a.Fb.removeEventListener("focus",a.MB):g.R(a.app.T().experiments,"disable_focus_redirect")||a.Fb.addEventListener("focus",a.MB)}; qua=function(a){var b=a.Uf(),c=1,d=!1,e=pua(a,b,a.getVideoAspectRatio()),f=Iq();if(AS(a)){var h=oua(a);var l=isNaN(h)||g.jt||DS&&g.Gs;Jq&&!g.ae(601)?h=e.aspectRatio:l=l||"3"===a.app.T().controlsType;l?l=new g.$f(0,0,b.width,b.height):(c=e.aspectRatio/h,l=new g.$f((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.Gs&&(h=l.width-b.height*h,0b)return!0;var c=a.getLastSegmentNumber();return bb)return 1;c=a.getLastSegmentNumber();return b=h&&a.la.seekCount?(a.seekCount++,a.ea(),RS(a,"iterativeSeeking","inprogress;count."+a.seekCount+";target."+a.l+";actual."+h+";duration."+l+";isVideo."+c,!1),a.seek(a.l)):(a.ea(),RS(a,"iterativeSeeking","incomplete;count."+a.seekCount+";target."+a.l+";actual."+h,!1),a.seekCount=0,a.videoTrack.C=!1,a.audioTrack.C=!1,a.W("seekplayerrequired",h+.1,!0)))}})}; zua=function(a,b,c){if(!a.i)return-1;c=(c?a.videoTrack:a.audioTrack).i.index;var d=c.getSegmentNumberForTime(a.l);return(qA(c,a.u.Qd)||b.Ka===a.u.Qd)&&d=c||(c=new Fv(a.i.Dd.startSecs-(a.policy.Pb&&!isNaN(a.L)?a.L:0),c,a.i.Dd.context,a.i.Dd.identifier,"stop",a.i.Dd.i+1E3*b.duration),dS(a,"cuepointdiscontinuity","segNum."+b.Ka),a.policy.xa?US(a,c,b.Ka):a.Yw(c,b.Ka))}}; Eua=function(a,b,c,d){(void 0===d?0:d)?(a.l=1,dS(a,"sdai","rststate_skth")):0b)return!0;return!1}; Pua=function(a,b){return new WS(a.J,a.i,b||a.u.reason)}; cT=function(a){return a.u.isLocked()}; Lua=function(a){a.Ea?a.Ea=!1:a.Y=(0,g.O)();a.U=!1;return new WS(a.J,a.i,a.u.reason)}; Qua=function(a){var b=!cT(a)&&-1(0,g.O)()-a.Y,c=a.nextVideo&&3*$S(a,a.nextVideo.info)a.policy.Fa,l=e<=a.policy.Fa?dB(d):bB(d);if(!f||h||l)c[e]=d}return c}; XS=function(a,b){a.u=b;var c=a.G.videoInfos;if(!cT(a)){var d=(0,g.O)()-6E4;c=g.Je(c,function(n){if(n.Kb>this.policy.Kb)return this.ea(),!1;n=this.C.i[n.id];var p=n.info.i;return this.policy.mj&&this.Fa.has(p)||n.U>d?!1:4b.i)&&(e=e.filter(function(n){return!!n&&!!n.video&&!!n.l})); if(!DB()&&0f.video.width?(a.ea(),g.jb(e,c),c--):$S(a,b)*a.policy.l>$S(a,f)&&(a.ea(),g.jb(e,c-1),c--);c=e[e.length-1];a.Qa=!!a.i&&!!a.i.info&&a.i.info.i!==c.i;a.ea();a.B=e;Voa(a.policy,c)}; Iua=function(a,b){b?a.l=a.C.i[b]:(b=(b=g.cb(a.G.i,function(c){return!!c.Ic&&c.Ic.isDefault}))||a.G.i[0],a.l=a.C.i[b.id]); YS(a)}; Sua=function(a,b){for(var c=0;c+1d}; YS=function(a){if(!a.l||!a.policy.i)if(!a.l||!a.l.info.Ic)if(a.l=a.C.i[a.G.i[0].id],1a.u.i:Sua(a,a.l);b&&(a.l=a.C.i[g.ab(a.G.i).id])}}; ZS=function(a){a.policy.jf&&(a.Aa=a.Aa||new g.J(function(){a.policy.jf&&a.i&&!bT(a)&&1===Math.floor(10*Math.random())?(aT(a,a.i),a.U=!0):a.Aa.start()},6E4),g.mn(a.Aa)); if(!a.nextVideo||!a.policy.i)if(cT(a))a.nextVideo=360>=a.u.i?a.C.i[a.B[0].id]:a.C.i[g.ab(a.B).id],a.ea();else{for(var b=Math.min(a.L,a.B.length-1),c=LS(a.ma),d=$S(a,a.l.info),e=c/a.policy.u-d;0=c);b++);a.nextVideo=a.C.i[a.B[b].id];a.L!==b&&a.ea();a.L=b}}; Jua=function(a){var b=a.policy.u,c=LS(a.ma)/b-$S(a,a.l.info);b=g.db(a.B,function(d){return $S(this,d)b&&(b=0);a.L=b;a.nextVideo=a.C.i[a.B[b].id];a.ea()}; Kua=function(a){if(a.Va.length){var b=a.Va,c=function(d,e){if(b.includes(Oz(d)))return d;for(var f=0;fa.policy.Bb&&(c*=1.5);return c}; Uua=function(a,b){a=Ob(a.C.i,function(c){return c.info.kc()===b}); if(!a)throw Error("Itag "+b+" from server not known.");return a}; Vua=function(a){var b=[];if("m"===a.u.reason||"s"===a.u.reason)return b;if(lha(a.C)){for(var c=Math.max(0,a.L-2);c=e)break;var f=c.getUint32(d+4);if(1836019574===f)d+=8;else{if(1886614376===f){f=a.subarray(d,d+e);var h=new Uint8Array(b.length+f.length);h.set(b);h.set(f,b.length);b=h}d+=e}}return b}; ava=function(a){a=jz(a,1886614376);g.Ab(a,function(b){return!b.l}); return g.Oc(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})}; bva=function(a){var b=dh(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0; g.Ab(a,function(e){c.set(e,d);d+=e.length}); return c}; cva=function(a,b,c,d){this.ids=a;this.l=b;this.u=c;this.i=d}; hT=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.i=this.cryptoPeriodIndex=NaN;this.l=[];this.ye=!1}; dva=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0=a.i.totalLength)throw Error();return DA(a.i,a.offset++)}; fva=function(a,b){b=void 0===b?!1:b;var c=kT(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=kT(a);-1===b&&255!==d&&(b=0);-1e&&d>c;e++)c=256*c+kT(a),d*=128;return b?c:c-d}; mT=function(a,b,c){var d=this;this.L=a;this.policy=b;this.C=c;this.l=[];this.i=null;this.ma=-1;this.U=0;this.xa=NaN;this.Y=0;this.B=NaN;this.Aa=0;this.Fa=-1;this.u=this.X=this.Qa=this.Ha=this.Ea=this.Oa=this.G=this.J=this.va=null;this.Va=!1;this.timestampOffset=0;if(this.policy.i){var e=this.C,f=this.policy.i;this.u=new Wua(this.policy,e,function(h,l,m){lT(a,new iT(d.policy.i,2,{It:new eva(f,h,e.info,l,m)}))}); this.u.G.promise.then(function(h){d.u=null;1===h&&lT(a,new iT(d.policy.i,h))},function(){d.u=null; lT(a,new iT(d.policy.i,4))}); Xua(this.u)}}; gva=function(a){return a.l.length?a.l[0]:null}; nT=function(a){return a.l.length?a.l[a.l.length-1]:null}; kva=function(a,b,c){if(a.G){var d=a.G.Ab+a.G.l;if(0=a.ma&&0===a.U){var f=a.i.i,h=-1;e=-1;if(c){for(var l=0;l+8 e&&(h=-1)}else{f=new jT(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var r=fva(p,!0),t=fva(p,!1);var u=r;var x=t}catch(A){x=u=-1}p=u;var y=x;if(0>p)break;if(408125543!==p)if(524531317===p)l=!0,0<=y&&(e=f.getOffset()+y,m=!0);else{if(l&&(160===p||163===p)&&(0>h&&(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.U=e-h}if(a.ma>d)break;a.ma?(d=iva(a,a.ma),d.u&&!d.info.i.yg()&&jva(a,d),hva(a,b,d),qT(a,d), a.ma=0):a.U&&(d=iva(a,0>a.U?Infinity:a.U),a.U-=d.i.totalLength,qT(a,d))}}a.i&&a.i.info.Jd&&(qT(a,a.i),a.i=null)}; pT=function(a,b){!b.info.i.yg()&&0===b.info.Ab&&(g.KA(b.info.i.info)||b.info.i.info.ye())&&QA(b);if(1===b.info.type)try{jva(a,b),lva(a,b)}catch(d){g.Ou(d);var c=$z(b.info);c.hms="1";rT(a.L,!0,"fmt.unparseable",c||{})}b.info.i.RA(b);a.u&&Zua(a.u,b)}; mva=function(a){var b=a.l.reduce(function(c,d){return c+d.i.totalLength},0); a.i&&(b+=a.i.i.totalLength);return b}; sT=function(a){return g.Oc(a.l,function(b){return b.info})}; iva=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=IA(c,b);a.i=c[1];return c[0]}; jva=function(a,b){var c=GA(b);if(!a.policy.Fo&&cB(b.info.i.info)&&"bt2020"===b.info.i.info.fb().primaries){var d=new lz(c);nz(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;bB(d)&&!cB(d)&&(d=GA(b),tz(new lz(d)),sz([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.u&&(g.KA(d.info)?d.u=Jga(c):d.info.ye()&&(d.u=Lga(c))));b.info.i.info.ye()&& b.info.isVideo()&&(c=GA(b),tz(new lz(c)),sz([408125543,374648427,174,224],30320,c)&&sz([408125543,374648427,174,224],21432,c));if(a.policy.kh&&b.info.i.info.ye()){c=GA(b);var e=new lz(c);if(nz(e,[408125543,374648427,174,29637])){d=qz(e,!0);e=e.start+e.i;for(var f=0;fm||(e&&b.skip(4),f&&b.skip(4),e=Ny(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.va&&!!a.va.C.G)if(b=c.info.isVideo())b=PA(c),h=a.va,tT?(l=1/b,b=uT(a,b)>=uT(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&nva(c)&&(b=a.va,tT?(l=PA(c),h=1/l,l=uT(a,l),b=uT(b)+h-l):b=b.getDuration()- a.getDuration(),b=1+b/c.info.duration,Zy(GA(c),b))}else{h=!1;a.J||(QA(c),c.l&&(a.J=c.l,h=!0,bA(c.info,c.l),l=c.info.i.info,f=GA(c),g.KA(l)?iz(f,1701671783):l.ye()&&sz([408125543],307544935,f)));if(f=l=OA(c))f=c.info.i.info.ye()&&160===DA(c.i,0);if(f)a.Y+=l,a.B=NaN;else{if(a.policy.Ym){var n;e=a.L;f=LA(c)/1;isNaN(e.timestampOffset)&&ova(e,f-Math.min(f,e.policy.dd));e=n=f-e.timestampOffset;if(0<=a.B&&6!==c.info.type){f=n-a.B;var p=f-a.Aa;d=c.info.Ka;var r=a.Oa?a.Oa.Ka:-1,t=a.Ha?a.Ha:-1,u=a.Ea?a.Ea: -1;m=a.policy.Xc&&f>a.policy.Xc;var x=a.policy.Tc&&p>a.policy.Tc;1E-4m&&d>a.Fa)&&p&&(d=Math.max(.95,Math.min(1.05,(l-(x-f))/l)),Zy(GA(c), d),d=OA(c),n=l-d,l=d)));a.Aa=f+n}}else isNaN(a.B)?e=c.info.startTime:e=a.B;MA(c,e)?(isNaN(a.xa)&&(a.xa=e),a.Y+=l,a.B=e+l):(l=$z(c.info),l.smst="1",rT(a.L,!0,"fmt.unparseable",l||{}))}a.Oa=c.info;a.Ea=OA(c);c.B&&(a.Ha=c.B);if(h&&a.J){h=pva(a,!0);cA(c.info,h);a.i&&cA(a.i.info,h);b=g.q(b.info.i);for(l=b.next();!l.done;l=b.next())cA(l.value,h);(c.info.Jd||a.i&&a.i.info.Jd)&&6!==c.info.type||(a.X=h,b=a.L,b.i.isManifestless&&qva(b,h,!!a.C.info.video),a.policy.xa||rva(a))}}lva(a,c);a.timestampOffset&&NA(c, a.timestampOffset)}; qT=function(a,b){if(b.info.Jd){a.Qa=b.info;if(a.J){var c=pva(a,!1);a.L.OB(a.C,c);a.X||a.policy.xa||rva(a);a.X=null}oT(a)}a.u&&Zua(a.u,b);if(c=nT(a))if(c=JA(c,b,a.policy.di)){a.l.pop();a.l.push(c);return}a.l.push(b)}; oT=function(a){a.i=null;a.ma=-1;a.U=0;a.J=null;a.xa=NaN;a.Y=0;a.X=null}; lva=function(a,b){if(a.C.info.Fd){if(b.info.i.info.ye()){var c=new lz(GA(b));if(nz(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=qz(c,!0);c=16!==d?null:xz(c,d)}else c=null;d="webm"}else b.info.L=ava(GA(b)),c=bva(b.info.L),d="cenc";c&&c.length&&(c=new hT(c,d),c.ye=b.info.i.info.ye(),b.l&&b.l.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.l.cryptoPeriodIndex),a.policy.lj&&b.l&&b.l.u&&(c.i=b.l.u),a.L.Lo(c))}}; rva=function(a){var b=a.J,c=Uy(b);c&&(c.startSecs+=a.xa,a.L.Yw(a.C,c,b.i))}; pva=function(a,b){var c,d=a.J;if(c=Uy(d))c.startSecs+=a.xa;if(d.data["Stitched-Video-Id"]||d.data["Stitched-Video-Cpn"]||d.data["Stitched-Video-Duration-Us"]||d.data["Stitched-Video-Start-Frame-Index"]||d.data["Serialized-State"]){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.q(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.q(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)}e=new cva(e,f,h,d.data["Serialized-State"]?d.data["Serialized-State"]:"")}return new Dy(d.i,a.xa,b?d.Xh:a.Y,d.ingestionTime,"sq/"+d.i,void 0,void 0,b,e,c)}; nva=function(a){return a.info.i.yg()&&a.info.Ka===a.info.i.index.getLastSegmentNumber()}; uT=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.C.G&&b&&(b+=a.C.G.i);return b+a.getDuration()}; sva=function(a,b){0>b||(a.l.forEach(function(c){NA(c,b)}),a.timestampOffset=b)}; vT=function(a,b){this.info=a;this.callback=b;this.state=1;this.L=!1;this.B=0;this.C=!1;this.i=null}; tva=function(a){return g.ch(a.info.i,function(b){return 3===b.type})}; wT=function(a,b){var c=a.state;a.state=b;a.My();a.callback&&a.callback(a,c)}; xT=function(a,b){b&&a.state=b&&(e.l.pop(),e.B-=OA(l),f=!0)}f&&(e.G=0c?QS(a,d):a.l=a.i.Cl(b-1,!1).i[0]}; KT=function(a,b){var c;for(c=0;c=a.U:c}; Fva=function(a){var b;return FT(a)||!(null===(b=nT(a.B))||void 0===b||!b.info.u)}; ET=function(a){var b=[],c=BT(a);c&&b.push(c);b=g.ob(b,sT(a.B));g.Ab(a.u,function(d){g.Ab(d.info.i,function(e){d.L&&(b=g.Je(b,function(f){return!(f.i!==e.i?0:f.range&&e.range?f.range.start+f.Ab>=e.range.start+e.Ab&&f.range.start+f.Ab+f.l<=e.range.start+e.Ab+e.l:f.Ka===e.Ka&&f.Ab>=e.Ab&&(f.Ab+f.l<=e.Ab+e.l||e.Jd))})); (Xz(e)||4===e.type)&&b.push(e)})}); a.l&&!Tga(a.l,g.ab(b),a.l.i.yg())&&b.push(a.l);return b}; Cva=function(a,b){if(!a.length)return!1;for(b+=1;b=b){b=f;break a}}b=e}return 0>b?NaN:Cva(a,c?b:0)?a[b].startTime:NaN}; LT=function(a){return!(!a.l||a.l.i===a.i)}; MT=function(a){return LT(a)&&a.i.xe()&&a.l.i.info.Kbb&&a.B=d.totalLength&&(c=BA(d),c=Iy(c),Mv(c)?a.ea():c="")}if(c)return b=PT(a),(0,g.O)(),b.started=0,b.timedOut=0,b.i=0,b=a.info,a=a.l,g.Mz(b.l,a,c),b.requestId=a.get("req_id"),3;c=b.Zn();if((d=!!a.info.range&&a.info.range.length)&&d!==c||b.jC())return a.lastError="net.closed",5;Wva(a,!0);if(!d&&a.i&&(d=a.i.Rd,d.length&& !HA(d[0])))return a.lastError="net.closed",5;var e=tva(a)?b.getResponseHeader("X-Bandwidth-Est"):0;if(b=tva(a)?b.getResponseHeader("X-Bandwidth-Est3"):0)a.va=!0,a.policy.Eo&&(e=b);b=a.timing;d=(0,g.O)();e=e?Number(e):0;if(!b.va){b.va=!0;if(!b.Qj){d=QL(b,d);ML(b,d,c);xoa(b,d,c);var f=IL(b);if(2===f&&e)KL(b,b.l/e,b.l);else if(2===f||1===f)e=(d-b.i)/1E3,(e<=b.schedule.Y.i||!b.schedule.Y.i)&&!b.Ha&&NL(b)&&KL(b,e,c),NL(b)&&(e=b.schedule,c=Math.max(c,2048),e.i.xg(1,b.u/c),bD(e));c=b.schedule;d=(d-b.i)/ 1E3||.05;e=b.Y;f=b.Eh;c.G.xg(d,b.l/d);c.B=VC();f||c.l.xg(1,d-e)}b.deactivate()}b=PT(a);(0,g.O)();b.started=0;b.timedOut=0;b.i=0;a.info.l.l=0;(0,g.O)()b.indexOf("googlevideo.com")||(Yva({primary:b}),Xva=(0,g.O)());b=a.timing;a.ea("Succeeded, rtpd="+(1E3*b.Y+b.i-Date.now()).toFixed(0));return 4}; QT=function(a){var b;a.ea("Request failed, itag="+a.l.get("itag")+(" seg="+a.info.i[0].Ka)+(" sliced="+(null===(b=a.i)||void 0===b?void 0:b.l))+(" error="+a.lastError));if("net.timeout"===a.lastError){var c=a.timing,d=(0,g.O)();if(!c.Qj){d=QL(c,d);ML(c,d,1024*c.ma);var e=(d-c.i)/1E3;if(2!==IL(c))if(NL(c)){c.u+=(d-c.B)/1E3;var f=c.schedule,h=c.l;h=Math.max(h,2048);f.i.xg(1,c.u/h);bD(f)}else woa(c)||c.Qj||(f=c.schedule,f.J.xg(1,e),bD(f)),c.xa=d;f=c.schedule;h=c.Y;var l=c.Eh;f.G.xg(e,c.l/e);f.B=VC(); l||f.l.xg(1,e-h);XC(c.schedule,(d-c.B)/1E3,0)}}else(0,g.O)();"net.nocontent"!==a.lastError&&("net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError?(c=PT(a),c.timedOut+=1):(c=PT(a),c.i+=1),a.timing.l||a.info.l.l++);wT(a,5)}; $va=function(a,b){b&&(b=PT(a),b.l+=1);ST(a);a.lastError="net.timeout";QT(a)}; ST=function(a){a.ea();a.xhr&&a.xhr.abort();a.timing.deactivate()}; Vva=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.ys();return(!a.xhr.Oq()||!b||-1!==b.indexOf("text/plain"))&&(!c||2048>=c)}; Sva=function(a){if(wy(a.l.Yg))return new Lva(a.l,a);var b=g.Fz(a.l);return a.policy.Aa&&(a.policy.qp&&!isNaN(a.info.re)&&a.info.re>a.policy.Ck||a.C?0:bx())?new OT(b,a.policy.B,a):new RL(b,a)}; Wva=function(a,b){if(b||a.xhr.pm()&&a.xhr.Xf()&&!Vva(a)&&!a.C){if(!a.i){if(a.xhr.Oq())a.info.range&&(c=a.info.range.length);else var c=a.xhr.Zn();a.i=new vva(a.info.i,c)}for(;a.xhr.Xf();)wva(a.i,a.xhr.Th(),b&&!a.xhr.Xf())}}; Pva=function(a){if(!a.policy.B.Bf||!isNaN(a.info.re)&&0a.info.i[0].Ka)return!1}return!0}; TT=function(a,b,c,d,e){this.ma=a;this.policy=b;this.schedule=c;this.L=d;this.Y=e;this.X=NaN;this.l=this.J=this.B=null;this.i=this.C=this.G=this.startTimeSecs=NaN;this.u=!1;this.U=NaN}; awa=function(a,b,c,d,e){return b.Va&&b.Oa&&3===py(b)?new TT(a,b,c,d,e):null}; bwa=function(a,b){if(a.policy.cn){var c=b.info.Kb,d=ZC(a.schedule);b=b.index.pg;c=Math.max(1,d/c);a.U=Math.round(1E3*Math.max(((c-1)*b+a.policy.L)/c,b-a.policy.Mb));a.ea()}}; ewa=function(a,b){var c=g.Ra()/1E3,d=c-a.startTimeSecs,e=c-a.G,f=e>=a.policy.lh,h=!1;if(f){var l=0;!isNaN(b)&&b>a.C&&(l=b-a.C,a.C=b);l/e=a.policy.Mb&&!a.u;if(!f&&!c&&cwa(a,b))return NaN;c&&(a.u=!0,a.ea());a:{d=h;c=g.Ra()/1E3-(a.L.Tf()||0)-a.J.l-a.policy.L;f=a.l.startTime;c=f+c;if(d){if(isNaN(b)){a.ea();UT(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Lb;d=a.policy.Ak&&!a.policy.Ib||!a.policy.zn&&0=a.policy.pn)return!1;if(!b.l)return!0;d=b.l;if(!Lz(d.i.l,a.policy))return!1;4===d.type&&d.i.xe()&&(b.l=g.ab(d.i.Rt(d)),d=b.l);if(!d.u&&!d.i.Bl(d))return!1;var e=a.i.Fe||a.i.L;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.U=e,c.U=e,!1}if(d.i.info.audio&&4===d.type)return!1;if(MT(b)&&!a.policy.Qa)return!0;if(d.u||GT(b)&>(b)+GT(c)>a.policy.Ya)return!1;e=!b.C&&!c.C; f=b===a.videoTrack&&a.L;if(!(c=!!(c.l&&!c.l.u&&c.l.Ba}return c?!1:(b=b.Rb)&&b.isLocked()? !1:!0}; nwa=function(a,b,c){if(fU(a,b,c)){if(b.J){if(a.i.isLive){var d=a.i.Qd&&a.i.L?b.i.Cl(a.i.Qd,!1):b.i.fm(Infinity);d.re=a.re}else d=b.i.Cl(0,!1);a.C?0===d.re&&(d.C=a.C.U):d.C=a.Ya}else if(d=b.l,d.i.xe()){var e=d.B-a.currentTime,f=!d.range||0===d.l&&0===d.Ab?0:d.range.length-(d.Ab+d.l),h=d.i;if(LT(b)&&b.i.xe()){var l=Math.min(15,.5*eU(a,b,!0));var m=MT(b)||e<=l||a.l.U;a.ea("ready to adapt: "+m+", upgrade pending: "+MT(b)+", health: "+e+", max health: "+l);l=m}else l=!1;l&&0===f&&(a.i.isManifestless?h= b.i:(h=d.startTime+mwa,d.l&&(h+=d.duration),QS(b,h),d=b.l,h=d.i));h.yg()?(f=a.l,c=JS(a.G,h.info.Kb,c.i.info.Kb,e,0h&&(c=d.i.Cp(d,c.range.length-e.l)))),d=c):(0>d.Ka&&(c=$z(d),c.pr=""+b.u.length,a.B.i&&(c.sk="1"),a.La("nosq",d.G+";"+g.zB(c))),d=h.ir(d));if(a.L)for(c=g.q(d.i),e=c.next();!e.done;e=c.next())e.value.type=6}else d.i.yg()? (c=JS(a.G,b.i.info.Kb,c.i.info.Kb,0),d=d.i.Cp(d,c)):d=d.i.ir(d);if(a.Y&&(c=a.u,e=d.i[0].Ka,c=0>e&&!isNaN(c.B)?c.B:e,e=a.u,h=(0>c||c===e.B)&&!isNaN(e.C)?e.C:d.i[0].C,e=a.Y.Pv(h,c,d.i[0].i.info.id),0>c&&Eua(a.u,0,0,!0),e)){h="decurl_itag"+d.i[0].i.info.kc()+"_sg"+c+"_st"+h.toFixed(3)+".";if(a.policy.Xm&&b.isRequestPending(c-1)){a.La("sdai","wt_daistate_on_sg"+(c-1));return}a.La("sdai",h);d.B=e}a.policy.ij&&-1!==d.i[0].Ka&&d.i[0].Kaf)a.policy.Xa&&(f=soa(e.timing),m=e.timing,a.La("rqs",g.zB({rn:e.requestNumber.toString(),rt:f.rt,pt:f.pt,stall:f.stall,elt:f.elbowTime,elb:f.elbowBytes,rst:""+e.state,strm:""+e.xhr.Oq(),d:m.C?m.C.join(""):""}))),e.va&&a.La("sbwe3","1",!0);if(!a.Ia()&&2<=e.state)if(f=a.timing,n=e.info.i[0].i,m=!f.l&&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.l=g.Fz(e.l),nq(),qq(4)): n&&(f.i=g.Fz(e.l)):e.Hp()&&m&&(nq(),qq(4)),3===e.state)KT(l,e),eA(e.info)&&WT(a,l,h,!0),a.Vg();else if(e.Yd()&&5===e.info.i[0].type)4===e.state&&(h=(e.info.i[0].i.info.video?a.videoTrack:a.audioTrack).u[0]||null)&&h instanceof RT&&h.B&&$va(h,!0),e.dispose();else{if(!e.isFailed()&&e.C&&2<=e.state&&3!==e.state)if(h=e.xhr.getResponseHeader("X-Response-Itag")){a.ea();h=Uua(a.l,h);l=e.info.range.length-h.DA();h.B=!0;e.info.i[0].i.B=!1;f=h.Yn(l);e.info=f;if(e.i){l=e.i;f=f.i;l.i=f;m=f[0].range;n=BA(l.Rd[0].i); BA(g.ab(l.Rd).i);for(var p=0;ph.B&&(h.B=NaN,h.C=NaN),h.i&&h.i.Ka=== l.i[0].Ka)if(m=h.i.Dd.event,"start"===m||"continue"===m){if(1===h.l||5===h.l)h.B=l.i[0].Ka,h.C=l.i[0].C,dS(h,"sdai","joinad"+h.l+"_sg"+h.B+"_st"+h.C.toFixed(3)),h.l=2,f.OA(h.i.Dd)}else h.l=5;else 1===h.l&&(h.l=5)}else if(a.policy.Aa&&e.Eq()&&!e.Yd()&&!XT(a,e)&&!e.isFailed())break a;e.isFailed()&&(h=e.info.i[0].i,l=e.lastError,wy(h.l.i)&&(f=g.tf(e.Oe()),a.La("dldbrerr",f||"none")),e.canRetry()?(f=(h.info.video&&1(0,g.O)()||(e=hA(e.info,!1))&&gU(a,e))}}}},d)}; qwa=function(a,b){b&&(a.ea(),a.W("videoformatchange",b));a.policy.zk&&a.l.Oa&&a.W("audioformatchange",Pua(a.l,"a"))}; XT=function(a,b){try{var c=b.info.i[0].i,d=c.info.video?a.videoTrack:a.audioTrack;if(a.i.isManifestless&&d){d.J&&(b.Ia(),b.Yd()||b.Eq(),d.J=!1);b.yA()&&a.Aa.xg(1,b.yA());var e=b.WD(),f=b.mG(),h=a.i,l;for(l in h.i){var m=h.i[l].index;m.Bj&&(e&&(m.lr=Math.max(m.lr,e)),f&&(m.i=Math.max(m.i||0,f)))}}var n;if(n=b.info.Eh()){var p=b.info;n=!!Wz(p.i[p.i.length-1])}if(n){for(var r=g.q(b.Ny()),t=r.next();!t.done;t=r.next())pT(d.B,t.value);a.W("metadata",c)}DT(d);return!!d.fg()}catch(u){return u instanceof Error&&(g.Ou(u),b=b.zr(),b.origin="hrhs",rT(a,!0,"fmt.unplayable",b)),!1}}; iU=function(a){var b=a.mediaSource.i,c=a.mediaSource.l;if(rwa(a)){if(a.policy.cj){if(!b.Xn()){var d=a.audioTrack.fg();d&&hU(a,b,d)}c.Xn()||(b=a.videoTrack.fg())&&hU(a,c,b)}a.ma||(a.ma=(0,g.O)())}else{if(a.ma){d=(0,g.O)()-a.ma;var e=HT(a.audioTrack,a.currentTime),f=HT(a.videoTrack,a.currentTime);a.ea();a.La("appendpause","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.ma=0}if(a.C){d=a.C;e=a.audioTrack;f=uB(a.mediaSource.l.Ne());if(d.B)d=ewa(d,f);else{if(f=e.fg()){var h= f.l;h&&h.C&&h.l&&(e=e.u.length?e.u[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.re&&(d.B=e,d.J=h,d.l=f.info,d.startTimeSecs=g.Ra()/1E3,d.G=d.startTimeSecs,d.C=d.l.startTime,d.ea())}d=NaN}d&&a.W("seekplayerrequired",d,!0)}d=!1;swa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.B||(e.B=g.Ra(),e.tick("vda"),Yw("vda","video_to_ad"),e.u&&(nq(),qq(4))));if(a.mediaSource&&!KB(a.mediaSource)&&(swa(a,a.audioTrack,b)&&(d=a.timing,d.u||(d.u=g.Ra(),d.tick("ada"),Yw("ada","video_to_ad"),d.B&&(nq(),qq(4))),d=!0),!a.Ia()&& a.mediaSource)){!a.policy.va&&FT(a.videoTrack)&&FT(a.audioTrack)&&GB(a.mediaSource)&&!a.mediaSource.Yf()&&(e=BT(a.audioTrack).i,e===a.i.i[e.info.id]&&(a.ea(),e=a.mediaSource,GB(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.me.webkitSourceEndOfStream(e.me.EOS_NO_ERROR)),e=a.schedule,aD($C(e)),e.C=VC()));e=a.policy.qn;f=a.policy.Ap;d||!(0c*(10-e)/LS(b)}else b=!0;(b=!b)||(b=a.videoTrack,b=0a.currentTime||360(e?e.Ka:-1);e=!!f}if(e)return!1;e=d.info;f=BT(b);!f||f.Jd||Yz(f,e)||c.abort();!c.Cs()||DB()?c.iD(e.i.info.containerType,e.i.info.mimeType):e.i.info.containerType!==c.Cs()&&a.La("ctu","ct."+DB()+";prev_c."+c.Cs()+";curr_c."+e.i.info.containerType);f=e.i.G;a.policy.vj&&f&&(e=0+f.duration,f=-f.i,0===c.Nv()&&e===c.xA()||c.xC(0,e),f!== c.Kc()&&(c.Mq(f),tT&&sva(a.audioTrack.B,c.JA())));if(a.i.u&&0===d.info.Ab&&(g.KA(d.info.i.info)||a.policy.Kp)){if(null==c.Xn()){e=BT(b);if(!(f=!e||e.i!==d.info.i)){b:if(e=e.L,f=d.info.L,e.length!==f.length)e=!1;else{for(var h=0;he)){a:if(a.rb.push(d.info),a.policy.cd&&(!d.info.Ab||d.info.Jd||10>d.info.C)&&a.La("sba",c.Db({as:Uz(d.info)})),e=d.u?d.info.i.i:null,f=BA(d.i),d.u&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=twa(a,c,f,d.info,e),"s"=== e)a.Qa=0,e=!0;else{a.policy.nj||(c.abort(),PS(b));if("i"===e||"x"===e)uwa(a,"checked",e,d.info);else{if("q"===e&&(d.info.isVideo()?(e=a.policy,e.G=Math.floor(.8*e.G),e.Y=Math.floor(.8*e.Y),e.C=Math.floor(.8*e.C)):(e=a.policy,e.J=Math.floor(.8*e.J),e.bb=Math.floor(.8*e.bb),e.C=Math.floor(.8*e.C)),!c.Yf()&&!a.mediaSource.isView&&c.yu(Math.min(a.currentTime,d.info.startTime),!0,5))){e=!1;break a}a.W("reattachrequired")}e=!1}e=!e}if(e)return!1;b.Th(d);a.ea("Appended "+Uz(d.info)+", buffered: "+qB(c.Ne())); return!0}; uwa=function(a,b,c,d){var e="fmt.unplayable",f=!0;"x"===c||"m"===c?(e="fmt.unparseable",d.i.C=e,d.i.info.video&&!bT(a.l)&&aT(a.l,d.i)):"i"===c&&(15>a.Qa?(a.Qa++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=$z(d);d.mrs=JB(a.mediaSource);d.origin=b;d.reason=c;rT(a,f,e,d)}; qva=function(a,b,c){var d=a.i,e=!1,f=-1,h;for(h in d.i){var l=fB(d.i[h].info.mimeType)||d.i[h].info.isVideo();if(c===l)if(l=d.i[h].index,!qA(l,b.Ka))l.Dy(b),e=!0;else if(d.Va){e=b;var m=l.wi(e.Ka);m&&m.startTime!==e.startTime?(l.segments=[],l.Dy(e),e=!0):e=!1;e&&(f=b.Ka)}}0<=f&&d.W("clienttemp","restMflIndex",(c?"v":"a")+"."+f,!1);Cua(a.B,b,c,e);c&&a.u.OB(b)}; hU=function(a,b,c){c.info.i.xe();var d=c.info.i.i;if(null==d||b.Xn()===d)return!1;var e=d,f=b.Qv();if(a.policy.Jf&&f&&b.isView()&&g.KA(c.info.i.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=Kga(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.La("fenc","1")}f=null;(h=c.info.i.Yn(0))&&(f=h.i[0]);a.policy.bj&&b.abort();d=twa(a,b,e,f,d);if("s"!==d)return uwa(a,"sepInit",d,c.info),!0;a.ea();return b.Yf()}; twa=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(11===f.code)return"i";if(12===f.code)return"x";if(22!==f.code&&0!==f.message.indexOf("Not enough storage"))return g.Ou(f),"u";c=qB(b.Ne()).replace(/,/g,"_");d=g.tf(f.message);a.La("quex","br."+c+";t."+(a.mediaSource?b===a.mediaSource.l?"v":"a":"u")+";e."+d);return"q"}return KB(a.mediaSource)?"m":"s"}; gwa=function(a,b){b.subscribe("seekplayerrequired",function(c,d){a.L||a.W("seekplayerrequired",c,d)}); b.subscribe("ctmp",function(c,d){a.La(c,d,!1)}); b.subscribe("error",function(c,d,e){rT(a,c,d,e)}); b.subscribe("setcurrenttime",function(c){a.currentTime=c})}; lT=function(a,b){a.W("localmediachange",b)}; eU=function(a,b,c){if(a.isSuspended)return 1;var d=b.i.info.audio?a.policy.J:a.policy.G;!a.policy.Qa&&cT(a.l)&&(d=Math.max(d,b.i.info.audio?a.policy.bb:a.policy.Y));c&&(d+=a.policy.Ya);var e=cT(a.l)?b.l?b.l.i.info.Kb:b.i.info.Kb:b.Kb;d/=e;0c&&a.La("bwcapped","1",!0),c=Math.max(c,15),d=Math.min(d,c));return d}; lwa=function(a){var b=g.Je(a.Ha.Zl(),function(d){return"ad"===d.namespace}); b=g.q(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}; vwa=function(a,b){(new NT(b,"cms",null,function(c){for(var d=[],e=0;e=b&&fwa(a,d.startTime,!1)}); return c&&c.startTime=b.size||(b.forEach(function(c,d){var e=AC(a.l)?d:c;d=new Uint8Array(AC(a.l)?c:d);AC(a.l)&&Vwa(d);c=g.sf(d,4);Vwa(d);d=g.sf(d,4);a.i[c]?a.i[c].status=e:a.i[d]?a.i[d].status=e:a.i[c]={type:"",status:e}}),a.ea("Key statuses changed: "+Wwa(a,",")),nU(a,"onkeystatuschange"),a.status="kc",a.W("keystatuseschange",a))}; pU=function(a){var b;if(b=a.Y&&null!=a.B)a=a.B,b=!(!a.i||!a.i.keyStatuses);return b}; Uwa=function(a,b){var c,d;a.status="km";Tw("drm_net_s",void 0,a.videoData.Ya);if(a.videoData.useInnertubeDrmService()){var e=new g.Xt(a.u.df),f={context:g.lr(e.config_||g.mr())};f.drmSystem=Xwa[a.l.flavor];f.videoId=a.videoData.videoId;f.cpn=a.videoData.clientPlaybackNonce;f.sessionId=a.sessionId;f.licenseRequest=g.sf(b.message);f.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(f.isKeyRotated=!0,f.cryptoPeriodIndex=a.cryptoPeriodIndex);var h=!(null===(d=null===(c=a.videoData.l)||void 0=== c?void 0:c.fb())||void 0===d||!d.isHdr());a.videoData.Z("html5_request_only_hdr_or_sdr_keys")&&(f.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR");if(!f.context||!f.context.client){a.ea();a.error("drm.net",!0,"t.r;ic.0");return}if(h=a.u.deviceParams)f.context.client.deviceMake=h.cbrand,f.context.client.deviceModel=h.cmodel,f.context.client.browserName=h.cbr,f.context.client.browserVersion=h.cbrver,f.context.client.osName=h.cos,f.context.client.osVersion=h.cosver;f.context.user= f.context.user||{};f.context.request=f.context.request||{};a.videoData.va&&(f.context.user.credentialTransferTokens=[{token:a.videoData.va,scope:"VIDEO"}]);f.context.request.mdxEnvironment=a.videoData.mdxEnvironment||f.context.request.mdxEnvironment;a.videoData.bb&&(f.context.user.kidsParent={oauthToken:a.videoData.bb});if(g.EC(a.l)){h=a.fairplayKeyId;for(var l=[],m=0;md;d++)c[2*d]=''.charCodeAt(d);a=a.u.createSession("video/mp4",b,c);return new rU(null,null,null,null,a)}; uU=function(a,b){var c=a.G[b.sessionId];!c&&a.B&&(c=a.B,a.B=null,c.sessionId=b.sessionId,a.G[b.sessionId]=c);return c}; fxa=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 lU(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new wU(g.R(a,"disable_license_delay"),b,this);break a;default:c= null}if(this.G=c)g.G(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.dF,this);this.ea("Created, key system "+this.i.keySystem+", final EME "+GC(this.u.experiments));zU(this,"cks"+this.i.Pe());c=this.i;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.C&&(this.Va=new vU(this.videoData.Sb,this.u.experiments),g.G(this,this.Va))}; jxa=function(a){var b=tU(a.C);b?b.then(Yo(function(){kxa(a)}),Yo(function(c){if(!a.Ia()){a.ea(); g.Xo(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.W("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.ea(),zU(a,"mdkrdy"),a.Y=!0); a.X&&(b=tU(a.X))}; lxa=function(a,b,c){a.Qa=!0;c=new hT(b,c);a.u.Z("html5_eme_loader_sync")&&(a.J.get(b)||a.J.set(b,c));a.u.Z("html5_process_all_encrypted_events")?BU(a,c):a.u.Z("html5_eme_loader_sync")?BU(a,c):0!==a.B.length&&a.videoData.u&&a.videoData.u.i?CU(a):BU(a,c)}; nxa=function(a,b){if(zC(a.i)&&!a.xa&&(b=$ua(b),0!==b.length)){var c=new hT(b);a.xa=!0;navigator.requestMediaKeySystemAccess("com.microsoft.playready",[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}]).then(function(d){d.createMediaKeys().then(function(e){mxa(a,e,c)})},null)}}; mxa=function(a,b,c){var d=b.createSession(),e=a.l.values[0],f=Owa(e);d.addEventListener("message",function(h){h=new Uint8Array(h.message);bxa(h,d,a.i.u,f,"playready")}); d.addEventListener("keystatuseschange",function(){"usable"in d.keyStatuses&&(a.Aa=!0,oxa(a,Zwa(e,a.Aa)))}); d.generateRequest("cenc",c.initData)}; BU=function(a,b){if(!a.Ia()){zU(a,"onInitData");if(g.R(a.u.experiments,"html5_eme_loader_sync")&&a.videoData.u&&a.videoData.u.i){var c=a.U.get(b.initData);b=a.J.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.J.remove(c);a.U.remove(c)}a.ea();zU(a,"initd."+b.initData.length+";ct."+b.contentType);if("widevine"===a.i.flavor)if(a.Fa&&!a.videoData.isLivePlayback)a.u.Z("html5_process_all_encrypted_events")&&CU(a);else{if(!(g.R(a.u.experiments,"vp9_drm_live")&&a.videoData.isLivePlayback&&b.ye)){a.Fa= !0;c=b.cryptoPeriodIndex;var d=b.i;dva(b);b.ye||(d&&b.i!==d?a.W("ctmp","cpsmm","emsg."+d+";pssh."+b.i):c&&b.cryptoPeriodIndex!==c&&a.W("ctmp","cpimm","emsg."+c+";pssh."+b.cryptoPeriodIndex));a.W("widevine_set_need_key_info",b)}}else a.dF(b)}}; kxa=function(a){if(!a.Ia())if(g.R(a.u.experiments,"html5_drm_set_server_cert")&&!g.LD(a.u)){var b=a.C.setServerCertificate();b?b.then(Yo(function(c){g.TF(a.videoData)&&a.W("ctmp","ssc",c)}),Yo(function(c){a.W("ctmp","ssce","n."+c.name+";m."+c.message)})).then(Yo(function(){DU(a)})):DU(a)}else DU(a)}; DU=function(a){a.Ia()||(a.Y=!0,a.ea(),zU(a,"onmdkrdy"),CU(a))}; CU=function(a){if(a.Qa&&a.Y&&!a.va){for(;a.B.length;){var b=a.B[0];if(a.l.get(b.initData))if("fairplay"===a.i.flavor)a.l.remove(b.initData);else{a.B.shift();continue}dva(b);break}a.B.length&&a.createSession(a.B[0])}}; oxa=function(a,b){var c=hx("auto",b,!1,"l");if(a.videoData.bj){if(fx(a.L,c))return}else if(lx(a.L,b))return;a.L=c;a.W("qualitychange");a.ea();zU(a,"updtlq"+b)}; zU=function(a,b){var c=void 0===c?!1:c;a.Ia()||(a.ea(),(g.TF(a.videoData)||c)&&a.W("ctmp","drmlog",b))}; pxa=function(a){var b;if(b=g.Bq()){var c;b=!(null===(c=a.C.l)||void 0===c||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.B.TextDecoder?(new TextDecoder).decode(b):g.Xe(b),a.W("ctmp","drm",b))}; EU=function(a,b,c){g.P.call(this);var d=this;this.videoData=a;this.i=b;this.playerVisibility=c;this.L=0;this.u=this.l=null;this.ma=this.J=this.C=this.G=!1;this.X=this.Y=0;this.U=g.S(this.i.experiments,"html5_delayed_retry_count");this.B=new g.J(function(){return d.W("newelementrequired",!1)},g.S(this.i.experiments,"html5_delayed_retry_delay_ms")); g.G(this,this.B)}; HU=function(a,b,c){var d=!1,e=a.L+3E4<(0,g.O)()||a.B.isActive(),f;if(f=!e)f=a.playerVisibility,f=!!(f.Ee()||f.isInline()||f.isBackground()||f.oq()||f.mq());f&&(c.nonfg="paused",e=!0,a.W("pausevideo"));!e&&0=a.i.Qa)return!1;b.exiled=""+a.i.Qa;FU(a,"qoe.start15s",b);a.W("playbackstalledatstart");return!0}; sxa=function(a){if("GAME_CONSOLE"!==a.i.deviceParams.cplatform)try{window.close()}catch(b){}}; rxa=function(a){return a.C||"yt"!==a.i.va?!1:a.videoData.Xa?25>a.videoData.eb:!a.videoData.eb}; GU=function(a,b){b=void 0===b?!1:b;a.i.Z("html5_signature_reload_refactor")?a.G||(a.G=!0,a.W("releasevideo"),b||a.W("signatureexpiredreloadrequired")):a.C||a.W("signatureexpiredreloadrequired")}; txa=function(a,b){if(a.u&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.u.gi();b.details.merr=c?c.toString():"0";b.details.msg=a.u.Oe()}}; uxa=function(a){return"net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&!!a.details.fmt_unav}; wxa=function(a,b,c){if("403"===b.details.rc){var d=b.errorCode;d="net.badstatus"===d||"manifest.net.retryexhausted"===d}else d=!1;if(!d)return!1;b.details.sts="18778";if(rxa(a))return c&&!a.i.Z("html5_signature_reload_refactor")?(a.J=!0,a.W("releaseloader")):(b.i&&(b.details.e=b.errorCode,b.errorCode="qoe.restart",b.i=!1),FU(a,b.errorCode,b.details),GU(a,c)),!0;6048E5<(0,g.O)()-a.i.Ya&&vxa(a,"signature");return!1}; vxa=function(a,b){try{window.location.reload();FU(a,"qoe.restart",{detail:"pr."+b});return}catch(c){}a.i.Z("tvhtml5_retire_old_players")&&g.LD(a.i)&&sxa(a)}; xxa=function(a,b){a.i.B.B=!1;FU(a,"qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});a.W("formatupdaterequested")}; IU=function(a,b,c,d){a.W("clienttemp",b,c,(void 0===d?{HC:!1}:d).HC)}; FU=function(a,b,c){a.W("qoeerror",b,c)}; yxa=function(a,b,c,d){this.videoData=a;this.i=b;this.reason=c;this.l=d}; JU=function(a,b,c){this.i=a;this.X=b;this.l=c;this.Y=this.J=this.L=this.B=this.u=this.G=this.U=this.C=0;this.playbackRate=1}; Axa=function(a,b,c){!g.R(a.i.experiments,"html5_tv_ignore_capable_constraint")&&g.LD(a.i)&&(c=c.compose(zxa(a,b)));return c}; Bxa=function(a){var b;a.Z("html5_exponential_memory_for_sticky")?b=.5>gD(a.i.Pb,"sticky-lifetime")?"auto":jx[KU()]:b=jx[KU()];return b}; Cxa=function(a,b){return 1(0,g.O)()-a.G?0:f||0h?a.B+1:0;if(!e||g.LD(a.i))return!1;a.u=d>e?a.u+1:0;if(3!==a.u)return!1;Fxa(a,b.videoData.l);a.l.La("dfd",Hxa());return!0}; Jxa=function(a,b){return 0>=g.S(a.i.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.fb()&&32=f){d=f;break}}return new ex(0,d,!1,"b")}; Mxa=function(a,b,c){if(a.Z("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.i.videoInfos,b=1;ba.u)){var b=g.OR(a.i),c=b-a.C;a.C=b;8===a.playerState.state?a.playTimeSecs+=c:g.ZI(a.playerState)&&!g.T(a.playerState,16)&&(a.rebufferTimeSecs+=c)}}; Qxa=function(a){switch(a.i.yk){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}}; Rxa=function(a){return(!a.Z("html5_health_to_gel")||a.i.Ya+36E5<(0,g.O)())&&(a.Z("html5_health_to_gel_canary_killswitch")||a.i.Ya+36E5<(0,g.O)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===Qxa(a))?a.Z("html5_health_to_qoe"):!0}; NU=function(a,b,c,d,e){var f={format:"RAW"},h={};ip(a)&&jp()&&(c&&(h["X-Goog-Visitor-Id"]=c),b&&(h["X-Goog-PageId"]=b),d&&(h.Authorization="Bearer "+d),c||d||b)&&(f.withCredentials=!0);0a.G.HH+100&&a.G){var d=a.G,e=d.isAd;a.Ha=1E3*b-d.KS-(1E3*c-d.HH)-d.BS;a.La("gllat","l."+a.Ha.toFixed()+";prev_ad."+ +e);delete a.G}}; SU=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.OR(a.i);var c=a.i.l.Xv();if(!isNaN(a.X)&&!isNaN(c.l)){var d=c.l-a.X;0a.i)&&2=e&&(g.Ou(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},g.R(a.i.experiments,"html5_validate_yt_now")),c=b(); a.u=function(){return Math.round(b()-c)/1E3}; a.l.RB()}return a.u}; Txa=function(a){if(navigator.connection&&navigator.connection.type)return nya[navigator.connection.type]||nya.other;if(g.LD(a.i)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0}; WU=function(a){var b=new lya;b.B=a.Qe().cc||"-";b.playbackRate=a.l.getPlaybackRate();var c=a.l.getVisibilityState();0!==c&&(b.visibilityState=c);a.i.vb&&(b.l=1);c=a.l.getAudioTrack();c.Ic&&c.Ic.id&&"und"!==c.Ic.id&&(b.u=c.Ic.id);b.connectionType=Txa(a);b.volume=a.Qe().volume;b.muted=a.Qe().muted;b.clipId=a.Qe().clipid||"-";b.i=a.videoData.xE||"-";return b}; g.hV=function(a){g.F.call(this);var b=this;this.l=a;this.u=this.qoe=this.i=null;this.Ef=void 0;this.B=new Map;this.l.videoData.isValid()&&!this.l.videoData.cg&&(this.i=new bV(this.l),g.G(this,this.i),this.qoe=new g.QU(this.l),g.G(this,this.qoe),this.l.videoData.enableServerStitchedDai&&(this.Ef=this.l.videoData.clientPlaybackNonce)&&this.B.set(this.Ef,this.i));Rxa(this.l)&&(this.u=new MU(this.l,function(c){b.La("h5h",c)}),g.G(this,this.u))}; oya=function(a){var b;a.l.videoData.enableServerStitchedDai&&a.Ef?null===(b=a.B.get(a.Ef))||void 0===b?void 0:XU(b.l):a.i&&XU(a.i.l)}; pya=function(a,b,c,d){a.qoe&&(a=a.qoe,g.PU(a,g.OR(a.i),"ad_playback",[b,c,d]))}; qya=function(a,b){a.i&&kya(a.i,b)}; rya=function(a){if(!a.i)return null;var b=cV(a.i,"atr");return function(c){a.i&&kya(a.i,c,b)}}; sya=function(a,b,c,d){c.adFormat=c.Tc;var e=b.l;b=new bV(new gV(c,b.i,{getDuration:function(){return c.lengthSeconds}, getCurrentTime:function(){return e.getCurrentTime()}, Ok:function(){return e.Ok()}, Xv:function(){return e.Xv()}, getPlayerSize:function(){return e.getPlayerSize()}, getAudioTrack:function(){return c.getAudioTrack()}, getPlaybackRate:function(){return e.getPlaybackRate()}, Ms:function(){return e.Ms()}, getVisibilityState:function(){return e.getVisibilityState()}, RB:function(){e.RB()}, zt:function(){e.zt()}},b.Qe)); b.C=d;g.G(a,b);return b}; tya=function(){this.Hn=0;this.C=this.B=this.l=this.u=NaN;this.i="";this.bandwidthEstimate=NaN}; uya=function(){this.l=g.Vv;this.i=[]}; wya=function(a,b,c){var d=[];for(b=vya(a,b);bc)break}return d}; xya=function(a,b){var c=[];a=g.q(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}; yya=function(a){return a.i.slice(vya(a,0x7ffffffffffff),a.i.length)}; vya=function(a,b){a=wb(a.i,function(c){return b-c.start||1}); return 0>a?-(a+1):a}; zya=function(a,b){var c=NaN;a=g.q(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.B&&b(d||!a.u?1500:400);a.mediaTime=b;a.l=c;return!1}; Eya=function(a,b){this.videoData=a;this.i=b}; Fya=function(a,b,c){return Zia(b,c).then(function(){return Gp(new Eya(b,b.u))},function(d){d instanceof Error&&Zo(d); d=b.isLivePlayback&&!g.OC(a.B,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.Oa,drm:""+ +RF(b),f18:""+ +(0<=b.pj.indexOf("itag=18")),c18:""+ +jB('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.i&&(RF(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=""+ +kB('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +kB('audio/mp4; codecs="mp4a.40.2"'), e.cVP9=""+ +kB('video/webm; codecs="vp9"'));if(b.G){e.drmsys=b.G.keySystem;var f=0;b.G.i&&(f=Object.keys(b.G.i).length);e.drmst=""+f}return new g.yB(d,!0,e)})}; Gya=function(a){this.C=a;this.u=this.l=0;this.B=new rS(50)}; mV=function(a,b,c){g.P.call(this);this.videoData=a;this.experiments=b;this.L=c;this.l=[];this.B=0;this.u=!0;this.G=!1;this.J=0;c=new Hya;"ULTRALOW"===a.latencyClass&&(c.B=!1);a.zb?c.l=3:g.eG(a)&&(c.l=2);g.R(b,"html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.L=!0);var d=Ria(a);c.C=2===d||-1===d;c.C&&(c.X++,21530001===YF(a)&&(c.G=g.S(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(yq("trident/")||yq("edge/"))d=g.S(b,"html5_platform_minimum_readahead_seconds")||3,c.u=Math.max(c.u, d);g.S(b,"html5_minimum_readahead_seconds")&&(c.u=g.S(b,"html5_minimum_readahead_seconds"));g.S(b,"html5_maximum_readahead_seconds")&&(c.U=g.S(b,"html5_maximum_readahead_seconds"));g.R(b,"html5_force_adaptive_readahead")&&(c.B=!0);g.S(b,"html5_allowable_liveness_drift_chunks")&&(c.i=g.S(b,"html5_allowable_liveness_drift_chunks"));g.S(b,"html5_readahead_ratelimit")&&(c.Y=g.S(b,"html5_readahead_ratelimit"));switch(YF(a)){case 21530001:c.i=(c.i+1)/5,"LOW"===a.latencyClass&&(c.i*=2),c.J=g.R(b,"html5_live_smoothly_extend_max_seekable_time")}this.policy= c;this.C=1!==this.policy.l;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.zb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(YF(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.C&&b++;this.i=lV(this,b);this.ea()}; Iya=function(a,b){var c=a.i;(void 0===b?0:b)&&a.policy.J&&3===Ria(a.videoData)&&--c;return nV(a)*c}; pV=function(a,b){var c=oV(a),d=a.policy.i;a.G||(d=Math.max(d-1,0));a=d*nV(a);return b>=c-a}; oV=function(a){return Math.max(a.L()-Iya(a,!0),a.videoData.getMinSeekableTime())}; Jya=function(a,b,c){b=pV(a,b);c||b?b&&(a.u=!0):a.u=!1;a.C=2===a.policy.l||3===a.policy.l&&a.u}; Kya=function(a,b){b=pV(a,b);a.G!==b&&a.W("livestatusshift",b);a.G=b}; nV=function(a){return a.videoData.i?jC(a.videoData.i)||5:5}; lV=function(a,b){b=Math.max(Math.max(a.policy.X,Math.ceil(a.policy.u/nV(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.U/nV(a))),b)}; Hya=function(){this.X=1;this.u=0;this.U=Infinity;this.Y=0;this.B=!0;this.i=2;this.l=1;this.C=!1;this.G=NaN;this.J=this.L=!1}; sV=function(a,b,c,d,e){g.F.call(this);this.u=a;this.videoData=b;this.W=c;this.visibility=d;this.L=e;this.l=this.B=null;this.J=this.i=0;this.G={};this.playerState=new g.RI;this.C=new g.J(this.U,1E3,this);g.G(this,this.C);this.Fa=new qV({delayMs:g.S(this.u.experiments,"html5_seek_timeout_delay_ms")});this.va=new qV({delayMs:g.S(this.u.experiments,"html5_long_rebuffer_threshold_ms")});this.Ea=rV(this,"html5_seek_set_cmt");this.xa=rV(this,"html5_seek_jiggle_cmt");this.Aa=rV(this,"html5_seek_new_elem"); this.Oa=rV(this,"html5_unreported_seek_reseek");this.X=rV(this,"html5_long_rebuffer_jiggle_cmt");this.ma=rV(this,"html5_reload_element_long_rebuffer");this.Y=rV(this,"html5_ads_preroll_lock_timeout");this.Ha=new qV({delayMs:g.S(this.u.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Tr:!g.R(this.u.experiments,"html5_report_slow_ads_as_error")})}; rV=function(a,b){var c=g.S(a.u.experiments,b+"_delay_ms");a=g.R(a.u.experiments,b+"_cfl");return new qV({delayMs:c,Tr:a})}; tV=function(a,b,c,d,e,f,h){Lya(b,c)?(a.wd(e,b,h),b.Tr||f()):(b.sx&&b.triggerTimestamp&&!b.u?(c=(0,g.O)(),d?b.i||(b.i=c):b.i=0,f=!d&&c-b.triggerTimestamp>b.sx,c=b.i&&c-b.i>b.nC||f?b.u=!0:!1):c=!1,c&&(c=a.Db(b),c.wn=h,c.we=e,c.wsuc=""+ +d,h=g.zB(c),a.W("ctmp","workaroundReport",h),d&&(b.reset(),a.G[e]=!1)))}; qV=function(a){a=void 0===a?{}:a;var b=void 0===a.nC?1E3:a.nC,c=void 0===a.sx?3E4:a.sx,d=void 0===a.Tr?!1:a.Tr;this.B=Math.ceil((void 0===a.delayMs?0:a.delayMs)/1E3);this.nC=b;this.sx=c;this.Tr=d;this.i=this.triggerTimestamp=this.l=this.startTimestamp=0;this.u=!1}; Lya=function(a,b){if(!a.B||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.O)();if(!a.startTimestamp)a.startTimestamp=b,a.l=0;else if(a.l>=a.B)return a.triggerTimestamp=b,!0;a.l+=1;return!1}; vV=function(a,b,c,d){g.P.call(this);var e=this;this.videoData=a;this.Y=b;this.visibility=c;this.Ya=d;this.policy=new Mya(this.Y);this.L=new sV(this.Y,this.videoData,(0,g.C)(this.W,this),this.visibility,this.Ya);a={};this.Fa=(a.seekplayerrequired=this.OS,a.videoformatchange=this.pL,a);this.playbackData=null;this.Xa=new gu;this.U=this.u=this.B=this.i=null;this.l=NaN;this.C=0;this.G=null;this.Ea=NaN;this.J=this.X=null;this.va=this.ma=!1;this.Aa=new g.J(function(){Nya(e,!1)},2E3); this.eb=new g.J(function(){uV(e)}); this.Va=new g.J(function(){e.ea();e.ma=!0;Oya(e)}); this.Qa=this.timestampOffset=0;this.Ha=!0;this.Oa=0;this.bb=NaN;this.xa=new g.J(function(){var f=e.Y.Pb;f.i+=1E4/36E5;f.i-f.u>1/6&&(dD(f),f.u=f.i);e.xa.start()},1E4); this.Z("html5_unrewrite_timestamps")?this.Fa.timestamp=this.Mq:this.Fa.timestamp=this.qL;g.G(this,this.Xa);g.G(this,this.Aa);g.G(this,this.Va);g.G(this,this.eb);g.G(this,this.xa)}; Pya=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.U=new Gya(function(){a:{if(a.playbackData&&a.playbackData.i.i){if(XF(a.videoData)&&a.B){var c=a.B.Aa.Tf()||0;break a}if(a.videoData.i){c=a.videoData.i.ma;break a}}c=0}return c}),a.u=new mV(a.videoData,a.Y.experiments,function(){return wV(a,!0)})); a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9=e.l&&cd.B||g.Ra()-d.J=wV(a)-.1)a.l=wV(a),a.G.resolve(wV(a)),a.W("ended");else try{var c=a.l-a.timestampOffset;a.ea();a.i.seekTo(c);a.L.i=c;a.Ea=c;a.C=a.l}catch(d){a.ea()}}}; Vya=function(a){if(!a.i||0===a.i.Ug()||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=DA(a,b++);else if(2===c)c=DA(a,b++),a=DA(a,b++),a=(c&63)+64*a;else if(3===c){c=DA(a,b++);var d=DA(a,b++);a=DA(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=DA(a,b++);d=DA(a,b++);var e=DA(a,b++);a=DA(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),yA(a,c,4)?a=zA(a).getUint32(c-a.u,!0):(d=DA(a,c+2)+256*DA(a,c+3),a=DA(a,c)+256*(DA(a,c+1)+ 256*d)),b+=5;return[a,b]}; vza=function(a){this.l=a;this.i=new uA}; wza=function(a){var b=g.q(uza(a.i,0));var c=b.next().value;var d=b.next().value;d=g.q(uza(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).jp.split(b),b=d.gw,d=d.jp,a.l(c,b),a.i=d,wza(a))}; yza=function(a){return[a].concat(g.ma(xza[a]||[]))}; Aza=function(a){return g.D(this,function c(){var d,e,f,h,l,m,n,p,r,t;return g.z(c,function(u){d=XB(zza,null,0,!1,!1,void 0);e=a.T();f=e.B;h=function(){return!0}; l=SF(a);m=qx(l,f,d,h);n=function(x){return m[x]||[]}; p=jy(l).map(n).flat();r=ny(l).map(n).flat();t=function(x){return x.id}; return u.return({video:r.map(t),audio:p.map(t)})})})}; Bza=function(a,b,c,d,e){var f=this;this.videoData=a;this.rj=b;this.playerRequest=c;this.L=d;this.visibilityState=e;this.xhr=null;this.l=new FR;this.C=!1;this.u=new g.J(this.dO,1E4,this);this.G=!1;this.i=a.T();this.B=this.i.hf;this.FI=new GV(this.B.i);this.Tk=g.TF(this.videoData);this.U=new vza(function(h,l){f.J.feed(h,l)}); g.R(this.i.experiments,"html5_onesie_media_bytes")&&bx()&&(this.jn=new $ya(this));this.J=new IV(this)}; pza=function(a,b){var c;null===(c=a.jn)||void 0===c?void 0:(a=c.Sd[b],a.uA.stop(),a.Yd=!0,a.Rc&&a.Rc(),c.ea())}; Eza=function(a){return g.D(a,function c(){var d=this,e,f,h,l;return g.z(c,function(m){if(1==m.i){if(!d.jn)return m.return();e=ZC(d.i.schedule);return g.w(m,Cza(d.videoData),2)}f=m.l;h=f.video;l=f.audio;h=Dza(h,e,d.videoData.isAd());return h.length?m.return({video:h,audio:l}):(d.La("ombspf","limit."+e),m.return())})})}; aza=function(a){var b;null===(b=a.xhr)||void 0===b?void 0:b.abort()}; JV=function(a,b){var c;a.l.reject(b);a.u.stop();a.rj.tick("ore");null===(c=a.xhr)||void 0===c?void 0:c.abort()}; Fza=function(a){var b=a.xhr;102400b||c.push({itag:d,byterate:e})}return c.sort(function(f,h){return Hza.indexOf($A[f.itag])-Hza.indexOf($A[h.itag])||h.byterate-f.byterate}).map(function(f){return f.itag})}; Nza=function(a,b,c,d,e,f){function h(m){return Iza(l,a)?Jza(a,e,f,c,d).then(function(){RV(a,d)},function(n){RV(a,d,!0); throw n;}):Kza(a,b,c,m)} a.Ia();a.X=!0;var l=a.T();return g.R(l.experiments,"html5_onesie")&&"yt"===l.va?Lza(a).then(function(){return Mza(a,d,e,f)}).then(function(){RV(a,d)},function(m){m=AB(m); if(m.i)return RV(a,d,!0),Promise.reject(m);c(m);return h("onesie")}):h("gvi")}; Iza=function(a,b){return(a.cg?0:a.Z("web_player_gvi_wexit")||(g.LD(a)?"TVHTML5"===a.deviceParams.c?VD(a)?a.Z("web_player_gvi_wexit_living_room_pangea"):a.Z("web_player_gvi_wexit_living_room_bedrock"):"TVHTML5_KIDS"===a.deviceParams.c?a.Z("web_player_gvi_wexit_living_room_kids"):"TVHTML5_SIMPLY"===a.deviceParams.c||oD(a)?a.Z("web_player_gvi_wexit_living_room_simply"):ZD(a)||YD(a)?a.Z("web_player_gvi_wexit_living_room_unplugged"):a.Z("web_player_gvi_wexit_living_room_other"):1))||qG(b)?"yt"!==a.va? 38===b.ma&&"books"===a.playerStyle||30===b.ma&&"docs"===a.playerStyle||33===b.ma&&"google-live"===a.playerStyle?!1:g.R(a.experiments,"web_player_gvi_wexit_all_player_styles"):"adunit"!==mG(b)||g.R(a.experiments,"web_player_gvi_wexit_adunit")?!0:!1:!1}; Lza=function(a){a=a.T().hf;if(!a||!a.i)return Promise.reject(new g.yB("onesie.unavailable.hotconfig",!1,{key:"0"}));a={};window.Uint8Array||(a.uint8="0");return 0Math.random())try{g.Pu(new g.xs("b/152131571",btoa(b)))}catch(A){}return y.return(Promise.reject(new g.yB(x,!0,{backend:"gvi"})))}})})}; Rza=function(a,b){return g.D(this,function d(){var e,f,h,l,m,n,p,r,t,u,x,y,A;return g.z(d,function(E){if(1==E.i)return a.fetchType="gvi",e=a.T(),(l=wpa(a))?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=hp(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.wC(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n),0< Object.keys(m).length&&(f.headers=m),p=(0,g.O)(),r=function(I){if(!a.Ia()){I=I?I.status:-1;var H=400===I||429===I,U=((0,g.O)()-p).toFixed();U={backend:"gvi",rc:""+I,rt:U};var N="manifest.net.connect";429===I?N="auth":200n.l&&3!==n.i.l.getVisibilityState()&& Oxa(n)}m.qoe&&(m=m.qoe,m.Aa&&0>m.u&&m.i.i.Sb&&Xxa(m));g.S(l.u.experiments,"html5_background_quality_cap")&&l.l&&TV(l);l.u.wj&&!l.videoData.backgroundable&&l.i&&!l.rf()&&(l.isBackground()&&l.i.Lu()?(l.La("bgmobile","suspend"),l.ll(!0)):l.isBackground()||UV(l)&&l.La("bgmobile","resume"))}; this.ea();this.X=new iV(function(){return l.getCurrentTime()},function(){return l.getPlaybackRate()},function(){return l.getPlayerState()},function(m,n){m!==g.Wv("endcr")||g.T(l.playerState,32)||PR(l); e(m,n,l.playerType)}); g.G(this,this.X);Uza(this,function(){return{}}); Vza(this);Hta(this.Ae);this.visibility.subscribe("visibilitystatechange",this.Ae);Wza(this);!this.Z("html5_log_coat_killswitch")&&this.Z("html5_high_res_logging")&&(a=Cya())&&this.La("cblt",a)}; Uza=function(a,b){!a.C||a.C.Ia();a.C=new g.hV(new gV(a.videoData,a.u,a,b))}; Vza=function(a){!a.G||a.G.Ia();a.G=new EU(a.videoData,a.u,a.visibility);a.G.subscribe("newelementrequired",function(b){return WV(a,b)}); a.G.subscribe("qoeerror",a.Oy,a);a.G.subscribe("playbackstalledatstart",function(){return a.W("playbackstalledatstart")}); a.G.subscribe("signatureexpiredreloadrequired",function(){return a.W("signatureexpired")}); a.G.subscribe("releaseloader",function(){XV(a)}); a.G.subscribe("releasevideo",function(){a.ll()}); a.G.subscribe("pausevideo",function(){a.pauseVideo()}); a.G.subscribe("clienttemp",a.La,a);a.G.subscribe("highrepfallback",a.dQ,a);a.G.subscribe("playererror",a.zf,a);a.G.subscribe("nonfatalerror",function(b){a.W("nonfatalerror",b)}); a.G.subscribe("removedrmplaybackmanager",function(){YV(a)}); a.G.subscribe("formatupdaterequested",function(){ZV(a)}); a.G.subscribe("reattachvideosourcerequired",function(){Xza(a)})}; $V=function(a){var b=a.C;b.u&&b.u.send();if(b.qoe){var c=b.qoe;if(c.Y){"PL"===c.jd&&(c.jd="N");var d=g.OR(c.i);g.PU(c,d,"vps",[c.jd]);c.C||(0<=c.u&&(c.l.user_intent=[c.u.toString()]),c.C=!0);c.va=!0;c.reportStats(d)}}if(b.l.videoData.enableServerStitchedDai)for(c=g.q(b.B.values()),d=c.next();!d.done;d=c.next())jya(d.value);else b.i&&jya(b.i);b.dispose();g.ui(a.C)}; eH=function(a){return a.i&&a.i.hn()?a.i.pe():null}; aW=function(a){if(a.videoData.isValid())return!0;a.zf("api.invalidparam",void 0,"invalidVideodata.1");return!1}; rR=function(a,b){b=void 0===b?!1:b;if(a.Pb&&a.Z("html5_match_codecs_for_gapless")){a.videoData.Qa=!0;a.videoData.Mb=!0;var c;var d=null===(c=a.Pb.l)||void 0===c?void 0:c.audioTrack.i.info.i;a.videoData.gz=d;var e;d=null===(e=a.Pb.l)||void 0===e?void 0:e.videoTrack.i.info.i;a.videoData.jz=d}a.Ha=b;!aW(a)||a.va.started?g.LD(a.u)&&a.videoData.isLivePlayback&&a.va.started&&!a.va.isFinished()&&!a.Ha&&a.Pz():(a.va.start(),b=a.C,g.OR(b.l),b.qoe&&Vxa(b.qoe),a.Pz())}; Yza=function(a){var b=a.videoData,c=a.zb.getPlayerSize(),d=a.getVisibilityState(),e=vpa(a.u,a.videoData,c,d,a.isFullscreen());Tza(a.videoData,e,function(f){a.handleError(f)},a.L,c,d).then(void 0,function(f){a.videoData!==b||b.Ia()||(f=AB(f),"auth"===f.errorCode&&a.videoData.errorDetail?a.zf("auth",unescape(a.videoData.errorReason),g.zB(f.details),a.videoData.errorDetail,a.videoData.Gh||void 0):a.handleError(f))})}; Kta=function(a,b){a.bb=b;a.l&&(a=a.l,b=new g.jU(b),a.Y=b,a.u&&(a.u.Y=b))}; aAa=function(a){if(!g.T(a.playerState,128))if(a.videoData.isLoaded(),a.Gc=!0,a.ea(),4!==a.playerType&&(a.ma=g.pb(a.videoData.Y)),dG(a.videoData)){bW(a).then(function(){a.Ia()||(a.Ha&&(a.Z("embeds_enable_preloadvideobyplayervars_startseconds_fix")&&a.Nb(TI(TI(a.playerState,512),1)),UV(a)),Zza(a,a.videoData),a.va.i=!0,cW(a,"dataloaded"),a.Aa.started?dW(a):a.Ha&&!a.Z("embeds_enable_preloadvideobyplayervars_startseconds_fix")&&a.Nb(TI(TI(a.playerState,512),1)),Nxa(a.Y,a.U))}); a.Z("html5_log_media_perf_info")&&a.La("loudness",""+a.videoData.ij.toFixed(3),!0);var b=jja(a.videoData);b&&a.La("playerResponseExperiment",b,!0);$za(a)}else cW(a,"dataloaded")}; bW=function(a){XV(a);a.U=null;var b=Fya(a.u,a.videoData,a.rf());a.Va=b;a.Va.then(function(c){bAa(a,c)},function(c){a.Ia()||(c=AB(c),a.visibility.isBackground()?(eW(a,"vp_none_avail"),a.Va=null,a.va.reset()):(a.va.i=!0,a.zf(c.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",g.zB(c.details))))}); return b}; ZV=function(a){a.ea();bW(a).then(function(){return UV(a)}); g.XI(a.playerState)&&a.playVideo()}; bAa=function(a,b){if(!a.Ia()&&!b.videoData.Ia()&&(a.ea(),a.U=b,Pya(a.B,a.U),a.videoData.isLivePlayback&&(0b.startSeconds&&(b=b.endSeconds,a.xa&&(a.removeCueRange(a.xa),a.xa=null),a.xa=new g.Tv(1E3*b,0x7ffffffffffff),a.xa.namespace="endcr",a.addCueRange(a.xa))}; jW=function(a,b,c,d){a.videoData.l=c;d&&dAa(a,b,d);var e=(d=g.iW(a))?d.kc():"";d=a.C;c=new yxa(a.videoData,c,b,e);if(d.qoe){d=d.qoe;e=g.OR(d.i);g.PU(d,e,"vfs",[c.i.id,c.l,d.qb,c.reason]);d.qb=c.i.id;var f=d.i.l.getPlayerSize();if(0l?(h=Mxa(b,c,h),h=new ex(0,h,!1,"e")):h=BF}l=g.S(b.i.experiments,"html5_background_quality_cap");var m=g.S(b.i.experiments,"html5_background_cap_idle_secs");e=!l||"auto"!== Bxa(b)||vq()/1E31E3*p);n&&(l=Math.min(l,m))}m=g.S(b.i.experiments,"html5_random_playback_cap");p=/[a-h]$/;m&&p.test(c.videoData.clientPlaybackNonce)&&(l=Math.min(l,m));(m=g.S(b.i.experiments, "html5_not_vp9_supported_quality_cap"))&&!kB('video/webm; codecs="vp9"')&&(l=Math.min(l,m));if(p=m=g.S(b.i.experiments,"html5_hfr_quality_cap"))a:{p=c.i;if(p.i)for(p=g.q(p.videoInfos),n=p.next();!n.done;n=p.next())if(32l&&0!==l&&b.i===l)){1b.i;e=a.l.Qa&&!DB();c||d||b||e?(a.La("reattachOnConstraint",c?"u":d?"drm":e?"codec":"perf"), a.W("reattachrequired")):g.mn(a.X)}}}; TV=function(a){a.Z("html5_nonblocking_media_capabilities")?mW(a):gW(a)}; cAa=function(a){a.Z("html5_probe_media_capabilities")&&Cia(a.videoData.u);uha(a.videoData.i,{cpn:a.videoData.clientPlaybackNonce,c:a.u.deviceParams.c,cver:a.u.deviceParams.cver});var b=a.u,c=a.videoData,d=new g.Uoa,e=Toa(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Lj:c.Lj});d.B=e;d.mj=b.Z("html5_disable_codec_for_playback_on_error");d.hj=b.Z("html5_max_drift_per_track_secs")||b.Z("html5_rewrite_manifestless_for_sync")||b.Z("html5_check_segnum_discontinuity");d.Pb=b.Z("html5_unrewrite_timestamps"); d.Ib=b.Z("html5_stop_overlapping_requests");d.Ke=g.S(b.experiments,"html5_min_readbehind_secs");d.un=g.S(b.experiments,"html5_min_readbehind_cap_secs");d.qn=g.S(b.experiments,"html5_max_readbehind_secs");d.Ap=g.R(b.experiments,"html5_trim_future_discontiguous_ranges");d.cj=b.Z("html5_append_init_while_paused");d.Ah=g.S(b.experiments,"html5_max_readahead_bandwidth_cap");d.hf=g.S(b.experiments,"html5_post_interrupt_readahead");d.L=g.S(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs"); d.Mb=g.S(b.experiments,"html5_subsegment_readahead_timeout_secs");d.dn=g.S(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.Lb=g.S(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");d.yp=g.S(b.experiments,"html5_subsegment_readahead_min_load_speed");d.lh=g.S(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.zp=g.S(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.df=b.Z("html5_peak_shave");d.qp=b.Z("html5_restrict_streaming_xhr_on_sqless_requests"); d.Ck=g.S(b.experiments,"html5_max_headm_for_streaming_xhr");d.zn=b.Z("html5_pipeline_manifestless_allow_nonstreaming");d.Eo=b.Z("html5_prefer_server_bwe3");d.Yh=1024*g.S(b.experiments,"html5_video_tbd_min_kb");d.yk=b.Z("html5_last_slice_transition");d.Zm=b.Z("html5_store_xhr_headers_readable");d.wj=b.Z("html5_enable_packet_train_response_rate");d.qb=g.S(b.experiments,"html5_probe_primary_delay_base_ms")||d.qb;d.cf=b.Z("html5_no_placeholder_rollbacks");d.cn=b.Z("html5_subsegment_readahead_enable_mffa"); b.Z("html5_allow_video_keyframe_without_audio")&&(d.Oa=!0);d.kf=b.Z("html5_reattach_on_stuck");d.Kp=b.Z("html5_webm_init_skipping");d.If=g.S(b.experiments,"html5_request_size_padding_secs")||d.If;d.qc=b.Z("html5_abs_buffer_health");d.xk=b.Z("html5_interruption_resets_seeked_time");d.dd=g.S(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.dd;d.Ac=b.Z("html5_explicitly_dispose_xhr");d.pp=b.Z("html5_restart_on_unexpected_detach");d.rp=b.Z("html5_rewrite_manifestless_for_continuity");d.Tc= g.S(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.Xc=g.S(b.experiments,"html5_max_drift_per_track_secs");d.tp=b.Z("html5_rewrite_manifestless_for_sync");d.Bb=g.S(b.experiments,"html5_static_abr_resolution_shelf");d.di=!b.Z("html5_encourage_array_coalescing");d.lj=b.Z("html5_crypto_period_secs_from_emsg");d.nj=b.Z("html5_disable_reset_on_append_error");d.zj=b.Z("html5_filter_non_efficient_formats_for_safari");d.Xi=b.Z("html5_format_hybridization");d.bj=b.Z("html5_abort_before_separate_init"); d.Xm=b.Z("html5_serialize_server_stitched_ad_request");d.ma=b.Z("html5_resume_streaming_requests");b.Z("html5_disable_high_rep_fallback")&&(d.uo=!1);d.bf=b.Z("html5_never_pause_appends");d.vn=g.S(b.experiments,"html5_min_startup_buffered_media_duration_secs");b.Z("html5_media_common_config_killswitch")||(d.C=c.maxReadAheadMediaTimeMs/1E3||d.C,e=b.schedule,e.u.Tf()===e.policy.u?d.U=10:d.U=c.minReadAheadMediaTimeMs/1E3||d.U,d.xc=c.readAheadGrowthRateMs/1E3||d.xc);jg&&(d.Y=41943040);d.Qa=!LB();g.LD(b)|| !LB()?(e=b.experiments,d.G=8388608,d.J=524288,d.ej=5,d.Ya=2097152,d.X=1048576,d.kp=1.5,d.xn=!1,d.Kb=4587520,Dq()&&(d.Kb=786432),d.l*=1.1,d.u*=1.1,d.zb=!0,d.Y=d.G,d.bb=d.J,d.Sb=g.R(e,"persist_disable_player_preload_on_tv")||g.R(e,"persist_disable_player_preload_on_tv_for_living_room")||!1):b.i&&(d.l*=1.3,d.u*=1.3);g.lB&&yq("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.G=20971520,d.J=1572864,e&&(d.Kb=812500,d.Xb=1E3,d.Bp=5,d.X=2097152));!b.Z("html5_disable_firefox_init_skipping")&&g.FC&& (d.zb=!0);b.supportsGaplessAudio()||(d.vj=!1);rD&&(d.Ea=!0);Hq()&&(d.kh=!0);var f;e=null===(f=c.i)||void 0===f?void 0:ux(f);if(XF(c)){d.xa=b.Z("html5_used_segment_info_cuepoint");d.wk=!0;d.Ym=!0;if("ULTRALOW"===c.latencyClass||"LOW"===c.latencyClass&&!b.Z("html5_disable_low_pipeline"))d.Ak=2,d.pn=4;d.Jk=c.defraggedFromSubfragments;c.Id&&(d.vb=!0);g.eG(c)&&(d.Ha=!1);d.ij=g.$D(b)}g.$D(b)||(d.qf=!0);c.isAd()&&(d.eb=0,d.Gc=0);Qia(c)&&(d.Aa=!0,d.ma&&b.Z("html5_aggressive_timeout_for_streaming_xhr")&&(d.Xb= 400,d.rb*=3,d.Bk=2,d.Td=3,d.cg=1.4));d.Va=b.Z("html5_enable_subsegment_readahead_v3")||b.Z("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===c.latencyClass;d.Xa=c.rb;d.Wg=d.Xa&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||g.TF(c));Nq()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.Z("html5_disable_move_pssh_to_moov")&&e&&(d.zb=!1);e&&(d.kf=!1);var h=0;b.Z("html5_live_use_alternate_bandwidth_window_sizes")&&(h=b.schedule.policy.l,c.isLivePlayback&&(h=g.S(b.experiments,"ULTRALOW"=== c.latencyClass?"html5_live_ultra_low_latency_bandwidth_window":c.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||h));f=b.schedule;f.Y.i=XF(c)?.5:0;if(!f.policy.i&&h&&(f=f.u,h=Math.round(h*f.resolution),h!==f.i)){var l=Array(h),m=Math.min(h,f.l?f.i:f.valueIndex),n=f.valueIndex-m;0>n&&(n+=f.i);for(var p=0;pa.videoData.endSeconds&&isFinite(b)&&(a.removeCueRange(a.xa),a.xa=null);ba.mediaSource.getDuration()&&HB(a.mediaSource,c)):HB(a.mediaSource,d);var e=a.l,f=a.mediaSource;e.L&&(e.ea(),bU(e),e.L=!1);e.ea();kwa(e);if(!IB(f)){var h=e.videoTrack.i.info.mimeType+e.policy.xj,l=e.audioTrack.i.info.mimeType, m,n,p=null===(m=f.mediaSource)||void 0===m?void 0:m.addSourceBuffer(l),r="fakesb"===h.split(";")[0]?void 0:null===(n=f.mediaSource)||void 0===n?void 0:n.addSourceBuffer(h);f.me&&(f.me.webkitSourceAddId("0",l),f.me.webkitSourceAddId("1",h));var t=new CB(p,f.me,"0",ZA(l),!1),u=new CB(r,f.me,"1",ZA(h),!0);f.i=t;f.l=u;g.G(f,t);g.G(f,u)}AT(e.videoTrack,f.l||null);AT(e.audioTrack,f.i||null);e.mediaSource=f;e.resume();ju(f.i,e.Ea,e);ju(f.l,e.Ea,e);e.Vg();a.W("mediasourceattached");a.Ke.stop()}}catch(x){g.Pu(x), a.handleError(new g.yB("fmt.unplayable",!0,{msi:"1",ename:x.name}))}})}; kAa=function(a){a.l?g.wm(a.l.seek(a.getCurrentTime()-a.Kc()),function(){}):cAa(a)}; WV=function(a,b){b=void 0===b?!1:b;return g.D(a,function d(){var e=this;return g.z(d,function(f){if(1==f.i)return e.l&&e.l.Ia()&&XV(e),e.W("newelementrequired"),b?g.w(f,bW(e),2):f.xb(2);g.T(e.playerState,8)&&e.playVideo();g.sa(f)})})}; Eta=function(a,b){a.La("newelem",b);WV(a)}; oW=function(a){a.L.B.l=(0,g.O)();g.T(a.playerState,32)||(a.Nb(TI(a.playerState,32)),g.T(a.playerState,8)&&a.pauseVideo(!0),a.W("beginseeking",a));a.Ub()}; $R=function(a){g.T(a.playerState,32)?(a.Nb(VI(a.playerState,16,32)),a.W("endseeking",a)):g.T(a.playerState,2)||a.Nb(TI(a.playerState,16));var b=a.L.B,c=a.videoData.clientPlaybackNonce;c&&!isNaN(b.i)&&(a=g.T(a.playerState,4)?"pbp":"pbs",Rw("seek",["pbp","pbs"],b.i),g.Sw("cpn",c,"seek"),isNaN(b.l)||Tw("pl_ss",b.l,"seek"),Tw(a,(0,g.O)(),"seek"),b.reset())}; kS=function(a){a=a.B;return a.u?oV(a.u):Infinity}; cW=function(a,b){a.W("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)}; eAa=function(a){g.Ab("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.Ya.N(this.i,b,this.wL,this)},a); a.u.Yh&&a.i.hn()&&(a.Ya.N(a.i,"webkitplaybacktargetavailabilitychanged",a.sP,a),a.Ya.N(a.i,"webkitcurrentplaybacktargetiswirelesschanged",a.tP,a))}; mAa=function(a){a.Z("html5_enable_timeupdate_timeout")&&!a.videoData.isLivePlayback&&lAa(a)&&a.qc.start()}; lAa=function(a){if(!a.i)return!1;var b=a.i.getCurrentTime();a=a.i.getDuration();return!!(1a-.3)}; nAa=function(a){window.clearInterval(a.Ib);rW(a)||(a.Ib=sp(function(){return rW(a)},100))}; rW=function(a){var b=a.i;b&&a.rb&&!a.videoData.Xa&&!Xw("vfp",a.L.timerName)&&2<=b.Ug()&&!b.Pj()&&0b.l&&(b.l=c,b.delay.start()),b.u=c,b.C=c);g.mn(a.Ac);a.W("playbackstarted");g.oq()&&((a=g.Ha("yt.scheduler.instance.clearPriorityThreshold"))? a():qq(0))}; oAa=function(a){var b=a.getCurrentTime(),c=a.videoData;!Xw("pbs",a.L.timerName)&&iw.measure&&iw.getEntriesByName&&(iw.getEntriesByName("mark_nr")[0]?Ww("mark_nr"):Ww());c.videoId&&a.L.info("docid",c.videoId);c.eventId&&a.L.info("ei",c.eventId);c.clientPlaybackNonce&&a.L.info("cpn",c.clientPlaybackNonce);0a.jf+6283){if(!(!a.isAtLiveHead()||a.videoData.i&&fC(a.videoData.i))){var b=a.C;if(b.qoe){b=b.qoe;var c=b.i.l.Xv(),d=g.OR(b.i);Uxa(b,d,c);c=c.C;isNaN(c)||g.PU(b,d,"e2el",[c.toFixed(3)])}}g.$D(a.u)&&a.La("rawlat","l."+uS(a.Xb,"rawlivelatency").toFixed(3));a.jf=Date.now()}a.videoData.l&&eB(a.videoData.l)&&(b=eH(a))&&b.videoHeight!==a.Xc&&(a.Xc=b.videoHeight,jW(a,"a",iAa(a,a.videoData.Ha)))}; iAa=function(a,b){if("auto"===b.i.fb().quality&&eB(b.Pe())&&a.videoData.qb)for(var c=g.q(a.videoData.qb),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.Xc&&"auto"!==d.i.fb().quality)return d.Pe();return b.Pe()}; SV=function(a){if(!a.videoData.isLivePlayback||!a.videoData.i||!a.l)return NaN;var b=XF(a.videoData)?a.l.Aa.Tf()||0:a.videoData.i.ma;return Date.now()/1E3-a.getIngestionTime()-b}; qAa=function(a){!a.Z("html5_ignore_airplay_events_on_new_video_killswitch")&&a.i&&a.i.rf()&&(a.Bb=(0,g.O)());a.u.zk?g.rp(function(){sW(a)},0):sW(a)}; sW=function(a){if(a.i)try{a.vb=a.i.playVideo()}catch(c){eW(a,"err."+c)}if(a.vb){var b=a.vb;b.then(void 0,function(c){a.ea();if(!g.T(a.playerState,4)&&!g.T(a.playerState,256)&&a.vb===b)if(c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))a.ea();else{var d="promise";c&&c.name&&(d+=";m."+c.name);eW(a,d);a.cf=!0;a.u.Z("embeds_enable_autoplayblocked_ping_fix")&&(a.videoData.XE=!0)}})}}; eW=function(a,b){g.T(a.playerState,128)||(a.Nb(VI(a.playerState,1028,9)),a.La("dompaused",b),a.W("onDompaused"))}; UV=function(a){if(!a.i||!a.videoData.u)return!1;var b,c,d=null;(null===(c=a.videoData.u)||void 0===c?0:c.i)?(d=qW(a),null===(b=a.l)||void 0===b?void 0:b.resume()):(XV(a),a.videoData.Ha&&(d=a.videoData.Ha.qr()));b=d;d=a.i.Lu();c=!1;d&&null!==b&&b.i===d.i||(a.L.tick("vta"),Yw("vta","video_to_ad"),0=c&&b<=a}; KAa=function(a,b){var c=a.Ua.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}; PW=function(a,b,c){if(a.Id(c)){c=c.getVideoData();if(a.C)c=b;else{a=a.X;for(var d=g.q(a.i),e=d.next();!e.done;e=d.next())if(e=e.value,c.Wc===e.Wc){b+=e.Hc/1E3;break}d=b;a=g.q(a.i);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Wc===e.Wc)break;var f=e.Hc/1E3;if(fd?e=!0:1Math.random()}; nX=function(a){return a.i||g.R(a.Pa.get().I.T().experiments,"html5_force_debug_data_for_client_tmp_logs")}; qX=function(a,b,c,d){g.F.call(this);this.Cd=b;this.Zb=c;this.Pa=d;this.i=a(this,this,this,this,this);g.G(this,this.i);a=g.q(b);for(b=a.next();!b.done;b=a.next())g.G(this,b.value)}; rX=function(a,b){a.Cd.add(b);g.G(a,b)}; yka=function(a,b){CI(a.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.q(a.Cd);for(var c=a.next();!c.done;c=a.next())c.value.jh(b)}; zka=function(a,b){CI(a.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.q(a.Cd);for(var c=a.next();!c.done;c=a.next())c.value.tf(b)}; Qja=function(a,b){CI(a.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.q(a.Cd);for(var c=a.next();!c.done;c=a.next())c.value.uf(b)}; tX=function(a,b,c){Q(c,b,void 0,void 0,c.Dn);sX(a,b,!0)}; DBa=function(a,b,c){if(uX(a.i,b))if(vX(a.i,b).B=c?"filled":"not_filled",null===c){wX(a.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.q(a.Cd);for(var d=c.next();!d.done;d=c.next())d.value.Xj(b);sX(a,b,!1)}else{wX(a.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);var e=g.q(a.Cd);for(d=e.next();!d.done;d=e.next())d.value.Yj(b);if(!BBa(a.Pa.get())||uX(a.i,b))if(vX(a.i,b).C)sX(a,b,!1);else{wX(a.Zb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.i;if(!vX(f,b))throw new xX("Unknown slotState for onLayout"); if(!f.yd.Xk.get(b.ob))throw new xX("No LayoutRenderingAdapterFactory registered for slot of type: "+b.ob);if(g.gb(c.ud)&&g.gb(c.Pc)&&g.gb(c.Mc)&&g.gb(c.Qc))throw new xX("Layout has no exit triggers.");yX(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.ud);yX(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Pc);yX(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Mc);yX(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Qc)}catch(n){a.Ve(b,c,n);sX(a,b,!0);return}vX(a.i,b).G=!0;try{var h=a.i,l=vX(h,b),m= h.yd.Xk.get(b.ob).get().gf(h.B,h.l,b,c);m.init();l.layout=c;if(l.u)throw new xX("Already had LayoutRenderingAdapter registered for slot");l.u=m;zX(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.ud);zX(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Pc);zX(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Mc);zX(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Qc)}catch(n){AX(a,b,!0);sX(a,b,!0);a.Ve(b,c,n);return}wX(a.Zb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.q(a.Cd);for(d=e.next();!d.done;d= e.next())d.value.Ki(b,c);AX(a,b,!1);CBa(a,b)}}}; BX=function(a,b,c){wX(a.Zb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.q(a.Cd);for(var d=a.next();!d.done;d=a.next())d.value.Ki(b,c)}; CX=function(a,b,c){wX(a.Zb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.q(a.Cd);for(var d=a.next();!d.done;d=a.next())d.value.Bc(b,c)}; BI=function(a,b,c,d){wX(a.Zb,wBa(d),b,c);a=g.q(a.Cd);for(var e=a.next();!e.done;e=a.next())e.value.Nc(b,c,d)}; AX=function(a,b,c){if(uX(a.i,b)&&(vX(a.i,b).G=!1,!BBa(a.Pa.get())||!c)){c=DX;b=vX(a.i,b);var d=[].concat(g.ma(b.L));ib(b.L);c(a,d)}}; DX=function(a,b){b.sort(function(f,h){function l(m){Q("TriggerCategoryOrder enum does not contain trigger category: "+m)} return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):uBa(f.category,l)-uBa(h.category,l)}); var c=new Map;b=g.q(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,uX(a.i,d.slot))if(vX(a.i,d.slot).G)vX(a.i,d.slot).L.push(d);else{EBa(a.Zb,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.q(FBa);for(d=b.next();!d.done;d=b.next())e=g.q(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&GBa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&HBa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&IBa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&& JBa(a,c)}; GBa=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&EX(a.i,d.slot)&&KBa(a,d.slot,d.layout,c)}; HBa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next())sX(a,c.value.slot,!1)}; IBa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(vX(a.i,c.slot).B){case "not_filled":var d=!0;break a;default:d=!1}d&&(CI(a.Zb,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.i.qs(c.slot))}}; JBa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;CI(a.Zb,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.q(a.Cd),e=d.next();!e.done;e=d.next())e.value.Mi(c.slot);try{var f=a.i,h=c.slot,l=vX(f,h);if(!l)throw new FX("Got enter request for unknown slot");if(!l.l)throw new FX("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.i)throw new FX("Tried to enter a slot from stage: "+l.i);if(GX(l))throw new FX("Got enter request for already active slot"); for(var m=g.q(HX(f,h.ob+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&GX(p))throw new FX("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.i});}}catch(r){Q(r,c.slot,IX(a.i,c.slot),void 0,r.Dn);sX(a,c.slot,!0);continue}c=vX(a.i,c.slot);"scheduled"!==c.i&&JX(c.slot,c.i,"enterSlot");c.i="enter_requested";c.l.mA()}}; CBa=function(a,b){var c;uX(a.i,b)&&GX(vX(a.i,b))&&IX(a.i,b)&&!EX(a.i,b)&&(wX(a.Zb,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=IX(a.i,b))&&void 0!==c?c:void 0),a=vX(a.i,b),"entered"!==a.i&&JX(a.slot,a.i,"enterLayoutForSlot"),a.i="rendering",a.u.startRendering(a.layout))}; KBa=function(a,b,c,d){if(uX(a.i,b)){var e=a.Zb,f;var h=(null===(f=vBa.get(d))||void 0===f?void 0:f.Qt)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";wX(e,h,b,c);a=vX(a.i,b);"rendering"!==a.i&&JX(a.slot,a.i,"exitLayout");a.i="rendering_stop_requested";a.u.Ie(c,d)}}; sX=function(a,b,c){if(uX(a.i,b)){a:switch(vX(a.i,b).i){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(vX(a.i,b).i){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(vX(a.i,b).C=!0,!c))return;if(GX(vX(a.i,b)))vX(a.i,b).C=!0,LBa(a,b,c);else{a:switch(vX(a.i,b).B){case "fill_requested":c=!0;break a;default:c=!1}if(c)vX(a.i,b).C=!0,uX(a.i,b)&&(CI(a.Zb,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=vX(a.i,b),b.B="fill_cancel_requested",b.J.Jz());else{c= IX(a.i,b);CI(a.Zb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=vX(a.i,b);var e=b.Wb,f=d.ma.get(e.triggerId);f&&(f.ai(e),d.ma.delete(e.triggerId));e=g.q(b.wc);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d.Y.get(f.triggerId);h&&(h.ai(f),d.Y.delete(f.triggerId))}e=g.q(b.pc);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.U.get(f.triggerId))h.ai(f),d.U.delete(f.triggerId);null!=d.layout&&(e=d.layout,KX(d,e.ud),KX(d,e.Pc),KX(d,e.Mc),KX(d,e.Qc));d.J=void 0;null!=d.l&&(d.l.release(), d.l=void 0);null!=d.u&&(d.u.release(),d.u=void 0);d=a.i;vX(d,b)&&(d=HX(d,b.ob+"_"+b.slotPhysicalPosition))&&d.delete(b.slotId);CI(a.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.q(a.Cd);for(d=a.next();!d.done;d=a.next())d=d.value,d.Ni(b),c&&d.Vj(b,c)}}}}; LBa=function(a,b,c){if(uX(a.i,b)&&GX(vX(a.i,b))){var d=IX(a.i,b);if(d&&EX(a.i,b))KBa(a,b,d,c?"error":"abandoned");else{CI(a.Zb,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=vX(a.i,b);if(!e)throw new FX("Cannot exit slot it is unregistered");"enter_requested"!==e.i&&"entered"!==e.i&&"rendering"!==e.i&&JX(e.slot,e.i,"exitSlot");e.i="exit_requested";if(void 0===e.l)throw e.i="scheduled",new FX("Cannot exit slot because adapter is not defined");e.l.rA()}catch(f){Q(f,b,void 0,void 0,f.Dn)}}}}; MBa=function(a){this.slot=a;this.ma=new Map;this.Y=new Map;this.U=new Map;this.X=new Map;this.u=this.layout=this.l=this.J=void 0;this.G=this.C=!1;this.L=[];this.i="not_scheduled";this.B="not_filled"}; GX=function(a){return"enter_requested"===a.i||a.isActive()}; xX=function(a,b,c){c=void 0===c?!1:c;Ua.call(this,a);this.Dn=c;this.args=[];b&&this.args.push(b)}; FX=function(a,b,c){c=void 0===c?!1:c;Ua.call(this,a);this.Dn=c;this.args=[];b&&this.args.push(b)}; LX=function(a,b,c,d,e){g.F.call(this);this.yd=a;this.u=b;this.C=c;this.B=d;this.l=e;this.i=new Map}; HX=function(a,b){return(a=a.i.get(b))?a:new Map}; vX=function(a,b){return HX(a,b.ob+"_"+b.slotPhysicalPosition).get(b.slotId)}; NBa=function(a){var b=[];a.i.forEach(function(c){c=g.q(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)}); return b}; uX=function(a,b){return null!=vX(a,b)}; EX=function(a,b){a=vX(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}; IX=function(a,b){a=vX(a,b);return null!=a.layout?a.layout:null}; MX=function(a,b,c){if(g.gb(c))throw new FX("No "+OBa.get(b)+" triggers found for slot.");c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.yd.ph.get(d.triggerType))throw new FX("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);}; yX=function(a,b,c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.yd.ph.get(d.triggerType))throw new xX("No trigger adapter registered for "+OBa.get(b)+" trigger of type: "+d.triggerType);}; zX=function(a,b,c,d){d=g.q(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.yd.ph.get(e.triggerType);f.Rh(c,e,b.slot,b.layout?b.layout:null);b.X.set(e.triggerId,f)}}; KX=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.X.get(c.triggerId);d&&(d.ai(c),a.X.delete(c.triggerId))}}; JX=function(a,b,c){Q("Slot stage was "+b+" when calling method "+c,a)}; PBa=function(a){return NX(a.No).concat(NX(a.ph)).concat(NX(a.Nk)).concat(NX(a.ul)).concat(NX(a.Xk))}; NX=function(a){var b=[];a=g.q(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Bi&&b.push(c);return b}; OX=function(a){g.F.call(this);this.i=a;this.l=QBa(this)}; QBa=function(a){var b=new qX(function(c,d,e,f){return new LX(a.i.yd,c,d,e,f)},new Set(PBa(a.i.yd).concat(a.i.listeners)),a.i.Zb,a.i.Pa); g.G(a,b);return b}; PX=function(a){g.F.call(this);var b=this;this.l=a;this.i=null;g.Bi(this,function(){g.ui(b.i);b.i=null})}; Y=function(a){return new PX(a)}; RBa=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)}; SBa=function(a){return null!=a.linearAd&&null!=a.adVideoStart}; VBa=function(a,b,c,d,e,f,h){b=TBa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof FX?b:UBa(a,d,e,b,c);return a instanceof FX?a:[a]}; WBa=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)}; $Ba=function(a,b,c,d,e){b=g.q(b);for(var f=b.next();!f.done;f=b.next())f=f.value,QX(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return XBa(n)}); a=[];b={};f=g.q(f);for(var h=f.next();!h.done;b={vp:b.vp},h=f.next()){b.vp=h.value;h={};for(var l=g.q(b.vp.Az),m=l.next();!m.done;h={zl:h.zl},m=l.next())h.zl=m.value,m=function(n,p){return function(r){return n.zl.IF(r,p.vp.instreamVideoAdRenderer.elementId,n.zl.bF)}}(h,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===h.zl.Mp?a.push(YBa(c,d,h.zl.cF,e,b.vp.instreamVideoAdRenderer.elementId,h.zl.adSlotLoggingData,m)):a.push(ZBa(c,d,e,b.vp.instreamVideoAdRenderer.elementId,h.zl.adSlotLoggingData,m))}return a}; QX=function(a,b,c){if(b=aCa(b)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=bCa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.mw=c)}else Q("InstreamVideoAdRenderer without externalVideoId")}}; aCa=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.q(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}; XBa=function(a){if(void 0===a.instreamVideoAdRenderer)return Q("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.q(a.Az),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.IF)return!1;if(void 0===c.bF)return Q("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.mw||void 0===c.Mp||a.mw!==c.Mp&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.Mp)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return Q("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:a.mw,"matching APSR kind":c.Mp}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.Mp&&void 0===c.cF)return Q("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0}; bCa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,mw:void 0,adVideoId:b,Az:[]});return a.get(b)}; RX=function(a,b,c,d,e,f,h){d?bCa(a,d).Az.push({cF:b,Mp:c,bF:e,adSlotLoggingData:f,IF:h}):Q("Companion AdPlacementSupportedRenderer without adVideoId")}; SX=function(a){var b,c=0;a=g.q(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}; TX=function(a){var b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,A,E,I,H,U,N,fa=(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);fa=[].concat(g.ma((null===(f=a.playbackCommands)||void 0===f?void 0:f.instreamAdCompleteCommands)||[]),g.ma((null===fa||void 0===fa?void 0: fa.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===(r=a.playbackCommands)||void 0===r?void 0: r.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,Y5: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===(I=a.playbackCommands)||void 0===I?void 0:I.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null===(H=a.playbackCommands)||void 0===H?void 0:H.activeViewFullyViewableAudibleHalfDurationCommands,endFullscreenCommands:null===(U=a.playbackCommands)||void 0===U?void 0:U.endFullscreenCommands,abandonCommands:null===(N=a.playbackCommands)||void 0===N?void 0:N.abandonCommands,completeCommands:fa}}; dCa=function(a,b,c,d,e,f,h){return function(l,m){return cCa(a,m.slotId,l,f,function(n,p){n=h(n);return UX(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new QH(c),d])})}}; gCa=function(a,b,c,d,e,f,h){if(!eCa(a))return new FX("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[fCa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=VX(e.l.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",ib:"core"},r=new WX(e.i,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Cc:new Map,ud:[r],Pc:[], Mc:[],Qc:[],ib:"core",Ja:new jX([new RH(l)]),zc:n(p)}})]}; eCa=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}; jCa=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]}; if(!hka(a))return function(){return new FX("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})}; var h=a.playerOverlay.instreamSurveyAdRenderer,l=SX(h);return 0>=l?function(){return new FX("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=hCa(m,c,d,function(r){var t=n(r),u=r.slotId; r=TX(h);u=VX(e.l.get(),"LAYOUT_TYPE_SURVEY",u);var x={layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",ib:"core"},y=new WX(e.i,d),A=new XX(e.i,u),E=new YX(e.i,u),I=new iCa(e.i);return{layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",Cc:new Map,ud:[y,I],Pc:[A],Mc:[],Qc:[E],ib:"core",Ja:new jX([new PH(h),new HH(b),new nI(l/1E3),new qI(r)]),zc:t(x),adLayoutLoggingData:h.adLayoutLoggingData}}); m=gCa(a,c,p.slotId,d,e,m,n);return m instanceof FX?m:[p].concat(g.ma(m))}}; mCa=function(a,b,c,d,e){var f=[];try{var h=[],l=kCa(a,d,function(t){t=lCa(t.slotId,c,b,e(t),d);h=t.bT;return t.oN}); f.push(l);for(var m=g.q(h),n=m.next();!n.done;n=m.next()){var p=n.value,r=p(a,e);if(r instanceof FX)return r;f.push.apply(f,g.ma(r))}}catch(t){return new FX(t,{errorMessage:t.message,AdPlacementRenderer:c})}return f}; lCa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,h=f.adTimeOffset||{},l=h.offsetEndMilliseconds;h=Number(h.offsetStartMilliseconds);if(isNaN(h))throw new TypeError("Expected valid start offset");var m=Number(l);if(isNaN(m))throw new TypeError("Expected valid end offset");l=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null===l||void 0===l||!l.length)throw new TypeError("Expected linear ads");var n=[],p={yJ:h,zJ:0,YS:n};l=l.map(function(t){return nCa(a,t,p,c,d,f,e,m)}).map(function(t, u){u=new zG(u,n,m); return t(u)}); var r=l.map(function(t){return t.pN}); return{oN:oCa(c,a,h,r,f,new Map([["ad_placement_start",b.placementStartPings||[]],["ad_placement_end",b.placementEndPings||[]]]),pCa(b),d,m),bT:l.map(function(t){return t.aT})}}; nCa=function(a,b,c,d,e,f,h,l){var m=b.instreamVideoAdRenderer;if(!m)throw new TypeError("Expected instream video ad renderer");if(!m.playerVars)throw new TypeError("Expected player vars in url encoded string");var n=cp(m.playerVars);b=Number(n.length_seconds);if(isNaN(b))throw new TypeError("Expected valid length seconds in player vars");var p=qCa(n,m);if(!p)throw new TypeError("Expected valid video id in IVAR");var r=c.yJ,t=c.zJ,u=Number(m.trimmedMaxNonSkippableAdDurationMs),x=isNaN(u)?b:Math.min(b, u/1E3),y=Math.min(r+1E3*x,l);c.yJ=y;c.zJ++;c.YS.push(x);var A=m.pings?AG(m.pings):new Map;c=m.playerOverlay||{};var E=void 0===c.instreamAdPlayerOverlayRenderer?null:c.instreamAdPlayerOverlayRenderer;return function(I){2<=I.l&&(n.slot_pos=I.i);n.autoplay="1";var H=m.adLayoutLoggingData,U=m.sodarExtensionData,N=VX(d.l.get(),"LAYOUT_TYPE_MEDIA",a),fa={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",ib:"adapter"};I={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",Cc:A,ud:[],Pc:[],Mc:[],Qc:[],ib:"adapter",Ja:new jX([new LH(h), new $H(x),new aI(n),new cI(r),new dI(y),new eI(t),new WH({current:null}),E&&new MH(E),new HH(f),new JH(p),new IH(I),U&&new bI(U)].filter(rCa)),zc:e(fa),adLayoutLoggingData:H};H=jCa(m,f,h,I.layoutId,d);return{pN:I,aT:H}}}; qCa=function(a,b){if(a=a.video_id)return a;if(b=b.externalVideoId)return b}; pCa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a}; tCa=function(a,b,c,d,e,f,h,l){a=sCa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=VX(b.l.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",ib:"core"},r=new Map,t=e.impressionUrls;t&&r.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Cc:r,ud:[new ZX(b.i,n)],Pc:[],Mc:[],Qc:[],ib:"core",Ja:new jX([new hI(e),new HH(c)]),zc:m(p)}}); return a instanceof FX?a:[a]}; vCa=function(a,b,c,d,e,f,h,l){a=uCa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var r=e.contentSupportedRenderer;r?r.textOverlayAdContentRenderer?(r=VX(b.l.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=$X(b,r,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,aY(b,n,p))):r.enhancedTextOverlayAdContentRenderer?(r=VX(b.l.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=$X(b,r,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,aY(b,n,p))):r.imageOverlayAdContentRenderer?(r=VX(b.l.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", p),n=aY(b,n,p),n.push(new bY(b.i,r)),n=$X(b,r,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new xX("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new xX("InvideoOverlayAdRenderer without contentSupportedRenderer");return n}); return a instanceof FX?a:[a]}; yCa=function(a,b,c,d,e,f,h){var l=Number(d.durationMilliseconds);return isNaN(l)?new FX("Expected valid duration for AdActionInterstitialRenderer."):function(m){return wCa(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 xCa(a,n,e,function(p,r){var t=p.slotId;p=h(p);t=VX(b.l.get(),"LAYOUT_TYPE_ENDCAP",t);return UX(b, t,r,c,p,"LAYOUT_TYPE_ENDCAP",[new NH(d)])})},d.adLayoutLoggingData,f)}}; zCa=function(a,b,c,d){if(!c.playerVars)return new FX("No playerVars available in AdIntroRenderer.");var e=cp(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=VX(a.l.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",ib:"adapter"};return{ip:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Cc:new Map,ud:[],Pc:[],Mc:[],Qc:[],ib:"adapter",Ja:new jX([new gI({}),new HH(b),new WH({current:null}),new aI(e)]),zc:f(l)},Rp:[new cY(a.i,h)],Nn:[],wv:[]}}}; BCa=function(a,b,c,d,e,f,h,l){var m=SX(e);if(!rI(e))return new FX("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=m)return new FX("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var n=dCa(a,b,e,f,c,d,h);return n instanceof FX?n:function(p){return ACa(b,p.slotId,c,m,TX(e),h(p),n,l)}}; CCa=function(a,b,c,d,e,f,h){function l(p){return xCa(a,p,d,m)} function m(p,r){var t=p.slotId;p=h(p);t=VX(b.l.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return UX(b,t,r,c,p,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new OH(e),f])} 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 FX("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var n=1E3*e.timeoutSeconds;return function(p){var r={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},t= h(p);p=dY(b,p.slotId,c,n,r,new Map,t,l);r=new TH(p.WB);return{ip:{layoutId:p.layoutId,layoutType:p.layoutType,Cc:p.Cc,ud:[],Pc:[],Mc:[],Qc:[],ib:p.ib,Ja:new jX([].concat(g.ma(p.Rr),[r])),zc:p.zc,adLayoutLoggingData:p.adLayoutLoggingData},Rp:[],Nn:p.Mc,wv:p.Qc,Ng:p.Ng}}}; GCa=function(a,b,c,d,e,f,h,l,m,n,p){function r(u){var x=new zG(0,[t.Wu]),y=DCa(t.playerVars,t.aJ,l,p,x);u=m(u);var A=n.get(t.Wx.externalVideoId);x=ECa(b,"core",t.Wx,c,y,t.Wu,f,x,u,A);return{layout:{layoutId:x.layoutId,layoutType:x.layoutType,Cc:x.Cc,ud:x.ud,Pc:x.Pc,Mc:x.Mc,Qc:x.Qc,ib:x.ib,Ja:x.Ja,zc:x.zc,adLayoutLoggingData:x.adLayoutLoggingData},il:[],pc:[]}} var t=eY(e);if(t instanceof xX)return new FX(t);if(r instanceof FX)return r;a=FCa(a,c,f,h,d,r);return a instanceof FX?a:a.il.concat(a.bC)}; eY=function(a){if(!a.playerVars)return new xX("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 xX("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=cp(a.playerVars);var c=Number(b.length_seconds);return isNaN(c)?new xX("Expected valid length seconds in player vars"): {Wx:a,playerVars:b,aJ:a.playerVars,Wu:c}}; DCa=function(a,b,c,d,e){a.iv_load_policy=d;b=cp(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){Q(f)}c.hg&&(a.ctrl=c.hg);c.xf&&(a.ytr=c.xf);c.Hk&&(a.ytrcc=c.Hk);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.uh&&(a.vss_credentials_token_type=c.uh),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.l&&(a.slot_pos=e.i);a.autoplay="1";return a}; JCa=function(a,b,c,d,e,f,h,l,m,n,p){b=HCa(a,b,c,e,f,l,m,n,p);a:{e=g.q(e);for(l=e.next();!l.done;l=e.next())if(l.value.instreamSurveyAdRenderer){e=!0;break a}e=!1}e?(c=ICa(a,c,f,h),c instanceof FX?d=c:(f=fY(a.l.get(),"SLOT_TYPE_IN_PLAYER"),h=VX(a.l.get(),"LAYOUT_TYPE_SURVEY",f),c.pc.push(new gY(a.i,h)),a=b({slotId:c.slotId,ob:c.ob,slotPhysicalPosition:c.slotPhysicalPosition,ib:c.ib,Wb:c.Wb,wc:c.wc,pc:c.pc},{slotId:f,layoutId:h}),d=a instanceof FX?a:{bC:{slotId:c.slotId,ob:c.ob,slotPhysicalPosition:c.slotPhysicalPosition, Wb:c.Wb,wc:c.wc,pc:c.pc,ib:c.ib,Ja:new jX([new jI(a.layout)]),adSlotLoggingData:d},il:a.il})):d=FCa(a,c,f,h,d,b);return d instanceof FX?d:d.il.concat(d.bC)}; HCa=function(a,b,c,d,e,f,h,l,m){return function(n,p){a:{b:{var r=[];for(var t=g.q(d),u=t.next();!u.done;u=t.next())if(u=u.value,u.instreamVideoAdRenderer){u=eY(u.instreamVideoAdRenderer);if(u instanceof xX){r=new FX(u);break b}r.push(u.Wu)}}if(r instanceof FX)p=r;else{t=0;u=[];for(var x=[],y=[],A=[],E=[],I=new XH({current:null}),H=[],U=g.q(d),N=U.next();!N.done;N=U.next())if(N=N.value,N.adIntroRenderer){N=zCa(b,c,N.adIntroRenderer,h);if(N instanceof FX){p=N;break a}N=N(n);u.push(N.ip);x=[].concat(g.ma(N.Rp), g.ma(x));y=[].concat(g.ma(N.Nn),g.ma(y));N.Ng&&(H=[N.Ng].concat(g.ma(H)))}else if(N.instreamVideoAdRenderer){var fa=eY(N.instreamVideoAdRenderer);if(fa instanceof xX){p=new FX(fa);break a}var ya=new zG(t,r);N=b;var Za=fa.Wx,Jc=DCa(fa.playerVars,fa.aJ,f,m,ya),of=h(n),Wa=l.get(fa.Wx.externalVideoId);fa=ECa(N,"adapter",Za,c,Jc,fa.Wu,e,ya,of,Wa);ya=fa.Pc;Za.isCritical&&(ya=[new cY(N.i,fa.layoutId)].concat(g.ma(ya)));N={layoutId:fa.layoutId,layoutType:fa.layoutType,Cc:fa.Cc,ud:[],Pc:[],Mc:[],Qc:[],ib:fa.ib, Ja:fa.Ja,zc:fa.zc,adLayoutLoggingData:fa.adLayoutLoggingData};Za=ya;fa=fa.Mc;t++;u.push(N);x=[].concat(g.ma(Za),g.ma(x));y=[].concat(g.ma(fa),g.ma(y))}else if(N.adActionInterstitialRenderer){N=yCa(a,b,c,N.adActionInterstitialRenderer,e,t,h);if(N instanceof FX){p=N;break a}N=N(n);u.push(N.ip);x=[].concat(g.ma(N.Rp),g.ma(x));y=[].concat(g.ma(N.Nn),g.ma(y));N.Ng&&(H=[N.Ng].concat(g.ma(H)))}else if(N.instreamSurveyAdRenderer){if(void 0===p){p=new FX("Composite Survey must already have a Survey Bundle with required metadata.", {instreamSurveyAdRenderer:N.instreamSurveyAdRenderer});break a}N=BCa(a,b,c,e,N.instreamSurveyAdRenderer,I,h,p);if(N instanceof FX){p=N;break a}N=N(n);u.push(N.ip);N.Ng&&H.push(N.Ng);x=[].concat(g.ma(N.Rp),g.ma(x));y=[].concat(g.ma(N.Nn),g.ma(y));A=[].concat(g.ma(N.wv),g.ma(A));E=[I].concat(g.ma(E))}else if(N.surveyTextInterstitialRenderer){N=CCa(a,b,c,e,N.surveyTextInterstitialRenderer,I,h);if(N instanceof FX){p=N;break a}N=N(n);u.push(N.ip);N.Ng&&H.push(N.Ng);y=[].concat(g.ma(N.Nn),g.ma(y))}else{p= new FX("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={ZS:u,Pc:x,Qc:A,Mc:y,Rr:E,il:H}}}p instanceof FX?n=p:(A=n.slotId,r=p.ZS,t=p.Pc,u=p.Mc,x=p.Qc,y=p.Rr,n=h(n),A=VX(b.l.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",A),E={layoutId:A,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",ib:"core"},n={layout:{layoutId:A,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Cc:new Map,ud:[new ZX(b.i,A)],Pc:t,Mc:u,Qc:x,ib:"core",Ja:new jX([new YH(r)].concat(g.ma(y))),zc:n(E)},il:p.il});return n}}; LCa=function(a,b,c,d,e,f,h){if(!rI(c))return new FX("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=SX(c);if(0>=l)return new FX("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new XH({current:null}),n=dCa(a,b,c,m,d,f,h);return KCa(a,d,f,l,e,function(p,r){var t=p.slotId,u=TX(c);p=h(p);t=VX(b.l.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",ib:"core"},y=n(t,r); X(y.Ja,"metadata_type_fulfilled_layout")||Q("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new HH(d),new oI(l),new qI(u),m];return{QO:{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Cc:new Map,ud:[new ZX(b.i,t)],Pc:[new XX(b.i,r.layoutId)],Mc:[],Qc:[new YX(b.i,r.layoutId)],ib:"core",Ja:new jX(u),zc:p(x)},sO:y}})}; hY=function(a,b,c,d,e,f,h){this.l=a;this.i=b;this.Pa=c;this.u=d;this.C=e;this.B=f;this.loadPolicy=void 0===h?1:h}; Bv=function(a,b,c,d,e,f,h){var l,m,n,p,r,t,u,x,y,A,E,I=[];if(0===b.length)return I;b=b.filter(RBa);for(var H=new Map,U=new Map,N=g.q(b),fa=N.next();!fa.done;fa=N.next())(fa=fa.value.renderer.remoteSlotsRenderer)&&fa.hostElementId&&U.set(fa.hostElementId,fa);N=g.q(b);for(fa=N.next();!fa.done;fa=N.next()){fa=fa.value;var ya=MCa(a,H,fa,d,e,f,h,U);ya instanceof FX?Q(ya,void 0,void 0,{renderer:fa.renderer,config:fa.config.adPlacementConfig,kind:fa.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}): I.push.apply(I,g.ma(ya))}if(null===a.C||f)return a=f&&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),I.length||a||Q("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(t=null===(r=null===(p=b[0])||void 0===p?void 0:p.config)|| void 0===r?void 0:r.adPlacementConfig)||void 0===t?void 0:t.kind,renderer:null===(u=b[0])||void 0===u?void 0:u.renderer}),I;c=c.filter(RBa);I.push.apply(I,g.ma($Ba(H,c,a.l.get(),a.C,d,a.Pa.get())));I.length||Q("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 I}; MCa=function(a,b,c,d,e,f,h,l){function m(u){return oX(a.u.get(),u)} var n=c.renderer,p=c.config.adPlacementConfig,r=p.kind,t=c.adSlotLoggingData;if(null!=n.actionCompanionAdRenderer)RX(b,c.elementId,r,n.actionCompanionAdRenderer.adVideoId,p,t,function(u,x,y){var A=a.i.get(),E=n.actionCompanionAdRenderer,I=oX(a.u.get(),u);return iY(A,u.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new zH(E),x,y,E.impressionPings,I,n.actionCompanionAdRenderer.adLayoutLoggingData)}); else if(n.imageCompanionAdRenderer)RX(b,c.elementId,r,n.imageCompanionAdRenderer.adVideoId,p,t,function(u,x,y){var A=a.i.get(),E=n.imageCompanionAdRenderer,I=oX(a.u.get(),u);return iY(A,u.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new DH(E),x,y,E.impressionPings,I,n.imageCompanionAdRenderer.adLayoutLoggingData)}); else if(n.shoppingCompanionCarouselRenderer)RX(b,c.elementId,r,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(u,x,y){var A=a.i.get(),E=n.shoppingCompanionCarouselRenderer,I=oX(a.u.get(),u);return iY(A,u.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new EH(E),x,y,E.impressionPings,I,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)}); else{if(n.adBreakServiceRenderer){if(!WBa(c))return[];if(f&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===p.kind){if(!a.B)return new FX("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");NCa(a.B,{adPlacementRenderer:c,contentCpn:d,DF:e});return[]}return VBa(a.l.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f)}if(n.clientForecastingAdRenderer)return tCa(a.l.get(),a.i.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return vCa(a.l.get(), a.i.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if(n.linearAdSequenceRenderer){if(f)return mCa(a.l.get(),a.i.get(),c,d,m);QX(b,n,r);return null!=n.linearAdSequenceRenderer.linearAds?JCa(a.l.get(),a.i.get(),p,t,n.linearAdSequenceRenderer.linearAds,d,e,h,m,l,a.loadPolicy):new FX("Received invalid LinearAdSequenceRenderer.")}if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!f)return QX(b,n,r),GCa(a.l.get(),a.i.get(),p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy);if(n.instreamSurveyAdRenderer)return LCa(a.l.get(), a.i.get(),n.instreamSurveyAdRenderer,p,t,d,m);if(null!=n.sandwichedLinearAdRenderer)return SBa(n.sandwichedLinearAdRenderer)?JCa(a.l.get(),a.i.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart,n.sandwichedLinearAdRenderer.linearAd],d,e,h,m,l,a.loadPolicy):new FX("Received invalid SandwichedLinearAdRenderer.")}}return[]}; jY=function(a){g.F.call(this);this.i=a}; yv=function(a,b,c,d){a.i().Oh(b,d);c=c();a=a.i();kY(a.Zb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.q(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;CI(d.Zb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.i;if(g.oc(c.slotId))throw new FX("Slot ID was empty");if(vX(e,c))throw new FX("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Wb.triggerType});if(!e.yd.Nk.has(c.ob))throw new FX("No fulfillment adapter factory registered for slot of type: "+ c.ob);if(!e.yd.ul.has(c.ob))throw new FX("No SlotAdapterFactory registered for slot of type: "+c.ob);MX(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Wb?[c.Wb]:[]);MX(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.wc);MX(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.pc);var f=d.i,h=c.ob+"_"+c.slotPhysicalPosition,l=HX(f,h);if(vX(f,c))throw new FX("Duplicate slots not supported");l.set(c.slotId,new MBa(c));f.i.set(h,l)}catch(Za){Q(Za,c,void 0,void 0,Za.Dn);break a}vX(d.i,c).G=!0;try{var m=d.i,n=vX(m,c),p=c.Wb,r=m.yd.ph.get(p.triggerType); r&&(r.Rh("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.ma.set(p.triggerId,r));for(var t=g.q(c.wc),u=t.next();!u.done;u=t.next()){var x=u.value,y=m.yd.ph.get(x.triggerType);y&&(y.Rh("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.Y.set(x.triggerId,y))}for(var A=g.q(c.pc),E=A.next();!E.done;E=A.next()){var I=E.value,H=m.yd.ph.get(I.triggerType);H&&(H.Rh("TRIGGER_CATEGORY_SLOT_EXPIRATION",I,c,null),n.U.set(I.triggerId,H))}var U=m.yd.Nk.get(c.ob).get().gf(m.u,c);n.J=U;var N=m.yd.ul.get(c.ob).get().gf(m.C, c);N.init();n.l=N}catch(Za){Q(Za,c,void 0,void 0,Za.Dn);sX(d,c,!0);break a}CI(d.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.i.jh(c);for(var fa=g.q(d.Cd),ya=fa.next();!ya.done;ya=fa.next())ya.value.jh(c);AX(d,c,!1)}}; lY=function(a,b,c,d){this.Tm=b;this.i=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)}; mY=function(a,b,c,d){g.F.call(this);var e=this;this.u=a;this.B=b;this.l=c;this.i=new Map;d.get().addListener(this);g.Bi(this,function(){d.get().removeListener(e)})}; ega=function(a,b){var c=0x8000000000000;for(var d=0,e=g.q(b.wc),f=e.next();!f.done;f=e.next())f=f.value,f instanceof lY?(c=Math.min(c,f.i.start),d=Math.max(d,f.i.end)):Q("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new Kn(c,d);d="throttledadcuerange:"+b.slotId;a.i.set(d,b);a.l.get().addCueRange(d,c.start,c.end,!1,a)}; nY=function(){g.F.apply(this,arguments);this.Bi=!0;this.Wh=new Map;this.i=new Map}; OCa=function(a,b){a=g.q(a.i.values());for(var c=a.next();!c.done;c=a.next()){c=g.q(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}Q("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.oc(b)),layoutId:b})}; oY=function(){this.l=new Map;this.i=new Map;this.u=new Map}; fY=function(a,b){if(g.M("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.l.get(b)||0;c++;a.l.set(b,c);return b+"_"+c}return uu()}; VX=function(a,b,c){if(g.M("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.i.get(b)||0;d++;a.i.set(b,d);return c+"_"+b+"_"+d}return uu()}; pY=function(a,b){if(g.M("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return uu()}; gY=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)}; cY=function(a,b){this.je=b;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)}; WX=function(a,b){this.je=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)}; PCa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)}; qY=function(a,b){this.i=b;this.ob="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)}; rY=function(a,b){this.i=b;this.ob="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)}; ZX=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)}; QCa=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)}; iCa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)}; XX=function(a,b){this.je=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)}; YX=function(a,b){this.je=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)}; bY=function(a,b){this.durationMs=45E3;this.je=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)}; RCa=function(a){return[new SH(a.Qx),new MH(a.instreamAdPlayerOverlayRenderer),new VH(a.II),new HH(a.adPlacementConfig),new $H(a.videoLengthSeconds),new nI(a.vB)]}; SCa=function(a,b,c,d,e,f){a=c.lq?c.lq:VX(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",ib:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Cc:new Map,ud:[new WX(function(l){return pY(f,l)},c.Qx)], Pc:[],Mc:[],Qc:[],ib:b,Ja:d,zc:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}}; sY=function(a){var b=this;this.l=a;this.i=function(c){return pY(b.l.get(),c)}}; tY=function(a,b,c,d,e){return SCa(b,c,d,new jX(RCa(d)),e,a.l.get())}; TCa=function(a,b,c,d,e){var f=RCa(d);f.push(new FH(d.VM));f.push(new GH(d.XM));return SCa(b,c,d,new jX(f),e,a.l.get())}; iY=function(a,b,c,d,e,f,h,l,m){b=VX(a.l.get(),c,b);var n={layoutId:b,layoutType:c,ib:"core"},p=new Map;h&&p.set("impression",h);return{layoutId:b,layoutType:c,Cc:p,ud:[new ZX(a.i,b),new qY(a.i,e)],Pc:[],Mc:[],Qc:[],ib:"core",Ja:new jX([d,new HH(f),new SH(e)]),zc:l(n),adLayoutLoggingData:m}}; aY=function(a,b,c){var d=[];d.push(new rY(a.i,c));b&&d.push(b);return d}; $X=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,ib:"core"};return{layoutId:b,layoutType:c,Cc:new Map,ud:h,Pc:[new gY(a.i,b)],Mc:[],Qc:[],ib:"core",Ja:new jX([new CH(d),new HH(e)]),zc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}}; UX=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:f,ib:"core"};return{layoutId:b,layoutType:f,Cc:new Map,ud:[new WX(a.i,c)],Pc:[],Mc:[],Qc:[],ib:"core",Ja:new jX([new HH(d)].concat(g.ma(h))),zc:e(l)}}; wCa=function(a,b,c,d,e,f,h,l,m,n){a=dY(a,b,c,d,e,f,h,l,m,n);return{ip:{layoutId:a.layoutId,layoutType:a.layoutType,Cc:a.Cc,ud:[],Pc:[],Mc:[],Qc:[],ib:a.ib,Ja:new jX(a.Rr),zc:a.zc,adLayoutLoggingData:a.adLayoutLoggingData},Rp:a.Pc,Nn:a.Mc,wv:a.Qc,Ng:a.Ng}}; ACa=function(a,b,c,d,e,f,h,l){b=dY(a,b,c,d,e,new Map,f,function(m){return h(m,l)},void 0); a=new YX(a.i,b.WB);c=new TH(b.WB);return{ip:{layoutId:b.layoutId,layoutType:b.layoutType,Cc:b.Cc,ud:[],Pc:[],Mc:[],Qc:[],ib:b.ib,Ja:new jX([].concat(g.ma(b.Rr),[c])),zc:b.zc,adLayoutLoggingData:b.adLayoutLoggingData},Rp:b.Pc,Nn:b.Mc,wv:[].concat(g.ma(b.Qc),[a]),Ng:b.Ng}}; dY=function(a,b,c,d,e,f,h,l,m,n){b=VX(a.l.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",ib:"adapter"};l=l(b);var r=X(l.Ja,"metadata_type_fulfilled_layout");r||Q("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");r=r?r.layoutId:"";c=[new HH(c),new oI(d),new qI(e)];n&&c.push(new eI(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Cc:f,ud:[],Pc:[new XX(a.i,r)],Mc:[],Qc:[],ib:"adapter",Rr:c, zc:h(p),adLayoutLoggingData:m,Ng:l,WB:r}}; ECa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,r={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",ib:b};d=[new HH(d),new IH(l),new JH(c.externalVideoId),new LH(h),new MH(c.playerOverlay.instreamAdPlayerOverlayRenderer),new qI({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new aI(e),new WH({current:null}),new $H(f)];e=fY(a.l.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?f:VX(a.l.get(), "LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new TH(f));d.push(new UH(e));d.push(new eI(l.i));c.adNextParams&&d.push(new AH(c.adNextParams));c.clickthroughEndpoint&&d.push(new BH(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new pI(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new bI(c.sodarExtensionData));n&&d.push(new mI(n));return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",Cc:AG(c.pings),ud:[new ZX(a.i,p)],Pc:c.skipOffsetMilliseconds?[new XX(a.i,f)]:[],Mc:[new XX(a.i, f)],Qc:[],ib:b,Ja:new jX(d),zc:m(r),adLayoutLoggingData:c.adLayoutLoggingData}}; oCa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return iX(p,[],["LAYOUT_TYPE_MEDIA"])})||Q("Unexpect subLayout type for DAI composite layout"); b=VX(a.l.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",ib:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Cc:f,ud:[new PCa(a.i)],Pc:[],Mc:[],Qc:[],ib:"core",Ja:new jX([new cI(c),new dI(m),new YH(d),new HH(e),new iI(h)]),zc:l(n)}}; rCa=function(a){return null!=a}; uY=function(a,b,c){this.Tm=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)}; vY=function(a,b,c){this.je=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)}; wY=function(a,b){this.je=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)}; UCa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)}; xY=function(a,b,c){this.Tm=b;this.i=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)}; yY=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)}; zY=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)}; AY=function(a,b){this.vg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)}; BY=function(a,b){this.vg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)}; CY=function(a,b){this.vg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)}; DY=function(a,b){this.vg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)}; EY=function(a,b){this.vg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)}; TBa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={ck:new Kn(-0x8000000000000,-0x8000000000000),ix:d},null!=c&&(d.Yp=new Kn(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={ck:new Kn(0x7ffffffffffff,0x8000000000000),ix:d},null!=c&&(d.Yp=new Kn(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||Q("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); e.offsetEndMilliseconds||Q("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 FX("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={ck:new Kn(a,e),ix:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Yp=new Kn(a,e)}return d;default:return new FX("AdPlacementKind not supported in convertToRange.", {kind:e,adPlacementConfig:a})}}; FY=function(a){var b=this;this.l=a;this.i=function(c){return pY(b.l.get(),c)}}; UBa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=fY(a.l.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Yp&&d.Yp.start!==d.ck.start&&l.push(new lY(a.i,c,new Kn(d.Yp.start,d.ck.start),!1));l.push(new lY(a.i,c,new Kn(d.ck.start,d.ck.end),d.ix));d={getAdBreakUrl:b.getAdBreakUrl,ZI:d.ck.start,YI:d.ck.end};b=new DY(a.i,h);f=[new kI(d)].concat(g.ma(f));return{slotId:h,ob:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Wb:b,wc:l,pc:[new yY(a.i,c),new BY(a.i,h),new CY(a.i,h)],ib:"core",Ja:new jX(f),adSlotLoggingData:e}}; WCa=function(a,b,c){var d=[];c=g.q(c);for(var e=c.next();!e.done;e=c.next())d.push(VCa(a,b,e.value));return d}; VCa=function(a,b,c){return null!=c.vg&&c.vg===a?c.clone(b):c}; cCa=function(a,b,c,d,e){return XCa(a,b,c,d,e)}; xCa=function(a,b,c,d){var e=fY(a.l.get(),"SLOT_TYPE_IN_PLAYER");return XCa(a,e,b,c,d)}; XCa=function(a,b,c,d,e){var f=new wY(a.i,c),h=[new AY(a.i,b)];a=[new BY(a.i,b),new yY(a.i,d)];return{slotId:b,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:f,wc:h,pc:a,ib:"core",Ja:new jX([new jI(e({slotId:b,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",Wb:f,wc:h,pc:a},c))]),adSlotLoggingData:void 0}}; KCa=function(a,b,c,d,e,f){var h=fY(a.l.get(),"SLOT_TYPE_PLAYER_BYTES"),l=fY(a.l.get(),"SLOT_TYPE_IN_PLAYER"),m=VX(a.l.get(),"LAYOUT_TYPE_SURVEY",l);b=GY(a,b,c,d);d=[new AY(a.i,h)];a=[new BY(a.i,h),new yY(a.i,c),new gY(a.i,m)];if(b instanceof FX)return b;f=f({slotId:h,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,ib:"core",Wb:b,wc:d,pc:a},{slotId:l,layoutId:m});l=f.sO;return[{slotId:h,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Wb:b,wc:d,pc:a,ib:"core",Ja:new jX([new jI(f.QO)]),adSlotLoggingData:e}, l]}; YCa=function(a,b,c,d,e){e=e?e:fY(a.l.get(),"SLOT_TYPE_IN_PLAYER");c=new wY(a.i,c);var f=[new AY(a.i,e)];a=[new yY(a.i,b),new BY(a.i,e)];return{slotId:e,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:c,wc:f,pc:a,ib:"core",Ja:new jX([new jI(d({slotId:e,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",Wb:c,wc:f,pc:a}))])}}; uCa=function(a,b,c,d,e,f){b=GY(a,b,c,d);if(b instanceof FX)return b;var h=b instanceof lY?new xY(a.i,c,b.i):null;d=fY(a.l.get(),"SLOT_TYPE_IN_PLAYER");var l=[new AY(a.i,d)];a=[new yY(a.i,c),new BY(a.i,d)];f=f({slotId:d,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",Wb:b,wc:l,pc:a},h);return f instanceof xX?new FX(f):{slotId:d,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:b,wc:l,pc:a,ib:"core",Ja:new jX([new jI(f)]),adSlotLoggingData:e}}; hCa=function(a,b,c,d){var e=fY(a.l.get(),"SLOT_TYPE_IN_PLAYER");c=new wY(a.i,c);var f=[new AY(a.i,e)],h=[new BY(a.i,e),new yY(a.i,b)];f={slotId:e,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",Wb:c,wc:f,pc:h};return{slotId:e,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:c,wc:[new AY(a.i,e)],pc:[new yY(a.i,b),new BY(a.i,e)],ib:"core",Ja:new jX([new jI(d(f))])}}; fCa=function(a,b,c,d,e){var f=fY(a.l.get(),"SLOT_TYPE_IN_PLAYER");c=new vY(a.i,d,c);d=[new AY(a.i,f)];a=[new yY(a.i,b)];return{slotId:f,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:c,wc:d,pc:a,ib:"core",Ja:new jX([new jI(e({slotId:f,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",Wb:c,wc:d,pc:a}))])}}; ZBa=function(a,b,c,d,e,f){var h=fY(a.l.get(),b);return ZCa(a,h,b,new wY(a.i,d),c,e,d,f)}; YBa=function(a,b,c,d,e,f,h){return ZCa(a,c,b,new zY(a.i,c),d,f,e,h)}; kCa=function(a,b,c){var d=fY(a.l.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new UCa(a.i),f=[new EY(a.i,d)];a=[new yY(a.i,b)];return{slotId:d,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Wb:e,wc:f,pc:a,ib:"core",Ja:new jX([new jI(c({slotId:d,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,ib:"core",Wb:e,wc:f,pc:a})),new fI({})])}}; FCa=function(a,b,c,d,e,f){a=ICa(a,b,c,d);if(a instanceof FX)return a;f=f({slotId:a.slotId,ob:a.ob,slotPhysicalPosition:a.slotPhysicalPosition,Wb:a.Wb,wc:a.wc,pc:a.pc,ib:a.ib});return f instanceof FX?f:{bC:{slotId:a.slotId,ob:a.ob,slotPhysicalPosition:a.slotPhysicalPosition,Wb:a.Wb,wc:a.wc,pc:a.pc,ib:a.ib,Ja:new jX([new jI(f.layout)]),adSlotLoggingData:e},il:f.il}}; ICa=function(a,b,c,d){var e=fY(a.l.get(),"SLOT_TYPE_PLAYER_BYTES");b=GY(a,b,c,d);if(b instanceof FX)return b;d=[new AY(a.i,e)];a=[new BY(a.i,e),new yY(a.i,c)];return{slotId:e,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Wb:b,wc:d,pc:a,ib:"core"}}; sCa=function(a,b,c,d,e,f){var h=fY(a.l.get(),"SLOT_TYPE_FORECASTING");b=GY(a,b,c,d);if(b instanceof FX)return b;d=[new AY(a.i,h)];a=[new BY(a.i,h),new yY(a.i,c)];return{slotId:h,ob:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Wb:b,wc:d,pc:a,ib:"core",Ja:new jX([new jI(f({slotId:h,ob:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,ib:"core",Wb:b,wc:d,pc:a}))]),adSlotLoggingData:e}}; GY=function(a,b,c,d){var e=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new Dv(a.i,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return b=TBa(b,d),b instanceof FX?b:new lY(a.i,c,b.ck,e);case "AD_PLACEMENT_KIND_END":return new uY(a.i,c,e);default:return new FX("Cannot construct entry trigger",{kind:b.kind})}}; ZCa=function(a,b,c,d,e,f,h,l){var m=[new EY(a.i,b)];a=[new yY(a.i,e),new BY(a.i,b),new cY(a.i,h)];return{slotId:b,ob:c,slotPhysicalPosition:1,Wb:d,wc:m,pc:a,ib:"core",Ja:new jX([new jI(l({slotId:b,ob:c,slotPhysicalPosition:1,ib:"core",Wb:d,wc:m,pc:a}))]),adSlotLoggingData:f}}; HY=function(a,b,c){g.F.call(this);this.Pa=a;this.l=b;this.i=c;this.eventCount=0}; CI=function(a,b,c){kY(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)}; wX=function(a,b,c,d){kY(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,void 0,d?d.adLayoutLoggingData:void 0)}; EBa=function(a,b,c,d){g.R(a.Pa.get().I.T().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs")&&kY(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,void 0,d?d.adLayoutLoggingData:void 0)}; kY=function(a,b,c,d,e,f,h,l,m,n){if(g.R(a.Pa.get().I.T().experiments,"html5_enable_ads_client_monitoring_log")&&!g.R(a.Pa.get().I.T().experiments,"html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var p=nX(a.l.get());b={eventType:b,eventOrder:++a.eventCount};var r,t={organicPlaybackContext:{contentCpn:Av(a.i.get(),1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=Av(a.i.get(),1).Sj;var u=null===(r=Av(a.i.get(),2))||void 0===r?void 0:r.clientPlaybackNonce;u&& (t.adVideoPlaybackContext={adVideoCpn:u});a=g.S(a.Pa.get().I.T().experiments,"html5_experiment_id_label");0=.25*d||c)&&lZ(a.i,"first_quartile"),(b>=.5*d||c)&&lZ(a.i,"midpoint"),(b>=.75*d||c)&&lZ(a.i,"third_quartile"),a=a.bb,b*=1E3,c=a.G())){for(;a.BjH(c,4)&&!(0>jH(c,2))&&a.i.Be("resume"),g.kH(c,16)&&.5<=a.Ga.get().getCurrentTimeSec(2,!1)&&a.i.Be("seek"),g.kH(c,2)&&cEa(a,c.state,b))}; cEa=function(a,b,c){var d,e=X(a.layout.Ja,"metadata_type_video_length_seconds"),f=OY(a.Pa.get())?null!==(d=c.Bw)&&void 0!==d?d:0:a.Ga.get().getCurrentTimeSec(2,!1),h=1>=Math.abs(e-f);eEa(a,b,h?e:f,c.Bw);h&&lZ(a.i,"complete")}; eEa=function(a,b,c,d){uDa(a.i,1E3*c);var e=X(a.layout.Ja,"metadata_type_video_length_seconds");0>=e||0>=c||(null===b||void 0===b?0:g.T(b,16))||(null===b||void 0===b?0:g.T(b,32))||(BZ(c,.25*e,d)&&lZ(a.i,"first_quartile"),BZ(c,.5*e,d)&&lZ(a.i,"midpoint"),BZ(c,.75*e,d)&&lZ(a.i,"third_quartile"))}; e_=function(a){return{enterMs:X(a.Ja,"metadata_type_layout_enter_ms"),exitMs:X(a.Ja,"metadata_type_layout_exit_ms")}}; f_=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,A,E){this.qe=a;this.Y=b;this.l=c;this.u=d;this.Ga=e;this.Wa=f;this.X=h;this.J=l;this.i=m;this.B=n;this.qd=p;this.L=r;this.ld=t;this.Dc=u;this.C=x;this.G=y;this.U=A;this.Pa=E}; g_=function(a,b,c,d,e,f,h){g.F.call(this);var l=this;this.B=a;this.C=b;this.u=c;this.l=e;this.Ga=f;this.Pa=h;this.i=null;d.get().addListener(this);g.Bi(this,function(){d.get().removeListener(l)}); e.get().addListener(this);g.Bi(this,function(){e.get().removeListener(l)})}; NCa=function(a,b){if(Av(a.u.get(),1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===b.adPlacementRenderer.config.adPlacementConfig.kind)if(a.i)Q("Unexpected multiple fetch instructions for the current content");else{a.i=b;b=g.q(a.l.get().Px);for(var c=b.next();!c.done;c=b.next())fEa(a,a.i,c.value)}}; fEa=function(a,b,c){var d=a.Ga.get().getCurrentTimeSec(1,!1);yv(a.B.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.C.get(),f=OY(a.Pa.get());var h=1E3*c.startSecs;h={ck:new Kn(h,h+1E3*c.durationSecs),ix:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new Kn(1E3*(c.startSecs-4),1E3*l);else{var m=Math.max(0,c.startSecs-d-10);f=new Kn(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}h.Yp=f;return[UBa(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer, b.contentCpn,h,b.adPlacementRenderer.adSlotLoggingData,[new ZH(c)])]})}; h_=function(a){g.F.call(this);this.i=a;this.Eb=new Map}; i_=function(a,b){for(var c=[],d=g.q(a.Eb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.i===b.layoutId&&c.push(e);c.length&&DX(a.i(),c)}; j_=function(a,b){var c;g.F.call(this);var d=this;this.B=a;this.l=new Map;this.u=new Map;this.i=null;b.get().addListener(this);g.Bi(this,function(){b.get().removeListener(d)}); this.i=(null===(c=b.get().Qn)||void 0===c?void 0:c.slotId)||null}; gEa=function(a,b){var c=[];a=g.q(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c}; k_=function(a,b,c,d){g.F.call(this);this.I=a;this.B=b;this.Pa=c;this.Wa=d;this.listeners=[];this.i=new Set;this.Px=[];this.u=new GI(this,aDa(c.get()));this.l=new HI;hEa(this)}; $Da=function(a,b,c){return Eka(a.l,b,c)}; hEa=function(a){var b,c=a.I.getVideoData(1);c.subscribe("cuepointupdated",a.KB,a);a.i.clear();a.Px.length=0;c=(null===(b=c.i)||void 0===b?void 0:$B(b,0))||[];a.KB(c)}; iEa=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";default:throw Error("Unexpected cuepoint event");}}; l_=function(a){this.I=a}; m_=function(){this.listeners=new Set}; jEa=function(a,b,c,d,e){gH.call(this,"image-companion",a,b,c,d,e)}; n_=function(a,b,c,d,e,f,h,l){nZ.call(this,a,b,c,d);this.Wa=e;this.qe=f;this.G=l;this.Bi=!0;this.u=null;this.B=X(c.Ja,"metadata_type_linked_player_bytes_layout_id");rX(this.qe(),this);a=X(c.Ja,"metadata_type_ad_placement_config");this.C=new iZ(c.Cc,this.Wa,a,c.layoutId)}; kEa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];jZ().forEach(function(b){a.push(b)}); return{Ud:a,sf:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; lEa=function(a,b,c,d,e){gH.call(this,"shopping-companion",a,b,c,d,e)}; o_=function(a,b,c,d,e,f,h,l){nZ.call(this,a,b,c,d);this.Wa=e;this.qe=f;this.G=l;this.Bi=!0;this.u=null;this.B=X(c.Ja,"metadata_type_linked_player_bytes_layout_id");rX(this.qe(),this);a=X(c.Ja,"metadata_type_ad_placement_config");this.C=new iZ(c.Cc,this.Wa,a,c.layoutId)}; mEa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];jZ().forEach(function(b){a.push(b)}); return{Ud:a,sf:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; nEa=function(a,b,c,d,e){this.i=a;this.Wa=b;this.qe=c;this.l=d;this.u=e}; p_=function(a,b,c,d,e){nZ.call(this,c,a,b,d);this.Wa=e;a=X(b.Ja,"metadata_type_ad_placement_config");this.u=new iZ(b.Cc,e,a,b.layoutId)}; q_=function(a){return Math.round(a.width)+"x"+Math.round(a.height)}; s_=function(a,b,c){c=void 0===c?r_:c;c.widtha.width*a.height*.2)return{by:3,Au:501,errorMessage:"ad("+q_(c)+") to container("+q_(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{by:3,Au:501,errorMessage:"ad("+q_(c)+") covers container("+q_(a)+") center."}}; oEa=function(a,b){var c=X(a.Ja,"metadata_type_ad_placement_config");return new iZ(a.Cc,b,c,a.layoutId)}; t_=function(a){return X(a.Ja,"metadata_type_invideo_overlay_ad_renderer")}; u_=function(a,b,c,d){gH.call(this,"invideo-overlay",a,b,c,d);this.i=d}; v_=function(a,b,c,d,e,f,h,l,m,n,p,r){nZ.call(this,f,a,b,e);this.Wa=c;this.u=h;this.Ga=l;this.G=m;this.Pa=n;this.Ad=p;this.B=r;this.J=oEa(b,c)}; pEa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];jZ().forEach(function(b){a.push(b)}); return{Ud:a,sf:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; w_=function(a,b,c,d,e,f,h,l,m,n,p,r,t){nZ.call(this,f,a,b,e);this.Wa=c;this.u=h;this.G=l;this.Ga=m;this.J=n;this.Pa=p;this.Ad=r;this.B=t;this.L=oEa(b,c)}; qEa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.q(jZ()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Ud:a,sf:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; x_=function(a){this.Ga=a;this.i=!1}; y_=function(a,b,c,d,e,f){nZ.call(this,c,a,b,d);this.u=e;this.Ga=f}; rEa=function(a,b,c,d,e,f,h,l,m,n){this.i=a;this.Ga=b;this.Wa=c;this.G=d;this.B=e;this.l=f;this.C=h;this.u=l;this.Pa=m;this.Ad=n}; z_=function(a){g.F.call(this);this.u=a;this.Bi=!0;this.Eb=new Map;this.i=new Map;this.l=new Map}; sEa=function(a,b){var c=[];if(b=a.i.get(b.layoutId)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())(d=a.l.get(d.value.triggerId))&&c.push(d)}return c}; A_=function(a,b,c){g.F.call(this);this.u=a;this.B=b;this.C=c;this.i=this.l=void 0;this.B.get().addListener(this)}; tEa=function(a,b,c,d,e){g.F.call(this);var f=this;this.Y=Y(function(){return new oY}); g.G(this,this.Y);this.Ea=Y(function(){return new sY(f.Y)}); g.G(this,this.Ea);this.B=Y(function(){return new nY}); g.G(this,this.B);this.G=Y(function(){return new jY(a)}); g.G(this,this.G);this.J=Y(function(){return new FY(f.Y)}); g.G(this,this.J);this.Bb=Y(function(){return new IY}); g.G(this,this.Bb);this.Pb=Y(function(){return new hH(b.T())}); g.G(this,this.Pb);this.ma=Y(function(){return new ZZ(b)}); g.G(this,this.ma);this.Qa=Y(function(){return new YY(e)}); g.G(this,this.Qa);this.ld=Y(function(){return new LI(b)}); g.G(this,this.ld);this.Aa=Y(function(){return new KY(b)}); g.G(this,this.Aa);this.qd=Y(function(){return new a_(b)}); g.G(this,this.qd);this.Dc=Y(function(){return new LY(b)}); g.G(this,this.Dc);this.Pa=Y(function(){return new MY(b)}); g.G(this,this.Pa);this.Ib=Y(function(){return new YZ(d)}); g.G(this,this.Ib);this.u=Y(function(){return new pX(f.Pa)}); g.G(this,this.u);this.Ha=Y(function(){return new hY(f.J,f.Ea,f.Pa,f.u,"SLOT_TYPE_ABOVE_FEED",f.Ya)}); g.G(this,this.Ha);this.qc=Y(function(){return new b_(b)}); g.G(this,this.qc);this.eb=Y(function(){return new c_}); g.G(this,this.eb);this.bb=Y(function(){return new m_}); g.G(this,this.bb);this.i=Y(function(){return new WY(b,f.Bb,f.Pa)}); g.G(this,this.i);this.Zb=new HY(this.Pa,this.u,this.i);g.G(this,this.Zb);this.xa=Y(function(){return new k_(b,f.i,f.Pa,f.Wa)}); g.G(this,this.xa);this.rb=Y(function(){return new l_(b)}); g.G(this,this.rb);this.Ga=Y(function(){return new XY(b)}); g.G(this,this.Ga);this.Td=Y(function(){return new ZY}); this.X=Y(function(){return new PY(f.Ga,b)}); g.G(this,this.X);this.Wa=Y(function(){return new RY(b,f.B,f.X,f.i)}); g.G(this,this.Wa);this.Gc=new KZ(LZ,B_,function(l,m,n,p){return tY(f.Ea.get(),l,m,n,p)},this.G,this.J,this.u,this.Pa,this.i); g.G(this,this.Gc);this.lc=new Ev(this.G,this.Ha,c,this.Pa,a,this.i,this.Ga);g.G(this,this.lc);var h=new JY(b,this.lc,this.Ga,this.xa);this.Va=Y(function(){return h}); this.dl=h;this.Ya=new g_(this.G,this.J,this.i,this.Va,this.xa,this.Ga,this.Pa);g.G(this,this.Ya);this.vb=new mY(this.G,this.J,this.Aa,this.Va);g.G(this,this.vb);this.tc=new xv(this.G,this.J,this.Ha,this.i,this.vb,c);g.G(this,this.tc);this.Mb=Y(function(){return new eZ(f.Ib,f.Ea,f.u,f.rb)}); g.G(this,this.Mb);this.L=Y(function(){return new fZ}); g.G(this,this.L);this.va=new QZ(a,this.ma);g.G(this,this.va);this.l=new RZ(a);g.G(this,this.l);this.Oa=new h_(a);g.G(this,this.Oa);this.Xa=new SZ(a,this.Va,this.Pa);g.G(this,this.Xa);this.Fa=new TZ(a,this.Aa,this.Ga,this.i);g.G(this,this.Fa);this.qb=new j_(a,this.i);g.G(this,this.qb);this.C=new VZ(a);g.G(this,this.C);this.xc=new WZ(a);g.G(this,this.xc);this.zb=new z_(a);g.G(this,this.zb);this.U=Y(function(){return new MZ}); g.G(this,this.U);this.cd=Y(function(){return new NZ(f.Ga)}); g.G(this,this.cd);this.Tc=Y(function(){return new nEa(f.ma,f.Wa,a,f.B,f.X)}); g.G(this,this.Tc);this.Lb=Y(function(){return new hZ(f.tc)}); g.G(this,this.Lb);this.Sb=Y(function(){return new mZ(f.Wa,f.C)}); g.G(this,this.Sb);this.Ac=Y(function(){return new f_(a,f.C,f.i,f.rb,f.Ga,f.Wa,f.Bb,f.xa,f.X,f.Td,f.qd,f.Aa,f.ld,f.Dc,f.Pb,f.Qa,f.qc,f.Pa)}); g.G(this,this.Ac);this.Xb=Y(function(){return new rEa(f.ma,f.Ga,f.Wa,f.B,f.X,f.Oa,f.zb,f.Qa,f.Pa,c)}); g.G(this,this.Xb);this.Xc=new A_(a,this.bb,this.Y);g.G(this,this.Xc);this.dd=new XZ(a,this.eb,this.u,this.i,this.Pa,this.Y);g.G(this,this.dd);this.yd={No:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ya],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Gc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.vb]]),Nk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.Mb],["SLOT_TYPE_ABOVE_FEED",this.L],["SLOT_TYPE_FORECASTING",this.L],["SLOT_TYPE_IN_PLAYER",this.L],["SLOT_TYPE_PLAYER_BYTES",this.L]]),ph:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.va],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.va],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.l],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.l],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.l],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.l],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.l],["TRIGGER_TYPE_SLOT_ID_EXITED",this.l], ["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.l],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.l],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.l],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.l],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Oa],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xa],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Fa],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Fa],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Fa],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.qb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED", this.qb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.C],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.C],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xc],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.zb]]),ul:new Map([["SLOT_TYPE_ABOVE_FEED",this.U],["SLOT_TYPE_AD_BREAK_REQUEST",this.U],["SLOT_TYPE_FORECASTING",this.U],["SLOT_TYPE_IN_PLAYER",this.U],["SLOT_TYPE_PLAYER_BYTES",this.cd]]),Xk:new Map([["SLOT_TYPE_ABOVE_FEED", this.Tc],["SLOT_TYPE_AD_BREAK_REQUEST",this.Lb],["SLOT_TYPE_FORECASTING",this.Sb],["SLOT_TYPE_PLAYER_BYTES",this.Ac],["SLOT_TYPE_IN_PLAYER",this.Xb]])};this.listeners=[this.B.get()];this.le={tc:this.tc,Aj:this.C,Zk:this.eb.get(),bh:this.Pa.get(),Gm:this.Ga.get(),lc:this.lc,Yk:this.bb.get(),Lh:this.va,Hg:this.B.get()}}; uEa=function(a,b,c,d,e,f,h,l,m,n){this.i=a;this.Ga=b;this.Wa=c;this.G=d;this.B=e;this.l=f;this.C=h;this.u=l;this.Pa=m;this.Ad=n}; vEa=function(a,b,c,d,e){g.F.call(this);var f=this;this.B=Y(function(){return new oY}); g.G(this,this.B);this.va=Y(function(){return new sY(f.B)}); g.G(this,this.va);this.C=Y(function(){return new nY}); g.G(this,this.C);this.J=Y(function(){return new jY(a)}); g.G(this,this.J);this.L=Y(function(){return new FY(f.B)}); g.G(this,this.L);this.xc=Y(function(){return new IY}); g.G(this,this.xc);this.vb=Y(function(){return new hH(b.T())}); g.G(this,this.vb);this.Fa=Y(function(){return new ZZ(b)}); g.G(this,this.Fa);this.Oa=Y(function(){return new YY(e)}); g.G(this,this.Oa);this.ld=Y(function(){return new LI(b)}); g.G(this,this.ld);this.U=Y(function(){return new KY(b)}); g.G(this,this.U);this.qd=Y(function(){return new a_(b)}); g.G(this,this.qd);this.Dc=Y(function(){return new LY(b)}); g.G(this,this.Dc);this.Pa=Y(function(){return new MY(b)}); g.G(this,this.Pa);this.eb=Y(function(){return new YZ(d)}); g.G(this,this.eb);this.u=Y(function(){return new pX(f.Pa)}); g.G(this,this.u);this.Aa=Y(function(){return new hY(f.L,f.va,f.Pa,f.u,null,null)}); g.G(this,this.Aa);this.Lb=Y(function(){return new b_(b)}); g.G(this,this.Lb);this.Xa=Y(function(){return new c_}); g.G(this,this.Xa);this.Va=Y(function(){return new m_}); g.G(this,this.Va);this.l=Y(function(){return new WY(b,f.xc,f.Pa)}); g.G(this,this.l);this.Zb=new HY(this.Pa,this.u,this.l);g.G(this,this.Zb);this.Ga=Y(function(){return new XY(b)}); g.G(this,this.Ga);this.xa=Y(function(){return new PY(f.Ga,b)}); g.G(this,this.xa);this.Wa=Y(function(){return new RY(b,f.C,f.xa,f.l)}); g.G(this,this.Wa);this.qc=Y(function(){return new ZY}); g.G(this,this.qc);this.Sb=new KZ(LZ,B_,function(l,m,n,p){return tY(f.va.get(),l,m,n,p)},this.J,this.L,this.u,this.Pa,this.l); g.G(this,this.Sb);this.lc=new Ev(this.J,this.Aa,c,this.Pa,a,this.l,this.Ga);g.G(this,this.lc);var h=new JY(b,this.lc,this.Ga);this.zb=Y(function(){return h}); this.dl=h;this.Ya=new mY(this.J,this.L,this.U,this.zb);g.G(this,this.Ya);this.tc=new xv(this.J,this.L,this.Aa,this.l,this.Ya,c);g.G(this,this.tc);this.rb=Y(function(){return new eZ(f.eb,f.va,f.u)}); g.G(this,this.rb);this.X=Y(function(){return new fZ}); g.G(this,this.X);this.Ea=new QZ(a,this.Fa);g.G(this,this.Ea);this.i=new RZ(a);g.G(this,this.i);this.Ha=new h_(a);g.G(this,this.Ha);this.Qa=new SZ(a,this.zb,this.Pa);g.G(this,this.Qa);this.Y=new TZ(a,this.U,this.Ga,this.l);g.G(this,this.Y);this.G=new VZ(a);g.G(this,this.G);this.Mb=new WZ(a);g.G(this,this.Mb);this.bb=new z_(a);g.G(this,this.bb);this.ma=Y(function(){return new MZ}); g.G(this,this.ma);this.Xb=Y(function(){return new NZ(f.Ga)}); g.G(this,this.Xb);this.qb=Y(function(){return new hZ(f.tc)}); g.G(this,this.qb);this.Bb=Y(function(){return new mZ(f.Wa,f.G)}); g.G(this,this.Bb);this.Ib=Y(function(){return new uEa(f.Fa,f.Ga,f.Wa,f.C,f.xa,f.Ha,f.bb,f.Oa,f.Pa,c)}); g.G(this,this.Ib);this.Pb=Y(function(){return new JZ(a,f.G,f.Wa,f.xa,f.qc,f.qd,f.l,f.Ga,f.U,f.ld,f.Dc,f.vb,f.Oa,f.Lb,f.Pa)}); g.G(this,this.Pb);this.Ac=new A_(a,this.Va,this.B);g.G(this,this.Ac);this.Gc=new XZ(a,this.Xa,this.u,this.l,this.Pa,this.B);g.G(this,this.Gc);this.yd={No:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ya]]),Nk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rb],["SLOT_TYPE_FORECASTING",this.X],["SLOT_TYPE_IN_PLAYER", this.X],["SLOT_TYPE_PLAYER_BYTES",this.X]]),ph:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ea],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.i],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.i],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_EXITED",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.i], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.i],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ha],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Qa],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Y],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Y],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Y],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.G],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.G],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Qa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED", this.Mb],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.bb]]),ul: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.Xb]]),Xk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qb],["SLOT_TYPE_FORECASTING",this.Bb],["SLOT_TYPE_IN_PLAYER",this.Ib],["SLOT_TYPE_PLAYER_BYTES",this.Pb]])};this.listeners=[this.C.get()];this.le={tc:this.tc,Aj:null,Zk:this.Xa.get(),bh:this.Pa.get(),Gm:this.Ga.get(),lc:this.lc,Yk:this.Va.get(), Lh:this.Ea,Hg:this.C.get()}}; wEa=function(a,b,c,d,e){g.F.call(this);var f=this;this.X=Y(function(){return new oY}); g.G(this,this.X);this.ma=Y(function(){return new sY(f.X)}); g.G(this,this.ma);this.C=Y(function(){return new nY}); g.G(this,this.C);this.J=Y(function(){return new jY(a)}); g.G(this,this.J);this.L=Y(function(){return new FY(f.X)}); g.G(this,this.L);this.Pb=Y(function(){return new IY}); g.G(this,this.Pb);this.bb=Y(function(){return new hH(b.T())}); g.G(this,this.bb);this.xa=Y(function(){return new ZZ(b)}); g.G(this,this.xa);this.eb=Y(function(){return new YY(e)}); g.G(this,this.eb);this.ld=Y(function(){return new LI(b)}); g.G(this,this.ld);this.U=Y(function(){return new KY(b)}); g.G(this,this.U);this.qd=Y(function(){return new a_(b)}); g.G(this,this.qd);this.Dc=Y(function(){return new LY(b)}); g.G(this,this.Dc);this.Pa=Y(function(){return new MY(b)}); g.G(this,this.Pa);this.Va=Y(function(){return new YZ(d)}); g.G(this,this.Va);this.u=Y(function(){return new pX(f.Pa)}); g.G(this,this.u);this.va=Y(function(){return new hY(f.L,f.ma,f.Pa,f.u,null,null)}); g.G(this,this.va);this.vb=Y(function(){return new b_(b)}); g.G(this,this.vb);this.Ha=Y(function(){return new c_}); g.G(this,this.Ha);this.l=Y(function(){return new WY(b,f.Pb,f.Pa)}); g.G(this,this.l);this.Zb=new HY(this.Pa,this.u,this.l);g.G(this,this.Zb);this.Ga=Y(function(){return new XY(b)}); g.G(this,this.Ga);this.Oa=Y(function(){return new PY(f.Ga,b)}); g.G(this,this.Oa);this.Wa=Y(function(){return new RY(b,f.C,f.Oa,f.l)}); g.G(this,this.Wa);this.Mb=Y(function(){return new ZY}); g.G(this,this.Mb);this.Ib=new KZ(LZ,B_,function(l,m,n,p){return tY(f.ma.get(),l,m,n,p)},this.J,this.L,this.u,this.Pa,this.l); g.G(this,this.Ib);this.lc=new Ev(this.J,this.va,c,this.Pa,a,this.l,this.Ga);g.G(this,this.lc);var h=new JY(b,this.lc,this.Ga);this.qb=Y(function(){return h}); this.dl=h;this.Qa=new mY(this.J,this.L,this.U,this.qb);g.G(this,this.Qa);this.tc=new xv(this.J,this.L,this.va,this.l,this.Qa,c);g.G(this,this.tc);this.Ya=Y(function(){return new eZ(f.Va,f.ma,f.u)}); g.G(this,this.Ya);this.Y=Y(function(){return new fZ}); g.G(this,this.Y);this.Aa=new QZ(a,this.xa);g.G(this,this.Aa);this.i=new RZ(a);g.G(this,this.i);this.Fa=new SZ(a,this.qb,this.Pa);g.G(this,this.Fa);this.Ea=new TZ(a,this.U,this.Ga,this.l);g.G(this,this.Ea);this.G=new VZ(a);g.G(this,this.G);this.zb=new WZ(a);g.G(this,this.zb);this.B=Y(function(){return new MZ}); g.G(this,this.B);this.Lb=Y(function(){return new NZ(f.Ga)}); g.G(this,this.Lb);this.Xa=Y(function(){return new hZ(f.tc)}); g.G(this,this.Xa);this.rb=Y(function(){return new mZ(f.Wa,f.G)}); g.G(this,this.rb);this.Sb=Y(function(){return new uZ(f.xa,f.Ga,f.Wa,f.C,c)}); g.G(this,this.Sb);this.Bb=Y(function(){return new JZ(a,f.G,f.Wa,f.Oa,f.Mb,f.qd,f.l,f.Ga,f.U,f.ld,f.Dc,f.bb,f.eb,f.vb,f.Pa)}); g.G(this,this.Bb);this.Xb=new XZ(a,this.Ha,this.u,this.l,this.Pa,this.X);g.G(this,this.Xb);this.yd={No:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ib],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Qa]]),Nk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ya],["SLOT_TYPE_FORECASTING",this.Y],["SLOT_TYPE_IN_PLAYER",this.Y],["SLOT_TYPE_PLAYER_BYTES", this.Y]]),ph:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Aa],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.i],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.i],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_EXITED",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.i],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.Fa],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ea],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ea],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.G],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.G],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Fa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.zb]]),ul:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.B],["SLOT_TYPE_ABOVE_FEED",this.B],["SLOT_TYPE_FORECASTING",this.B],["SLOT_TYPE_IN_PLAYER",this.B],["SLOT_TYPE_PLAYER_BYTES",this.Lb]]), Xk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xa],["SLOT_TYPE_FORECASTING",this.rb],["SLOT_TYPE_IN_PLAYER",this.Sb],["SLOT_TYPE_PLAYER_BYTES",this.Bb]])};this.listeners=[this.C.get()];this.le={tc:this.tc,Aj:null,Zk:this.Ha.get(),bh:this.Pa.get(),Gm:this.Ga.get(),lc:this.lc,Yk:null,Lh:this.Aa,Hg:this.C.get()}}; xEa=function(a,b,c,d,e){g.F.call(this);var f=this;this.X=Y(function(){return new oY}); g.G(this,this.X);this.ma=Y(function(){return new sY(f.X)}); g.G(this,this.ma);this.B=Y(function(){return new nY}); g.G(this,this.B);this.G=Y(function(){return new jY(a)}); g.G(this,this.G);this.J=Y(function(){return new FY(f.X)}); g.G(this,this.J);this.Sb=Y(function(){return new IY}); g.G(this,this.Sb);this.Ya=Y(function(){return new hH(b.T())}); g.G(this,this.Ya);this.xa=Y(function(){return new ZZ(b)}); g.G(this,this.xa);this.bb=Y(function(){return new YY(e)}); g.G(this,this.bb);this.ld=Y(function(){return new LI(b)}); g.G(this,this.ld);this.L=Y(function(){return new KY(b)}); g.G(this,this.L);this.qd=Y(function(){return new a_(b)}); g.G(this,this.qd);this.Dc=Y(function(){return new LY(b)}); g.G(this,this.Dc);this.Pa=Y(function(){return new MY(b)}); g.G(this,this.Pa);this.Qa=Y(function(){return new YZ(d)}); g.G(this,this.Qa);this.u=Y(function(){return new pX(f.Pa)}); g.G(this,this.u);this.va=Y(function(){return new hY(f.J,f.ma,f.Pa,f.u,null,null)}); g.G(this,this.va);this.zb=Y(function(){return new b_(b)}); g.G(this,this.zb);this.Ea=Y(function(){return new c_}); g.G(this,this.Ea);this.l=Y(function(){return new WY(b,f.Sb,f.Pa)}); g.G(this,this.l);this.Zb=new HY(this.Pa,this.u,this.l);g.G(this,this.Zb);this.Ga=Y(function(){return new XY(b)}); g.G(this,this.Ga);this.Ha=Y(function(){return new PY(f.Ga,b)}); g.G(this,this.Ha);this.Wa=Y(function(){return new RY(b,f.B,f.Ha,f.l)}); g.G(this,this.Wa);this.Pb=Y(function(){return new ZY}); g.G(this,this.Pb);this.Lb=new KZ(LZ,B_,function(l,m,n,p){return tY(f.ma.get(),l,m,n,p)},this.G,this.J,this.u,this.Pa,this.l); g.G(this,this.Lb);this.lc=new Ev(this.G,this.va,c,this.Pa,a,this.l,this.Ga);g.G(this,this.lc);var h=new JY(b,this.lc,this.Ga);this.eb=Y(function(){return h}); this.dl=h;this.Oa=new mY(this.G,this.J,this.L,this.eb);g.G(this,this.Oa);this.tc=new xv(this.G,this.J,this.va,this.l,this.Oa,c);g.G(this,this.tc);this.Xa=Y(function(){return new eZ(f.Qa,f.ma,f.u)}); g.G(this,this.Xa);this.U=Y(function(){return new fZ}); g.G(this,this.U);this.Aa=new QZ(a,this.xa);g.G(this,this.Aa);this.i=new RZ(a);g.G(this,this.i);this.Fa=new SZ(a,this.eb,this.Pa);g.G(this,this.Fa);this.qb=new TZ(a,this.L,this.Ga,this.l);g.G(this,this.qb);this.C=new VZ(a);g.G(this,this.C);this.Bb=new WZ(a);g.G(this,this.Bb);this.Y=Y(function(){return new MZ}); g.G(this,this.Y);this.Mb=Y(function(){return new NZ(f.Ga)}); g.G(this,this.Mb);this.Va=Y(function(){return new hZ(f.tc)}); g.G(this,this.Va);this.rb=Y(function(){return new mZ(f.Wa,f.C)}); g.G(this,this.rb);this.vb=Y(function(){return new uZ(f.xa,f.Ga,f.Wa,f.B,c)}); g.G(this,this.vb);this.Ib=Y(function(){return new JZ(a,f.C,f.Wa,f.Ha,f.Pb,f.qd,f.l,f.Ga,f.L,f.ld,f.Dc,f.Ya,f.bb,f.zb,f.Pa)}); g.G(this,this.Ib);this.Xb=new XZ(a,this.Ea,this.u,this.l,this.Pa,this.X);g.G(this,this.Xb);this.yd={No:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Lb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Oa]]),Nk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xa],["SLOT_TYPE_FORECASTING",this.U],["SLOT_TYPE_IN_PLAYER",this.U],["SLOT_TYPE_PLAYER_BYTES", this.U]]),ph:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Aa],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.i],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.i],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_EXITED",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.i],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.Fa],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.qb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.C],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.C],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Fa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Bb]]),ul:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Y],["SLOT_TYPE_FORECASTING",this.Y],["SLOT_TYPE_IN_PLAYER",this.Y],["SLOT_TYPE_PLAYER_BYTES",this.Mb]]),Xk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Va],["SLOT_TYPE_FORECASTING", this.rb],["SLOT_TYPE_IN_PLAYER",this.vb],["SLOT_TYPE_PLAYER_BYTES",this.Ib]])};this.listeners=[this.B.get()];this.le={tc:this.tc,Aj:null,Zk:this.Ea.get(),bh:this.Pa.get(),Gm:this.Ga.get(),lc:this.lc,Yk:null,Lh:this.Aa,Hg:this.B.get()}}; C_=function(a,b,c,d,e,f,h,l,m){sZ.call(this,a,b,c,d,e,f,h,m);this.G=l}; yEa=function(){var a=ADa();a.Ud.push("metadata_type_ad_info_ad_metadata");return a}; zEa=function(a,b,c,d,e,f){this.l=a;this.Ga=b;this.Wa=c;this.u=d;this.i=e;this.Ad=f}; AEa=function(a,b,c,d,e){g.F.call(this);var f=this;this.X=Y(function(){return new oY}); g.G(this,this.X);this.ma=Y(function(){return new sY(f.X)}); g.G(this,this.ma);this.B=Y(function(){return new nY}); g.G(this,this.B);this.G=Y(function(){return new jY(a)}); g.G(this,this.G);this.J=Y(function(){return new FY(f.X)}); g.G(this,this.J);this.Sb=Y(function(){return new IY}); g.G(this,this.Sb);this.bb=Y(function(){return new WDa(b)}); g.G(this,this.bb);this.eb=Y(function(){return new hH(b.T())}); g.G(this,this.eb);this.xa=Y(function(){return new ZZ(b)}); g.G(this,this.xa);this.qb=Y(function(){return new YY(e)}); g.G(this,this.qb);this.ld=Y(function(){return new LI(b)}); g.G(this,this.ld);this.L=Y(function(){return new KY(b)}); g.G(this,this.L);this.qd=Y(function(){return new a_(b)}); g.G(this,this.qd);this.Dc=Y(function(){return new LY(b)}); g.G(this,this.Dc);this.Pa=Y(function(){return new MY(b)}); g.G(this,this.Pa);this.Va=Y(function(){return new YZ(d)}); g.G(this,this.Va);this.u=Y(function(){return new pX(f.Pa)}); g.G(this,this.u);this.va=Y(function(){return new hY(f.J,f.ma,f.Pa,f.u,null,null)}); g.G(this,this.va);this.zb=Y(function(){return new b_(b)}); g.G(this,this.zb);this.Ha=Y(function(){return new c_}); g.G(this,this.Ha);this.l=Y(function(){return new WY(b,f.Sb,f.Pa)}); g.G(this,this.l);this.Zb=new HY(this.Pa,this.u,this.l);g.G(this,this.Zb);this.Ga=Y(function(){return new XY(b)}); g.G(this,this.Ga);this.Oa=Y(function(){return new PY(f.Ga,b)}); g.G(this,this.Oa);this.Wa=Y(function(){return new RY(b,f.B,f.Oa,f.l)}); g.G(this,this.Wa);this.Pb=Y(function(){return new ZY}); g.G(this,this.Pb);this.Lb=new KZ(MDa,B_,function(l,m,n,p){return TCa(f.ma.get(),l,m,n,p)},this.G,this.J,this.u,this.Pa,this.l); g.G(this,this.Lb);this.lc=new Ev(this.G,this.va,c,this.Pa,a,this.l,this.Ga);g.G(this,this.lc);var h=new JY(b,this.lc,this.Ga);this.rb=Y(function(){return h}); this.dl=h;this.Qa=new mY(this.G,this.J,this.L,this.rb);g.G(this,this.Qa);this.tc=new xv(this.G,this.J,this.va,this.l,this.Qa,c);g.G(this,this.tc);this.Ya=Y(function(){return new eZ(f.Va,f.ma,f.u)}); g.G(this,this.Ya);this.U=Y(function(){return new fZ}); g.G(this,this.U);this.Aa=new QZ(a,this.xa);g.G(this,this.Aa);this.i=new RZ(a);g.G(this,this.i);this.Fa=new SZ(a,this.rb,this.Pa);g.G(this,this.Fa);this.Ea=new TZ(a,this.L,this.Ga,this.l);g.G(this,this.Ea);this.C=new VZ(a);g.G(this,this.C);this.Bb=new WZ(a);g.G(this,this.Bb);this.Y=Y(function(){return new MZ}); g.G(this,this.Y);this.Mb=Y(function(){return new NZ(f.Ga)}); g.G(this,this.Mb);this.Xa=Y(function(){return new hZ(f.tc)}); g.G(this,this.Xa);this.vb=Y(function(){return new mZ(f.Wa,f.C)}); g.G(this,this.vb);this.Ib=Y(function(){return new JZ(a,f.C,f.Wa,f.Oa,f.Pb,f.qd,f.l,f.Ga,f.L,f.ld,f.Dc,f.eb,f.qb,f.zb,f.Pa)}); g.G(this,this.Ib);this.Xb=Y(function(){return new zEa(f.xa,f.Ga,f.Wa,f.B,f.bb,c)}); g.G(this,this.Xb);this.qc=new XZ(a,this.Ha,this.u,this.l,this.Pa,this.X);g.G(this,this.qc);this.yd={No:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Lb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Qa]]),Nk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ya],["SLOT_TYPE_FORECASTING",this.U],["SLOT_TYPE_IN_PLAYER",this.U],["SLOT_TYPE_PLAYER_BYTES", this.U]]),ph:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Aa],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.i],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.i],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_EXITED",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.i],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.Fa],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ea],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ea],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.C],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.C],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Fa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Bb]]),ul:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Y],["SLOT_TYPE_FORECASTING",this.Y],["SLOT_TYPE_IN_PLAYER",this.Y],["SLOT_TYPE_PLAYER_BYTES",this.Mb]]),Xk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.Xa],["SLOT_TYPE_FORECASTING",this.vb],["SLOT_TYPE_IN_PLAYER",this.Xb],["SLOT_TYPE_PLAYER_BYTES",this.Ib]])};this.listeners=[this.B.get()];this.le={tc:this.tc,Aj:null,Zk:this.Ha.get(),bh:this.Pa.get(),Gm:this.Ga.get(),lc:this.lc,Yk:null,Lh:this.Aa,Hg:this.B.get()}}; BEa=function(a,b,c,d,e,f,h){this.i=a;this.Ga=b;this.Wa=c;this.l=d;this.u=e;this.Ad=f;this.Pa=h}; CEa=function(a,b,c,d,e){g.F.call(this);var f=this;this.ma=Y(function(){return new oY}); g.G(this,this.ma);this.va=Y(function(){return new sY(f.ma)}); g.G(this,this.va);this.G=Y(function(){return new nY}); g.G(this,this.G);this.B=Y(function(){return new jY(a)}); g.G(this,this.B);this.C=Y(function(){return new FY(f.ma)}); g.G(this,this.C);this.qb=Y(function(){return new IY}); g.G(this,this.qb);this.Bb=Y(function(){return new WDa(b)}); g.G(this,this.Bb);this.Ib=Y(function(){return new hH(b.T())}); g.G(this,this.Ib);this.Aa=Y(function(){return new ZZ(b)}); g.G(this,this.Aa);this.Lb=Y(function(){return new YY(e)}); g.G(this,this.Lb);this.ld=Y(function(){return new LI(b)}); g.G(this,this.ld);this.U=Y(function(){return new KY(b)}); g.G(this,this.U);this.qd=Y(function(){return new a_(b)}); g.G(this,this.qd);this.Dc=Y(function(){return new LY(b)}); g.G(this,this.Dc);this.Pa=Y(function(){return new MY(b)}); g.G(this,this.Pa);this.rb=Y(function(){return new YZ(d)}); g.G(this,this.rb);this.u=Y(function(){return new pX(f.Pa)}); g.G(this,this.u);this.xa=Y(function(){return new hY(f.C,f.va,f.Pa,f.u,null,f.Oa,3)}); g.G(this,this.xa);this.Sb=Y(function(){return new b_(b)}); g.G(this,this.Sb);this.Va=Y(function(){return new c_}); g.G(this,this.Va);this.i=Y(function(){return new WY(b,f.qb,f.Pa)}); g.G(this,this.i);this.Zb=new HY(this.Pa,this.u,this.i);g.G(this,this.Zb);this.L=Y(function(){return new k_(b,f.i,f.Pa,f.Wa)}); g.G(this,this.L);this.bb=Y(function(){return new l_(b)}); g.G(this,this.bb);this.Ga=Y(function(){return new XY(b)}); g.G(this,this.Ga);this.cd=Y(function(){return new ZY}); this.Xa=Y(function(){return new PY(f.Ga,b)}); g.G(this,this.Xa);this.Wa=Y(function(){return new RY(b,f.G,f.Xa,f.i)}); g.G(this,this.Wa);this.lc=new Ev(this.B,this.xa,c,this.Pa,a,this.i,this.Ga);g.G(this,this.lc);var h=new JY(b,this.lc,this.Ga,this.L);this.Ea=Y(function(){return h}); this.dl=h;this.xc=new KZ(NDa,B_,function(l,m,n,p){return TCa(f.va.get(),l,m,n,p)},this.B,this.C,this.u,this.Pa,this.i); g.G(this,this.xc);this.Oa=new g_(this.B,this.C,this.i,this.Ea,this.L,this.Ga,this.Pa);g.G(this,this.Oa);this.eb=new mY(this.B,this.C,this.U,this.Ea);g.G(this,this.eb);this.tc=new xv(this.B,this.C,this.xa,this.i,this.eb,c);g.G(this,this.tc);this.zb=Y(function(){return new eZ(f.rb,f.va,f.u,f.bb)}); g.G(this,this.zb);this.Y=Y(function(){return new fZ}); g.G(this,this.Y);this.Fa=new QZ(a,this.Aa);g.G(this,this.Fa);this.l=new RZ(a);g.G(this,this.l);this.Ha=new SZ(a,this.Ea,this.Pa);g.G(this,this.Ha);this.Qa=new TZ(a,this.U,this.Ga,this.i);g.G(this,this.Qa);this.Ya=new j_(a,this.i);g.G(this,this.Ya);this.J=new VZ(a);g.G(this,this.J);this.Xb=new WZ(a);g.G(this,this.Xb);this.X=Y(function(){return new MZ}); g.G(this,this.X);this.Ac=Y(function(){return new NZ(f.Ga)}); g.G(this,this.Ac);this.vb=Y(function(){return new hZ(f.tc)}); g.G(this,this.vb);this.Mb=Y(function(){return new mZ(f.Wa,f.J)}); g.G(this,this.Mb);this.qc=Y(function(){return new f_(a,f.J,f.i,f.bb,f.Ga,f.Wa,f.qb,f.L,f.Xa,f.cd,f.qd,f.U,f.ld,f.Dc,f.Ib,f.Lb,f.Sb,f.Pa)}); g.G(this,this.qc);this.Pb=Y(function(){return new BEa(f.Aa,f.Ga,f.Wa,f.G,f.Bb,c,f.Pa)}); g.G(this,this.Pb);this.Gc=new XZ(a,this.Va,this.u,this.i,this.Pa,this.ma);g.G(this,this.Gc);this.yd={No:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Oa],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.xc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.eb]]),Nk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zb],["SLOT_TYPE_FORECASTING",this.Y], ["SLOT_TYPE_IN_PLAYER",this.Y],["SLOT_TYPE_PLAYER_BYTES",this.Y]]),ph:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Fa],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.l],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.l],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.l],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.l],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.l],["TRIGGER_TYPE_SLOT_ID_EXITED",this.l],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.l],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.l],["TRIGGER_TYPE_SLOT_ID_SCHEDULED", this.l],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ha],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Qa],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Qa],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ya],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ya],["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.Ha],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Xb]]),ul:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.X],["SLOT_TYPE_FORECASTING",this.X],["SLOT_TYPE_IN_PLAYER",this.X],["SLOT_TYPE_PLAYER_BYTES",this.Ac]]),Xk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vb],["SLOT_TYPE_FORECASTING",this.Mb],["SLOT_TYPE_PLAYER_BYTES",this.qc],["SLOT_TYPE_IN_PLAYER",this.Pb]])};this.listeners=[this.G.get()];this.le={tc:this.tc,Aj:null,Zk:this.Va.get(),bh:this.Pa.get(),Gm:this.Ga.get(),lc:this.lc,Yk:null,Lh:this.Fa,Hg:this.G.get()}}; D_=function(a,b,c,d){g.F.call(this);var e=this;this.i=DEa(function(){return e.l},a,b,c,d); g.G(this,this.i);this.l=(new OX(this.i)).u();g.G(this,this.l)}; DEa=function(a,b,c,d,e){try{var f=b.T();if(g.XD(f))var h=new tEa(a,b,c,d,e);else if(g.aE(f))h=new vEa(a,b,c,d,e);else if(bE(f))h=new xEa(a,b,c,d,e);else if(MD(f))h=new wEa(a,b,c,d,e);else if(g.CD(f))h=new AEa(a,b,c,d,e);else if(g.BD(f))h=new CEa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.T(),Q("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,interface:e.deviceParams.c,i6:e.deviceParams.cver,h6:e.deviceParams.ctheme, g6:e.deviceParams.cplayer,w6:e.playerStyle}),new oDa(a,b,c,d)}}; E_=function(a,b){this.i=a;this.Aj=b}; F_=function(a){mK.call(this,a)}; G_=function(a,b,c,d,e){tK.call(this,a,b,{D:"div",K:"ytp-ad-timed-pie-countdown-container",S:[{D:"svg",K:"ytp-ad-timed-pie-countdown",V:{viewBox:"0 0 20 20"},S:[{D:"circle",K:"ytp-ad-timed-pie-countdown-background",V:{r:"10",cx:"10",cy:"10"}},{D:"circle",K:"ytp-ad-timed-pie-countdown-inner",V:{r:"5",cx:"10",cy:"10"}},{D:"circle",K:"ytp-ad-timed-pie-countdown-outer",V:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e);this.B=this.Ba("ytp-ad-timed-pie-countdown-inner");this.u=Math.ceil(10*Math.PI); this.hide()}; H_=function(a,b,c,d,e,f){PJ.call(this,a,b,{D:"div",K:"ytp-ad-action-interstitial",V:{tabindex:"0"},S:[{D:"div",K:"ytp-ad-action-interstitial-background-container"},{D:"div",K:"ytp-ad-action-interstitial-slot",S:[{D:"div",K:"ytp-ad-action-interstitial-card",S:[{D:"div",K:"ytp-ad-action-interstitial-image-container"},{D:"div",K:"ytp-ad-action-interstitial-headline-container"},{D:"div",K:"ytp-ad-action-interstitial-description-container"},{D:"div",K:"ytp-ad-action-interstitial-action-button-container"}]}]}]}, "ad-action-interstitial",c,d);this.Rg=e;this.Vh=f;this.navigationEndpoint=this.l=this.skipButton=this.u=this.actionButton=null;this.Ea=this.Ba("ytp-ad-action-interstitial-image-container");this.C=new iK(this.api,this.Ta,this.layoutId,this.i,"ytp-ad-action-interstitial-image");g.G(this,this.C);this.C.ya(this.Ea);this.Aa=this.Ba("ytp-ad-action-interstitial-headline-container");this.X=new rK(this.api,this.Ta,this.layoutId,this.i,"ytp-ad-action-interstitial-headline");g.G(this,this.X);this.X.ya(this.Aa); this.xa=this.Ba("ytp-ad-action-interstitial-description-container");this.L=new rK(this.api,this.Ta,this.layoutId,this.i,"ytp-ad-action-interstitial-description");g.G(this,this.L);this.L.ya(this.xa);this.Qa=this.Ba("ytp-ad-action-interstitial-background-container");this.G=new iK(this.api,this.Ta,this.layoutId,this.i,"ytp-ad-action-interstitial-background",!0);g.G(this,this.G);this.G.ya(this.Qa);this.Ha=this.Ba("ytp-ad-action-interstitial-action-button-container");this.B=new gu;g.G(this,this.B);this.hide()}; EEa=function(a){var b=g.se("html5-video-player");b&&g.L(b,"ytp-ad-display-override",a)}; I_=function(a,b,c,d){PJ.call(this,a,b,{D:"div",K:"ytp-ad-overlay-slot",S:[{D:"div",K:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d);this.L=[];this.Xa=this.xa=this.C=this.Qa=this.Ea=null;this.Ha=!1;this.G=null;this.X=0;a=this.Ba("ytp-ad-overlay-container");this.Aa=new CK(a,45E3,6E3,.3,.4);g.G(this,this.Aa);this.B=FEa(this);g.G(this,this.B);this.B.ya(a);this.u=GEa(this);g.G(this,this.u);this.u.ya(a);this.l=HEa(this);g.G(this,this.l);this.l.ya(a);this.hide()}; FEa=function(a){var b=new g.OJ({D:"div",K:"ytp-ad-text-overlay",S:[{D:"div",K:"ytp-ad-overlay-ad-info-button-container"},{D:"div",K:"ytp-ad-overlay-close-container",S:[{D:"button",K:"ytp-ad-overlay-close-button",S:[bK(J_)]}]},{D:"div",K:"ytp-ad-overlay-title",oa:"{{title}}"},{D:"div",K:"ytp-ad-overlay-desc",oa:"{{description}}"},{D:"div",Ca:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],oa:"{{displayUrl}}"}]});a.N(b.Ba("ytp-ad-overlay-title"),"click",function(c){return K_(a,b.element, c)}); a.N(b.Ba("ytp-ad-overlay-link"),"click",function(c){return K_(a,b.element,c)}); a.N(b.Ba("ytp-ad-overlay-close-container"),"click",a.Nh);b.hide();return b}; GEa=function(a){var b=new g.OJ({D:"div",Ca:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],S:[{D:"div",K:"ytp-ad-overlay-ad-info-button-container"},{D:"div",K:"ytp-ad-overlay-close-container",S:[{D:"button",K:"ytp-ad-overlay-close-button",S:[bK(J_)]}]},{D:"div",K:"ytp-ad-overlay-text-image",S:[{D:"img",V:{src:"{{imageUrl}}"}}]},{D:"div",K:"ytp-ad-overlay-title",oa:"{{title}}"},{D:"div",K:"ytp-ad-overlay-desc",oa:"{{description}}"},{D:"div",Ca:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], oa:"{{displayUrl}}"}]});a.N(b.Ba("ytp-ad-overlay-title"),"click",function(c){return K_(a,b.element,c)}); a.N(b.Ba("ytp-ad-overlay-link"),"click",function(c){return K_(a,b.element,c)}); a.N(b.Ba("ytp-ad-overlay-close-container"),"click",a.Nh);a.N(b.Ba("ytp-ad-overlay-text-image"),"click",a.OR);b.hide();return b}; HEa=function(a){var b=new g.OJ({D:"div",K:"ytp-ad-image-overlay",S:[{D:"div",K:"ytp-ad-overlay-ad-info-button-container"},{D:"div",K:"ytp-ad-overlay-close-container",S:[{D:"button",K:"ytp-ad-overlay-close-button",S:[bK(J_)]}]},{D:"div",K:"ytp-ad-overlay-image",S:[{D:"img",V:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.N(b.Ba("ytp-ad-overlay-image"),"click",function(c){return K_(a,b.element,c)}); a.N(b.Ba("ytp-ad-overlay-close-container"),"click",a.Nh);b.hide();return b}; L_=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.Ou(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.se("video-ads ytp-ad-module")||null,null==b)g.Ou(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.xa=new g.OJ({D:"div",K:"ytp-ad-overlay-ad-info-dialog-container"}),g.G(a,a.xa),a.xa.ya(b),b=new qK(a.api,a.Ta,a.layoutId,a.i,a.xa.element,!1),g.G(a,b),b.init(fH("ad-info-hover-text-button"),c, a.macros),a.G){b.ya(a.G,0);b.subscribe("f",a.hP,a);b.subscribe("e",a.QB,a);a.N(a.G,"click",a.iP);var d=g.se("ytp-ad-button",b.element);a.N(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.Ha=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)}); a.Xa=b}else g.Ou(Error("Ad info button container within overlay ad was not present."))}else g.Pu(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; IEa=function(a){return a.C&&a.C.closeButton&&a.C.closeButton.buttonRenderer&&(a=a.C.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]}; JEa=function(a,b){if(M_(a,N_)||a.api.Ee())return!1;var c=QJ(b.title),d=QJ(b.description);if(g.oc(c)||g.oc(d))return!1;a.Ag(a.B.element,b.trackingParams||null);a.B.Sa("title",QJ(b.title));a.B.Sa("description",QJ(b.description));a.B.Sa("displayUrl",QJ(b.displayUrl));b.navigationEndpoint&&qb(a.L,b.navigationEndpoint);a.B.show();a.Aa.start();a.jb(a.B.element,!0);a.N(a.B.element,"mouseover",function(){a.X++}); return!0}; KEa=function(a,b){if(M_(a,N_)||a.api.Ee())return!1;var c=QJ(b.title),d=QJ(b.description);if(g.oc(c)||g.oc(d))return!1;a.Ag(a.u.element,b.trackingParams||null);a.u.Sa("title",QJ(b.title));a.u.Sa("description",QJ(b.description));a.u.Sa("displayUrl",QJ(b.displayUrl));a.u.Sa("imageUrl",Qma(b.image));b.navigationEndpoint&&qb(a.L,b.navigationEndpoint);a.Qa=b.imageNavigationEndpoint||null;a.u.show();a.Aa.start();a.jb(a.u.element,!0);a.N(a.u.element,"mouseover",function(){a.X++}); return!0}; LEa=function(a,b){if(a.api.Ee())return!1;var c=Rma(b.image),d=c;c.widthdocument.documentMode)c=Qc;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.Ee("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=iea(d.style)}b=gba(c,Rc({"background-image":'url("'+b+'")'}));a.style.cssText=Nc(b)}}; WEa=function(a){var b=g.se("html5-video-player");b&&g.L(b,"ytp-ad-display-override",a)}; Z_=function(a,b){mK.call(this,a);this.api=a;this.l={};this.C=b;a=new g.V({D:"div",Ca:["video-ads","ytp-ad-module"]});g.G(this,a);rD&&g.K(a.element,"ytp-ads-tiny-mode");this.B=new IJ(a.element);g.G(this,this.B);g.FL(this.api,a.element,4);g.G(this,hna())}; XEa=function(a,b){a=Rb(a.l,b.id,null);null==a&&g.Pu(Error("Component not found for element id: "+b.id));return a||null}; $_=function(a){g.cM.call(this,a);var b=this;this.l=this.Ta=null;this.created=!1;this.Gl=new nJ(this.player);this.u=function(){function d(){return b.Ta} if(null!=b.l)return b.l;var e=Xla({EF:a.getVideoData(1)});e=new tBa({WM:new E_(function(){return b.Ta},b.i.i.le.Aj), Fr:e.IN(),fN:d,aP:d,Lh:b.i.i.le.Lh,Oi:e.GA(),I:b.player,bh:b.i.i.le.bh,Wa:b.i.i.Wa,Hg:b.i.i.le.Hg,Dc:b.i.i.Dc});b.l=e.GL;return b.l}; this.i=new D_(this.player,this,this.Gl,this.u);g.G(this,this.i);var c=a.T();!JD(c)||g.BD(c)||MD(c)||(g.G(this,new Z_(a,function(){return b.Ta})),g.G(this,new F_(a)))}; a0=function(a,b){b===a.yn&&(a.yn=void 0)}; YEa=function(a){a.Ta?a.i.i.le.lc.VA()||a.Ta.VA()||a.i.i.le.Gm.Fj():Q("AdService is null when calling maybeUnlockPrerollIfReady")}; ZEa=function(a){a=g.q(a.i.i.le.Hg.Wh.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.ob&&"core"===b.ib)return!0;return!1}; $Ea=function(a){a=g.q(a.i.i.le.Hg.Wh.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1}; zv=function(a,b,c){c=void 0===c?"":c;var d=a.i.i.le.bh,e=a.player.getVideoData(1);e=e&&e.getPlayerResponse()||{};d=aFa(b,d,e&&e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1);gga(a.i.i.le.tc,c,d.Zj,b);a.Ta&&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 Da(this,b,c).eK}}); ia("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ca(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=Ca(this,null,"repeat");if(0>b||1342177279>>=1)c+=c;return d}}); ia("Object.setPrototypeOf",function(a){return a||oa}); var iFa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;cb?-c:c}}); ia("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);cc&&(c=Math.max(c+e,0));c>>0);Iaa=0;g.Sa(Ua,Error);Ua.prototype.name="CustomError";var ne;g.Sa(Va,Ua);Va.prototype.name="AssertionError";var eb,dh,Wh;eb=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.Ab=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,tc=/"/g,uc=/'/g,vc=/\x00/g,Zaa=/[\x00&<>"']/;g.k=g.Cc.prototype;g.k.Mj=!0;g.k.gh=function(){return this.i.toString()}; g.k.YA=!0;g.k.cq=function(){return 1}; g.k.toString=function(){return this.i.toString()}; var aba=/^(?: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,$aa=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Fc=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Bc={},Gc=new g.Cc("about:invalid#zClosurez",Bc);Mc.prototype.Mj=!0;Mc.prototype.gh=function(){return this.i}; Mc.prototype.toString=function(){return this.i.toString()}; var Lc={},Qc=new Mc("",Lc),cba=/^[-,."'%_!# a-zA-Z0-9\[\]]+$/,Tc=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g,Sc=/\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?)\([-+*/0-9a-z.%\[\], ]+\)/g,dba=/\/\*/;a:{var lFa=g.B.navigator;if(lFa){var mFa=lFa.userAgent;if(mFa){g.Uc=mFa;break a}}g.Uc=""};g.k=$c.prototype;g.k.YA=!0;g.k.cq=function(){return this.l}; g.k.Mj=!0;g.k.gh=function(){return this.i.toString()}; g.k.toString=function(){return this.i.toString()}; var nFa=/^[a-zA-Z0-9-]+$/,oFa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},pFa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Zc={},dd=new $c(g.B.trustedTypes&&g.B.trustedTypes.emptyHTML||"",0,Zc);var kba=Ya(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.ad(dd);return!b.parentElement}),lba=/^[\w+/_-]+[=]{0,2}$/;g.qFa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var ud=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Kd=/#|$/,nba=/[?&]($|#)/;var Qd={};g.v(Rd,Pd);Rd.prototype.toString=function(){return this.i};Wd[" "]=g.Ia;var jg,DS,kBa,rFa,sFa,tFa,qD,rD,h0;g.kg=Vc("Opera");g.xe=Vc("Trident")||Vc("MSIE");g.jt=Vc("Edge");g.dE=g.jt||g.xe;jg=Vc("Gecko")&&!(xc(g.Uc,"WebKit")&&!Vc("Edge"))&&!(Vc("Trident")||Vc("MSIE"))&&!Vc("Edge");g.ze=xc(g.Uc,"WebKit")&&!Vc("Edge");DS=Vc("Macintosh");kBa=Vc("Windows");g.Lq=Vc("Android");rFa=Td();sFa=Vc("iPad");tFa=Vc("iPod");qD=Vd();rD=xc(g.Uc,"KaiOS"); a:{var i0="",j0=function(){var a=g.Uc;if(jg)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.jt)return/Edge\/([\d\.]+)/.exec(a);if(g.xe)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.ze)return/WebKit\/(\S+)/.exec(a);if(g.kg)return/(?:Version)[ \/]?(\S+)/.exec(a)}(); j0&&(i0=j0?j0[1]:"");if(g.xe){var k0=Zd();if(null!=k0&&k0>parseFloat(i0)){h0=String(k0);break a}}h0=i0}var $d=h0,qba={},l0;if(g.B.document&&g.xe){var uFa=Zd();l0=uFa?uFa:parseInt($d,10)||void 0}else l0=void 0;var rba=l0;try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var sba=!g.xe||g.be(9),tba=!jg&&!g.xe||g.xe&&g.be(9)||jg&&g.ae("1.9.1");g.xe&&g.ae("9");var vba=g.xe||g.kg||g.ze;g.k=g.ge.prototype;g.k.clone=function(){return new g.ge(this.x,this.y)}; g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.k.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.k=g.ie.prototype;g.k.clone=function(){return new g.ie(this.width,this.height)}; g.k.aspectRatio=function(){return this.width/this.height}; g.k.isEmpty=function(){return!ke(this)}; g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.k.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};var te={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.k=le.prototype;g.k.getElementsByTagName=function(a,b){return(b||this.i).getElementsByTagName(String(a))}; g.k.Ba=function(a){return g.se(a,this.i)}; g.k.createElement=function(a){return Be(this.i,a)}; g.k.createTextNode=function(a){return this.i.createTextNode(String(a))}; g.k.appendChild=function(a,b){a.appendChild(b)}; g.k.append=function(a,b){Ce(me(a),a,arguments,1)}; g.k.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.k.removeNode=g.Ie;g.k.contains=g.Le;var xf=0,yf=0;Ze.prototype.clone=function(){return af(this.l,this.B,this.u-this.B)}; Ze.prototype.clear=function(){this.l=null;this.i=this.u=this.B=0;this.C=!1}; Ze.prototype.reset=function(){this.i=this.B}; Ze.prototype.advance=function(a){this.i+=a}; var $e=[];ef.prototype.reset=function(){this.i.reset();this.l=this.u=-1}; ef.prototype.advance=function(a){this.i.advance(a)};kf.prototype.length=function(){return this.i.length}; kf.prototype.end=function(){var a=this.i;this.i=[];return a};var AD,tG;g.FC=Wc();AD=Td()||Vc("iPod");tG=Vc("iPad");g.sD=Vc("Android")&&!(Xc()||Wc()||Vc("Opera")||Vc("Silk"));g.lB=Xc();g.Gs=Yc()&&!Vd();var rf={},vf=null;wf.prototype.reset=function(){this.l=[];this.i.end();this.u=0};var Bf="function"===typeof Uint8Array;var Df,Ef=[];Cf.prototype.toString=function(){return Lf(this).toString()}; Cf.prototype.clone=function(){var a=Af(Lf(this));Df=a;a=new this.constructor(a);Df=null;return a};var pi;pi=["av.key","js","unreleased"].slice(-1)[0];var Bg=document,Sg=window;var zba=Ya(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); g.B.addEventListener("test",null,b)}catch(c){}return a});var Cba=/https?:\/\/[^\/]+/,Aba={bU:"allow-forms",cU:"allow-modals",dU:"allow-orientation-lock",eU:"allow-pointer-lock",fU:"allow-popups",gU:"allow-popups-to-escape-sandbox",hU:"allow-presentation",iU:"allow-same-origin",jU:"allow-scripts",kU:"allow-top-navigation",lU:"allow-top-navigation-by-user-activation"},Fba=Ya(function(){return Bba()});g.k=Xf.prototype;g.k.getHeight=function(){return this.bottom-this.top}; g.k.clone=function(){return new Xf(this.top,this.right,this.bottom,this.left)}; g.k.contains=function(a){return this&&a?a instanceof Xf?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.$f.prototype;g.k.clone=function(){return new g.$f(this.left,this.top,this.width,this.height)}; g.k.contains=function(a){return a instanceof g.ge?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.x=this.J?a:this;b!==this.i?(this.C=this.i.C,ci(this)):this.C!==this.i.C&&(this.C=this.i.C,ci(this))}; g.k.nm=function(a){if(a.l===this.i){var b=this.u,c=this.L;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.u==a.u)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.u=a;!c&&hi(this)}}; g.k.dk=function(){return this.L}; g.k.dispose=function(){this.ma=!0}; g.k.Ia=function(){return this.ma};g.k=ii.prototype;g.k.By=function(){return!0}; g.k.dr=function(){}; g.k.dispose=function(){if(!this.Ia()){var a=this.l;g.lb(a.B,this);a.L&&this.dk()&&gi(a);this.dr();this.Y=!0}}; g.k.Ia=function(){return this.Y}; g.k.dm=function(){return this.l.dm()}; g.k.Qk=function(){return this.l.Qk()}; g.k.eq=function(){return this.l.eq()}; g.k.Os=function(){return this.l.Os()}; g.k.jq=function(){}; g.k.nm=function(){this.Kl()}; g.k.dk=function(){return this.ma};g.k=ji.prototype;g.k.Qk=function(){return this.i.Qk()}; g.k.eq=function(){return this.i.eq()}; g.k.Os=function(){return this.i.Os()}; g.k.create=function(a,b,c){var d=null;this.i&&(d=this.Hu(a,b,c),ei(this.i,d));return d}; g.k.FD=function(){return this.er()}; g.k.er=function(){return!1}; g.k.init=function(a){return this.i.initialize()?(ei(this.i,this),this.B=a,!0):!1}; g.k.jq=function(a){0==a.Qk()&&this.B(a.eq(),this)}; g.k.nm=function(){}; g.k.dk=function(){return!1}; g.k.dispose=function(){this.C=!0}; g.k.Ia=function(){return this.C}; g.k.dm=function(){return{}};mi.prototype.add=function(a,b,c){++this.u;var d=this.u/4096,e=this.i,f=e.push;a=new ki(a,b,c);d=new ki(a.l,a.i,a.u+d);f.call(e,d);this.l=!0;return this};qi.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=oi(this.i);0=h;h=!(0=h)||c;this.i[e].update(f&&l,d,!f||h)}};Mi.prototype.update=function(a,b,c,d){this.J=-1!=this.J?Math.min(this.J,b.Oc):b.Oc;this.X=Math.max(this.X,b.Oc);this.ma=-1!=this.ma?Math.min(this.ma,b.Qg):b.Qg;this.xa=Math.max(this.xa,b.Qg);this.Va.update(b.Qg,c.Qg,b.i,a,d);this.l.update(b.Oc,c.Oc,b.i,a,d);c=d||c.Ao!=b.Ao?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.i;this.Ea.update(c,a,b)}; Mi.prototype.Co=function(){return this.Ea.u>=this.Qa};var xFa=new Xf(0,0,0,0);var sca=new Xf(0,0,0,0);g.v(Qi,g.F);g.k=Qi.prototype;g.k.ra=function(){this.Bg.i&&(this.On.BB&&(Pf(this.Bg.i,"mouseover",this.On.BB),this.On.BB=null),this.On.zB&&(Pf(this.Bg.i,"mouseout",this.On.zB),this.On.zB=null));this.ju&&this.ju.dispose();this.kd&&this.kd.dispose();delete this.Jw;delete this.uB;delete this.TJ;delete this.Bg.Am;delete this.Bg.i;delete this.On;delete this.ju;delete this.kd;delete this.featureSet;g.F.prototype.ra.call(this)}; g.k.em=function(){return this.kd?this.kd.i:this.position}; g.k.fC=function(a){mh.getInstance().fC(a)}; g.k.dk=function(){return!1}; g.k.Uv=function(){return new Mi}; g.k.Eg=function(){return this.Jw}; g.k.pG=function(a){return Ti(this,a,1E4)}; g.k.Ma=function(a,b,c,d,e,f,h){this.rq||(this.Bv&&(a=this.Fz(a,c,e,h),d=d&&this.Te.Oc>=(this.Ao()?.3:.5),this.kD(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 Xf(0,0,0,0):a;a=this.l.u;b=e=d=0;0<(this.i.bottom-this.i.top)*(this.i.right-this.i.left)&&(this.WG(c)?c=new Xf(0,0,0,0):(d=Xh.getInstance().B,b=new Xf(0,d.height,d.width,0),d=Pi(c,this.i),e=Pi(c,Xh.getInstance().i),b=Pi(c,b)));c=c.top>=c.bottom|| c.left>=c.right?new Xf(0,0,0,0):Zf(c,-this.i.left,-this.i.top);$h()||(e=d=0);this.J=new Oh(a,this.i,c,d,e,this.timestamp,b)}; g.k.getName=function(){return this.l.getName()};var yFa=new Xf(0,0,0,0);g.v(ej,dj);g.k=ej.prototype;g.k.By=function(){this.u();return!0}; g.k.nm=function(){dj.prototype.Kl.call(this)}; g.k.qF=function(){}; g.k.Hz=function(){}; g.k.Kl=function(){this.u();dj.prototype.Kl.call(this)}; g.k.jq=function(a){a=a.isActive();a!==this.G&&(a?this.u():(Xh.getInstance().i=new Xf(0,0,0,0),this.i=new Xf(0,0,0,0),this.B=new Xf(0,0,0,0),this.timestamp=-1));this.G=a};var n0={},Ica=(n0.firstquartile=0,n0.midpoint=1,n0.thirdquartile=2,n0.complete=3,n0);g.v(gj,Qi);g.k=gj.prototype;g.k.dk=function(){return!0}; g.k.Vk=function(){return 2==this.ag}; g.k.pG=function(a){return Ti(this,a,Math.max(1E4,this.u/3))}; g.k.Ma=function(a,b,c,d,e,f,h){var l=this,m=this.L(this)||{};g.Wb(m,e);this.u=m.duration||this.u;this.U=m.isVpaid||this.U;this.Fa=m.isYouTube||this.Fa;e=Eca(this,b);1===kj(this)&&(f=e);Qi.prototype.Ma.call(this,a,b,c,d,m,f,h);this.Ho&&this.Ho.i&&g.Ab(this.G,function(n){n.i||(n.i=cj(n,l))})}; g.k.kD=function(a,b,c){Qi.prototype.kD.call(this,a,b,c);jj(this).update(a,b,this.Te,c);this.Qa=Wi(this.Te)&&Wi(b);-1==this.xa&&this.Oa&&(this.xa=this.Eg().u.i);this.Le.u=0;a=this.Co();b.isVisible()&&Xi(this.Le,"vs");a&&Xi(this.Le,"vw");Vh(b.volume)&&Xi(this.Le,"am");Wi(b)&&Xi(this.Le,"a");this.kq&&Xi(this.Le,"f");-1!=b.l&&(Xi(this.Le,"bm"),1==b.l&&Xi(this.Le,"b"));Wi(b)&&b.isVisible()&&Xi(this.Le,"avs");this.Qa&&a&&Xi(this.Le,"avw");0this.i.J&&(this.i=this,ci(this)),this.J=a);return 2==a}; Ja(Qj);Ja(Rj);Sj.prototype.GD=function(){Vj(this,Cj(),!1)}; Sj.prototype.B=function(){var a=$h(),b=Ih();a?(Kh||(Lh=b,g.Ab(Bj.i,function(c){var d=c.Eg();d.Fa=$i(d,b,1!=c.ag)})),Kh=!0):(this.J=Xj(this,b),Kh=!1,sj=b,g.Ab(Bj.i,function(c){c.Bv&&(c.Eg().L=b)})); Vj(this,Cj(),!a)}; Ja(Sj);var Tj=Sj.getInstance();var Yj=null,Gk="",Fk=!1;var o0=ek([void 0,1,2,3,4,8,16]),p0=ek([void 0,4,8,16]),AFa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:dk("p0",p0),p1:dk("p1",p0),p2:dk("p2",p0),p3:dk("p3",p0),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:ck("mtos1",[0,2,4],!1,p0),mtos2:ck("mtos2",[0,2,4],!1,p0),mtos3:ck("mtos3",[0,2,4],!1,p0),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:dk("a0",p0),a1:dk("a1",p0),a2:dk("a2",p0),a3:dk("a3",p0),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:dk("c0",p0),c1:dk("c1",p0),c2:dk("c2",p0),c3:dk("c3",p0),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:dk("qmtos",o0),qnc:dk("qnc",o0),qmv:dk("qmv",o0),qnv:dk("qnv",o0),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:dk("ss0",p0),ss1:dk("ss1",p0),ss2:dk("ss2",p0),ss3:dk("ss3",p0),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},BFa={c:Zj("c"), at:"at",atos:ck("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:bk(),j:"dom",mtos:ck("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:Zj("ss"),vsv:Xa("w2"),t:"t"},CFa={atos:"atos",avt:ck("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:Zj("ss"),t:"t"},DFa={a:"a",tos:bk(),at:"at",c:Zj("c"),mtos:ck("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:Xa("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},EFa={tos:bk(),at:"at",c:Zj("c"),mtos:ck("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:Xa("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",qmpt:ck("qmtos", [0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return g.Oc(b,function(e){return 0=e?1:0})}}("qnc",[1, .5,0]),qmv:"qmv",qa:"qas",a:"a"};var fda={LX:"visible",sU:"audible",t4:"time",u4:"timetype"},jk={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.v(kk,aj);kk.prototype.getId=function(){return this.G}; kk.prototype.C=function(){return!0}; kk.prototype.B=function(a){var b=a.Eg(),c=a.getDuration();return Wh(this.J,function(d){if(void 0!=d.i)var e=hda(d,b);else b:{switch(d.C){case "mtos":e=d.l?b.C.u:b.u.i;break b;case "tos":e=d.l?b.C.i:b.u.i;break b}e=0}0==e?d=!1:(d=-1!=d.u?d.u:void 0!==c&&0=d);return d})};g.v(lk,aj);lk.prototype.B=function(a){var b=Hi(a.Eg().i,1);return lj(a,b)};g.v(mk,aj);mk.prototype.B=function(a){return a.Eg().Co()};g.v(pk,ida);pk.prototype.i=function(a){var b=new nk;b.i=ok(a,AFa);b.u=ok(a,CFa);return b};g.v(qk,ej);qk.prototype.u=function(){var a=g.Ha("ima.admob.getViewability"),b=Ng(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)}; qk.prototype.getName=function(){return"gsv"};g.v(rk,ji);rk.prototype.getName=function(){return"gsv"}; rk.prototype.er=function(){var a=Xh.getInstance();mh.getInstance();return a.l&&!1}; rk.prototype.Hu=function(a,b,c){return new qk(this.i,b,c)};g.v(sk,ej);sk.prototype.u=function(){var a=this,b=g.Ha("ima.bridge.getNativeViewability"),c=Ng(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Pb(d)&&a.C++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.i=Uh(d.opt_nativeViewBounds||{});var h=a.l.u;h.i=f?yFa.clone():Uh(e);a.timestamp=d.opt_nativeTime||-1;Xh.getInstance().i=h.i;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})}; sk.prototype.getName=function(){return"nis"};g.v(tk,ji);tk.prototype.getName=function(){return"nis"}; tk.prototype.er=function(){var a=Xh.getInstance();mh.getInstance();return a.l&&!1}; tk.prototype.Hu=function(a,b,c){return new sk(this.i,b,c)};g.v(uk,bi);g.k=uk.prototype;g.k.Zq=function(){return null!=this.l.Fi}; g.k.nG=function(){var a={};this.xa&&(a.mraid=this.xa);this.X&&(a.mlc=1);a.mtop=this.l.VS;this.G&&(a.mse=this.G);this.Aa&&(a.msc=1);a.mcp=this.l.compatibility;return a}; g.k.Nm=function(a,b){for(var c=[],d=1;dthis.l?this.blockSize:2*this.blockSize)-this.l);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.v(Yk,pk);Yk.prototype.i=function(a){var b=pk.prototype.i.call(this,a);var c=Qk=g.Ra();var d=Rk(5);c=(Tk?!d:d)?c|2:c&-3;d=Rk(2);c=(Uk?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.l||(this.l=yda());b.C=this.l;b.G=ok(a,BFa,c,"h",Zk("kArwaWEsTs"));b.B=ok(a,DFa,{},"h",Zk("b96YPMzfnx"));b.l=ok(a,EFa,{},"h",Zk("yb8Wev6QDg"));return b};$k.prototype.i=function(){return g.Ha(this.u)};g.v(al,$k);al.prototype.i=function(a){if(!a.Bq)return $k.prototype.i.call(this,a);var b=this.l[a.Bq];if(b)return function(c,d,e){b.l(c,d,e)}; Hh(393,Error());return null};g.v(bl,Ck);g.k=bl.prototype;g.k.Yv=function(a,b){var c=this,d=Fj.getInstance();if(null!=d.i)switch(d.i.getName()){case "nis":var e=Cda(this,a,b);break;case "gsv":e=Bda(this,a,b);break;case "exc":e=Dda(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=rda(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Jj()&&(e.L==g.Ia&&(e.L=function(f){return c.HD(f)}),Ada(this,e,b)); return e}; g.k.HD=function(a){a.l=0;a.va=0;if("h"==a.B||"n"==a.B){var b;mh.getInstance();if(a.Bq&&el(this)){var c=this.J[a.Bq];c?b=function(e){return c.i(e)}:null!==c&&Hh(379,Error())}else b=g.Ha("ima.common.getVideoMetadata"); if("function"===typeof b)try{var d=b(a.wf)}catch(e){a.l|=4}else a.l|=2}else if("b"==a.B)if(b=g.Ha("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{d=b(a.wf)}catch(e){a.l|=4}else a.l|=2;else if("ml"==a.B)if(b=g.Ha("ima.common.getVideoMetadata"),"function"===typeof b)try{d=b(a.wf)}catch(e){a.l|=4}else a.l|=2;else a.l|=1;a.l||(void 0===d?a.l|=8:null===d?a.l|=16:g.Pb(d)?a.l|=32:null!=d.errorCode&&(a.va=d.errorCode,a.l|=64));null==d&&(d={});sda(d,a);Vh(d.volume)&&Vh(void 0)&&(d.volume*=NaN); return d}; g.k.JF=function(){if(el(this))return new al("ima.common.triggerExternalActivityEvent",this.u,this.J);var a=Eda(this);return null!=a?new $k(a,this.u):null}; g.k.oC=function(a){!a.i&&a.rq&&Jk(this,a,"overlay_unmeasurable_impression")&&(a.i=!0)}; g.k.eJ=function(a){a.sJ&&(a.Co()?Jk(this,a,"overlay_viewable_end_of_session_impression"):Jk(this,a,"overlay_unviewable_impression"),a.sJ=!1)}; g.k.AG=function(){}; g.k.wC=function(){}; g.k.Lt=function(a,b,c,d){a=Ck.prototype.Lt.call(this,a,b,c,d);this.C&&(b=this.G,null==a.C&&(a.C=new yca),b.i[a.wf]=a.C,a.C.C=zFa);return a}; g.k.Xr=function(a){a&&1==a.Jj()&&this.C&&delete this.G.i[a.wf];return Ck.prototype.Xr.call(this,a)}; Ja(bl);var cl=new nk;cl.C="stopped";cl.i="stopped";cl.u="stopped";cl.G="stopped";cl.B="stopped";cl.l="stopped";Object.freeze(cl);var FFa=Dh(193,gl,Mk);g.Ga("Goog_AdSense_Lidar_sendVastEvent",FFa,void 0);var GFa=Gh(194,function(a,b){b=void 0===b?{}:b;a=dl(bl.getInstance(),a,b);return fl(a)}); g.Ga("Goog_AdSense_Lidar_getViewability",GFa,void 0);var HFa=Dh(195,function(){return hh()},void 0); g.Ga("Goog_AdSense_Lidar_getUrlSignalsArray",HFa,void 0);var IFa=Gh(196,function(){return g.vj(hh())}); g.Ga("Goog_AdSense_Lidar_getUrlSignalsList",IFa,void 0);var Dea=(new Date).getTime();var Jda={};g.k=ll.prototype;g.k.isEnabled=function(){if(!g.B.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{Fw:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.B6;d=c.NS||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.Fw}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=0>l?"":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;e>>0);g.Sa(g.Ul,g.F);g.Ul.prototype[Cl]=!0;g.k=g.Ul.prototype;g.k.addEventListener=function(a,b,c,d){Jl(this,a,b,c,d)}; g.k.removeEventListener=function(a,b,c,d){Ql(this,a,b,c,d)}; g.k.dispatchEvent=function(a){var b=this.Fa;if(b){var c=[];for(var d=1;b;b=b.Fa)c.push(b),++d}b=this.Qa;d=a.type||a;if("string"===typeof a)a=new g.ul(a,b);else if(a instanceof g.ul)a.target=a.target||b;else{var e=a;a=new g.ul(d,b);g.Wb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.l&&0<=f;f--){var h=a.currentTarget=c[f];e=Vl(h,d,!0,a)&&e}a.l||(h=a.currentTarget=b,e=Vl(h,d,!0,a)&&e,a.l||(e=Vl(h,d,!1,a)&&e));if(c)for(f=0;!a.l&&f2*this.size&&Qm(this),!0):!1}; g.k.get=function(a,b){return Pm(this.l,a)?this.l[a]:b}; g.k.set=function(a,b){Pm(this.l,a)||(this.size+=1,this.i.push(a),this.Um++);this.l[a]=b}; g.k.forEach=function(a,b){for(var c=this.Hh(),d=0;d=d.i.length)throw g.Nm;var f=d.i[b++];return a?f:d.l[f]}; return e};g.Rm.prototype.toString=function(){var a=[],b=this.B;b&&a.push(Ym(b,KFa,!0),":");var c=this.i;if(c||"file"==b)a.push("//"),(b=this.L)&&a.push(Ym(b,KFa,!0),"@"),a.push(kd(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.u,null!=c&&a.push(":",String(c));if(c=this.getPath())this.i&&"/"!=c.charAt(0)&&a.push("/"),a.push(Ym(c,"/"==c.charAt(0)?LFa:MFa,!0));(c=this.l.toString())&&a.push("?",c);(c=this.C)&&a.push("#",Ym(c,NFa));return a.join("")}; g.Rm.prototype.resolve=function(a){var b=this.clone(),c=!!a.B;c?g.Sm(b,a.B):c=!!a.L;c?b.L=a.L:c=!!a.i;c?g.Tm(b,a.i):c=null!=a.u;var d=a.getPath();if(c)g.Um(b,a.u);else if(c=!!a.J){if("/"!=d.charAt(0))if(this.i&&!this.J)d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=kc(e,"/");e=e.split("/");for(var f=[],h=0;ha&&0===a%1&&this.data_[a]!=b&&(this.data_[a]=b,this.i=-1)}; gn.prototype.get=function(a){return!!this.data_[a]};g.Sa(g.hn,g.F);g.k=g.hn.prototype;g.k.start=function(){this.stop();this.B=!1;var a=kn(this),b=ln(this);a&&!b&&this.l.mozRequestAnimationFrame?(this.i=Jl(this.l,"MozBeforePaint",this.u),this.l.mozRequestAnimationFrame(null),this.B=!0):this.i=a&&b?a.call(this.l,this.u):this.l.setTimeout(Naa(this.u),20)}; g.k.stop=function(){if(this.isActive()){var a=kn(this),b=ln(this);a&&!b&&this.l.mozRequestAnimationFrame?Rl(this.i):a&&b?b.call(this.l,this.i):this.l.clearTimeout(this.i)}this.i=null}; g.k.isActive=function(){return null!=this.i}; g.k.zK=function(){this.B&&this.i&&Rl(this.i);this.i=null;this.G.call(this.C,g.Ra())}; g.k.ra=function(){this.stop();g.hn.Md.ra.call(this)};g.Sa(g.J,g.F);g.k=g.J.prototype;g.k.gr=0;g.k.ra=function(){g.J.Md.ra.call(this);this.stop();delete this.i;delete this.l}; g.k.start=function(a){this.stop();this.gr=g.Fm(this.u,void 0!==a?a:this.Gf)}; g.k.stop=function(){this.isActive()&&g.B.clearTimeout(this.gr);this.gr=0}; g.k.isActive=function(){return 0!=this.gr}; g.k.ID=function(){this.gr=0;this.i&&this.i.call(this.l)};g.Sa(pn,Vk);pn.prototype.reset=function(){this.i[0]=1732584193;this.i[1]=4023233417;this.i[2]=2562383102;this.i[3]=271733878;this.i[4]=3285377520;this.u=this.l=0}; pn.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.C,f=this.l;dthis.l?this.update(this.B,56-this.l):this.update(this.B,this.blockSize-(this.l-56));for(var c=this.blockSize-1;56<=c;c--)this.C[c]=b&255,b/=256;qn(this,this.C);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.i[c]>>d&255,++b;return a};g.Sa(g.zn,g.Ul);g.k=g.zn.prototype;g.k.uc=function(){return 1==this.gb}; g.k.Xw=function(){this.Fh("begin")}; g.k.At=function(){this.Fh("end")}; g.k.onFinish=function(){this.Fh("finish")}; g.k.Fh=function(a){this.dispatchEvent(a)};var OFa=Ya(function(){if(g.xe)return g.ae("10.0");var a=g.Ee("DIV"),b=g.ze?"-webkit":jg?"-moz":g.xe?"-ms":g.kg?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!nFa.test("div"))throw Error("");if("DIV"in pFa)throw Error("");c=null;var d="";if(b)for(h in b)if(Object.prototype.hasOwnProperty.call(b,h)){if(!nFa.test(h))throw Error("");var e=b[h];if(null!=e){var f=h;if(e instanceof bc)e=cc(e);else if("style"==f.toLowerCase()){if(!g.Ma(e))throw Error(""); e instanceof Mc||(e=Rc(e));e=Nc(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in oFa)if(e instanceof hc)e=ic(e).toString();else if(e instanceof g.Cc)e=g.Dc(e);else if("string"===typeof e)e=g.Hc(e).gh();else throw Error("");}e.Mj&&(e=e.gh());f=f+'="'+wc(String(e))+'"';d+=" "+f}}var h="":(c=iba(d),h+=">"+g.ad(c).toString()+"",c=c.cq());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=bd(h,c);g.fd(a, b);return""!=g.lg(a.firstChild,"transition")});g.Sa(An,g.zn);g.k=An.prototype;g.k.play=function(){if(this.uc())return!1;this.Xw();this.Fh("play");this.startTime=g.Ra();this.gb=1;if(OFa())return g.hg(this.i,this.G),this.u=g.Fm(this.rS,void 0,this),!0;this.Cy(!1);return!1}; g.k.rS=function(){g.xg(this.i);bea(this.i,this.J);g.hg(this.i,this.B);this.u=g.Fm((0,g.C)(this.Cy,this,!1),1E3*this.C)}; g.k.stop=function(){this.uc()&&this.Cy(!0)}; g.k.Cy=function(a){g.hg(this.i,"transition","");g.B.clearTimeout(this.u);g.hg(this.i,this.B);this.endTime=g.Ra();this.gb=0;if(a)this.Fh("stop");else this.onFinish();this.At()}; g.k.ra=function(){this.stop();An.Md.ra.call(this)}; g.k.pause=function(){};var cea={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 gea=Cn("getPropertyValue"),hea=Cn("setProperty");var fea={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Gn.prototype.clone=function(){return new g.Gn(this.i,this.C,this.u,this.G,this.B,this.J,this.l,this.L)};g.In.prototype.l=0;g.In.prototype.reset=function(){this.i=this.u=this.B;this.l=0}; g.In.prototype.getValue=function(){return this.u};Kn.prototype.clone=function(){return new Kn(this.start,this.end)};var PFa=new WeakMap;(function(){if(kBa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Uc))?a[1]:"0"}return DS?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Uc))?a[0].replace(/_/g,"."):"10"):g.Lq?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Uc))?a[1]:""):rFa||sFa||tFa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Uc))?a[1].replace(/_/g,"."):""):""})();var oea=function(){if(g.FC)return Ln(/Firefox\/([0-9.]+)/);if(g.xe||g.jt||g.kg)return $d;if(g.lB)return Vd()?Ln(/CriOS\/([0-9.]+)/):Ln(/Chrome\/([0-9.]+)/);if(g.Gs&&!Vd())return Ln(/Version\/([0-9.]+)/);if(AD||tG){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Uc);if(a)return a[1]+"."+a[2]}else if(g.sD)return(a=Ln(/Android\s+([0-9.]+)/))?a:Ln(/Version\/([0-9.]+)/);return""}();g.Sa(g.On,g.F);g.k=g.On.prototype;g.k.subscribe=function(a,b,c){var d=this.l[a];d||(d=this.l[a]=[]);var e=this.C;this.i[e]=a;this.i[e+1]=b;this.i[e+2]=c;this.C=e+3;d.push(e);return e}; g.k.unsubscribe=function(a,b,c){if(a=this.l[a]){var d=this.i;if(a=g.cb(a,function(e){return d[e+1]==b&&d[e+2]==c}))return this.Nf(a)}return!1}; g.k.Nf=function(a){var b=this.i[a];if(b){var c=this.l[b];0!=this.B?(this.u.push(a),this.i[a+1]=g.Ia):(c&&g.lb(c,a),delete this.i[a],delete this.i[a+1],delete this.i[a+2])}return!!b}; g.k.W=function(a,b){var c=this.l[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e=c.length)throw g.Nm;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}; return d}; g.k.clear=function(){this.i.clear()}; g.k.key=function(a){return this.i.key(a)};g.Sa(Yn,Xn);g.Sa(Zn,Xn);g.Sa(ao,Wn);var rea={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},$n=null;g.k=ao.prototype;g.k.isAvailable=function(){return!!this.i}; g.k.set=function(a,b){this.i.setAttribute(bo(a),b);co(this)}; g.k.get=function(a){a=this.i.getAttribute(bo(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; g.k.remove=function(a){this.i.removeAttribute(bo(a));co(this)}; g.k.wg=function(a){var b=0,c=this.i.XMLDocument.documentElement.attributes,d=new g.Ui;d.next=function(){if(b>=c.length)throw g.Nm;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}; return d}; g.k.clear=function(){for(var a=this.i.XMLDocument.documentElement,b=a.attributes.length;0=b)){if(1==b)ib(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.Fg=function(){for(var a=this.i,b=[],c=a.length,d=0;dc;c++)b+=this.l[c]||0;3<=b&&this.J();this.C=d}this.B=a;this.G=this.i;this.u=(this.u+1)%4}}; hq.prototype.ra=function(){window.clearInterval(this.L);g.Yp(this.X)};g.v(mq,iq);mq.prototype.start=function(){var a=g.Ha("yt.scheduler.instance.start");a&&a()}; mq.prototype.pause=function(){var a=g.Ha("yt.scheduler.instance.pause");a&&a()};nq();var uq={};var Jq=AD||tG;var Rq={},Tea=0;var TFa,Tq,Vq;TFa=g.B.ytPubsubPubsubInstance||new g.On;Tq=g.B.ytPubsubPubsubSubscribedKeys||{};Vq=g.B.ytPubsubPubsubTopicToKeys||{};g.Uq=g.B.ytPubsubPubsubIsSynchronous||{};g.On.prototype.subscribe=g.On.prototype.subscribe;g.On.prototype.unsubscribeByKey=g.On.prototype.Nf;g.On.prototype.publish=g.On.prototype.W;g.On.prototype.clear=g.On.prototype.clear;g.Ga("ytPubsubPubsubInstance",TFa,void 0);g.Ga("ytPubsubPubsubTopicToKeys",Vq,void 0);g.Ga("ytPubsubPubsubIsSynchronous",g.Uq,void 0); g.Ga("ytPubsubPubsubSubscribedKeys",Tq,void 0);var t0;t0=window;g.O=t0.ytcsi&&t0.ytcsi.now?t0.ytcsi.now:t0.performance&&t0.performance.timing&&t0.performance.now&&t0.performance.timing.navigationStart?function(){return t0.performance.timing.navigationStart+t0.performance.now()}:function(){return(new Date).getTime()};var Wea=To("initial_gel_batch_timeout",2E3),pr=Math.pow(2,16)-1,qr=null,or=0,dr=void 0,ir=0,jr=0,fr=0,kr=!0,cr=g.B.ytLoggingTransportGELQueue_||new Map;g.Ga("ytLoggingTransportGELQueue_",cr,void 0);var ar=g.B.ytLoggingTransportTokensToCttTargetIds_||{};g.Ga("ytLoggingTransportTokensToCttTargetIds_",ar,void 0);var rr=g.B.ytLoggingGelSequenceIdObj_||{};g.Ga("ytLoggingGelSequenceIdObj_",rr,void 0);var vr=g.Ha("ytglobal.prefsUserPrefsPrefs_")||{};g.Ga("ytglobal.prefsUserPrefsPrefs_",vr,void 0);g.k=g.wr.prototype;g.k.get=function(a,b){Ar(a);zr(a);a=void 0!==vr[a]?vr[a].toString():null;return null!=a?a:b?b:""}; g.k.set=function(a,b){Ar(a);zr(a);if(null==b)throw Error("ExpectedNotNull");vr[a]=b.toString()}; g.k.remove=function(a){Ar(a);zr(a);delete vr[a]}; g.k.save=function(){var a=!0;g.So("web_secure_pref_cookie_killswitch")&&(a=!1);g.Ho(this.i,this.dump(),63072E3,this.l,a)}; g.k.clear=function(){g.Qb(vr)}; g.k.dump=function(){var a=[],b;for(b in vr)a.push(b+"="+encodeURIComponent(String(vr[b])));return a.join("&")}; Ja(g.wr);var Cr={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"},Er={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};Hr.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.i)try{this.i.set(a,b,g.Ra()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.vj(b))}catch(f){return}else e=escape(b);g.Ho(a,e,c,this.l)}; Hr.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.Io(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c}; Hr.prototype.remove=function(a){this.i&&this.i.remove(a);g.Jo(a,"/",this.l)};Jr.prototype.toString=function(){return this.topic};var UFa=g.Ha("ytPubsub2Pubsub2Instance")||new g.On;g.On.prototype.subscribe=g.On.prototype.subscribe;g.On.prototype.unsubscribeByKey=g.On.prototype.Nf;g.On.prototype.publish=g.On.prototype.W;g.On.prototype.clear=g.On.prototype.clear;g.Ga("ytPubsub2Pubsub2Instance",UFa,void 0);var Mr=g.Ha("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ga("ytPubsub2Pubsub2SubscribedKeys",Mr,void 0);var fs=g.Ha("ytPubsub2Pubsub2TopicToKeys")||{};g.Ga("ytPubsub2Pubsub2TopicToKeys",fs,void 0); var es=g.Ha("ytPubsub2Pubsub2IsAsync")||{};g.Ga("ytPubsub2Pubsub2IsAsync",es,void 0);g.Ga("ytPubsub2Pubsub2SkipSubKey",null,void 0);is.prototype.Ov=function(a,b){a={};var c=ql([]);c&&(a.Authorization=c,c=b=null===b||void 0===b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.M("SESSION_INDEX",0)),c=isNaN(c)?0:c),a["X-Goog-AuthUser"]=c,"INNERTUBE_HOST_OVERRIDE"in No||(a["X-Origin"]=window.location.origin),g.So("pageid_as_header_web")&&void 0===b&&"DELEGATED_SESSION_ID"in No&&(a["X-Goog-PageId"]=g.M("DELEGATED_SESSION_ID")));return a};var zt={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var ls=function(){var a;return function(){a||(a=new Hr("ytidb"));return a}}(); ns.prototype.isSupported=function(){return this.i};var ts=[],os,us=!1;g.v(g.xs,Error);var As;var u0={},Ds=(u0.AUTH_INVALID="No user identifier specified.",u0.EXPLICIT_ABORT="Transaction was explicitly aborted.",u0.IDB_NOT_SUPPORTED="IndexedDB is not supported.",u0.MISSING_OBJECT_STORE="Object store not created.",u0.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.",u0.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",u0.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",u0.EXECUTE_TRANSACTION_ON_CLOSED_DB= "Can't start a transaction on a closed database",u0),v0={},bfa=(v0.AUTH_INVALID="ERROR",v0.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",v0.EXPLICIT_ABORT="IGNORED",v0.IDB_NOT_SUPPORTED="ERROR",v0.MISSING_OBJECT_STORE="ERROR",v0.QUOTA_EXCEEDED="WARNING",v0.QUOTA_MAYBE_EXCEEDED="WARNING",v0.UNKNOWN_ABORT="WARNING",v0),w0={},cfa=(w0.AUTH_INVALID=!1,w0.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,w0.EXPLICIT_ABORT=!1,w0.IDB_NOT_SUPPORTED=!1,w0.MISSING_OBJECT_STORE=!1,w0.QUOTA_EXCEEDED=!1,w0.QUOTA_MAYBE_EXCEEDED= !0,w0.UNKNOWN_ABORT=!0,w0);g.v(Es,g.xs);g.v(Fs,Es);var dfa=["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"];Hs.all=function(a){return new Hs(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={wp:0};f.wpb&&Ss(a,"databases",{keyPath:"actualName"})}});var kt;g.v(ot,Hs);ot.reject=Hs.reject;ot.resolve=Hs.resolve;ot.all=Hs.all;g.v(pt,ft);pt.prototype.l=function(a,b,c){c=void 0===c?{}:c;return(this.options.Ex?ufa:tfa)(a,b,Object.assign(Object.assign({},c),{clearDataOnAuthChange:this.options.clearDataOnAuthChange}))}; pt.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.Ex?wfa:vfa)(this.name,a)};var rt;var At;var Efa=To("network_polling_interval",3E4);g.v(Dt,g.Ul);g.k=Dt.prototype;g.k.Rj=function(){this.B||this.i===this.bw()||Zo(new g.xs("NetworkStatusManager isOnline does not match window status"));return this.i}; g.k.SO=function(a){this.u=!0;if(void 0===a?0:a)this.Y||Gt(this)}; g.k.bw=function(){var a=window.navigator.onLine;return void 0===a?!0:a}; g.k.vN=function(){this.L=!0}; g.k.Ra=function(a,b){return g.Ul.prototype.Ra.call(this,a,b)}; g.k.Pm=function(a){var b=this;return this.J?this.J:this.J=new Promise(function(c){return g.D(b,function e(){var f,h,l,m=this;return g.z(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,ta(n,2,3),f&&(m.U=g.lq(function(){f.abort()},a||2E4)),g.w(n,fetch("/generate_204",{method:"HEAD", signal:h}),5);case 5:l=!0;case 3:wa(n);m.J=void 0;m.U&&g.pq(m.U);l!==m.i&&(m.i=l,m.i&&m.u?m.dispatchEvent("ytnetworkstatus-online"):m.u&&m.dispatchEvent("ytnetworkstatus-offline"));c(l);xa(n,0);break;case 2:va(n),l=!1,n.xb(3)}})})})}; Dt.prototype.sendNetworkCheckRequest=Dt.prototype.Pm;Dt.prototype.listen=Dt.prototype.Ra;Dt.prototype.enableErrorFlushing=Dt.prototype.vN;Dt.prototype.getWindowStatus=Dt.prototype.bw;Dt.prototype.monitorNetworkStatusChange=Dt.prototype.SO;Dt.prototype.isNetworkAvailable=Dt.prototype.Rj;Dt.getInstance=Et;g.v(It,g.Ul);It.prototype.Rj=function(){var a=g.Ha("yt.networkStatusManager.instance.isNetworkAvailable").bind(this.i);return a?a():!0}; It.prototype.Pm=function(a){return g.D(this,function c(){var d=this,e;return g.z(c,function(f){return(e=g.Ha("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(d.i))?f.return(e(a)):f.return(!0)})})};var St=0,Vt=0,Wt,Ut=g.B.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,isIdbSupported:!1,potentialEsfErrorCounter:Vt};g.So("export_networkless_options")&&g.Ga("ytNetworklessLoggingInitializationOptions",Ut,void 0);g.Xt.prototype.isReady=function(){!this.config_&&Gr()&&(this.config_=g.mr());return!!this.config_};var Hfa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),Jfa=["/fashion","/feed/fashion_destination","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ"];var au={};g.v(gu,g.F);gu.prototype.N=function(a,b,c,d,e){c=Yo((0,g.C)(c,d||this.Ha));c={target:a,name:b,callback:c};var f;e&&SFa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.G.push(c);return c}; gu.prototype.fc=function(a){for(var b=0;b=this.start&&(aeGa.length)z0=void 0;else{var A0=dGa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);z0=A0&&6==A0.length?Number(A0[5].replace("_",".")):0}var uG=z0,UM=0<=uG;UM&&0<=g.Uc.search("Safari")&&g.Uc.search("Version");g.v(ew,Ir);g.v(fw,Ir);var tga=new Jr("aft-recorded",ew),ax=new Jr("timing-sent",fw);var B0=window,iw=B0.performance||B0.mozPerformance||B0.msPerformance||B0.webkitPerformance||new sga;var uw=!1,C0={'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/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"},xga=(0,g.C)(iw.clearResourceTimings||iw.webkitClearResourceTimings||iw.mozClearResourceTimings||iw.msClearResourceTimings||iw.oClearResourceTimings||g.Ia,iw);var Cw=g.B.ytLoggingLatencyUsageStats_||{};g.Ga("ytLoggingLatencyUsageStats_",Cw,void 0);Aw.prototype.tick=function(a,b,c){Dw(this,"tick_"+a+"_"+b)||g.rs("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c})}; Aw.prototype.info=function(a,b){var c=Object.keys(a).join("");Dw(this,"info_"+c+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.rs("latencyActionInfo",a))}; Aw.prototype.span=function(a,b){var c=Object.keys(a).join("");Dw(this,"span_"+c+"_"+b)||(a.clientActionNonce=b,g.rs("latencyActionSpan",a))};var D0={},Lw=(D0.auto_search="LATENCY_ACTION_AUTO_SEARCH",D0.ad_to_ad="LATENCY_ACTION_AD_TO_AD",D0.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",D0.app_startup="LATENCY_ACTION_APP_STARTUP",D0["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",D0["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",D0["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",D0.browse="LATENCY_ACTION_BROWSE",D0.channels="LATENCY_ACTION_CHANNELS",D0.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD", D0["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",D0["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",D0["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",D0["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",D0["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",D0["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",D0["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",D0["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS", D0["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",D0["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",D0.chips="LATENCY_ACTION_CHIPS",D0["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",D0["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",D0.embed="LATENCY_ACTION_EMBED",D0.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",D0.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",D0.home= "LATENCY_ACTION_HOME",D0.library="LATENCY_ACTION_LIBRARY",D0.live="LATENCY_ACTION_LIVE",D0.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",D0.onboarding="LATENCY_ACTION_KIDS_ONBOARDING",D0.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",D0.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",D0.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",D0.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",D0["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS", D0["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",D0.prebuffer="LATENCY_ACTION_PREBUFFER",D0.prefetch="LATENCY_ACTION_PREFETCH",D0.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",D0.profile_switcher="LATENCY_ACTION_KIDS_PROFILE_SWITCHER",D0.reel_watch="LATENCY_ACTION_REEL_WATCH",D0.results="LATENCY_ACTION_RESULTS",D0.search_ui="LATENCY_ACTION_SEARCH_UI",D0.search_suggest="LATENCY_ACTION_SUGGEST",D0.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",D0.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE", D0.seek="LATENCY_ACTION_PLAYER_SEEK",D0.settings="LATENCY_ACTION_SETTINGS",D0.tenx="LATENCY_ACTION_TENX",D0.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",D0.watch="LATENCY_ACTION_WATCH",D0.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",D0["watch,watch7"]="LATENCY_ACTION_WATCH",D0["watch,watch7_html5"]="LATENCY_ACTION_WATCH",D0["watch,watch7ad"]="LATENCY_ACTION_WATCH",D0["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",D0.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",D0.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING", D0["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",D0["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",D0["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",D0["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",D0["video.video_editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",D0["video.video_editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",D0["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",D0.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT", D0.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",D0.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",D0),E0={},Hw=(E0.ad_allowed="adTypesAllowed",E0.yt_abt="adBreakType",E0.ad_cpn="adClientPlaybackNonce",E0.ad_docid="adVideoId",E0.yt_ad_an="adNetworks",E0.ad_at="adType",E0.aida="appInstallDataAgeMs",E0.browse_id="browseId",E0.p="httpProtocol",E0.t="transportProtocol",E0.cpn="clientPlaybackNonce",E0.ccs="creatorInfo.creatorCanaryState",E0.csn="clientScreenNonce", E0.docid="videoId",E0.GetHome_rid="requestIds",E0.GetSearch_rid="requestIds",E0.GetPlayer_rid="requestIds",E0.GetWatchNext_rid="requestIds",E0.GetBrowse_rid="requestIds",E0.GetLibrary_rid="requestIds",E0.is_continuation="isContinuation",E0.is_nav="isNavigation",E0.b_p="kabukiInfo.browseParams",E0.is_prefetch="kabukiInfo.isPrefetch",E0.is_secondary_nav="kabukiInfo.isSecondaryNav",E0.prev_browse_id="kabukiInfo.prevBrowseId",E0.query_source="kabukiInfo.querySource",E0.voz_type="kabukiInfo.vozType",E0.yt_lt= "loadType",E0.mver="creatorInfo.measurementVersion",E0.yt_ad="isMonetized",E0.nr="webInfo.navigationReason",E0.nrsu="navigationRequestedSameUrl",E0.ncnp="webInfo.nonPreloadedNodeCount",E0.pnt="performanceNavigationTiming",E0.prt="playbackRequiresTap",E0.plt="playerInfo.playbackType",E0.pis="playerInfo.playerInitializedState",E0.paused="playerInfo.isPausedOnLoad",E0.yt_pt="playerType",E0.fmt="playerInfo.itag",E0.yt_pl="watchInfo.isPlaylist",E0.yt_pre="playerInfo.preloadType",E0.yt_ad_pr="prerollAllowed", E0.pa="previousAction",E0.yt_red="isRedSubscriber",E0.rce="mwebInfo.responseContentEncoding",E0.scrh="screenHeight",E0.scrw="screenWidth",E0.st="serverTimeMs",E0.ssdm="shellStartupDurationMs",E0.br_trs="tvInfo.bedrockTriggerState",E0.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",E0.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",E0.label="tvInfo.label",E0.is_mdx="tvInfo.isMdx",E0.preloaded="tvInfo.isPreloaded",E0.upg_player_vis="playerInfo.visibilityState",E0.query="unpluggedInfo.query", E0.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",E0.yt_vst="videoStreamType",E0.vph="viewportHeight",E0.vpw="viewportWidth",E0.yt_vis="isVisible",E0.rcl="mwebInfo.responseContentLength",E0.GetSettings_rid="requestIds",E0.GetTrending_rid="requestIds",E0.GetMusicSearchSuggestions_rid="requestIds",E0.REQUEST_ID="requestIds",E0),vga="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(" "), F0={},Iw=(F0.ccs="CANARY_STATE_",F0.mver="MEASUREMENT_VERSION_",F0.pis="PLAYER_INITIALIZED_STATE_",F0.yt_pt="LATENCY_PLAYER_",F0.pa="LATENCY_ACTION_",F0.yt_vst="VIDEO_STREAM_TYPE_",F0),wga="all_vc ap aq c cver cbrand cmodel cplatform ctheme 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 G0=window;G0.ytcsi&&(G0.ytcsi.info=g.Sw,G0.ytcsi.tick=Tw);var Dia={mX:1,BX:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var CS=16/9,fGa=[.25,.5,.75,1,1.25,1.5,1.75,2],gGa=fGa.concat([3,4,5,6,7,8,9,10,15]);dx.prototype.getLanguageInfo=function(){return this.Ic}; dx.prototype.toString=function(){return this.Ic.name}; dx.prototype.getLanguageInfo=dx.prototype.getLanguageInfo;var H0,jx;H0={};g.gx=(H0.auto=0,H0.tiny=144,H0.light=144,H0.small=240,H0.medium=360,H0.large=480,H0.hd720=720,H0.hd1080=1080,H0.hd1440=1440,H0.hd2160=2160,H0.hd2880=2880,H0.highres=4320,H0);jx={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};ex.prototype.isLocked=function(){return this.u&&!!this.l&&this.l===this.i}; ex.prototype.compose=function(a){if(a.u&&ix(a))return BF;if(a.u||ix(this))return a;if(this.u||ix(a))return this;var b=this.l&&a.l?Math.max(this.l,a.l):this.l||a.l,c=this.i&&a.i?Math.min(this.i,a.i):this.i||a.i;b=Math.min(b,c);return b===this.l&&c===this.i?this:new ex(b,c,!1,c===this.i?this.reason:a.reason)}; ex.prototype.B=function(a){return a.video?lx(this,a.video.quality):!1}; var fAa=hx("auto","hd1080",!1,"l"),ixa=hx("auto","large",!1,"l"),BF=hx("auto","auto",!1,"p");hx("small","auto",!1,"p");mx.prototype.Yl=function(a){a=a||BF;for(var b=g.Je(this.videoInfos,function(h){return a.B(h)}),c=[],d={},e=0;ea.Ka&&this.index.getFirstSegmentNumber()<=a.Ka+1}; g.k.update=function(a,b,c){this.index.append(a);Fy(this.index,c);this.J=b}; g.k.xe=function(){return this.jr()?!0:Nz.prototype.xe.call(this)}; g.k.Cl=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.Zp=function(a){if(!this.Bj)return Ey.prototype.Zp.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a=b.endTime)b=b.Ka+Math.floor((a-b.endTime)/this.pg+1);else{b=wb(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.Ka-b.Ka-1))+1)+b.Ka}return this.wi(b)}; g.k.wi=function(a){if(!this.Bj)return Ey.prototype.wi.call(this,a);if(!this.segments.length)return null;var b=pA(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.pg;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ka-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ka-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ka-d.Ka-1),d=d.endTime+(a-d.Ka-1)*b);return new Dy(a,d,b,0,"sq/"+a,void 0,void 0, !0)};g.v(rA,iA);g.k=rA.prototype;g.k.Xs=function(){return!0}; g.k.xe=function(){return!0}; g.k.Bl=function(a){return!a.u}; g.k.Yn=function(){}; g.k.fm=function(a,b){b=void 0===b?!1:b;return"number"!==typeof a||isFinite(a)?iA.prototype.fm.call(this,a,b):(a=new Vz(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Xh,void 0,this.Xh*this.info.Kb),new dA([a],""))}; g.k.Cl=function(a,b){var c=void 0===c?!1:c;if(qA(this.index,a))return iA.prototype.Cl.call(this,a,b);var d=this.index.getStartTime(a),e=b?0:this.Xh*this.info.Kb;b=!b;c=new Vz(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a===this.index.getLastSegmentNumber()&&!this.J&&0a.Ka&&this.index.getFirstSegmentNumber()<=a.Ka+1}; g.k.DA=function(){return 0}; g.k.aC=function(){return!1};uA.prototype.append=function(a){if(vA(this,a)){var b=this.i[this.i.length-1];this.i[this.i.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);xA(this)}else this.i.push(a);this.totalLength+=a.length}; uA.prototype.split=function(a){for(var b=new uA,c=new uA,d=g.q(this.i),e=d.next();!e.done;e=d.next())e=e.value,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{gw:b,jp:c}}; uA.prototype.isFocused=function(a){return a>=this.u&&athis.info.l||4===this.info.type)return!0;var b=GA(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.l&&1936286840===b;if(3===this.info.type&&0===this.info.Ab)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.l||4===this.info.type)return!0;c=GA(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.Ab)return 524531317===c||440786851===c}return!0};g.k=RA.prototype;g.k.getOffset=function(a){return this.offsets[a]}; g.k.getStartTime=function(a){return this.i[a]/this.u}; 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.u:-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=this.index.getOffset(c+1);)c++;return UA(this,c,b,a.l).i}; g.k.Bl=function(a){return this.xe()?!0:a.range.end+1this.info.contentLength&&(b=new Pz(b.start,this.info.contentLength-1)),a=[new Vz(4,a.i,b,"getNextRequestInfoByLength")],new dA(a);4===a.type&&(a=this.Rt(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Ab+a.l;3===a.type&&(c=a.Ka,d===a.range.end+1&&(c+=1));return UA(this,c,d,b)}; g.k.ir=function(){return null}; g.k.fm=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return UA(this,a,this.index.getOffset(a),0)}; g.k.yg=function(){return!0}; g.k.Xs=function(){return!1}; g.k.DA=function(){return this.indexRange.length+this.initRange.length}; g.k.aC=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var J0={},tx=(J0.WIDTH={name:"width",video:!0,valid:640,invalid:99999},J0.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},J0.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},J0.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},J0.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},J0.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},J0.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},J0.DECODETOTEXTURE={name:"decode-to-texture", video:!0,valid:"false",invalid:"nope"},J0.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},J0.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},J0);var Z={},$A=(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 YA="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");XA.prototype.isHdr=function(){return"smpte2084"===this.l||"arib-std-b67"===this.l};g.k=aB.prototype;g.k.fb=function(){return this.video}; g.k.kc=function(){return this.id.split(";",1)[0]}; g.k.ye=function(){return 2===this.containerType}; g.k.isEncrypted=function(){return!!this.Fd}; g.k.wm=function(){return!!this.audio}; g.k.isVideo=function(){return!!this.video};hB.prototype.getName=function(){return this.name}; hB.prototype.getId=function(){return this.id}; hB.prototype.getIsDefault=function(){return this.isDefault}; hB.prototype.toString=function(){return this.name}; hB.prototype.getName=hB.prototype.getName;hB.prototype.getId=hB.prototype.getId;hB.prototype.getIsDefault=hB.prototype.getIsDefault;g.v(xB,g.P);g.k=xB.prototype;g.k.appendBuffer=function(a,b,c){if(this.Zc.Nv()!==this.appendWindowStart+this.start||this.Zc.xA()!==this.appendWindowEnd+this.start||this.Zc.Kc()!==this.timestampOffset+this.start)this.Zc.supports(1),this.Zc.xC(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Zc.Mq(this.timestampOffset+this.start);this.Zc.appendBuffer(a,b,c)}; g.k.abort=function(){this.Zc.abort()}; g.k.remove=function(a,b){this.Zc.remove(a+this.start,b+this.start)}; g.k.xC=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b}; g.k.JA=function(){return this.timestampOffset+this.start}; g.k.Nv=function(){return this.appendWindowStart}; g.k.xA=function(){return this.appendWindowEnd}; g.k.Mq=function(a){this.timestampOffset=a}; g.k.Kc=function(){return this.timestampOffset}; g.k.Ne=function(a){a=this.Zc.Ne(void 0===a?!1:a);return wB(a,this.start,this.end)}; g.k.Yf=function(){return this.Zc.Yf()}; g.k.Xn=function(){return this.Zc.Xn()}; g.k.Qv=function(){return this.Zc.Qv()}; g.k.iD=function(a,b){this.Zc.iD(a,b)}; g.k.supports=function(a){return this.Zc.supports(a)}; g.k.Rv=function(){return this.Zc.Rv()}; g.k.isView=function(){return!0}; g.k.yu=function(a,b,c){return this.isActive?this.Zc.yu(a,b,c):!1}; g.k.Iz=function(){return this.Zc.Iz()?this.isActive:!1}; g.k.isLocked=function(){return this.Du&&!this.isActive}; g.k.Db=function(a){return this.Zc.Db(a)+(";vw."+this.start+"-"+this.end)}; g.k.Cs=function(){return this.Zc.Cs()}; g.k.HA=function(){return this.Zc.HA()}; g.k.ra=function(){ku(this.Zc,this.DG);g.P.prototype.ra.call(this)};var tT=!1;g.v(CB,g.P);g.k=CB.prototype;g.k.appendBuffer=function(a,b,c){var d;this.Zu=!1;c&&(this.zw=c);b&&(b.isEncrypted()&&(this.eH=this.zw),3===b.type&&(this.ze=b));this.St&&(2<=this.St.length||32768this.Nv()?(this.Rb.appendWindowEnd=b,this.Rb.appendWindowStart=a):(this.Rb.appendWindowStart=a,this.Rb.appendWindowEnd=b))}; g.k.JA=function(){return this.timestampOffset}; g.k.Mq=function(a){tT?this.timestampOffset=a:this.supports(1)&&(this.Rb.timestampOffset=a)}; g.k.Kc=function(){return tT?this.timestampOffset:this.supports(1)?this.Rb.timestampOffset:0}; g.k.Ne=function(a){if(void 0===a?0:a)return this.Zu||this.Yf()||(this.oF=this.Ne(!1),this.Zu=!0),this.oF;try{return this.Rb?this.Rb.buffered:this.me?this.me.webkitSourceBuffered(this.id):pB([0],[Infinity])}catch(b){return pB([],[])}}; g.k.Yf=function(){var a;return(null===(a=this.Rb)||void 0===a?void 0:a.updating)||!1}; g.k.Xn=function(){return this.zw}; g.k.Qv=function(){return this.eH}; g.k.iD=function(a,b){this.containerType!==a&&(this.supports(4),DB()&&this.Rb.changeType(b));this.containerType=a}; g.k.Rv=function(){return this.ze}; 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.Rb)||void 0===b?void 0:b.timestampOffset);case 0:return!(null===(c=this.Rb)||void 0===c||!c.appendBuffer);case 2:return!(null===(d=this.Rb)||void 0===d||!d.remove);case 3:return!!((null===(e=this.Rb)||void 0===e?0:e.addEventListener)&&(null===(f=this.Rb)||void 0===f?0:f.removeEventListener));case 4:return!(!this.Rb||!this.Rb.changeType);default:return!1}}; g.k.Iz=function(){return!this.Yf()}; g.k.isLocked=function(){return!1}; g.k.Db=function(a){var b,c;a.to=""+this.Kc();a.up=""+ +this.Yf();var d=(null===(b=this.Rb)||void 0===b?void 0:b.appendWindowStart)||0,e=(null===(c=this.Rb)||void 0===c?void 0:c.appendWindowEnd)||Infinity;a.aw=d.toFixed(3)+"-"+e.toFixed(3);try{a.bu=qB(this.Ne())}catch(f){}return g.zB(a)}; g.k.ra=function(){this.supports(3)&&(this.Rb.removeEventListener("updateend",this.Wd),this.Rb.removeEventListener("error",this.Wd));g.P.prototype.ra.call(this)}; g.k.yu=function(a,b,c){if(!this.supports(2)||this.Yf())return!1;var d=this.Ne(),e=rB(d,a);if(0>e)return!1;try{if(b&&e+1(0,g.O)()-1E3*a))return 0;a=g.kv("yt-player-quality");if("string"===typeof a){if(a=g.gx[a],0qGa){N0=qGa;break a}}var rGa=O0.match("("+g.Kb(oGa).join("|")+")");N0=rGa?oGa[rGa[0]]:0}else N0=void 0}var xD=N0,wD=0<=xD;var Tha={RED:"red",H5:"white"};var Sha={ZT:"adunit",fX:"detailpage",tX:"editpage",wX:"embedded",xX:"embedded_unbranded",uZ:"leanback",G2:"previewpage",J2:"profilepage",S4:"unplugged",z2:"playlistoverview",g4:"sponsorshipsoffer",U3:"shortspage"};LC.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;Jq?a=a||sGa[b]:2.2===xD?a=a||tGa[b]:zq()&&(a=a||uGa[b]);return!!a}; LC.prototype.isTypeSupported=function(a){this.ea();return this.G?window.cast.receiver.platform.canDisplayType(a):kB(a)}; LC.prototype.disableAv1=function(){this.L=!0}; LC.prototype.ea=function(){}; var tGa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},uGa={"application/x-mpegURL":"maybe"},sGa={"application/x-mpegURL":"maybe"};g.v(PC,g.P);PC.prototype.add=function(a,b){!this.items[a]&&(b.Pr||b.ov||b.xu)&&(this.items[a]=Xb(b),this.W("vast_info_card_add",a))}; PC.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b}; PC.prototype.get=function(a){return this.items[a]||null}; PC.prototype.isEmpty=function(){return g.Pb(this.items)};var GD={NZ:1,OZ:2,PZ:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};RC.prototype.xg=function(a,b){var c=Math.pow(this.alpha,a);this.i=b*(1-c)+c*this.i;this.l+=a}; RC.prototype.Tf=function(){return this.i/(1-Math.pow(this.alpha,this.l))};TC.prototype.xg=function(a,b){a=Math.min(this.i,Math.max(1,Math.round(a*this.resolution)));a+this.valueIndex>=this.i&&(this.l=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.i;this.B=!0}; TC.prototype.Tf=function(){return this.C?(UC(this,this.u-this.C)+UC(this,this.u)+UC(this,this.u+this.C))/3:UC(this,this.u)};g.v(eD,g.F);var Oha=/^([0-9\.]+):([0-9\.]+)$/;var pD="area120-boutique blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),PD={CU:"cbrand",DU:"cbr",EU:"cbrver",EY:"c",HY:"cver",GY:"ctheme",FY:"cplayer",R0:"cmodel",B1:"cnetwork",U1:"cos",V1:"cosver",r2:"cplatform"};g.v(OD,g.F);g.k=OD.prototype;g.k.Z=function(a){return g.R(this.experiments,a)}; g.k.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.SD(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.BD(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,Jq&&(a=Lo())&&(b.ebc=a));return g.Hd(d,b)}; g.k.getVideoEmbedCode=function(a,b,c){a="https://"+g.SD(this)+"/embed/"+a;c&&(a=g.Hd(a,{list:c}));c=b.width;b=b.height;a=g.md(a);return''}; g.k.supportsGaplessAudio=function(){return g.lB&&!Jq&&74<=wq()||g.FC&&g.ae(68)?!0:!1}; g.k.getPlayerType=function(){return this.deviceParams.cplayer}; var Vha=["www.youtube-nocookie.com","youtube.googleapis.com"];g.k=iE.prototype;g.k.Pe=function(){return this.i}; g.k.qr=function(){return null}; g.k.jG=function(){var a=this.qr();return a?(a=g.ep(a.i),Number(a.expire)):NaN}; g.k.uC=function(){}; g.k.kc=function(){return this.i.kc()}; g.k.getHeight=function(){return this.i.fb().height};kE.prototype.gf=function(){Wha(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.i)var c=this.i;else{c="";for(var d=g.q(this.u),e=d.next();!e.done;e=d.next())if(e=e.value,e.Ic){if(e.Ic.getIsDefault()){c=e.Ic.getId();break a}c||(c=e.Ic.getId())}}d=g.q(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,e.Ic&&e.Ic.getId()!==c||(b[e.itag]=e);c=g.q(this.l);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.i]){var f=a,h=f.push,l="#EXT-X-MEDIA:TYPE=AUDIO,",m="YES",n="audio";if(e.Ic){n= e.Ic;var p=n.getId().split(".")[0];p&&(l+='LANGUAGE="'+p+'",');this.i||n.getIsDefault()||(m="NO");n=n.getName()}p="";null!==d&&(p=d.itag.toString());p=lE(this,e.url,p);l=l+('NAME="'+n+'",DEFAULT='+(m+',AUTOSELECT=YES,GROUP-ID="'))+(mE(e,d)+'",URI="'+(p+'"'));h.call(f,l)}c=g.q(this.l);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.i])e="#EXT-X-STREAM-INF:BANDWIDTH="+(d.bitrate+e.bitrate)+',CODECS="'+(d.codecs+","+e.codecs+'",RESOLUTION=')+(d.width+"x"+d.height+',AUDIO="')+(mE(e,d)+'",CLOSED-CAPTIONS=NONE'), 1b&&2<=c&&(Ss(a,"index"),Ss(a,"media"));5>b&&5<=c&&Ss(a,"captions");6>b&&6<=c&&(a.i.objectStoreNames.contains("metadata")&&a.i.deleteObjectStore("metadata"),a.i.objectStoreNames.contains("playerdata")&&a.i.deleteObjectStore("playerdata"))}, version:5});var sE=void 0;var iia=/^([\w\-_]+)\|(\d+)\|(\d+)\|(\d+)$/;g.k=g.EE.prototype;g.k.getId=function(){return this.id}; g.k.getName=function(){return this.name}; g.k.isServable=function(){return this.i}; g.k.toString=function(){return this.languageCode+": "+g.FE(this)+" - "+this.vssId}; g.k.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var IE={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},JE={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},KE=/^(\d*)_((\d*)_?(\d*))$/;var aF={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},dF={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var Q0={},Eia=(Q0.ALWAYS=1,Q0.BY_REQUEST=3,Q0.UNKNOWN=void 0,Q0),R0={},zia=(R0.COLOR_PRIMARIES_BT709="bt709",R0.COLOR_PRIMARIES_BT2020="bt2020",R0.COLOR_PRIMARIES_UNKNOWN=null,R0.COLOR_PRIMARIES_UNSPECIFIED=null,R0),S0={},ria=(S0.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",S0.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",S0.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",S0.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",S0.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,S0.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED= null,S0),T0={},mF=(T0.FAIRPLAY="fairplay",T0.PLAYREADY="playready",T0.WIDEVINE="widevine",T0.CLEARKEY=null,T0.FLASHACCESS=null,T0.UNKNOWN=null,T0.WIDEVINE_CLASSIC=null,T0),U0={},Fia=(U0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",U0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",U0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",U0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",U0),V0={},wia=(V0.UNKNOWN=0,V0.RECTANGULAR=1,V0.EQUIRECTANGULAR=2,V0.EQUIRECTANGULAR_THREED_TOP_BOTTOM= 3,V0.MESH=4,V0),W0={},yia=(W0.SPATIAL_AUDIO_TYPE_NONE=0,W0.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,W0.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,W0.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,W0),X0={},xia=(X0.STEREO_LAYOUT_UNKNOWN=0,X0.STEREO_LAYOUT_LEFT_RIGHT=1,X0.STEREO_LAYOUT_TOP_BOTTOM=2,X0),Y0={},via=(Y0.FORMAT_STREAM_TYPE_UNKNOWN=0,Y0.FORMAT_STREAM_TYPE_OTF=3,Y0);g.v(oF,g.P);oF.prototype.ra=function(){this.i&&(this.i=this.i.onload=null);g.P.prototype.ra.call(this)};g.k=g.vF.prototype;g.k.getHeight=function(){return this.height}; g.k.oG=ba(0);g.k.AA=function(){return this.u}; g.k.isDefault=function(){return-1!==this.B.indexOf("default")}; g.k.isLoaded=function(a){return this.loaded.has(a)}; g.k.Iu=function(a){var b=this.AA()-1;return g.ce(0===this.i?Math.round(a*this.u/this.videoLength):Math.round(1E3*a/this.i),0,b)}; g.k.rr=function(){return this.u-1}; g.k.Ey=function(){return this.u?0:-1}; g.k.KD=function(){};g.v(wF,oF);wF.prototype.l=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;ef.getHeight())&&c.push(f)}return c}; wF.prototype.G=function(a,b,c,d){return new g.vF(a,b,c,d)};g.v(yF,g.vF);g.k=yF.prototype;g.k.AA=function(){return this.l.getNumberOfSegments()}; g.k.Iu=function(a){var b=this.rows*this.columns*this.G,c=this.l,d=c.getLastSegmentNumber();a=c.getSegmentNumberForTime(a);return a>d-b?-1:a}; g.k.rr=function(){return this.l.getLastSegmentNumber()}; g.k.Ey=function(){return this.l.getFirstSegmentNumber()}; g.k.KD=function(a){this.l=a};g.v(zF,wF);zF.prototype.l=function(a,b){return wF.prototype.l.call(this,"$N|"+a,b)}; zF.prototype.G=function(a,b,c){return new yF(a,b,c,this.isLive)};g.v(g.DF,g.P);g.k=g.DF.prototype;g.k.T=function(){return this.B}; g.k.Z=function(a){return g.R(this.B.experiments,a)}; g.k.Se=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.k.WH=function(){this.Ia()||(this.i.u||this.i.unsubscribe("refresh",this.WH,this),this.zF(-1))}; g.k.zF=function(a){if(!this.isLivePlayback||!this.G||"fairplay"!=this.G.flavor){var b=$B(this.i,this.iC);if(0=this.L&&(g.Xo(Error("durationMs was specified incorrectly with a value of: "+this.L)),this.Tg());this.mf();this.I.addEventListener("progresssync",this.Y)}; g.k.Vf=function(){lH.prototype.Vf.call(this);this.bd("adabandonedreset")}; g.k.mf=function(){var a=this.I.T();lH.prototype.mf.call(this);this.i=g.R(this.I.T().experiments,"disable_rounding_ad_notify")?this.I.getCurrentTime():Math.floor(this.I.getCurrentTime());this.B=this.i+this.L/1E3;g.LD(a)?this.I.Na("onAdMessageChange",{renderer:this.J.i,startTimeSecs:this.i}):mH(this,[new Pja(this.J.i)]);a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Du(),c=this.J.i.videoAdBreakOffsetMsInt64;b&&g.rs("adNotify",{clientScreenNonce:b,adMediaTimeMs:1E3*this.B,timeToAdBreakSec:Math.ceil(this.B- this.i),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.C)for(this.U=!0,a=g.q(this.C.listeners),b=a.next();!b.done;b=a.next())b=b.value,b.l?b.i?Q("Received AdNotify started event before another one exited"):(b.i=b.l,zka(b.u(),b.i)):Q("Received AdNotify started event without start requested event");g.T(this.I.ub(1),512)&&(a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.Du(),c=this.J.i.videoAdBreakOffsetMsInt64,b&&g.rs("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:1E3* this.B,timeToAdBreakSec:Math.ceil(this.B-this.i),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.Tg())}; g.k.Tg=function(){lH.prototype.Tg.call(this);this.bd("adended")}; g.k.Gg=function(a){lH.prototype.Gg.call(this,a);this.bd("aderror")}; g.k.bd=function(a){this.I.removeEventListener("progresssync",this.Y);this.ri();this.W(a);Rja(this)}; g.k.dispose=function(){this.I.removeEventListener("progresssync",this.Y);Rja(this);lH.prototype.dispose.call(this)}; g.k.ri=function(){g.LD(this.I.T())?this.I.Na("onAdMessageChange",{renderer:null,startTimeSecs:this.i}):lH.prototype.ri.call(this)};g.v(Sja,gH);xH.prototype.sendAdsPing=function(a){this.C.send(a,cka(this),{})}; xH.prototype.md=function(a){var b=this;if(a){var c=cka(this);Array.isArray(a)?a.forEach(function(d){return b.l.executeCommand(d,c)}):this.l.executeCommand(a,c)}};yH.prototype.get=function(){return this.value}; g.v(zH,yH);zH.prototype.Vb=function(){return"metadata_type_action_companion_ad_renderer"}; g.v(AH,yH);AH.prototype.Vb=function(){return"metadata_type_ad_next_params"}; g.v(BH,yH);BH.prototype.Vb=function(){return"metadata_type_ad_video_clickthrough_endpoint"}; g.v(CH,yH);CH.prototype.Vb=function(){return"metadata_type_invideo_overlay_ad_renderer"}; g.v(DH,yH);DH.prototype.Vb=function(){return"metadata_type_image_companion_ad_renderer"}; g.v(EH,yH);EH.prototype.Vb=function(){return"metadata_type_shopping_companion_carousel_renderer"}; g.v(FH,yH);FH.prototype.Vb=function(){return"metadata_type_ad_info_ad_metadata"}; g.v(GH,yH);GH.prototype.Vb=function(){return"metadata_ad_video_is_listed"}; g.v(HH,yH);HH.prototype.Vb=function(){return"metadata_type_ad_placement_config"}; g.v(IH,yH);IH.prototype.Vb=function(){return"metadata_type_ad_pod_info"}; g.v(JH,yH);JH.prototype.Vb=function(){return"metadata_type_ad_video_id"}; g.v(KH,yH);KH.prototype.Vb=function(){return"metadata_type_ad_video_url"}; g.v(LH,yH);LH.prototype.Vb=function(){return"metadata_type_content_cpn"}; g.v(MH,yH);MH.prototype.Vb=function(){return"metadata_type_instream_ad_player_overlay_renderer"}; g.v(NH,yH);NH.prototype.Vb=function(){return"metadata_type_ad_action_interstitial_renderer"}; g.v(OH,yH);OH.prototype.Vb=function(){return"metadata_type_valid_survey_text_interstitial_renderer"}; g.v(PH,yH);PH.prototype.Vb=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"}; g.v(QH,yH);QH.prototype.Vb=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"}; g.v(RH,yH);RH.prototype.Vb=function(){return"metadata_type_sliding_text_player_overlay_renderer"}; g.v(SH,yH);SH.prototype.Vb=function(){return"metadata_type_linked_player_bytes_layout_id"}; g.v(TH,yH);TH.prototype.Vb=function(){return"metadata_type_linked_in_player_layout_id"}; g.v(UH,yH);UH.prototype.Vb=function(){return"metadata_type_linked_in_player_slot_id"}; g.v(VH,yH);VH.prototype.Vb=function(){return"metadata_type_player_bytes_callback"}; g.v(WH,yH);WH.prototype.Vb=function(){return"metadata_type_player_bytes_callback_ref"}; g.v(XH,yH);XH.prototype.Vb=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"}; g.v(YH,yH);YH.prototype.Vb=function(){return"metadata_type_sub_layouts"}; g.v(ZH,yH);ZH.prototype.Vb=function(){return"metadata_type_cue_point"}; g.v($H,yH);$H.prototype.Vb=function(){return"metadata_type_video_length_seconds"}; g.v(aI,yH);aI.prototype.Vb=function(){return"metadata_type_player_vars"}; g.v(bI,yH);bI.prototype.Vb=function(){return"metadata_type_sodar_extension_data"}; g.v(cI,yH);cI.prototype.Vb=function(){return"metadata_type_layout_enter_ms"}; g.v(dI,yH);dI.prototype.Vb=function(){return"metadata_type_layout_exit_ms"}; g.v(eI,yH);eI.prototype.Vb=function(){return"metadata_type_media_sub_layout_index"}; g.v(fI,yH);fI.prototype.Vb=function(){return"metadata_type_dai"}; g.v(gI,yH);gI.prototype.Vb=function(){return"metadata_type_ad_intro"}; g.v(hI,yH);hI.prototype.Vb=function(){return"metadata_type_client_forecasting_ad_renderer"}; g.v(iI,yH);iI.prototype.Vb=function(){return"metadata_type_drift_recovery_ms"}; g.v(jI,yH);jI.prototype.Vb=function(){return"metadata_type_fulfilled_layout"}; g.v(kI,yH);kI.prototype.Vb=function(){return"metadata_type_ad_break_request_data"}; g.v(lI,yH);lI.prototype.Vb=function(){return"metadata_type_ad_break_response_data"}; g.v(mI,yH);mI.prototype.Vb=function(){return"metadata_type_remote_slots_data"}; g.v(nI,yH);nI.prototype.Vb=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"}; g.v(oI,yH);oI.prototype.Vb=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"}; g.v(pI,yH);pI.prototype.Vb=function(){return"metadata_type_legacy_info_card_vast_extension"}; g.v(qI,yH);qI.prototype.Vb=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};jka.prototype.md=function(a){this.i.md(a)};g.v(sI,g.P);sI.prototype.getProgressState=function(){return this.u}; sI.prototype.start=function(){this.B=Date.now();lka(this,{current:this.i/1E3,duration:this.l/1E3});this.Hb.start()}; sI.prototype.stop=function(){this.Hb.stop()};g.v(tI,gH);g.v(uI,lH);g.k=uI.prototype;g.k.Dp=function(){this.mf()}; g.k.mf=function(){var a=this.C.i;g.LD(this.I.T())?(g.R(this.I.T().experiments,"validate_tvhtml5_instream_survey_ad_renderer_in_bulleit")&&!rI(a)?(g.Ou(Error("Expected a valid VOD InstreamSurveyAdRenderer.")),this.bd("aderror")):(a=kka(this.J,a),this.I.Na("onAdInfoChange",a)),this.L=Date.now(),this.i&&this.i.start()):mH(this,[new tI(a)]);lH.prototype.mf.call(this)}; g.k.getDuration=function(){return this.C.l}; g.k.jm=function(){lH.prototype.jm.call(this);this.i&&this.i.stop()}; g.k.lm=function(){lH.prototype.lm.call(this);this.i&&this.i.start()}; g.k.Vf=function(){lH.prototype.Vf.call(this);this.bd("adabandoned")}; g.k.mm=function(){lH.prototype.mm.call(this);this.bd("adended")}; g.k.Gg=function(a){lH.prototype.Gg.call(this,a);this.bd("aderror")}; g.k.bd=function(a){this.ri();this.W(a)}; g.k.nf=function(a){switch(a){case "skip-button":this.mm();break;case "survey-submit":this.bd("adended")}}; g.k.ri=function(){g.LD(this.I.T())?(this.i&&this.i.stop(),this.I.Na("onAdInfoChange",null)):lH.prototype.ri.call(this)};g.v(vI,gH);g.v(wI,lH);wI.prototype.Dp=function(){this.mf()}; wI.prototype.mf=function(){mH(this,[new vI(this.i.i,this.macros)]);lH.prototype.mf.call(this)}; wI.prototype.Vf=function(){lH.prototype.Vf.call(this);this.bd("adabandoned")}; wI.prototype.Gg=function(a){lH.prototype.Gg.call(this,a);this.bd("aderror")};g.v(qka,gH);g.v(rka,gH);g.v(ska,gH);g.v(zI,gH);g.v(tka,gH);g.v(uka,gH);g.v(AI,lH);g.k=AI.prototype;g.k.Bs=function(){return{currentTime:this.I.getCurrentTime(2,!1),duration:this.i.l,isPlaying:Dja(this.I),isVpaid:!1,isYouTube:!0,volume:this.I.isMuted()?0:this.I.getVolume()/100}}; g.k.Dp=function(){if(this.i.Y)Nja(this),this.bd("aderror");else{var a=this.i.i.legacyInfoCardVastExtension,b=this.i.B;a&&b&&this.I.T().U.add(b,{Pr:a});try{var c=this.i.i.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{Ve(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.dc("//tpc.googlesyndication.com/sodar/%{path}");g.Pu(new g.xs("Load Sodar Error.",{"Injector basename":c.siub,"Escaped injector basename":g.md(c.siub),ClickString:c.scs,"BG vm basename":c.bgub,"Sample instance":d instanceof bc, "Sample ctor":d.constructor===bc}));throw e;}}catch(e){g.Ou(e)}UG(this.I,!1);a=rja(this.i);b=this.I.T();g.R(this.I.T().experiments,"disable_force_iv_load_policy_on_bulleit")||(a.iv_load_policy=b.i||g.LD(b)||g.$D(b)?3:1);c=this.I.getVideoData(1);c.hg&&(a.ctrl=c.hg);c.xf&&(a.ytr=c.xf);c.Hk&&(a.ytrcc=c.Hk);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.uh&&(a.vss_credentials_token_type=c.uh),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));this.W("adunstarted",-1);!NY(this.L)&& g.LD(b)&&(b=FI(this),b=fka(this.Aa,b,this.i.i.adNextParams||""),b.attributionInfo=$ja(this.i.u,this.i.B||""),this.I.Na("onAdInfoChange",b));this.J?this.C.start():(this.I.cueVideoByPlayerVars(a,2),this.C.start(),this.I.playVideo(2))}}; g.k.jm=function(){lH.prototype.jm.call(this);this.W("adpause",2)}; g.k.lm=function(){lH.prototype.lm.call(this);this.W("adplay",1)}; g.k.mf=function(){lH.prototype.mf.call(this);this.C.stop();this.va.N(this.I,g.Wv("bltplayback"),this.BK);var a=new g.Tv(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});this.I.Bd([a],2);a=EI(this);this.B.Ha=a;if(!NY(this.L)){a=[];var b=this.I.T(),c=this.I.getVideoData(2);if(g.CD(b)||g.LD(b)){var d;(d=c&&c.isListed?{channelId:c.rh,channelThumbnailUrl:c.gg||"",channelTitle:c.author,videoTitle:c.title,channelVideoCount:0,showAdInfoIcon:!1,whyThisAdInfo:null,muteAdInfo:null}: null)&&this.I.Na("onAdMetadataAvailable",d)}g.LD(b)||(g.$D(b)&&!this.J&&(c&&c.videoId&&c.isListed&&c.videoId==this.i.B&&(b=c.title,d=c.author,c=c.gg,b&&d&&c?c=[new rka(b),new qka(c),new ska(d)]:(g.Pu(new g.xs("Channel metadata contains null for:",b?d?"channel icon thumbnail.":"channel name.":"video title.")),c=[]),mH(this,c)),a.push($ja(this.i.u,this.i.B||"")),c=this.i.G,null==c?c=null:(b={},c.urlEndpoint&&(b.url=c.urlEndpoint.url,b.target="TARGET_NEW_WINDOW"),c=new uka({navigationEndpoint:{urlEndpoint:b}})), c&&a.push(c),this.i.isSkippable()&&!CG(this.i)&&(c=FI(this),(c=c.skipOrPreviewRenderer&&c.skipOrPreviewRenderer.skipAdRenderer)||(c=Aka(this)),a.push(new tka(c)))),c=FI(this),a.push(new zI(c)),mH(this,a))}this.I.isMuted()&&(a=this.l,c=this.I.isMuted(),XG(a)||YG(a,c?"mute":"unmute"));this.W("adplay",1);if(null!==this.X){a=null!==this.B.i.getVideoData(1)?this.B.i.getVideoData(1).clientPlaybackNonce:"";c=wka(this);b=this.i;d=vka(this);for(var e=g.q(this.X.listeners),f=e.next();!f.done;f=e.next()){f= f.value;var h=c,l=b,m=d,n=[],p=l.B,r=l.getVideoUrl();p&&n.push(new JH(p));r&&n.push(new KH(r));(p=(p=l.i)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new MH(p)),(p=p.elementId)&&n.push(new TH(p))):Q("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");l.i.adNextParams&&n.push(new AH(l.i.adNextParams||""));(p=l.G)&&n.push(new BH(p));(p=Av(f.J.get(),2))?(n.push(new FH({channelId:p.rh,channelThumbnailUrl:p.gg,channelTitle:p.author,videoTitle:p.title})),n.push(new GH(p.isListed))): Q("Expected meaningful PlaybackData on ad started.");n.push(new IH(l.u));n.push(new $H(l.l));n.push(new LH(a));n.push(new WH({current:this}));p=l.Oa;null!=p.kind&&n.push(new HH(p));(p=l.X)&&n.push(new mI(p));void 0!==m&&n.push(new nI(m));f.i?Q(f.i.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):xka(f,h,n,!0,l.i.adLayoutLoggingData)}}this.U.yn=this;this.I.Na("onAdStart",EI(this));a=g.q(this.i.i.impressionCommands||[]);for(c=a.next();!c.done;c= a.next())this.B.executeCommand(c.value,this.macros)}; g.k.BK=function(a){"bltcompletion"==a.getId()&&(this.I.We("bltplayback",2),ZG(this.l,this.getDuration()),DI(this,"adended"),a0(this.U,this))}; g.k.Tg=function(){lH.prototype.Tg.call(this);this.bd("adended");for(var a=g.q(this.i.i.completeCommands||[]),b=a.next();!b.done;b=a.next())this.B.executeCommand(b.value,this.macros)}; g.k.Vf=function(){lH.prototype.Vf.call(this);this.bd("adabandoned")}; g.k.mC=function(){var a=this.l;VG(a)||cH(a,"clickthrough")}; g.k.Et=function(){this.mm()}; g.k.mm=function(){lH.prototype.mm.call(this);this.bd("adended")}; g.k.Gg=function(a){lH.prototype.Gg.call(this,a);this.bd("aderror")}; g.k.bd=function(a){this.C.stop();NY(this.L)||this.ri();UG(this.I,!0);"adabandoned"!=a&&this.I.Na("onAdComplete");DI(this,a);a0(this.U,this);this.I.Na("onAdEnd",EI(this));this.W(a)}; g.k.ri=function(){var a=this.I.T();g.LD(a)&&(g.$D(a)||g.R(a.experiments,"enable_topsoil_wta_for_halftime")||g.R(a.experiments,"enable_topsoil_wta_for_halftime_live_infra")||g.LD(a))?this.I.Na("onAdInfoChange",null):lH.prototype.ri.call(this)}; g.k.bl=function(){this.Y||this.wx()}; g.k.wx=function(){this.bH&&this.I.playVideo()}; g.k.bH=function(){return 2==this.I.getPlayerState(2)}; g.k.nf=function(a){if(!NY(this.L)){var b=this.l;if(SG(b.i))switch(a){case "ad-title":b.i.sendVideoStatsEngageEvent(14,void 0,2);break;case "ad-channel-thumbnail":case "advertiser-name":b.i.sendVideoStatsEngageEvent(15,void 0,2);break;case "visit-advertiser":b.i.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Y||this.wx();break;case "ad-info-icon-button":(this.Y=this.bH())||this.I.pauseVideo(); break;case "ad-channel-thumbnail":case "advertiser-name":a=this.I.T().protocol+"://"+g.RD(this.I.T())+"/channel/"+this.i.Aa;g.yI(a);break;case "ad-title":this.I.pauseVideo();g.yI(this.I.getVideoUrl());break;case "visit-advertiser":this.I.pauseVideo();if(g.$D(this.I.T())&&(a=this.i.G)){b=this.l;var c=a.loggingUrls||null;if(c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&aH(b,d.baseUrl,{},d.headers||[])}a.urlEndpoint&&a.urlEndpoint.url&&g.yI(a.urlEndpoint.url)}a=this.l;VG(a)|| cH(a,"clickthrough");break;case "skip-button":this.mm()}}}; g.k.SF=function(a,b){if(this.i.Y)return Nja(this),this.bd("aderror"),"";if(!Number.isFinite(a))return g.Ou(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.Ou(Error("Start time is not earlier than end time")),"";var c=1E3*this.i.l,d=rja(this.i);d=this.I.Np(d,2,c,a,b);a+c>b&&this.I.Tq(d,b-a);return d}; g.k.dispose=function(){Dja(this.I)&&!this.J&&this.I.stopVideo(2);DI(this,"adabandoned");a0(this.U,this);lH.prototype.dispose.call(this)};GI.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={Wr:null,kH:-Infinity},b=this.i[b]=c);c=a.startSecs+a.i/1E3;if(!(c=d)Mka(this);else if(this.actionType=this.u?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",this.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.B=c+1===d,"unknown_type"!==this.actionType)this.Wf=!0, a={adBreakType:Rka(this.l),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:this.videoStreamType},"ad_to_video"===this.actionType?(this.contentCpn&&(a.targetCpn=this.contentCpn),this.videoId&&(a.targetVideoId=this.videoId)):(this.adCpn&&(a.targetCpn=this.adCpn),this.adVideoId&&(a.targetVideoId=this.adVideoId)),this.adFormat&&(a.adType=this.adFormat),this.contentCpn&&(a.clientPlaybackNonce=this.contentCpn),this.videoId&&(a.videoId=this.videoId), this.adCpn&&(a.adClientPlaybackNonce=this.adCpn),this.adVideoId&&(a.adVideoId=this.adVideoId),Uw(a,this.actionType)}; LI.prototype.reset=function(){return new LI(this.I)};var Z0={},$0=(Z0.BUFFERING="buffering-mode",Z0.CUED="cued-mode",Z0.ENDED="ended-mode",Z0.PAUSED="paused-mode",Z0.PLAYING="playing-mode",Z0.SEEKING="seeking-mode",Z0.UNSTARTED="unstarted-mode",Z0);var vGa,a1,Ska; vGa={mU:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",tU:"AUTHENTICATION_MALFORMED",uU:"AUTHENTICATION_MISSING",zU:"BAD_REQUEST",KU:"CAST_SESSION_DEVICE_MISMATCHED",LU:"CAST_SESSION_VIDEO_MISMATCHED",MU:"CAST_TOKEN_EXPIRED",NU:"CAST_TOKEN_FAILED",OU:"CAST_TOKEN_MALFORMED",PU:"CGI_PARAMS_MALFORMED",QU:"CGI_PARAMS_MISSING",gX:"DEVICE_FALLBACK",EX:"GENERIC_WITH_LINK_AND_CPN",FX:"LICENSE",HX:"VIDEO_UNAVAILABLE",TX:"FORMAT_UNAVAILABLE",hY:"GEO_FAILURE",wY:"HTML5_AUDIO_RENDERER_ERROR",xY:"GENERIC_WITHOUT_LINK", yY:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",zY:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",AY:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",LY:"INVALID_DRM_MESSAGE",M2:"PURCHASE_NOT_FOUND",N2:"PURCHASE_REFUNDED",W2:"RENTAL_EXPIRED",g3:"RETRYABLE_ERROR",v3:"SERVER_ERROR",h4:"STOPPED_BY_ANOTHER_PLAYBACK",k4:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",l4:"STREAMING_NOT_ALLOWED",m4:"STREAM_LICENSE_NOT_FOUND",y4:"TOO_MANY_REQUESTS",z4:"TOO_MANY_REQUESTS_WITH_LINK",A4:"TOO_MANY_STREAMS_PER_ENTITLEMENT", B4:"TOO_MANY_STREAMS_PER_USER",a5:"UNSUPPORTED_DEVICE",m5:"VIDEO_FORBIDDEN",p5:"VIDEO_NOT_FOUND"};a1={}; g.IM=(a1.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",a1.DEVICE_FALLBACK="Sorry, this video is not available on this device.",a1.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",a1.LICENSE="Sorry, there was an error licensing this video.",a1.VIDEO_UNAVAILABLE= "Video unavailable",a1.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",a1.GEO_FAILURE="This video isn't available in your country.",a1.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",a1.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",a1.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",a1.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", a1.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",a1.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",a1.PURCHASE_NOT_FOUND="This video requires payment.",a1.PURCHASE_REFUNDED="This video's purchase has been refunded.",a1.RENTAL_EXPIRED="This video's rental has expired.",a1.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",a1.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.", a1.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",a1.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",a1.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",a1.SERVER_ERROR="There was an internal server error. Please try again later.",a1.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",a1.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.", a1.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",a1.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",a1.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",a1.TOO_MANY_REQUESTS="Please log in to watch this video.",a1.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",a1.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.", a1.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",a1.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",a1.VIDEO_FORBIDDEN="Access to this video is forbidden.",a1.VIDEO_NOT_FOUND="This video can not be found.",a1); Ska={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED", 5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};g.v(MI,g.F);g.k=MI.prototype;g.k.Lu=function(){return this.l}; g.k.Lp=function(a){var b="";a&&(Vka(this,a),b=a.i);if(!this.lf()||b)b&&this.lf()!==b&&this.Dx(b),wAa||a&&a.l||this.load(),this.G||(this.addEventListener("volumechange",this.BF),this.G=!0)}; g.k.Ku=function(){var a=this.pe();a=window.MediaSource?new FB(new window.MediaSource,void 0,!1):window.WebKitMediaSource?new FB(new window.WebKitMediaSource,void 0,!1):new FB(void 0,a,!1);this.Lp(a.kt);return a}; g.k.playVideo=function(){var a=this;this.Pj()&&this.seekTo(0);!this.lf()&&this.l&&(g.Xo(Error("playVideo without src")),this.Dx(this.l.i),this.l.l||this.load());var b=this.play();!b&&yAa&&UM&&7<=(uG||0)&&g.fq(this,"playing",function(){g.rp(function(){Uka(a,a.getCurrentTime(),0)},500)}); return b}; g.k.seekTo=function(a){0uG&&(a=Math.max(.1,a)),this.zx(a))}; g.k.stopVideo=function(){this.lf()&&(xAa&&Jq&&0b.i.getCurrentTime(2,!1)&&!g.R(b.i.T().experiments,"html5_dai_pseudogapless_seek_killswitch")))){c= b.l;if(c.Ws()){var d=g.R(b.J.i.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock");hl(c.L,d)}b.l.J.seek=!0}0>jH(a,4)&&!(0>jH(a,2))&&(b=this.l.l,VG(b)||(XG(b)?cH(b,"resume"):YG(b,"resume")));!g.R(this.I.T().experiments,"html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.kH(a,512)&&!g.ZI(a.state)&&Oka(this.C)}}}; g.k.kb=function(){return this.daiEnabled?Zka(this):!1}; g.k.resume=function(){this.l&&this.l.wx()}; g.k.Tl=function(){this.l&&this.l.bd("adended")}; g.k.Gj=function(){this.Tl()}; g.k.Ph=function(a){this.Df.Ph(a)}; g.k.CK=function(a){this.Df.i.Na("onAdUxUpdate",a)}; g.k.onAdUxClicked=function(a){this.l.nf(a)}; g.k.dG=function(){return 0}; g.k.fG=function(){return 1}; g.k.bD=function(a){this.daiEnabled&&this.i.J&&this.i.i.start<=a&&a=this.B?this.u.i:this.u.i.slice(this.B)).some(function(a){return a.nq()})}; g.k.xm=function(){return this.G instanceof JG||this.G instanceof sH}; g.k.Zs=function(){return this.G instanceof BG||this.G instanceof qH}; g.k.HI=function(){this.daiEnabled?SG(this.I)&&Zka(this):Qla(this)}; g.k.wr=function(a){var b=Pla(a);this.G&&b&&this.L!==b&&(b?Gma(this.Df):Ima(this.Df),this.L=b);this.G=a;this.daiEnabled&&(this.B=this.u.i.findIndex(function(c){return c===a})); aJ.prototype.wr.call(this,a)}; g.k.Gj=function(){this.B=this.u.i.length;this.l&&this.l.bd("adended");eJ(this)}; g.k.Tl=function(){this.Jo()}; g.k.Jo=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Ph(0),a?eJ(this,a,b):Qla(this))}; g.k.JH=function(){1==this.u.l?eJ(this):this.Jo()}; g.k.Vv=function(){var a=0>=this.B?this.u.i:this.u.i.slice(this.B);return 0jH(a,16)&&(this.L.forEach(this.LB,this),this.L.clear())}; g.k.aS=function(){this.l&&this.l.kb()}; g.k.dS=function(){if(SG(this.i)&&this.l){var a=this.i.getCurrentTime(2,!1),b=this.l;b.l&&(b=b.l,b.G&&Jja(b.l,a,b.getDuration()))}}; g.k.dP=function(){this.Xa=!0;if(this.l){var a=this.l;a.l&&a.l.Vf()}}; g.k.nP=function(a){if(this.l)this.l.onAdUxClicked(a)}; g.k.eS=function(){if(2==this.i.getPresentingPlayerType()&&this.l){var a=this.l.l,b=a.l;a=a.I.isMuted();XG(b)||YG(b,a?"mute":"unmute")}}; g.k.gQ=function(a){if(this.l){var b=this.l.l.l;VG(b)||cH(b,a?"fullscreen":"end_fullscreen")}}; g.k.Lf=function(a,b){this.i.Lf(a,b);a=g.q(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.Cn.delete(b),this.u.delete(b)}; g.k.yT=function(){for(var a=[],b=g.q(this.Cn),c=b.next();!c.done;c=b.next())c=c.value,Zv(c)||a.push(c);b=this.i.app;1!==b.getPresentingPlayerType()||yW(b,"cuerangemarkersupdated",a)}; g.k.Ph=function(a){this.i.Ph(a);switch(a){case 1:this.lw=1;break;case 0:this.lw=0}}; g.k.FC=function(){var a=this.i.getVideoData(2);return a?a.isListed&&!this.U:!1}; g.k.Tl=function(){this.l&&this.l.xo()&&this.l.Tl()}; g.k.Gj=function(){this.l&&this.l.xo()&&this.l.Gj()}; g.k.Dv=function(){}; g.k.tv=function(){}; g.k.Ub=function(a){if(this.l){var b=this.l;b.l&&(b=b.l,b.G&&Jja(b.l,a,b.getDuration()))}}; g.k.xm=function(){return SG(this.i)&&!!this.l&&this.l.xm()}; g.k.executeCommand=function(a,b,c){var d=this.bb,e=d.executeCommand;if(c=void 0===c?null:c){var f=!!this.l&&this.l||null;f?(f=f.l,c=f.ad.Ws()?$G(f.l,c):{}):c={}}else c={};e.call(d,a,b,c)}; g.k.bG=function(){return this.Fa}; g.k.cG=function(){return this.Oa};g.v(GJ,PG);GJ.prototype.Re=function(){return this.i()}; GJ.prototype.l=function(){return this.u()};g.v(HJ,g.F);HJ.prototype.append=function(a){if(!this.l)throw Error("This does not support the append operation");this.i.appendChild(a.i)}; g.v(IJ,HJ);g.v(Lma,g.F);var Nma=1;g.v(g.KJ,g.F);g.k=g.KJ.prototype; g.k.createElement=function(a,b){b=b||"svg"===a.D;var c=a.K,d=a.Ca;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.D);g.dE&&(a.V||(a.V={}),a.V.focusable="false")}else e=g.Ee(a.D);if(c){if(c=LJ(this,e,"class",c))MJ(this,e,"class",c),this.Va[c]=e}else if(d){c=g.q(d);for(var f=c.next();!f.done;f=c.next())this.Va[f.value]=e;MJ(this,e,"class",d.join(" "))}d=a.oa;c=a.S;if(d)b=LJ(this,e,"child",d),void 0!==b&&e.appendChild(g.Fe(b));else if(c)for(d=0,c=g.q(c),f=c.next();!f.done;f=c.next())if(f= f.value)if("string"===typeof f)f=LJ(this,e,"child",f),null!=f&&e.appendChild(g.Fe(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Ob&&(h=JJ(),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.He(e,f,d++))}if(a=a.V)for(b=e,d=g.q(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],MJ(this,b,c,"string"===typeof f? LJ(this,b,c,f):f);return e}; g.k.Ba=function(a){return this.Va[a]}; g.k.ya=function(a,b){"number"===typeof b?g.He(a,this.element,b):a.appendChild(this.element)}; g.k.detach=function(){g.Ie(this.element)}; g.k.update=function(a){for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.Sa(c,a[c])}; g.k.Sa=function(a,b){(a=this.Ib["{{"+a+"}}"])&&MJ(this,a[0],a[1],b)}; g.k.ra=function(){this.Va={};this.Ib={};this.detach();g.F.prototype.ra.call(this)};g.v(g.V,g.KJ);g.k=g.V.prototype;g.k.Vc=function(a,b){this.Sa(b||"content",a)}; g.k.show=function(){this.wb||(g.hg(this.element,"display",""),this.wb=!0)}; g.k.hide=function(){this.wb&&(g.hg(this.element,"display","none"),this.wb=!1)}; g.k.Tb=function(a){this.Y=a}; g.k.Ra=function(a,b,c){return this.N(this.element,a,b,c)}; g.k.N=function(a,b,c,d){c=(0,g.C)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d}; g.k.fc=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;Se(a);a.focus()}; g.k.ra=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.KJ.prototype.ra.call(this)};g.v(g.OJ,g.V);g.OJ.prototype.subscribe=function(a,b,c){return this.Fa.subscribe(a,b,c)}; g.OJ.prototype.unsubscribe=function(a,b,c){return this.Fa.unsubscribe(a,b,c)}; g.OJ.prototype.Nf=function(a){return this.Fa.Nf(a)}; g.OJ.prototype.W=function(a,b){for(var c=[],d=1;dMath.pow(5,2))b.B=!0}; g.k.FK=function(a){if(this.ma){var b=this.ma,c=a.changedTouches;c&&b.J&&1==b.l&&!b.B&&!b.C&&!b.G&&Mma(b,c)&&(b.Y=a,b.i.start());b.l=a.touches.length;0===b.l&&(b.J=!1,b.B=!1,b.u.length=0);b.C=!1}}; g.k.Ag=function(a,b){this.api.Ag(a,this);this.api.rl(a,b)}; g.k.jb=function(a,b){this.api.Ps(a)&&this.api.jb(a,b,this.i)}; g.k.ra=function(){this.clear(null);this.fc(this.Ya);for(var a=g.q(this.va),b=a.next();!b.done;b=a.next())this.fc(b.value);g.OJ.prototype.ra.call(this)};g.v(cK,PJ); cK.prototype.init=function(a,b,c){PJ.prototype.init.call(this,a,b,c);this.l=b;if(null==b.text&&null==b.icon)Zo(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.K(this.element,a);null!=b.text&&(a=g.cw(b.text),g.oc(a)||(this.element.setAttribute("aria-label",a),this.B=new g.OJ({D:"span",K:"ytp-ad-button-text",oa:a}),g.G(this,this.B),this.B.ya(this.element)));null!=b.icon&&(b=bK(b.icon),null!= b&&(this.u=new g.OJ({D:"span",K:"ytp-ad-button-icon",S:[b]}),g.G(this,this.u)),this.C?g.He(this.element,this.u.element,0):this.u.ya(this.element))}}; cK.prototype.clear=function(){this.hide()}; cK.prototype.onClick=function(a){var b=this;PJ.prototype.onClick.call(this,a);gna(this).forEach(function(c){return b.Ta.executeCommand(c,b.macros)}); this.api.onAdUxClicked(this.componentType,this.layoutId)};g.v(dK,g.F);dK.prototype.ra=function(){this.l&&g.Yp(this.l);this.i.clear();eK=null;g.F.prototype.ra.call(this)}; dK.prototype.register=function(a,b){b&&this.i.set(a,b)}; var eK=null;g.v(gK,PJ); gK.prototype.init=function(a,b,c){PJ.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.Xo(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new cK(this.api,this.Ta,this.layoutId,this.i),g.G(this,this.button),this.button.init(fH("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.cw(a)),this.button.ya(this.element),this.G&&!g.un(this.button.element,"ytp-ad-clickable")&&g.K(this.button.element,"ytp-ad-clickable"), a&&(this.u=new g.OJ({D:"div",K:"ytp-ad-hover-text-container"}),this.C&&(b=new g.OJ({D:"div",K:"ytp-ad-hover-text-callout"}),b.ya(this.u.element),g.G(this,b)),g.G(this,this.u),this.u.ya(this.element),b=fK(a),g.He(this.u.element,b,0)),this.show())}; gK.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();PJ.prototype.hide.call(this)}; gK.prototype.show=function(){this.button&&this.button.show();PJ.prototype.show.call(this)};g.v(iK,PJ);iK.prototype.init=function(a,b,c){PJ.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&hK(a)||"";g.oc(b)?(g.R(this.api.T().experiments,"web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&Zo(Error("Found AdImage without valid image URL")):(this.l?g.hg(this.element,"backgroundImage","url("+b+")"):ue(this.element,{src:b}),ue(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())}; iK.prototype.clear=function(){this.hide()};g.v(jK,PJ);g.k=jK.prototype;g.k.hide=function(){PJ.prototype.hide.call(this);this.B&&this.B.focus()}; g.k.show=function(){this.B=document.activeElement;PJ.prototype.show.call(this);this.C.focus()}; g.k.init=function(a,b,c){PJ.prototype.init.call(this,a,b,c);this.u=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.Xo(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.Xo(Error("ConfirmDialogRenderer.cancelLabel was not set.")):kna(this,b):g.Xo(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.k.clear=function(){g.iu(this.l);this.hide()}; g.k.IB=function(){this.hide()}; g.k.Fy=function(){var a=this.u.cancelEndpoint;a&&this.Ta.executeCommand(a,this.macros);this.hide()}; g.k.JB=function(){var a=this.u.confirmNavigationEndpoint||this.u.confirmEndpoint;a&&this.Ta.executeCommand(a,this.macros);this.hide()};g.v(kK,PJ);g.k=kK.prototype; g.k.init=function(a,b,c){PJ.prototype.init.call(this,a,b,c);this.u=b;if(null==b.defaultText&&null==b.defaultIcon)g.Xo(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.Xo(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.K(this.B,a)}a={};b.defaultText? (c=g.cw(b.defaultText),g.oc(c)||(a.buttonText=c,this.l.setAttribute("aria-label",c))):g.yg(this.xa,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.l.hasAttribute("aria-label")||this.X.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=bK(b.defaultIcon),this.Sa("untoggledIconTemplateSpec",c),b.toggledIcon?(this.L=!0,c=bK(b.toggledIcon),this.Sa("toggledIconTemplateSpec",c)):(g.yg(this.G,!0),g.yg(this.C,!1)),g.yg(this.l,!1)):g.yg(this.X,!1);g.Pb(a)||this.update(a);b.isToggled&& (g.K(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));lK(this);this.N(this.element,"change",this.LD);this.show()}}; g.k.onClick=function(a){0a&&g.Xo(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Qa&&g.K(this.u.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.xa=null==a||0===a?this.l.As():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.B.init(fH("ad-text"),d,c);(d=this.api.getVideoData(1))&& d.mj&&b.thumbnail?this.G.init(fH("ad-image"),b.thumbnail,c):this.L.hide()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){this.u.hide();this.B.hide();this.G.hide();vK(this);tK.prototype.hide.call(this)}; g.k.show=function(){uK(this);this.u.show();this.B.show();this.G.show();tK.prototype.show.call(this)}; g.k.Uo=function(){this.hide()}; g.k.Im=function(){if(null!=this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ea&&a>=this.xa?(g.R(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")||this.X.hide(),this.Ea=!0,this.W("i")):this.B&&this.B.isTemplated()&&(a=Math.max(0,Math.ceil((this.xa-a)/1E3)),a!=this.Ha&&(sK(this.B,{TIME_REMAINING:String(a)}),this.Ha=a)))}};g.v(AK,tK);g.k=AK.prototype; g.k.init=function(a,b,c){tK.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.xa&&(vK(this),g.wn(this.element,"ytp-flyout-cta-inactive"))}}; g.k.Uo=function(){this.clear()}; g.k.clear=function(){this.hide()}; g.k.show=function(){this.u&&this.u.show();tK.prototype.show.call(this)}; g.k.hide=function(){this.u&&this.u.hide();tK.prototype.hide.call(this)};g.v(BK,PJ);g.k=BK.prototype;g.k.init=function(a,b,c){var d=this;PJ.prototype.init.call(this,a,b,c);this.l=b;this.l.rectangle&&(yna(this,c),this.C.show(100),this.show(),(this.l&&this.l.impressionCommands||[]).forEach(function(e){return d.Ta.executeCommand(e,d.macros)}))}; g.k.clear=function(){this.hide()}; g.k.hide=function(){this.B.hide();this.u.hide();PJ.prototype.hide.call(this)}; g.k.show=function(){this.B.show();this.u.show();PJ.prototype.show.call(this)}; g.k.ND=function(){yn(this.element,"ytp-ad-instream-user-sentiment-selected");this.l.postMessageAction&&this.api.Na("onYtShowToast",this.l.postMessageAction);this.C.hide()}; g.k.onClick=function(a){0=this.G&&FK(this,!0):1E3*this.l.getProgressState().current>=this.G&&FK(this,!0)};g.v(GK,cK);GK.prototype.init=function(a,b,c){cK.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.cw(b.text),a=!g.oc(a));a?null==b.navigationEndpoint?Zo(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?Zo(Error("Button style was not a link-style type in renderer,")):this.show():Zo(Error("No visit advertiser text was present in the renderer."))};g.v(HK,PJ);HK.prototype.init=function(a,b,c){PJ.prototype.init.call(this,a,b,c);a=b.text;g.oc(QJ(a))?Zo(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.l&&(b=this.api.T(),b=a.text+" "+(b&&b.i?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new rK(this.api,this.Ta,this.layoutId,this.i),a.init(fH("simple-ad-badge"),b,c),a.ya(this.element),g.G(this,a)),this.show())}; HK.prototype.clear=function(){this.hide()};g.v(IK,g.P);g.k=IK.prototype;g.k.As=function(){return this.durationMs}; g.k.stop=function(){this.i&&this.Wd.fc(this.i)}; g.k.Ub=function(a){this.l={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.W("h")}; g.k.getProgressState=function(){return this.l}; g.k.Ec=function(a){g.kH(a,2)&&this.W("g")};g.v(JK,g.P);g.k=JK.prototype;g.k.As=function(){return this.durationMs}; g.k.start=function(){this.u||(this.u=!0,this.i.start())}; g.k.stop=function(){this.u&&(this.u=!1,this.i.stop())}; g.k.Ub=function(){this.l+=100;var a=!1;this.l>this.durationMs&&(this.l=this.durationMs,this.i.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.l/1E3};this.Ta&&this.Ta.Ub(this.B.current);this.W("h");a&&this.W("g")}; g.k.getProgressState=function(){return this.B};g.v(MK,tK);g.k=MK.prototype;g.k.init=function(a,b,c){var d;tK.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){Zo(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.u=new rK(this.api,this.Ta,this.layoutId,this.i);this.u.init(fH("ad-text"),a,{});this.u.ya(this.element);g.G(this,this.u)}this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){vK(this);tK.prototype.hide.call(this)}; g.k.Uo=function(){this.hide()}; g.k.Im=function(){if(null!=this.l){var a=this.l.getProgressState();if(null!=a&&null!=a.current&&this.u){a=(this.l instanceof IK?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.l instanceof JK?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.KK(a);sK(this.u,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}}; g.k.show=function(){uK(this);tK.prototype.show.call(this)};g.v(NK,rK);NK.prototype.onClick=function(a){rK.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.v(SK,g.OJ);SK.prototype.Ub=function(){var a=this.l.getProgressState();this.Fc.style.width=100*RK(new OK(a.seekableStart,a.seekableEnd),a.current,0)+"%"}; SK.prototype.u=function(){g.BD(this.api.T())||(2===this.api.getPresentingPlayerType()?-1===this.i&&(this.show(),this.i=this.l.subscribe("h",this.Ub,this),this.Ub()):-1!==this.i&&(this.hide(),this.l.Nf(this.i),this.i=-1))};g.v(TK,PJ); TK.prototype.init=function(a,b,c,d){PJ.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new EK(this.api,this.Ta,this.layoutId,this.i,this.l,this.G),c.ya(this.C),c.init(fH("skip-button"),a.skipAdRenderer,this.macros),g.G(this,c)):a.adPreviewRenderer&&(c=new yK(this.api,this.Ta,this.layoutId,this.i,this.l,!1),c.ya(this.C),c.init(fH("ad-preview"),a.adPreviewRenderer,this.macros),zK(c),g.G(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c= new BK(this.api,this.Ta,this.layoutId,this.i),c.ya(this.X),c.init(fH("instream-user-sentiment"),a,this.macros),g.G(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new AK(this.api,this.Ta,this.layoutId,this.i,this.l),g.G(this,c),c.ya(this.L),c.init(fH("flyout-cta"),a.flyoutCtaRenderer,this.macros)));d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}),c=new HK(this.api,this.Ta,this.layoutId, this.i,!0),g.G(this,c),c.ya(this.u),c.init(fH("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 MK(this.api,this.Ta,this.layoutId,this.i,this.l,d),g.G(this,d),d.ya(this.u),d.init(fH("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new qK(this.api,this.Ta,this.layoutId, this.i,this.element),g.G(this,a),a.ya(this.u),a.init(fH("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=Cna(this)&&this.B?this.B:this.u))&&(a=new GK(this.api,this.Ta,this.layoutId,this.i),g.G(this,a),a.ya(d),a.init(fH("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.T())&&!yD(b)&&"3"==b.controlsType&&(b=new SK(this.api,this.l),b.ya(this.xa),g.G(this,b));g.R(this.api.T().experiments,"enable_updated_html5_player_focus_style")&& g.K(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; TK.prototype.clear=function(){this.hide()};g.Ga("yt.pubsub.publish",g.Yq,void 0);var b1={},Fna=(b1.WEB_UNPLUGGED="^unplugged/",b1.WEB_UNPLUGGED_ONBOARDING="^unplugged/",b1.WEB_UNPLUGGED_OPS="^unplugged/",b1.WEB_UNPLUGGED_PUBLIC="^unplugged/",b1.WEB_CREATOR="^creator/",b1.WEB_KIDS="^kids/",b1.WEB_EXPERIMENTS="^experiments/",b1.WEB_MUSIC="^music/",b1.WEB_REMIX="^music/",b1.WEB_MUSIC_EMBEDDED_PLAYER="^music/",b1.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",b1);YK.prototype.C=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?zt:c;var d={context:kJ(a.clickTrackingParams,!1,this.B)};var e=this.i(a);if(e){this.l(d,e,b);var f,h;b=g.VK(this.u());(a=null===(h=null===(f=a.commandMetadata)||void 0===f?void 0:f.webCommandMetadata)||void 0===h?void 0:h.apiUrl)&&(b=a);f=Hna(WK(b),void 0);d={input:f,Wo:XK(f),Ss:d,config:Object.assign({},void 0)};d.config.Fn?d.config.Fn.identity=c:d.config.Fn={identity:c};return d}g.Ou(new g.xs("Error: Failed to create Request from Command.", a))}; ea.Object.defineProperties(YK.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.v(ZK,YK);ZK.prototype.C=function(){return{input:"/getDatasyncIdsEndpoint",Wo:XK("/getDatasyncIdsEndpoint","GET"),Ss:{}}}; ZK.prototype.u=function(){return[]}; ZK.prototype.i=function(){}; ZK.prototype.l=function(){};var xGa={},Ina=(xGa.GET_DATASYNC_IDS=ZK,xGa);g.v(bL,YK);bL.prototype.u=function(){return ZFa}; bL.prototype.i=function(a){return a.subscribeEndpoint}; bL.prototype.l=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)}; ea.Object.defineProperties(bL.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(cL,YK);cL.prototype.u=function(){return $Fa}; cL.prototype.i=function(a){return a.unsubscribeEndpoint}; cL.prototype.l=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)}; ea.Object.defineProperties(cL.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(dL,YK);dL.prototype.u=function(){return WFa}; dL.prototype.i=function(a){return a.feedbackEndpoint}; dL.prototype.l=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))}; ea.Object.defineProperties(dL.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(eL,YK);eL.prototype.u=function(){return XFa}; eL.prototype.i=function(a){return a.modifyChannelNotificationPreferenceEndpoint}; eL.prototype.l=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.v(fL,YK);fL.prototype.u=function(){return YFa}; fL.prototype.i=function(a){return a.playlistEditEndpoint}; fL.prototype.l=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.v(gL,YK);gL.prototype.u=function(){return VFa}; gL.prototype.i=function(a){return a.webPlayerShareEntityServiceEndpoint}; gL.prototype.l=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};hL.prototype.fetch=function(a,b){var c=this,d;if(null===(d=this.l)||void 0===d?0:d.B(a,b))return Promise.resolve(this.l.u(a,b).catch(function(f){g.Pu(f)})); if(this.i){var e=td(g.vd(5,Nd(a,"key")))||"/UNKNOWN_PATH";this.i.start(e)}e=new window.Request(a,b);return Promise.resolve(fetch(e).then(function(f){return c.qo(f)}).catch(function(f){var h,l; if(null===(h=c.l)||void 0===h?0:h.i(a,b))return f=c.l.l(a,b),null===(l=c.i)||void 0===l?void 0:l.success(),f;g.Pu(f)}))}; hL.prototype.qo=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))}); a.redirected||a.ok?this.i&&this.i.success():(this.i&&this.i.failure(),b=b.then(function(c){g.Pu(new g.xs("Error: API fetch failed",a.status,a.url,c));return Object.assign(Object.assign({},c),{errorMetadata:{status:a.status}})})); return b};var iL;var Pna=[],kL=!1;ps.prototype.wd=function(a){this.handleError(a)}; ps.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.So("idb_data_corrupted_killswitch")||this.i("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.i("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.So("idb_is_supported_completed_killswitch")||this.i("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":Vna(this,b);break;case "TRANSACTION_ENDED":Math.random()<=To("ytidb_transaction_ended_event_rate_limit",.02)&&this.i("idbTransactionEnded",b);break; case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign(Object.assign({},b),{hasWindowUnloaded:this.l}),this.i("idbTransactionAborted",a)}};lL.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){h=a.interpreterSafeScript.privateDoNotAccessOrElseSafeScriptWrappedValue||"";var m=g.dc("From proto message. b/166824318");cc(m);cc(m);h=(m=Zb())?m.createScript(h):h;h=(new fc(h)).toString()}a.interpreterSafeUrl&&(l=a.interpreterSafeUrl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue|| "",m=g.dc("From proto message. b/166824318"),cc(m),cc(m),l=jc(l).toString());Xna(this,h,l,a.program,b,c,d)}else g.Pu(Error("Cannot initialize botguard without program"))}; lL.prototype.Pd=function(){return!!this.i}; lL.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}; lL.prototype.dispose=function(){this.i=null};var mL=new lL,nL=0;var c1={},yGa=(c1["api.invalidparam"]=2,c1.auth=150,c1["drm.auth"]=150,c1["heartbeat.net"]=150,c1["heartbeat.servererror"]=150,c1["heartbeat.stop"]=150,c1["html5.unsupportedads"]=5,c1["fmt.noneavailable"]=5,c1["fmt.decode"]=5,c1["fmt.unplayable"]=5,c1["html5.missingapi"]=5,c1["html5.unsupportedlive"]=5,c1["drm.unavailable"]=5,c1);g.v(rL,g.F);g.k=rL.prototype; g.k.handleExternalCall=function(a,b,c){var d=this.C[a],e=this.J[a],f=d;if(e)if(c&&Jv(c,bGa,cGa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.T();d.lj&&!this.U.has(a)&&(this.U.add(a),g.rs("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:c||void 0,playerStyle:d.playerStyle||void 0}));if(f){c=!1;d=g.q(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.Pu(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.C[a]?!0:!!(this.J[a]&&b&&Jv(b,bGa,cGa))}; g.k.getBandwidthEstimate=function(){return ZC(this.app.T().schedule)}; g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.W(this.app);b&&(a={gpu:(0,g.VU)(),d:a},b.handleError(new g.yB("feedback",!1,a)))}; g.k.getApiInterface=function(){return this.L.slice()}; g.k.getInternalApiInterface=function(){return g.Kb(this.l)}; g.k.YM=function(a,b){if("string"===typeof b){var c=function(d){for(var e=[],f=0;f=c.qb.length)c=!1;else{for(var d=g.q(c.qb),e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof oE)){c=!1;break a}var f=a.Ic.getId();e.u&&(e.u.i=f,e.l=null)}c.lj=a;c=!0}c&& (b.W("internalaudioformatchange",b.videoData,!0),UV(b)&&b.La("hlsaudio",a.id))}}}; g.k.DN=function(){return this.getAvailableAudioTracks()}; g.k.getAvailableAudioTracks=function(){return g.W(this.app,this.playerType).getAvailableAudioTracks()}; g.k.getMaxPlaybackQuality=function(){var a=g.W(this.app,this.playerType);return a&&a.getVideoData().l?kx(a.U?Axa(a.Y,a.U,lW(a)):BF):"unknown"}; g.k.getUserPlaybackQualityPreference=function(){var a=g.W(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"}; g.k.getSubtitlesUserSettings=function(){var a=g.kM(this.app.sb());return a?a.PN():null}; g.k.resetSubtitlesUserSettings=function(){g.kM(this.app.sb()).JS()}; 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.Za().setGlobalCrop(a)}; g.k.getVisibilityState=function(){var a=this.Ee();return this.app.getVisibilityState(this.rf(),this.isFullscreen()||yD(this.app.T()),a,this.isInline(),this.app.oq(),this.app.mq())}; g.k.isMutedByMutedAutoplay=function(){return this.app.ot}; g.k.isInline=function(){return this.app.isInline()}; g.k.setInternalSize=function(a,b){this.app.Za().setInternalSize(new g.ie(a,b))}; g.k.Kc=function(){var a=g.W(this.app,void 0);return a?a.Kc():0}; g.k.Ee=function(){return this.app.Ee()}; g.k.rf=function(){var a=g.W(this.app,this.playerType);return!!a&&a.rf()}; g.k.isFullscreen=function(){return this.app.isFullscreen()}; g.k.setSafetyMode=function(a){this.app.T().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.Z("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!==b.fb().videoId||(a.index=b.index)):HW(this.app,{list:a.list,index:a.index,playlist_length:d.length});YL(this.app.getPlaylist(),a);this.Na("onPlaylistUpdate")}else this.app.updatePlaylist()}; g.k.updateVideoData=function(a,b){var c=g.W(this.app,this.playerType||1);c&&g.JF(c.getVideoData(),a,b)}; g.k.updateEnvironmentData=function(a){ID(this.app.T(),a,!1)}; g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)}; g.k.setCardsVisible=function(a,b,c){var d=g.tM(this.app.sb());d&&d.Xg()&&d.setCardsVisible(a,b,c)}; g.k.productsInVideoVisibilityUpdated=function(a){this.W("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.Za().getVideoAspectRatio()}; g.k.getPreferredQuality=function(){var a=g.W(this.app);return a?a.getPreferredQuality():"unknown"}; g.k.setPlaybackQualityRange=function(a,b){var c=g.W(this.app,this.playerType);c&&(a=hx(a,b||a,!0,"m"),Msa(c,a))}; g.k.onAdUxClicked=function(a,b){this.W("aduxclicked",a,b)}; g.k.getLoopVideo=function(){return this.app.getLoopVideo()}; g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)}; g.k.W=function(a,b){for(var c=[],d=1;dthis.status&&this.i&&!!this.l}; g.k.Xf=function(){return this.i&&!!this.response&&!!this.response.byteLength}; g.k.Th=function(){this.Xf();var a=this.response;this.response=void 0;return new uA([new Uint8Array(a)])}; g.k.fg=function(){this.Xf();return new uA([new Uint8Array(this.response)])}; g.k.abort=function(){this.Ia=!0;this.xhr.abort()}; g.k.Oq=function(){return!1}; g.k.jC=function(){return!1}; g.k.Oe=function(){return""}; var AAa=!1;g.v(g.SL,gu);g.SL.prototype.N=function(a,b,c,d,e){return gu.prototype.N.call(this,a,b,c,d,e)};Aoa.prototype.reset=function(){this.i=this.l=NaN};TL.prototype.reset=function(){Nw(this.timerName)}; TL.prototype.tick=function(a,b){Tw(a,b,this.timerName)}; TL.prototype.info=function(a,b){g.Sw(a,b,this.timerName)};g.UL.prototype.toString=function(){return this.type+this.id};g.v(g.VL,g.P);g.k=g.VL.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1([^<>]+)<\/a>/;g.v(LM,g.SL);LM.prototype.kb=function(){var a=this;this.Lg();var b=this.I.getVideoData();if(b.isValid()){var c=[];this.I.T().J||c.push({src:b.De("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"});this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:c});c=b=null;g.CL(this.I)&&(this.i.delete("nexttrack"),this.i.delete("previoustrack"),b=function(){a.I.nextVideo()},c=function(){a.I.previousVideo()}); KM(this,"nexttrack",b);KM(this,"previoustrack",c)}}; LM.prototype.Lg=function(){var a=this.I.ub();a=a.isError()?"none":g.XI(a)?"playing":"paused";this.mediaSession.playbackState=a}; LM.prototype.ra=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.q(this.i),b=a.next();!b.done;b=a.next())KM(this,b.value,null);g.SL.prototype.ra.call(this)};g.v(MM,g.V);g.k=MM.prototype;g.k.onClick=function(a){g.BM(a,this.I,!0);this.I.Gb(this.element)}; g.k.kb=function(a,b){kpa(this,b);this.jd&&lpa(this,this.jd)}; g.k.Ec=function(a){var b=this.I.getVideoData();this.videoId!==b.videoId&&kpa(this,b);this.i&&lpa(this,a.state);this.jd=a.state}; g.k.Uc=function(){this.u.show();this.I.W("paidcontentoverlayvisibilitychange",!0);this.I.jb(this.element,!0)}; g.k.Cb=function(){this.u.hide();this.I.W("paidcontentoverlayvisibilitychange",!1);this.I.jb(this.element,!1)};g.v(NM,g.V);NM.prototype.hide=function(){this.i.stop();this.message.style.display="none";g.V.prototype.hide.call(this)}; NM.prototype.l=function(a){mpa(a.state)?this.i.start():this.hide()}; NM.prototype.u=function(){this.message.style.display="block"};g.v(g.OM,g.OJ);g.k=g.OM.prototype;g.k.show=function(){var a=this.Hf();g.OJ.prototype.show.call(this);this.xa&&(this.J.N(window,"blur",this.Cb),this.J.N(document,"click",this.MK));a||this.W("show",!0)}; g.k.hide=function(){var a=this.Hf();g.OJ.prototype.hide.call(this);npa(this);a&&this.W("show",!1)}; g.k.Uc=function(a,b){this.l=a;this.U.show();b?(this.L||(this.L=this.J.N(this.I,"appresize",this.eF)),this.eF()):this.L&&(this.J.fc(this.L),this.L=void 0)}; g.k.eF=function(){var a=g.vL(this.I);this.l&&a.So(this.element,this.l)}; g.k.Cb=function(){var a=this.Hf();npa(this);this.U.hide();a&&this.W("show",!1)}; g.k.MK=function(a){var b=$p(a);b&&(g.Le(this.element,b)||this.l&&g.Le(this.l,b)||!g.LK(a))||this.Cb()}; g.k.Hf=function(){return this.wb&&4!==this.U.state};g.v(QM,g.OM);QM.prototype.Ct=function(a){this.u&&(a?(opa(this),this.Uc()):(this.seen&&this.Gb(),this.Cb()))}; QM.prototype.Lg=function(a){this.api.isMutedByMutedAutoplay()&&g.kH(a,2)&&this.Cb()}; QM.prototype.onClick=function(){this.api.unMute();this.Gb()}; QM.prototype.Gb=function(){this.i||(this.i=!0,this.api.Gb(this.element))};g.v(g.SM,g.SL);g.k=g.SM.prototype;g.k.init=function(){var a=this.api.ub();this.Nb(a);this.yl();this.tb()}; g.k.kb=function(a,b){this.kB!==b.videoId&&(this.kB=b.videoId,a=this.fd,a.ma=b&&0=uG&&this.api.ub().isCued()?RM(this):this.Av.start(),this.YC=this.N(this.api.Za(),"touchmove",this.uR,void 0,!0)):this.Av.stop();!qpa(this)||!VM(this,a)||this.api.T().L&&this.api.T().Z("embeds_enable_mobile_dtts")|| RM(this);var b=this.Sx.Hf();if(qD&&rpa(this,a))b&&g.cq(a);else if(this.fd.l||TM(this,$p(a))||this.Sx.Hf()||(this.api.ub().isCued(),g.cq(a)),this.Nx=!0,g.K(this.api.getRootNode(),"ytp-touch-mode"),this.fd.hk(),g.R(this.api.T().experiments,"player_doubletap_to_seek")||g.R(this.api.T().experiments,"embeds_enable_mobile_dtts")&&this.api.T().L)if(b=this.api.ub(),!(!this.api.Se()||g.T(b,2)&&zL(this.api)||g.T(b,64))){b=Date.now()-this.iH;this.wt+=1;if(350>=b){this.Yr=!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.wt-1);02*b&&d<3*b&&(this.Ot(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.cq(a)}else this.api.T().L&&this.api.T().Z("embeds_enable_mobile_dtts")&&UM&&VM(this,a)&&g.cq(a);this.iH=Date.now();this.gJ.start()}}; g.k.pR=function(a){if(!rpa(this,a)){if(!qpa(this)&&VM(this,a)&&!this.Av.isActive()){if(g.aE(this.api.T())&&this.api.ub().isCued()){Ow("warm");zw();Nw();mw(!1);Oo("TIMING_AFT_KEYS",[]);g.Sw("yt_lt","warm");Oo("TIMING_ACTION","");Oo("TIMING_WAIT",[]);delete g.M("TIMING_INFO",{}).yt_lt;Pw("warm",void 0);var b=["pbs","pbu"];yw("").info.actionType="watch";b&&Oo("TIMING_AFT_KEYS",b);Oo("TIMING_ACTION","watch");b=g.M("TIMING_INFO",{});for(var c in b)b.hasOwnProperty(c)&&g.Sw(c,b[c]);g.Sw("is_nav",1);(c= g.Du())&&g.Sw("csn",c);(c=g.M("PREVIOUS_ACTION",void 0))&&!Ew()&&g.Sw("pa",c);c=rw();b=g.M("CLIENT_PROTOCOL");var d=g.M("CLIENT_TRANSPORT");b&&g.Sw("p",b);d&&g.Sw("t",d);g.Sw("yt_vis",$w());if("cold"===c.yt_lt){g.Sw("yt_lt","cold");b=kw();if(d=lw())Tw("srt",b.responseStart),1!==c.prerender&&Pw("n",d);c=uga();0=lw()&&0this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)}; g.k.ww=function(){return this.Ge()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)}; g.k.Ih=function(){return this.Nx}; g.k.gm=function(){return null}; g.k.zi=function(){var a=this.api.Za().getPlayerSize();return new g.$f(0,0,a.width,a.height)}; g.k.handleGlobalKeyDown=function(){return!1}; g.k.handleGlobalKeyUp=function(){return!1}; g.k.So=function(){}; g.k.showControls=function(a){void 0!==a&&this.api.Za().Vt(a)}; g.k.hk=function(){}; g.k.tG=function(){return null};g.v(WM,g.P);g.k=WM.prototype;g.k.As=function(){return 1E3*this.api.getDuration(this.Zi,!1)}; g.k.stop=function(){this.i&&this.Wd.fc(this.i)}; g.k.Ub=function(){var a=this.api.getProgressState(this.Zi);this.l={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:g.R(this.api.T().experiments,"halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.Zi,!1)};this.W("h")}; g.k.getProgressState=function(){return this.l}; g.k.Ec=function(a){g.kH(a,2)&&this.W("g")};g.v(XM,g.V);XM.prototype.onClick=function(){this.I.Na("BACK_CLICKED")};g.v(g.YM,g.V);g.YM.prototype.show=function(){g.V.prototype.show.call(this);g.mn(this.i)}; g.YM.prototype.hide=function(){this.l.stop();g.V.prototype.hide.call(this)}; g.YM.prototype.gp=function(a){a?g.T(this.I.ub(),64)||ZM(this,dna(),"Play"):(a=this.I.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?ZM(this,fna(),"Stop live playback"):ZM(this,bna(),"Pause"))};g.v(bN,g.V);g.k=bN.prototype;g.k.Uc=function(){this.I.T().Z("player_new_info_card_format")&&g.un(this.I.getRootNode(),"ytp-cards-teaser-shown")&&!g.tD(this.I.T())||(this.l.show(),g.Yq("iv-button-shown"))}; g.k.Cb=function(){g.Yq("iv-button-hidden");this.l.hide()}; g.k.Hf=function(){return this.wb&&4!==this.l.state}; g.k.ra=function(){this.i&&this.i();g.V.prototype.ra.call(this)}; g.k.iQ=function(){g.Yq("iv-button-mouseover")}; g.k.onClicked=function(a){this.I.Xg();var b=g.un(this.I.getRootNode(),"ytp-cards-teaser-shown");g.Yq("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.I.setCardsVisible(!this.I.Cj(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.v(dN,g.V);g.k=dN.prototype;g.k.UJ=function(){this.I.Xg()&&this.I.Cj()&&this.Hf()&&this.Cb()}; g.k.OC=function(){this.Cb();g.Yq("iv-teaser-clicked",null!=this.i);this.I.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}; g.k.NK=function(){g.Yq("iv-teaser-mouseover");this.i&&this.i.stop()}; g.k.NR=function(a){g.R(this.I.T().experiments,"player_new_info_card_format")&&!g.tD(this.I.T())&&this.oi.Cb();this.i||!a||this.I.Cj()||this.l&&this.l.isActive()||(this.Uc(a),g.Yq("iv-teaser-shown"))}; g.k.Uc=function(a){this.Sa("text",a.teaserText);this.element.setAttribute("dir",g.Fn(a.teaserText));this.B.show();this.l=new g.J(function(){g.K(this.I.getRootNode(),"ytp-cards-teaser-shown");this.lD()},0,this); this.l.start();aN(this.oi,!1);this.i=new g.J(this.Cb,580+a.durationMs,this);this.i.start();this.C.push(this.Ra("mouseover",this.QD,this));this.C.push(this.Ra("mouseout",this.PD,this))}; g.k.lD=function(){if(!g.R(this.I.T().experiments,"player_new_info_card_format")&&g.tD(this.I.T())&&this.wb){var a=this.oi.element.offsetLeft,b=g.se("ytp-cards-button-icon"),c=this.I.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.oi.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}}; g.k.gN=function(){g.tD(this.I.T())&&this.U.Ge()&&this.wb&&this.L.start()}; g.k.QD=function(){this.G.stop();this.i&&this.i.isActive()&&this.J.start()}; g.k.PD=function(){this.J.stop();this.i&&!this.i.isActive()&&this.G.start()}; g.k.zQ=function(){this.i&&this.i.stop()}; g.k.yQ=function(){this.Cb()}; g.k.Nh=function(){this.Cb()}; g.k.Cb=function(){!this.i||this.u&&this.u.isActive()||(g.Yq("iv-teaser-hidden"),this.B.hide(),g.wn(this.I.getRootNode(),"ytp-cards-teaser-shown"),this.u=new g.J(function(){for(var a=g.q(this.C),b=a.next();!b.done;b=a.next())this.fc(b.value);this.C=[];this.i&&(this.i.dispose(),this.i=null);aN(this.oi,!0)},330,this),this.u.start())}; g.k.Hf=function(){return this.wb&&4!==this.B.state}; g.k.ra=function(){var a=this.I.getRootNode();a&&g.wn(a,"ytp-cards-teaser-shown");g.vi(this.l,this.u,this.i);g.V.prototype.ra.call(this)};var upa=new Set("embed_config endscreen_ad_tracking home_group_info ic_track player_request watch_next_request".split(" "));var d1={},gN=(d1.BUTTON="ytp-button",d1.TITLE_NOTIFICATIONS="ytp-title-notifications",d1.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",d1.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",d1.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",d1);g.v(hN,g.V);hN.prototype.onClick=function(){this.api.Gb(this.element);var a=!this.i;this.Sa("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.Sa("pressed",a);xpa(this,a)};g.v(g.jN,g.V);g.jN.prototype.l=function(){g.K(this.element,"ytp-sb-subscribed")}; g.jN.prototype.u=function(){g.wn(this.element,"ytp-sb-subscribed")};g.v(kN,g.V);g.k=kN.prototype;g.k.rC=function(){Bpa(this);this.channel.classList.remove("ytp-title-expanded")}; g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")}; g.k.tA=function(){if(zpa(this)&&!this.isExpanded()){this.Sa("flyoutUnfocusable","false");this.Sa("channelTitleFocusable","0");this.u&&this.u.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.jb(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.l&&a.Jf&&a.subscribed&&(this.l.show(),this.api.jb(this.l.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}; g.k.Tz=function(){this.Sa("flyoutUnfocusable","true");this.Sa("channelTitleFocusable","-1");this.u&&this.u.start()}; g.k.Ma=function(){var a=this.api.getVideoData(),b=this.api.T(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Ib&&!!a.gg:g.tD(b)&&(c=!!a.videoId&&!!a.Ib&&!!a.gg&&!(a.C&&b.pfpChazalUi));var d=g.hE(this.api.T())+a.Ib;g.tD(this.api.T())&&(d=g.Hd(d,g.fN("emb_ch_name_ex")));var e=a.Ib,f=a.gg;b=g.tD(b)?a.vn:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;c?(e=g.hE(this.api.T())+e,this.J!==f&&(this.i.style.backgroundImage="url("+f+")",this.J=f),this.Sa("channelLink", e),this.Sa("channelLogoLabel",g.vH("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b})),g.K(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.wn(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.jb(this.i,c&&this.Y);this.subscribeButton&&(this.subscribeButton.channelId=a.rh);this.Sa("expandedTitle",a.vn);this.Sa("channelTitleLink",d);this.Sa("expandedSubtitle",a.expandedSubtitle)};g.v(g.mN,g.OJ);g.mN.prototype.Sa=function(a,b){g.OJ.prototype.Sa.call(this,a,b);this.W("size-change")};g.v(pN,g.OJ);pN.prototype.RH=function(){this.W("size-change")}; pN.prototype.focus=function(){this.content.focus()}; pN.prototype.EP=function(){this.W("back")};g.v(g.qN,pN);g.qN.prototype.yc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.vb(this.items,a,Cpa);if(0<=b)return;b=~b;g.sb(this.items,b,0,a);g.He(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.PB,this);this.menuItems.W("size-change")}; g.qN.prototype.yf=function(a){a.unsubscribe("size-change",this.PB,this);this.Ia()||(g.lb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.W("size-change"))}; g.qN.prototype.PB=function(){this.menuItems.W("size-change")}; g.qN.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.$f(0,0,0,0);d.left= a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.pg(this.element,new g.ge(d.left,d.top));g.iu(this.u);this.u.N(document,"contextmenu",this.ZP);this.u.N(this.I,"fullscreentoggled",this.He);this.u.N(this.I,"pageTransition",this.PK)}; g.k.ZP=function(a){if(!g.dq(a)){var b=$p(a);g.Le(this.element,b)||this.Cb();this.I.T().disableNativeContextMenu&&g.cq(a)}}; g.k.He=function(){this.Cb();Ipa(this)}; g.k.PK=function(){this.Cb()};g.v(g.CN,g.V);g.CN.prototype.onClick=function(){return g.D(this,function b(){var c=this,d,e,f,h;return g.z(b,function(l){if(1==l.i)return d=c.api.T(),e=c.api.getVideoData(),f=c.api.getPlaylistId(),h=d.getVideoUrl(e.videoId,f,void 0,!0),g.w(l,Kpa(c,h),2);l.l&&Jpa(c);c.api.Gb(c.element);g.sa(l)})})}; g.CN.prototype.Ma=function(){var a=this.api.T(),b=this.api.getVideoData();this.Sa("icon",{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Ob:!0,K:"ytp-svg-fill",V:{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.Sa("title-attr","Copy link");var c=this.api.Za().getPlayerSize().width;this.visible= !!b.videoId&&c>=this.l&&b.nj&&!(b.C&&a.pfpChazalUi);g.L(this.element,"ytp-copylink-button-visible",this.visible);g.NJ(this,this.visible);EN(this.tooltip);this.api.jb(this.element,this.visible&&this.Y)}; g.CN.prototype.Tb=function(a){g.V.prototype.Tb.call(this,a);this.api.jb(this.element,this.visible&&a)}; g.CN.prototype.ra=function(){g.V.prototype.ra.call(this);g.wn(this.element,"ytp-copylink-button-visible")};g.v(FN,g.V);FN.prototype.show=function(){g.V.prototype.show.call(this);g.mn(this.l)}; FN.prototype.hide=function(){this.u.stop();g.wn(this.element,"ytp-chapter-seek");g.wn(this.element,"ytp-time-seeking");g.V.prototype.hide.call(this)}; FN.prototype.Ot=function(a,b,c,d){var e=-1===a?this.C:this.B;e&&this.I.Gb(e);g.on(this.l);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.I.Za().getPlayerSize().height;e=this.I.Za().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.Ba("ytp-doubletap-ripple");l.style.width=h+ "px";l.style.height=h+"px";1===a?(a=this.I.Za().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.Ba("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");Lpa(this,d)};var AGa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(AGa).reduce(function(a,b){a[AGa[b]]=b;return a},{}); var BGa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(BGa).reduce(function(a,b){a[BGa[b]]=b;return a},{}); var CGa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(CGa).reduce(function(a,b){a[CGa[b]]=b;return a},{});var e1,DGa;e1=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];DGa=[{option:0,text:IN(0)},{option:.25,text:IN(.25)},{option:.5,text:IN(.5)},{option:.75,text:IN(.75)},{option:1,text:IN(1)}]; g.LN=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:e1},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:IN(.5)},{option:-1,text:IN(.75)},{option:0,text:IN(1)},{option:1,text:IN(1.5)},{option:2,text:IN(2)}, {option:3,text:IN(3)},{option:4,text:IN(4)}]},{option:"background",text:"Background color",options:e1},{option:"backgroundOpacity",text:"Background opacity",options:DGa},{option:"windowColor",text:"Window color",options:e1},{option:"windowOpacity",text:"Window opacity",options:DGa},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity",text:"Font opacity", options:[{option:.25,text:IN(.25)},{option:.5,text:IN(.5)},{option:.75,text:IN(.75)},{option:1,text:IN(1)}]}];g.v(g.KN,g.SL);g.k=g.KN.prototype; g.k.BG=function(a){var b=!1,c=g.eq(a),d=$p(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.T();g.dq(a)?(e=!1,h=!0):l.Td&&(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);$M(this.jc,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);$M(this.jc,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Se()&&(this.api.startSeekCsiAction(), this.api.seekTo(0),h=f=!0);break;case 35:this.api.Se()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&this.AC(!0);(b||h)&&this.fd.hk();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.cq(a);l.u&&(a={keyCode:g.eq(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.dq(a),fullscreen:this.api.isFullscreen()},this.api.Na("onKeyPress",a))}; g.k.CG=function(a){this.handleGlobalKeyUp(g.eq(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)}; g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.DL(this.api.sb());c&&(c=c.Rm)&&c.wb&&(c.xG(a),b=!0);9===a&&(this.AC(!0),b=!0);return b}; g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.T();if(e.Td)return h;var l=g.DL(this.api.sb());if(l&&(l=l.Rm)&&l.wb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.wG(a)}e.C||h||(h=f||String.fromCharCode(a).toLowerCase(),this.l+=h,0==="awesome".indexOf(this.l)?(h=!0,7===this.l.length&&yn(this.api.getRootNode(),"ytp-color-party")):(this.l=h,h=0==="awesome".indexOf(this.l)));if(!h){f=(f=this.api.getVideoData())?f.xk:[];l=DS?d:c;switch(a){case 80:b&& !e.ma&&(ZM(this.jc,ena(),"Previous"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.ma&&(ZM(this.jc,XJ(),"Next"),this.api.nextVideo(),h=!0);break;case 74:this.api.Se()&&(this.api.startSeekCsiAction(),e.Z("web_player_seek_chapters_by_shortcut")&&this.i?GN(this.i,-1,10):ZM(this.jc,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Ob:!0,K:"ytp-svg-fill",V:{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.Se()&&(this.api.startSeekCsiAction(),e.Z("web_player_seek_chapters_by_shortcut")&&this.i?GN(this.i,1,10):ZM(this.jc,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Ob:!0,K:"ytp-svg-fill",V:{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.Se()&&(this.api.startSeekCsiAction(),l&&e.Z("web_player_seek_chapters_by_shortcut")?(l=Npa(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(HN(this.i,-1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.Z("web_player_seek_chapters_by_shortcut")&&this.i?GN(this.i,-1,5):ZM(this.jc,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Ob:!0,K:"ytp-svg-fill",V:{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.Se()&&(this.api.startSeekCsiAction(),l&&e.Z("web_player_seek_chapters_by_shortcut")?(l=Mpa(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(HN(this.i,1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.Z("web_player_seek_chapters_by_shortcut")&&null!=this.i?GN(this.i,1,5):ZM(this.jc,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Ob:!0,K:"ytp-svg-fill",V:{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(),$M(this.jc,this.api.getVolume(),!1)):(this.api.mute(),$M(this.jc,0,!0));h=!0;break;case 32:case 75:e.ma||(h=!g.XI(this.api.ub()),this.jc.gp(h),h?this.api.playVideo():this.api.pauseVideo(),h=!0);break;case 190:b?e.Mb&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),tpa(this.jc,!1),h=!0):this.api.Se()&&(Ppa(this,1),h=!0);break;case 188:b?e.Mb&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h- .25,!0),tpa(this.jc,!0),h=!0):this.api.Se()&&(Ppa(this,-1),h=!0);break;case 70:fpa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),h=!0); break;case 27:this.B()&&(h=!0)}if("3"!==e.controlsType)switch(a){case 67:g.kM(this.api.sb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),ZM(this.jc,Wma(),!e||e&&!e.displayName?"Subtitles/closed captions on":"Subtitles/closed captions off"),h=!0);break;case 79:MN(this,"textOpacity");break;case 87:MN(this,"windowOpacity");break;case 187:case 61:MN(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:MN(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.Se()&&(this.api.startSeekCsiAction(),a=this.api.getProgressState(),this.api.seekTo(m/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.fd.hk()}return h}; g.k.AC=function(a){g.L(this.api.getRootNode(),"ytp-probably-keyboard-focus",a);g.L(this.contextMenu.element,"ytp-probably-keyboard-focus",a)}; g.k.ra=function(){g.on(this.u);g.SL.prototype.ra.call(this)};g.v(NN,g.V);NN.prototype.Ma=function(){var a=g.tD(this.I.T())&&g.CL(this.I)&&g.T(this.I.ub(),128),b=this.I.getPlayerSize();this.visible=this.i.Ge()&&!a&&240<=b.width&&!(this.I.getVideoData().C&&this.I.T().pfpChazalUi);g.L(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&EN(this.tooltip);this.I.jb(this.element,this.visible&&this.Y)}; NN.prototype.Tb=function(a){g.V.prototype.Tb.call(this,a);this.I.jb(this.element,this.visible&&a)}; NN.prototype.ra=function(){g.V.prototype.ra.call(this);g.wn(this.element,"ytp-overflow-button-visible")};g.v(ON,g.OM);g.k=ON.prototype;g.k.RK=function(a){a=$p(a);g.Le(this.element,a)&&(g.Le(this.i,a)||g.Le(this.closeButton,a)||PM(this))}; g.k.Cb=function(){g.OM.prototype.Cb.call(this);this.tooltip.ni(this.element)}; g.k.show=function(){this.wb&&this.I.W("OVERFLOW_PANEL_OPENED");g.OM.prototype.show.call(this);g.R(this.I.T().experiments,"embeds_enable_overflow_panel_aria_modal_killswitch")||this.element.setAttribute("aria-modal","true");Qpa(this,!0)}; g.k.hide=function(){g.OM.prototype.hide.call(this);g.R(this.I.T().experiments,"embeds_enable_overflow_panel_aria_modal_killswitch")||this.element.removeAttribute("aria-modal");Qpa(this,!1)}; g.k.He=function(a){!a&&this.Hf()&&PM(this)}; g.k.focus=function(){for(var a=g.q(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.wb){b.focus();break}};g.v(QN,g.V);QN.prototype.onClick=function(a){g.BM(a,this.api)&&this.api.playVideoAt(this.index)};g.v(RN,g.OM);g.k=RN.prototype;g.k.show=function(){g.OM.prototype.show.call(this);this.u.N(this.api,"videodatachange",this.Hy);this.u.N(this.api,"onPlaylistUpdate",this.Hy);this.Hy()}; g.k.hide=function(){g.OM.prototype.hide.call(this);g.iu(this.u);this.updatePlaylist(null)}; g.k.Hy=function(){this.updatePlaylist(this.api.getPlaylist())}; g.k.vx=function(){var a=this.playlist,b=a.u;if(b===this.B)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.i[a.index];else{for(var c=g.q(this.i),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;this.i=[];for(d=0;dthis.api.Za().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.vH("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.vH("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.wb||(this.show(),EN(this.tooltip)),this.visible=!0,this.Tb(!0)): this.wb&&(this.hide(),this.Tb(!1),EN(this.tooltip))}; SN.prototype.Tb=function(a){g.V.prototype.Tb.call(this,a);this.api.jb(this.element,this.visible&&a)}; SN.prototype.i=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ma,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ma,this);this.Ma()};g.v(TN,g.V);g.k=TN.prototype; g.k.Iy=function(a,b){if(!this.B){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.yg(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.l&&!a;g.L(this.element,"ytp-share-button-visible",this.visible);g.NJ(this,this.visible);EN(this.tooltip);this.api.jb(this.element,this.visible&&this.Y)}; g.XN.prototype.Tb=function(a){g.V.prototype.Tb.call(this,a);this.api.jb(this.element,this.visible&&a)}; g.XN.prototype.ra=function(){g.V.prototype.ra.call(this);g.wn(this.element,"ytp-share-button-visible")};g.v(g.YN,g.OM);g.k=g.YN.prototype;g.k.TK=function(a){a=$p(a);g.Le(this.C,a)||g.Le(this.closeButton,a)||PM(this)}; g.k.Cb=function(){g.OM.prototype.Cb.call(this);this.tooltip.ni(this.element)}; g.k.show=function(){var a=this.wb;g.OM.prototype.show.call(this);this.Ma();a||this.api.Na("onSharePanelOpened")}; g.k.NO=function(){this.wb&&this.Ma()}; g.k.Ma=function(){var a=this;g.K(this.element,"ytp-share-panel-loading");g.wn(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.B.checked;b.getSharePanelCommand&&aL(this.api.Pk(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.Ia()||(g.wn(a.element,"ytp-share-panel-loading"),Vpa(a,d))}); b=this.api.getVideoUrl(!0,!0,!1,!1);g.ED(this.api.T())&&(b=g.Hd(b,g.fN("emb_share")));this.Sa("link",b);this.Sa("linkText",b);this.Sa("shareLinkWithUrl",g.vH("Share link $URL",{URL:b}));EM(this.u)}; g.k.He=function(a){!a&&this.Hf()&&PM(this)}; g.k.focus=function(){this.u.focus()}; g.k.ra=function(){g.OM.prototype.ra.call(this);Upa(this)};g.v(aO,g.V);g.k=aO.prototype;g.k.GB=function(){}; g.k.HB=function(){}; g.k.Yt=function(){return!0}; g.k.WS=function(){if(this.expanded){this.va.show();var a=this.G.element.scrollWidth}else a=this.G.element.scrollWidth,this.va.hide();this.Qa=34+a;g.L(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Qa)+"px";this.ma.start()}; g.k.yN=function(){this.badge.element.style.width=(this.expanded?this.Qa:34)+"px";this.Fa.start()}; g.k.wT=function(){g.L(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)}; g.k.qh=function(){this.Yt()?this.L.show():this.L.hide();Wpa(this)}; g.k.UK=function(){this.enabled=!1;this.qh()}; g.k.vT=function(a){this.Xa=a;this.qh()}; g.k.HP=function(a){this.Ha=1===a;this.qh();g.L(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}; g.k.fQ=function(){g.L(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.I.isFullscreen());this.qh()};g.v(bO,aO);g.k=bO.prototype;g.k.ra=function(){cO(this);aO.prototype.ra.call(this)}; g.k.GB=function(a){a.target!==this.dismissButton.element&&(Ypa(this,!1),this.I.Na("innertubeCommand",this.onClickCommand))}; g.k.HB=function(){this.u=!0;Ypa(this,!0);this.qh()}; g.k.TQ=function(a){this.Aa=a;this.qh()}; g.k.KQ=function(a){var b=this.I.getVideoData();b&&b.videoId===this.videoId&&this.xa&&(this.U=a,a||(a=3+this.I.getCurrentTime(),this.Bd(a)))}; g.k.kb=function(a,b){var c;if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.u=!1,this.i=!0,this.U=this.xa=this.l=this.J=!1,cO(this);if(a||!b.videoId)this.C=this.B=!1;a=b.shoppingOverlayRenderer;this.Aa=this.enabled=!1;if(a){this.enabled=!0;var d,e,f;if(!this.B){var h=null===(d=a.badgeInteractionLogging)||void 0===d?void 0:d.trackingParams;(this.B=!!h)&&this.I.rl(this.badge.element,h||null)}this.C||(this.C=!(null===(e=a.dismissButton)||void 0===e||!e.trackingParams))&&this.I.rl(this.dismissButton.element, (null===(f=a.dismissButton)||void 0===f?void 0:f.trackingParams)||null);this.text=g.cw(a.text);if(d=null===(c=a.dismissButton)||void 0===c?void 0:c.a11yLabel)this.Oa=g.cw(d);this.onClickCommand=a.onClickCommand;this.timing=a.timing;aG(b)?this.U=this.xa=!0:this.Bd()}Xpa(this);$N(this);this.qh()}; g.k.Yt=function(){return this.Xa&&!this.Aa&&this.enabled&&!this.u&&!this.Ya.Ge()&&(g.R(this.I.T().experiments,"products_in_video_desktop_overlay_badge_should_show_on_fullscreen")||!this.I.isFullscreen())&&!this.Ha&&!this.U&&(this.l||this.i)}; g.k.Ae=function(a){(this.l=a)?(ZN(this),$N(this,!1)):(cO(this),this.X.start());this.qh()}; g.k.Bd=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.Tv(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:7,namespace:"shopping_overlay_visible"}));d&&b.push(new g.Tv(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:7,namespace:"shopping_overlay_expanded"}));this.I.Bd(b)};g.v(dO,g.OM);dO.prototype.show=function(){g.OM.prototype.show.call(this);this.B.start()}; dO.prototype.hide=function(){g.OM.prototype.hide.call(this);this.B.stop()}; dO.prototype.iq=function(a,b){"dataloaded"===a&&((this.u=b.DE,this.i=b.BE,isNaN(this.u)||isNaN(this.i))?this.C&&(this.I.We("intro"),this.I.removeEventListener(g.Wv("intro"),this.ma),this.I.removeEventListener(g.Xv("intro"),this.X),this.I.removeEventListener("onShowControls",this.G),this.hide(),this.C=!1):(this.I.addEventListener(g.Wv("intro"),this.ma),this.I.addEventListener(g.Xv("intro"),this.X),this.I.addEventListener("onShowControls",this.G),a=new g.Tv(this.u,this.i,{priority:7,namespace:"intro"}), this.I.Bd([a]),this.C=!0))};g.v(eO,g.V);eO.prototype.onClick=function(){this.I.fp()}; eO.prototype.Ma=function(){var a=!0,b=this.I.T();(b.Z("embeds_enable_mobile_custom_controls")||"1"===b.controlsType&&!b.Z("embeds_use_native_controls_killswitch")&&b.i)&&g.tD(b)&&(a=a&&480<=this.I.Za().getPlayerSize().width);g.NJ(this,a);this.Sa("icon",this.I.rf()?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Ob:!0,V:{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"}}]}:{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Ob:!0,K:"ytp-svg-fill",V:{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 Hr("yt.autonav");g.v(fO,g.V);g.k=fO.prototype; g.k.xr=function(){if(3!==this.I.getPresentingPlayerType()&&g.GL(this.I)&&400<=this.I.Za().getPlayerSize().width&&!1!==this.I.getVideoData().DO){if(!this.i){this.i=!0;g.NJ(this,this.i);this.l.push(this.N(this.I,"videodatachange",this.xr));this.l.push(this.N(this.I,"videoplayerreset",this.xr));this.l.push(this.N(this.I,"onPlaylistUpdate",this.xr));this.l.push(this.N(this.I,"autonavchange",this.RD));var a=this.I.getVideoData();this.RD(a.autonavState);this.I.jb(this.element,this.i)}}else{this.i=!1;g.NJ(this, this.i);a=g.q(this.l);for(var b=a.next();!b.done;b=a.next())this.fc(b.value)}}; g.k.RD=function(a){(a=1!==a)||(g.wr.getInstance(),a=g.So("web_autonav_allow_off_by_default")&&!g.yr(0,141)&&g.M("AUTONAV_OFF_BY_DEFAULT")?!1:!g.yr(0,140));this.isChecked=a;Zpa(this)}; g.k.onClick=function(){this.isChecked=!this.isChecked;this.I.tx(this.isChecked?2:1);Zpa(this);this.I.Gb(this.element)}; g.k.getValue=function(){return this.isChecked}; g.k.setValue=function(a){this.isChecked=a;this.Ba("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.v(g.hO,g.V);g.hO.prototype.ra=function(){this.ctx=null;g.V.prototype.ra.call(this)};g.v(iO,g.V);iO.prototype.onClick=function(){this.I.Na("innertubeCommand",this.u)}; iO.prototype.onClickCommand=function(a){(null===a||void 0===a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Ub()}; iO.prototype.updateVideoData=function(a,b){a=b.cP;this.u=null===a||void 0===a?void 0:a.command;this.l.disabled=null==this.u;g.L(this.l,"ytp-chapter-container-disabled",this.l.disabled);this.Ub()}; iO.prototype.Ub=function(){var a="",b=this.G.i;if(1d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.NB()}}; g.k.disable=function(){var a=this;if(!this.message){var b=(null!=Rp(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.OM(this.I,{D:"div",Ca:["ytp-popup","ytp-generic-popup"],V:{role:"alert",tabindex:"0"},S:[b[0],{D:"a",V:{href:"https://support.google.com/youtube/answer/6276924", target:this.I.T().G},oa:b[2]},b[4]]},100,!0);this.message.hide();g.G(this,this.message);this.message.subscribe("show",function(c){a.l.Xp(a.message,c)}); g.FL(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.Ma=function(){g.NJ(this,fpa(this.I))}; g.k.Sh=function(a){if(a){var b={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"g",K:"ytp-fullscreen-button-corner-2",S:[{D:"path",Ob:!0,K:"ytp-svg-fill",V:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",K:"ytp-fullscreen-button-corner-3",S:[{D:"path",Ob:!0,K:"ytp-svg-fill",V:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{D:"g",K:"ytp-fullscreen-button-corner-0",S:[{D:"path",Ob:!0,K:"ytp-svg-fill",V:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{D:"g", K:"ytp-fullscreen-button-corner-1",S:[{D:"path",Ob:!0,K:"ytp-svg-fill",V:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=FM(this.I,"Exit full screen","f");document.activeElement===this.element&&this.I.getRootNode().focus()}else b={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"g",K:"ytp-fullscreen-button-corner-0",S:[{D:"path",Ob:!0,K:"ytp-svg-fill",V:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{D:"g",K:"ytp-fullscreen-button-corner-1",S:[{D:"path", Ob:!0,K:"ytp-svg-fill",V:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{D:"g",K:"ytp-fullscreen-button-corner-2",S:[{D:"path",Ob:!0,K:"ytp-svg-fill",V:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",K:"ytp-fullscreen-button-corner-3",S:[{D:"path",Ob:!0,K:"ytp-svg-fill",V:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=FM(this.I,"Full screen","f");this.Sa("icon",b);this.Sa("title",this.message?null:a);EN(this.l.ac())}; g.k.ra=function(){this.message||((0,this.i)(),this.i=null);g.V.prototype.ra.call(this)};g.v(oO,g.V);oO.prototype.onClick=function(){this.I.Na("onCollapseMiniplayer");this.I.Gb(this.element)}; oO.prototype.Ma=function(){this.visible=!this.I.isFullscreen();g.NJ(this,this.visible);this.I.jb(this.element,this.visible&&this.Y)}; oO.prototype.Tb=function(a){g.V.prototype.Tb.call(this,a);this.I.jb(this.element,this.visible&&a)};g.v(pO,g.V);pO.prototype.kb=function(a){this.Ma("newdata"===a)}; pO.prototype.Ma=function(a){var b=this.I.getVideoData(),c=b.qc,d=this.I.ub();d=(g.XI(d)||g.T(d,4))&&0a&&this.delay.start()}; var FGa=new g.Gn(0,0,.4,0,.2,1,1,1),eqa=/[0-9.-]+|[^0-9.-]+/g;g.v(g.tO,g.V);g.k=g.tO.prototype;g.k.SD=function(a){this.visible=300<=a.width;g.NJ(this,this.visible);this.I.jb(this.element,this.visible&&this.Y)}; g.k.AQ=function(){this.I.T().X?this.I.isMuted()?this.I.unMute():this.I.mute():PM(this.message,this.element,!0);this.I.Gb(this.element)}; g.k.vf=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.T();a=0===d?1:50this.clipEnd)&&this.nx()}; g.k.XK=function(a){if(!g.dq(a)){var b=!1;switch(g.eq(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.cq(a)}}; g.k.iq=function(a,b){this.updateVideoData(b,"newdata"===a)}; g.k.ZN=function(){this.iq("newdata",this.api.getVideoData())}; g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();this.Lb=c&&a.allowLiveDvr;Lqa(this,this.api.Se());b&&(c?(b=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=b,MO(this),IO(this,this.U,this.Oa)):this.nx(),g.DP(this.tooltip));if(a){b=a.watchNextResponse;if(a=!a.isLivePlayback&&b)a=this.api.getVideoData(),b=a.vz,a=null!=a.multiMarkersPlayerBarRenderer||null!=b&&0=e&&n.timeRangeStartMillisa.position&&(n=1);!m&&h/2>this.B-a.position&&(n=2);dra(this.tooltip,c,d,b,!!f,l,e,n)}else dra(this.tooltip,c,d,b,!!f,l);g.L(this.api.getRootNode(),"ytp-progress-bar-hover",!g.T(this.api.ub(),64));Eqa(this)}; g.k.VQ=function(){g.DP(this.tooltip);g.wn(this.api.getRootNode(),"ytp-progress-bar-hover")}; g.k.UQ=function(a,b){this.C&&(this.C.dispose(),this.C=null);this.Gc=b;1e||1e&&a.C.start()}); this.C.start()}if(g.T(this.api.ub(),32)||3===this.api.getPresentingPlayerType())this.api.startSeekCsiAction(),1.1*(this.u?60:40),a=FO(this));g.L(this.element,"ytp-pull-ui",e);d&&g.K(this.element,"ytp-pulling");b=0;a.l&&0>=a.position&&1===this.i.length?b=-1:a.C&&a.position>=a.width&&1===this.i.length&&(b=1);if(this.rb!==b&&1===this.i.length&&(this.rb=b,this.C&&(this.C.dispose(),this.C=null),b)){var f=(0,g.O)();this.C=new g.hn(function(){var h=c.B*(c.Ea-1);c.ma=g.ce(c.ma+ c.rb*((0,g.O)()-f)*.3,0,h);JO(c);c.api.seekTo(LO(c,FO(c)),!1);0=b;g.NJ(this,a);this.I.jb(this.element,a)}; RO.prototype.u=function(){if(this.yb.wb)this.yb.Cb();else{var a=g.kM(this.I.sb());a&&!a.loaded&&(a.Me("tracklist",{includeAsr:!0}).length||a.load());this.I.Gb(this.element);this.yb.Uc(this.element)}}; RO.prototype.updateBadge=function(){var a=this.I.isHdr(),b=this.I.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.EL(this.I),e=c&&!!g.DL(this.I.sb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.I.getPlaybackQuality();g.L(this.element,"ytp-hdr-quality-badge",a);g.L(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.L(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.L(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.L(this.element,"ytp-8k-quality-badge", !a&&"highres"===c);g.L(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.L(this.element,"ytp-3d-badge",!a&&e&&d)};g.v(TO,uN);TO.prototype.isLoaded=function(){var a=g.tM(this.I.sb());return void 0!==a&&a.loaded}; TO.prototype.Ma=function(){void 0!==g.tM(this.I.sb())&&3!==this.I.getPresentingPlayerType()?this.i||(this.yb.yc(this),this.i=!0):this.i&&(this.yb.yf(this),this.i=!1);this.setValue(this.isLoaded())}; TO.prototype.l=function(a){this.isLoaded();a?this.I.loadModule("annotations_module"):this.I.unloadModule("annotations_module");this.I.W("annotationvisibility",a)}; TO.prototype.ra=function(){this.i&&this.yb.yf(this);uN.prototype.ra.call(this)};g.v(g.UO,g.mN);g.k=g.UO.prototype;g.k.open=function(){g.wN(this.yb,this.u)}; g.k.wh=function(a){Nqa(this);this.options[a].element.setAttribute("aria-checked","true");this.Vc(this.ji(a));this.l=a}; g.k.Gz=function(a,b,c){var d=this;b=new g.mN({D:"div",Ca:["ytp-menuitem"],V:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},S:[{D:"div",Ca:["ytp-menuitem-label"],oa:"{{label}}"}]},b,this.ji(a,!0));b.Ra("click",function(){d.Ze(a)}); return b}; g.k.enable=function(a){this.B?a||(this.B=!1,this.Fp(!1)):a&&(this.B=!0,this.Fp(!0))}; g.k.Fp=function(a){a?this.yb.yc(this):this.yb.yf(this)}; g.k.Ze=function(a){this.W("select",a)}; g.k.ji=function(a){return a.toString()}; g.k.YK=function(a){g.dq(a)||39!==g.eq(a)||(this.open(),g.cq(a))}; g.k.ra=function(){this.B&&this.yb.yf(this);g.mN.prototype.ra.call(this);for(var a=g.q(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.v(WO,g.UO);WO.prototype.Ma=function(){var a=this.I.getAvailableAudioTracks();1(a.deltaX||-a.deltaY)?-this.C:this.C;this.bp(b);g.cq(a)}; g.k.aL=function(a){a=(a-g.rg(this.l).x)/this.J*this.range+this.minimumValue;this.bp(a)}; g.k.bp=function(a,b){b=void 0===b?"":b;a=g.ce(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Sa("valuenow",a);this.Sa("valuetext",b);this.L.style.left=(a-this.minimumValue)/this.range*(this.J-this.X)+"px";this.i=a}; g.k.focus=function(){this.ma.focus()};g.v(dP,bP);dP.prototype.U=function(){this.I.setPlaybackRate(this.i,!0)}; dP.prototype.bp=function(a){bP.prototype.bp.call(this,a,eP(this,a).toString());this.u&&(cP(this),this.va())}; dP.prototype.xa=function(){var a=this.I.getPlaybackRate();eP(this,this.i)!==a&&(this.bp(a),cP(this))};g.v(fP,g.OJ);fP.prototype.focus=function(){this.i.focus()};g.v(Pqa,pN);g.v(gP,g.UO);g.k=gP.prototype;g.k.ji=function(a){return"1"===a?"Normal":a.toLocaleString()}; g.k.Ma=function(){var a=this.I.getPresentingPlayerType();this.enable(2!==a&&3!==a);Sqa(this)}; g.k.Fp=function(a){g.UO.prototype.Fp.call(this,a);a?(this.J=this.N(this.I,"onPlaybackRateChange",this.cL),Sqa(this),Qqa(this,this.I.getPlaybackRate())):(this.fc(this.J),this.J=null)}; g.k.cL=function(a){var b=this.I.getPlaybackRate();this.G.includes(b)||Rqa(this,b);Qqa(this,a)}; g.k.Ze=function(a){g.UO.prototype.Ze.call(this,a);a===this.i?this.I.setPlaybackRate(this.C,!0):this.I.setPlaybackRate(Number(a),!0);this.yb.Og()};g.v(iP,g.UO);g.k=iP.prototype;g.k.wh=function(a){g.UO.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.ji=function(a){return this.getOption(a).text||""}; g.k.Ze=function(a){g.UO.prototype.Ze.call(this,a);this.W("settingChange",this.setting,this.settings[a].option)};g.v(jP,g.qN);jP.prototype.Ye=function(a){for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Bm[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.wh(e),c.C.element.setAttribute("aria-checked",String(!d)),c.i.element.setAttribute("aria-checked",String(d)))}}}; jP.prototype.Mg=function(a,b){this.W("settingChange",a,b)};g.v(kP,g.UO);kP.prototype.getKey=function(a){return a.languageCode}; kP.prototype.ji=function(a){return this.languages[a].languageName||""}; kP.prototype.Ze=function(a){this.W("select",a);this.I.Gb(this.element);g.AN(this.yb)};g.v(lP,g.UO);g.k=lP.prototype;g.k.getKey=function(a){return g.Pb(a)?"__off__":a.displayName}; g.k.ji=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName}; g.k.Ze=function(a){"__translate__"===a?this.i.open():"__contribute__"===a?(this.I.pauseVideo(),this.I.isFullscreen()&&this.I.toggleFullscreen(),a=g.eN(this.I.T(),this.I.getVideoData()),g.yI(a)):(this.I.Gb(this.element),this.I.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.UO.prototype.Ze.call(this,a),this.yb.Og())}; g.k.Ma=function(){var a,b=this.I.getOptions();b=b&&-1!==b.indexOf("captions");var c=this.I.getVideoData();c=c&&c.Ak;var d=!(null===(a=this.I.getVideoData())||void 0===a||!g.sG(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.Bb(e,this.getKey,this);d=g.Oc(e,this.getKey);if(h.length&&!g.Pb(f)){var l=f.translationLanguage;if(l&&l.languageName){var m= l.languageName;l=h.findIndex(function(n){return n.languageName===m}); Vaa(h,l)}Uqa(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.VO(this,d);this.wh(h);f&&f.translationLanguage?this.i.wh(this.i.getKey(f.translationLanguage)):Nqa(this.i);b&&this.C.Ye(this.I.getSubtitlesUserSettings());this.J.Vc(e&&e.length?" ("+e.length+")":"");this.W("size-change");this.I.jb(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.k.dL=function(a){var b=this.I.getOption("captions","track");b=g.Tb(b);b.translationLanguage=this.i.languages[a];this.I.setOption("captions","track",b)}; g.k.Mg=function(a,b){if("reset"===a)this.I.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.I.updateSubtitlesUserSettings(c)}Vqa(this,!0);this.G.start();this.C.Ye(this.I.getSubtitlesUserSettings())}; g.k.CR=function(a){a||g.on(this.G)}; g.k.ra=function(){g.on(this.G);g.UO.prototype.ra.call(this)};g.v(mP,g.yN);g.k=mP.prototype;g.k.initialize=function(){if(!this.Pd){this.Pd=!0;this.oB=new ZO(this.I,this);g.G(this,this.oB);var a=new aP(this.I,this);g.G(this,a);a=new lP(this.I,this);g.G(this,a);a=new TO(this.I,this);g.G(this,a);this.I.T().Mb&&(a=new gP(this.I,this),g.G(this,a));this.I.T().zb&&!g.R(this.I.T().experiments,"web_player_move_autonav_toggle")&&(a=new XO(this.I,this),g.G(this,a));a=new WO(this.I,this);g.G(this,a);SO(this.settingsButton,this.Gd.items.length)}}; g.k.yc=function(a){this.initialize();this.Gd.yc(a);SO(this.settingsButton,this.Gd.items.length)}; g.k.yf=function(a){this.wb&&1>=this.Gd.items.length&&this.hide();this.Gd.yf(a);SO(this.settingsButton,this.Gd.items.length)}; g.k.Uc=function(a){this.initialize();0=this.J&&(!this.l||!g.T(this.api.ub(),64));g.NJ(this,b);g.L(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=g.KK(g.R(this.api.T().experiments,"halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1));this.u!==c&&(this.Sa("currenttime",c),this.u=c);b=g.KK(g.R(this.api.T().experiments,"halftime_ux_killswitch")?a.duration:this.api.getDuration(b, !1));this.B!==b&&(this.Sa("duration",b),this.B=b)}this.l&&(a=a.isAtLiveHead,this.G!==a||this.C!==this.isPremiere)&&(this.G=a,this.C=this.isPremiere,this.Ub(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Vc(this.isPremiere?"Premiere":"Live"),a?this.i&&(this.i(),this.i=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.i=g.cN(this.tooltip,this.liveBadge.element)))}; g.k.kb=function(a,b,c){this.updateVideoData((g.R(this.api.T().experiments,"enable_topsoil_wta_for_halftime")||g.R(this.api.T().experiments,"enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Ub()}; g.k.updateVideoData=function(a){this.l=a.isLivePlayback&&!a.zb;this.isPremiere=a.isPremiere;g.L(this.element,"ytp-live",this.l)}; g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())}; g.k.ra=function(){this.i&&this.i();g.V.prototype.ra.call(this)};g.v(sP,g.V);g.k=sP.prototype;g.k.fl=function(){var a=this.i.ue();this.B!==a&&(this.B=a,rP(this,this.api.getVolume(),this.api.isMuted()))}; g.k.UD=function(a){g.NJ(this,350<=a.width)}; g.k.gL=function(a){if(!g.dq(a)){var b=g.eq(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.ce(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.cq(a))}}; g.k.eL=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.ce(b/10,-10,10));g.cq(a)}; g.k.GR=function(){qP(this,this.l,!0,this.hasFocus,this.i.Ih());this.U=this.volume;this.api.isMuted()&&this.api.unMute()}; g.k.fL=function(a){var b=this.B?78:52,c=this.B?18:12;a-=g.rg(this.L).x;this.api.setVolume(100*g.ce((a-c/2)/(b-c),0,1))}; g.k.FR=function(){qP(this,this.l,!1,this.hasFocus,this.i.Ih());0===this.volume&&(this.api.mute(),this.api.setVolume(this.U))}; g.k.vf=function(a){rP(this,a.volume,a.muted)}; g.k.AF=function(){qP(this,this.l,this.u,this.hasFocus,this.i.Ih())}; g.k.ra=function(){g.V.prototype.ra.call(this);g.wn(this.J,"ytp-volume-slider-active")};g.v(g.tP,g.V);g.tP.prototype.kb=function(){var a=this.api.getVideoData(1).C,b=this.api.T();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.NJ(this,this.visible);this.api.jb(this.element,this.visible&&this.Y);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Sa("url",a))}; g.tP.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.LK(a),!1,!0,!0);if(g.tD(this.api.T())||g.ED(this.api.T()))b=g.Hd(b,g.fN("emb_logo"));g.CM(b,this.api,a);this.api.Gb(this.element)}; g.tP.prototype.tb=function(){var a={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},S:[{D:"path",Ob:!0,K:"ytp-svg-fill",V:{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.ED(this.api.T())){var b=this.Ba("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{D:"svg",V:{fill:"none",height:"24",width:"24"},S:[{D:"circle",V:{cx:"12",cy:"12",fill:"red",r:"12"}},{D:"ellipse",V:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{D:"path",V:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{D:"svg",V:{viewBox:"0 0 80 24"},S:[{D:"ellipse",V:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{D:"ellipse",V:{cx:"12.18", cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{D:"path",V:{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.L(b,"ytp-youtube-music-logo-icon-only",c)}this.Sa("logoSvg",a)}; g.tP.prototype.Tb=function(a){g.V.prototype.Tb.call(this,a);this.api.jb(this.element,this.visible&&a)};g.v(vP,g.SL);g.k=vP.prototype;g.k.Rc=function(){this.Fc.Ub();this.qg.Ub()}; g.k.Ii=function(){this.Ky();this.fd.l?this.Rc():g.DP(this.Fc.tooltip)}; g.k.Ko=function(){this.Rc();this.td.start()}; g.k.Ky=function(){var a=!this.I.T().i&&300>g.Mqa(this.Fc)&&this.I.ub().uc()&&!!window.requestAnimationFrame,b=!a;this.fd.l||(a=b=!1);b?this.J||(this.J=this.N(this.I,"progresssync",this.Rc)):this.J&&(this.fc(this.J),this.J=null);a?this.td.isActive()||this.td.start():this.td.stop()}; g.k.tb=function(){var a=this.u.ue(),b=this.I.Za().getPlayerSize(),c=wP(this),d=Math.max(b.width-2*c,100);if(this.Fa!==b.width||this.Aa!==a){this.Fa=b.width;this.Aa=a;var e=Zqa(this);this.l.element.style.width=e+"px";this.l.element.style.left=c+"px";g.PO(this.Fc,c,e,a);this.u.ac().Ly=e}c=this.i;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-xP(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.Ou=e;c.Uq();this.Ky();!this.I.T().Z("html5_player_bottom_linear_gradient")&&g.R(this.I.T().experiments,"html5_player_dynamic_bottom_gradient")&& g.gO(this.Ea,b.height)}; g.k.kb=function(){var a=this.I.getVideoData();this.ma.style.background=a.C?a.Fa:"";g.NJ(this.U,a.vy)};g.v(yP,aO);g.k=yP.prototype;g.k.GB=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.I.Na("innertubeCommand",this.onClickCommand),this.u=!0,this.L.hide())}; g.k.HB=function(){this.u=!0;this.L.hide()}; g.k.kb=function(a,b){var c;"newdata"===a&&(this.l=this.u=!1,zP(this));a=b.PE;if(null==b.shoppingOverlayRenderer&&a){this.i=this.J=this.enabled=!0;this.text=oqa(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.Tv(e,d,{priority:7,cX:"suggested_action_button_visible"}));this.I.Bd(b)}this.onClickCommand=a.tapCommand;Xpa(this);$N(this);this.qh()}}; g.k.Yt=function(){return!this.u&&this.enabled&&(this.l||this.i)}; g.k.Ae=function(a){this.u||((this.l=a)?ZN(this):(zP(this),this.X.start()),this.qh())}; g.k.ra=function(){zP(this);aO.prototype.ra.call(this)};var f1={},AP=(f1.CHANNEL_NAME="ytp-title-channel-name",f1.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",f1.LINK="ytp-title-link",f1.SESSIONLINK="yt-uix-sessionlink",f1.SUBTEXT="ytp-title-subtext",f1.TEXT="ytp-title-text",f1.TITLE="ytp-title",f1);g.v(BP,g.V);BP.prototype.onClick=function(a){this.api.Gb(this.element);var b=this.api.getVideoUrl(!g.LK(a),!1,!0);g.tD(this.api.T())&&(b=g.Hd(b,g.fN("emb_title")));g.CM(b,this.api,a)}; BP.prototype.Ma=function(){var a=this.api.getVideoData(),b=this.api.T();this.Sa("title",a.title);$qa(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.Ib&&c.gg?(this.Sa("channelLink",c.Ib),this.Sa("channelName",c.author),this.Sa("channelTitleFocusable","0")):$qa(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.cf;g.L(this.link,AP.FULLERSCREEN_LINK,c);b.J||!a.videoId||c||a.C&&b.pfpChazalUi?this.i&&(this.Sa("url",null),this.fc(this.i), this.i=null):(this.Sa("url",this.api.getVideoUrl(!0)),this.i||(this.i=this.N(this.link,"click",this.onClick)))};g.v(g.CP,g.V);g.k=g.CP.prototype;g.k.YH=function(a,b){a<=this.l&&this.l<=b&&(a=this.l,this.l=NaN,bra(this,a))}; g.k.HO=function(){tF(this.i,this.l,160*this.scale)}; g.k.qj=function(){switch(this.type){case 2:var a=this.activeElement;a.removeEventListener("mouseout",this.L);a.addEventListener("mouseover",this.u);a.removeEventListener("blur",this.L);a.addEventListener("focus",this.u);era(this);break;case 3:era(this);break;case 1:this.i&&(this.i.unsubscribe("l",this.YH,this),this.i=null),this.api.removeEventListener("videoready",this.U),this.X.stop()}this.type=null;this.G&&this.B.hide()}; g.k.ni=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.Ii=function(a){a&&(this.tooltip.ni(this.oh.element),this.Mf&&this.tooltip.ni(this.Mf.l.element));this.api.Z("embeds_enable_player_overlays_autohide")&&this.qw&&(g.L(this.contextMenu.element,"ytp-autohide",a),g.L(this.contextMenu.element,"ytp-autohide-active",!0));g.SM.prototype.Ii.call(this,a)}; g.k.FB=function(){g.SM.prototype.FB.call(this);this.api.Z("embeds_enable_player_overlays_autohide")&&this.qw&&(g.L(this.contextMenu.element,"ytp-autohide-active",!1),this.api.Z("embeds_enable_player_overlays_autohide")&&this.qw&&(this.contextMenu.hide(),this.Kf&&this.Kf.hide()))}; g.k.zi=function(a,b){var c=this.api.Za().getPlayerSize();c=new g.$f(0,0,c.width,c.height);if(a||this.fd.l&&!this.Qm()){if(this.api.T().Yi||b)a=this.ue()?this.Rz:this.Qz,c.top+=a,c.height-=a;this.Mf&&(c.height-=xP(this.Mf))}return c}; g.k.fl=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.T().externalFullscreen||(b.parentElement.insertBefore(this.Hv.element,b),b.parentElement.insertBefore(this.Gv.element,b.nextSibling))):g.Xo(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.Hv.detach(),this.Gv.detach());this.tb();this.yl()}; g.k.ue=function(){var a=this.api.T();return this.api.isFullscreen()&&!a.L||!1}; g.k.showControls=function(a){this.xv=!a;this.ci()}; g.k.tb=function(){var a=this.ue();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.L(this.contextMenu.element,"ytp-big-mode",a);this.ci();if(this.Ge()&&this.Kf)this.Sg&&PN(this.Kf,this.Sg),this.shareButton&&PN(this.Kf,this.shareButton),this.zg&&PN(this.Kf,this.zg);else{if(this.Kf){a=this.Kf;for(var b=g.q(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.Sg&&!g.Le(this.rg.element,this.Sg.element)&&this.Sg.ya(this.rg.element);this.shareButton&&!g.Le(this.rg.element, this.shareButton.element)&&this.shareButton.ya(this.rg.element);this.zg&&!g.Le(this.rg.element,this.zg.element)&&this.zg.ya(this.rg.element)}this.yl();g.SM.prototype.tb.call(this)}; g.k.BA=function(){if(lra(this)&&!g.CL(this.api))return!1;var a=this.api.getVideoData();return!g.tD(this.api.T())||2===this.api.getPresentingPlayerType()||!this.Cg||((a=this.Cg||a.Cg)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.SM.prototype.BA.call(this):!1}; g.k.yl=function(){g.SM.prototype.yl.call(this);this.api.jb(this.title.element,!!this.Nj);this.Cq&&this.Cq.Tb(!!this.Nj);this.channelAvatar.Tb(!!this.Nj);this.overflowButton&&this.overflowButton.Tb(this.Ge()&&!!this.Nj);this.shareButton&&this.shareButton.Tb(!this.Ge()&&!!this.Nj);this.Sg&&this.Sg.Tb(!this.Ge()&&!!this.Nj);this.zg&&this.zg.Tb(!this.Ge()&&!!this.Nj);if(!this.Nj){this.tooltip.ni(this.oh.element);for(var a=0;ab&&1<=c&&Ss(a,"EntityStore",{keyPath:"key"}).i.createIndex("entityType","entityType",{unique:!1})}, version:1});g.v(dQ,g.F);dQ.prototype.l=function(a){xra(this,a.data)}; dQ.prototype.ra=function(){this.channel&&this.channel.close()}; var jQ,Ara=void 0;var pQ=g.B.caches,oQ,qQ;lQ.prototype.open=function(a){return pQ.open(nQ(a))}; lQ.prototype.has=function(a){return pQ.has(nQ(a))}; lQ.prototype.delete=function(a){return pQ.delete(nQ(a))}; lQ.prototype.match=function(a,b){return g.D(this,function d(){var e=this,f,h,l,m,n,p;return g.z(d,function(r){switch(r.i){case 1:return g.w(r,e.keys(),2);case 2:f=r.l,h=g.q(f),l=h.next();case 3:if(l.done){r.xb(5);break}m=l.value;return g.w(r,e.open(m),6);case 6:return n=r.l,g.w(r,n.match(a,b),7);case 7:if(p=r.l)return r.return(p);l=h.next();r.xb(3);break;case 5:return r.return()}})})}; g.v(mQ,lQ);mQ.prototype.keys=function(){return g.D(this,function b(){var c,d,e,f,h,l,m,n,p;return g.z(b,function(r){if(1==r.i)return c=[],d=ys("CacheStorage keys"),g.w(r,pQ.keys(),2);e=r.l;f=g.q(e);for(h=f.next();!h.done;h=f.next()){l=h.value;var t=l.indexOf(":");m=-1===t?{VB:l}:{VB:l.substring(0,t),datasyncId:l.substring(t+1)};n=m.VB;p=m.datasyncId;p===d&&c.push(n)}return r.return(c)})})};var LGa={HU:"captionTrack",TZ:"ytMainChannelEntity",UZ:"ytMainDownloadedVideoEntity",VZ:"ytMainVideoEntity",I1:"offlineOrchestrationActionWrapperEntity",P1:"offlineVideoPolicy",Q1:"offlineVideoStreams",s2:"playbackData",F4:"transfer"},eta=Object.keys(LGa).map(function(a){return LGa[a]}),Nra="captionTrack ytMainChannelEntity ytMainDownloadedVideoEntity ytMainVideoEntity offlineVideoPolicy offlineVideoStreams playbackData transfer".split(" ");var nra=function(a){for(var b=Object.keys(a),c={},d=0;db.i&&(c=1));return c};g.v(lR,g.F);lR.prototype.ra=function(){this.B&&this.B();g.F.prototype.ra.call(this)}; lR.prototype.createAction=function(a,b){var c=VP(a.entityKey).entityType,d=uu();return new DQ(c,d,a,b.actionId,b.rootActionId)}; lR.prototype.C=function(a){var b;return g.D(this,function d(){var e=this,f,h,l,m,n,p,r,t;return g.z(d,function(u){if(1==u.i){if(e.Ia())return u.return();f=null!==(b=a.offlineOrchestrationActionWrapperEntity)&&void 0!==b?b:new Set;h=[];l=g.q(f);for(m=l.next();!m.done;m=l.next()){n=m.value;p=VP(n);r=p.entityId;a:{var x=g.q(e.u.actions);for(var y=x.next();!y.done;y=x.next())if(y.value.actionId===r){x=!0;break a}x=!1}x||h.push(n)}return g.w(u,vsa(e,h),2)}t=u.l;usa(e,t);x=e.l?Promise.resolve():mR(e);return g.w(u, x,0)})})};zsa.prototype.B=function(a){if(2===a.status)a.status!==this.l&&(Psa(this.i),xE(a.videoId,2)),a.It&&Tsa(this.i,a.videoId,a.It);else if(4===a.status){var b=a.videoId;xE(b,4);AE(b);Ssa(this.i)}else 1===a.status&&Qsa(this.i);this.l=a.status;this.api.Na("localmediachange",{videoId:a.videoId,status:a.status})};g.v(nR,g.F);nR.prototype.ra=function(){this.l&&this.l();g.F.prototype.ra.call(this)}; nR.prototype.u=function(a){var b;return g.D(this,function d(){var e,f,h,l,m,n,p,r=this;return g.z(d,function(t){e=null!==(b=a.transfer)&&void 0!==b?b:new Set;f=[];h=g.q(e);for(l=h.next();!l.done;l=h.next())m=l.value,n=VP(m),p=n.entityId,f.push(p);return 0===f.length?t.return():g.w(t,Esa(r,f),0)})})};var MGa={priority:0,retryScheduleIntervalsInSeconds:[10]};g.v(oR,g.F);oR.prototype.ra=function(){this.C&&this.C();this.G.dispose();g.F.prototype.ra.call(this)}; oR.prototype.J=function(a){return g.D(this,function c(){var d=this;return g.z(c,function(e){switch(e.i){case 1:if(!d.i){e.xb(2);break}if("TRANSFER_STATE_COMPLETE"===d.i.transferState||"TRANSFER_STATE_FAILED"===d.i.transferState||!a.transfer||!a.transfer.has(d.i.key)){e.xb(3);break}return g.w(e,hQ(d.l,d.i.key,"transfer"),4);case 4:d.i=e.l;if(d.i){e.xb(3);break}return g.w(e,Ksa(d),3);case 3:if(d.i)return e.return();case 2:return g.w(e,pR(d),0)}})})}; var h1={},tR=(h1.TRANSFER_STATE_TRANSFERRING=1,h1.TRANSFER_STATE_TRANSFER_IN_QUEUE=2,h1);g.k=Wsa.prototype;g.k.isOrchestrationLeader=function(){return this.u}; g.k.refreshAllVideos=function(){return g.D(this,function b(){var c=this,d;return g.z(b,function(e){switch(e.i){case 1:if(c.B.Rj()){e.xb(2);break}return g.w(e,dta(c),3);case 3:return e.return([]);case 2:return d=c.Kt,g.w(e,cta(c),4);case 4:return e.return(d.call(c,e.l,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))}})})}; g.k.deleteVideos=function(a){return g.D(this,function c(){var d=this;return g.z(c,function(e){return e.return(d.Kt(a,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})}; g.k.deleteAllVideos=function(){return g.D(this,function b(){var c=this;return g.z(b,function(d){return d.return(c.Kt(["!*$_ALL_VIDEOS_!*$"],"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})}; g.k.Kt=function(a,b){return g.D(this,function d(){var e,f;return g.z(d,function(h){if(1==h.i)return g.w(h,kQ(),2);e=h.l;if(!e)return h.return([]);f=a.map(function(l){var m=WP(l,"ytMainDownloadedVideoEntity");l=new DQ("ytMainDownloadedVideoEntity",l,{actionType:b,entityKey:m,actionMetadata:MGa});return ZQ(l)}); return h.return(yra(e,f))})})};var gta=!1,uR,vR,wR,xR,yR; zR.prototype.encrypt=function(a){var b=BR.au("oap"),c=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+c));for(var d=this.l,e=0;ethis.i;)a[e++]^=d[this.i++];for(var f=c-(c-e)%16;ee?this.oe("next_player_future"):(this.G=d,this.u=MB(a,c,d,!0),this.B=MB(a,e,f,!1),a=this.l.getVideoData().clientPlaybackNonce, this.i.La("gaplessPrep","cpn."+a),KR(this.i,this.u),IR(this.i,vta(b,c,d,!this.i.getVideoData().isAd())),JR(this,2),Bta(this))):this.ea():this.ea()}else this.oe("no-elem")}else this.ea()}; g.k.Gp=function(a){var b=Ata(this).pJ,c=a===b;b=c?this.u.i:this.u.l;c=c?this.B.i:this.B.l;if(b.isActive&&!c.isActive){var d=this.G;sB(a.Ne(),d-.01)&&(JR(this,4),b.isActive=!1,b.Du=b.Du||b.isActive,this.l.La("sbh","1"),c.isActive=!0,c.Du=c.Du||c.isActive);a=this.B.l;this.B.i.isActive&&a.isActive&&JR(this,5)}}; g.k.gI=function(){4<=this.status.status&&6>this.status.status&&this.oe("player-reload-after-handoff")}; g.k.oe=function(a){if(!this.Ia()&&!this.isFinished()){this.ea();var b=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.i&&this.l){var c=this.l.getVideoData().clientPlaybackNonce;this.i.La("gaplessError","cpn."+c+";msg."+a);a=this.i;a.videoData.Qa=!1;b&&WV(a);a.l&&(b=a.l,b.policy.va=!1,b.mediaSource&&iU(b))}this.C.reject(void 0);this.dispose()}}; g.k.ra=function(){zta(this);this.i.unsubscribe("newelementrequired",this.gI,this);if(this.u){var a=this.u.l;this.u.i.Zc.unsubscribe("updateend",this.Gp,this);a.Zc.unsubscribe("updateend",this.Gp,this)}g.F.prototype.ra.call(this)}; g.k.Ec=function(a){g.kH(a,128)&&this.oe("player-error-event")}; g.k.ea=function(){};g.v(MR,g.F);MR.prototype.clearQueue=function(){this.ea();this.B&&this.B.reject("Queue cleared");NR(this)}; MR.prototype.qq=function(){return!this.l}; MR.prototype.ra=function(){NR(this);g.F.prototype.ra.call(this)}; MR.prototype.ea=function(){};g.v(QR,g.P);g.k=QR.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:Fta()?3:b?2:c?1:d?5:e?7:f?8:0}; g.k.Sh=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Ae())}; g.k.setMinimized=function(a){this.u!==a&&(this.u=a,this.Ae())}; g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Ae())}; g.k.Kq=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Ae())}; g.k.setImmersivePreview=function(a){this.l!==a&&(this.l=a,this.Ae())}; g.k.rf=function(){return this.i}; g.k.isFullscreen=function(){return 0!==this.fullscreen}; g.k.Ee=function(){return this.u}; g.k.isInline=function(){return this.inline}; g.k.isBackground=function(){return Fta()}; g.k.oq=function(){return this.pictureInPicture}; g.k.mq=function(){return this.l}; g.k.Ae=function(){this.W("visibilitychange");var a=this.getVisibilityState(this.rf(),this.isFullscreen(),this.Ee(),this.isInline(),this.oq(),this.mq());a!==this.C&&this.W("visibilitystatechange");this.C=a}; g.k.ra=function(){Ita(this.B);g.P.prototype.ra.call(this)};g.v(g.TR,g.F);g.k=g.TR.prototype;g.k.xd=function(a){this.Aa.push(a);var b=this.C.get(a),c=null==b;if(this.Ea)this.Ea=!1,c||(a=this.B.find(function(d){return d.cpn===b}))&&this.api.W("serverstitchedvideochange",a.Wc),this.U=!1; else if(this.l){if(this.l.Vs)this.i.La("sdai","a_pair_of_same_transition_occurs_enter");else{if(this.l.Od===a){this.l=void 0;return}if(this.l.adCpn===b){this.i.La("sdai","dchtsc");this.l=void 0;return}a={Od:a,isAd:!c,Vs:!0,wl:this.i.getCurrentTime(),adCpn:b};Pta(this,a,this.l)}this.l=void 0;this.U=!1}else this.l={Od:a,isAd:!c,Vs:!0,wl:this.i.getCurrentTime(),adCpn:b}}; g.k.Ue=function(a){this.Aa=this.Aa.filter(function(d){return d!==a}); this.Ea&&(this.U=this.Ea=!1,this.i.La("sdai","cref"));var b=this.C.get(a),c=null==b;if(this.l){if(this.l.Vs){if(this.l.Od===a){this.l=void 0;return}if(this.l.adCpn===b){this.i.La("sdai","dchtsc");this.l=void 0;return}c={Od:a,isAd:!c,Vs:!1,wl:this.i.getCurrentTime(),adCpn:b};Pta(this,this.l,c)}else this.i.La("sdai","a_pair_of_same_transition_occurs_exit");this.l=void 0;this.U=!1}else this.l={Od:a,isAd:!c,Vs:!1,wl:this.i.getCurrentTime(),adCpn:b};g.R(this.u.experiments,"web_player_halftime_dai")&&(c= this.B.find(function(d){return d.cpn===b}),this.isLiveNow&&c&&this.i.getCurrentTime()=m.JC&&(a=a.concat("&skipsq="+m.JC));(c=n.clientPlaybackNonce)&&(a=a.concat("&cpn="+c));c=[];m.An&&(c=Vta(this,m.An),0=a+e||(h=!1,f?athis.u;)(c=this.data.shift())&&qS(this,c,!0);oS(this)}; pS.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a}); c&&(qS(this,c,b),g.nb(this.data,function(d){return d.key===a}),oS(this))}; pS.prototype.ra=function(){var a=this;g.F.prototype.ra.call(this);this.data.forEach(function(b){qS(a,b,!0)}); this.data=[]};rS.prototype.add=function(a){this.i=(this.i+1)%this.data.length;this.data[this.i]=a}; rS.prototype.forEach=function(a){for(var b=this.i+1;b=this.Kb&&(this.Kb=a.i.info.Kb)}; zT.prototype.getDuration=function(){return this.i.index.getMaxKnownEndTime()}; zT.prototype.isRequestPending=function(a){return this.u.length?a===this.u[this.u.length-1].info.i[0].Ka:!1};NT.prototype.send=function(){g.yp(this.target,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:this.onComplete,onTimeout:this.onComplete,context:this});this.i=(0,g.O)()}; NT.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.O)()-this.i)/1E3).toFixed(3),shost:g.wd(this.target),trigger:this.trigger};204===a.status||a.response?this.l&&this.l(g.zB(c)):this.u(new g.yB("pathprobe.net",!1,c))};g.k=Lva.prototype;g.k.getResponseHeader=function(a){return"content-type"===a?this.i.get("type"):""}; g.k.abort=function(){}; g.k.pm=function(){return!0}; g.k.ys=function(){return this.range.length}; g.k.Zn=function(){return this.loaded}; g.k.mx=function(){return!!this.loaded}; g.k.Xf=function(){return!!this.l.totalLength}; g.k.Th=function(){var a=this.l;this.l=new uA;return a}; g.k.fg=function(){return this.l}; g.k.Oq=function(){return!0}; g.k.jC=function(){return!!this.error}; g.k.Oe=function(){return this.error};var Ova=0;g.k=OT.prototype;g.k.start=function(a){var b=Object.assign({},this.ma);this.B&&(b.signal=this.B.signal);a=new Request(a,b);fetch(a).then(this.xa,this.onError).then(void 0,qs)}; g.k.onDone=function(){if(!this.Ia()){this.ea();this.U=!0;if(Nva(this)&&!this.i.totalLength&&!this.G&&this.l){cx(this);var a=new Uint8Array(8),b=new DataView(a.buffer);b.setUint32(0,8);b.setUint32(4,1936419184);this.i.append(a);this.l+=a.length}this.C.Ft()}}; g.k.getResponseHeader=function(a){return this.L?this.L.get(a):null}; g.k.pm=function(){return!!this.L}; g.k.Zn=function(){return this.l}; g.k.ys=function(){return+this.getResponseHeader("content-length")}; g.k.mx=function(){return 200<=this.status&&300>this.status&&!!this.l}; g.k.ea=function(){}; g.k.Xf=function(){if(this.U)return!!this.i.totalLength;if(!this.pm())return!1;var a=this.policy.u;if(a&&this.Y+a>Date.now())return!1;a=this.ys()||0;a=Math.max(16384,this.policy.i*a);this.X||(a=Math.max(a,16384));this.policy.Bf&&cx(this)&&(a=1);return this.i.totalLength>=a}; g.k.Th=function(){this.Xf();this.Y=Date.now();this.X=!0;var a=this.i;this.i=new uA;return a}; g.k.fg=function(){this.Xf();return this.i}; g.k.Ia=function(){return this.aborted}; g.k.abort=function(){this.ea();this.u&&this.u.cancel().catch(function(){}); this.B&&this.B.abort();this.aborted=!0}; g.k.Oq=function(){return!0}; g.k.jC=function(){return this.G}; g.k.Oe=function(){return this.errorMessage};g.v(RT,vT);g.k=RT.prototype; g.k.zr=function(){var a=soa(this.timing);a.shost=vy(this.l.Yg);a.rn=this.requestNumber.toString();this.u&&(a.rc=this.u.toString());a.itag=this.info.i[0].i.info.kc();a.ml=""+ +this.info.i[0].i.xe();a.sq=""+this.info.i[0].Ka;if(this.l){var b=this.l.Yg;uy(b);var c=decodeURIComponent(b.get("mn")||"").split(",");a.ifi=""+ +("/videoplayback"===b.path&&1a.Va&&JL(a,a.l));return a}; g.k.ex=function(a,b){if(!this.Ia()&&this.xhr){this.u=this.xhr.status;var c=this.Hp(),d=this.timing;a=QL(d,a);ML(d,a,b);50>a-d.B&&NL(d)&&3!==IL(d)||xoa(d,a,b);this.Eq()?xT(this,2):!c&&this.Hp()&&xT(this)}}; g.k.UB=function(){if(!this.Ia()&&this.xhr){if(!this.Y&&this.xhr.pm()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Y=((0,g.O)()-a)/1E3}this.xhr.pm()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Zm&&!Uva()&&lGa(!0);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.G=a||this.G;this.J=b||this.J}}; g.k.Ft=function(){var a=this.xhr;!this.Ia()&&a&&(this.U.stop(),this.u=a.status,a=Zva(this,a),5===a?QT(this):wT(this,a))}; g.k.canRetry=function(){this.Ia();var a=PT(this);return 100>a.timedOut&&a.i=.8*this.ma?(this.B++,this.ea(),b=5<=this.B):this.B=0):(b=this.timing,b.Jg&&OL(b,b.now()),a-=b.X,this.policy.rb&&01E3*b)&&this.ea());this.B&&this.callback&&this.callback(this,this.state);b?$va(this,!1):this.U.start()}}; g.k.dispose=function(){vT.prototype.dispose.call(this);this.U.dispose();this.policy.Ac||ST(this)}; g.k.XD=function(){if(!this.Ny().length)return[];this.L=!0;return xva(this.i)}; g.k.Eq=function(){return 1>this.state?!1:this.i&&this.i.Rd.length||this.xhr.Xf()?!0:!1}; g.k.Ny=function(){Wva(this,!1);return this.i?this.i.Rd:[]}; g.k.Zn=function(){return this.xhr.Zn()}; g.k.yA=function(){return this.Y}; g.k.ea=function(){}; g.k.WD=function(){this.xhr&&(this.G=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.G}; g.k.mG=function(){this.xhr&&(this.J=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.J}; var Qva=0,Xva=-1;TT.prototype.clear=function(){this.l=this.J=this.B=null;this.i=this.C=this.G=this.startTimeSecs=NaN;this.u=!1}; TT.prototype.ea=function(){};g.v(g.VT,g.P);g.k=g.VT.prototype; g.k.initialize=function(a,b,c){this.ea();a=a||0;this.W("videoformatchange",Pua(this.l));if(this.i.isManifestless){if(this.policy.Yi){b=py(this.policy);for(var d in this.i.i)this.i.i.hasOwnProperty(d)&&(this.i.i[d].index.l=b)}jwa(this)}this.C&&bwa(this.C,this.videoTrack.i);this.policy.Aa&&bx()&&this.La("streaming","ac."+!!window.AbortController,!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.i.isManifestless?d:a;this.U&&(iwa(this,this.videoTrack),iwa(this,this.audioTrack),bza(this.U)); c?(this.policy.Sb?(this.bb=c,aU(this,c)):aU(this,!1),g.mn(this.Xa)):(a=0===this.currentTime,WT(this,this.videoTrack,this.videoTrack.i,a),WT(this,this.audioTrack,this.audioTrack.i,a),g.wm(this.seek(this.currentTime),function(){}),this.timing.fb()); (this.i.Qd||this.i.Zf||this.i.G||this.i.C||this.i.J)&&this.La("minMaxSq","minSq."+this.i.Qd+";maxSq."+this.i.Zf+";minDvrTime."+this.i.G+";maxDvrTime."+this.i.C+";startWalltime."+this.i.J)}; g.k.resume=function(){if(this.isSuspended||this.va)this.ea(),this.Oa=this.va=this.isSuspended=!1,this.Vg()}; g.k.setAudioTrack=function(a){if(!this.Ia()){var b=this.l;b.l=b.C.i[a.id];b.J=b.l;a=new WS(b.J,b.i,"m");this.ea();this.W("audioformatchange",a);this.W("reattachrequired")}}; g.k.setPlaybackRate=function(a){a!==this.G.getPlaybackRate()&&this.G.setPlaybackRate(a)}; g.k.Vg=function(){dU(this);if(this.mediaSource&&GB(this.mediaSource)&&!this.mediaSource.Yf()){var a=BT(this.videoTrack);a=this.policy.yk&&a&&a.u;this.i.isManifestless&&this.i.L&&gC(this.i)?(this.J=gC(this.i),HB(this.mediaSource,this.J)):this.i.isLive&&!a?isNaN(this.J)?(this.J=this.currentTime+3600,HB(this.mediaSource,this.J)):this.J<=this.currentTime+1800&&(this.J=Math.max(this.J+1800,this.currentTime+3600),HB(this.mediaSource,this.J)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.J)||this.J!==a)&&0b&&c.l.pop();a.u.length?a.l=g.ab(g.ab(a.u).info.i):a.B.l.length?a.l=nT(a.B).info:a.l=BT(a);a.l&&b=c||cthis.u&&(this.u=c,g.Pb(this.i)||(this.i={},this.B.stop(),this.l.stop())),this.i[b]=a,g.mn(this.l))}}; lU.prototype.C=function(){for(var a=g.q(Object.keys(this.i)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.W;for(var d=this.u,e=this.i[c].match(ud),f=[],h=g.q(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="+kd(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=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.i.push({time:b+c,info:a});g.mn(this.l,c)};xU.prototype.get=function(a){a=yU(this,a);return-1!==a?this.values[a]:null}; xU.prototype.remove=function(a){a=yU(this,a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))}; xU.prototype.set=function(a,b){var c=yU(this,a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};g.v(AU,g.P);g.k=AU.prototype;g.k.oL=function(a){zU(this,"onecpt");a.initData&&lxa(this,new Uint8Array(a.initData),a.initDataType)}; g.k.DQ=function(a){zU(this,"onndky");lxa(this,a.initData,a.contentType)}; g.k.Lo=function(a){zU(this,"onneedkeyinfo");g.R(this.u.experiments,"html5_eme_loader_sync")&&(this.U.get(a.initData)||this.U.set(a.initData,a));BU(this,a)}; g.k.dF=function(a){this.B.push(a);CU(this)}; g.k.createSession=function(a){this.l.get(a.initData);this.va=!0;var b=new oU(this.videoData,this.u,a,this.drmSessionId);this.l.set(a.initData,b);b.subscribe("ctmp",this.MH,this);b.subscribe("hdentitled",this.ZH,this);b.subscribe("keystatuseschange",this.YD,this);b.subscribe("licenseerror",this.ZD,this);b.subscribe("newlicense",this.iI,this);b.subscribe("newsession",this.jI,this);b.subscribe("sessionready",this.wI,this);b.subscribe("fairplay_next_need_key_info",this.XH,this);Nwa(b,this.C)}; g.k.iI=function(a){this.Ia()||(this.ea(),zU(this,"onnelcswhb"),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.W("heartbeatparams",a)))}; g.k.jI=function(){this.Ia()||(this.ea(),zU(this,"newlcssn"),this.B.shift(),this.va=!1,CU(this))}; g.k.wI=function(){if(zC(this.i)&&(this.ea(),zU(this,"onsnrdy"),this.Oa--,0===this.Oa)){var a=this.X;a.element.msSetMediaKeys(a.u)}}; g.k.YD=function(a){this.Ia()||(!this.Ea&&this.videoData.Z("html5_log_drm_metrics_on_key_statuses")&&(pxa(this),this.Ea=!0),this.ea(),zU(this,"onksch"),oxa(this,Zwa(a,this.Aa)),this.W("keystatuseschange",a))}; g.k.ZH=function(){this.Ia()||this.xa||!BC(this.i)||(this.ea(),zU(this,"onhdet"),this.Ha=fAa,this.W("hdproberequired"),this.W("qualitychange"))}; g.k.MH=function(a,b){this.Ia()||this.W("ctmp",a,b)}; g.k.XH=function(a,b){this.Ia()||this.W("fairplay_next_need_key_info",a,b)}; g.k.ZD=function(a,b,c,d){this.Ia()||(this.videoData.Z("html5_log_drm_metrics_on_error")&&pxa(this),this.W("licenseerror",a,b,c,d))}; g.k.ra=function(){this.i.keySystemAccess&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.q(this.l.values),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.MH,this),b.unsubscribe("hdentitled",this.ZH,this),b.unsubscribe("keystatuseschange",this.YD,this),b.unsubscribe("licenseerror",this.ZD,this),b.unsubscribe("newlicense",this.iI,this),b.unsubscribe("newsession",this.jI,this),b.unsubscribe("sessionready",this.wI,this),b.unsubscribe("fairplay_next_need_key_info", this.XH,this),b.dispose();a=this.l;a.keys=[];a.values=[];g.P.prototype.ra.call(this)}; g.k.Db=function(){for(var a={systemInfo:this.i.Db(),sessions:[]},b=g.q(this.l.values),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Db());return a}; g.k.Pe=function(){return 0>=this.l.values.length?"no session":this.l.values[0].Pe()+(this.G?"/KR":"")}; g.k.ea=function(){};g.v(EU,g.P); EU.prototype.handleError=function(a,b){var c=this;txa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!HU(this,a.errorCode,a.details))&&!wxa(this,a,b))if(!this.i.Z("html5_disable_high_rep_fallback")&&uxa(a)&&this.videoData.u&&this.videoData.u.l)FU(this,a.errorCode,a.details),IU(this,"highrepfallback","1",{HC:!0}),!this.videoData.Z("html5_hr_logging_killswitch")&&/^hr/.test(this.videoData.clientPlaybackNonce)&&btoa&&IU(this,"afmts",btoa(this.videoData.adaptiveFormats), {HC:!0}),fja(this.videoData),this.W("highrepfallback");else if(a.i){b=this.l?this.l.l.u:null;if(uxa(a)&&b&&b.isLocked())var d="FORMAT_UNAVAILABLE";else if(!this.i.C&&"auth"===a.errorCode&&"429"===a.details.rc){d="TOO_MANY_REQUESTS";var e="6"}this.W("playererror",a.errorCode,d,g.zB(a.details),e)}else this.W("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),FU(this,a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+ "&t="+(0,g.O)(),(new NT(a,"manifest",function(f){c.ma=!0;IU(c,"pathprobe",f)},function(f){FU(c,f.errorCode,f.details)})).send())}; EU.prototype.ra=function(){this.u=this.l=null;g.P.prototype.ra.call(this)}; EU.prototype.ea=function(){};JU.prototype.setPlaybackRate=function(a){this.playbackRate=a}; JU.prototype.Z=function(a){return g.R(this.i.experiments,a)};g.v(MU,g.F);MU.prototype.Ec=function(a){Pxa(this);this.playerState=a.state;0<=this.u&&g.kH(a,16)&&this.seekCount++;a.state.isError()&&this.send()}; MU.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(PGa)?this.networkErrorCount++:this.nonNetworkErrorCount++)}; MU.prototype.send=function(){if(!(this.B||0>this.l)){Pxa(this);var a=g.OR(this.i)-this.l,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.T(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.T(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.T(this.playerState,16)||g.T(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.T(this.playerState,1)&&g.T(this.playerState, 4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.T(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.T(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.T(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");var d=bG(this.i.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"===d?c="LIVE_STREAM_MODE_LIVE":"dvr"===d&&(c="LIVE_STREAM_MODE_DVR");d=Qxa(this.i);var e=0>this.u?a:this.u-this.l;a=this.i.i.Ya+36E5<(0,g.O)();b={started:0<=this.u,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.$F(this.i.videoData),isGapless:this.i.videoData.Qa};!a&&this.i.Z("html5_health_to_gel")&&g.rs("html5PlayerHealthEvent",b);this.i.Z("html5_health_to_qoe")&&(b.muted=a,this.J(g.zB(b)));this.B=!0;this.dispose()}}; MU.prototype.ra=function(){this.B||this.send();g.F.prototype.ra.call(this)}; var PGa=/\bnet\b/;g.v(g.QU,g.F);g.k=g.QU.prototype;g.k.bO=function(){var a=g.OR(this.i);RU(this,a)}; g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.Ia()&&(a=0<=a?a:g.OR(this.i),-1<["PL","B","S"].indexOf(this.jd)&&(!g.Pb(this.l)||a>=this.B+30)&&(g.PU(this,a,"vps",[this.jd]),this.B=a),!g.Pb(this.l))){7E3===this.sequenceNumber&&g.Pu(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){SU(this,a);var b=a,c=this.i.l.Ms(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.Xa,h=e&&!this.eb;if(d>c.totalVideoFrames||5E3=this.playTimeSecs&&(this.i.l.zt(),this.l.qoealert=["1"],this.Ea=!0)}"B"!==a||"PL"!==this.jd&&"PB"!==this.jd||(this.ma=!0);this.B=c}"PL"===this.jd&&("B"=== a||"S"===a)||this.i.videoData.rb?SU(this,c):RU(this,c);"PL"===a&&g.mn(this.vb);g.PU(this,c,"vps",[a]);this.jd=a;this.B=this.Oa=c;this.Y=!0}a=b.getData();g.T(b,128)&&a&&Wxa(this,c,a.errorCode,a.XI);(g.T(b,2)||g.T(b,128))&&this.reportStats(c);b.uc()&&!this.C&&(0<=this.u&&(this.l.user_intent=[this.u.toString()]),this.C=!0);TU(this)}; g.k.Ji=ba(15);g.k.getPlayerState=function(a){if(g.T(a,128))return"ER";if(g.T(a,512))return"SU";if(g.T(a,16)||g.T(a,32))return"S";var b=QGa[$I(a)];g.LD(this.i.i)&&"B"===b&&3===this.i.l.getVisibilityState()&&(b="SU");"B"===b&&g.T(a,4)&&(b="PB");return b}; g.k.ra=function(){g.F.prototype.ra.call(this);window.clearInterval(this.Qa)}; g.k.La=function(a,b,c){var d=this.l.ctmp||[],e=-1!==this.zb.indexOf(a);e||this.zb.push(a);if(!c||!e){/[^a-zA-Z0-9;.!_-]/.test(b)&&(b=b.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));if(!c&&!/^t[.]/.test(b)){var f=1E3*g.OR(this.i);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.l.ctmp=d;TU(this);return f}}; var l1={},QGa=(l1[5]="N",l1[-1]="N",l1[3]="B",l1[0]="EN",l1[2]="PA",l1[1]="PL",l1);Zxa.prototype.update=function(){if(this.L){var a=this.l.l.getCurrentTime()||0,b=g.OR(this.l);if(a!==this.i||cya(this,a,b)){var c;if(!(c=ab-this.lastUpdateTime+2||cya(this,a,b))){var d=this.l.Qe();c=d.volume;var e=c!==this.Y;d=d.muted;d!==this.U?(this.U=d,c=!0):(!e||0<=this.C||(this.Y=c,this.C=b),c=b-this.C,0<=this.C&&2=this.i.videoData.vb;a&&(this.B&&this.i.videoData.vb&&(a=cV(this,"delayplay"),a.xc=!0,a.send(),this.Y=!0),fya(this))}; g.k.Ec=function(a){this.Ia()||(g.T(a.state,2)?(this.currentPlayerState="paused",g.kH(a,2)&&this.B&&fV(this).send()):g.T(a.state,8)?(this.currentPlayerState="playing",this.B&&isNaN(this.u)&&dV(this,!1)):this.currentPlayerState="paused")}; g.k.ra=function(){g.F.prototype.ra.call(this);g.tp(this.u);this.u=NaN;aya(this.l)}; g.k.Db=function(){return $U(cV(this,"playback"))}; g.k.dh=function(a){var b=cV(this,"engage");b.L=a;return dya(b,mya(this.i))};lya.prototype.isEmpty=function(){return this.endTime===this.startTime};gV.prototype.Z=function(a){return g.R(this.i.experiments,a)}; var nya={other:1,none:2,wifi:3,cellular:7};g.v(g.hV,g.F);g.k=g.hV.prototype;g.k.Ec=function(a){var b;if(g.kH(a,1024)||g.kH(a,512)||g.kH(a,4)){if(this.u){var c=this.u;0<=c.u||(c.l=-1,c.delay.stop())}this.qoe&&(c=this.qoe,c.C||(c.u=-1))}this.l.videoData.enableServerStitchedDai&&this.Ef?null===(b=this.B.get(this.Ef))||void 0===b?void 0:b.Ec(a):this.i&&this.i.Ec(a);this.qoe&&this.qoe.Ec(a);this.u&&this.u.Ec(a)}; g.k.Rc=function(){var a;this.l.videoData.enableServerStitchedDai&&this.Ef?null===(a=this.B.get(this.Ef))||void 0===a?void 0:a.Rc():this.i&&this.i.Rc()}; g.k.onError=function(a,b){if(this.qoe)this.qoe.onError(a,b);if(this.u)this.u.onError(a)}; g.k.La=function(a,b,c){this.qoe&&this.qoe.La(a,b,c)}; g.k.Ji=ba(14);g.k.Db=function(){var a;if(this.l.videoData.enableServerStitchedDai&&this.Ef)null===(a=this.B.get(this.Ef))||void 0===a?void 0:a.Db();else if(this.i)return this.i.Db();return{}}; g.k.dh=function(a){return this.i?this.i.dh(a):function(){}};g.v(iV,g.F);g.k=iV.prototype;g.k.Bd=function(a){this.qk();var b=this.i;if(1b.i.length)b.i=b.i.concat(a),b.i.sort(b.l);else{a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.i.length||0a&&this.B.start()))}; g.k.nA=function(a){var b=[];if(!a.length)return b;for(var c=0;ca&&(a=(a-this.u)/this.X(),this.B.start(a)))}}; g.k.UG=function(){if(this.started&&!this.Ia()){this.B.stop();var a=this.J();g.T(a,32)&&this.U.start();for(var b=g.T(this.J(),2)?0x8000000000000:1E3*this.Y(),c=g.T(a,2),d=[],e=[],f=g.q(this.l),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.sA(e));f=e=null;c?(a=xya(this.i,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=yya(this.i)):a=this.u<=b&&YI(a)?wya(this.i,this.u,b):xya(this.i,b); d=d.concat(this.nA(a));e&&(d=d.concat(this.sA(e)));f&&(d=d.concat(this.nA(f)));this.u=b;Bya(this,d)}}; g.k.ra=function(){this.l=[];this.i.i=[];g.F.prototype.ra.call(this)}; g.HR.nw(iV,{Bd:"crmacr",nA:"crmncr",sA:"crmxcr",UG:"crmis",Lf:"crmrcr"});g.v(mV,g.P);mV.prototype.ea=function(){};g.v(sV,g.F);sV.prototype.Ec=function(a){this.playerState=a.state}; sV.prototype.U=function(){var a=this;if(this.B&&!this.playerState.isError()){var b=this.B,c=b.getCurrentTime(),d=8===this.playerState.state&&c>this.i,e=Yka(this.playerState),f=this.visibility.isBackground()||this.playerState.isSuspended();tV(this,this.Fa,e&&!f,d,"qoe.slowseek",function(){},"timeout"); e=e&&isFinite(this.i)&&0c-this.J;f=this.videoData.isAd()&&d&&!e&&f;tV(this,this.Ha,f,!f,"ad.rebuftimeout",function(){return a.W("skipslowad")},"skip_slow_ad"); this.J=c;this.C.start()}}; sV.prototype.wd=function(a,b,c){b=this.Db(b);b.wn=c;b.wdup=this.G[a]?"1":"0";this.W("qoeerror",a,b);this.G[a]=!0}; sV.prototype.Db=function(a){a=a.Db();this.i&&(a.stt=this.i.toFixed(3));this.l&&Object.assign(a,this.l.Db());this.B&&Object.assign(a,this.B.Db());return a}; qV.prototype.reset=function(){this.i=this.triggerTimestamp=this.l=this.startTimestamp=0;this.u=!1}; qV.prototype.Db=function(){var a={},b=(0,g.O)();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.v(vV,g.P);g.k=vV.prototype;g.k.Ri=function(a){xV(this);this.videoData=a;this.U=this.u=null;this.C=this.Qa=this.timestampOffset=0;this.Ha=!0;this.L.dispose();a=this.L=new sV(this.Y,this.videoData,(0,g.C)(this.W,this),this.visibility,this.Ya);var b=this.i;(a.B=b)&&g.mn(a.C);this.L.l=this.B}; g.k.Ec=function(a){this.L.Ec(a);this.Z("html5_exponential_memory_for_sticky")&&(a.state.uc()?g.mn(this.xa):this.xa.stop());var b;if(b=this.i)b=8===a.Fm.state&&YI(a.state)&&g.ZI(a.state)&&this.policy.u;if(b){a=this.i.getCurrentTime();b=this.i.Sf();var c=this.Z("manifestless_post_live_ufph")||this.Z("manifestless_post_live")?rB(b,Math.max(a-3.5,0)):rB(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.bb-c)||(this.W("ctmp","seekover","b."+qB(b, "_")+";cmt."+a),this.bb=c,this.seekTo(c,{Qs:!0,ge:"playbacktimeline_postLiveDisc"})))}}; g.k.getCurrentTime=function(){return!isNaN(this.l)&&isFinite(this.l)?this.l:this.i&&Vya(this)?this.i.getCurrentTime()+this.timestampOffset:this.C||0}; g.k.Ok=function(){return this.getCurrentTime()-this.Kc()}; g.k.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return pV(this.u,a)}; g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.RJ?!1:c.RJ;var d=void 0===c.SJ?0:c.SJ,e=void 0===c.Qs?!1:c.Qs,f=void 0===c.UC?0:c.UC;c=void 0===c.ge?null:c.ge;var h=a,l=!isFinite(h)||(this.u?pV(this.u,h):h>=wV(this))||!g.eG(this.videoData);l||this.W("ctmp","seeknotallowed",h+";"+wV(this));if(!l)return this.G&&(this.G=null,DV(this)),om(this.getCurrentTime());this.ea();if(.005>Math.abs(a-this.l)&&this.ma)return this.ea(),this.J;c&&(h=a,(g.TF(this.videoData)||this.Z("html5_log_seek_reasons"))&& this.W("ctmp","seekreason","reason."+c+";tgt."+h));this.ma&&xV(this);this.J||(this.J=new FR);a&&!isFinite(a)&&zV(this,!1);c=a;(CV(this)&&!(this.i&&0>31)}this.i.fH&&RP(a,16,this.i.fH);this.i.viewportHeight&&this.i.viewportWidth&&(RP(a,18,this.i.viewportWidth),RP(a,19,this.i.viewportHeight));this.i.xJ&&RP(a,21,this.i.xJ);this.i.kF&&RP(a,23,this.i.kF);void 0!==this.i.visibilityState&&RP(a,34,this.i.visibilityState);void 0!==this.i.EJ&&RP(a,39,this.i.EJ)};g.v(PV,KV);PV.prototype.l=function(a){SP(a,2,this.hA);SP(a,5,this.encryptedClientKey);SP(a,6,this.iv);SP(a,7,this.hmac);RP(a,10,this.serializeResponseAsJson?1:0)};g.v(QV,KV);QV.prototype.l=function(a){pra(a);this.Sz.l(a);qra(a);SP(a,3,LV(this.iA));null!=this.onesieUstreamerConfig&&SP(a,4,this.onesieUstreamerConfig)};vza.prototype.feed=function(a){wA(this.i,a);wza(this)};var o1={init:"0-1",index:"2-3",clen:"",url:"",sp:"",s:"",lmt:""},zza=[Object.assign({itag:"137",bitrate:"4000000",size:"1920x1080",fps:"30",type:'video/mp4; codecs="avc1.4d401e"'},o1),Object.assign({itag:"248",bitrate:"2000000",fps:"30",size:"1920x1080",type:'video/webm; codecs="vp9"'},o1),Object.assign({itag:"399",bitrate:"1000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="av01.0.08M.08"'},o1),Object.assign({itag:"299",bitrate:"5000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="avc1.64001e"'}, o1),Object.assign({itag:"303",bitrate:"3000000",fps:"60",size:"1920x1080",type:'video/webm; codecs="vp9"'},o1),Object.assign({itag:"140",type:'audio/mp4; codecs="mp4a.40.2"'},o1),Object.assign({itag:"251",audio_sample_rate:"48000",type:'audio/webm; codecs="opus"'},o1)],p1={},xza=(p1["137"]=["136","135","134","133"],p1["248"]=["247","244","243","242"],p1["399"]=["398","397","396","395"],p1["299"]="298 137 136 135 134 133".split(" "),p1["303"]="302 248 247 244 243 242".split(" "),p1["140"]=[],p1["251"]= [],p1),q1={},Gza=(q1["133"]=22639,q1["134"]=45778,q1["135"]=73749,q1["136"]=153645,q1["137"]=332697,q1["242"]=22702,q1["243"]=42954,q1["244"]=73575,q1["247"]=139201,q1["248"]=259369,q1["298"]=260272,q1["299"]=589187,q1["302"]=295858,q1["303"]=528496,q1["395"]=18457,q1["396"]=37231,q1["397"]=65872,q1["398"]=133087,q1["399"]=236318,q1),Hza=["1","9","h"];g.k=Bza.prototype;g.k.TB=function(a,b){var c;null===(c=this.jn)||void 0===c?void 0:(c.Sd[a].hs=b,c.ea())}; g.k.La=function(a,b,c){this.videoData.La(a,b,c)}; g.k.fetch=function(){return g.D(this,function b(){var c=this,d,e,f,h,l,m,n,p,r,t,u;return g.z(b,function(x){switch(x.i){case 1:c.ea();c.u.start();c.rj.tick("ogpd");var y=c.playerRequest,A=c.i,E=c.videoData,I=A.df;I="https://youtubei.googleapis.com/youtubei/"+I.innertubeApiVersion+"/player?key="+I.innertubeApiKey;var H=[new MV({name:"Content-Type",value:"application/json"})],U=E.Re();U&&H.push(new MV({name:"Authorization",value:"Bearer "+U}));H.push(new MV({name:"User-Agent",value:g.Uc}));(E=E.visitorData|| Po("VISITOR_DATA"))&&H.push(new MV({name:"X-Goog-Visitor-Id",value:E}));(A=g.wC(A.experiments,"debug_sherlog_username"))&&H.push(new MV({name:"X-Youtube-Sherlog-Username",value:A}));y=JSON.stringify(y);e=new NV({url:I,httpHeaders:H,postBody:y});ta(x,2);return g.w(x,tza(e,c.FI,c.i,c.L,c.visibilityState,c.B.onesieUstreamerConfig),4);case 4:d=x.l;ua(x,3);break;case 2:return f=va(x),c.ea(),f instanceof g.yB?JV(c,f):(h=new g.yB("onesie.request",!1),JV(c,h)),x.return(c.l);case 3:return c.rj.tick("osor"), l=Toa(c.i),m=LV(d),g.Bq()&&(m=new Uint8Array(m.buffer.slice(0,m.length))),n={method:"POST",body:m,headers:{"Content-Type":"text/plain"}},g.w(x,Eza(c),5);case 5:p=x.l;y=c.videoData;b:{if((E=y.T().hf)&&(U=g.wC(y.T().experiments,"debug_bandaid_hostname")||(null===(H=mGa())||void 0===H?void 0:H.primary))&&E.baseUrl){H=new sy("https://"+U+E.baseUrl);if(E=null===(A=y.uo)||void 0===A?void 0:A.urlQueryOverride)for(A=By(E),A=g.q(Object.entries(A)),E=A.next();!E.done;E=A.next())U=g.q(E.value),E=U.next().value, U=U.next().value,H.set(E,U);if(!H.get("id")){E=QC(y.videoId);A=[];if(E)for(E=g.q(E),U=E.next();!U.done;U=E.next())A.push(U.value.toString(16).padStart(2,"0"));A=A.join("");if(!A){H=void 0;break b}H.set("id",A)}break b}H=void 0}!H&&(null===(I=y.uo)||void 0===I?0:I.url)&&(H=new sy(y.uo.url));H?(H.set("ack","1"),H.set("cpn",y.clientPlaybackNonce),H.set("opr","1"),H.set("pvi","135"),H.set("pai","140"),H.set("oaad","0"),H.set("oavd","0"),p?(y=p.audio,H.set("pvi",p.video.join(",")),H.set("pai",y.join(",")), bx()||H.set("osh","1")):(H.set("oad","0"),H.set("ovd","0")),y=ty(H)):y="";r=y;if(!r)return c.ea(),t={url:"0"},u=new g.yB("onesie.unavailable.hotconfig",!1,t),JV(c,u),x.return(c.l);c.rj.tick("ocs");c.ea();c.Tk&&c.La("ombrs","1",!0);bx()?c.xhr=new OT(r,l,c,n):c.xhr=new RL(r,c,n);return x.return(c.l)}})})}; g.k.UB=function(){}; g.k.ex=function(){Fza(this)}; g.k.Ft=function(){this.ea();Fza(this);var a=this.xhr;if(a.Oe()){var b={msg:a.Oe()};b=new g.yB("onesie.net",!1,b)}else 400<=a.status?b=new g.yB("onesie.net.badstatus",!1):a.mx()?this.C||(b=new g.yB("onesie.response.noplayerresponse",!1)):b=new g.yB(204===a.status?"onesie.net.nocontent":"onesie.net.connect",!1);b?JV(this,b):this.rj.tick("orf");this.Tk&&this.La("ombre","ok."+ +!!b,!0);this.J.J=!0}; g.k.dO=function(){this.ea();JV(this,new g.yB("onesie.request",!1,{timeout:"1"}))}; g.k.ea=function(){};g.v(g.VV,g.P);g.k=g.VV.prototype;g.k.ra=function(){this.ea();this.fJ();this.Sb.stop();window.clearInterval(this.Ib);Ita(this.Ae);this.visibility.unsubscribe("visibilitystatechange",this.Ae);$V(this);XV(this);g.pq(this.Ea);this.jg();this.U=null;g.ui(this.videoData);g.ui(this.G);g.vi(this.cg);this.xa=null;this.Qa=!1;this.eb=0;g.P.prototype.ra.call(this)}; g.k.Ri=function(a,b,c){c=void 0===c?!0:c;this.ea();this.ma.length=0;this.Va=null;this.va.reset();this.Aa.reset();this.rb=!1;this.bf=0;this.Tc=!0;this.vb=null;this.i&&this.i.stopVideo();YV(this);$V(this);XV(this);g.pq(this.Ea);this.Xb.clear();g.ui(this.videoData);g.ui(this.G);if(2===this.playerType||this.u.yj)a.hK=!0;var d=LE(a.Tc,a.qp,this.u.l,this.u.u);d&&(a.adFormat=d);2===this.playerType&&(a.bk=!0);if(this.isFullscreen()||this.u.l)d=kGa(),a.autonavState=d||(this.u.l?2:this.videoData.autonavState); this.Gc=c;this.videoData=a;this.videoData.subscribe("dataupdated",this.cS,this);this.videoData.subscribe("dataloaded",this.Pz,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.La,this);Zza(this,a);Uza(this,b);Vza(this);this.Qa=!1;this.eb=0;cW(this,"newdata");this.Nb(new g.RI);this.B.Ri(this.videoData);if(eja(a)||this.Z("embeds_enable_playability_on_web_preview")&&a.Eo&&!["OK"].includes(a.Eo.status))a=this.videoData.errorDetail,this.Z("embeds_enable_playability_on_web_preview")? this.zf("auth",unescape(this.videoData.errorReason),a,a,this.videoData.Gh||void 0):(b=this.videoData.cj,this.zf("auth",unescape(b.reason),a,a,b.subreason||void 0));1===this.playerType&&K0.isActive()&&this.Sb.start()}; g.k.getVideoData=function(){return this.videoData}; g.k.T=function(){return this.u}; g.k.rd=function(){return this.i}; g.k.Pz=function(){if(this.videoData.isLoaded()){var a=this.G;0=a.start);return a}; g.k.uc=function(){return this.playerState.uc()}; g.k.getPlayerState=function(){return this.playerState}; g.k.getPlayerType=function(){return this.playerType}; g.k.getPreferredQuality=function(){if(this.U){var a=this.U;a=a.videoData.lp.compose(a.videoData.aG);a=kx(a)}else a="auto";return a}; g.k.Gs=ba(9);g.k.isGapless=function(){return!!this.i&&this.i.isView()}; g.k.jg=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.ea();if(this.i){var c=this.getCurrentTime();0this.i.getCurrentTime()&&this.l)return;break;case "resize":uAa(this);this.videoData.l&&"auto"===this.videoData.l.fb().quality&& this.W("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.cf&&g.T(this.playerState,8)&&!g.T(this.playerState,1024)&&0===this.getCurrentTime()&&g.Gs){eW(this,"safari_autoplay_disabled");return}}if(this.i&&this.i.lf()===b){this.W("videoelementevent",a);b=this.playerState;if(!g.T(b,128)){c=this.qb;e=this.i;var f=this.u.experiments;d=b.state;e=e?e:a.target;var h=e.getCurrentTime();if(!g.T(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.Pj()||1Math.abs(h-e.getDuration()); h="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.T(b,4)&&!jV(c,h);if("pause"===a.type&&e.Pj()||l&&h)0a-this.Bb))this.Bb=a,b!==this.rf()&&(a=this.visibility,a.i!==b&&(a.i=b,a.Ae()),this.La("airplay","rbld_"+b),ZV(this)),this.W("airplayactivechange")}; g.k.Ub=function(a){var b=this;a=void 0===a?!1:a;if(this.i&&this.videoData){Rya(this.B,this.uc());var c=this.getCurrentTime();this.l&&(g.T(this.playerState,4)&&g.eG(this.videoData)||wwa(this.l,c));5Math.abs(l-f)?(b.La("setended","ct."+f+";bh."+h+";dur."+l+";live."+ +m),m&&b.Z("html5_set_ended_in_pfx_live_cfl")||(b.i.Ju()?(b.ea(),b.seekTo(0,{ge:"videoplayer_loop"})):PR(b))):(g.ZI(b.playerState)||tW(b,"progress_fix"),b.Nb(TI(b.playerState,1)))):(l&&!m&&!n&&0m-1&&b.La("misspg", "t:"+f.toFixed(2)+";d:"+m.toFixed(2)+";r:"+l.toFixed(2)+";bh:"+h.toFixed(2))),g.T(b.playerState,4)&&g.ZI(b.playerState)&&5jH(b,8)||g.kH(b,1024))&&this.Oa.stop();!g.kH(b,8)||this.videoData.Xa||g.T(b.state,1024)||this.Oa.start();g.T(b.state,8)&&0>jH(b,16)&&!g.T(b.state,32)&&!g.T(b.state,2)&&this.playVideo();g.T(b.state,2)&&fG(this.videoData)&&(a=this.getCurrentTime(),this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,cW(this)),this.Ub(!0));g.kH(b,2)&&this.vC(!0);g.kH(b,128)&&this.ll();this.videoData.i&&this.videoData.isLivePlayback&&!this.Jf&& (0>jH(b,8)?(a=this.videoData.i,a.B&&a.B.stop()):g.kH(b,8)&&this.videoData.i.resume());this.B.Ec(b);this.C.Ec(b);if(c&&!this.Ia())try{for(var e=g.q(this.Mb),f=e.next();!f.done;f=e.next()){var h=f.value;this.X.Ec(h);this.W("statechange",h)}}finally{this.Mb.length=0}}}; g.k.zt=function(){this.videoData.isLivePlayback||this.W("connectionissue")}; g.k.RB=function(){this.L.tick("qoes")}; g.k.uL=function(a,b,c,d){a:{var e=this.G;d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"===a&&this.J&&1e.Y)a="drm.sessionlimitexhausted",b=!1;else if(e.videoData.Z("html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"===a&&2>e.X&&(e.X++,e.W("removedrmplaybackmanager"),1=e.l.values.length){var f="ns;";e.Y||(f+="nr;");e=f+="ql."+e.B.length}else e=$wa(e.l.values[0]);d.drmp=e}Object.assign(c,(null===(a=this.l)||void 0===a?void 0:a.Db())||{});Object.assign(c,(null===(b=this.i)||void 0===b?void 0:b.Db())||{})}this.C.onError("qoe.start15s",g.zB(c));this.W("loadsofttimeout")}}; g.k.HR=function(){g.T(this.playerState,128)||this.mediaSource&&IB(this.mediaSource)||(this.C.onError("qoe.restart",g.zB({detail:"bufferattach"})),this.If++,WV(this))}; g.k.vC=function(a){var b=this;a=void 0===a?!1:a;if(!this.Qa){Xw("att_s","player_att")||Yw("att_s","player_att");var c=new g.coa(this.videoData);if("c1a"in c.i&&!mL.Pd()&&(Yw("att_wb","player_att"),2===this.eb&&.01>Math.random()&&g.Pu(Error("Botguard not available after 2 attempts")),!a&&5>this.eb)){g.mn(this.Ac);this.eb++;return}if("c1b"in c.i){var d=rya(this.C);d&&g.foa(c).then(function(e){e&&!b.Qa&&d?(Yw("att_f","player_att"),d(e),b.Qa=!0):Yw("att_e","player_att")},function(){Yw("att_e","player_att")})}else(a= doa(c))?(Yw("att_f","player_att"),qya(this.C,a),this.Qa=!0):Yw("att_e","player_att")}}; g.k.getMinSeekableTime=function(){return this.B.getMinSeekableTime()}; g.k.Kc=function(){return this.B?this.B.Kc():0}; g.k.getStreamTimeOffset=function(){return this.B?this.B.getStreamTimeOffset():0}; g.k.setPlaybackRate=function(a){var b=this.videoData.u&&this.videoData.u.videoInfos&&32this.L.startTimeMs||this.l.seekTo(.001*this.L.startTimeMs,{ge:"application_loopRangeStart"}))}; g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=KAa(this,a),this.l.getPlaybackRate()!==a&&(this.l.setPlaybackRate(a),b&&!this.i.l&&jGa(a),this.Ua.Na("onPlaybackRateChange",a)))}; g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return g.BL(this.G).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.W(this):g.W(this,a);if(!a)return 0;if(b){if(c&&this.C&&(b=this.C.Va/1E3,0!==b))return b;b=EW(this,a);return PW(this,b.getCurrentTime(),b)}c&&this.C?(b=a.getCurrentTime(),b=(c=Qta(this.C,1E3*b))?b-c.start/1E3:b):b=a.getCurrentTime();return b}; g.k.hq=function(){var a=g.W(this,void 0);if(!a)return 0;a=EW(this,a);return PW(this,a.hq(),a)}; g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.W(this):g.W(this,a);if(!a)return 0;if(b)return b=DW(this,a),PW(this,b.getDuration(),b);c&&this.C?(b=a.getCurrentTime(),b=(b=YR(this.C,1E3*b))?b.durationMs/1E3:0):b=a.getDuration();return b}; g.k.getMinSeekableTime=function(a){a=g.W(this,a);if(!a)return 0;a=DW(this,a);return PW(this,a.getMinSeekableTime(),a)}; g.k.getIngestionTime=function(a){var b=g.W(this,a);return b?this.Id(b)?(b=DW(this,b),b.getIngestionTime()-b.getCurrentTime()+this.getCurrentTime(a)):b.getIngestionTime():0}; g.k.dA=function(){this.template.dA();var a=this.I;a.element=this.template.element;var b=a.element,c;for(c in a.l)a.l.hasOwnProperty(c)&&(b[c]=a.l[c]);(a=fu(this.template.element))&&this.events.N(this.template,a,this.eQ);this.events.N(window,"resize",this.nR)}; g.k.getDebugText=function(a){var b=this.l.Db(a);if(this.u&&this.u!==this.l){for(var c=this.u.Db(a),d=g.q(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b["ad"+e]=c[e];if(a){c=b;d={};if(e=pe("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.se("video-ads");f?(pBa(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.se("videoAdUiSkipContainer"),l=g.se("ytp-ad-skip-button-container"),m=h||l;m?(pBa(m,f),f.ima=h?1:0,f.bulleit=l?1:0):f.missing=1;d=JSON.stringify({player:d, videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.B&&(b["0sz"]=0===ke(this.B.Ep()),b.op=this.B.Ks("opacity"),c=this.B.em().y+this.B.Ep().height,b.yof=0>=c,b.dis=this.B.Ks("display"));(a=a?(0,g.VU)():null)&&(b.gpu=a);b.cgr=!0;b.debug_playbackQuality=this.Ua.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.T().experiments.experimentIds.join(", ")},b=this.ub().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.Y?1:wW(this)?3:a&&(null===(b=this.C)||void 0===b?0:b.isAdPlaying(this.getCurrentTime()))?2:g.W(this).getPlayerType()}; g.k.ub=function(a){return 3===this.getPresentingPlayerType()?g.BL(this.G).jd:g.W(this,a).getPlayerState()}; g.k.getAppState=function(){return this.Y}; g.k.DL=function(a){switch(a.type){case "loadedmetadata":Xw("fvb",this.J.timerName)||this.J.tick("fvb");Yw("fvb","video_to_ad");this.eb.start();break;case "loadstart":Xw("gv",this.J.timerName)||this.J.tick("gv");Yw("gv","video_to_ad");break;case "progress":case "timeupdate":!Xw("l2s",this.J.timerName)&&2<=uB(a.target.Sf())&&this.J.tick("l2s");break;case "playing":g.dE&&this.eb.start();if(g.LD(this.i))a=!1;else{var b=g.DL(this.sb());a="none"===this.B.Ks("display")||0===ke(this.B.Ep());var c=AS(this.template), d=this.u.getVideoData(),e=g.CD(this.i)||g.ED(this.i);d=PF(d);b=!c||b||e||d||this.i.vb;a=a&&!b}a&&(this.u.La("hidden","1",!0),this.getVideoData().eb||(this.Z("html5_new_elem_on_hidden")?(this.getVideoData().eb=1,this.hI(null),this.u.playVideo()):AW(this,"hidden",!0)))}}; g.k.oQ=function(a,b){this.Ua.Na("onLoadProgress",b)}; g.k.IR=function(){this.Ua.W("playbackstalledatstart")}; g.k.FL=function(a,b){a=EW(this,a);b=PW(this,a.getCurrentTime(),a);this.Ua.Na("onVideoProgress",b)}; g.k.aQ=function(){this.Ua.Na("onDompaused")}; g.k.ZQ=function(){this.Ua.W("progresssync")}; g.k.AP=function(a){if(1===this.getPresentingPlayerType()){g.kH(a,1)&&!g.T(a.state,64)&&FW(this).isLivePlayback&&this.l.isAtLiveHead()&&1Math.random()&&g.rs("autoplayTriggered",{intentional:this.xc});this.Gc=!1;this.Ua.Na("onPlaybackStartExternal");g.R(this.i.experiments,"mweb_client_log_screen_associated");(function(){var c=g.Du(a.Tc||(a.Ee()?3:0));if(c){var d={cpn:a.getVideoData().clientPlaybackNonce,csn:c};if(g.R(a.i.experiments, "web_playback_associated_ve")&&a.getVideoData().Ea){var e=g.xu(a.getVideoData().Ea);g.Xu(c,e,void 0);d.playbackVe=e.getAsJson()}g.R(a.i.experiments,"kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(d.queueInfo=a.getVideoData().queueInfo);c={};a.Z("web_playback_associated_log_ctt")&&a.getVideoData().Va&&(c.Ce={token:a.getVideoData().Va,videoId:a.getVideoData().videoId});g.rs("playbackAssociated",d,c)}})(); Rw("player_att",["att_f","att_e"]);if(this.Z("web_player_inline_botguard")){var b=this.getVideoData().botguardData;b&&(this.Z("web_player_botguard_inline_skip_config_killswitch")&&(Oo("BG_I",b.interpreterScript),Oo("BG_IU",b.interpreterUrl),Oo("BG_P",b.program)),g.XD(this.i)?kq(nq(),function(){MW(a)}):MW(this))}this.yx()}; g.k.BL=function(){this.Ua.W("internalAbandon");this.Z("html5_ad_module_cleanup_killswitch")||QW(this)}; g.k.SH=function(a){a=a.i;if(!isNaN(a)&&0window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.B.gs())}; g.k.nQ=function(a){3!==this.getPresentingPlayerType()&&this.Ua.W("liveviewshift",a)}; g.k.playVideo=function(a){this.ea();if(a=g.W(this,a))2===this.Y?LW(this):(null!=this.U&&this.U.wb&&this.U.start(),g.T(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())}; g.k.pauseVideo=function(a){(a=g.W(this,a))&&a.pauseVideo()}; g.k.stopVideo=function(){this.ea();var a=this.l.getVideoData(),b=new g.DF(this.i,{video_id:a.iz||a.videoId,oauth_token:a.oauthToken});b.Bb=g.Tb(a.Bb);this.cancelPlayback(6);VW(this,b,1);null!=this.U&&this.U.stop()}; g.k.cancelPlayback=function(a,b){this.ea();gs(this.Aa);this.Aa=0;var c=g.W(this,b);c?1===this.Y||2===this.Y?this.ea():(c===this.u&&(this.ea(),pM(this.G,a)),1===b&&(g.R(this.i.experiments,"html5_stop_video_in_cancel_playback")&&c.stopVideo(),QW(this)),c.ll(),yW(this,"cuerangesremoved",c.Zl()),c.X.reset(),this.Ea&&c.isGapless()&&(c.jg(!0),IR(c,this.B))):this.ea()}; g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.W(this,b))&&this.i.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()}; g.k.dh=function(a){var b=g.W(this,void 0);return b&&this.i.enabledEngageTypes.has(a.toString())?b.dh(a):null}; g.k.updatePlaylist=function(){UD(this.i)?IW(this):g.tD(this.i)&&JW(this);this.Ua.Na("onPlaylistUpdate")}; g.k.setSizeStyle=function(a,b){this.Xc=a;this.Ib=b;this.Ua.W("sizestylechange",a,b);this.template.resize()}; g.k.isWidescreen=function(){return this.Ib}; g.k.Ee=function(){return this.visibility.Ee()}; g.k.isInline=function(){return this.visibility.isInline()}; g.k.oq=function(){return this.visibility.oq()}; g.k.mq=function(){return this.visibility.mq()}; g.k.fB=function(){return this.Xc}; g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return g.BL(this.G).getAdState();if(!this.Id()){var a=qM(this.sb());if(a)return a.getAdState()}return-1}; g.k.mR=function(a){var b=this.template.getVideoContentRect();ag(this.Ac,b)||(this.Ac=b,this.u&&gW(this.u),this.l&&this.l!==this.u&&gW(this.l),1===this.visibility.fullscreen&&this.Oa&&lBa(this,!0));this.Lb&&g.je(this.Lb,a)||(this.Ua.W("appresize",a),this.Lb=a)}; g.k.Se=function(){return this.Ua.Se()}; g.k.ER=function(){2===this.getPresentingPlayerType()&&this.X.isManifestless()&&!this.Z("web_player_manifestless_ad_signature_expiration_killswitch")?fua(this.X):(this.C&&aS(this.C),AW(this,"signature",void 0,!0))}; g.k.hI=function(){this.jg();xW(this)}; g.k.lR=function(a){KR(a,this.B.Ku())}; g.k.FQ=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Ua.Na("onPlayerRequestAuthFailed")}; g.k.zt=function(){this.Ua.Na("CONNECTION_ISSUE")}; g.k.AL=function(a){this.Ua.W("heartbeatparams",a)}; g.k.tx=function(a){this.Ua.Na("onAutonavChangeRequest",1!==a)}; g.k.rd=function(){return this.B}; g.k.setBlackout=function(a){this.i.vb=a;this.u&&(this.u.np(),this.i.X&&oBa(this))}; g.k.setAccountLinkState=function(a){var b=g.W(this);b&&(b.getVideoData().xE=a,b.np())}; g.k.updateAccountLinkingConfig=function(a){var b=g.W(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Ua.W("videodatachange","dataupdated",c,b.getPlayerType())}}; g.k.HQ=function(){var a=g.W(this);if(a){var b=!this.Ua.Ys();(a.Tc=b)||a.Oa.stop();if(a.videoData.i)if(b)a.videoData.i.resume();else{var c=a.videoData.i;c.B&&c.B.stop()}g.R(a.u.experiments,"html5_suspend_loader")&&a.l&&(b?a.l.resume():nW(a,!0));g.R(a.u.experiments,"html5_fludd_suspend")&&(g.T(a.playerState,2)||b?g.T(a.playerState,512)&&b&&a.Nb(UI(a.playerState,512)):a.Nb(TI(a.playerState,512)));a=a.C;a.qoe&&(a=a.qoe,g.PU(a,g.OR(a.i),"stream",[b?"A":"I"]))}}; g.k.qQ=function(){this.Ua.Na("onLoadedMetadata")}; g.k.bQ=function(){this.Ua.Na("onDrmOutputRestricted")}; g.k.rB=function(){this.xc=!0}; g.k.ra=function(){this.G.dispose();this.X.dispose();this.C&&this.C.dispose();this.l.dispose();this.jg();g.vi(g.Jb(this.Sb),this.playlist);gs(this.Aa);this.Aa=0;g.F.prototype.ra.call(this)}; g.k.ea=function(){}; g.k.Z=function(a){return g.R(this.i.experiments,a)}; g.k.Fx=function(){return this.Xa}; g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)}; g.k.setScreenLayer=function(a){this.Tc=a}; g.k.seekToChapterWithAnimation=function(a){var b,c,d=null===(b=uL(this.sb()))||void 0===b?void 0:b.xs(),e=null===(c=this.getVideoData())||void 0===c?void 0:c.xk;if(this.Z("web_player_seek_chapters_by_shortcut")&&e&&d instanceof g.SM&&ar.start&&dE;E++)if(y= (y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(u.charAt(E)),4==E%5){for(var I="",H=0;6>H;H++)I="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+I,y>>=5;A+=I}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:r,shader_info_style:r?"":"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=tS(h,"bandwidth");l.network_activity_samples=tS(h,"networkactivity");l.live_latency_samples=tS(h,"livelatency");l.buffer_health_samples=tS(h,"bufferhealth");c.Z("woffle_orchestration")&& (b=g.sG(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";QF(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20210530_0_RC0",l.release_style=""):l.release_style="display:none";return l}; g.k.getVideoUrl=function(a,b,c,d,e){return this.L&&this.L.postId?(a=this.i.getVideoUrl(a),a=Nd(a,"v"),a.replace("/watch","/clip/"+this.L.postId)):this.i.getVideoUrl(a,b,c,d,e)}; var r1={};g.Ga("yt.player.Application.create",g.vW.create,void 0);g.Ga("yt.player.Application.createAlternate",g.vW.create,void 0);Iu(Ju(),{al:[{nt:/Unable to load player module/,weight:5},{nt:/Failed to fetch/,weight:500},{nt:/XHR API fetch failed/,weight:10},{nt:/JSON parsing failed after XHR fetch/,weight:10},{nt:/Retrying OnePlatform request/,weight:10}]});var RGa=g.Ha("ytcsi.tick");RGa&&RGa("pe");var SGa={X2:"replaceUrlMacros",PY:"isExternalShelfAllowedFor",S1:"onAboutThisAdPopupClosed"};$W.prototype.Ij=function(){return"adLifecycleCommand"}; $W.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.fm(function(){b.controller.Tl()}); break;case "END_LINEAR_AD_PLACEMENT":g.fm(function(){b.controller.Gj()}); break;case "FILL_ABOVE_FEED_SLOT":g.fm(function(){a.elementId&&b.controller.Dv(a.elementId)}); break;case "CLEAR_ABOVE_FEED_SLOT":g.fm(function(){b.controller.tv()})}}; $W.prototype.Sk=function(a){this.handle(a)};aX.prototype.Ij=function(){return"clearCueRangesCommand"}; aX.prototype.handle=function(){var a=this.Yz();g.fm(function(){a.Lf(Array.from(a.Cn))})}; aX.prototype.Sk=function(a){this.handle(a)};bX.prototype.Ij=function(){return"muteAdEndpoint"}; bX.prototype.handle=function(a){rBa(this,a)}; bX.prototype.Sk=function(a,b){rBa(this,a,b)};cX.prototype.Ij=function(){return"openPopupAction"}; cX.prototype.handle=function(){}; cX.prototype.Sk=function(a){this.handle(a)};dX.prototype.Ij=function(){return"pingingEndpoint"}; dX.prototype.handle=function(){}; dX.prototype.Sk=function(a){this.handle(a)};eX.prototype.Ij=function(){return"urlEndpoint"}; eX.prototype.handle=function(a,b){b=g.fn(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={impressionData:a.browserConversionApiData.impressiondata, conversionDestination:a.browserConversionApiData.conversiondestination,reportingOrigin:a.browserConversionApiData.reportingorigin,impressionExpiry:Number(a.browserConversionApiData.impressionexpiry)||void 0}}else a=void 0;g.yI(b,void 0,void 0,a)}; eX.prototype.Sk=function(){Q("Trying to handle UrlEndpoint with no macro in controlflow")};fX.prototype.Ij=function(){return"adPingingEndpoint"}; fX.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Fr.send(a,b,c)}; fX.prototype.Sk=function(a,b){fDa(this.Wa.get(),a,b,void 0)};gX.prototype.Ij=function(){return"changeEngagementPanelVisibilityAction"}; gX.prototype.handle=function(a){this.I.Na("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})}; gX.prototype.Sk=function(a){this.handle(a)};hX.prototype.Ij=function(){return"loggingUrls"}; hX.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.q(a);for(var d=a.next();!d.done;d=a.next())d=d.value,this.Oi.send(d.baseUrl,b,c,d.headers)}; hX.prototype.Sk=function(a,b){a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,fDa(this.Wa.get(),c.baseUrl,b,c.headers)};g.v(tBa,g.F);var FBa=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"]]);var OBa=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"]]);var xBa=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"]]),vBa=new Map([["normal",{Qt:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",nu:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Qt:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",nu:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}], ["muted",{Qt:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",nu:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Qt:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",nu:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Qt:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",nu:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}]]);g.v(qX,g.F);g.k=qX.prototype;g.k.IA=function(a,b){return this.i.IA(a,b)}; g.k.Oh=function(a,b){kY(this.Zb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.q(this.Cd),d=c.next();!d.done;d=c.next())d.value.Oh(a,b)}; g.k.tf=function(a){if(uX(this.i,a)){CI(this.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.i.tf(a);for(var b=g.q(this.Cd),c=b.next();!c.done;c=b.next())c.value.tf(a);CBa(this,a)}}; g.k.uf=function(a){if(uX(this.i,a)){CI(this.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.i.uf(a);for(var b=g.q(this.Cd),c=b.next();!c.done;c=b.next())c.value.uf(a);uX(this.i,a)&&vX(this.i,a).C&&sX(this,a,!1)}}; g.k.bx=function(a){CI(this.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);uX(this.i,a)&&(this.i.bx(a),sX(this,a,!1))}; g.k.Bc=function(a,b){if(uX(this.i,a)){wX(this.Zb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.q(this.Cd),d=c.next();!d.done;d=c.next())d.value.Bc(a,b)}}; g.k.Nc=function(a,b,c){if(uX(this.i,a)){wX(this.Zb,wBa(c),a,b);this.i.Nc(a,b);for(var d=g.q(this.Cd),e=d.next();!e.done;e=d.next())e.value.Nc(a,b,c);(c=IX(this.i,a))&&b.layoutId===c.layoutId&&LBa(this,a,!1)}}; g.k.Ve=function(a,b,c){Q(c,a,b,void 0,c.Dn);sX(this,a,!0)}; g.k.ra=function(){var a=NBa(this.i);a=g.q(a);for(var b=a.next();!b.done;b=a.next())sX(this,b.value,!1);g.F.prototype.ra.call(this)};MBa.prototype.isActive=function(){switch(this.i){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.v(xX,Ua);g.v(FX,Ua);g.v(LX,g.F);g.k=LX.prototype;g.k.IA=function(a,b){b=HX(this,a+"_"+b);a=[];b=g.q(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a}; g.k.jh=function(a){a=vX(this,a);"not_scheduled"!==a.i&&JX(a.slot,a.i,"onSlotScheduled");a.i="scheduled"}; g.k.qs=function(a){a=vX(this,a);a.B="fill_requested";a.J.qs()}; g.k.tf=function(a){a=vX(this,a);"enter_requested"!==a.i&&JX(a.slot,a.i,"onSlotEntered");a.i="entered"}; g.k.bx=function(a){vX(this,a).B="fill_canceled"}; g.k.uf=function(a){a=vX(this,a);"exit_requested"!==a.i&&JX(a.slot,a.i,"onSlotExited");a.i="scheduled"}; g.k.Nc=function(a,b){a=vX(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.i&&JX(a.slot,a.i,"onLayoutExited"),a.i="entered")};g.v(OX,g.F);OX.prototype.u=function(){return this.l};g.v(PX,g.F);PX.prototype.get=function(){this.Ia()&&Q("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.i});this.i||(this.i=this.l());return this.i};g.v(jY,g.F);g.v(mY,g.F);mY.prototype.xd=function(){}; mY.prototype.Ue=function(a){var b=this,c=this.i.get(a);c&&(this.i.delete(a),this.l.get().removeCueRange(a),yv(this.u.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.B.get();d=fY(d.l.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign(Object.assign({},c),{slotId:d,Wb:c.Wb?VCa(c.slotId,d,c.Wb):void 0,wc:WCa(c.slotId,d,c.wc),pc:WCa(c.slotId,d,c.pc)})]},c.slotId))}; mY.prototype.ih=function(){for(var a=g.q(this.i.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.l.get().removeCueRange(b);this.i.clear()}; mY.prototype.Tj=function(){};g.v(nY,g.F);g.k=nY.prototype;g.k.jh=function(){}; g.k.Ni=function(){}; g.k.tf=function(){}; g.k.Mi=function(){}; g.k.uf=function(){}; g.k.Xj=function(){}; g.k.Yj=function(){}; g.k.Ki=function(a,b){this.i.has(a)||this.i.set(a,new Set);this.i.get(a).add(b)}; g.k.Vj=function(a,b){this.Wh.has(a)&&this.Wh.get(a)===b&&Q("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)):Q("Trying to unscheduled a Layout that was not scheduled.",a,b)}else Q("Trying to unscheduled a Layout that was not scheduled.",a,b)}; g.k.Bc=function(a,b){this.Wh.set(a,b)}; g.k.Nc=function(a){this.Wh.delete(a)}; g.k.Oh=function(){};AY.prototype.clone=function(a){var b=this;return new AY(function(){return b.triggerId},a)};BY.prototype.clone=function(a){var b=this;return new BY(function(){return b.triggerId},a)};CY.prototype.clone=function(a){var b=this;return new CY(function(){return b.triggerId},a)};DY.prototype.clone=function(a){var b=this;return new DY(function(){return b.triggerId},a)};EY.prototype.clone=function(a){var b=this;return new EY(function(){return b.triggerId},a)};g.v(HY,g.F);HY.prototype.logEvent=function(a){kY(this,a)};g.v(JY,g.F);g.k=JY.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)Q("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!g.R(this.I.T().experiments,"html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.i||c){this.i=a;this.Ga.get().ih(a,b,c,d,e,f,h);null===(l=this.l)||void 0===l?void 0:l.get().ih(a,b,c,d,e,f,h);this.u.ih(a,b,c,d,e,f,h);for(var m=g.q(this.listeners),n=m.next();!n.done;n=m.next())n.value.ih(a,b,c,d,e,f,h)}}; g.k.HL=function(){this.i&&this.Tj(this.i)}; g.k.Tj=function(a){this.i=void 0;for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Tj(a)};g.v(KY,g.F);KY.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)?Q("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new $Ca(a,b,c,d,f),this.i.set(a.id,{Od:a,listener:e,Zi:h}),this.I.Bd([a],h))}; KY.prototype.removeCueRange=function(a){var b=this.i.get(a);b?(this.I.Lf([b.Od],b.Zi),this.i.delete(a)):Q("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})}; KY.prototype.xd=function(a){this.i.has(a.id)&&this.i.get(a.id).listener.xd(a.id)}; KY.prototype.Ue=function(a){this.i.has(a.id)&&this.i.get(a.id).listener.Ue(a.id)}; g.v($Ca,g.Tv);LY.prototype.Ph=function(a){this.I.Ph(a)}; LY.prototype.Na=function(a,b){for(var c=[],d=1;d=this.l.length)throw new FX("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.l.length)});for(var a=g.q(this.l),b=a.next();!b.done;b=a.next())b=b.value,b.init(),BX(this.B,this.slot,b.Jb())}; g.k.Mt=function(){for(var a=g.q(this.l),b=a.next();!b.done;b=a.next())b.value.release()}; g.k.Qo=function(a,b){var c=this.l[this.i];b.layoutId!==xZ(c,a,b)?Q("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Qo()}; g.k.Xo=function(a,b){var c=this.l[this.i];b.layoutId!==xZ(c,a,b)?Q("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Xo()}; g.k.Et=function(a,b){var c=this.l[this.i];b.layoutId!==xZ(c,a,b)?Q("onSkipRequested for a PlayerBytes layout that is not currently active",c.hd(),c.Jb(),{requestingSlot:a,requestingLayout:b}):yZ(this,c.hd(),c.Jb(),"skipped")}; g.k.du=function(){-1===this.i&&BDa(this)}; g.k.JR=function(a,b){CX(this.B,a,b)}; g.k.fu=function(a,b){var c=this;this.i!==this.l.length?(a=this.l[this.i],a.Ie(a.Jb(),b),this.C=function(){c.callback.Nc(c.slot,c.layout,b)}):this.callback.Nc(this.slot,this.layout,b)}; g.k.Bc=function(a,b){var c=this.l[this.i];c&&c.Bc(a,b)}; g.k.Nc=function(a,b,c){vZ.prototype.Nc.call(this,a,b,c);var d=this.l[this.i];d&&d.Nc(a,b,c)}; g.k.rH=function(){var a=this.l[this.i];a&&a.dw()}; g.k.Mh=function(a){var b=this.l[this.i];b&&b.Mh(a)}; g.k.pI=function(a){var b=this.l[this.i];b&&b.Wj(a)}; g.k.Ve=function(a,b){-1===this.i&&(this.callback.Bc(this.slot,this.layout),this.i++);var c=this.l[this.i];c?c.ut(a,b):Q("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Jb().layoutId})}; g.k.He=function(a){var b=this.l[this.i];b&&b.He(a)}; g.k.dg=function(a){var b=this.l[this.i];b&&b.dg(a)}; g.k.Hi=function(a){var b=this.l[this.i];b&&b.Hi(a)}; g.k.vf=function(){var a=this.l[this.i];a&&a.vf()}; g.k.LR=function(a,b,c){yZ(this,a,b,c)}; g.k.KR=function(a,b){yZ(this,a,b,"error")};g.v(DZ,g.F);g.k=DZ.prototype;g.k.hd=function(){return this.slot}; g.k.Jb=function(){return this.layout}; g.k.init=function(){var a=X(this.layout.Ja,"metadata_type_video_length_seconds");cDa(this.Aa.get(),this.layout.layoutId,a,this);UY(this.Wa.get(),this);this.Rs()}; g.k.release=function(){dDa(this.Aa.get(),this.layout.layoutId);VY(this.Wa.get(),this);this.Mt()}; g.k.Qo=function(){}; g.k.Xo=function(){}; g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Ve(this.slot,a,new xX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.l="rendering_start_requested",Lja(this.Va.get(),1)?(this.Or(!1),this.C(-1),this.du(a)):this.ut("ui_unstable",new xX("Failed to render media layout because ad ui unstable.")))}; g.k.Bc=function(a,b){var c,d,e;b.layoutId===this.layout.layoutId&&(this.l="rendering",lZ(this.i,"impression"),lZ(this.i,"start"),this.Ga.get().isMuted()&&(this.i.Be("mute"),a=(null===(c=CZ(this))||void 0===c?void 0:c.muteCommands)||[],this.u.get().md(a,this.layout.layoutId)),this.Ga.get().isFullscreen()&&(this.i.Be("fullscreen"),a=(null===(d=CZ(this))||void 0===d?void 0:d.fullscreenCommands)||[],this.u.get().md(a,this.layout.layoutId)),Qka(this.ld.get()),this.C(1),this.aI(),a=(null===(e=CZ(this))|| void 0===e?void 0:e.impressionCommands)||[],this.u.get().md(a,this.layout.layoutId))}; g.k.ut=function(a,b){this.Qa={by:3,Au:"load_timeout"===a?402:400,errorMessage:b.message};var c;lZ(this.i,"error");a=(null===(c=CZ(this))||void 0===c?void 0:c.errorCommands)||[];this.u.get().md(a,this.layout.layoutId);this.callback.Ve(this.slot,this.layout,b)}; g.k.dw=function(){this.U()}; g.k.yG=function(){var a;if("rendering"===this.l){this.i.Be("pause");var b=(null===(a=CZ(this))||void 0===a?void 0:a.pauseCommands)||[];this.u.get().md(b,this.layout.layoutId);this.C(2)}}; g.k.zG=function(){var a;if("rendering"===this.l){this.i.Be("resume");var b=(null===(a=CZ(this))||void 0===a?void 0:a.resumeCommands)||[];this.u.get().md(b,this.layout.layoutId)}}; g.k.Ie=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Ve(this.slot,a,new xX("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):"rendering_stop_requested"!==this.l&&(this.l="rendering_stop_requested",this.J=b,this.fu(a,b))}; g.k.Nc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.Ha||this.va||this.X||this.ma||this.Y?Q("Already confirmed to exit this layout.",this.hd(),this.Jb(),{layoutId:this.Jb().layoutId,confirmedLayoutExitReason:String(this.Ha),newLayoutExitReason:String(c),sentSkipPings:String(this.va),sentCompletePings:String(this.X),sentCompletePingsCueRange:String(this.ma),sentAbandonPings:String(this.Y),position:String(this.position),totalLayouts:String(this.xa)}):this.Ha=c,this.l="not_rendering", this.J=void 0,Pka(this.ld.get()),this.Or(!0),this.bI(c),this.C(0),c){case "abandoned":var d;if(this.i.i.has("impression")){lZ(this.i,"abandon");this.Y=!0;var e=(null===(d=CZ(this))||void 0===d?void 0:d.abandonCommands)||[];this.u.get().md(e,this.layout.layoutId)}break;case "normal":lZ(this.i,"complete");this.X=!0;d=(null===(e=CZ(this))||void 0===e?void 0:e.completeCommands)||[];this.u.get().md(d,this.layout.layoutId);break;case "skipped":var f;lZ(this.i,"skip");this.va=!0;d=(null===(f=CZ(this))|| void 0===f?void 0:f.skipCommands)||[];this.u.get().md(d,this.layout.layoutId)}}; g.k.Ds=function(){return this.layout.layoutId}; g.k.wA=function(){return this.Qa}; g.k.Wj=function(a){if("not_rendering"!==this.l){this.Oa||(a=new g.iH(a.state,new g.RI),this.Oa=!0);var b=2===this.Ga.get().getPresentingPlayerType();"rendering_start_requested"===this.l?b&&AZ(a)&&this.Ea():b?g.kH(a,2)?this.aE():(AZ(a)?this.C(1):g.kH(a,4)&&!g.kH(a,2)&&this.yG(),0>jH(a,4)&&!(0>jH(a,2))&&this.zG()):this.dw()}}; g.k.Vw=function(){var a;if("rendering"===this.l){lZ(this.i,"active_view_measurable");var b=(null===(a=CZ(this))||void 0===a?void 0:a.activeViewMeasurableCommands)||[];this.u.get().md(b,this.layout.layoutId)}}; g.k.Uw=function(){var a;if("rendering"===this.l){lZ(this.i,"active_view_fully_viewable_audible_half_duration");var b=(null===(a=CZ(this))||void 0===a?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.u.get().md(b,this.layout.layoutId)}}; g.k.Ww=function(){var a;if("rendering"===this.l){lZ(this.i,"active_view_viewable");var b=(null===(a=CZ(this))||void 0===a?void 0:a.activeViewViewableCommands)||[];this.u.get().md(b,this.layout.layoutId)}}; g.k.Or=function(a){this.ld.get().Or(X(this.layout.Ja,"metadata_type_ad_placement_config").kind,a,this.position,this.xa,!1)}; g.k.He=function(a){var b,c;"rendering"===this.l&&(a?(this.i.Be("fullscreen"),a=(null===(b=CZ(this))||void 0===b?void 0:b.fullscreenCommands)||[],this.u.get().md(a,this.layout.layoutId)):(this.i.Be("end_fullscreen"),a=(null===(c=CZ(this))||void 0===c?void 0:c.endFullscreenCommands)||[],this.u.get().md(a,this.layout.layoutId)))}; g.k.vf=function(){var a,b;if("rendering"===this.l)if(this.Ga.get().isMuted()){this.i.Be("mute");var c=(null===(a=CZ(this))||void 0===a?void 0:a.muteCommands)||[];this.u.get().md(c,this.layout.layoutId)}else this.i.Be("unmute"),c=(null===(b=CZ(this))||void 0===b?void 0:b.unmuteCommands)||[],this.u.get().md(c,this.layout.layoutId)}; g.k.dg=function(){}; g.k.Hi=function(){};g.v(FZ,DZ);g.k=FZ.prototype;g.k.Rs=function(){}; g.k.Mt=function(){var a=this.Wa.get();a.Kx===this&&(a.Kx=null)}; g.k.du=function(){this.Wa.get().Kx=this;this.Ea()}; g.k.aI=function(){GDa(this)}; g.k.aE=function(){}; g.k.Qo=function(){this.B.stop();DZ.prototype.yG.call(this)}; g.k.Xo=function(){GDa(this);DZ.prototype.zG.call(this)}; g.k.gq=function(){return X(this.Jb().Ja,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.k.fu=function(){this.B.stop()}; g.k.Ub=function(){var a=Date.now(),b=a-this.G;this.G=a;this.sj+=b;this.sj>=this.gq()?(this.sj=this.gq(),EZ(this,this.sj/1E3,!0),GZ(this,this.sj),this.U()):(EZ(this,this.sj/1E3),GZ(this,this.sj))}; g.k.bI=function(){}; g.k.Mh=function(){};g.v(HZ,DZ);g.k=HZ.prototype;g.k.Rs=function(){X(this.Jb().Ja,"metadata_type_player_bytes_callback_ref").current=this}; g.k.Mt=function(){X(this.Jb().Ja,"metadata_type_player_bytes_callback_ref").current=null;this.B&&this.L.get().removeCueRange(this.B);this.B=void 0;this.G.dispose()}; g.k.du=function(a){var b=X(a.Ja,"metadata_type_ad_video_id"),c=X(a.Ja,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.Xa.get().I.T().U.add(b,{Pr:c});(b=X(a.Ja,"metadata_type_sodar_extension_data"))&&pDa(this.Ya.get(),b);nDa(this.Ga.get(),!1);b=this.qd.get();a=X(a.Ja,"metadata_type_player_vars");b.I.cueVideoByPlayerVars(a,2);this.G.start();this.qd.get().I.playVideo(2)}; g.k.Bc=function(a,b){"not_rendering"!==this.l&&"SLOT_TYPE_IN_PLAYER"===a.ob&&"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===b.layoutType&&(this.lq=b.layoutId);DZ.prototype.Bc.call(this,a,b)}; g.k.aI=function(){var a;this.G.stop();this.B="adcompletioncuerange:"+this.Jb().layoutId;this.L.get().addCueRange(this.B,0x7ffffffffffff,0x8000000000000,!1,this,1,2);(this.adCpn=(null===(a=Av(this.Fa.get(),2))||void 0===a?void 0:a.clientPlaybackNonce)||"")||Q("Media layout confirmed started, but ad CPN not set.");this.Dc.get().Na("onAdStart",this.adCpn)}; g.k.aE=function(){this.U()}; g.k.gq=function(){var a;return null===(a=Av(this.Fa.get(),2))||void 0===a?void 0:a.playbackDurationMs}; g.k.mC=function(){this.i.Be("clickthrough")}; g.k.fu=function(){this.G.stop();nDa(this.Ga.get(),!0)}; g.k.xd=function(a){a!==this.B?Q("Received CueRangeEnter signal for unknown layout.",this.hd(),this.Jb(),{cueRangeId:a}):(this.L.get().removeCueRange(this.B),this.B=void 0,a=X(this.Jb().Ja,"metadata_type_video_length_seconds"),EZ(this,a,!0),lZ(this.i,"complete"),this.ma=!0)}; g.k.bI=function(a){var b;this.Jb().Ja.i.has("metadata_type_ad_intro")||this.lq||Q("InPlayer layout never entered for media layout: "+String(a),this.hd(),this.Jb(),{adCpn:this.adCpn||"empty",layoutExitReason:String(a),layoutId:this.Jb().layoutId,slotEntryTrigger:String(null===(b=this.hd().Wb)||void 0===b?void 0:b.triggerType),position:String(this.position),totalLayouts:String(this.xa)});this.lq=void 0;"abandoned"!==a&&this.Dc.get().Na("onAdComplete");this.Dc.get().Na("onAdEnd",this.adCpn)}; g.k.Ue=function(){}; g.k.Mh=function(a){"rendering"===this.l&&EZ(this,a)};g.v(IZ,vZ);g.k=IZ.prototype;g.k.hd=function(){return this.i.hd()}; g.k.Jb=function(){return this.i.Jb()}; g.k.Rs=function(){this.i.init()}; g.k.Mt=function(){this.i.release()}; g.k.Qo=function(){this.i.Qo()}; g.k.Xo=function(){this.i.Xo()}; g.k.Et=function(a,b){Q("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.hd(),this.Jb(),{requestingSlot:a,requestingLayout:b})}; g.k.du=function(a){this.i.startRendering(a)}; g.k.fu=function(a,b){this.i.Ie(a,b)}; g.k.Bc=function(a,b){this.i.Bc(a,b)}; g.k.Nc=function(a,b,c){vZ.prototype.Nc.call(this,a,b,c);this.i.Nc(a,b,c)}; g.k.rH=function(){this.i.dw()}; g.k.Mh=function(a){this.i.Mh(a)}; g.k.pI=function(a){this.i.Wj(a)}; g.k.Ve=function(a,b){this.i.ut(a,b)}; g.k.He=function(a){this.i.He(a)}; g.k.dg=function(a){this.i.dg(a)}; g.k.Hi=function(a){this.i.Hi(a)}; g.k.vf=function(){this.i.vf()};JZ.prototype.gf=function(a,b,c,d){if(a=JDa(a,b,c,d,this.qe,this.G,this.Wa,this.C,this.L,this.qd,this.J,this.Ga,this.u,this.ld,this.Dc,this.i,this.l,this.B,this.Pa))return a;throw new xX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kX(d.Ja)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.v(KZ,g.F);g.k=KZ.prototype;g.k.Bc=function(a,b){var c=this;if(KDa(this)&&"LAYOUT_TYPE_MEDIA"===b.layoutType&&iX(b,this.J)){var d=Av(this.i.get(),2),e=this.C(b,d);e?yv(this.u.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){return[YCa(c.B.get(),e.contentCpn,e.Qx,function(f){return c.G(f.slotId,"core",e,oX(c.l.get(),f))},e.KG)]}):Q("Expected MediaLayout to carry valid opportunity on entered",a,b)}}; g.k.jh=function(){}; g.k.Ni=function(){}; g.k.tf=function(){}; g.k.Mi=function(){}; g.k.uf=function(){}; g.k.Xj=function(){}; g.k.Yj=function(){}; g.k.Ki=function(){}; g.k.Vj=function(){}; g.k.Oh=function(){}; g.k.Nc=function(){};var B_=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=ODa.prototype;g.k.init=function(){}; g.k.hd=function(){return this.slot}; g.k.mA=function(){this.callback.tf(this.slot)}; g.k.rA=function(){this.callback.uf(this.slot)}; g.k.release=function(){};MZ.prototype.gf=function(a,b){return new ODa(a,b)};g.k=PDa.prototype;g.k.init=function(){}; g.k.hd=function(){return this.slot}; g.k.mA=function(){var a=this.Ga.get();g.K(a.I.getRootNode(),"ad-showing");this.callback.tf(this.slot)}; g.k.rA=function(){this.callback.uf(this.slot);var a=this.Ga.get();g.wn(a.I.getRootNode(),"ad-showing")}; g.k.release=function(){};g.k=QDa.prototype;g.k.init=function(){}; g.k.hd=function(){return this.slot}; g.k.mA=function(){var a=this.Ga.get();g.K(a.I.getRootNode(),"ad-showing");a=this.Ga.get();g.K(a.I.getRootNode(),"ad-interrupting");this.callback.tf(this.slot)}; g.k.rA=function(){this.Ga.get().Fj();var a=this.Ga.get();g.wn(a.I.getRootNode(),"ad-showing");a=this.Ga.get();g.wn(a.I.getRootNode(),"ad-interrupting");this.callback.uf(this.slot)}; g.k.release=function(){this.Ga.get().Fj()};NZ.prototype.gf=function(a,b){if(Cv(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new PDa(a,b,this.Ga);if(Cv(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new QDa(a,b,this.Ga);throw new FX("Unsupported slot with type "+b.ob+" and client metadata: "+(kX(b.Ja)+" in PlayerBytesSlotAdapterFactory."));};g.v(PZ,g.F);PZ.prototype.i=function(a){for(var b=[],c=g.q(this.Eb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof XX&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.je===a&&b.push(d)}b.length?DX(this.Py(),b):Q("Mute requested but no registered triggers can be activated.")};g.v(QZ,PZ);g.k=QZ.prototype;g.k.nf=function(a,b){if(b)if("survey-submit"===a)RDa(this,b);else if("skip-button"===a){a=[];for(var c=g.q(this.Eb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof XX&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.je===b&&a.push(d)}a.length&&DX(this.Py(),a)}else"survey-single-select-answer-button"===a&&RDa(this,b)}; g.k.SA=function(a){PZ.prototype.i.call(this,a)}; g.k.Rh=function(a,b,c,d){if(this.Eb.has(b.triggerId))throw new FX("Tried to register duplicate trigger for slot.");if(!(b instanceof YX||b instanceof XX))throw new FX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Eb.set(b.triggerId,new OZ(a,b,c,d))}; g.k.ai=function(a){this.Eb.delete(a.triggerId)}; g.k.QA=function(){}; g.k.PA=function(){}; g.k.ew=function(){};g.v(RZ,g.F);g.k=RZ.prototype; g.k.Rh=function(a,b,c,d){if(this.Eb.has(b.triggerId))throw new FX("Tried to register duplicate trigger for slot.");if(!(b instanceof AY||b instanceof BY||b instanceof CY||b instanceof DY||b instanceof EY||b instanceof rY||b instanceof wY||b instanceof WX||b instanceof cY||b instanceof qY||b instanceof vY))throw new FX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new OZ(a,b,c,d);this.Eb.set(b.triggerId,a);b instanceof EY&&this.C.has(b.vg)&& DX(this.i(),[a]);b instanceof AY&&this.u.has(b.vg)&&DX(this.i(),[a]);b instanceof wY&&this.l.has(b.je)&&DX(this.i(),[a])}; g.k.ai=function(a){this.Eb.delete(a.triggerId)}; g.k.jh=function(a){this.C.add(a.slotId);for(var b=[],c=g.q(this.Eb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof EY&&a.slotId===d.trigger.vg&&b.push(d);0jH(a,16)){a=g.q(this.i);for(var b=a.next();!b.done;b=a.next())this.xd(b.value);this.i.clear()}}; g.k.Mh=function(){}; g.k.He=function(){}; g.k.dg=function(){}; g.k.Hi=function(){}; g.k.vf=function(){};g.v(VZ,g.F);g.k=VZ.prototype;g.k.Rh=function(a,b,c,d){if(this.Eb.has(b.triggerId))throw new FX("Tried to register duplicate trigger for slot.");if(!(b instanceof ZX||b instanceof zY))throw new FX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Eb.set(b.triggerId,new OZ(a,b,c,d))}; g.k.ai=function(a){this.Eb.delete(a.triggerId)}; g.k.Tl=function(){}; g.k.Gj=function(){}; g.k.Bc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.ob&&(null!=this.i?Q("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.i=b.layoutId)}; g.k.Nc=function(a){"SLOT_TYPE_ABOVE_FEED"===a.ob&&(this.i=null)}; g.k.jh=function(){}; g.k.Ni=function(){}; g.k.Mi=function(){}; g.k.tf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.ob&&(null!=this.l?Q("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.l=a.slotId)}; g.k.uf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.ob&&(null===this.l?Q("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.l=null)}; g.k.Xj=function(){}; g.k.Yj=function(){}; g.k.Ki=function(){}; g.k.Vj=function(){}; g.k.Oh=function(){}; g.k.tv=function(){null!=this.i&&zZ(this,this.i)}; g.k.Dv=function(a){if(null===this.l){for(var b=[],c=g.q(this.Eb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof zY&&d.trigger.slotId===a&&b.push(d);b.length&&DX(this.u(),b)}};g.v(WZ,g.F);g.k=WZ.prototype;g.k.Oh=function(a,b){for(var c=[],d=g.q(this.Eb.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&&DX(this.i(),c)}; g.k.Rh=function(a,b,c,d){if(this.Eb.has(b.triggerId))throw new FX("Tried to register duplicate trigger for slot.");if(!(b instanceof QCa))throw new FX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Eb.set(b.triggerId,new OZ(a,b,c,d))}; g.k.ai=function(a){this.Eb.delete(a.triggerId)}; g.k.jh=function(){}; g.k.Ni=function(){}; g.k.Mi=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Xj=function(){}; g.k.Yj=function(){}; g.k.Ki=function(){}; g.k.Vj=function(){}; g.k.Bc=function(){}; g.k.Nc=function(){};g.v(XZ,g.F);XZ.prototype.ra=function(){this.B.get().removeListener(this);g.F.prototype.ra.call(this)};YZ.prototype.fetch=function(a){var b=a.MF;return this.Gl.fetch(a.dK,{Vr:void 0===a.Vr?void 0:a.Vr,Od:b}).then(function(c){return UDa(c,b)})};g.v(ZZ,g.F);g.k=ZZ.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){$Z(this,function(c){c.nf(a,b)})}; g.k.EB=function(a){$Z(this,function(b){b.QA(a)})}; g.k.DB=function(a){$Z(this,function(b){b.PA(a)})}; g.k.oP=function(a){$Z(this,function(b){b.ew(a)})};c_.prototype.addListener=function(a){this.listeners.push(a)}; c_.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=XDa.prototype;g.k.hd=function(){return this.slot}; g.k.Jb=function(){return this.layout}; g.k.init=function(){var a;this.l.get().addListener(this);this.u.get().addListener(this);this.Ga.get().addListener(this);this.B.forEach(function(f){f.init()}); var b=X(this.layout.Ja,"metadata_type_layout_enter_ms"),c=X(this.layout.Ja,"metadata_type_layout_exit_ms"),d=null===(a=this.l.get().Qn)||void 0===a?void 0:a.clientPlaybackNonce;TY(this.Wa.get(),{daiStateTrigger:{filledAdsDurationMs:c-b,contentCpn:d,adClientData:this.layout.zc.adClientDataEntry}});var e=$Da(this.u.get(),b,c);null!==e&&(TY(this.Wa.get(),{daiStateTrigger:{filledAdsDurationMs:e-b,contentCpn:d,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.zc.adClientDataEntry}}), this.C.get().Mn(e,c))}; g.k.release=function(){this.i=null;this.B.forEach(function(a){a.release()}); this.l.get().removeListener(this);this.u.get().removeListener(this);this.Ga.get().removeListener(this)}; g.k.startRendering=function(){var a;if(this.i)Q("Failed to restart rendering",this.slot,this.layout);else{var b=null===(a=this.l.get().Qn)||void 0===a?void 0:a.layoutId;ZDa(this,b);this.callback.Bc(this.slot,this.layout);lZ(this.G,"ad_placement_start")}}; g.k.Ie=function(a,b){var c,d,e,f;null===(d=null===(c=this.i)||void 0===c?void 0:c.Bh)||void 0===d?void 0:d.Ie(null===(f=null===(e=this.i)||void 0===e?void 0:e.Bh)||void 0===f?void 0:f.Jb(),b);this.i=null;null!==this.driftRecoveryMs&&(d_(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(aEa(this)-X(this.layout.Ja,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ga.get().I.cm()).toString()}),this.driftRecoveryMs=null);this.callback.Nc(this.slot, this.layout,b);"normal"!==b?a=!1:(a=this.Ga.get().getCurrentTimeSec(2,!0),b=X(this.layout.Ja,"metadata_type_layout_exit_ms")/1E3,a=1>=Math.abs(a-b));a&&lZ(this.G,"ad_placement_end")}; g.k.lI=function(a){a=a.layoutId;var b,c,d;this.i&&(null===(b=this.i.Bh)||void 0===b?void 0:b.Jb().layoutId)!==a&&(null===(c=this.i.Bh)||void 0===c?void 0:c.Ie(null===(d=this.i.Bh)||void 0===d?void 0:d.Jb(),"normal"),ZDa(this,a))}; g.k.eI=function(){}; g.k.TH=function(a){var b,c=X(this.layout.Ja,"metadata_type_layout_enter_ms"),d=X(this.layout.Ja,"metadata_type_layout_exit_ms");a*=1E3;c<=a&&ad&&(c=d-c,this.u.get().Tq(b,c))}else c=this.slot,d=this.layout,e=Object,b=e.assign,f=Object.assign({},e_(this.layout)),h=X(this.slot.Ja,"metadata_type_fulfilled_layout"),h=Object.assign(Object.assign({},e_(h)),{adPlacementConfig:X(h.Ja,"metadata_type_ad_placement_config"),subLayouts:X(h.Ja,"metadata_type_sub_layouts").map(e_)}),Q("Unexpected failure to add to playback timeline",c,d,b.call(e,f,{compositeLayout:h}));else this.u.get().Ts(b,2,e,c,d);this.Ga.get().addListener(this); cDa(this.B.get(),this.layout.layoutId,a,this);BX(this.callback,this.slot,this.layout)}; g.k.release=function(){this.Ga.get().removeListener(this);dDa(this.B.get(),this.layout.layoutId)}; g.k.startRendering=function(){if(this.l)Q("Expected the layout not to be entered before start rendering",this.slot,this.layout);else{this.l={Bw:null,kJ:!1};var a=X(this.layout.Ja,"metadata_type_sodar_extension_data");if(a)try{pDa(this.C.get(),a)}catch(b){Q("Unexpected error when loading Sodar",this.slot,this.layout,{error:b})}lZ(this.i,"start");OY(this.Pa.get())&&(a=QY(this.Ga.get()),a=new g.iH(a,new g.RI),dEa(this,this.l,a));CX(this.callback,this.slot,this.layout)}}; g.k.Ie=function(a,b){this.l?(OY(this.Pa.get())&&cEa(this,null,this.l),this.l=null,BI(this.callback,this.slot,this.layout,b)):Q("Expected the layout to be entered before stop rendering",this.slot,this.layout)}; g.k.ut=function(){}; g.k.dw=function(){}; g.k.Mh=function(a){if(this.l){if(this.i.i.has("impression")){var b=QY(this.Ga.get());eEa(this,b,a,this.l.Bw)}this.l.Bw=a}}; g.k.Wj=function(a){this.l&&(OY(this.Pa.get())||this.l.kJ||(this.l.kJ=!0,a=new g.iH(a.state,new g.RI)),dEa(this,this.l,a))}; g.k.He=function(a){this.i.i.has("impression")&&this.i.Be(a?"fullscreen":"end_fullscreen")}; g.k.dg=function(){}; g.k.Hi=function(){}; g.k.Et=function(){}; g.k.vf=function(){}; g.k.Bc=function(){}; g.k.Nc=function(){}; g.k.Qo=function(){}; g.k.Xo=function(){}; g.k.mC=function(){this.i.i.has("impression")&&this.i.Be("clickthrough")}; g.k.Vw=function(){this.i.Be("active_view_measurable")}; g.k.Uw=function(){this.i.i.has("impression")&&!this.i.i.has("seek")&&this.i.Be("active_view_fully_viewable_audible_half_duration")}; g.k.Ww=function(){this.i.i.has("impression")&&!this.i.i.has("seek")&&this.i.Be("active_view_viewable")};f_.prototype.gf=function(a,b,c,d){if(c.Ja.i.has("metadata_type_dai")){a:{var e=X(d.Ja,"metadata_type_sub_layouts"),f=X(d.Ja,"metadata_type_ad_placement_config");if(gZ(d,{Ud:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],sf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==e&&void 0!==f){var h=[];e=g.q(e);for(var l=e.next();!l.done;l=e.next()){l=l.value;var m=X(l.Ja,"metadata_type_media_sub_layout_index");if(!gZ(l,{Ud:["metadata_type_video_length_seconds", "metadata_type_player_vars","metadata_type_layout_enter_ms","metadata_type_layout_exit_ms","metadata_type_player_bytes_callback_ref"],sf:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new iZ(l.Cc,this.Wa,f,l.layoutId,m);h.push(new bEa(b,c,l,this.u,m,this.Ga,this.X,this.i,this.B,this.Pa))}b=new iZ(d.Cc,this.Wa,f,d.layoutId);a=new XDa(a,c,d,this.l,this.u,this.J,this.Ga,b,this.Wa,h)}else a=null}if(a)return a}else if(a=JDa(a,b,c,d,this.qe,this.Y,this.Wa,this.i,this.B,this.qd,this.l,this.Ga,this.L, this.ld,this.Dc,this.C,this.G,this.U,this.Pa))return a;throw new xX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kX(d.Ja)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.v(g_,g.F);g.k=g_.prototype;g.k.eI=function(a){this.i&&fEa(this,this.i,a)}; g.k.TH=function(){}; g.k.ih=function(a){this.i&&this.i.contentCpn!==a&&(Q("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.i.contentCpn}),this.i=null)}; g.k.Tj=function(a){this.i&&this.i.contentCpn!==a&&Q("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.ra=function(){g.F.prototype.ra.call(this);this.i=null};g.v(h_,g.F);h_.prototype.Rh=function(a,b,c,d){if(this.Eb.has(b.triggerId))throw new FX("Tried to register duplicate trigger for slot.");if(!(b instanceof gY))throw new FX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Eb.set(b.triggerId,new OZ(a,b,c,d))}; h_.prototype.ai=function(a){this.Eb.delete(a.triggerId)};g.v(j_,g.F); j_.prototype.Rh=function(a,b,c,d){if(this.l.has(b.triggerId)||this.u.has(b.triggerId))throw new FX("Tried to re-register the trigger.");a=new OZ(a,b,c,d);if(a.trigger instanceof UCa)this.l.set(a.trigger.triggerId,a);else if(a.trigger instanceof PCa)this.u.set(a.trigger.triggerId,a);else throw new FX("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.l.has(a.trigger.triggerId)&&a.slot.slotId===this.i&&DX(this.B(),[a])}; j_.prototype.ai=function(a){this.l.delete(a.triggerId);this.u.delete(a.triggerId)}; j_.prototype.lI=function(a){a=a.slotId;if(this.i!==a){var b=[];null!=this.i&&b.push.apply(b,g.ma(gEa(this.u,this.i)));null!=a&&b.push.apply(b,g.ma(gEa(this.l,a)));this.i=a;b.length&&DX(this.B(),b)}};g.v(k_,g.F);g.k=k_.prototype;g.k.ih=function(){this.u=new GI(this,aDa(this.Pa.get()));this.l=new HI;hEa(this)}; g.k.Tj=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.fI=function(a){this.Px.push(a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.eI(a)}; g.k.VH=function(a){g.zb(this.l.i,1E3*a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.TH(a)}; g.k.KB=function(a){var b=Av(this.B.get(),1),c=b.clientPlaybackNonce;b=b.daiEnabled;var d=Date.now();a=g.q(a);for(var e=a.next();!e.done;e=a.next())e=e.value,b&&TY(this.Wa.get(),{cuepointTrigger:{event:iEa(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.i,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}}),this.i.add(e),this.u.reduce(e)}; g.k.ra=function(){this.I.getVideoData(1).unsubscribe("cuepointupdated",this.KB,this);this.listeners.length=0;this.i.clear();this.Px.length=0;g.F.prototype.ra.call(this)};g.k=l_.prototype;g.k.Np=function(a,b,c,d,e){return this.I.Np(a,b,c,d,e)}; g.k.Mn=function(a,b){this.I.Mn(a,b)}; g.k.Tq=function(a,b,c){this.I.Tq(a,b,c)}; g.k.Mo=function(a){this.I.Mo(a)}; g.k.Ts=function(a,b,c,d,e){this.I.Ts(a,b,c,d,e)};m_.prototype.addListener=function(a){this.listeners.add(a)}; m_.prototype.removeListener=function(a){this.listeners.delete(a)};g.v(jEa,gH);g.v(n_,nZ);g.k=n_.prototype;g.k.nf=function(a,b){pZ("image-companion",a,this.G.get().Wh,this.Wa.get(),this.u,this.B,this.hd(),this.Jb(),b)}; g.k.startRendering=function(a){oZ(this.C,this.hd(),this.Jb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new jEa(b,c,d,e,f)},this.i); nZ.prototype.startRendering.call(this,a)}; g.k.Bc=function(a,b){b.layoutId===this.layout.layoutId?lZ(this.C,"impression"):this.B===b.layoutId&&(null===this.u?this.u=this.Wa.get().dh():Q("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.Nc=function(){}; g.k.jh=function(){}; g.k.Ni=function(){}; g.k.Mi=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Xj=function(){}; g.k.Yj=function(){}; g.k.Ki=function(){}; g.k.Vj=function(){}; g.k.Oh=function(){}; g.k.ra=function(){this.qe().Cd.delete(this);nZ.prototype.ra.call(this)};g.v(lEa,gH);g.v(o_,nZ);g.k=o_.prototype;g.k.nf=function(a,b){pZ("shopping-companion",a,this.G.get().Wh,this.Wa.get(),this.u,this.B,this.hd(),this.Jb(),b)}; g.k.startRendering=function(a){oZ(this.C,this.hd(),this.Jb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new lEa(b,c,d,e,f)},this.i); nZ.prototype.startRendering.call(this,a)}; g.k.Bc=function(a,b){b.layoutId===this.layout.layoutId?lZ(this.C,"impression"):this.B===b.layoutId&&(null===this.u?this.u=this.Wa.get().dh():Q("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.Nc=function(){}; g.k.jh=function(){}; g.k.Ni=function(){}; g.k.Mi=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Xj=function(){}; g.k.Yj=function(){}; g.k.Ki=function(){}; g.k.Vj=function(){}; g.k.Oh=function(){}; g.k.ra=function(){this.qe().Cd.delete(this);nZ.prototype.ra.call(this)};nEa.prototype.gf=function(a,b,c,d){if(gZ(d,yDa()))return new qZ(a,c,d,this.i,this.Wa,this.qe,this.u,this.l);if(gZ(d,kEa()))return new n_(a,c,d,this.i,this.Wa,this.qe,this.u,this.l);if(gZ(d,mEa()))return new o_(a,c,d,this.i,this.Wa,this.qe,this.u,this.l);throw new xX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kX(d.Ja)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.v(p_,nZ);p_.prototype.startRendering=function(a){var b=kZ(this.u),c={adsClientData:this.layout.zc};this.i.push(new vI(X(this.layout.Ja,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Jb().layoutId,c,!0,!0));nZ.prototype.startRendering.call(this,a);this.callback.Bc(this.slot,a)}; p_.prototype.nf=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=X(this.layout.Ja,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.Et(this.slot,this.layout):Q("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))}; p_.prototype.ra=function(){nZ.prototype.ra.call(this)};var r_=new g.ie(320,63);g.v(u_,gH);g.v(v_,nZ);g.k=v_.prototype;g.k.Mh=function(){}; g.k.Wj=function(){}; g.k.He=function(){}; g.k.dg=function(a){a&&i_(this.u,this.layout)}; g.k.Hi=function(a){var b=t_(this.layout);if(this.C=s_(a,mDa(this.Ga.get())))b.onErrorCommand&&this.G.get().executeCommand(b.onErrorCommand,this.layout.layoutId),i_(this.u,this.layout)}; g.k.vf=function(){}; g.k.Ds=function(){return this.Jb().layoutId}; g.k.wA=function(){return this.C}; g.k.nf=function(a){this.B.nf(a);"in_video_overlay_close_button"===a&&i_(this.u,this.layout)}; g.k.ew=function(a){"invideo-overlay"===a&&i_(this.u,this.layout)}; g.k.bl=function(){this.B.bl()}; g.k.startRendering=function(a){nZ.prototype.startRendering.call(this,a);this.callback.Bc(this.slot,a);this.Ad.yn=this}; g.k.Ie=function(a,b){nZ.prototype.Ie.call(this,a,b);a0(this.Ad,this)}; g.k.init=function(){nZ.prototype.init.call(this);UY(this.Wa.get(),this);this.Ga.get().addListener(this);this.i.push(new u_(t_(this.layout),kZ(this.J),this.layout.layoutId,{adsClientData:this.layout.zc}))}; g.k.release=function(){nZ.prototype.release.call(this);this.Ga.get().removeListener(this);VY(this.Wa.get(),this)};g.v(w_,nZ);g.k=w_.prototype;g.k.init=function(){nZ.prototype.init.call(this);UY(this.Wa.get(),this);this.Ga.get().addListener(this);this.i.push(new u_(t_(this.layout),kZ(this.L),this.layout.layoutId,{adsClientData:this.layout.zc}))}; g.k.bl=function(){this.B.bl()}; g.k.startRendering=function(a){nZ.prototype.startRendering.call(this,a);this.callback.Bc(this.slot,a);this.Ad.yn=this}; g.k.Ie=function(a,b){nZ.prototype.Ie.call(this,a,b);a0(this.Ad,this)}; g.k.nf=function(a){this.B.nf(a);"in_video_overlay_close_button"===a&&i_(this.u,this.layout)}; g.k.QA=function(a){if("invideo-overlay"===a){a=sEa(this.G,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}}; g.k.ew=function(a){"invideo-overlay"===a&&i_(this.u,this.layout)}; g.k.PA=function(a){if("invideo-overlay"===a){a=sEa(this.G,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}}; g.k.Mh=function(){}; g.k.Wj=function(){}; g.k.He=function(){}; g.k.dg=function(a){a&&i_(this.u,this.layout)}; g.k.Hi=function(a){var b=t_(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=mDa(this.Ga.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.gb(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.ie(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.ie(0,0)}if(this.C=s_(a,d,c))b.onErrorCommand&&this.J.get().executeCommand(b.onErrorCommand,this.layout.layoutId),i_(this.u,this.layout)}; g.k.vf=function(){}; g.k.Ds=function(){return this.Jb().layoutId}; g.k.wA=function(){return this.C}; g.k.release=function(){nZ.prototype.release.call(this);this.Ga.get().removeListener(this);VY(this.Wa.get(),this)};x_.prototype.nf=function(a){"ad-info-hover-text-button"===a&&((this.i=this.Ga.get().Vk(1))||this.Ga.get().pauseVideo())}; x_.prototype.bl=function(){this.i||this.Ga.get().resumeVideo(1)};g.v(y_,nZ);g.k=y_.prototype;g.k.init=function(){nZ.prototype.init.call(this);this.Ga.get().addListener(this)}; g.k.startRendering=function(a){var b=X(this.layout.Ja,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.i.push(new tI(b,this.layout.layoutId,{adsClientData:this.layout.zc},!0,!0));nZ.prototype.startRendering.call(this,a);this.callback.Bc(this.slot,a)}; g.k.Bc=function(){}; g.k.nf=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=X(this.layout.Ja,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.Qo(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.Xo(this.slot,this.layout):Q("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))}; g.k.Hi=function(a){450>a.width&&i_(this.u,this.layout)}; g.k.vf=function(){}; g.k.Mh=function(){}; g.k.He=function(){}; g.k.dg=function(){}; g.k.Wj=function(){}; g.k.ra=function(){nZ.prototype.ra.call(this)}; g.k.release=function(){nZ.prototype.release.call(this);this.Ga.get().removeListener(this)};rEa.prototype.gf=function(a,b,c,d){if(b=tZ(a,c,d,this.i,this.Ga,this.Wa,this.G,this.Ad))return b;if(gZ(d,qEa()))return new w_(c,d,this.Wa,this.B,this.i,a,this.l,this.C,this.Ga,this.u,this.Pa,this.Ad,new x_(this.Ga));if(gZ(d,pEa()))return new v_(c,d,this.Wa,this.B,this.i,a,this.l,this.Ga,this.u,this.Pa,this.Ad,new x_(this.Ga));if(gZ(d,{Ud:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],sf:["LAYOUT_TYPE_SURVEY"]}))return new y_(c,d,a,this.i,this.l,this.Ga);if(gZ(d,{Ud:["metadata_type_player_bytes_layout_controls_callback_ref", "metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],sf:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new p_(c,d,a,this.i,this.Wa);throw new xX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kX(d.Ja)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.v(z_,g.F);g.k=z_.prototype;g.k.Rh=function(a,b,c,d){if(this.Eb.has(b.triggerId))throw new FX("Tried to register duplicate trigger for slot.");if(!(b instanceof bY))throw new FX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Eb.set(b.triggerId,new OZ(a,b,c,d));a=this.i.has(b.je)?this.i.get(b.je):new Set;a.add(b);this.i.set(b.je,a)}; g.k.ai=function(a){this.Eb.delete(a.triggerId);if(!(a instanceof bY))throw new FX("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.l.get(a.triggerId);b&&(b.dispose(),this.l.delete(a.triggerId));if(b=this.i.get(a.je))b.delete(a),0===b.size&&this.i.delete(a.je)}; g.k.jh=function(){}; g.k.Ni=function(){}; g.k.Mi=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Xj=function(){}; g.k.Yj=function(){}; g.k.Ki=function(){}; g.k.Vj=function(){}; g.k.Oh=function(){}; g.k.Bc=function(a,b){var c=this;if(this.i.has(b.layoutId)){b=this.i.get(b.layoutId);a={};b=g.q(b);for(var d=b.next();!d.done;a={Xq:a.Xq},d=b.next())a.Xq=d.value,d=new g.J(function(e){return function(){var f=c.Eb.get(e.Xq.triggerId);DX(c.u(),[f])}}(a),a.Xq.durationMs),d.start(),this.l.set(a.Xq.triggerId,d)}}; g.k.Nc=function(){};g.v(A_,g.F);A_.prototype.ra=function(){this.B.get().removeListener(this);g.F.prototype.ra.call(this)};g.v(tEa,g.F);uEa.prototype.gf=function(a,b,c,d){if(b=tZ(a,c,d,this.i,this.Ga,this.Wa,this.G,this.Ad))return b;if(gZ(d,qEa()))return new w_(c,d,this.Wa,this.B,this.i,a,this.l,this.C,this.Ga,this.u,this.Pa,this.Ad,new x_(this.Ga));if(gZ(d,pEa()))return new v_(c,d,this.Wa,this.B,this.i,a,this.l,this.Ga,this.u,this.Pa,this.Ad,new x_(this.Ga));throw new xX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kX(d.Ja)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.v(vEa,g.F);g.v(wEa,g.F);g.v(xEa,g.F);g.v(C_,sZ);C_.prototype.startRendering=function(a){sZ.prototype.startRendering.call(this,a);X(this.layout.Ja,"metadata_ad_video_is_listed")&&(a=X(this.layout.Ja,"metadata_type_ad_info_ad_metadata"),this.G.get().I.Na("onAdMetadataAvailable",a))};zEa.prototype.gf=function(a,b,c,d){if(gZ(d,yEa()))return new C_(a,c,d,this.l,this.Ga,this.Wa,this.u,this.i,this.Ad);throw new xX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kX(d.Ja)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.v(AEa,g.F);BEa.prototype.gf=function(a,b,c,d){if(NY(this.Pa.get())&&gZ(d,yEa()))return new C_(a,c,d,this.i,this.Ga,this.Wa,this.l,this.u,this.Ad);if(a=tZ(a,c,d,this.i,this.Ga,this.Wa,this.l,this.Ad))return a;throw new xX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kX(d.Ja)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.v(CEa,g.F);g.v(D_,g.F);D_.prototype.u=function(){return this.l};E_.prototype.Dv=function(a){this.Aj.Dv(a)}; E_.prototype.tv=function(){try{this.Aj.tv()}catch(a){}}; E_.prototype.Tl=function(){this.i().Tl()}; E_.prototype.Gj=function(){this.i().Gj()};g.v(F_,mK); F_.prototype.u=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.Na("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.l,interactionLoggingClientData:b.i});break;case 3:this.i.Na("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1); this.i.Na("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.l,interactionLoggingClientData:b.i});break;case 3:b.renderer&&(b=this.i.getVideoData(1),this.i.Na("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.i.Na("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);this.i.Na("updateKevlarOrC3Companion", {contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.l,interactionLoggingClientData:b.i});break;case 3:b=this.i.getVideoData(1),this.i.Na("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.i.Na("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.i.Na("updateEngagementPanelAction",b.addAction);this.i.Na("changeEngagementPanelVisibility", b.expandAction);break;case 3:this.i.Na("changeEngagementPanelVisibility",b.hideAction),this.i.Na("updateEngagementPanelAction",b.removeAction)}};g.v(G_,tK);g.k=G_.prototype;g.k.init=function(a,b,c){tK.prototype.init.call(this,a,b,c);g.hg(this.B,"stroke-dasharray","0 "+this.u);this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){vK(this);tK.prototype.hide.call(this)}; g.k.show=function(){uK(this);tK.prototype.show.call(this)}; g.k.Uo=function(){this.hide()}; g.k.Im=function(){if(this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&g.hg(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.u+" "+this.u)}};g.v(H_,PJ);g.k=H_.prototype; g.k.init=function(a,b,c){PJ.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.Ou(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.G.hide(),this.L=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.B-a)/1E3)),a!==this.X&&(sK(this.messageText,{TIME_REMAINING:String(a)}),this.X=a)))}};g.v(P_,PJ); P_.prototype.init=function(a,b,c){PJ.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new cK(this.api,this.Ta,this.layoutId,this.i,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.ya(this.answer),a.init(fH("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.l=new kK(this.api,this.Ta,this.layoutId,this.i,["ytp-ad-survey-answer-toggle-button"]),this.l.ya(this.answer), g.G(this,this.l),this.l.init(fH("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()}; P_.prototype.clear=function(){this.hide()};g.v(Q_,PJ);Q_.prototype.init=function(a,b,c){PJ.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new kK(this.api,this.Ta,this.layoutId,this.i,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.ya(this.l),this.button.init(fH("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.v(R_,cK);R_.prototype.init=function(a,b,c){cK.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.cw(b.text),a=!g.oc(b));a||g.Pu(Error("No submit text was present in the renderer."))}; R_.prototype.onClick=function(a){this.W("l");cK.prototype.onClick.call(this,a)};g.v(S_,PJ); S_.prototype.init=function(a,b,c){PJ.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new EK(this.api,this.Ta,this.layoutId,this.i,this.B,this.Vh),c.ya(this.G),c.init(fH("skip-button"),a,this.macros),g.G(this,c),this.l=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new yK(this.api,this.Ta,this.layoutId,this.i,this.B,!1),c.ya(this.G),c.init(fH("ad-preview"),a,this.macros),zK(c),g.G(this,c),this.l=c);null==this.l&&g.Ou(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b))); b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new R_(this.api,this.Ta,this.layoutId,this.i),c.ya(this.submitButton),c.init(fH("survey-submit"),a,this.macros),g.G(this,c),this.u=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new HK(this.api,this.Ta,this.layoutId,this.i,!0),c.ya(this.C),c.init(fH("simple-ad-badge"),a,this.macros),g.G(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new MK(this.api,this.Ta,this.layoutId,this.i,this.B,void 0),c.ya(this.C), c.init(fH("ad-duration-remaining"),a,this.macros),g.G(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new qK(this.api,this.Ta,this.layoutId,this.i,this.element),g.G(this,a),a.ya(this.C),a.init(fH("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()}; S_.prototype.clear=function(){this.hide()};g.v(T_,PJ);T_.prototype.init=function(a,b,c){PJ.prototype.init.call(this,a,b,c);REa(this)}; T_.prototype.show=function(){this.B=g.Ra();PJ.prototype.show.call(this)}; T_.prototype.cJ=function(){};g.v(U_,T_);g.k=U_.prototype;g.k.init=function(a,b,c){var d=this;T_.prototype.init.call(this,a,b,c);b.questionText&&g.Me(this.questionText,g.cw(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&OEa(d,e.instreamSurveyAdAnswerRenderer,c)}); this.G=new Set(this.u.map(function(e){return e.l.l})); (a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&SEa(this,a,c);b.surveyAdQuestionCommon&&QEa(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.N(this.element,"change",this.onChange);this.show()}; g.k.cJ=function(){V_(this,!1);this.C.u.subscribe("l",this.MR,this)}; g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.l?TEa(this):this.G.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),V_(this,!0))}; g.k.MR=function(){var a=this,b=this.u.reduce(function(d,e){var f=e.toggledLoggingParams;e.l&&e.l.isToggled()&&f&&d.push(f);return d},[]).join("&"),c=this.submitEndpoints.map(function(d){if(!d.loggingUrls)return d; d=g.Ub(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=Id(e.baseUrl,b));return e}); return d}); c&&c.forEach(function(d){return a.Ta.executeCommand(d,a.macros)})}; g.k.clear=function(){g.R(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.v(W_,T_);W_.prototype.init=function(a,b,c){var d=this;T_.prototype.init.call(this,a,b,c);b.questionText&&g.Me(this.questionText,g.cw(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&OEa(d,e.instreamSurveyAdAnswerRenderer,c)}); b.surveyAdQuestionCommon?QEa(this,b.surveyAdQuestionCommon):g.Ou(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()}; W_.prototype.clear=function(){g.R(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.v(X_,PJ); X_.prototype.init=function(a,b,c){var d=this;PJ.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new W_(d.api,d.Ta,d.layoutId,d.i,d.Rg,d.Vh);f.ya(d.l);f.init(fH("survey-question-single-select"),e,c);d.questions.push(f);g.G(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new U_(d.api,d.Ta,d.layoutId,d.i,d.Rg,d.Vh), f.ya(d.l),f.init(fH("survey-question-multi-select"),e,c),d.questions.push(f),g.G(d,f))}); this.show()}; X_.prototype.clear=function(){g.R(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.v(Y_,PJ); Y_.prototype.init=function(a,b,c){var d=this;PJ.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.Ou(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){VEa(this.interstitial,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape); VEa(this.logoImage,b.brandImage);g.Me(this.text,g.cw(b.text));this.actionButton=new cK(this.api,this.Ta,this.layoutId,this.i,["ytp-ad-survey-interstitial-action-button"]);g.G(this,this.actionButton);this.actionButton.ya(this.u);this.actionButton.init(fH("button"),b.ctaButton.buttonRenderer,c);this.actionButton.show();var e=b.timeoutCommands;this.l=this.Rg?new IK(this.api,1E3*a):new JK(1E3*a);this.l.subscribe("g",function(){d.transition.hide();if(!d.Rg){for(var h=g.q(e),l=h.next();!l.done;l=h.next())d.Ta.executeCommand(l.value, c);d.Ta.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)}}); g.G(this,this.l);this.N(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.EC)d.api.onAdUxClicked(d.componentType,d.layoutId);else for(l=g.q(l),m=l.next();!m.done;m=l.next())d.Ta.executeCommand(m.value,d.macros)}); this.transition.show(100);if(!this.Rg&&b.impressionCommands){a=g.q(b.impressionCommands);for(var f=a.next();!f.done;f=a.next())this.Ta.executeCommand(f.value,c)}}else g.Ou(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Ou(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Ou(Error("SurveyTextInterstitialRenderer has no button."));else g.Ou(Error("SurveyTextInterstitialRenderer has no text."));else g.Ou(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; Y_.prototype.clear=function(){this.hide()}; Y_.prototype.show=function(){WEa(!0);PJ.prototype.show.call(this)}; Y_.prototype.hide=function(){WEa(!1);PJ.prototype.hide.call(this)};var TGa="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.v(Z_,mK); Z_.prototype.u=function(a){var b=a.id,c=a.content,d=c.componentType;if(!TGa.includes(d))switch(a.actionType){case 1:a=this.C();var e=this.api,f=c.layoutId,h=c.i,l=c instanceof oH||c instanceof tI||c instanceof vI?c.Rg:!1,m=c instanceof oH||c instanceof zI||c instanceof tI?c.Vh:!1,n=c instanceof vI?c.EC:!1;h=void 0===h?{}:h;l=void 0===l?!1:l;m=void 0===m?!1:m;n=void 0===n?!1:n;switch(d){case "invideo-overlay":a=new I_(e,a,f,h);break;case "player-overlay":a=new TK(e,a,f,h,new WM(e),m);break;case "survey":a= new X_(e,a,f,h,l,m);break;case "ad-action-interstitial":a=new H_(e,a,f,h,l,m);break;case "survey-interstitial":a=new Y_(e,a,f,h,l,n);break;case "ad-message":a=new O_(e,a,f,h,new WM(e,1));break;default:a=null}if(!a){g.Pu(Error("No UI component returned from ComponentFactory for type: "+d));break}Lb(this.l,b)?g.Pu(Error("Ad UI component already registered: "+b)):this.l[b]=a;a.bind(c);this.B.append(a.jJ);break;case 2:b=XEa(this,a);if(null==b)break;b.bind(c);break;case 3:c=XEa(this,a),null!=c&&(g.ui(c), Lb(this.l,b)?(c=this.l,b in c&&delete c[b]):g.Pu(Error("Ad UI component does not exist: "+b)))}}; Z_.prototype.ra=function(){g.vi(Object.values(this.l));this.l={};mK.prototype.ra.call(this)};g.v($_,g.cM);g.k=$_.prototype;g.k.create=function(){this.load();this.created=!0}; g.k.load=function(){g.cM.prototype.load.call(this);this.player.getRootNode().classList.add("ad-created");var a=this.i.i.le.bh,b=this.u(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(m){return m.adPlacementRenderer}); e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;f=aFa(f,a,e);var h=c&&c.clientPlaybackNonce||"";c=c&&c.Jn||!1;var l=1E3*this.player.getDuration(1);FJ(a,f.Zj)?(this.Ta=new CJ(this,this,this.player,this.Gl,b,this.i.i.le),Ama(this.Ta,f.In,f.Zj),this.i.i.dl.ih(h,l,c,f.Zj,f.Zj.concat(f.In),e,d),DJ(this.Ta,f.Zj)):(this.i.i.dl.ih(h,l,c,f.Zj,f.Zj.concat(f.In),e,d),this.Ta=new CJ(this,this,this.player,this.Gl,b,this.i.i.le),Ama(this.Ta,f.In,f.Zj))}; g.k.destroy=function(){var a=this.player.getVideoData(1);this.i.i.dl.Tj(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1}; g.k.unload=function(){g.cM.prototype.unload.call(this);this.player.getRootNode().classList.remove("ad-created");if(null!==this.Ta){var a=this.Ta;this.Ta=null;a.dispose()}null!=this.l&&(a=this.l,this.l=null,a.dispose());this.Gl.reset()}; g.k.Uh=function(){return!1}; g.k.FC=function(){return null===this.Ta?!1:this.Ta.FC()}; g.k.Uj=function(a){null!==this.Ta&&this.Ta.Uj(a)}; g.k.getAdState=function(){return this.Ta?this.Ta.lw:-1}; g.k.getOptions=function(){return Object.values(SGa)}; g.k.Me=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=MG(this.player),Object.assign(b,a.X5),this.Ta&&!b.AD_CPN&&(b.AD_CPN=this.Ta.Mv()),a=g.fn(a.url,b)):a=null,a;case "isExternalShelfAllowedFor":a:if(b.playerResponse){a=b.playerResponse.adPlacements||[];for(b=0;b