var _yt_player={};(function(g){var window=this;/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var ba,da,aaa,ha,ia,ka,oa,pa,qa,sa,ta,ua,baa,caa,wa,daa,xa,ya,za,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ma,Ka,Pa,Qa,gaa,haa,Za,$a,ab,iaa,jaa,kaa,cb,laa,eb,fb,maa,naa,pb,oaa,vb,wb,paa,Bb,yb,qaa,zb,raa,saa,taa,Lb,Nb,Ob,Sb,Ub,Vb,cc,ec,hc,jc,mc,nc,waa,oc,pc,qc,zc,Ac,Cc,Hc,Nc,Oc,Sc,Qc,Aaa,Daa,Eaa,Faa,Wc,Yc,$c,Zc,bd,ed,Gaa,Haa,dd,Iaa,kd,ld,md,qd,sd,td,Laa,ud,vd,zd,Ad,Bd,Cd,Dd,Ed,Fd,Gd,Id,Md,Nd,Pd,Qd,Rd,Naa,Sd,Td,Ud,Vd,Wd,Xd,ee,ge,je,ne,oe,ve,we,ze,xe,Be,De,Ce,Saa,le,Qe,Oe,Pe,Se,Re,ke,Te,Uaa,Ye,$e,Xe,bf,cf,df,gf,hf,jf,kf,
lf,Vaa,sf,of,Ef,Waa,If,Kf,Mf,Xaa,Nf,Pf,Qf,Rf,Sf,Tf,Uf,Vf,Wf,Xf,$f,Zf,ag,bg,$aa,bba,cba,eba,gg,hg,jg,fba,lg,og,tg,ug,xg,gba,Ag,zg,Bg,hba,Jg,Kg,Lg,iba,Mg,Ng,Og,Pg,Qg,Rg,Sg,jba,Tg,Ug,Vg,kba,lba,Wg,Yg,Xg,$g,ah,dh,bh,nba,ch,eh,fh,hh,gh,oba,ih,qba,pba,rba,lh,sba,nh,oh,ph,mh,qh,tba,rh,uba,uh,wba,vh,wh,xh,xba,zh,Bh,Hh,Kh,Mh,Jh,Ih,Nh,yba,Oh,Ph,Qh,Rh,Aba,Wh,Xh,Yh,Zh,Cba,$h,ai,bi,ci,di,Dba,fi,gi,hi,ii,ji,ki,mi,ni,oi,pi,qi,li,ri,si,ti,Eba,Fba,ui,vi,Gba,wi,xi,Hba,zi,Iba,Ai,Bi,Ci,Jba,Di,Ei,Li,Ni,Oi,Pi,Qi,Ri,Ki,
Mi,Lba,Si,Ti,Vi,Ui,Mba,Nba,Oba,Wi,Xi,Yi,Zi,Sba,Tba,Uba,$i,bj,Vba,Wba,Xba,dj,ej,Yba,fj,Zba,$ba,gj,hj,ij,aca,kj,lj,mj,nj,oj,pj,qj,rj,sj,tj,uj,bca,cca,vj,dca,xj,wj,Aj,Bj,zj,eca,ica,hca,Dj,jca,kca,lca,nca,mca,oca,Ej,Gj,Ij,Jj,Kj,qca,Mj,Nj,rca,sca,Oj,Pj,Qj,Rj,tca,Sj,Tj,vca,Uj,wca,Vj,Wj,Yj,Zj,ck,dk,ek,gk,hk,ik,kk,mk,nk,Xj,ok,qk,pk,rk,sk,uk,yca,vk,xca,wk,zca,xk,Aca,Bca,zk,Bk,Ck,Dk,Ek,Ak,Hk,Ik,Fk,Cca,Eca,Fca,Kk,Lk,Mk,Nk,Gca,Ok,Pk,Qk,Rk,Sk,Tk,Uk,Vk,Yk,Xk,Ica,Jca,Zk,al,Wk,$k,Hca,bl,cl,Lca,Mca,Nca,Oca,gl,hl,
il,Pca,dl,jl,kl,Kca,Qca,Rca,Sca,nl,ll,ol,ql,Xca,Tca,ul,vl,wl,xl,yl,zl,jj,Yca,Al,Bl,Zca,$ca,ada,bda,cda,Dl,El,Fl,Gl,Hl,Il,fda,gda,Jl,Ml,Ol,ida,Pl,Ql,Rl,Tl,Vl,Xl,jda,Ul,cm,dm,$l,gm,fm,lda,Yl,Wl,jm,km,lm,mm,om,nda,pm,qm,oda,vm,xm,zm,Am,Cm,Dm,Em,Gm,pda,Hm,Jm,Lm,Mm,Im,Km,ym,Fm,rda,Pm,Nm,Om,Rm,qda,Qm,Vm,Ym,Xm,cn,dn,fn,uda,en,hn,kn,jn,sda,nn,pn,xda,rn,sn,un,vn,wn,xn,yn,yda,En,Fn,Ada,Gn,Hn,Fda,Bda,On,Kda,Pn,Qn,Mda,Tn,Un,Vn,Wn,Nda,Zn,$n,ao,bo,eo,fo,go,ho,jo,ko,no,oo,po,Qda,Rda,ro,so,wo,to,xo,zo,Ao,yo,Sda,
Do,Go,Ro,Qo,Vda,Wda,To,Wo,Xo,Yo,Zo,Yda,Zda,fp,gp,hp,$da,mp,np,aea,pp,rp,op,up,xp,wp,vp,zp,Fp,Ep,bea,eea,dea,Qp,Rp,Sp,Tp,Up,Vp,Wp,$p,Yp,aq,bq,cq,fq,eq,gea,iea,hq,jea,lq,kq,lea,mq,nq,mea,rq,nea,oea,pq,pea,tq,qea,yq,zq,Aq,Bq,rea,sea,Cq,Eq,Fq,Dq,Gq,tea,Hq,uea,Iq,vea,Oq,Pq,Qq,Rq,Tq,yea,Uq,Vq,Aea,zea,Xq,Sq,xea,Yq,Zq,$q,Wq,Bea,Cea,Dea,cr,Gea,fr,er,Iea,Hea,hr,ir,gr,Jea,Kea,nr,or,Oea,rr,sr,Pea,ur,wr,yr,xr,Ar,Br,Cr,Er,Dr,Rea,Hr,Ir,Jr,Kr,Pr,Qr,Nr,Uea,Sea,Rr,Ur,Vr,Wea,Sr,Tr,Xr,Zr,$r,cs,as,es,ds,fs,Xea,hs,is,
ks,Zea,ms,ns,os,qs,$ea,ts,vs,ws,xs,zs,Ds,Fs,Es,ys,Gs,Ks,Hs,bfa,bt,$s,cfa,ft,et,ht,dt,gt,it,jt,kt,lt,mt,nt,ot,efa,pt,qt,tt,ut,rt,ffa,vt,wt,zt,Bt,gfa,Ct,Gt,Et,At,Ht,Dt,Ft,It,Jt,Kt,hfa,Mt,Nt,Ot,Pt,Vt,ifa,Rt,Xt,Zt,bu,au,Tt,Yt,Wt,jfa,cu,eu,fu,kfa,gu,hu,Qt,St,Ut,$t,lfa,iu,ju,ku,lu,ou,mu,mfa,pu,qu,ru,tu,uu,nfa,nu,vu,xu,yu,zu,Au,Bu,Cu,Du,Eu,Fu,Gu,Hu,Iu,Ju,Ku,Lu,Mu,Nu,Pu,Ru,Qu,Su,Tu,Uu,Vu,Wu,ofa,pfa,$u,av,bv,dv,ev,gv,ufa,hv,iv,jv,kv,mv,nv,ov,pv,lv,wfa,qv,rv,tv,uv,vv,xfa,wv,yfa,zfa,xv,yv,Afa,Av,Bfa,zv,Bv,Dv,
Ev,Fv,Hv,Iv,Jv,Mv,Nv,Ov,Kv,Sv,wu,Tv,Uv,Vv,Wv,Xv,Qv,Yv,Zv,aw,bw,cw,dw,fw,hw,iw,jw,kw,lw,mw,Cfa,nw,Dfa,qw,Efa,rw,Ffa,tw,Gfa,Hfa,Ifa,Kfa,ww,Lfa,Mfa,Nfa,Ofa,Pfa,xw,yw,pw,uw,vw,Jfa,Qfa,Rfa,Bw,Dw,Cw,Sfa,zw,Aw,Tfa,Ufa,Vfa,Wfa,Xfa,Ew,Yfa,Zfa,Gw,Hw,$fa,Kw,Qw,Ow,Tw,Lw,Uw,Iw,Vw,Mw,Jw,Sw,Ww,Xw,Yw,$w,Zw,ax,cx,dx,hx,ix,gx,kx,lx,mx,ox,nx,px,qx,rx,sx,vx,wx,gga,tx,iga,ux,Ex,Dx,Gx,zx,Fx,xx,hga,jga,Hx,Ix,yx,ega,Jx,Kx,Lx,Mx,Nx,Ox,Px,Qx,Xx,Tx,kga,Zx,Ux,Vx,Sx,Wx,Rx,Yx,cy,by,ay,ey,fy,gy,hy,iy,mga,jy,ky,ly,my,ny,oy,py,ry,
qy,sy,ty,yy,Ay,By,Cy,Dy,Fy,Gy,Ty,zy,vy,uy,wy,Uy,Vy,Wy,Xy,Sy,Ey,Hy,Yy,Zy,$y,az,cz,bz,dz,pga,Nw,Bx,Ax,fz,Pw,gz,hz,Fw,ez,iz,jz,lz,kz,rga,mz,nz,pz,qz,rz,sz,uz,tz,vz,wz,xz,yz,zz,sga,Az,tga,uga,yga,zga,vga,wga,xga,Bz,Cz,Aga,Bga,Dz,Ez,Fz,Cga,Gz,Iz,Ega,Jz,Fga,Gga,Kz,Lz,Hga,Iga,Jga,Mz,Kga,Qz,Nz,Tz,Lga,Mga,Uz,Nga,Oga,Vz,Wz,Pga,Xz,Yz,Qga,Rga,Sga,Rz,Tga,Zz,$z,aA,Wga,Vga,cA,dA,bA,eA,fA,Xga,hA,iA,jA,lA,mA,gA,nA,kA,pA,qA,sA,rA,tA,uA,wA,xA,yA,zA,FA,BA,IA,CA,LA,JA,MA,EA,bha,NA,AA,PA,QA,RA,SA,TA,VA,WA,XA,ZA,aB,$A,
YA,bB,cB,cha,dB,fB,gB,hB,nga,iB,dha,jB,kB,lB,mB,eha,oB,pB,nB,qB,rB,sB,tB,fha,xB,uB,gha,zB,hha,AB,iha,jha,S,BB,CB,DB,EB,FB,dC,eC,hC,iC,QB,VB,GB,ZB,YB,bC,lC,nC,pC,uC,NB,MB,wC,XB,yC,zC,AC,BC,CC,DC,EC,FC,rha,sha,tha,GC,HC,JC,KC,LC,MC,NC,OC,IC,PC,uha,RC,xha,yha,UC,TC,wha,vha,SC,VC,zha,Cha,Dha,Eha,bD,cD,Fha,dD,nla,YC,eD,fD,XC,Aha,hD,ZC,$C,Bha,iD,aD,ola,pla,qla,jD,kD,rla,lD,mD,sla,nD,tla,rD,oD,qD,pD,uD,vla,wla,xla,zD,yla,yD,AD,BD,CD,DD,ED,FD,GD,HD,Bla,Ala,zla,Cla,JD,Dla,aga,cga,KD,ND,Fla,OD,PD,QD,SD,UD,
WD,XD,ZD,Hla,Jla,Kla,Lla,YD,aE,cE,Mla,gE,Nla,fE,iE,jE,eE,hE,LD,Ela,dE,VD,Gla,Ola,MD,bE,TD,RD,kE,Pla,Qla,Rla,mE,Tla,nE,Ula,Sla,Vla,oE,pE,Wla,qE,rE,Xla,Yla,Zla,sE,tE,$la,dma,uE,ama,cma,bma,vE,ema,wE,fma,gma,hma,AE,BE,EE,DE,FE,GE,HE,IE,jma,kma,lma,KE,LE,OE,NE,mma,QE,RE,ME,SE,TE,nma,XE,aF,bF,dF,qma,iF,kF,fF,lF,pma,rma,mF,oF,pF,nF,qF,sma,tma,eF,jF,uF,uma,vma,wma,yma,vF,wF,xma,yF,zF,AF,CF,DF,hF,YE,FF,$E,ZE,HF,tF,zma,MF,NF,OF,PF,QF,cF,SF,RF,sF,rF,TF,EF,UF,gF,Ama,WE,XF,VE,JE,YF,Bma,aG,bG,cG,dG,Cma,Dma,eG,
Ema,gG,fG,hG,iG,lG,Fma,Gma,mG,nG,tG,Jma,Kma,rG,Hma,zG,PG,QG,Tma,Uma,VG,WG,Vma,ZG,$G,aH,bH,cH,dH,eH,fH,XG,gH,Wma,hH,iH,jH,kH,Xma,lH,mH,Yma,nH,oH,Zma,pH,$ma,qH,sH,ana,bna,dna,cna,tH,uH,ena,vH,wH,xH,yH,zH,AH,BH,CH,DH,EH,fna,FH,GH,HH,IH,KH,ina,JH,jna,gna,LH,hna,MH,kna,NH,OH,PH,QH,RH,SH,TH,VH,UH,WH,YH,ZH,mna,$H,fI,hI,bI,eI,kI,dI,mI,gI,nI,jI,iI,pI,cI,aI,qI,sI,rI,tI,uI,wI,yI,AI,CI,DI,BI,zI,EI,FI,GI,HI,II,JI,nna,KI,LI,MI,NI,OI,PI,QI,RI,SI,TI,UI,VI,WI,XI,YI,ZI,$I,bJ,cJ,dJ,eJ,fJ,gJ,hJ,iJ,kJ,lJ,ona,mJ,rna,pna,
qna,sna,nJ,oJ,qJ,rJ,pJ,sJ,tJ,tna,una,uJ,vJ,wJ,xJ,yJ,zJ,AJ,BJ,CJ,DJ,EJ,FJ,GJ,HJ,IJ,JJ,KJ,LJ,MJ,NJ,OJ,PJ,QJ,RJ,SJ,TJ,UJ,VJ,WJ,XJ,YJ,ZJ,$J,aK,bK,cK,dK,eK,fK,gK,vna,xna,yna,wna,iK,hK,jK,kK,lK,mK,nK,oK,pK,tK,uK,vK,wK,xK,yK,zK,zna,CK,DK,AK,GK,EK,FK,Ana,HK,Bna,IK,JK,Cna,KK,LK,MK,NK,PK,Dna,Fna,Gna,SK,Hna,RK,QK,Ena,TK,VK,UK,WK,YK,XK,ZK,Ina,$K,cL,dL,eL,fL,ID,Kna,jL,lL,mL,nL,oL,pL,rL,Lna,tL,sL,Mna,Nna,uL,vL,wL,xL,Pna,yL,Rna,Qna,zL,AL,BL,DL,EL,CL,Tna,FL,GL,Una,HL,IL,JL,KL,Vna,LL,Wna,ML,NL,OL,Xna,PL,RL,TL,VL,
XL,YL,bM,Yna,Zna,ZL,$L,aM,cM,fM,dM,hM,oM,$na,kM,lM,pM,iM,boa,aoa,rM,doa,qM,mM,uM,sM,vM,wM,xM,yM,tM,AM,zM,DM,EM,qL,coa,OK,CM,JM,KM,LM,MM,NM,OM,eoa,PM,QM,SM,UM,foa,VM,W,YM,ZM,goa,bN,eN,fN,gN,hN,jN,mN,nN,oN,qN,rN,sN,tN,vN,wN,xN,zN,AN,BN,CN,FN,GN,HN,IN,hoa,JN,KN,LN,MN,NN,ON,QN,RN,SN,TN,UN,ioa,VN,WN,XN,YN,joa,koa,loa,moa,ZN,noa,ooa,poa,$N,aO,bO,dO,fO,qoa,eO,gO,hO,uoa,roa,toa,soa,iO,jO,voa,kO,lO,woa,xoa,yoa,zoa,mO,Aoa,Boa,nO,oO,qO,sO,tO,rO,xO,yO,zO,BO,CO,DO,EO,Doa,Eoa,Foa,HO,Goa,Hoa,Ioa,Joa,IO,GO,KO,LO,
Koa,MO,NO,OO,RO,SO,TO,UO,VO,Loa,WO,Moa,XO,YO,ZO,$O,aP,bP,cP,Noa,dP,eP,fP,gP,hP,Ooa,Qoa,Poa,Roa,iP,Soa,Toa,jP,Uoa,kP,lP,mP,Voa,Woa,Xoa,nP,pP,Zoa,qP,rP,sP,tP,apa,$oa,uP,vP,wP,xP,yP,cpa,bpa,zP,AP,AO,BP,epa,DP,ipa,kpa,FP,lpa,GP,EP,HP,IP,KP,npa,opa,ppa,qpa,BK,QP,SP,TP,tpa,upa,vpa,wpa,mpa,xpa,JP,zpa,aQ,VP,OP,bQ,WP,MP,Apa,ypa,LP,UP,YP,cQ,PP,RP,$P,ZP,Cpa,dQ,Epa,Dpa,eQ,X,Ipa,fQ,Jpa,Fpa,Kpa,gQ,Npa,Lpa,Spa,Ppa,Opa,Vpa,Upa,Wpa,Zpa,Ypa,bqa,dqa,eqa,fqa,hqa,qQ,UG,iqa,sQ,RG,wQ,Sma,xQ,uO,yQ,pQ,hQ,zQ,kqa,iQ,lqa,AQ,
BQ,mQ,mqa,Rpa,kQ,lQ,jQ,nqa,CQ,DQ,rQ,oQ,nQ,Xpa,$pa,EQ,FQ,oqa,GQ,HQ,IQ,JQ,KQ,LQ,MQ,NQ,OQ,YG,qqa,pqa,rqa,cqa,Qpa,Mpa,Hpa,Gpa,Tpa,gqa,aqa,PQ,sqa,QQ,aJ,NP,rpa,tQ,RQ,SQ,uqa,vqa,TQ,wqa,UQ,VQ,WQ,gM,nM,xqa,yqa,XQ,zqa,Aqa,Coa,ZQ,$Q,Bqa,aR,bR,cR,vO,pO,Dqa,Eqa,eR,TG,fR,XP,YQ,Gqa,Hqa,Iqa,gR,hR,Jqa,Kqa,Lqa,Mqa,iR,jR,vQ,uQ,Nqa,kR,lR,Oqa,mR,nR,Pqa,Qqa,oR,pR,qR,sR,rR,tR,Rqa,uR,Sqa,vR,wR,Tqa,xR,zR,Uqa,yR,Vqa,Wqa,AR,BR,Xqa,CR,Yqa,DR,Zqa,$qa,ara,ER,FR,GR,HR,IR,JR,bra,cra,KR,LR,dra,MR,NR,OR,PR,QR,era,RR,fra,SR,TR,UR,
VR,WR,gra,hra,jra,lra,ira,YR,mra,nra,ora,ZR,$R,aS,jqa,pra,bS,qra,cS,kra,rra,sra,tra,vra,dS,wra,eS,fS,xra,gS,yra,zra,hS,Ara,iS,Bra,jS,kS,lS,mS,Cra,Dra,Era,Fra,oS,Gra,Hra,Ira,Jra,Lra,Kra,qS,Mra,Nra,SG,Ora,wS,Pra,Qra,yS,Rra,zS,Sra,Tra,Ura,AS,BS,CS,FS,Wra,GS,HS,IS,JS,Xra,Yra,Zra,$ra,asa,csa,NS,bsa,dsa,OS,PS,esa,fsa,gsa,isa,hsa,jsa,ksa,msa,lsa,osa,RS,tsa,psa,usa,vsa,rsa,wsa,ssa,SS,Asa,ysa,zsa,Gsa,Dsa,Hsa,Isa,Jsa,QS,Csa,Bsa,Fsa,xsa,Ksa,US,Lsa,qsa,Msa,VS,WS,Nsa,Osa,Qsa,Rsa,XS,Psa,YS,ZS,aT,Tsa,Vsa,Wsa,Ysa,
Xsa,bT,Usa,dT,cT,Zsa,$sa,$S,ata,eT,hT,bta,dta,cta,gT,eta,fta,gta,ita,hta,jta,iT,fT,kta,lta,jT,kT,nta,ota,pta,mta,qta,rta,sta,tta,vta,xta,uta,yta,zta,Ata,Bta,wta,lT,Cta,Dta,Eta,Fta,nT,oT,qT,sT,tT,Hta,uT,Ita,Jta,Kta,vT,rT,Mta,yT,Nta,Ota,Qta,Pta,Rta,zT,AT,Sta,CT,BT,DT,ET,Xta,Zta,$ta,HT,cua,JT,IT,dua,MT,bua,fua,aua,LT,gua,eua,iua,KT,NT,jua,kua,lua,Cqa,PT,mua,nua,oua,pua,hua,Gta,xT,rua,QT,RT,sua,uua,tua,wua,xua,VT,UT,yua,zua,TT,ST,vua,ZT,XT,$T,WT,Aua,bU,Eua,dU,fU,gU,hU,iU,Cua,eU,jU,Dua,Gua,Hua,Iua,aU,
Jua,cU,Fua,Kua,Bua,Lua,Nua,Oua,Mua,kU,lU,nU,oU,pU,mU,Pua,Qua,qU,tU,Rua,Uua,Tua,Sua,Vua,Xua,uU,vU,wU,xU,yU,zU,Yua,Zua,CU,ava,cva,bva,dva,fva,eva,DU,EU,gva,FU,GU,HU,IU,JU,KU,hva,iva,kva,lva,mva,nva,ova,pva,qva,LU,rva,sva,MU,NU,OU,PU,QU,RU,tva,SU,uva,vva,wva,TU,xva,UU,yva,VU,zva,Bva,Ava,Cva,Hva,Fva,Dva,Eva,Gva,XU,Jva,WU,Lva,$U,Mva,Nva,eV,oI,fV,gV,Qva,Rva,Uva,hV,dV,ZV,kV,YU,Sva,cW,Vva,eW,$V,gW,fW,dW,jW,lW,kW,ZU,$va,Ova,bV,hW,qW,awa,rW,bwa,aV,cwa,nW,pW,jV,Wva,ewa,dwa,gwa,fwa,sW,Yva,YV,tW,iV,cV,uW,oW,Pva,
vW,wW,jwa,hwa,aW,kwa,mW,lwa,iW,Zva,Tva,xW,mwa,owa,pwa,nwa,qwa,yW,zW,twa,swa,Kq,Nq,vwa,uwa,wwa,AW,xwa,DW,EW,ywa,BW,Bwa,zwa,CW,Awa,GW,FW,HW,Y,jM,Cwa,Dwa,Ewa,Fwa,LW,KW,MW,PW,$W,aX,ura,oG,Qwa,Swa,mX,Xwa,pX,Zwa,Wwa,$wa,axa,oX,Ywa,rX,sX,tX,uX,Gwa,vX,ZW,bxa,xX,cxa,wX,zX,dxa,CX,DX,IX,fxa,gxa,KX,JX,LX,hxa,ixa,NX,MX,jxa,PX,QX,lxa,kxa,TX,nxa,VX,RX,oxa,pxa,mxa,WX,ZX,qxa,YX,$X,bY,aY,eY,rxa,sxa,hY,txa,wxa,uxa,lY,mY,xxa,pY,qY,sY,uY,yxa,zxa,xY,Bxa,wY,Axa,Cxa,Dxa,AY,Exa,Gxa,Fxa,DY,Ixa,Hxa,EY,FY,IY,Kxa,Jxa,JY,KY,LY,
Lxa,MY,NY,OY,PY,Mxa,QY,RY,Oxa,Nxa,Qxa,Pxa,WY,UY,XY,VY,Rxa,Sxa,Txa,YY,ZY,$Y,Uxa,cZ,Vxa,eZ,fZ,gZ,iZ,jZ,kZ,lZ,Wxa,Zxa,mZ,Xxa,Yxa,nZ,cya,dya,oZ,fya,eya,gya,hya,iya,rZ,tZ,uZ,vZ,jya,kya,lya,mya,oya,pya,qya,zZ,DZ,sya,tya,BZ,xZ,AZ,FZ,wya,GZ,CZ,nya,vya,EZ,rya,uya,xya,yya,HZ,IZ,JZ,KZ,Aya,NZ,OZ,PZ,QZ,RZ,SZ,Bya,TZ,VZ,UZ,WZ,XZ,Cya,YZ,Dya,Fya,Eya,ZZ,$Z,Gya,a_,b_,Hya,c_,Iya,d_,Jya,e_,f_,j_,i_,Kya,h_,m_,Lya,Mya,n_,o_,q_,Nya,fY,Rya,BY,Oya,l_,Qya,CY,Pya,Sya,Uya,Tya,u_,Vya,v_,Wya,w_,Xya,Yya,Zya,z_,bza,$ya,cza,A_,y_,
dza,aza,B_,fza,eza,C_,E_,lza,H_,kza,jza,I_,D_,J_,iX,mza,G_,Ila,F_,nza,hza,K_,sza,M_,uza,vza,qza,O_,wza,P_,oza,R_,rza,xza,Q_,N_,yza,jX,zza,L_,Bza,V_,T_,W_,U_,Cza,X_,Eza,$_,Gza,Hza,XH,Iza,Jza,c0,b0,a0,Kza,Lza,Nwa,Owa,Mza,Nza,e0,f0,g0,i0,Zza,Uza,qG,Tza,aAa,bAa,l0,m0,hX,dAa,cAa,n0,Pwa,h0,kX,r0,fAa,s0,u0,Xza,Yza,A0,hAa,z0,j0,IM,jAa,E0,$za,F0,gAa,Jwa,kAa,lAa,w0,x0,v0,I0,qAa,o0,rAa,sAa,tAa,tza,vAa,J0,D0,gza,p0,S_,K0,L0,wAa,y0,eAa,H0,mAa,yAa,Kwa,iAa,IW,AAa,C0,O0,CAa,q0,bX,P0,DAa,EAa,Q0,FAa,Wza,G0,GAa,Vza,
R0,S0,Fza,HAa,IAa,LAa,NAa,W0,X0,aa,fa,ea,eaa,La,Ta,faa;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 b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
aaa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ha=function(a,b){if(b)a:{for(var c=ea,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];if(!(f in c))break a;c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&fa(c,d,{configurable:!0,writable:!0,value:f})}};
ia=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
g.q=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:da(a)}};
ka=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.la=function(a){return a instanceof Array?a:ka(g.q(a))};
g.u=function(a,b){a.prototype=ma(b.prototype);a.prototype.constructor=a;if(na)na(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.jd=b.prototype};
oa=function(){this.K=!1;this.D=null;this.B=void 0;this.u=1;this.F=this.I=0;this.P=this.C=null};
pa=function(a){if(a.K)throw new TypeError("Generator is already running");a.K=!0};
qa=function(a,b){a.C={dB:b,mC:!0};a.u=a.I||a.F};
g.ra=function(a,b,c){a.u=c;return{value:b}};
sa=function(a,b,c){a.I=b;void 0!=c&&(a.F=c)};
ta=function(a,b){a.u=b;a.I=0};
ua=function(a){a.I=0;var b=a.C.dB;a.C=null;return b};
baa=function(a){a.P=[a.C];a.I=0;a.F=0};
caa=function(a){var b=a.P.splice(0)[0];(b=a.C=a.C||b)?b.mC?a.u=a.I||a.F:void 0!=b.Jd&&a.F<b.Jd?(a.u=b.Jd,a.C=null):a.u=a.F:a.u=4};
wa=function(a){this.u=new oa;this.B=a};
daa=function(a,b){pa(a.u);var c=a.u.D;if(c)return xa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.u["return"]);
a.u["return"](b);return ya(a)};
xa=function(a,b,c,d){try{var e=b.call(a.u.D,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.u.K=!1,e;var f=e.value}catch(h){return a.u.D=null,qa(a.u,h),ya(a)}a.u.D=null;d.call(a.u,f);return ya(a)};
ya=function(a){for(;a.u.u;)try{var b=a.B(a.u);if(b)return a.u.K=!1,{value:b.value,done:!1}}catch(c){a.u.B=void 0,qa(a.u,c)}a.u.K=!1;if(a.u.C){b=a.u.C;a.u.C=null;if(b.mC)throw b.dB;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
za=function(a){this.next=function(b){pa(a.u);a.u.D?b=xa(a,a.u.D.next,b,a.u.N):(a.u.N(b),b=ya(a));return b};
this["throw"]=function(b){pa(a.u);a.u.D?b=xa(a,a.u.D["throw"],b,a.u.N):(qa(a.u,b),b=ya(a));return b};
this["return"]=function(b){return daa(a,b)};
this[Symbol.iterator]=function(){return this}};
g.Aa=function(a,b){var c=new za(new wa(b));na&&a.prototype&&na(c,a.prototype);return c};
Ba=function(a){function b(d){return a.next(d)}
function c(d){return a["throw"](d)}
return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}
f(a.next())})};
Ca=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Da=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{aC:e,DG:f}}return{aC:-1,DG:void 0}};
Ea=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Fa=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};
e[Symbol.iterator]=function(){return e};
return e};
Ga=function(a){return a?a:Array.prototype.fill};
Ha=function(a){return a?a:Array.prototype.copyWithin};
g.Ia=function(a,b,c){a=a.split(".");c=c||g.v;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
Ma=function(a){if(a&&a!=g.v)return Ka(a.document);null===La&&(La=Ka(g.v.document));return La};
Ka=function(a){return(a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&eaa.test(a)?a:""};
g.Na=function(a,b){for(var c=a.split("."),d=b||g.v,e=0;e<c.length;e++)if(d=d[c[e]],null==d)return null;return d};
g.Oa=function(){};
Pa=function(a){a.Xe=void 0;a.getInstance=function(){return a.Xe?a.Xe:a.Xe=new a}};
Qa=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Ra=function(a){var b=Qa(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Sa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Ua=function(a){return Object.prototype.hasOwnProperty.call(a,Ta)&&a[Ta]||(a[Ta]=++faa)};
gaa=function(a,b,c){return a.call.apply(a.bind,arguments)};
haa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.z=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.z=gaa:g.z=haa;return g.z.apply(null,arguments)};
g.Wa=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}};
g.Xa=function(a,b){for(var c in b)a[c]=b[c]};
g.A=function(){return Date.now()};
g.Ya=function(a,b){function c(){}
c.prototype=b.prototype;a.jd=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Yf=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
Za=function(a){return a};
$a=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,$a);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
ab=function(a,b){$a.call(this,iaa(a,b))};
iaa=function(a,b){for(var c=a.split("%s"),d="",e=c.length-1,f=0;f<e;f++)d+=c[f]+(f<b.length?b[f]:"%s");return d+c[e]};
jaa=function(){};
kaa=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.C=!b&&/[?&]ae=1(&|$)/.test(a);this.D=!b&&/[?&]ae=2(&|$)/.test(a);if((this.u=/[?&]adurl=([^&]*)/.exec(a))&&this.u[1]){try{var c=decodeURIComponent(this.u[1])}catch(d){c=null}this.B=c}};
cb=function(a){return function(){return a}};
g.db=function(a){return a};
laa=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
eb=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
fb=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
maa=function(a,b){var c=0;return function(d){g.v.clearTimeout(c);var e=arguments;c=g.v.setTimeout(function(){a.apply(b,e)},50)}};
g.gb=function(a){return a[a.length-1]};
naa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
g.jb=function(a,b,c){b=g.ib(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
g.ib=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
g.kb=function(a,b,c){var d=a.length,e="string"===typeof a?a.split(""):a;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};
g.nb=function(a,b){return 0<=lb(a,b)};
g.ob=function(a){return 0==a.length};
pb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.rb=function(a,b){var c=lb(a,b),d;(d=0<=c)&&g.qb(a,c);return d};
g.qb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.sb=function(a,b){var c=g.ib(a,b,void 0);0<=c&&g.qb(a,c)};
oaa=function(a,b){var c=0;naa(a,function(d,e){b.call(void 0,d,e,a)&&g.qb(a,e)&&c++})};
g.tb=function(a){return Array.prototype.concat.apply([],arguments)};
g.ub=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
vb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Ra(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};
g.xb=function(a,b,c,d){Array.prototype.splice.apply(a,wb(arguments,1))};
wb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
paa=function(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++];var f=e;f=g.Sa(f)?"o"+g.Ua(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};
g.Ab=function(a,b,c){return yb(a,c||zb,!1,b)};
Bb=function(a,b){return yb(a,b,!0,void 0,void 0)};
yb=function(a,b,c,d,e){for(var f=0,h=a.length,l;f<h;){var m=f+(h-f>>>1),n;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?f=m+1:(h=m,l=!n)}return l?f:-f-1};
g.Cb=function(a,b){a.sort(b||zb)};
qaa=function(a,b){var c=zb;g.Cb(a,function(d,e){return c(b(d),b(e))})};
g.Eb=function(a,b){if(!g.Ra(a)||!g.Ra(b)||a.length!=b.length)return!1;for(var c=a.length,d=raa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
zb=function(a,b){return a>b?1:a<b?-1:0};
raa=function(a,b){return a===b};
g.Fb=function(a,b,c){c=g.Ab(a,b,c);0>c&&g.xb(a,-(c+1),0,b)};
g.Hb=function(a,b,c){var d={};(0,g.Gb)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
saa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
taa=function(a,b){var c=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,c[0])};
g.Ib=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Kb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Lb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Mb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Nb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Ob=function(a){for(var b in a)return a[b]};
g.Pb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Qb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Rb=function(a,b){var c=g.Ra(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(null==a)return;a=a[d[c]]}return a};
Sb=function(a,b){return null!==a&&b in a};
g.Tb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Ub=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Vb=function(a,b){var c=Ub(a,b,void 0);return c&&a[c]};
g.Wb=function(a){for(var b in a)return!1;return!0};
g.Xb=function(a){for(var b in a)delete a[b]};
g.Yb=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0};
g.Zb=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.$b=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();var b=Array.isArray(a)?[]:"function"!==typeof ArrayBuffer||"function"!==typeof ArrayBuffer.isView||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.$b(a[c]);return b};
g.bc=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<ac.length;f++)c=ac[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
cc=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
ec=function(){if(void 0===dc){var a=null,b=g.v.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Za,createScript:Za,createScriptURL:Za})}catch(c){g.v.console&&g.v.console.error(c.message)}dc=a}else dc=a}return dc};
hc=function(a,b){this.u=a===fc&&b||"";this.B=gc};
jc=function(a){return a instanceof hc&&a.constructor===hc&&a.B===gc?a.u:"type_error:Const"};
g.kc=function(a){return new hc(fc,a)};
mc=function(a,b){this.B=b===lc?a:""};
nc=function(a){return a instanceof mc&&a.constructor===mc?a.B:"type_error:TrustedResourceUrl"};
waa=function(a,b){var c=jc(a);if(!uaa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);var d=c.replace(vaa,function(e,f){if(!Object.prototype.hasOwnProperty.call(b,f))throw Error('Found marker, "'+f+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));var h=b[f];return h instanceof hc?jc(h):encodeURIComponent(String(h))});
return oc(d)};
oc=function(a){var b=ec();a=b?b.createScriptURL(a):a;return new mc(a,lc)};
pc=function(a,b){return 0==a.lastIndexOf(b,0)};
qc=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.rc=function(a){return/^[\s\xa0]*$/.test(a)};
zc=function(a,b){if(b)a=a.replace(tc,"&amp;").replace(uc,"&lt;").replace(vc,"&gt;").replace(wc,"&quot;").replace(xc,"&#39;").replace(yc,"&#0;");else{if(!xaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(tc,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(uc,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(vc,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(wc,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(xc,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(yc,"&#0;"))}return a};
Ac=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.Dc=function(a,b){for(var c=0,d=Bc(String(a)).split("."),e=Bc(String(b)).split("."),f=Math.max(d.length,e.length),h=0;0==c&&h<f;h++){var l=d[h]||"",m=e[h]||"";do{l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];m=/(\d*)(\D*)(.*)/.exec(m)||["","","",""];if(0==l[0].length&&0==m[0].length)break;c=Cc(0==l[1].length?0:parseInt(l[1],10),0==m[1].length?0:parseInt(m[1],10))||Cc(0==l[2].length,0==m[2].length)||Cc(l[2],m[2]);l=l[3];m=m[3]}while(0==c)}return c};
Cc=function(a,b){return a<b?-1:a>b?1:0};
g.Fc=function(a,b){this.B=b===Ec?a:""};
g.Gc=function(a){return a instanceof g.Fc&&a.constructor===g.Fc?a.B:"type_error:SafeUrl"};
Hc=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(yaa);return b&&zaa.test(b[1])?new g.Fc(a,Ec):null};
g.Kc=function(a){a instanceof g.Fc||(a="object"==typeof a&&a.jj?a.zg():String(a),a=Ic.test(a)?new g.Fc(a,Ec):Hc(a));return a||Jc};
g.Lc=function(a,b){if(a instanceof g.Fc)return a;a="object"==typeof a&&a.jj?a.zg():String(a);if(b&&/^data:/i.test(a)){var c=Hc(a)||Jc;if(c.zg()==a)return c}Ic.test(a)||(a="about:invalid#zClosurez");return new g.Fc(a,Ec)};
Nc=function(a,b){this.u=b===Mc?a:""};
Oc=function(a){return a instanceof Nc&&a.constructor===Nc?a.u:"type_error:SafeStyle"};
Sc=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.Pc(d,Qc).join(" "):Qc(d),b+=c+":"+d+";")}return b?new Nc(b,Mc):Rc};
Qc=function(a){if(a instanceof g.Fc)return'url("'+g.Gc(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof hc?jc(a):Aaa(String(a));if(/[{;}]/.test(a))throw new ab("Value does not allow [{;}], got: %s.",[a]);return a};
Aaa=function(a){var b=a.replace(Tc,"$1").replace(Tc,"$1").replace(Uc,"url");if(Baa.test(b)){if(Caa.test(a))return"zClosurez";for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}if(!b||!c||!Daa(a))return"zClosurez"}else return"zClosurez";return Eaa(a)};
Daa=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if("]"==e){if(b)return!1;b=!0}else if("["==e){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b};
Eaa=function(a){return a.replace(Uc,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.Kc(d).zg();return c+f+b+f+e})};
Faa=function(a){function b(d){Array.isArray(d)?g.Gb(d,b):c+=Oc(d)}
var c="";g.Gb(arguments,b);return c?new Nc(c,Mc):Rc};
Wc=function(a){return-1!=g.Vc.indexOf(a)};
Yc=function(){return Wc("Firefox")||Wc("FxiOS")};
$c=function(){return Wc("Safari")&&!(Zc()||Wc("Coast")||Wc("Opera")||Wc("Edge")||Wc("Edg/")||Wc("OPR")||Yc()||Wc("Silk")||Wc("Android"))};
Zc=function(){return(Wc("Chrome")||Wc("CriOS"))&&!Wc("Edge")};
bd=function(a,b,c){this.B=c===ad?a:"";this.C=b};
g.cd=function(a){return a instanceof bd&&a.constructor===bd?a.B:"type_error:SafeHtml"};
ed=function(a){if(a instanceof bd)return a;var b="object"==typeof a,c=null;b&&a.Iw&&(c=a.u());return dd(zc(b&&a.jj?a.zg():String(a)),c)};
Gaa=function(a){function b(f){Array.isArray(f)?g.Gb(f,b):(f=ed(f),e.push(g.cd(f).toString()),f=f.u(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=ed(fd),d=c.u(),e=[];g.Gb(a,b);return dd(e.join(g.cd(c).toString()),d)};
Haa=function(a){return Gaa(Array.prototype.slice.call(arguments))};
dd=function(a,b){var c=ec();c=c?c.createHTML(a):a;return new bd(c,b,ad)};
g.gd=function(a,b){jc(a);jc(a);return dd(b,null)};
Iaa=function(a){var b=g.kc("Output of CSS sanitizer");jc(b);jc(b);return new Nc(a,Mc)};
g.hd=function(a,b){if(Jaa())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.cd(b)};
g.id=function(a,b){var c=b instanceof g.Fc?b:g.Lc(b);a.href=g.Gc(c)};
g.jd=function(a,b){a.src=nc(b);var c=Ma(a.ownerDocument&&a.ownerDocument.defaultView);c&&a.setAttribute("nonce",c)};
kd=function(a,b,c,d){a=a instanceof g.Fc?a:g.Lc(a);b=b||g.v;c=c instanceof hc?jc(c):c||"";return b.open(g.Gc(a),c,d,void 0)};
ld=function(a){return encodeURIComponent(String(a))};
md=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.nd=function(a){return a=zc(a,void 0)};
g.od=function(a,b){var c=String(a),d=c.indexOf(".");-1==d&&(d=c.length);return Kaa("0",Math.max(0,b-d))+c};
g.pd=function(a){return null==a?"":String(a)};
qd=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
g.rd=function(a){var b=Number(a);return 0==b&&g.rc(a)?NaN:b};
sd=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
td=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Laa=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
ud=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};
vd=function(a){return a?decodeURI(a):a};
g.xd=function(a,b){return b.match(wd)[a]||null};
g.yd=function(a){return vd(g.xd(3,a))};
zd=function(a){a=a.match(wd);return ud(a[1],null,a[3],a[4])};
Ad=function(a){a=a.match(wd);return ud(null,null,null,null,a[5],a[6],a[7])};
Bd=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null;if(0<=e){var h=c[d].substring(0,e);f=c[d].substring(e+1)}else h=c[d];b(h,f?md(f):"")}};
Cd=function(a){var b=a.indexOf("#");0>b&&(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)]};
Dd=function(a,b){return b?a?a+"&"+b:b:a};
Ed=function(a,b){if(!b)return a;var c=Cd(a);c[1]=Dd(c[1],b);return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
Fd=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Fd(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+ld(b)))};
Gd=function(a,b){for(var c=[],d=b||0;d<a.length;d+=2)Fd(a[d],a[d+1],c);return c.join("&")};
g.Hd=function(a){var b=[],c;for(c in a)Fd(c,a[c],b);return b.join("&")};
Id=function(a,b){var c=2==arguments.length?Gd(arguments[1],0):Gd(arguments,1);return Ed(a,c)};
g.Ld=function(a,b){var c=g.Hd(b);return Ed(a,c)};
Md=function(a,b,c){c=null!=c?"="+ld(c):"";return Ed(a,b+c)};
Nd=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1};
Pd=function(a,b){var c=a.search(Od),d=Nd(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return md(a.substr(d,e-d))};
Qd=function(a,b){for(var c=a.search(Od),d=0,e,f=[];0<=(e=Nd(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(Maa,"$1")};
Rd=function(a,b,c){return Md(Qd(a,b),b,c)};
Naa=function(a,b){var c=Cd(a),d=c[1],e=[];d&&d.split("&").forEach(function(f){var h=f.indexOf("=");b.hasOwnProperty(0<=h?f.substr(0,h):f)||e.push(f)});
c[1]=Dd(e.join("&"),g.Hd(b));return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
Sd=function(){return Wc("iPhone")&&!Wc("iPod")&&!Wc("iPad")};
Td=function(){return Sd()||Wc("iPad")||Wc("iPod")};
Ud=function(a){Ud[" "](a);return a};
Vd=function(a,b){try{return Ud(a[b]),!0}catch(c){}return!1};
Wd=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
Xd=function(){var a=g.v.document;return a?a.documentMode:void 0};
g.$d=function(a){return Wd(Oaa,a,function(){return 0<=g.Dc(Zd,a)})};
g.ae=function(a){return Number(Paa)>=a};
g.be=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.ce=function(a,b){var c=a%b;return 0>c*b?c+b:c};
g.de=function(a,b,c){return a+c*(b-a)};
ee=function(a,b){return 1E-6>=Math.abs(a-b)};
g.fe=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
ge=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.he=function(a,b){this.width=a;this.height=b};
g.ie=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
je=function(a){return a.width*a.height};
ne=function(a){return a?new ke(le(a)):me||(me=new ke)};
oe=function(a,b){return"string"===typeof b?a.getElementById(b):b};
g.se=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.pe(document,"*",a,b)};
g.te=function(a,b){var c=b||document;if(c.getElementsByClassName)c=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;c=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.pe(c,"*",a,b)[0]||null}return c||null};
g.pe=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.nb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
ve=function(a,b){g.Ib(b,function(c,d){c&&"object"==typeof c&&c.jj&&(c=c.zg());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:ue.hasOwnProperty(d)?a.setAttribute(ue[d],c):pc(d,"aria-")||pc(d,"data-")?a.setAttribute(d,c):a[d]=c})};
we=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.he(a.clientWidth,a.clientHeight)};
ze=function(a){var b=xe(a);a=a.parentWindow||a.defaultView;return g.ye&&g.$d("10")&&a.pageYOffset!=b.scrollTop?new g.fe(b.scrollLeft,b.scrollTop):new g.fe(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
xe=function(a){return a.scrollingElement?a.scrollingElement:g.Ae||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
Be=function(a){return a?a.parentWindow||a.defaultView:window};
g.Ee=function(a,b,c){var d=arguments,e=document,f=String(d[0]),h=d[1];if(!Qaa&&h&&(h.name||h.type)){f=["<",f];h.name&&f.push(' name="',g.nd(h.name),'"');if(h.type){f.push(' type="',g.nd(h.type),'"');var l={};g.bc(l,h);delete l.type;h=l}f.push(">");f=f.join("")}f=Ce(e,f);h&&("string"===typeof h?f.className=h:Array.isArray(h)?f.className=h.join(" "):ve(f,h));2<d.length&&De(e,f,d,2);return f};
De=function(a,b,c,d){function e(l){l&&b.appendChild("string"===typeof l?a.createTextNode(l):l)}
for(;d<c.length;d++){var f=c[d];if(!g.Ra(f)||g.Sa(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Sa(f)){var h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}g.Gb(h?g.ub(f):f,e)}}};
g.Fe=function(a){return Ce(document,a)};
Ce=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.Ge=function(a){return document.createTextNode(String(a))};
g.He=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.Ie=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.Je=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
Saa=function(a){return Raa&&void 0!=a.children?a.children:g.Ke(a.childNodes,function(b){return 1==b.nodeType})};
g.Le=function(a){var b;if(Taa&&!(g.ye&&g.$d("9")&&!g.$d("10")&&g.v.SVGElement&&a instanceof g.v.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Sa(b)&&1==b.nodeType?b:null};
g.Me=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
le=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.Ne=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else{g.He(a);var c=le(a);a.appendChild(c.createTextNode(String(b)))}};
Qe=function(a){var b;"A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?b=!a.disabled&&(!Oe(a)||Pe(a)):b=Oe(a)&&Pe(a);if(b&&g.ye){var c;"function"!==typeof a.getBoundingClientRect||g.ye&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a};
Oe=function(a){return g.ye&&!g.$d("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")};
Pe=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
Se=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Re(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.nb(f.className.split(/\s+/),c))},!0,d)};
Re=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};
ke=function(a){this.u=a||g.v.document||document};
Te=function(a,b,c,d){var e=window,f="//pagead2.googlesyndication.com/bg/"+g.nd(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=ne(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=waa(g.kc("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.nd(a)+".js"});g.jd(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
g.Ue=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())})};
Uaa=function(a){return g.Pc(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
g.Ve=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>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.We=function(a){for(var b=[],c=0,d=0;c<a.length;){var e=a[c++];if(128>e)b[d++]=String.fromCharCode(e);else if(191<e&&224>e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(239<e&&365>e){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("")};
Ye=function(a,b,c){this.B=null;this.u=this.C=this.D=0;this.F=!1;a&&Xe(this,a,b,c)};
$e=function(a,b,c){if(Ze.length){var d=Ze.pop();a&&Xe(d,a,b,c);return d}return new Ye(a,b,c)};
Xe=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.af(b):new Uint8Array(0);a.B=b;a.D=void 0!==c?c:0;a.C=void 0!==d?a.D+d:a.B.length;a.u=a.D};
bf=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=a.B[a.u++],c|=(b&127)<<7*e;128<=b&&(b=a.B[a.u++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.B[a.u++],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.F=!0};
cf=function(a){var b=a.B;var c=b[a.u+0];var d=c&127;if(128>c)return a.u+=1,d;c=b[a.u+1];d|=(c&127)<<7;if(128>c)return a.u+=2,d;c=b[a.u+2];d|=(c&127)<<14;if(128>c)return a.u+=3,d;c=b[a.u+3];d|=(c&127)<<21;if(128>c)return a.u+=4,d;c=b[a.u+4];d|=(c&15)<<28;if(128>c)return a.u+=5,d>>>0;a.u+=5;128<=b[a.u++]&&128<=b[a.u++]&&128<=b[a.u++]&&128<=b[a.u++]&&a.u++;return d};
df=function(a){this.u=$e(a,void 0,void 0);this.F=this.u.u;this.B=this.C=-1;this.D=!1};
gf=function(a){var b=a.u;(b=b.u==b.C)||(b=a.D)||(b=a.u,b=b.F||0>b.u||b.u>b.C);if(b)return!1;a.F=a.u.u;b=cf(a.u);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.D=!0,!1;a.C=b>>>3;a.B=c;return!0};
hf=function(a){switch(a.B){case 0:if(0!=a.B)hf(a);else{for(a=a.u;a.B[a.u]&128;)a.u++;a.u++}break;case 1:1!=a.B?hf(a):a.u.advance(8);break;case 2:if(2!=a.B)hf(a);else{var b=cf(a.u);a.u.advance(b)}break;case 5:5!=a.B?hf(a):a.u.advance(4);break;case 3:b=a.C;do{if(!gf(a)){a.D=!0;break}if(4==a.B){a.C!=b&&(a.D=!0);break}hf(a)}while(1);break;default:a.D=!0}};
jf=function(a){var b=cf(a.u);a=a.u;var c=a.B,d=a.u,e=d+b;b=[];for(var f="";d<e;){var h=c[d++];if(128>h)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;f<b.length;f+=8192)h=wb(b,f,f+8192),e+=String.fromCharCode.apply(null,h);b=e}a.u=d;return c+b};
kf=function(a){var b=cf(a.u);a=a.u;if(0>b||a.u+b>a.B.length)a.F=!0,b=new Uint8Array(0);else{var c=a.B.subarray(a.u,a.u+b);a.u+=b;b=c}return b};
lf=function(){this.u=[]};
g.mf=function(a,b){for(;127<b;)a.u.push(b&127|128),b>>>=7;a.u.push(b)};
g.nf=function(a,b){a.u.push(b>>>0&255);a.u.push(b>>>8&255);a.u.push(b>>>16&255);a.u.push(b>>>24&255)};
g.qf=function(a,b){void 0===b&&(b=0);of();for(var c=pf[b],d=[],e=0;e<a.length;e+=3){var f=a[e],h=e+1<a.length,l=h?a[e+1]:0,m=e+2<a.length,n=m?a[e+2]:0,p=f>>2;f=(f&3)<<4|l>>4;l=(l&15)<<2|n>>6;n&=63;m||(n=64,h||(l=64));d.push(c[p],c[f],c[l]||"",c[n]||"")}return d.join("")};
g.rf=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}return g.qf(b,3)};
Vaa=function(a){var b=[];sf(a,function(c){b.push(c)});
return b};
g.af=function(a){!g.ye||g.$d("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;sf(a,function(f){d[e++]=f});
return d.subarray(0,e)};
sf=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=tf[n];if(null!=p)return p;if(!g.rc(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
of();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}};
of=function(){if(!tf){tf={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));pf[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===tf[f]&&(tf[f]=e)}}}};
g.uf=function(){this.C=[];this.B=0;this.u=new lf};
g.vf=function(a){for(var b=new Uint8Array(a.B+a.u.length()),c=a.C,d=c.length,e=0,f=0;f<d;f++){var h=c[f];b.set(h,e);e+=h.length}c=a.u.end();b.set(c,e);a.C=[b];return b};
g.wf=function(a,b,c){if(null!=c&&null!=c)if(g.mf(a.u,8*b),a=a.u,0<=c)g.mf(a,c);else{for(b=0;9>b;b++)a.u.push(c&127|128),c>>=7;a.u.push(1)}};
g.zf=function(a,b,c){if(null!=c&&null!=c){g.mf(a.u,8*b);a=a.u;var d=c;c=0>d;d=Math.abs(d);b=d>>>0;d=Math.floor((d-b)/4294967296);d>>>=0;c&&(d=~d>>>0,b=(~b>>>0)+1,4294967295<b&&(b=0,d++,4294967295<d&&(d=0)));g.xf=b;g.yf=d;c=g.xf;for(b=g.yf;0<b||127<c;)a.u.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.u.push(c)}};
g.Af=function(a,b,c){if(null!=c){g.mf(a.u,8*b+1);a=a.u;var d=c;d=(c=0>d?1:0)?-d:d;if(0===d)g.yf=0<1/d?0:2147483648,g.xf=0;else if(isNaN(d))g.yf=2147483647,g.xf=4294967295;else if(1.7976931348623157E308<d)g.yf=(c<<31|2146435072)>>>0,g.xf=0;else if(2.2250738585072014E-308>d)d/=Math.pow(2,-1074),g.yf=(c<<31|d/4294967296)>>>0,g.xf=d>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022<b;)e*=2,b--;d*=Math.pow(2,-b);g.yf=(c<<31|b+1023<<20|1048576*d&1048575)>>>0;g.xf=4503599627370496*
d>>>0}g.nf(a,g.xf);g.nf(a,g.yf)}};
g.Bf=function(){};
g.Gf=function(a,b,c,d){a.u=null;b||(b=[]);a.I=void 0;a.C=-1;a.xf=b;a:{if(b=a.xf.length){--b;var e=a.xf[b];if(!(null===e||"object"!=typeof e||Array.isArray(e)||Cf&&e instanceof Uint8Array)){a.D=b-a.C;a.B=e;break a}}a.D=Number.MAX_VALUE}a.F={};if(c)for(b=0;b<c.length;b++)e=c[b],e<a.D?(e+=a.C,a.xf[e]=a.xf[e]||g.Df):(Ef(a),a.B[e]=a.B[e]||g.Df);if(d&&d.length)for(b=0;b<d.length;b++)g.Ff(a,d[b])};
Ef=function(a){var b=a.D+a.C;a.xf[b]||(a.B=a.xf[b]={})};
g.Hf=function(a,b){if(b<a.D){var c=b+a.C,d=a.xf[c];return d===g.Df?a.xf[c]=[]:d}if(a.B)return d=a.B[b],d===g.Df?a.B[b]=[]:d};
Waa=function(a){return null==a||a instanceof Uint8Array?a:"string"===typeof a?g.af(a):null};
If=function(a,b){var c=g.Hf(a,b);return null==c?0:c};
g.Jf=function(a,b,c){b<a.D?a.xf[b+a.C]=c:(Ef(a),a.B[b]=c);return a};
Kf=function(a,b,c){0!==c?g.Jf(a,b,c):b<a.D?a.xf[b+a.C]=null:(Ef(a),delete a.B[b]);return a};
g.Ff=function(a,b){for(var c,d,e=0;e<b.length;e++){var f=b[e],h=g.Hf(a,f);null!=h&&(c=f,d=h,g.Jf(a,f,void 0))}return c?(g.Jf(a,c,d),c):0};
g.Lf=function(a,b,c){a.u||(a.u={});if(!a.u[c]){for(var d=g.Hf(a,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a.u[c]=e}};
Mf=function(a){if(Array.isArray(a)){for(var b=Array(a.length),c=0;c<a.length;c++){var d=a[c];null!=d&&(b[c]="object"==typeof d?Mf(d):d)}return b}if(Cf&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)d=a[c],null!=d&&(b[c]="object"==typeof d?Mf(d):d);return b};
Xaa=function(a){var b=g.Na("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.v.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Nf(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;
if(null==c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,Of[c])c=Of[c];else{c=String(c);if(!Of[c]){var f=/function\s+([^\(]+)/m.exec(c);Of[c]=f?f[1]:"[Anonymous]"}c=Of[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}a.stack=
b;return a};
Nf=function(a,b){b||(b={});b[Pf(a)]=!0;var c=a.stack||"",d=a.cW;d&&!b[Pf(d)]&&(c+="\nCaused by: ",d.stack&&0==d.stack.indexOf(d.toString())||(c+="string"===typeof d?d:d.message+"\n"),c+=Nf(d,b));return c};
Pf=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
Qf=function(a){this.u=a||{cookie:""}};
Rf=function(a){a=(a.u.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Bc(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
Sf=function(a,b,c){c=void 0===c?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};
Tf=function(a){return a?a.passive&&Yaa()?a:a.capture||!1:!1};
Uf=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Tf(d)),!0):!1};
Vf=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,Tf(void 0))};
g.Yf=function(a){"number"===typeof a?(this.date=Wf(a,0,1),Xf(this,1)):g.Sa(a)?(this.date=Wf(a.getFullYear(),a.getMonth(),a.getDate()),Xf(this,a.getDate())):(this.date=new Date(g.A()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Xf(this,a))};
Wf=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
Xf=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
$f=function(){return!Zf()&&(Wc("iPod")||Wc("iPhone")||Wc("Android")||Wc("IEMobile"))};
Zf=function(){return Wc("iPad")||Wc("Android")&&!Wc("Mobile")||Wc("Silk")};
ag=function(a){try{return!!a&&null!=a.location.href&&Vd(a,"foo")}catch(b){return!1}};
bg=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
$aa=function(){var a=[];bg(Zaa,function(b){a.push(b)});
return a};
bba=function(a){return(a=aba.exec(a))&&a[0]||""};
cba=function(){var a=cg;if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec(decodeURIComponent(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""};
eba=function(){var a=g.Fe("IFRAME"),b={};g.Gb(dba(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
g.B=function(){this.Od=this.Od;this.Sl=this.Sl};
g.C=function(a,b){g.dg(a,g.Wa(g.eg,b))};
g.dg=function(a,b){a.Od?b():(a.Sl||(a.Sl=[]),a.Sl.push(b))};
g.eg=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.fg=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Ra(d)?g.fg.apply(null,d):g.eg(d)}};
gg=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
hg=function(a,b,c){b instanceof g.fe?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,"number"===typeof c&&(a.top+=c,a.bottom+=c));return a};
g.ig=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
jg=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1};
fba=function(){};
lg=function(a,b){if(b!==kg)throw Error("Bad secret");this.u=a};
g.ng=function(a){mg();return oc(a)};
g.E=function(a,b,c){if("string"===typeof b)(b=og(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=og(c,d);f&&(c.style[f]=e)}};
og=function(a,b){var c=pg[b];if(!c){var d=sd(b);c=d;void 0===a.style[d]&&(d=(g.Ae?"Webkit":qg?"Moz":g.ye?"ms":g.rg?"O":null)+Laa(d),void 0!==a.style[d]&&(c=d));pg[b]=c}return c};
g.sg=function(a,b){var c=a.style[sd(b)];return"undefined"!==typeof c?c:a.style[og(a,b)]||""};
tg=function(a,b){var c=le(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
ug=function(a,b){return tg(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.wg=function(a,b,c){if(b instanceof g.fe){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.vg(d,!1);a.style.top=g.vg(b,!1)};
xg=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
gba=function(a){if(g.ye&&!g.ae(8))return a.offsetParent;var b=le(a),c=ug(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=ug(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null};
g.yg=function(a){var b=le(a),c=new g.fe(0,0);var d=b?le(b):document;d=!g.ye||g.ae(9)||"CSS1Compat"==ne(d).u.compatMode?d.documentElement:d.body;if(a==d)return c;a=xg(a);b=ze(ne(b).u);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Ag=function(a,b){var c=new g.fe(0,0),d=Be(le(a));if(!Vd(d,"parent"))return c;var e=a;do{var f=d==b?g.yg(e):zg(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c};
g.Cg=function(a,b){var c=Bg(a),d=Bg(b);return new g.fe(c.x-d.x,c.y-d.y)};
zg=function(a){a=xg(a);return new g.fe(a.left,a.top)};
Bg=function(a){if(1==a.nodeType)return zg(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.fe(a.clientX,a.clientY)};
g.Dg=function(a,b,c){if(b instanceof g.he)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.vg(b,!0);a.style.height=g.vg(c,!0)};
g.vg=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Eg=function(a){var b=hba;if("none"!=ug(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};
hba=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Ae&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=xg(a),new g.he(a.right-a.left,a.bottom-a.top)):new g.he(b,c)};
g.Fg=function(a,b){a.style.display=b?"":"none"};
Jg=function(){if(Gg&&!ag(Hg)){var a="."+Ig.domain;try{for(;2<a.split(".").length&&!ag(Hg);)Ig.domain=a=a.substr(a.indexOf(".")+1),Hg=window.parent}catch(b){}ag(Hg)||(Hg=window)}return Hg};
Kg=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.he(b.innerWidth,b.innerHeight)).round():we(b||window).round()}catch(d){return new g.he(-12245933,-12245933)}};
Lg=function(a,b,c){try{a&&(b=b.top);var d=Kg(a,b,void 0===c?!1:c),e=ze(ne(b.document).u);if(-12245933==d.width){var f=d.width;var h=new gg(f,f,f,f)}else h=new gg(e.y,e.x+d.width,e.y+d.height,e.x);return h}catch(l){return new gg(-12245933,-12245933,-12245933,-12245933)}};
iba=function(a){var b={};g.Gb(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.B(e)||(b[d]=null)):b[d]=c});
oaa(a,function(c){return null===b[c.event]})};
Mg=function(){this.hc=0;this.u=!1;this.B=-1;this.El=!1;this.Vf=0};
Ng=function(){this.B=null;this.u=!1};
Og=function(a){Ng.call(this);this.C=a};
Pg=function(){Ng.call(this)};
Qg=function(){Ng.call(this)};
Rg=function(){this.u={};this.C=!0;this.B={}};
Sg=function(a,b,c){a.u[b]||(a.u[b]=new Og(c));return a.u[b]};
jba=function(a){a.u.queryid||(a.u.queryid=new Qg)};
Tg=function(a,b,c){(a=a.u[b])&&a.setValue(c)};
Ug=function(a,b){if(Sb(a.B,b))return a.B[b];var c=a.u[b];if(c)return c.getValue()};
Vg=function(a){var b={},c=g.Kb(a.u,function(d){return d.u});
g.Ib(c,function(d,e){var f=void 0!==a.B[e]?String(a.B[e]):d.u&&null!==d.B?String(d.B):"";0<f.length&&(b[e]=f)},a);
return b};
kba=function(a){a=Vg(a);var b=[];g.Ib(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
lba=function(){this.u=this.tk=null};
Wg=function(){};
Yg=function(){if(!Xg())throw Error();};
Xg=function(){return!(!Zg||!Zg.performance)};
$g=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
ah=function(){};
dh=function(a){a=a||bh();for(var b=new ch(g.v.location.href,g.v,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&mba.test(f.url)&&(c=f);if(f.url&&!f.Ww){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new nba(b,e,c)};
bh=function(){var a=g.v,b=[],c=null;do{var d=a;if(ag(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new ch(e||"",d));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.v;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)e=b[a],e.url||(e.url=d.location.ancestorOrigins[a-1]||"",e.Ww=!0);return b};
nba=function(a,b,c){this.u=a;this.B=b;this.C=c};
ch=function(a,b,c){this.url=a;this.gf=b;this.Ww=!!c;this.depth=null};
eh=function(){this.C="&";this.B={};this.D=0;this.u=[]};
fh=function(a,b){var c={};c[a]=b;return[c]};
hh=function(a,b,c,d,e){var f=[];bg(a,function(h,l){var m=gh(h,b,c,d,e);m&&f.push(l+"="+m)});
return f.join(b)};
gh=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],h=0;h<a.length;h++)f.push(gh(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(hh(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
oba=function(a){var b=1,c;for(c in a.B)b=c.length>b?c.length:b;return 3997-b-a.C.length-1};
ih=function(a,b){this.u=a;this.depth=b};
qba=function(){function a(l,m){return null==l?m:l}
var b=bh(),c=Math.max(b.length-1,0),d=dh(b);b=d.u;var e=d.B,f=d.C,h=[];f&&h.push(new ih([f.url,f.Ww?2:0],a(f.depth,1)));e&&e!=f&&h.push(new ih([e.url,2],0));b.url&&b!=f&&h.push(new ih([b.url,0],a(b.depth,c)));d=g.Pc(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=bba(b.url))&&d.push([new ih([e,1],a(b.depth,c))]);d.push([]);return g.Pc(d,function(l){return pba(c,l)})};
pba=function(a,b){g.jh(b,function(e){return 0<=e.depth});
var c=g.kh(b,function(e,f){return Math.max(e,f.depth)},-1),d=saa(c+2);
d[0]=a;g.Gb(b,function(e){return d[e.depth+1]=e.u});
return d};
rba=function(){var a=qba();return g.Pc(a,function(b){return gh(b)})};
lh=function(){this.B=new ah;this.u=Xg()?new Yg:new Wg};
sba=function(){mh();var a=Zg.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Zg.setInterval&&"function"===typeof Zg.clearInterval&&"function"===typeof Zg.setTimeout&&"function"===typeof Zg.clearTimeout)};
nh=function(a){mh();var b=Jg()||Zg;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)};
oh=function(){mh();return rba()};
ph=function(){};
mh=function(){return ph.getInstance().getContext()};
qh=function(a){g.Gf(this,a,null,null)};
tba=function(a){this.D=a;this.u=-1;this.B=this.C=0};
rh=function(a,b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];if(-1<a.u)return b.apply(null,g.la(d));try{return a.u=a.D.u.now(),b.apply(null,g.la(d))}finally{a.C+=a.D.u.now()-a.u,a.u=-1,a.B+=1}}};
uba=function(a,b){this.B=a;this.C=b;this.u=new tba(a)};
uh=function(){this.C=void 0;this.B=this.I=0;this.F=-1;this.ub=new Rg;Sg(this.ub,"mv",sh).u=!0;Sg(this.ub,"omid",th);Sg(this.ub,"epoh",th).u=!0;Sg(this.ub,"epph",th).u=!0;Sg(this.ub,"umt",th).u=!0;Sg(this.ub,"phel",th).u=!0;Sg(this.ub,"phell",th).u=!0;Sg(this.ub,"oseid",vba).u=!0;var a=this.ub;a.u.sloi||(a.u.sloi=new Pg);a.u.sloi.u=!0;Sg(this.ub,"xdi",th).u=!0;Sg(this.ub,"amp",th).u=!0;Sg(this.ub,"prf",th).u=!0;Sg(this.ub,"gtx",th).u=!0;Sg(this.ub,"mvp_lv",th).u=!0;Sg(this.ub,"vcm",th).u=!0;Sg(this.ub,
"dov",sh).u=!0;Sg(this.ub,"postrxl",th).u=!0;this.ub.B.postrxl=1;Sg(this.ub,"mpv",th).u=!0;Sg(this.ub,"tmout",th).u=!0;this.u=new uba(mh(),this.ub);this.D=!1};
wba=function(){var a="https:";Zg&&Zg.location&&"http:"===Zg.location.protocol&&(a="http:");this.B=a;this.u=.01;this.C=Math.random()};
vh=function(a,b,c,d,e){if((d?a.C:Math.random())<(e||a.u))try{if(c instanceof eh)var f=c;else f=new eh,bg(c,function(l,m){var n=f,p=n.D++,r=fh(m,l);n.u.push(p);n.B[p]=r});
var h=f.nd(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&","");h&&nh(h)}catch(l){}};
wh=function(){var a=g.v.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.A()};
xh=function(){var a=void 0===a?g.v:a;return(a=a.performance)&&a.now?a.now():null};
xba=function(a,b){var c=xh()||wh();this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
zh=function(){var a=Jg();this.events=[];this.B=a||g.v;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.u=yh()||(null!=b?b:1>Math.random())};
Bh=function(a){a&&Ah&&yh()&&(Ah.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Ah.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Hh=function(){var a=Ch;this.F=Dh;this.D="jserror";this.C=!0;this.u=null;this.I=this.B;this.Ua=void 0===a?null:a};
Kh=function(a,b,c,d){return rh(uh.getInstance().u.u,function(){try{if(a.Ua&&a.Ua.u){var e=a.Ua.start(b.toString(),3);var f=c();a.Ua.end(e)}else f=c()}catch(m){var h=a.C;try{Bh(e);var l=new Ih(Jh(m));h=a.I(b,l,void 0,d)}catch(n){a.B(217,n)}if(!h)throw m;}return f})()};
Mh=function(a,b,c){var d=Lh;return rh(uh.getInstance().u.u,function(e){for(var f=[],h=0;h<arguments.length;++h)f[h-0]=arguments[h];return Kh(d,a,function(){return b.apply(void 0,f)},c)})};
Jh=function(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b};
Ih=function(a){Sf.call(this,Error(a),{message:a})};
Nh=function(){var a=Jg();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||Ch.disable())};
yba=function(a){Lh.u=function(b){g.Gb(a,function(c){c(b)})}};
Oh=function(a,b){return Kh(Lh,a,b,void 0)};
Ph=function(a,b){return Mh(a,b,void 0)};
Qh=function(a,b,c,d){Lh.B(a,b,c,d)};
Rh=function(){return Date.now()-zba};
Aba=function(){var a=uh.getInstance().C,b=0<=Sh?Rh()-Sh:-1,c=Th?Rh()-Uh:-1,d=0<=Vh?Rh()-Vh:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];Qh(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h};
Wh=function(a,b,c){var d=new gg(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.u=d;this.B=c};
Xh=function(a,b,c,d,e,f,h,l){this.D=a;this.K=b;this.C=c;this.I=d;this.u=e;this.F=f;this.B=h;this.N=l};
Yh=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,ag(a)&&(c=a,b=d);return{gf:c,level:b}};
Zh=function(a){var b=a!==a.top,c=a.top===Yh(a).gf,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),Nb(Bba,function(h){return"function"===typeof f[h]})||(e=1));
return{uh:f,compatibility:e,PQ:d}};
Cba=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint};
$h=function(a,b,c,d){var e=void 0===e?!1:e;c=Mh(d,c,void 0);Uf(a,b,c,{capture:e})};
ai=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
bi=function(a){return new gg(a.top,a.right,a.bottom,a.left)};
ci=function(a){var b=a.top||0,c=a.left||0;return new gg(b,c+(a.width||0),b+(a.height||0),c)};
di=function(a){return null!=a&&0<=a&&1>=a};
Dba=function(){var a=g.Vc;return a?ei("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return Ac(a,b)})||Ac(a,"OMI/")&&!Ac(a,"XiaoMi/")?!0:Ac(a,"Presto")&&Ac(a,"Linux")&&!Ac(a,"X11")&&!Ac(a,"Android")&&!Ac(a,"Mobi"):!1};
fi=function(){this.C=!ag(Zg.top);this.isMobileDevice=Zf()||$f();var a=bh();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.yd(a[a.length-1].url)||"":"";this.u=new gg(0,0,0,0);this.D=new g.he(0,0);this.F=new g.he(0,0);this.K=new gg(0,0,0,0);this.I=0;this.N=!1;this.B=!(!Zg||!Zh(Zg).uh);this.update(Zg)};
gi=function(a,b){b&&b.screen&&(a.D=new g.he(b.screen.width,b.screen.height))};
hi=function(a,b){var c=a.u?new g.he(a.u.ge(),a.u.getHeight()):new g.he(0,0);var d=b;d=void 0===d?Zg:d;null!==d&&d!=d.top&&(d=d.top);var e=0,f=0;try{var h=d.document,l=h.body,m=h.documentElement;if("CSS1Compat"==h.compatMode&&m.scrollHeight)e=m.scrollHeight!=c.height?m.scrollHeight:m.offsetHeight,f=m.scrollWidth!=c.width?m.scrollWidth:m.offsetWidth;else{var n=m.scrollHeight,p=m.scrollWidth,r=m.offsetHeight,t=m.offsetWidth;m.clientHeight!=r&&(n=l.scrollHeight,p=l.scrollWidth,r=l.offsetHeight,t=l.offsetWidth);
n>c.height?n>r?(e=n,f=p):(e=r,f=t):n<r?(e=n,f=p):(e=r,f=t)}var w=new g.he(f,e)}catch(x){w=new g.he(-12245933,-12245933)}a.F=w};
ii=function(){var a=fi.getInstance();if(0<a.I||a.N)return!0;a=mh().B.isVisible();var b=0===$g(Ig);return a||b};
ji=function(a){this.C=a;this.B=0;this.u=null};
ki=function(a,b,c){this.gf=a;this.ha=void 0===c?"na":c;this.D=[];this.Dd=!1;this.C=new Wh(-1,!0,this);this.u=this;this.K=b;this.P=this.da=this.N=!1;this.Z="uk";this.Od=!1;this.F=!0};
mi=function(a,b,c){if(!a.P||(void 0===c?0:c))a.P=!0,a.Z=b,a.K=0,a.u!=a||li(a)};
ni=function(a,b){g.nb(a.D,b)||(a.D.push(b),b.Tm(a.u),b.jk(a.C),b.Di()&&(a.N=!0))};
oi=function(a){a=a.u;a.aD();a.ZC();var b=fi.getInstance();b.K=Lg(!1,a.gf,b.isMobileDevice);a.aK();a.C.u=a.IB()};
pi=function(a){a.N=a.D.length?ei(a.D,function(b){return b.Di()}):!1};
qi=function(a){var b=g.ub(a.D);g.Gb(b,function(c){c.jk(a.C)})};
li=function(a){var b=g.ub(a.D);g.Gb(b,function(c){c.Tm(a.u)});
a.u!=a||qi(a)};
ri=function(a,b,c,d){this.element=a;this.u=new gg(0,0,0,0);this.W=null;this.D=new gg(0,0,0,0);this.B=b;this.ub=c;this.X=d;this.Od=!1;this.timestamp=-1;this.K=new Xh(b.C,this.element,this.u,new gg(0,0,0,0),0,0,Rh(),0)};
si=function(a){this.Od=!1;this.u=a;this.D=g.Oa};
ti=function(a,b,c){this.C=void 0===c?0:c;this.B=a;this.u=null==b?"":b};
Eba=function(a){switch(Math.trunc(a.C)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Fba=function(a,b){return new ti(a.B,a.u,a.C+b)};
ui=function(a,b){return a.C<b.C?!0:a.C>b.C?!1:a.B<b.B?!0:a.B>b.B?!1:typeof a.u<typeof b.u?!0:typeof a.u>typeof b.u?!1:a.u<b.u};
vi=function(){this.C=0;this.u=[];this.B=!1};
Gba=function(a,b){(0,g.Gb)(b.u,function(c){a.add(c.B,c.u,Eba(c))})};
wi=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;bg(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
xi=function(a){var b=Hba;a.B&&(g.Cb(a.u,function(c,d){return ui(d,c)?1:ui(c,d)?-1:0}),a.B=!1);
return(0,g.kh)(a.u,function(c,d){var e=b(d);return""+c+(""!=c&&""!=e?"&":"")+e},"")};
Hba=function(a){var b=a.B;a=a.u;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.nb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
zi=function(a){var b=void 0===b?!0:b;this.u=new vi;void 0!==a&&Gba(this.u,a);b&&this.u.add("v",yi,-16)};
Iba=function(a){var b=[],c=[];g.Ib(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d){Array.isArray(d)&&(d=d.join(","));var f=[e,"=",d].join("");switch(e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(f);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(f);break;default:b.push(f)}}});
return b.concat(c)};
Ai=function(){if(yi&&"unreleased"!==yi)return yi};
Bi=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=Ai();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);nh(a)};
Ci=function(){this.u=0};
Jba=function(a,b,c){(0,g.Gb)(a.C,function(d){var e=a.u;if(!d.u&&(d.C(b,c),d.D())){d.u=!0;var f=d.B(),h=new vi;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.F);d=Ci.getInstance();h.add("i",d.u++);h.add("adk",e);wi(h,f);e=new zi(h);Bi(e)}})};
Di=function(){this.B=this.C=this.D=this.u=0};
Ei=function(a){this.B=a=void 0===a?Kba:a;this.u=g.Pc(this.B,function(){return new Di})};
Li=function(a,b){return Ki(a,function(c){return c.u},void 0===b?!0:b)};
Ni=function(a,b){return Mi(a,b,function(c){return c.u})};
Oi=function(a,b){return Ki(a,function(c){return c.C},void 0===b?!0:b)};
Pi=function(a,b){return Mi(a,b,function(c){return c.C})};
Qi=function(a,b){return Mi(a,b,function(c){return c.B})};
Ri=function(a){g.Gb(a.u,function(b){b.B=0})};
Ki=function(a,b,c){a=g.Pc(a.u,function(d){return b(d)});
return c?a:Lba(a)};
Mi=function(a,b,c){var d=g.kb(a.B,function(e){return b<=e});
return-1==d?0:c(a.u[d])};
Lba=function(a){return g.Pc(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Si=function(){this.B=new Ei;this.ka=new Di;this.X=this.K=-1;this.za=1E3;this.Ga=new Ei([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.ea=this.Z=-1};
Ti=function(a,b){return Oi(a.B,void 0===b?!0:b)};
Vi=function(a,b){var c=Ui(b);return 0===c?0:Ui(a)/c};
Ui=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Mba=function(a,b){if(!a||!b)return!1;for(var c=0;null!==a&&100>c++;){if(a===b)return!0;try{if(a=g.Le(a)||a){var d=le(a),e=d&&Be(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
Nba=function(a,b,c){if(!a||!b)return!1;b=hg(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=Jg();ag(d.top)&&d.top&&d.top.document&&(d=d.top);if(!Cba(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=le(c))&&b.defaultView&&b.defaultView.frameElement)&&Mba(b,a);d=a===c;a=!d&&a&&Re(a,function(e){return e===c});
return!(b||d||a)};
Oba=function(a,b,c,d){return fi.getInstance().C?!1:0>=a.ge()||0>=a.getHeight()?!0:c&&d?Oh(208,function(){return Nba(a,b,c)}):!1};
Wi=function(a,b,c){g.B.call(this);this.position=Pba.clone();this.Ys=this.Xr();this.ix=-2;this.aR=Date.now();this.fG=-1;this.lastUpdateTime=b;this.Os=null;this.zr=!1;this.Kt=null;this.opacity=-1;this.requestSource=c;this.qG=this.jx=g.Oa;this.Hf=new lba;this.Hf.tk=a;this.Hf.u=a;this.cn=!1;this.il={Gx:null,Ex:null};this.SF=!0;this.qq=null;this.Wm=this.KJ=!1;uh.getInstance().I++;this.ke=this.nw();this.eG=-1;this.oc=null;this.HJ=!1;a=this.ub=new Rg;Sg(a,"od",Qba);Sg(a,"opac",th).u=!0;Sg(a,"sbeos",th).u=
!0;Sg(a,"prf",th).u=!0;Sg(a,"mwt",th).u=!0;Sg(a,"iogeo",th);Sg(a,"postrxl",th).u=!0;(a=this.Hf.tk)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(Rba&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+td()):a.getAttribute("data-"+td()))&&(fi.getInstance().B=!0);1==this.requestSource?Tg(this.ub,"od",1):Tg(this.ub,"od",0)};
Xi=function(a,b){if(b!=a.Wm){a.Wm=b;var c=fi.getInstance();b?c.I++:0<c.I&&c.I--}};
Yi=function(a,b){if(a.oc){if(b.getName()===a.oc.getName())return;a.oc.dispose();a.oc=null}var c=b.create(a.Hf.u,a.ub,a.Di());if(c=null!=c&&c.ox()?c:null)a.oc=c};
Zi=function(a,b,c){if(!a.Os||-1==a.lastUpdateTime||-1===b.B||-1===a.Os.B)return 0;a=b.B-a.Os.B;return a>c?0:a};
Sba=function(a,b,c){if(a.oc){a.oc.Sj();var d=a.oc.K,e=d.D,f=e.u;if(null!=d.I){var h=d.C;a.Kt=new g.fe(h.left-f.left,h.top-f.top)}f=a.lu()?Math.max(d.u,d.F):d.u;h={};null!==e.volume&&(h.volume=e.volume);e=a.CB(d);a.Os=d;a.na(f,b,c,!1,h,e,d.N)}};
Tba=function(a){if(a.zr&&a.qq){var b=1==Ug(a.ub,"od"),c=fi.getInstance().u,d=a.qq,e=a.oc?a.oc.getName():"ns",f=new g.he(c.ge(),c.getHeight());c=a.lu();a={TQ:e,Kt:a.Kt,tR:f,lu:c,hc:a.ke.hc,rR:b};if(b=d.B){b.Sj();e=b.K;f=e.D.u;var h=null,l=null;null!=e.I&&f&&(h=e.C,h=new g.fe(h.left-f.left,h.top-f.top),l=new g.he(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.u,e.F):e.u;c={TQ:b.getName(),Kt:h,tR:l,lu:c,rR:!1,hc:e}}else c=null;c&&Jba(d,a,c)}};
Uba=function(a,b,c){b&&(a.jx=b);c&&(a.qG=c)};
$i=function(){};
bj=function(a){if(a instanceof $i)return a;if("function"==typeof a.Pi)return a.Pi(!1);if(g.Ra(a)){var b=0,c=new $i;c.next=function(){for(;;){if(b>=a.length)throw aj;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
g.cj=function(a,b,c){if(g.Ra(a))try{g.Gb(a,b,c)}catch(d){if(d!==aj)throw d;}else{a=bj(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==aj)throw d;}}};
Vba=function(a){if(g.Ra(a))return g.ub(a);a=bj(a);var b=[];g.cj(a,function(c){b.push(c)});
return b};
Wba=function(){this.D=this.u=this.C=this.B=this.F=0};
Xba=function(a){var b={};b=(b.ptlt=g.A()-a.F,b);var c=a.B;c&&(b.pnk=c);(c=a.C)&&(b.pnc=c);(c=a.D)&&(b.pnmm=c);(a=a.u)&&(b.pns=a);return b};
dj=function(){Mg.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
ej=function(a){return di(a.volume)&&.1<=a.volume};
Yba=function(){var a={};this.B=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a);this.u={};for(var b in this.B)0<this.B[b][1]&&(this.u[b]=0);this.C=0};
fj=function(a,b){var c=a.B[b],d=c[1];a.C+=c[0];0<d&&0==a.u[b]&&(a.u[b]=1)};
Zba=function(a){var b=g.Qb(a.B),c=0,d;for(d in a.u)g.nb(b,d)&&1==a.u[d]&&(c+=a.B[d][1],a.u[d]=2);return c};
$ba=function(a){var b=0,c;for(c in a.u){var d=a.u[c];if(1==d||2==d)b+=a.B[c][1]}return b};
gj=function(){this.u=this.B=0};
hj=function(){Si.call(this);this.C=new Di;this.ha=this.P=this.ba=0;this.N=-1;this.Ja=new Di;this.F=new Di;this.u=new Ei;this.I=this.D=-1;this.W=new Di;this.za=2E3;this.da=new gj;this.Aa=new gj;this.ra=new gj};
ij=function(a,b,c){var d=a.ha;Th||c||-1==a.N||(d+=b-a.N);return d};
aca=function(){this.u=!1};
kj=function(a,b){if(!a.u){if(a.C(b)){var c=jj(a.N,a.D,b);a.B|=c;c=0==c}else c=!1;a.u=c}};
lj=function(a,b){this.u=!1;this.D=a;this.N=b;this.B=0};
mj=function(a,b,c,d){ri.call(this,a,b,c,d)};
nj=function(a,b,c){ri.call(this,null,a,b,c);this.I=a.isActive();this.F=0};
oj=function(a){return[a.top,a.left,a.bottom,a.right]};
pj=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;Wi.call(this,b,c,d);this.Mv=0;this.ne={};this.de=new Yba;this.FG={};this.Ke="";this.Bn=null;this.Na=!1;this.u=[];this.C=e;this.K=f;this.F=null;this.D=-1;this.ka=this.P=void 0;this.X=this.W=0;this.da=-1;this.Ga=this.za=!1;this.ea=this.N=this.B=this.Xn=this.Ja=0;new Ei;this.ha=this.ra=0;this.Aa=-1;this.Qd=0;this.Z=g.Oa;this.ba=[this.Xr()];this.Qa=2;this.mm={};this.mm.pause="p";this.mm.resume="r";this.mm.skip="s";this.mm.mute="m";this.mm.unmute=
"um";this.mm.exitfullscreen="ef";this.I=null;this.yF=!1};
qj=function(a){0!=a.Qd&&(a.Qd=3)};
rj=function(a){!a.cn&&a.C&&0!=a.Qd&&(Ug(uh.getInstance().ub,"mpv")?a.yF&&a.oc&&2===a.oc.di()&&kj(a.C,a):kj(a.C,a))};
sj=function(a){return void 0===a?a:Number(a)?ai(a,3):0};
tj=function(a,b){var c;null!=b&&b<a.ba.length?c=b:c=a.ba.length-1;return a.ba[c]};
uj=function(a){var b=!!Ug(uh.getInstance().ub,"umt");return a.P||!b&&!a.ka?0:1};
bca=function(a,b){if(2==a.Qd)var c=0;else-1==a.lastUpdateTime?c=0:(c=b-a.lastUpdateTime,c=c>Math.max(1E4,a.D/3)?0:c);var d=a.Z(a)||{};d=void 0!==d.currentTime?d.currentTime:a.W;var e=d-a.W,f=0;0<=e?(a.X+=c,a.ha+=Math.max(c-e,0),f=Math.min(e,a.X)):a.ra+=Math.abs(e);0!=e&&(a.X=0);-1==a.Aa&&0<e&&(a.Aa=0<=Vh?Rh()-Vh:-1);a.W=d;return f};
cca=function(a,b){ei(a.K,function(c){return c.D==b.D})||a.K.push(b)};
vj=function(a,b,c){return 15E3<=b?!0:a.za?(void 0===c?0:c)?!0:0<a.D?b>=a.D/2:0<a.da?b>=a.da:!1:!1};
dca=function(a){var b=ai(a.ke.hc,2),c=a.de.C,d=a.ke,e=tj(a),f=sj(e.D),h=sj(e.I),l=sj(d.volume),m=ai(e.K,2),n=ai(e.X,2),p=ai(d.hc,2),r=ai(e.Z,2),t=ai(e.ea,2);d=ai(d.Vf,2);a=a.dk().clone();a.round();e=Ti(e,!1);return{sR:b,gp:c,Zs:f,Vs:h,no:l,ct:m,Ws:n,hc:p,gt:r,Xs:t,Vf:d,position:a,Jt:e}};
xj=function(a,b){wj(a.u,b,function(){return{sR:0,gp:void 0,Zs:-1,Vs:-1,no:-1,ct:-1,Ws:-1,hc:-1,gt:-1,Xs:-1,Vf:-1,position:void 0,Jt:[]}});
a.u[b]=dca(a)};
wj=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Aj=function(a,b,c){var d=a.FG[b];if(null!=d)return d;d=eca(a,b);var e=Ub(yj,function(f){return f==b});
a=zj(a,d,d,c,fca[yj[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
Bj=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
zj=function(a,b,c,d,e){if(a.cn)return{"if":0};var f=a.dk().clone();f.round();var h=fi.getInstance(),l=uh.getInstance(),m=a.Kf(),n=a.oc?a.oc.getName():"ns",p={};p["if"]=h.C?1:void 0;p.sdk=a.F?a.F:void 0;p.t=a.aR;p.p=[f.top,f.left,f.bottom,f.right];if(f=a.oc?a.oc.W:null)f=f.clone(),f.round(),p.cp=oj(f);p.tos=Li(m.B,!1);p.mtos=Ti(m);p.mcvt=m.ka.C;p.ps=void 0;p.vht=ij(m,Rh(),2==a.Qd);p.mut=m.Ja.C;p.a=sj(a.ke.volume);p.mv=sj(m.I);p.fs=a.Wm?1:0;p.ft=m.W.u;p.at=m.F.u;p.as=.1<=m.D?1:0;p.atos=Li(m.u);p.ssb=
Li(m.Ga,!1);p.amtos=Oi(m.u);p.uac=a.Ja;p.vpt=m.C.u;"nio"==n&&(p.nio=1,p.avms="nio");p.gmm="4";p.gdr=vj(a,m.C.u,!0)?1:0;p.efpf=a.Qa;if("gsv"==n||"nis"==n)n=a.oc,0<n.F&&(p.nnut=n.F);p.tcm=uj(a);p.nmt=a.ra;p.bt=a.ha;p.pst=a.Aa;p.vpaid=a.P;p.dur=a.D;p.vmtime=a.W;p.is=a.de.C;1<=a.u.length&&(p.i0=a.u[0].gp,p.a0=[a.u[0].no],p.c0=[a.u[0].hc],p.ss0=[a.u[0].Vf],n=a.u[0].position,p.p0=n?oj(n):void 0);2<=a.u.length&&(p.i1=a.u[1].gp,p.a1=Bj(a.u[1].Zs,a.u[1].no,a.u[1].Vs),p.c1=Bj(a.u[1].ct,a.u[1].hc,a.u[1].Ws),
p.ss1=Bj(a.u[1].gt,a.u[1].Vf,a.u[1].Xs),n=a.u[1].position,p.p1=n?oj(n):void 0,p.mtos1=a.u[1].Jt);3<=a.u.length&&(p.i2=a.u[2].gp,p.a2=Bj(a.u[2].Zs,a.u[2].no,a.u[2].Vs),p.c2=Bj(a.u[2].ct,a.u[2].hc,a.u[2].Ws),p.ss2=Bj(a.u[2].gt,a.u[2].Vf,a.u[2].Xs),n=a.u[2].position,p.p2=n?oj(n):void 0,p.mtos2=a.u[2].Jt);4<=a.u.length&&(p.i3=a.u[3].gp,p.a3=Bj(a.u[3].Zs,a.u[3].no,a.u[3].Vs),p.c3=Bj(a.u[3].ct,a.u[3].hc,a.u[3].Ws),p.ss3=Bj(a.u[3].gt,a.u[3].Vf,a.u[3].Xs),n=a.u[3].position,p.p3=n?oj(n):void 0,p.mtos3=a.u[3].Jt);
p.cs=$ba(a.de);b&&(p.ic=Zba(a.de),p.dvpt=m.C.B,p.dvs=Qi(m.B,.5),p.dfvs=Qi(m.B,1),p.davs=Qi(m.u,.5),p.dafvs=Qi(m.u,1),c&&(m.C.B=0,Ri(m.B),Ri(m.u)),a.Gl()&&(p.dtos=m.ba,p.dav=m.P,p.dtoss=a.Mv+1,c&&(m.ba=0,m.P=0,a.Mv++)),p.dat=m.F.B,p.dft=m.W.B,c&&(m.F.B=0,m.W.B=0));p.ps=[h.F.width,h.F.height];p.bs=[h.u.ge(),h.u.getHeight()];p.scs=[h.D.width,h.D.height];p.dom=h.domain;a.Xn&&(p.vds=a.Xn);if(0<a.K.length||a.C)b=g.ub(a.K),a.C&&b.push(a.C),p.pings=g.Pc(b,function(r){return r.toString()});
b=g.Pc(g.Ke(a.K,function(r){return r.F()}),function(r){return r.getId()});
paa(b);p.ces=b;a.B&&(p.vmer=a.B);a.N&&(p.vmmk=a.N);a.ea&&(p.vmiec=a.ea);p.avms=a.oc?a.oc.getName():"ns";a.oc&&g.bc(p,a.oc.ak());d?(p.c=ai(a.ke.hc,2),p.ss=ai(a.ke.Vf,2)):p.tth=Rh()-Cj;p.mc=ai(m.X,2);p.nc=ai(m.K,2);p.mv=sj(m.I);p.nv=sj(m.D);p.lte=ai(a.ix,2);d=tj(a,e);Ti(m);p.qmtos=Ti(d);p.qnc=ai(d.K,2);p.qmv=sj(d.I);p.qnv=sj(d.D);p.qas=.1<=d.D?1:0;p.qi=a.Ke;p.avms||(p.avms="geo");p.psm=m.da.u;p.psv=m.da.getValue();p.psfv=m.Aa.getValue();p.psa=m.ra.getValue();l=kba(l.ub);l.length&&(p.veid=l);a.I&&g.bc(p,
Xba(a.I));return p};
eca=function(a,b){if(g.nb(gca,b))return!0;var c=a.ne[b];return void 0!==c?(a.ne[b]=!0,!c):!1};
ica=function(){this.u={};var a=Be();Dj(this,a,document);var b=hca();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Dj(this,c,c.document);Dj(this,a.top,a.top.document)}}catch(d){}};
hca=function(){var a=document.documentElement;try{if(!ag(Be().top))return"2";var b=[],c=Be(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&0!=b.length?"1":"0"}catch(d){return"2"}};
Dj=function(a,b,c){$h(c,"mousedown",function(){return jca(a)},301);
$h(b,"scroll",function(){return kca(a)},302);
$h(c,"touchmove",function(){return lca(a)},303);
$h(c,"mousemove",function(){return mca(a)},304);
$h(c,"keydown",function(){return nca(a)},305)};
jca=function(a){g.Ib(a.u,function(b){1E5<b.C||++b.C})};
kca=function(a){g.Ib(a.u,function(b){1E5<b.u||++b.u})};
lca=function(a){g.Ib(a.u,function(b){1E5<b.u||++b.u})};
nca=function(a){g.Ib(a.u,function(b){1E5<b.B||++b.B})};
mca=function(a){g.Ib(a.u,function(b){1E5<b.D||++b.D})};
g.Fj=function(a){var b=[];Ej(new oca,a,b);return b.join("")};
oca=function(){};
Ej=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),Ej(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),Gj(d,c),c.push(":"),Ej(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Gj(b,c);break;case "number":c.push(isFinite(b)&&
!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}};
Gj=function(a,b){b.push('"',a.replace(pca,function(c){var d=Hj[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),Hj[c]=d);return d}),'"')};
Ij=function(){this.u=[];this.B=[]};
Jj=function(a,b){return g.jb(a.u,function(c){return c.Ke==b})};
Kj=function(a,b){return b?g.jb(a.u,function(c){return c.Hf.tk==b}):null};
qca=function(a,b){return g.jb(a.B,function(c){return 2==c.bi()&&c.Ke==b})};
Mj=function(){var a=Lj;return 0==a.u.length?a.B:0==a.B.length?a.u:g.tb(a.B,a.u)};
Nj=function(a,b){var c=1==b.bi()?a.u:a.B,d=g.ib(c,function(e){return e==b});
return-1!=d?(c.splice(d,1),b.oc&&b.oc.xp(),b.dispose(),!0):!1};
rca=function(a){var b=Lj;if(Nj(b,a)){switch(a.bi()){case 0:var c=function(){return null};
case 2:c=function(){return qca(b,a.Ke)};
break;case 1:c=function(){return Jj(b,a.Ke)}}for(var d=c();d;d=c())Nj(b,d)}};
sca=function(a,b){var c=Lj,d=g.Ke(a,(void 0===b?0:b)?function(e){return!Jj(c,e.Ke)}:function(e){return!Kj(c,e.Hf.tk)});
c.u.push.apply(c.u,g.la(d))};
Oj=function(a){var b=Lj,c=[];g.Gb(a,function(d){ei(b.u,function(e){return e.Hf.tk===d.Hf.tk&&e.Ke===d.Ke})||(b.u.push(d),c.push(d))})};
Pj=function(){this.u=this.B=null};
Qj=function(a,b){function c(d,e){b(d,e)}
if(null==a.B)return!1;a.u=g.jb(a.B,function(d){return null!=d&&d.NC()});
a.u&&(a.u.init(c)?oi(a.u.u):b(a.u.u.Om(),a.u));return null!=a.u};
Rj=function(a){a=tca(a);si.call(this,a.length?a[a.length-1]:new ki(Zg,0));this.C=a;this.B=null};
tca=function(a){if(!a.length)return[];a=(0,g.Ke)(a,function(c){return null!=c&&c.bD()});
for(var b=1;b<a.length;b++)ni(a[b-1],a[b]);return a};
Sj=function(a,b,c,d){ri.call(this,a,b,c,d);this.P=this.N=this.F=this.I=this.C=null};
Tj=function(a){return a.C&&a.C.takeRecords?a.C.takeRecords():[]};
vca=function(a){if(!a.element)return!1;var b=a.element,c=a.B.u.gf,d=uh.getInstance().u.u;a.C=new c.IntersectionObserver(rh(d,function(e){return Uj(a,e)}),uca);
d=rh(d,function(){a.C.unobserve(b);a.C.observe(b);Uj(a,Tj(a))});
c.ResizeObserver?(a.I=new c.ResizeObserver(d),a.I.observe(b)):c.MutationObserver&&(a.F=new g.v.MutationObserver(d),a.F.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.C.observe(b);Uj(a,Tj(a));return!0};
Uj=function(a,b){try{if(b.length){a.N||(a.N=Rh());var c=wca(b),d=Ag(a.element,a.B.u.gf),e=d.x,f=d.y;a.u=new gg(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=bi(c.intersectionRect);a.D=hg(h,a.u.left-h.left,a.u.top-h.top)}}catch(l){a.xp(),Qh(299,l)}};
wca=function(a){return(0,g.kh)(a,function(b,c){return b.time>c.time?b:c},a[0])};
Vj=function(){var a=/Chrome\/(\d+)/.exec(g.Vc);return a?parseFloat(a[1]):NaN};
Wj=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.Vc);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("."))};
Yj=function(){return Xj("android")&&Xj("chrome")&&!(Xj("trident/")||Xj("edge/"))&&!Xj("cobalt")};
Zj=function(){return Xj("armv7")||Xj("aarch64")||Xj("android")};
g.ak=function(){return Xj("cobalt")};
ck=function(){return Xj("cobalt")&&Xj("appletv")};
dk=function(){return Xj("(ps3; leanback shell)")||Xj("ps3")&&g.ak()};
ek=function(){return Xj("(ps4; leanback shell)")||Xj("ps4")&&g.ak()};
g.fk=function(){return g.ak()&&(Xj("ps4 vr")||Xj("ps4 pro vr"))};
gk=function(){var a=/WebKit\/([0-9]+)/.exec(g.Vc);return!!(a&&600<=parseInt(a[1],10))};
hk=function(){var a=/WebKit\/([0-9]+)/.exec(g.Vc);return!!(a&&602<=parseInt(a[1],10))};
ik=function(){return Xj("iemobile")||Xj("windows phone")&&Xj("edge")};
kk=function(){return jk&&Xj("applewebkit")&&!Xj("version")&&(!Xj("safari")||Xj("gsa/"))};
mk=function(){return g.lk&&Xj("version/")};
nk=function(){return Xj("smart-tv")&&Xj("samsung")};
Xj=function(a){var b=g.Vc;return b?0<=b.toLowerCase().indexOf(a):!1};
ok=function(a){a=void 0===a?Zg:a;si.call(this,new ki(a,2))};
qk=function(){var a=pk();ki.call(this,Zg.top,a,"geo")};
pk=function(){uh.getInstance();var a=fi.getInstance();return a.C||a.B?0:2};
rk=function(){};
sk=function(){this.done=!1;this.u={NH:0,gA:0,BW:0,XA:0,Lw:-1,fI:0,eI:0,gI:0};this.F=null;this.I=!1;this.B=null;this.K=0;this.C=new ji(this)};
uk=function(){var a=tk;a.I||(a.I=!0,xca(a,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.D.apply(a,g.la(c))}),a.D())};
yca=function(){rk.getInstance();var a=Pj.getInstance();null!=a.u&&a.u.u?oi(a.u.u):fi.getInstance().update(Zg)};
vk=function(a,b,c){if(!a.done&&(a.C.cancel(),0!=b.length)){a.B=null;try{yca();var d=Rh(),e=uh.getInstance();e.F=d;if(null!=Pj.getInstance().u)for(e=0;e<b.length;e++)Sba(b[e],d,c);else vh(Dh,"",{strategy_not_selected:1,bin:e.B},!0,void 0);for(d=0;d<b.length;d++)Tba(b[d]);++a.u.XA;zca()}finally{c?g.Gb(b,function(f){f.ke.hc=0}):a.C.schedule()}}};
xca=function(a,b){if(!a.F){var c=Mh(142,b,void 0);mh();var d;Ig.visibilityState?d="visibilitychange":Ig.mozVisibilityState?d="mozvisibilitychange":Ig.webkitVisibilityState&&(d="webkitvisibilitychange");d&&Uf(Ig,d,c,{capture:!1})&&(a.F=c)}};
wk=function(){var a=Pj.getInstance();if(null!=a.u){var b=a.u;g.Gb(Mj(),function(c){return Yi(c,b)})}};
zca=function(){var a=uh.getInstance();Ug(a.ub,"llp")};
xk=function(a,b){var c=a.K;Th&&(c+=b-Uh);return c};
Aca=function(a){var b=tk;a=void 0===a?function(){return{}}:a;
Lh.D="av-js";Dh.u=.01;yba([function(c){var d=uh.getInstance(),e={};e=(e.bin=d.B,e.type="error",e);d=Vg(d.ub);if(!b.B){var f=Zg.document,h=0<=Sh?Rh()-Sh:-1,l=Rh();-1==b.u.Lw&&(h=l);var m=fi.getInstance(),n=uh.getInstance(),p=Vg(n.ub),r=Mj();try{if(0<r.length){var t=m.u;t&&(p.bs=[t.ge(),t.getHeight()]);var w=m.F;w&&(p.ps=[w.width,w.height]);Zg.screen&&(p.scs=[Zg.screen.width,Zg.screen.height])}else p.url=encodeURIComponent(Zg.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=h;p.pt=Sh;p.bin=n.B;void 0!==Zg.google_osd_load_pub_page_exp&&(p.olpp=Zg.google_osd_load_pub_page_exp);p.deb=[1,b.u.NH,b.u.gA,b.u.XA,b.u.Lw,0,b.C.B,b.u.fI,b.u.eI,b.u.gI].join("-");p.tvt=xk(b,l);m.B&&(p.inapp=1);if(null!==Zg&&Zg!=Zg.top){0<r.length&&(p.iframe_loc=encodeURIComponent(Zg.location.href.substring(0,512)));var x=m.K;p.is=[x.ge(),x.getHeight()]}}catch(y){p.error=1}b.B=p}t=g.Zb(b.B);w=uh.getInstance().u;1==Ug(w.C,"prf")?(x=new qh,f=w.u,h=0,-1<f.u&&(h=f.D.u.now()-f.u),x=Kf(x,1,
f.C+h),f=w.u,x=Kf(x,5,-1<f.u?f.B+1:f.B),x=Kf(x,2,w.B.u.C()),x=Kf(x,3,w.B.u.B()),x=Kf(x,4,w.B.u.u()),w={},f=new g.uf,h=g.Hf(x,1),h=null==h?h:+h,h=null==h?0:h,0!==h&&g.Af(f,1,h),h=If(x,2),0!==h&&g.zf(f,2,h),h=If(x,3),0!==h&&g.zf(f,3,h),h=If(x,4),0!==h&&g.zf(f,4,h),h=If(x,5),0!==h&&g.wf(f,5,h),x=g.vf(f),w=(w.pf=g.qf(x),w)):w={};g.bc(t,w);g.bc(c,e,d,t,a());if(e=Ai())d={},g.bc(c,(d.v=encodeURIComponent(e),d))}])};
Bca=function(){var a=yk||Zg;if(!a)return"";var b=[];if(!a.location||!a.location.href)return"";b.push("url="+encodeURIComponent(a.location.href.substring(0,512)));a.document&&a.document.referrer&&b.push("referrer="+encodeURIComponent(a.document.referrer.substring(0,512)));return b.join("&")};
zk=function(a){return function(b){return void 0===b[a]?0:b[a]}};
Bk=function(){var a=[0,2,4];return function(b){b=b.tos;if(Array.isArray(b)){for(var c=Array(b.length),d=0;d<b.length;d++)c[d]=0<d?c[d-1]+b[d]:b[d];return void 0!==a?Ak(c,a):c}}};
Ck=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?function(){return!0}:d;
return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return Ak(f,b,c)}};
Dk=function(a,b){return function(c){return b(c)?c[a]:void 0}};
Ek=function(a){return function(b){for(var c=0;c<a.length;c++)if(a[c]===b.e||void 0===a[c]&&!b.hasOwnProperty("e"))return!0;return!1}};
Ak=function(a,b,c){return void 0===c||c?g.Ke(a,function(d,e){return g.nb(b,e)}):g.Pc(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})};
Hk=function(a,b){var c={sv:"880",cb:"j"};c.nas=Lj.u.length;c.msg=a;if(void 0!==b){var d=Fk(b);d&&(c.e=Gk[d])}return c};
Ik=function(a){return pc(a,"custom_metric_viewable")};
Fk=function(a){var b=Ik(a)?"custom_metric_viewable":a.toLowerCase();return Ub(yj,function(c){return c==b})};
Cca=function(){this.u=void 0;this.B=!1;this.C=0;this.D=-1;this.F="tos"};
Eca=function(a){try{var b=a.split(",");return b.length>g.Qb(Dca).length?null:(0,g.kh)(b,function(c,d){var e=d.toLowerCase().split("=");if(2!=e.length||void 0===Jk[e[0]]||!Jk[e[0]](e[1]))throw Error("Entry ("+e[0]+", "+e[1]+") is invalid.");c[e[0]]=e[1];return c},{})}catch(c){return null}};
Fca=function(a,b){if(void 0==a.u)return 0;switch(a.F){case "mtos":return a.B?Pi(b.u,a.u):Pi(b.B,a.u);case "tos":return a.B?Ni(b.u,a.u):Ni(b.B,a.u)}return 0};
Kk=function(a,b,c,d){lj.call(this,b,d);this.K=a;this.I=c};
Lk=function(a){lj.call(this,"fully_viewable_audible_half_duration_impression",a)};
Mk=function(a,b){lj.call(this,a,b)};
Nk=function(){this.B=this.D=this.I=this.F=this.C=this.u=""};
Gca=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.bc(f,a);void 0!==c&&g.bc(f,c);a=xi(wi(new vi,f));0<a.length&&void 0!==d&&void 0!==e&&(e=e(a),a+="&"+d+"="+e);return a};
Pk=function(){};
Qk=function(a,b,c){nj.call(this,a,b,c)};
Rk=function(a){a=void 0===a?Zg:a;si.call(this,new ki(a,2))};
Sk=function(a,b,c){nj.call(this,a,b,c)};
Tk=function(a){a=void 0===a?Zg:a;si.call(this,new ki(a,2))};
Uk=function(){ki.call(this,Zg,2,"mraid");this.ba=0;this.W=this.X=!1;this.I=null;this.B=Zh(this.gf);this.C.u=new gg(0,0,0,0);this.ea=!1};
Vk=function(a,b,c){a.Ik("addEventListener",b,c)};
Yk=function(a){uh.getInstance().D=!!a.Ik("isViewable");Vk(a,"viewableChange",Hca);"loading"===a.Ik("getState")?Vk(a,"ready",Wk):Xk(a)};
Xk=function(a){"string"===typeof a.B.uh.AFMA_LIDAR?(a.X=!0,Ica(a)):(a.B.compatibility=3,a.I="nc",mi(a,"w"))};
Ica=function(a){a.W=!1;var b=1==Ug(uh.getInstance().ub,"rmmt"),c=!!a.Ik("isViewable");(b?!c:1)&&mh().setTimeout(Ph(524,function(){a.W||(Zk(a),Qh(540,Error()),a.I="mt",mi(a,"w"))}),500);
Jca(a);Vk(a,a.B.uh.AFMA_LIDAR,$k)};
Jca=function(a){var b=1==Ug(uh.getInstance().ub,"sneio"),c=void 0!==a.B.uh.AFMA_LIDAR_EXP_1,d=void 0!==a.B.uh.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.B.uh.AFMA_LIDAR_EXP_2=!0);c&&(a.B.uh.AFMA_LIDAR_EXP_1=!b)};
Zk=function(a){a.Ik("removeEventListener",a.B.uh.AFMA_LIDAR,$k);a.X=!1};
al=function(a,b){if("loading"===a.Ik("getState"))return new g.he(-1,-1);var c=a.Ik(b);if(!c)return new g.he(-1,-1);var d=parseInt(c.width,10);c=parseInt(c.height,10);return isNaN(d)||isNaN(c)?new g.he(-1,-1):new g.he(d,c)};
Wk=function(){try{var a=Uk.getInstance();a.Ik("removeEventListener","ready",Wk);Xk(a)}catch(b){Qh(541,b)}};
$k=function(a,b){try{var c=Uk.getInstance();c.W=!0;var d=a?new gg(a.y,a.x+a.width,a.y+a.height,a.x):new gg(0,0,0,0);var e=Rh(),f=ii();var h=new Wh(e,f,c);h.u=d;h.volume=b;c.jk(h)}catch(l){Qh(542,l)}};
Hca=function(a){var b=uh.getInstance(),c=Uk.getInstance();a&&!b.D&&(b.D=!0,c.ea=!0,c.I&&mi(c,"w",!0))};
bl=function(){this.Dd=!1;this.u=null;this.C=new Pk;this.B=null;var a={};this.K=(a.start=this.wJ,a.firstquartile=this.rJ,a.midpoint=this.tJ,a.thirdquartile=this.xJ,a.complete=this.pJ,a.pause=this.Qx,a.resume=this.KF,a.skip=this.vJ,a.viewable_impression=this.ek,a.mute=this.Un,a.unmute=this.Un,a.fullscreen=this.sJ,a.exitfullscreen=this.qJ,a.fully_viewable_audible_half_duration_impression=this.ek,a.measurable_impression=this.ek,a.abandon=this.Qx,a.engagedview=this.ek,a.impression=this.ek,a.creativeview=
this.ek,a.progress=this.Un,a.custom_metric_viewable=this.ek,a.bufferstart=this.Qx,a.bufferfinish=this.KF,a);a={};this.W=(a.overlay_resize=this.uJ,a.abandon=this.Fw,a.close=this.Fw,a.collapse=this.Fw,a.overlay_unmeasurable_impression=function(b){return Aj(b,"overlay_unmeasurable_impression",ii())},a.overlay_viewable_immediate_impression=function(b){return Aj(b,"overlay_viewable_immediate_impression",ii())},a.overlay_unviewable_impression=function(b){return Aj(b,"overlay_unviewable_impression",ii())},
a.overlay_viewable_end_of_session_impression=function(b){return Aj(b,"overlay_viewable_end_of_session_impression",ii())},a);
uh.getInstance().B=3;Kca(this);this.P=this.D=!1};
cl=function(a,b,c,d){b=a.Xp(null,d,!0,b);b.F=c;sca([b],a.D);return b};
Lca=function(a,b,c){iba(b);var d=a.B;g.Gb(b,function(e){var f=g.Pc(e.u,function(h){var l=Eca(h);if(null==l)h=null;else if(h=new Cca,null!=l.visible&&(h.u=l.visible/100),null!=l.audible&&(h.B=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=qc(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(h.C=l,h.D=-1):(h.C=-1,h.D=l);h.F=void 0===m?"tos":m}return h});
ei(f,function(h){return null==h})||cca(c,new Kk(e.id,e.event,f,d))})};
Mca=function(a){a=a.B;return[new Mk("viewable_impression",a),new Lk(a)]};
Nca=function(){var a=[];fi.getInstance();var b=uh.getInstance();Ug(b.ub,"dov");a.push(qk.getInstance());Ug(b.ub,"mvp_lv")&&a.push(Uk.getInstance());b=[new Rk,new Tk];b.push(new Rj(a));b.push(new ok(Zg));return b};
Oca=function(a){if(!a.Dd){a.Dd=!0;try{var b=Rh(),c=uh.getInstance(),d=fi.getInstance();Sh=b;c.C=79463069;"o"!==a.u&&(yk=Yh(Zg).gf);if(sba()){tk.u.gA=0;tk.u.Lw=Rh()-b;var e=Nca(),f=Pj.getInstance();f.B=e;Qj(f,function(){dl(a)})?tk.done||(wk(),ni(f.u.u,a),uk()):d.C?dl(a):uk()}else el=!0}catch(h){throw Lj.reset(),h;
}}};
gl=function(a){tk.C.cancel();fl=a;tk.done=!0};
hl=function(a){if(a.u)return a.u;var b=Pj.getInstance().u;if(b)switch(b.getName()){case "nis":a.u="n";break;case "gsv":a.u="m"}a.u||(a.u="h");return a.u};
il=function(a,b,c){if(null==a.B)return b.Xn|=4,!1;a=jj(a.B,c,b);b.Xn|=a;return 0==a};
Pca=function(){g.Gb(Lj.u,function(a){return rj(a)})};
dl=function(a){if(!a.P){a.P=!0;var b=[new ok(Zg)],c=Pj.getInstance();c.B=b;Qj(c,function(){gl("i")})?tk.done||(wk(),ni(c.u.u,a),uk()):gl("i")}};
jl=function(a,b,c){if(!b.Na){var d=Aj(b,"start",ii());a=a.C.u(d).u;var e={id:"lidarv"};e.r=c;e.v="880v";Bd(a,function(f,h){return e[f]="mtos"==f||"tos"==f?h:encodeURIComponent(h)});
c=Bca();Bd(c,function(f,h){return e[f]=encodeURIComponent(h)});
c="//pagead2.googlesyndication.com/pagead/gen_204?"+xi(wi(new vi,e));Bi(c);b.Na=!0}};
kl=function(a,b,c){vk(tk,[a],!ii());xj(a,c);4!=c&&wj(a.ba,c,a.Xr);return Aj(a,b,ii())};
Kca=function(a){Aca(function(){var b=ll();null!=a.u&&(b.sdk=a.u);var c=Pj.getInstance();null!=c.u&&(b.avms=c.u.getName());return b})};
Qca=function(a,b,c,d){if(a.D)var e=Jj(Lj,b);else e=Kj(Lj,c),null!==e&&e.Ke!==b&&(a.Co(e),e=null);e||(b=a.Xp(c,Rh(),!1,b),0==Lj.B.length&&(uh.getInstance().C=79463069),Oj([b]),e=b,e.F=hl(a),d&&(e.Bn=d));return e};
Rca=function(a,b){b.N=0;for(var c in ml)null==a[c]&&(b.N|=ml[c]);nl(a,"currentTime");nl(a,"duration")};
Sca=function(a){g.Gb(Lj.u,function(b){3==b.Qd&&a.Co(b)})};
nl=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
ll=function(){var a=fi.getInstance(),b={};return b.sv="880",b["if"]=a.C?"1":"0",b.nas=String(Lj.u.length),b};
ol=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
ql=function(a){return!!(1<<a&pl)};
Xca=function(){try{Tca()}catch(d){}var a="a=1&b="+pl+"&",b=[],c=99;g.Gb(Uca,function(d,e){var f=!1;try{f=d(Zg)}catch(h){}b[e/32>>>0]|=f<<e%32});
g.Gb(b,function(d,e){a+=String.fromCharCode(c+e)+"="+(d>>>0).toString(16)+"&"});
c=105;g.Gb(Vca,function(d){var e="false";try{e=d(Zg)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
g.Gb(Wca,function(d){var e="";try{e=g.rf(d(Zg))}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
Tca=function(){if(!rl){var a=function(){sl=!0;Zg.document.removeEventListener("webdriver-evaluate",a,!0)};
Zg.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){tl=!0;Zg.document.removeEventListener("webdriver-evaluate-response",b,!0)};
Zg.document.addEventListener("webdriver-evaluate-response",b,!0);rl=!0}};
ul=function(){this.B=-1};
vl=function(){this.B=64;this.u=Array(4);this.F=Array(this.B);this.D=this.C=0;this.reset()};
wl=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.u[0];c=a.u[1];e=a.u[2];var f=a.u[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.u[0]=a.u[0]+b&4294967295;a.u[1]=a.u[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.u[2]=a.u[2]+e&4294967295;a.u[3]=a.u[3]+f&4294967295};
xl=function(){this.B=null};
yl=function(a){return function(b){var c=new vl;c.update(b+a);return Uaa(c.digest()).slice(-8)}};
zl=function(a,b){this.B=a;this.C=b};
jj=function(a,b,c){var d=a.u(c);if("function"===typeof d){var e={};e=(e.sv="880",e.cb="j",e.e=Yca(b),e);var f=Aj(c,b,ii());g.bc(e,f);c.FG[b]=f;a=2==c.bi()?Iba(e).join("&"):a.C.u(e).u;try{return d(c.Ke,a,b),0}catch(h){return 2}}else return 1};
Yca=function(a){var b=Ik(a)?"custom_metric_viewable":a;a=Ub(yj,function(c){return c==b});
return Gk[a]};
Al=function(a,b,c){zl.call(this,a,b);this.D=c};
Bl=function(){bl.call(this);this.I=null;this.F=!1;this.N={};this.C=new xl};
Zca=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.B&&Array.isArray(c)&&Lca(a,c,b)};
$ca=function(a,b,c){var d=Jj(Lj,b);d||(d=c.opt_nativeTime||-1,d=cl(a,b,hl(a),d),c.opt_osdId&&(d.Bn=c.opt_osdId));return d};
ada=function(a,b,c){var d=Jj(Lj,b);d||(d=cl(a,b,"n",c.opt_nativeTime||-1));return d};
bda=function(a,b){var c=Jj(Lj,b);c||(c=cl(a,b,"h",-1));return c};
cda=function(a){uh.getInstance();switch(hl(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.bc(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.C.u(Hk("ol",d));if(void 0!==d)if(void 0!==Fk(d))if(el)b=Hk("ue",d);else if(Oca(a),"i"==fl)b=Hk("i",d),b["if"]=0;else if(b=a.ds(b,e))if(a.D&&3==b.Qd)b="stopped";else{b:{"i"==fl&&(b.cn=!0,a.ry());c=e.opt_fullscreen;void 0!==c&&Xi(b,!!c);var f;if(c=!fi.getInstance().B)(c=Ac(g.Vc,"CrKey")||Ac(g.Vc,"PlayStation")||Ac(g.Vc,"Roku")||Dba()||Ac(g.Vc,"Xbox"))||(c=g.Vc,c=Ac(c,"AppleTV")||
Ac(c,"Apple TV")||Ac(c,"CFNetwork")||Ac(c,"tvOS")),c||(c=g.Vc,c=Ac(c,"sdk_google_atv_x86")||Ac(c,"Android TV")),c=!c;c&&(mh(),c=0===$g(Ig));if(f=c){switch(b.bi()){case 1:jl(a,b,"pv");break;case 2:a.jy(b)}gl("pv")}c=d.toLowerCase();if(!f&&g.nb(dda,c)&&0==b.Qd){"i"!=fl&&(tk.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;Vh=f="number"===typeof f?f:Rh();b.zr=!0;var h=ii();b.Qd=1;b.ne={};b.ne.start=!1;b.ne.firstquartile=!1;b.ne.midpoint=!1;b.ne.thirdquartile=!1;b.ne.complete=!1;b.ne.resume=!1;b.ne.pause=
!1;b.ne.skip=!1;b.ne.mute=!1;b.ne.unmute=!1;b.ne.viewable_impression=!1;b.ne.measurable_impression=!1;b.ne.fully_viewable_audible_half_duration_impression=!1;b.ne.fullscreen=!1;b.ne.exitfullscreen=!1;b.Mv=0;h||(b.Kf().N=f);vk(tk,[b],!h)}(f=b.mm[c])&&fj(b.de,f);g.nb(eda,c)&&(b.yF=!0,rj(b));switch(b.bi()){case 1:var l=Ik(c)?a.K.custom_metric_viewable:a.K[c];break;case 2:l=a.W[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=Hk(void 0,c);g.bc(e,d);d=e;break b}d=void 0}3==b.Qd&&(a.D?b.oc&&b.oc.xp():a.Co(b));
b=d}else b=Hk("nf",d);else b=void 0;else el?b=Hk("ue"):(b=a.ds(b,e))?(d=Hk(),g.bc(d,zj(b,!0,!1,!1)),b=d):b=Hk("nf");return"string"===typeof b?a.D&&"stopped"===b?Cl:a.C.u(void 0):a.C.u(b)};
El=function(a){return uh.getInstance(),"h"!=hl(a)&&hl(a),!1};
Fl=function(a){var b={};return b.viewability=a.u,b.googleViewability=a.C,b.moatInit=a.F,b.moatViewability=a.I,b.integralAdsViewability=a.D,b.doubleVerifyViewability=a.B,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().ds(a,{});c?qj(c):b&&(c=Bl.getInstance().Xp(null,Rh(),!1,a),c.Qd=3,Oj([c]))};
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));a=a.substring(0,a.indexOf("://"));if("http"!==a&&"https"!==a&&"chrome-extension"!==a&&"moz-extension"!==a&&"file"!==a&&"android-app"!==a&&"chrome-search"!==a&&"chrome-untrusted"!==a&&"chrome"!==a&&"app"!==a&&"devtools"!==a)throw Error("Invalid URI scheme in origin: "+
a);c="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===a&&"80"!==e||"https"===a&&"443"!==e)c=":"+e}return a+"://"+b+c};
fda=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,w=0;64>w;w+=4)t[w/4]=r[w]<<24|r[w+1]<<16|r[w+2]<<8|r[w+3];for(w=16;80>w;w++)r=t[w-3]^t[w-8]^t[w-14]^t[w-16],t[w]=(r<<1|r>>>31)&4294967295;r=e[0];var x=e[1],y=e[2],D=e[3],F=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var G=D^x&(y^D);var O=1518500249}else G=x^y^D,O=1859775393;else 60>w?(G=x&y|D&(x|y),O=2400959708):(G=x^y^D,O=3395469782);G=((r<<5|r>>>27)&4294967295)+G+F+O+t[w]&4294967295;F=D;D=y;y=(x<<30|x>>>2)&4294967295;x=r;r=G}e[0]=e[0]+r&4294967295;e[1]=e[1]+x&4294967295;e[2]=
e[2]+y&4294967295;e[3]=e[3]+D&4294967295;e[4]=e[4]+F&4294967295}
function c(r,t){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var w=[],x=0,y=r.length;x<y;++x)w.push(r.charCodeAt(x));r=w}t||(t=r.length);w=0;if(0==n)for(;w+64<t;)b(r.slice(w,w+64)),w+=64,p+=64;for(;w<t;)if(f[n++]=r[w++],p++,64==n)for(n=0,b(f);w+64<t;)b(r.slice(w,w+64)),w+=64,p+=64}
function d(){var r=[],t=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var w=63;56<=w;w--)f[w]=t&255,t>>>=8;b(f);for(w=t=0;5>w;w++)for(var x=24;0<=x;x-=8)r[t++]=e[w]>>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,mI:function(){for(var r=d(),t="",w=0;w<r.length;w++)t+="0123456789ABCDEF".charAt(Math.floor(r[w]/16))+"0123456789ABCDEF".charAt(r[w]%16);return t}}};
gda=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.Gb(d,function(l){e.push(l)}),Jl(e.join(" "));
var f=[],h=[];g.Gb(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.ob(f)?[c,b,a]:[f.join(":"),c,b,a];g.Gb(d,function(l){e.push(l)});
a=Jl(e.join(" "));a=[c,a];g.ob(h)||a.push(h.join(""));return a.join("_")};
Jl=function(a){var b=fda();b.update(a);return b.mI().toLowerCase()};
g.Kl=function(a){var b=Il(String(g.v.location.href)),c;(c=g.v.__SAPISID||g.v.__APISID||g.v.__OVERRIDE_SID)?c=!0:(c=new Qf(document),c=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID"),c=!!c);if(c&&(c=(b=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:")||0==b.indexOf("moz-extension:"))?g.v.__SAPISID:g.v.__APISID,c||(c=new Qf(document),c=c.get(b?"SAPISID":"APISID")||c.get("__Secure-3PAPISID")),c)){b=b?"SAPISIDHASH":"APISIDHASH";var d=String(g.v.location.href);return d&&
c&&b?[b,gda(Il(d),c,a||null)].join(" "):null}return null};
g.Ll=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
Ml=function(a,b){g.Ll.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.B=null;a&&this.init(a,b)};
Ol=function(a){return!(!a||!a[Nl])};
ida=function(a,b,c,d,e){this.listener=a;this.u=null;this.src=b;this.type=c;this.capture=!!d;this.ts=e;this.key=++hda;this.Jn=this.fr=!1};
Pl=function(a){a.Jn=!0;a.listener=null;a.u=null;a.src=null;a.ts=null};
Ql=function(a){this.src=a;this.listeners={};this.u=0};
Rl=function(a,b){var c=b.type;c in a.listeners&&g.rb(a.listeners[c],b)&&(Pl(b),0==a.listeners[c].length&&(delete a.listeners[c],a.u--))};
Tl=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Jn&&f.listener==b&&f.capture==!!c&&f.ts==d)return e}return-1};
Vl=function(a,b,c,d,e){if(d&&d.once)return Ul(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Vl(a,b[f],c,d,e);return null}c=Wl(c);return Ol(a)?a.ua(b,c,g.Sa(d)?!!d.capture:!!d,e):Xl(a,b,c,!1,d,e)};
Xl=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Sa(e)?!!e.capture:!!e,l=Yl(a);l||(a[Zl]=l=new Ql(a));c=l.add(b,c,d,h,f);if(c.u)return c;d=jda();c.u=d;d.src=a;d.listener=c;if(a.addEventListener)kda||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent($l(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");am++;return c};
jda=function(){var a=lda,b=bm?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);
if(!c)return c};
return b};
Ul=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Ul(a,b[f],c,d,e);return null}c=Wl(c);return Ol(a)?a.gx(b,c,g.Sa(d)?!!d.capture:!!d,e):Xl(a,b,c,!0,d,e)};
cm=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)cm(a,b[f],c,d,e);else d=g.Sa(d)?!!d.capture:!!d,c=Wl(c),Ol(a)?a.Eb(b,c,d,e):a&&(a=Yl(a))&&(b=a.Ro(b,c,d,e))&&dm(b)};
dm=function(a){if("number"!==typeof a&&a&&!a.Jn){var b=a.src;if(Ol(b))Rl(b.C,a);else{var c=a.type,d=a.u;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent($l(c),d):b.addListener&&b.removeListener&&b.removeListener(d);am--;(c=Yl(b))?(Rl(c,a),0==c.u&&(c.src=null,b[Zl]=null)):Pl(a)}}};
$l=function(a){return a in em?em[a]:em[a]="on"+a};
gm=function(a,b,c,d){var e=!0;if(a=Yl(a))if(b=a.listeners[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.Jn&&(f=fm(f,d),e=e&&!1!==f)}return e};
fm=function(a,b){var c=a.listener,d=a.ts||a.src;a.fr&&dm(a);return c.call(d,b)};
lda=function(a,b){if(a.Jn)return!0;if(!bm){var c=b||g.Na("window.event"),d=new Ml(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(m){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);f=a.type;for(var h=c.length-1;!d.u&&0<=h;h--){d.currentTarget=c[h];var l=gm(c[h],f,!0,d);e=e&&l}for(h=0;!d.u&&h<c.length;h++)d.currentTarget=c[h],l=gm(c[h],f,!1,d),e=e&&l}return e}return fm(a,new Ml(b,
this))};
Yl=function(a){a=a[Zl];return a instanceof Ql?a:null};
Wl=function(a){if("function"===typeof a)return a;a[hm]||(a[hm]=function(b){return a.handleEvent(b)});
return a[hm]};
g.im=function(){g.B.call(this);this.C=new Ql(this);this.za=this;this.ka=null};
jm=function(a,b,c,d){b=a.C.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.Jn&&h.capture==c){var l=h.listener,m=h.ts||h.src;h.fr&&Rl(a.C,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
km=function(a,b){this.C=a;this.D=b;this.B=0;this.u=null};
lm=function(a,b){a.D(b);100>a.B&&(a.B++,b.next=a.u,a.u=b)};
mm=function(a){g.v.setTimeout(function(){throw a;},0)};
om=function(a){a=mda(a);"function"!==typeof g.v.setImmediate||g.v.Window&&g.v.Window.prototype&&!Wc("Edge")&&g.v.Window.prototype.setImmediate==g.v.setImmediate?(nm||(nm=nda()),nm(a)):g.v.setImmediate(a)};
nda=function(){var a=g.v.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Wc("Presto")&&(a=function(){var e=g.Fe("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.z)(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&&!Wc("Trident")&&!Wc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.yA;c.yA=null;e()}};
return function(e){d.next={yA:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.v.setTimeout(e,0)}};
pm=function(){this.B=this.u=null};
qm=function(){this.next=this.scope=this.u=null};
g.um=function(a,b){rm||oda();sm||(rm(),sm=!0);tm.add(a,b)};
oda=function(){if(g.v.Promise&&g.v.Promise.resolve){var a=g.v.Promise.resolve(void 0);rm=function(){a.then(vm)}}else rm=function(){om(vm)}};
vm=function(){for(var a;a=tm.remove();){try{a.u.call(a.scope)}catch(b){mm(b)}lm(wm,a)}sm=!1};
xm=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
zm=function(a){this.Ha=0;this.Hk=void 0;this.zm=this.Tj=this.Ul=null;this.ls=this.Yv=!1;if(a!=g.Oa)try{var b=this;a.call(void 0,function(c){ym(b,2,c)},function(c){ym(b,3,c)})}catch(c){ym(this,3,c)}};
Am=function(){this.next=this.context=this.onRejected=this.C=this.u=null;this.B=!1};
Cm=function(a,b,c){var d=Bm.get();d.C=a;d.onRejected=b;d.context=c;return d};
Dm=function(a){if(a instanceof zm)return a;var b=new zm(g.Oa);ym(b,2,a);return b};
Em=function(a){return new zm(function(b,c){c(a)})};
Gm=function(a,b,c){Fm(a,b,c,null)||g.um(g.Wa(b,a))};
pda=function(a){return new zm(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],Gm(e,b,c)})};
Hm=function(a){return new zm(function(b,c){var d=a.length,e=[];if(d)for(var f=function(n,p){d--;e[n]=p;0==d&&b(e)},h=function(n){c(n)},l=0,m;l<a.length;l++)m=a[l],Gm(m,g.Wa(f,l),h);
else b(e)})};
Jm=function(a,b){var c=Cm(b,b,void 0);c.B=!0;Im(a,c);return a};
Lm=function(a,b){return Km(a,null,b,void 0)};
Mm=function(a,b){if(0==a.Ha)if(a.Ul){var c=a.Ul;if(c.Tj){for(var d=0,e=null,f=null,h=c.Tj;h&&(h.B||(d++,h.u==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.Ha&&1==d?Mm(c,b):(f?(d=f,d.next==c.zm&&(c.zm=d),d.next=d.next.next):Nm(c),Om(c,e,3,b)))}a.Ul=null}else ym(a,3,b)};
Im=function(a,b){a.Tj||2!=a.Ha&&3!=a.Ha||Pm(a);a.zm?a.zm.next=b:a.Tj=b;a.zm=b};
Km=function(a,b,c,d){var e=Cm(null,null,null);e.u=new zm(function(f,h){e.C=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
e.onRejected=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof Qm?h(l):f(m)}catch(n){h(n)}}:h});
e.u.Ul=a;Im(a,e);return e.u};
ym=function(a,b,c){0==a.Ha&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.Ha=1,Fm(c,a.iR,a.jR,a)||(a.Hk=c,a.Ha=b,a.Ul=null,Pm(a),3!=b||c instanceof Qm||qda(a,c)))};
Fm=function(a,b,c,d){if(a instanceof zm)return Im(a,Cm(b||g.Oa,c||null,d)),!0;if(xm(a))return a.then(b,c,d),!0;if(g.Sa(a))try{var e=a.then;if("function"===typeof e)return rda(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
rda=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
function h(m){l||(l=!0,c.call(e,m))}
var l=!1;try{b.call(a,h,f)}catch(m){f(m)}};
Pm=function(a){a.Yv||(a.Yv=!0,g.um(a.tI,a))};
Nm=function(a){var b=null;a.Tj&&(b=a.Tj,a.Tj=b.next,b.next=null);a.Tj||(a.zm=null);return b};
Om=function(a,b,c,d){if(3==c&&b.onRejected&&!b.B)for(;a&&a.ls;a=a.Ul)a.ls=!1;if(b.u)b.u.Ul=null,Rm(b,c,d);else try{b.B?b.C.call(b.context):Rm(b,c,d)}catch(e){Sm.call(null,e)}lm(Bm,b)};
Rm=function(a,b,c){2==b?a.C.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
qda=function(a,b){a.ls=!0;g.um(function(){a.ls&&Sm.call(null,b)})};
Qm=function(a){$a.call(this,a)};
g.Tm=function(a,b){g.im.call(this);this.Ze=a||1;this.yq=b||g.v;this.tA=(0,g.z)(this.Ne,this);this.zC=g.A()};
g.Um=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.z)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.z)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.v.setTimeout(a,b||0)};
Vm=function(a,b){var c=null;return Lm(new zm(function(d,e){c=g.Um(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))}),function(d){g.v.clearTimeout(c);
throw d;})};
g.Wm=function(a,b){this.B={};this.u=[];this.Pk=this.C=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof g.Wm)for(c=a.xg(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Ym=function(a){if(a.C!=a.u.length){for(var b=0,c=0;b<a.u.length;){var d=a.u[b];Xm(a.B,d)&&(a.u[c++]=d);b++}a.u.length=c}if(a.C!=a.u.length){var e={};for(c=b=0;b<a.u.length;)d=a.u[b],Xm(e,d)||(a.u[c++]=d,e[d]=1),b++;a.u.length=c}};
Xm=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Zm=function(a,b){this.u=this.N=this.F="";this.D=null;this.I=this.B="";this.K=!1;var c;a instanceof g.Zm?(this.K=void 0!==b?b:a.K,g.$m(this,a.F),this.N=a.N,g.an(this,a.u),g.bn(this,a.D),this.B=a.B,cn(this,a.C.clone()),this.I=a.I):a&&(c=String(a).match(wd))?(this.K=!!b,g.$m(this,c[1]||"",!0),this.N=dn(c[2]||""),g.an(this,c[3]||"",!0),g.bn(this,c[4]),this.B=dn(c[5]||"",!0),cn(this,c[6]||"",!0),this.I=dn(c[7]||"")):(this.K=!!b,this.C=new en(null,this.K))};
g.$m=function(a,b,c){a.F=c?dn(b,!0):b;a.F&&(a.F=a.F.replace(/:$/,""))};
g.an=function(a,b,c){a.u=c?dn(b,!0):b};
g.bn=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.D=b}else a.D=null};
cn=function(a,b,c){b instanceof en?(a.C=b,sda(a.C,a.K)):(c||(b=fn(b,tda)),a.C=new en(b,a.K))};
g.gn=function(a){return a instanceof g.Zm?a.clone():new g.Zm(a,void 0)};
dn=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
fn=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,uda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
uda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
en=function(a,b){this.B=this.u=null;this.C=a||null;this.D=!!b};
hn=function(a){a.u||(a.u=new g.Wm,a.B=0,a.C&&Bd(a.C,function(b,c){a.add(md(b),c)}))};
kn=function(a,b){hn(a);b=jn(a,b);return Xm(a.u.B,b)};
g.ln=function(a,b,c){a.remove(b);0<c.length&&(a.C=null,a.u.set(jn(a,b),g.ub(c)),a.B=a.B+c.length)};
jn=function(a,b){var c=String(b);a.D&&(c=c.toLowerCase());return c};
sda=function(a,b){b&&!a.D&&(hn(a),a.C=null,a.u.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.ln(this,e,c))},a));
a.D=b};
nn=function(a){if(g.rc(g.pd(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Zm(a)}catch(c){return null!=g.jb(mn,function(d){return 0<a.search(d)})}return b.I.match(vda)?!0:null!=g.jb(mn,function(c){return null!=a.match(c)})};
g.on=function(a,b){return a.replace(wda,function(c,d){try{var e=null!==b&&d in b?b[d]:void 0;if(null==e)return c;e=e.toString();if(""==e||!g.rc(g.pd(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
pn=function(){this.B=[];this.u=-1};
xda=function(a){-1==a.u&&(a.u=g.kh(a.B,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.u};
g.qn=function(a,b,c){g.B.call(this);this.u=null;this.D=!1;this.I=a;this.F=c;this.B=b||window;this.C=(0,g.z)(this.KB,this)};
rn=function(a){a=a.B;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
sn=function(a){a=a.B;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.H=function(a,b,c){g.B.call(this);this.u=a;this.Ze=b||0;this.B=c;this.C=(0,g.z)(this.LB,this)};
g.tn=function(a){a.stop();a.LB()};
un=function(){this.B=64;this.u=[];this.I=[];this.K=[];this.F=[];this.F[0]=128;for(var a=1;a<this.B;++a)this.F[a]=0;this.D=this.C=0;this.reset()};
vn=function(a,b,c){c||(c=0);var d=a.K;if("string"===typeof b)for(var e=0;16>e;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.u[0];c=a.u[1];var h=a.u[2],l=a.u[3],m=a.u[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.u[0]=a.u[0]+b&4294967295;a.u[1]=a.u[1]+c&4294967295;a.u[2]=a.u[2]+h&4294967295;a.u[3]=a.u[3]+l&4294967295;a.u[4]=a.u[4]+m&4294967295};
wn=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
xn=function(a){return a.classList?a.classList:wn(a).match(/\S+/g)||[]};
yn=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.zn=function(a,b){return a.classList?a.classList.contains(b):g.nb(xn(a),b)};
g.I=function(a,b){if(a.classList)a.classList.add(b);else if(!g.zn(a,b)){var c=wn(a);yn(a,c+(0<c.length?" "+b:b))}};
g.An=function(a,b){if(a.classList)g.Gb(b,function(f){g.I(a,f)});
else{var c={};g.Gb(xn(a),function(f){c[f]=!0});
g.Gb(b,function(f){c[f]=!0});
var d="",e;for(e in c)d+=0<d.length?" "+e:e;yn(a,d)}};
g.Bn=function(a,b){a.classList?a.classList.remove(b):g.zn(a,b)&&yn(a,g.Ke(xn(a),function(c){return c!=b}).join(" "))};
g.Cn=function(a,b){a.classList?g.Gb(b,function(c){g.Bn(a,c)}):yn(a,g.Ke(xn(a),function(c){return!g.nb(b,c)}).join(" "))};
g.J=function(a,b,c){c?g.I(a,b):g.Bn(a,b)};
g.Dn=function(){g.im.call(this);this.Ha=0;this.endTime=this.startTime=null};
yda=function(a,b){Array.isArray(b)||(b=[b]);var c=g.Pc(b,function(d){return"string"===typeof d?d:d.property+" "+d.duration+"s "+d.timing+" "+d.delay+"s"});
g.E(a,"transition",c.join(","))};
En=function(a,b,c,d,e){g.Dn.call(this);this.u=a;this.F=b;this.K=c;this.B=d;this.I=Array.isArray(e)?e:[e]};
Fn=function(a,b,c,d){return new En(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
Ada=function(a){a=Bc(a);if(""==a)return null;var b=String(a.substr(0,4)).toLowerCase();if(0==("url("<b?-1:"url("==b?0:1))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in zda))return null}return a};
Gn=function(a){var b=g.v.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
Hn=function(a,b,c,d){if(a)return a.apply(b,d);if(g.ye&&10>document.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)};
Fda=function(a){if(!a)return Rc;var b=document.createElement("div").style,c=Bda(a);g.Gb(c,function(d){var e=g.Ae&&d in Cda?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");pc(e,"--")||pc(e,"var")||(d=Hn(Dda,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[d])||"",d=Ada(d),null!=d&&Hn(Eda,b,b.setProperty?"setProperty":"setAttribute",[e,d]))});
return Iaa(b.cssText||"")};
Bda=function(a){g.Ra(a)?a=g.ub(a):(a=g.Qb(a),g.rb(a,"cssText"));return a};
g.Jn=function(a){var b,c=b=0,d=!1;a=a.split(Gda);for(var e=0;e<a.length;e++){var f=a[e];g.In.test(f)?(b++,c++):Hda.test(f)?d=!0:Ida.test(f)?c++:Jda.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.Kn=function(a,b,c,d,e,f,h,l){this.u=a;this.F=b;this.C=c;this.I=d;this.D=e;this.K=f;this.B=h;this.N=l};
g.Ln=function(a,b){if(0==b)return a.u;if(1==b)return a.B;var c=g.de(a.u,a.C,b),d=g.de(a.C,a.D,b),e=g.de(a.D,a.B,b);c=g.de(c,d,b);d=g.de(d,e,b);return g.de(c,d,b)};
g.Mn=function(a,b,c){this.D=a;this.F=b;this.u=this.C=a;this.I=c||0};
g.Nn=function(a){a.u=Math.min(a.F,2*a.u);a.C=Math.min(a.F,a.u+(a.I?Math.round(a.I*(Math.random()-.5)*2*a.u):0));a.B++};
On=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Kda=function(a,b){for(var c=[a],d=b.length-1;0<=d;--d)c.push(typeof b[d],b[d]);return c.join("\x0B")};
Pn=function(a){return(a=a.exec(g.Vc))?a[1]:""};
Qn=function(a){return 0<=g.Dc(Lda,a)};
g.Rn=function(a){g.B.call(this);this.F=1;this.C=[];this.D=0;this.u=[];this.B={};this.I=!!a};
Mda=function(a,b,c){g.um(function(){a.apply(b,c)})};
g.Sn=function(a){this.u=a};
Tn=function(a){this.u=a};
Un=function(a){this.data=a};
Vn=function(a){return void 0===a||a instanceof Un?a:new Un(a)};
Wn=function(a){this.u=a};
g.Xn=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.A()||!!b&&b>g.A()};
g.Yn=function(a){this.u=a};
Nda=function(){};
Zn=function(){};
$n=function(a){this.u=a};
ao=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.u=a};
bo=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.u=a};
eo=function(a,b){this.B=a;this.u=null;if(g.ye&&!g.ae(9)){co||(co=new g.Wm);this.u=co.get(a);this.u||(b?this.u=document.getElementById(b):(this.u=document.createElement("userdata"),this.u.addBehavior("#default#userData"),document.body.appendChild(this.u)),co.set(a,this.u));try{this.u.load(this.B)}catch(c){this.u=null}}};
fo=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Oda[b]})};
go=function(a){try{a.u.save(a.B)}catch(b){throw"Storage mechanism: Quota exceeded";}};
ho=function(a,b){this.B=a;this.u=b+"::"};
g.io=function(a){var b=new ao;return b.isAvailable()?a?new ho(b,a):b:null};
jo=function(a,b){this.u=a;this.B=b};
ko=function(a){this.u=[];if(a)a:{if(a instanceof ko){var b=a.xg();a=a.mf();if(0>=this.u.length){for(var c=this.u,d=0;d<b.length;d++)c.push(new jo(b[d],a[d]));break a}}else b=g.Qb(a),a=g.Pb(a);for(d=0;d<b.length;d++)g.lo(this,b[d],a[d])}};
g.lo=function(a,b,c){var d=a.u;d.push(new jo(b,c));b=d.length-1;a=a.u;for(c=a[b];0<b;)if(d=b-1>>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};
g.mo=function(){ko.call(this)};
no=function(){};
oo=function(a){g.Gf(this,a,Pda,null)};
po=function(a){g.Gf(this,a,null,null)};
Qda=function(a,b){for(;gf(b)&&4!=b.B;)switch(b.C){case 1:var c=kf(b);g.Jf(a,1,c);break;case 2:c=kf(b);g.Jf(a,2,c);break;case 3:c=kf(b);g.Jf(a,3,c);break;case 4:c=kf(b);g.Jf(a,4,c);break;case 5:c=cf(b.u);g.Jf(a,5,c);break;default:hf(b)}return a};
Rda=function(a){a=a.split("");var b=[a,777381325,-888300578,null,function(c,d){c.push(d)},
-1343374430,function(c,d){d=(d%c.length+c.length)%c.length;var e=c[0];c[0]=c[d];c[d]=e},
393443390,-2059232886,"indexOf",function(c){for(var d=c.length;d;)c.push(c.splice(--d,1)[0])},
-85146023,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(-d).reverse().forEach(function(e){c.unshift(e)})},
-2050164771,-888300578,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(0,1,c.splice(d,1,c[0])[0])},
-223131675,36126634,-216330744,null,149766602,121937306,a,function(c,d){for(d=(d%c.length+c.length)%c.length;d--;)c.unshift(c.pop())},
831320763,function(c,d){d=(d%c.length+c.length)%c.length;var e=c[0];c[0]=c[d];c[d]=e},
-1532934438,870797291,-1805683891,a,-260374588,-1105657816,1735987313,-1313721205,-1386503270,-389354286,null,function(c){c.reverse()},
-816427375,-154670294,168777696,-1825682303,-1521954163,1995224259,function(c,d){for(var e=64,f=[];++e-f.length-32;){switch(e){case 58:e-=14;case 91:case 92:case 93:continue;case 123:e=47;case 94:case 95:case 96:continue;case 46:e=95}f.push(String.fromCharCode(e))}c.forEach(function(h,l,m){this.push(m[l]=f[(f.indexOf(h)-f.indexOf(this[l])+l-32+e--)%f.length])},d.split(""))},
function(c,d){d=(d%c.length+c.length)%c.length;c.splice(d,1)},
-1825682303,1611830652,-1722760217,-1324426003,1349666649];b[3]=b;b[19]=b;b[36]=b;b[23](b[22],b[28]);b[23](b[29],b[1]);b[25](b[36],b[40]);b[37](b[22]);b[37](b[36]);b[44](b[20],b[12]);b[35](b[21],b[43]);b[35](b[31],b[16]);b[44](b[21],b[24]);b[6](b[20],b[41]);b[27](b[31],b[33]);b[44](b[40],b[49]);b[32](b[47]);b[46](b[15],b[45]);b[18](b[45],b[42]);b[1](b[21],b[32]);b[29](b[17]);b[16](b[36],b[28]);b[34](b[43],b[50]);b[31](b[47],b[4]);b[15](b[40]);b[35](b[3]);b[37](b[47],b[23]);b[29](b[28],b[37]);b[40](b[3],
b[16]);b[40](b[3],b[22]);b[37](b[10],b[27]);b[26](b[40],b[36]);b[30](b[46],b[23]);b[50](b[9],b[37]);b[19](b[24],b[9]);b[51](b[12],b[21]);b[16](b[15],b[40]);b[18](b[15],b[45]);b[5](b[12],b[1]);b[38](b[42],b[28]);b[9](b[1]);b[29](b[8],b[7]);b[38](b[26],b[41]);b[29](b[8],b[3]);b[9](b[42]);b[22](b[43],b[40]);return a.join("")};
ro=function(a){var b=arguments;1<b.length?qo[b[0]]=b[1]:1===b.length&&Object.assign(qo,b[0])};
g.L=function(a,b){return a in qo?qo[a]:b};
so=function(a){return g.L(a,void 0)};
g.uo=function(a){a=to(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.vo=function(a,b){var c=to(a);return void 0===c&&void 0!==b?b:Number(c||0)};
wo=function(a){a=to(a);return Array.isArray(a)?g.Pc(a,function(b){return String(b||"")}):[String(a||"")]};
to=function(a){var b=g.L("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.L("EXPERIMENT_FLAGS",{})[a]};
xo=function(){var a=[],b=g.L("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.L("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
zo=function(a,b,c){a&&(a.dataset?a.dataset[yo(b)]=String(c):a.setAttribute("data-"+b,c))};
Ao=function(a){return a?a.dataset?a.dataset[yo("loaded")]:a.getAttribute("data-loaded"):null};
yo=function(a){return Bo[a]||(Bo[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
Sda=function(a){Co.forEach(function(b){return b(a)})};
Do=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.M(b),Sda(b)}}:a};
g.M=function(a,b,c,d){var e=g.Na("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.L("ERRORS",[]),e.push([a,"ERROR",b,c,d]),ro("ERRORS",e))};
g.Eo=function(a,b,c,d){var e=g.Na("yt.logging.errors.log");e?e(a,"WARNING",b,c,d):(e=g.L("ERRORS",[]),e.push([a,"WARNING",b,c,d]),ro("ERRORS",e))};
g.Fo=function(a,b){"function"===typeof a&&(a=Do(a));return window.setTimeout(a,b)};
Go=function(a,b){"function"===typeof a&&(a=Do(a));return window.setInterval(a,b)};
g.Ho=function(a){window.clearTimeout(a)};
g.No=function(a,b,c){var d=g.Io();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){Jo[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.Lo[a]?h():g.Fo(h,0)}catch(l){g.M(l)}},c);
Jo[e]=!0;Mo[a]||(Mo[a]=[]);Mo[a].push(e);return e}return 0};
g.Oo=function(a){var b=g.Io();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Gb(a,function(c){b.unsubscribeByKey(c);delete Jo[c]}))};
g.Po=function(a,b){var c=g.Io();return c?c.publish.apply(c,arguments):!1};
Ro=function(a){var b=g.Io();if(b)if(b.clear(a),a)Qo(a);else for(var c in Mo)Qo(c)};
g.Io=function(){return g.v.ytPubsubPubsubInstance};
Qo=function(a){Mo[a]&&(a=Mo[a],g.Gb(a,function(b){Jo[b]&&delete Jo[b]}),a.length=0)};
g.So=function(a,b,c){c=void 0===c?null:c;if(window.spf&&spf.script){c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),f=d+6;-1<d&&-1<e&&e>f&&(c=a.substring(f,e),c=c.replace(Tda,""),c=c.replace(Uda,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Vda(a,b,c)};
Vda=function(a,b,c){c=void 0===c?null:c;var d=To(a),e=document.getElementById(d),f=e&&Ao(e),h=e&&!f;f?b&&b():(b&&(f=g.No(d,b),b=""+g.Ua(b),Uo[b]=f),h||(e=Wda(a,d,function(){Ao(e)||(zo(e,"loaded","true"),g.Po(d),g.Fo(g.Wa(Ro,d),0))},c)))};
Wda=function(a,b,c,d){d=void 0===d?null:d;var e=g.Fe("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.jd(e,g.ng(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
To=function(a){var b=document.createElement("a");g.id(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+qd(a)};
Wo=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Vo+"VisibilityState";if(b in a)return a[b]};
Xo=function(a,b){var c;ei(a,function(d){c=b[d];return!!c});
return c};
Yo=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(a=a||window.event){this.event=a;for(var b in a)b in Xda||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;
if(d)try{d=d.nodeName?d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.u=a.pageX;this.B=a.pageY}}catch(e){}};
Zo=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.u=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.B=a.clientY+b}};
Yda=function(a,b,c,d){d=void 0===d?{}:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Ub($o,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Sa(e[4])&&g.Sa(d)&&g.Yb(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.cp=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Yda(a,b,c,d);if(e)return e;e=++ap.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Yo(l);if(!Re(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Yo(l);
l.currentTarget=a;return c.call(a,l)};
h=Do(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),bp()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);$o[e]=[a,b,c,h,d];return e};
Zda=function(a,b){var c=document.body||document;return g.cp(c,"click",function(d){var e=Re(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.dp=function(a){a&&("string"==typeof a&&(a=[a]),g.Gb(a,function(b){if(b in $o){var c=$o[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?bp()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete $o[b]}}))};
g.ep=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
fp=function(a){a=a||window.event;var b;a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path;return b&&b.length?b[0]:g.ep(a)};
gp=function(a){a=a||window.event;var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b};
hp=function(a){a=a||window.event;var b=a.pageX,c=a.pageY;document.body&&document.documentElement&&("number"!==typeof b&&(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),"number"!==typeof c&&(c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop));return new g.fe(b,c)};
g.ip=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.jp=function(a){a=a||window.event;return!1===a.returnValue||a.kC&&a.kC()};
g.kp=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
$da=function(a){return Zda(a,function(b){return g.zn(b,"ytp-ad-has-logging-urls")})};
g.lp=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.cp(a,b,function(){g.dp(e);c.apply(a,arguments)},d)};
mp=function(a){for(var b in $o)$o[b][0]==a&&g.dp(b)};
np=function(a){this.P=a;this.u=null;this.D=0;this.I=null;this.F=0;this.B=[];for(a=0;4>a;a++)this.B.push(0);this.C=0;this.N=g.cp(window,"mousemove",(0,g.z)(this.X,this));this.W=Go((0,g.z)(this.K,this),25)};
aea=function(){};
pp=function(a,b){return op(a,0,b)};
g.qp=function(a,b){return op(a,1,b)};
rp=function(){};
g.sp=function(){return!!g.Na("yt.scheduler.instance")};
op=function(a,b,c){isNaN(c)&&(c=void 0);var d=g.Na("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.Fo(a,c||0)};
g.tp=function(a){if(!isNaN(a)){var b=g.Na("yt.scheduler.instance.cancelJob");b?b(a):g.Ho(a)}};
up=function(a){var b=g.Na("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
xp=function(){var a={},b=void 0===a.CJ?!0:a.CJ;a=void 0===a.nQ?!1:a.nQ;if(null==g.Na("_lact",window)){var c=parseInt(g.L("LACT"),10);c=isFinite(c)?g.A()-Math.max(c,0):-1;g.Ia("_lact",c,window);g.Ia("_fact",c,window);-1==c&&vp();g.cp(document,"keydown",vp);g.cp(document,"keyup",vp);g.cp(document,"mousedown",vp);g.cp(document,"mouseup",vp);b&&(a?g.cp(window,"touchmove",function(){wp("touchmove",200)},{passive:!0}):(g.cp(window,"resize",function(){wp("resize",200)}),g.cp(window,"scroll",function(){wp("scroll",
200)})));
new np(function(){wp("mouse",100)});
g.cp(document,"touchstart",vp,{passive:!0});g.cp(document,"touchend",vp,{passive:!0})}};
wp=function(a,b){yp[a]||(yp[a]=!0,g.qp(function(){vp();yp[a]=!1},b))};
vp=function(){null==g.Na("_lact",window)&&(xp(),g.Na("_lact",window));var a=g.A();g.Ia("_lact",a,window);-1==g.Na("_fact",window)&&g.Ia("_fact",a,window);(a=g.Na("ytglobal.ytUtilActivityCallback_"))&&a()};
zp=function(){var a=g.Na("_lact",window),b;null==a?b=-1:b=Math.max(g.A()-a,0);return b};
Fp=function(a){a=void 0===a?!1:a;return new zm(function(b){g.Ho(Ap);g.Ho(Bp);Bp=0;Cp&&Cp.isReady()?(bea(b,a),Dp.clear()):(Ep(),b())})};
Ep=function(){g.uo("web_gel_timeout_cap")&&!Bp&&(Bp=g.Fo(Fp,6E4));g.Ho(Ap);var a=g.L("LOGGING_BATCH_TIMEOUT",g.vo("web_gel_debounce_ms",1E4));g.uo("shorten_initial_gel_batch_timeout")&&Gp&&(a=cea);Ap=g.Fo(Fp,a)};
bea=function(a,b){var c=Cp;b=void 0===b?!1:b;for(var d=Math.round((0,g.N)()),e=Dp.size,f=g.q(Dp),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;var m=l.next().value;l=g.$b(g.Hp(c.Gf||g.Ip()));l.events=m;(m=Jp[h])&&dea(l,h,m);delete Jp[h];eea(l,d);g.Kp(c,"log_event",l,{retry:!0,onSuccess:function(){e--;e||a();Lp=Math.round((0,g.N)()-d)},
onError:function(){e--;e||a()},
CR:b});Gp=!1}};
eea=function(a,b){a.requestTimeMs=String(b);g.uo("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);var c=g.L("EVENT_ID",void 0);if(c){var d=g.L("BATCH_CLIENT_COUNTER",void 0)||0;!d&&g.uo("web_client_counter_random_seed")&&(d=Math.floor(Math.random()*Mp/2));d++;d>Mp&&(d=1);ro("BATCH_CLIENT_COUNTER",d);c={serializedEventId:c,clientCounter:String(d)};a.serializedClientEventId=c;Np&&Lp&&g.uo("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:Np,roundtripMs:String(Lp)});Np=
c;Lp=0}};
dea=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}]};
Qp=function(a,b,c,d){d=void 0===d?{}:d;var e={};e.eventTimeMs=Math.round(d.timestamp||(0,g.N)());e[a]=b;e.context={lastActivityMs:String(d.timestamp?-1:zp())};g.uo("log_sequence_info_on_gel_web")&&d.Zl&&(a=e.context,b=d.Zl,Op[b]=b in Op?Op[b]+1:0,a.sequence={index:Op[b],groupKey:b},d.qI&&delete Op[d.Zl]);d=d.Cm;a="";d&&(a={},d.videoId?a.videoId=d.videoId:d.playlistId&&(a.playlistId=d.playlistId),Jp[d.token]=a,a=d.token);d=Dp.get(a)||[];Dp.set(a,d);d.push(e);c&&(Cp=new c);c=g.vo("web_logging_max_batch")||
100;e=(0,g.N)();d.length>=c?Fp(!0):10<=e-Pp&&(Ep(),Pp=e)};
Rp=function(){return g.Na("yt.ads.biscotti.lastId_")||""};
Sp=function(a){g.Ia("yt.ads.biscotti.lastId_",a,void 0)};
Tp=function(a){for(var b=a.split("&"),c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(1==f.length&&f[0]||2==f.length)try{var h=md(f[0]||""),l=md(f[1]||"");h in c?Array.isArray(c[h])?vb(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(m){fea.hasOwnProperty(f[0])||(m.args=[{key:f[0],value:f[1],query:a}],g.M(m))}}return c};
Up=function(a){var b=[];g.Ib(a,function(c,d){var e=ld(d),f;Array.isArray(c)?f=c:f=[c];g.Gb(f,function(h){""==h?b.push(e):b.push(e+"="+ld(h))})});
return b.join("&")};
Vp=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return Tp(a)};
Wp=function(a){a=a.split(",");return a=a.map(function(b){return Vp(b)})};
g.Xp=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Vp(1<a.length?a[1]:a[0])):{}};
g.Zp=function(a,b){return Yp(a,b||{},!0)};
$p=function(a,b){return Yp(a,b||{},!1)};
Yp=function(a,b,c){var d=a.split("#",2);a=d[0];d=1<d.length?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=Vp(e[1]||"");for(var f in b)if(c||!Sb(e,f))e[f]=b[f];return g.Ld(a,e)+d};
aq=function(a){if(!b)var b=window.location.href;var c=g.xd(1,a),d=g.yd(a);c&&d?(a=a.match(wd),b=b.match(wd),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.yd(b)==d&&(Number(g.xd(4,b))||null)==(Number(g.xd(4,a))||null):!0;return a};
bq=function(a){a||(a=document.location.href);a=g.xd(1,a);return null!==a&&"https"==a};
cq=function(a){a=g.yd(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
fq=function(a){var b=dq;a=void 0===a?Rp():a;b=Object.assign(eq(b),gea(b));b.ca_type="image";a&&(b.bid=a);return b};
eq=function(a){var b={};b.dt=hea;b.flash="0";a:{try{var c=a.u.top.location.href}catch(f){a=2;break a}a=c?c===a.B.location.href?0:1:2}b=(b.frm=a,b);b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Zg:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;b.u_java=!!Zg.navigator&&"unknown"!==typeof Zg.navigator.javaEnabled&&!!Zg.navigator.javaEnabled&&Zg.navigator.javaEnabled();Zg.screen&&(b.u_h=Zg.screen.height,b.u_w=Zg.screen.width,b.u_ah=Zg.screen.availHeight,b.u_aw=Zg.screen.availWidth,b.u_cd=
Zg.screen.colorDepth);Zg.navigator&&Zg.navigator.plugins&&(b.u_nplug=Zg.navigator.plugins.length);Zg.navigator&&Zg.navigator.mimeTypes&&(b.u_nmime=Zg.navigator.mimeTypes.length);return b};
gea=function(a){var b=a.u;try{var c=b.screenX;var d=b.screenY}catch(m){}try{var e=b.outerWidth;var f=b.outerHeight}catch(m){}try{var h=b.innerWidth;var l=b.innerHeight}catch(m){}b=[b.screenLeft,b.screenTop,c,d,b.screen?b.screen.availWidth:void 0,b.screen?b.screen.availTop:void 0,e,f,h,l];c=Kg(!1,a.u.top);d={};e=new pn;g.v.SVGElement&&g.v.document.createElementNS&&e.set(0);f=eba();f["allow-top-navigation-by-user-activation"]&&e.set(1);f["allow-popups-to-escape-sandbox"]&&e.set(2);g.v.crypto&&g.v.crypto.subtle&&
e.set(3);g.v.TextDecoder&&g.v.TextEncoder&&e.set(4);e=xda(e);return d.bc=e,d.bih=c.height,d.biw=c.width,d.brdim=b.join(),d.vis=$g(a.B),d.wgl=!!Zg.WebGLRenderingContext,d};
iea=function(){if(!gq)return null;var a=gq();return"open"in a?a:null};
g.iq=function(a){switch(hq(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
hq=function(a){return a&&"status"in a?a.status:-1};
jea=function(a,b){b=void 0===b?{}:b;var c=aq(a),d=g.uo("web_ajax_ignore_global_headers_if_set"),e;for(e in jq){var f=g.L(jq[e]);!f||!c&&!kq(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||kq(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());(c||kq(a,"X-YouTube-Time-Zone"))&&(d="undefined"!=typeof Intl?(new Intl.DateTimeFormat).resolvedOptions().timeZone:null)&&(b["X-YouTube-Time-Zone"]=d);if(c||kq(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=Up(fq(void 0));
return b};
lq=function(a,b){var c=g.yd(a),d=vd(g.xd(5,a));d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=Vp(b),f={};g.Gb(kea,function(h){e[h]&&(f[h]=e[h])});
return $p(a,f)};
kq=function(a){return g.yd(a)?!1:!0};
lea=function(a,b){if(window.fetch&&"XML"!=b.format){var c={method:b.method||"GET",credentials:"same-origin"};b.headers&&(c.headers=b.headers);a=mq(a,b);var d=nq(a,b);d&&(c.body=d);b.withCredentials&&(c.credentials="include");var e=!1,f;fetch(a,c).then(function(h){if(!e){e=!0;f&&g.Ho(f);var l=h.ok,m=function(n){n=n||{};var p=b.context||g.v;l?b.onSuccess&&b.onSuccess.call(p,n,h):b.onError&&b.onError.call(p,n,h);b.Mf&&b.Mf.call(p,n,h)};
"JSON"==(b.format||"JSON")&&(l||400<=h.status&&500>h.status)?h.json().then(m,function(){m(null)}):m(null)}});
b.fE&&0<b.timeout&&(f=g.Fo(function(){e||(e=!0,g.Ho(f),b.fE.call(b.context||g.v))},b.timeout))}else g.oq(a,b)};
g.oq=function(a,b){var c=b.format||"JSON";a=mq(a,b);var d=nq(a,b),e=!1,f=pq(a,function(m){if(!e){e=!0;l&&g.Ho(l);var n=g.iq(m),p=null,r=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||r||t)p=mea(a,c,m,b.dW);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.v;n?b.onSuccess&&b.onSuccess.call(r,m,p):b.onError&&b.onError.call(r,m,p);b.Mf&&b.Mf.call(r,m,p)}},b.method,d,b.headers,b.responseType,
b.withCredentials);
if(b.Pf&&0<b.timeout){var h=b.Pf;var l=g.Fo(function(){e||(e=!0,f.abort(),g.Ho(l),h.call(b.context||g.v,f))},b.timeout)}return f};
mq=function(a,b){b.jW&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.L("XSRF_FIELD_NAME",void 0),d=b.Og;d&&(d[c]&&delete d[c],a=g.Zp(a,d));return a};
nq=function(a,b){var c=g.L("XSRF_FIELD_NAME",void 0),d=g.L("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.dc,h=so("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.Wv||g.yd(a)&&!b.withCredentials&&g.yd(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.dc&&b.dc[h]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=Vp(e),g.bc(e,f),e=b.ZE&&"JSON"==b.ZE?JSON.stringify(e):g.Hd(e));f=e||f&&!g.Wb(f);!qq&&f&&"POST"!=b.method&&(qq=!0,g.M(Error("AJAX request with postData should use POST")));
return e};
mea=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,g.Eo(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]}'\n"===f.substring(0,5)&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?nea(a):null)e={},g.Gb(a.getElementsByTagName("*"),function(h){e[h.tagName]=oea(h)})}d&&rq(e);
return e};
rq=function(a){if(g.Sa(a))for(var b in a)"html_content"==b||qc(b,"_html")?a[b]=g.gd(g.kc("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):rq(a[b])};
nea=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
oea=function(a){var b="";g.Gb(a.childNodes,function(c){b+=c.nodeValue});
return b};
g.sq=function(a,b){b.method="POST";b.dc||(b.dc={});g.oq(a,b)};
pq=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Do(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=iea();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.uo("debug_forward_web_query_parameters")&&(a=lq(a,window.location.search));m.open(c,a,!0);f&&(m.responseType=f);h&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=jea(a,e))for(var n in e)m.setRequestHeader(n,e[n]),"content-type"==n.toLowerCase()&&(c=!1);c&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
m.send(d);return m};
pea=function(){for(var a={},b=g.q(Object.entries(Vp(g.L("DEVICE","")))),c=b.next();!c.done;c=b.next()){var d=g.q(c.value);c=d.next().value;d=d.next().value;"cbrand"===c?a.deviceMake=d:"cmodel"===c?a.deviceModel=d:"cbr"===c?a.browserName=d:"cbrver"===c?a.browserVersion=d:"cos"===c?a.osName=d:"cosver"===c?a.osVersion=d:"cplatform"===c&&(a.platform=d)}return a};
tq=function(){return"INNERTUBE_API_KEY"in qo&&"INNERTUBE_API_VERSION"in qo};
g.Ip=function(){return{innertubeApiKey:g.L("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.L("INNERTUBE_API_VERSION",void 0),fC:g.L("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),fp:g.L("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.L("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Bs:g.L("INNERTUBE_CONTEXT_HL",void 0),As:g.L("INNERTUBE_CONTEXT_GL",void 0),Cs:g.L("INNERTUBE_HOST_OVERRIDE",void 0)||"",iC:!!g.L("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),hC:!!g.L("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.L("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}};
qea=function(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||g.L("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.oA||g.L("AUTHORIZATION"))||(a?b="Bearer "+g.Na("gapi.auth.getToken")().aW:b=g.Kl([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.L("SESSION_INDEX",0),g.uo("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.L("DELEGATED_SESSION_ID")));return d};
g.Hp=function(a){var b={client:{hl:a.Bs,gl:a.As,clientName:a.fp,clientVersion:a.innertubeContextClientVersion,configInfo:a.fC}},c=window.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=g.L("EXPERIMENTS_TOKEN","");""!==c&&(b.client.experimentsToken=c);c=xo();0<c.length&&(b.request={internalExperimentFlags:c});a.appInstallData&&g.uo("web_log_app_install_experiments")&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=a.appInstallData);g.L("DELEGATED_SESSION_ID")&&
!g.uo("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.L("DELEGATED_SESSION_ID")});b.client=Object.assign(b.client,pea());return{context:b}};
g.vq=function(a,b,c,d,e){uq.set(""+a,b,{HC:c,path:"/",domain:void 0===d?"youtube.com":d,HQ:void 0===e?!1:e})};
g.wq=function(a,b){return uq.get(""+a,b)};
g.xq=function(a,b,c){uq.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
yq=function(){var a;(a=g.io("yt.autonav"))||(a=new eo("yt.autonav"),a=a.isAvailable()?a:null);this.u=a?new Wn(a):null;this.B=document.domain||window.location.hostname};
zq=function(){this.u=!0};
Aq=function(){zq.u||(zq.u=new zq);return zq.u};
Bq=function(a,b){var c={},d=g.Kl([]);if(d){var e=null===b||void 0===b?void 0:b.sessionIndex;c.Authorization=d;c["X-Goog-AuthUser"]=void 0!==e?e:g.L("SESSION_INDEX",0);"INNERTUBE_HOST_OVERRIDE"in qo||(c["X-Origin"]=window.location.origin);g.uo("pageid_as_header_web")&&void 0===e&&"DELEGATED_SESSION_ID"in qo&&(c["X-Goog-PageId"]=g.L("DELEGATED_SESSION_ID"))}return c};
rea=function(a){if(!a)throw Error();throw a;};
sea=function(a){return a};
Cq=function(a){var b=this;this.B=a;this.state={status:"PENDING"};this.u=[];this.onRejected=[];this.B(function(c){if("PENDING"===b.state.status){b.state={status:"FULFILLED",value:c};c=g.q(b.u);for(var d=c.next();!d.done;d=c.next())d=d.value,d()}},function(c){if("PENDING"===b.state.status){b.state={status:"REJECTED",
reason:c};c=g.q(b.onRejected);for(var d=c.next();!d.done;d=c.next())d=d.value,d()}})};
Eq=function(a,b,c,d,e){try{if("FULFILLED"!==a.state.status)throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof Cq?Dq(a,b,f,d,e):d(f)}catch(h){e(h)}};
Fq=function(a,b,c,d,e){try{if("REJECTED"!==a.state.status)throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof Cq?Dq(a,b,f,d,e):d(f)}catch(h){e(h)}};
Dq=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof Cq?Dq(a,b,f,d,e):d(f)},function(f){e(f)})};
Gq=function(a,b,c){function d(){c(a.error);f()}
function e(){b(a.result);f()}
function f(){try{a.removeEventListener("success",e),a.removeEventListener("error",d)}catch(h){}}
a.addEventListener("success",e);a.addEventListener("error",d)};
tea=function(a){return new zm(function(b,c){Gq(a,b,c)})};
Hq=function(a){return new Cq(function(b,c){Gq(a,b,c)})};
uea=function(a,b){return new Cq(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()})};
Iq=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=Error.call(this,a);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.args=[].concat(g.la(c))};
vea=function(){var a={};for(Jq=new Kq(void 0===a.Gw?g.Eo:a.Gw,void 0===a.handleError?g.M:a.handleError,void 0===a.logEvent?g.Lq:a.logEvent);0<Mq.length;)switch(a=Mq.shift(),a.type){case "ERROR":Nq(a.payload);break;case "EVENT":Jq.logEvent(a.eventType,a.payload)}};
Oq=function(a,b){Jq?Jq.logEvent(a,b):(Mq.push({type:"EVENT",eventType:a,payload:b}),10<Mq.length&&Mq.shift())};
Pq=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?wea[a]:c;Iq.call(this,c,Object.assign({name:"YtIdbKnownError",isSw:void 0===self.document,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;Object.setPrototypeOf(this,Pq.prototype);Jq?Nq(this):(Mq.push({type:"ERROR",payload:this}),10<Mq.length&&Mq.shift())};
Qq=function(a,b,c){Pq.call(this,"UNKNOWN_ABORT",{objectStoreNames:a,dbName:b,mode:c});Object.setPrototypeOf(this,Qq.prototype)};
Rq=function(a,b){this.B=a;this.options=b;this.transactionCount=0;this.C=(0,g.N)();this.u=!1};
Tq=function(a,b,c,d){a.transactionCount++;c=a.B.transaction(b,void 0===c?"readonly":c);c=new Sq(c);d=xea(c,d);yea(a,d,b.join());return d};
yea=function(a,b,c){var d=(0,g.N)();Lm(b.then(function(){Uq(a,!0,c,(0,g.N)()-d)}),function(e){var f=(0,g.N)();
e instanceof Qq&&(Oq("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:c,transactionDuration:f-d,transactionCount:a.transactionCount,dbDuration:f-a.C}),a.u=!0);Uq(a,!1,c,f-d)})};
Uq=function(a,b,c,d){Oq("TRANSACTION_ENDED",{objectStoreNames:c,connectionHasUnknownAbortedTransaction:a.u,duration:d,isSuccessful:b})};
Vq=function(a){this.u=a};
Aea=function(a,b){return zea(a,{query:b},function(c){return c["delete"]().then(function(){return c["continue"]()})}).then(function(){})};
zea=function(a,b,c){a=a.u.openCursor(b.query,b.direction);return Wq(a).then(function(d){return uea(d,c)})};
Xq=function(a){for(var b=[],c=0;c<a.length;c++){var d=a.item(c);if(null===d)throw Error("Invariant: item in DOMStringList is null");b.push(d)}return b};
Sq=function(a){var b=this;this.u=a;this.B=new Map;this.aborted=!1;this.done=new zm(function(c,d){b.u.addEventListener("complete",function(){c()});
b.u.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.u.error)});
b.u.addEventListener("abort",function(){var e=b.u.error;if(e){var f=Xq(b.u.objectStoreNames).join(),h=b.u.db.name,l=b.u.mode,m;"QuotaExceededError"===e.name?m=new Pq("QUOTA_EXCEEDED",{objectStoreNames:f,dbName:h,mode:l}):"UnknownError"===e.name&&(m=new Pq("QUOTA_MAYBE_EXCEEDED",{objectStoreNames:f,dbName:h,mode:l}));m&&Oq("QUOTA_EXCEEDED",void 0);d(e)}else b.aborted||(e=new Qq(Xq(b.u.objectStoreNames).join(),b.u.db.name,b.u.mode),d(e))})})};
xea=function(a,b){var c=new zm(function(d,e){b(a).then(function(f){a.commit();d(f)})["catch"](e)});
return Hm([c,a.done]).then(function(d){return g.q(d).next().value})};
Yq=function(a,b){var c=a.u.objectStore(b),d=a.B.get(c);d||(d=new Vq(c),a.B.set(c,d));return d};
Zq=function(a){this.u=a};
$q=function(a,b){this.request=a;this.cursor=b};
Wq=function(a){return Hq(a).then(function(b){return null===b?null:new $q(a,b)})};
Bea=function(a){function b(){m||(m=new Rq(c.result,{closed:l}));return m}
var c=self.indexedDB.open("yt-idb-test-do-not-use",void 0),d=a.blocked,e=a.blocking,f=a.HW,h=a.upgrade,l=a.closed,m;h&&c.addEventListener("upgradeneeded",function(n){if(null===n.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===c.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");var p=b(),r=new Sq(c.transaction);h(p,n.oldVersion,n.newVersion,r)});
d&&c.addEventListener("blocked",function(){d()});
return tea(c).then(function(n){e&&n.addEventListener("versionchange",function(){e(b())});
f&&n.addEventListener("close",function(){f()});
return b()})};
Cea=function(){var a=void 0===a?{}:a;return Bea(a)};
Dea=function(){return g.Ue(this,function b(){var c,d;return g.Aa(b,function(e){switch(e.u){case 1:if(jk&&gk()&&!hk()&&!g.uo("ytidb_allow_on_ios_safari_v8_and_v9")||g.ar)return e["return"](!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e["return"](!1)}catch(f){return e["return"](!1)}sa(e,2,3);return g.ra(e,Lm(Cea(),function(){}),5);
case 5:if(d=e.B,!d)return e["return"](!1);case 3:baa(e);if(d)try{d.close()}catch(f){}caa(e);break;case 2:return ua(e),e["return"](!1);case 4:return"IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype?e["return"](!0):e["return"](!1)}})})};
cr=function(){return void 0!==br?Dm(br):new zm(function(a){Dea().then(function(b){br=b;a(b)})})};
Gea=function(){return void 0!==dr?Dm(dr):cr().then(function(a){if(!a)return!1;var b=g.q(Eea);for(a=b.next();!a.done;a=b.next())if(!IDBObjectStore.prototype[a.value])return!1;b=g.q(Fea);for(a=b.next();!a.done;a=b.next())if(!IDBIndex.prototype[a.value])return!1;return IDBObjectStore.prototype.getKey?!0:!1}).then(function(a){return dr=a})};
fr=function(){g.im.call(this);this.u=er();Hea(this);Iea(this)};
er=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
Iea=function(a){window.addEventListener("online",function(){a.u=!0;a.F&&a.F()})};
Hea=function(a){window.addEventListener("offline",function(){a.u=!1;a.D&&a.D()})};
hr=function(a,b){b=void 0===b?{}:b;gr().then(function(){fr.u||(fr.u=new fr);fr.u.u!==er()&&g.M(Error("NetworkStatusManager isOnline does not match window status"));g.oq(a,b)})};
ir=function(a,b){b=void 0===b?{}:b;gr().then(function(){g.oq(a,b)})};
gr=function(){return g.Ue(this,function b(){return g.Aa(b,function(c){return g.uo("networkless_logging")?(2===g.vo("networkless_ytidb_version")&&Gea().then(function(d){return d}),c["return"](cr())):c["return"](!1)})})};
g.jr=function(a){this.Gf=null;a?this.Gf=a:tq()&&(this.Gf=g.Ip())};
g.Kp=function(a,b,c,d){!g.L("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&g.Eo(new Iq("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new Iq("innertube xhrclient not ready",b,c,d),g.M(a),a.sampleWeight=0,a;var e={headers:{"Content-Type":"application/json"},method:"POST",dc:c,ZE:"JSON",Pf:function(){d.Pf()},
fE:d.Pf,onSuccess:function(l,m){if(d.onSuccess)d.onSuccess(m)},
tW:function(l){if(d.onSuccess)d.onSuccess(l)},
onError:function(l,m){if(d.onError)d.onError(m)},
sW:function(l){if(d.onError)d.onError(l)},
timeout:d.timeout,withCredentials:!0};c="";var f=a.Gf.Cs;f&&(c=f);f=qea(a.Gf.iC||!1,c,d);Object.assign(e.headers,f);e.headers.Authorization&&!c&&(e.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.Gf.innertubeApiVersion+"/"+b;f={alt:"json"};a.Gf.hC&&e.headers.Authorization||(f.key=a.Gf.innertubeApiKey);var h=g.Zp(""+c+b,f);gr().then(function(){try{g.uo("use_fetch_for_op_xhr")?lea(h,e):g.uo("networkless_gel")&&d.retry?(e.method="POST",!d.CR&&g.uo("nwl_send_fast_on_unload")?ir(h,e):hr(h,
e)):g.sq(h,e)}catch(l){if("InvalidAccessError"==l.name)g.Eo(Error("An extension is blocking network request."));else throw l;}})};
g.Lq=function(a,b,c){c=void 0===c?{}:c;var d=g.jr;g.L("ytLoggingEventsDefaultDisabled",!1)&&g.jr==g.jr&&(d=null);Qp(a,b,d,c)};
Jea=function(){this.u=[];this.B=[]};
Kea=function(a){g.kr(a)};
g.lr=function(a){g.kr(a,"WARNING")};
g.kr=function(a,b){var c=void 0===c?{}:c;c.name=g.L("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.L("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);var d=c||{};c=void 0===b?"ERROR":b;c=void 0===c?"ERROR":c;var e=void 0===e?!1:e;if(a){if(g.uo("console_log_js_exceptions")){var f=[];f.push("Name: "+a.name);f.push("Message: "+a.message);a.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(a.params));f.push("File name: "+a.fileName);f.push("Stacktrace: "+a.stack);window.console.log(f.join("\n"),
a)}if((window&&window.yterr||e)&&!(5<=mr)&&0!==a.sampleWeight){var h=Xaa(a);e=h.message||"Unknown Error";f=h.name||"UnknownError";var l=h.lineNumber||"Not available",m=h.fileName||"Not available";h=h.stack||a.u||"Not available";if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var n=0,p=0;p<a.args.length;p++){var r=a.args[p],t="params."+p;n+=t.length;if(r)if(Array.isArray(r))for(var w=d,x=0;x<r.length&&!(r[x]&&(n+=nr(x,r[x],t,w),500<n));x++);else if("object"===typeof r)for(w in w=void 0,x=d,
r){if(r[w]&&(n+=nr(w,r[w],t,x),500<n))break}else d[t]=or(r),n+=d[t].length;else d[t]=or(r),n+=d[t].length;if(500<=n)break}else if(a.hasOwnProperty("params")&&a.params)if(r=a.params,"object"===typeof a.params)for(p in t=0,r){if(r[p]&&(n="params."+p,w=or(r[p]),d[n]=w,t+=n.length+w.length,500<t))break}else d.params=or(r);navigator.vendor&&!d.hasOwnProperty("vendor")&&(d.vendor=navigator.vendor);d={message:e,name:f,lineNumber:l,fileName:m,stack:h,params:d};e=Number(a.columnNumber);isNaN(e)||(d.lineNumber=
d.lineNumber+":"+e);e=g.q(Lea);for(f=e.next();!f.done;f=e.next())if(f=f.value,f.Px[d.name])for(m=g.q(f.Px[d.name]),l=m.next();!l.done;l=m.next())if(h=l.value,l=d.message.match(h.Ig)){d.params["error.original"]=l[0];m=h.groups;h={};for(p=0;p<m.length;p++)h[m[p]]=l[p+1],d.params["error."+m[p]]=l[p+1];d.message=f.KC(h);break}window.yterr&&"function"===typeof window.yterr&&window.yterr(d);if(!(pr.has(d.message)||0<=d.stack.indexOf("/YouTubeCenter.js")||0<=d.stack.indexOf("/mytube.js"))){Mea.V("handleError",
d);if(g.uo("kevlar_gel_error_routing")){e=c;a:{f=g.q(Nea);for(l=f.next();!l.done;l=f.next())if(Xj(l.value.toLowerCase())){f=!0;break a}f=!1}if(!f){f={stackTrace:d.stack};d.fileName&&(f.filename=d.fileName);l=d.lineNumber&&d.lineNumber.split?d.lineNumber.split(":"):[];0!==l.length&&(1!==l.length||isNaN(Number(l[0]))?2!==l.length||isNaN(Number(l[0]))||isNaN(Number(l[1]))||(f.lineNumber=Number(l[0]),f.columnNumber=Number(l[1])):f.lineNumber=Number(l[0]));l=d.message;m=d.name;qr||(qr=new Jea);h=qr;a:{p=
g.q(h.B);for(r=p.next();!r.done;r=p.next())if(r=r.value,d.message&&d.message.match(r.u)){h=r.weight;break a}h=g.q(h.u);for(p=h.next();!p.done;p=h.next())if(p=p.value,p.callback(d)){h=p.weight;break a}h=1}l={level:"ERROR_LEVEL_UNKNOWN",message:l,errorClassName:m,sampleWeight:h};"ERROR"===e?l.level="ERROR_LEVEL_ERROR":"WARNING"===e&&(l.level="ERROR_LEVEL_WARNNING");e={isObfuscated:!0,browserStackInfo:f};f={pageUrl:window.location.href};g.L("FEXP_EXPERIMENTS")&&(f.experimentIds=g.L("FEXP_EXPERIMENTS"));
f.kvPairs=[];if(m=d.params)for(h=g.q(Object.keys(m)),p=h.next();!p.done;p=h.next())p=p.value,f.kvPairs.push({key:"client."+p,value:String(m[p])});m=g.L("SERVER_NAME",void 0);h=g.L("SERVER_VERSION",void 0);m&&h&&(f.kvPairs.push({key:"server.name",value:m}),f.kvPairs.push({key:"server.version",value:h}));g.Lq("clientError",{errorMetadata:f,stackTrace:e,logMessage:l});Fp()}}if(!g.uo("suppress_error_204_logging")){e=d.params||{};c={Og:{a:"logerror",t:"jserror",type:d.name,msg:d.message.substr(0,250),
line:d.lineNumber,level:c,"client.name":e.name},dc:{url:g.L("PAGE_NAME",window.location.href),file:d.fileName},method:"POST"};e.version&&(c["client.version"]=e.version);if(c.dc){d.stack&&(c.dc.stack=d.stack);f=g.q(Object.keys(e));for(l=f.next();!l.done;l=f.next())l=l.value,c.dc["client."+l]=e[l];if(e=g.L("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(f=g.q(Object.keys(e)),l=f.next();!l.done;l=f.next())l=l.value,c.dc[l]=e[l];e=g.L("SERVER_NAME",void 0);f=g.L("SERVER_VERSION",void 0);e&&f&&(c.dc["server.name"]=
e,c.dc["server.version"]=f)}g.oq(g.L("ECATCHER_REPORT_HOST","")+"/error_204",c)}pr.add(d.message);mr++}}}};
nr=function(a,b,c,d){c+="."+a;a=or(b);d[c]=a;return c.length+a.length};
or=function(a){return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)};
Oea=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];a.args||(a.args=[]);a.args.push.apply(a.args,g.la(c))};
rr=function(){this.qd=!1;this.u=null};
sr=function(a,b,c,d){if(d)try{a.u=new window.botguard.bg(b,c?function(){return c(b)}:g.Oa)}catch(e){g.lr(e)}else{try{a.u=new window.botguard.bg(b)}catch(e){g.lr(e)}c&&c(b)}};
Pea=function(a){var b=tr;a=void 0===a?{}:a;return b.u?Promise.race([new Promise(function(c,d){setTimeout(function(){return d(Error("Timed out waiting for snapshot"))},g.vo("botguard_async_snapshot_timeout_ms",3E3),null)}),
new Promise(function(c){b.u.invoke(function(d){return c(d)},!0,a)})]):Promise.resolve(null)};
ur=function(){return g.wq("CONSENT","").startsWith("YES+")};
wr=function(){if(!g.uo("disable_ad_status_on_html5_clients")&&(!g.uo("condition_ad_status_fetch_on_consent_cookie_html5_clients")||ur())&&"1"!=g.Rb(g.L("PLAYER_CONFIG",{}),"args","privembed")){var a=function(){vr=!0;"google_ad_status"in window?ro("DCLKSTAT",1):ro("DCLKSTAT",2)};
try{g.So("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}Qea.push(g.qp(function(){if(!(vr||"google_ad_status"in window)){if(a){var b=""+g.Ua(a);(b=Uo[b])&&g.Oo(b)}vr=!0;ro("DCLKSTAT",3)}},5E3))}};
yr=function(a,b){var c=g.Zb(b),d;return Lm(new zm(function(e,f){c.onSuccess=function(h){g.iq(h)?e(h):f(new xr("Request failed, status="+hq(h),"net.badstatus",h))};
c.onError=function(h){f(new xr("Unknown request error","net.unknown",h))};
c.Pf=function(h){f(new xr("Request timed out","net.timeout",h))};
d=g.oq(a,c)}),function(e){e instanceof Qm&&d.abort();
return Em(e)})};
g.zr=function(a,b,c,d){function e(h,l,m){return Lm(h,function(n){return 0>=l||403===hq(n.xhr)?Em(new xr("Request retried too many times","net.retryexhausted",n.xhr)):f(m).then(function(){return e(yr(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(h){return new zm(function(l){setTimeout(l,h)})}
return e(yr(a,b),c-1,d)};
xr=function(a,b,c){$a.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
Ar=function(){this.Ha=0;this.u=null};
Br=function(a){var b=new Ar;a=void 0===a?null:a;b.Ha=2;b.u=void 0===a?null:a;return b};
Cr=function(a){var b=new Ar;a=void 0===a?null:a;b.Ha=1;b.u=void 0===a?null:a;return b};
Er=function(a){$a.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Dr;this.isTimeout=a instanceof xr&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Qm};
Dr=function(){$a.call(this,"Biscotti ID is missing from server")};
Rea=function(){if(g.uo("disable_biscotti_fetch_on_html5_clients"))return Em(Error("Fetching biscotti ID is disabled."));if(g.uo("condition_biscotti_fetch_on_consent_cookie_html5_clients")&&!ur())return Em(Error("User has not consented - not fetching biscotti id."));if("1"===g.Rb(g.L("PLAYER_CONFIG",{}),"args","privembed"))return Em(Error("Biscotti ID is not available in private embed mode"));Fr||(Fr=Lm(yr("//googleads.g.doubleclick.net/pagead/id",Gr).then(Hr),function(a){return Ir(2,a)}));
return Fr};
Hr=function(a){a=a.responseText;if(!pc(a,")]}'"))throw new Dr;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new Dr;a=a.id;Sp(a);Fr=Cr(a);Jr(18E5,2);return a};
Ir=function(a,b){var c=new Er(b);Sp("");Fr=Br(c);0<a&&Jr(12E4,a-1);throw c;};
Jr=function(a,b){g.Fo(function(){Lm(yr("//googleads.g.doubleclick.net/pagead/id",Gr).then(Hr,function(c){return Ir(b,c)}),g.Oa)},a)};
Kr=function(){try{var a=g.Na("yt.ads.biscotti.getId_");return a?a():Rea()}catch(b){return Em(b)}};
g.Mr=function(){this.u=g.L("ALT_PREF_COOKIE_NAME","PREF");var a=g.wq(this.u);if(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(Lr[d]=c.toString())}}};
g.Or=function(a,b){return!!((Nr("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
Pr=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
Qr=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
Nr=function(a){a=void 0!==Lr[a]?Lr[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Uea=function(){var a=void 0===a?window.location.href:a;if(g.uo("kevlar_disable_theme_param"))return null;var b=vd(g.xd(5,a));if(Sea(b))return"USER_INTERFACE_THEME_DARK";try{var c=g.Xp(a).theme;return Tea.get(c)||null}catch(d){}return null};
Sea=function(a){var b=Vea.map(function(c){return c.toLowerCase()});
return!g.uo("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1};
Rr=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()};
Ur=function(a){var b;Sr()?Tr()==a&&(b=document):b=a;return b&&(a=Xo(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
Vr=function(a){return g.jb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Wea=function(){var a=document;return g.jb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
Sr=function(){return!!Xo(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
Tr=function(a){a=void 0===a?!1:a;var b=Xo(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
g.Wr=function(a){g.B.call(this);this.I=[];this.ra=a||this};
Xr=function(a,b,c,d){for(var e=0;e<c.length;e++)a.R(b,c[e],d)};
g.Yr=function(a){for(;a.I.length;){var b=a.I.pop();b.target.removeEventListener(b.name,b.callback)}};
g.P=function(a){a=void 0===a?!1:a;g.B.call(this);this.nb=new g.Rn(a);g.C(this,this.nb)};
Zr=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
$r=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.bs=function(a,b,c,d){g.P.call(this);this.C=!!b;this.I=a;this.P=c||a;this.N=!!d;this.u=new g.Wr(this);g.C(this,this.u);this.F=this.K=null;this.D=this.B=!1;b&&(g.Ae&&a.setAttribute("draggable","true"),a.style.touchAction="none");as(this)};
cs=function(a,b,c){a.u.R(a.P,b,c,void 0,!a.C)};
as=function(a){a.F=null;a.K=null;cs(a,ds("over"),a.HD);cs(a,"touchstart",a.Uy);a.C&&cs(a,ds("down"),a.fM)};
es=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.K)return d}return null};
ds=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
fs=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Zb(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Zb(c);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
Xea=function(a){a instanceof fs||(a=new fs(a));return a};
hs=function(){if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new Uint8Array(16);window.crypto.getRandomValues(b);for(var c=0;c<a.length;c++)a[c]=b[c];return a}catch(e){}a=Array(16);for(b=0;16>b;b++){c=g.A();for(var d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(gs)for(b=1,c=0;c<gs.length;c++)a[b%16]=a[b%16]^a[(b-1)%16]/4^gs.charCodeAt(c),b++;return a};
is=function(){for(var a=hs(),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.js=function(){return g.Pc(hs(),function(a){return(a&15).toString(16)}).join("")};
ks=function(a){this.u=a};
g.ls=function(a){return new ks({trackingParams:a})};
Zea=function(a){var b=Yea++;return new ks({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
ms=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
ns=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
os=function(a){return g.L(ns(void 0===a?0:a),void 0)};
g.ps=function(a){a=os(void 0===a?0:a);var b;a?b=new ks({veType:a,youtubeData:void 0}):b=null;return b};
qs=function(){var a=g.L("csn-to-ctt-auth-info");a||(a={},ro("csn-to-ctt-auth-info",a));return a};
g.rs=function(a){a=void 0===a?0:a;var b=g.L(ms(a));if(!b&&!g.L("USE_CSN_FALLBACK",!0))return null;b||0!=a||(g.uo("kevlar_client_side_screens")||g.uo("c3_client_side_screens")?b="UNDEFINED_CSN":b=g.L("EVENT_ID"));return b?b:null};
$ea=function(a,b,c){var d=qs();(c=g.rs(c))&&delete d[c];b&&(d[a]=b)};
ts=function(a){return qs()[a]};
vs=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.L(ms(c))||b!==g.L(ns(c)))if($ea(a,d,c),ro(ms(c),a),ro(ns(c),b),0==c||g.uo("web_screen_associated_all_layers"))b=function(){setTimeout(function(){a&&Qp("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:us,clientScreenNonce:a},g.jr)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()};
ws=function(a,b){this.version=a;this.args=b};
xs=function(a,b){this.topic=a;this.u=b};
zs=function(a,b){var c=ys();c&&c.publish.call(c,a.toString(),a,b)};
Ds=function(a,b,c){var d=ys();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Na("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(As[e])try{if(h&&a instanceof xs&&a!=f)try{var m=a.u,n=h;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Pk){var p=new m;m.Pk=p.version}var r=m.Pk}catch(t){}if(!r||n.version!=r)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
g.ub(n.args))}catch(t){throw t.message="yt.pubsub2.Data.deserialize(): "+t.message,t;}}catch(t){throw t.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+t.message,t;}b.call(c||window,h)}catch(t){g.M(t)}},Bs[a.toString()]?g.sp()?g.qp(l):g.Fo(l,0):l())});
As[e]=!0;Cs[a.toString()]||(Cs[a.toString()]=[]);Cs[a.toString()].push(e);return e};
Fs=function(a,b,c){var d=Ds(a,function(e){b.apply(c,arguments);Es(d)},c);
return d};
Es=function(a){var b=ys();b&&("number"===typeof a&&(a=[a]),g.Gb(a,function(c){b.unsubscribeByKey(c);delete As[c]}))};
ys=function(){return g.Na("ytPubsub2Pubsub2Instance")};
Gs=function(a){ws.call(this,1,arguments);this.csn=a};
g.Is=function(a,b,c,d){c={csn:b,parentVe:c.getAsJson(),childVes:g.Pc(d,function(f){return f.getAsJson()})};
d=g.q(d);for(var e=d.next();!e.done;e=d.next())e=e.value.getAsJson(),(g.Wb(e)||!e.trackingParams&&!e.veType)&&g.lr(Error("Child VE logged with no data"));d={Cm:ts(b),Zl:b};"UNDEFINED_CSN"==b?Hs("visualElementAttached",c,d):a?Qp("visualElementAttached",c,a,d):g.Lq("visualElementAttached",c,d)};
g.Js=function(a,b,c){var d=g.uo("use_default_events_client")?void 0:g.jr;b={csn:a,ve:b.getAsJson(),eventType:1};c&&(b.clientData=c);c={Cm:ts(a),Zl:a};"UNDEFINED_CSN"==a?Hs("visualElementShown",b,c):d?Qp("visualElementShown",b,d,c):g.Lq("visualElementShown",b,c)};
Ks=function(a,b,c,d){var e="INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";c={csn:b,ve:c.getAsJson(),gestureType:e};d&&(c.clientData=d);d={Cm:ts(b),Zl:b};"UNDEFINED_CSN"==b?Hs("visualElementGestured",c,d):a?Qp("visualElementGestured",c,a,d):g.Lq("visualElementGestured",c,d)};
Hs=function(a,b,c){Ls.push({payloadName:a,payload:b,options:c});Ms||(Ms=Fs(afa,bfa))};
bfa=function(a){if(Ls){for(var b=g.q(Ls),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,Qp(c.payloadName,c.payload,null,c.options));Ls.length=0}Ms=0};
g.Ns=function(a,b,c){g.Is(g.uo("use_default_events_client")?void 0:g.jr,a,b,[c])};
g.Os=function(a,b){var c=g.uo("use_default_events_client")?void 0:g.jr;g.Gb(b,function(d){d={csn:a,ve:d.getAsJson(),eventType:4};var e={Cm:ts(a),Zl:a};"UNDEFINED_CSN"==a?Hs("visualElementShown",d,e):c?Qp("visualElementShown",d,c,e):g.Lq("visualElementShown",d,e)})};
g.Ps=function(a,b){var c=g.uo("use_default_events_client")?void 0:g.jr;g.Gb(b,function(d){var e=void 0,f=(e=void 0===e?!1:e)?16:8;d={csn:a,ve:d.getAsJson(),eventType:f};e={Cm:ts(a),Zl:a,qI:e};"UNDEFINED_CSN"==a?Hs("visualElementHidden",d,e):c?Qp("visualElementHidden",d,c,e):g.Lq("visualElementHidden",d,e)})};
g.Qs=function(a,b,c){Ks(g.uo("use_default_events_client")?void 0:g.jr,a,b,c)};
g.Ws=function(a,b,c){var d=c&&0<c?c:0;c=d?g.A()+1E3*d:0;if((d=d?(0,g.Rs)():Vs())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.Xs=function(a){var b=Vs(),c=(0,g.Rs)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if("string"!==typeof d)try{d=c.get(a)}catch(e){}if("string"!==typeof d)return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
g.Ys=function(a){try{var b=Vs(),c=(0,g.Rs)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.Zs=function(){return g.Xs("yt-remote-session-screen-id")};
g.at=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.ak())a&&(a=g.Gc(g.Kc(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.cd(ed(a)).toString(),a=ld(g.Fj(a))),g.rc(a)||(a=g.Ee("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),le(a).body.appendChild(a)));else if(e)pq(a,b,"POST",e,d);else if(g.L("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)pq(a,b,"GET","",d);else{b:{try{var f=new kaa({url:a});if(f.C&&f.B||f.D){var h=vd(g.xd(5,a));var l=!(!h||
!h.endsWith("/aclk")||"1"!==Pd(a,"ri"));break b}}catch(m){}l=!1}l?$s(a)?(b&&b(),c=!0):c=!1:c=!1;c||cfa(a,b)}};
bt=function(a,b,c){c=void 0===c?"":c;$s(a,c)?b&&b():g.at(a,b,void 0,void 0,c)};
$s=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
cfa=function(a,b){var c=new Image,d=""+dfa++;ct[d]=c;c.onload=c.onerror=function(){b&&ct[d]&&b();delete ct[d]};
c.src=a};
ft=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!dt(a)||c.some(function(e){return!dt(e)}))throw Error("Only objects may be merged.");
c=g.q(c);for(d=c.next();!d.done;d=c.next())et(a,d.value);return a};
et=function(a,b){for(var c in b)if(dt(b[c])){if(c in a&&!dt(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});et(a[c],b[c])}else if(gt(b[c])){if(c in a&&!gt(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);ht(a[c],b[c])}else a[c]=b[c];return a};
ht=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,dt(d)?a.push(et({},d)):gt(d)?a.push(ht([],d)):a.push(d);return a};
dt=function(a){return"object"===typeof a&&!Array.isArray(a)};
gt=function(a){return"object"===typeof a&&Array.isArray(a)};
it=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.u=e?0:8;this.dataOffset=this.offset+this.u;this.B=e};
jt=function(a){var b=a.data.getUint8(a.offset+a.u);a.u+=1;return b};
kt=function(a){var b=a.data.getUint16(a.offset+a.u);a.u+=2;return b};
lt=function(a){var b=a.data.getInt32(a.offset+a.u);a.u+=4;return b};
mt=function(a){var b=a.data.getUint32(a.offset+a.u);a.u+=4;return b};
nt=function(a){var b=a.data;var c=a.offset+a.u;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.u+=8;return b};
ot=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.u;c<a.size&&a.data.getUint8(a.offset+c)!=b;)++c;var d=new Uint8Array(a.data.buffer,a.offset+a.u+a.data.byteOffset,c-a.u);a.u=Math.min(c+1,a.size);return String.fromCharCode.apply(String,d)};
efa=function(a){this.data=new DataView(new ArrayBuffer(a));this.u=0};
pt=function(a,b,c,d){(new Uint8Array(a.data.buffer,a.u,d)).set(new Uint8Array(b.buffer,c+b.byteOffset,d));a.u+=d};
qt=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.u=f};
tt=function(a,b){this.u=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.B=rt(this,"Sequence-Number");this.K=rt(this,"Segment-Count");this.N=this.u["Segment-Durations-Ms"]||"";this.ingestionTime=rt(this,"Ingestion-Walltime-Us")/1E6;this.C=(rt(this,"First-Frame-Time-Us")+rt(this,"First-Frame-Uncertainty-Us"))/1E6;this.Kg=rt(this,"Target-Duration-Us")/1E6;this.I="T"==this.u["Stream-Finished"];this.D="T"==this.u.Streamable;this.cryptoPeriodIndex=rt(this,"Crypto-Period-Index");
this.F=rt(this,"Crypto-Period-Seconds")};
ut=function(a){return parseInt(a.u["Start-Media-Time-Us"],10)/1E6||0};
rt=function(a,b){return parseInt(a.u[b],10)||0};
ffa=function(a,b){this.u=a;this.duration=b};
vt=function(a,b,c,d,e){this.u=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;this.B=e;e.getUint32(4)};
wt=function(a){var b={};a=a.split("\r\n");for(var c=0;c<a.length;c++){if(0===a[c].length)return b;var d=a[c].match(/([^:]+):\s+([\S\s]+)/);null!=d&&(b[d[1]]=d[2])}return null};
zt=function(a,b){var c=g.xt(a,0,1952868452),d=g.xt(a,0,1953658222);if(c&&d){c.skip(1);var e=jt(c)<<16|kt(c);c.skip(4);e&1&&c.skip(8);e&2&&c.skip(4);if(e&8){e=c.u;var f=mt(c);c.data.setUint32(c.offset+e,1<b?Math.ceil(f*b):Math.floor(f*b))}d.skip(1);c=jt(d)<<16|kt(d);if(c&256){e=c&1;f=c&4;var h=c&512,l=c&1024,m=c&2048;c=mt(d);e&&d.skip(4);f&&d.skip(4);e=(h?4:0)+(l?4:0)+(m?4:0);for(f=0;f<c;f++)h=d.u,l=mt(d),d.data.setUint32(d.offset+h,1<b?Math.ceil(l*b):Math.floor(l*b)),d.skip(e)}}};
Bt=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.xt(a,0,1836476516))?At(a):NaN};
gfa=function(a){var b=g.xt(a,0,1937011556);if(!b)return null;b=Ct(a,b.dataOffset+8,1635148593);if(!b)return null;var c=Ct(a,b.dataOffset+78,1936995172),d=Ct(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),jt(c)){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}var e=c=null,f=null;if(d=Ct(a,d.dataOffset,1886547818)){var h=Ct(a,d.dataOffset,1886546020),l=Ct(a,d.dataOffset,2037673328);if(!l&&(l=Ct(a,d.dataOffset,1836279920),!l))return null;h&&(h.skip(4),c=
lt(h)/65536,f=lt(h)/65536,e=lt(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new vt(b,c,f,e,a)}return null};
Ct=function(a,b,c){for(;Dt(a,b);){var d=Et(a,b);if(d.type==c)return d;b+=d.size}return null};
g.xt=function(a,b,c){for(;Dt(a,b);){var d=Et(a,b);if(d.type==c)return d;b=Ft(d.type)?b+8:b+d.size}return null};
Gt=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;return 4294967296*b.getUint32(a)+b.getUint32(a+4)}return a.data.getUint32(a.dataOffset+4)};
Et=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new it(a,b,c,d)};
At=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
Ht=function(a){a=new it(a.data,a.offset,a.size,a.type,a.B);var b=jt(a);a.skip(7);var c=mt(a);if(0==b){b=mt(a);var d=mt(a)}else b=nt(a),d=nt(a);a.skip(2);for(var e=kt(a),f=[],h=[],l=0;l<e;l++){var m=mt(a);f.push(m);h.push(mt(a));a.skip(4)}return{tu:c,pI:b,iB:d,gy:f,qu:h}};
Dt=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;c=a.getUint32(b+4);if(1635148593==c||1635148611==c||1937126244==c||1936995172==c)return!0;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(97>d||122<d)return!1}return!0};
Ft=function(a){return 1701082227==a||1836019558==a||1836019574==a||1835297121==a||1835626086==a||1937007212==a||1953653094==a||1953653099==a||1836475768==a};
It=function(a){a.skip(4);var b=ot(a,0),c=ot(a,0),d=mt(a),e=mt(a),f=mt(a),h=mt(a),l=ot(a);return{GQ:b,value:c,tu:d,xW:e,fW:f,id:h,LC:l,offset:a.offset}};
Jt=function(a,b){for(var c=Ct(a,0,b);c;)c.markAsSkip(),c=Ct(a,c.offset+c.size,b)};
Kt=function(a,b){for(var c=0,d=[];Dt(a,c);){var e=Et(a,c);e.type==b&&d.push(e);c=Ft(e.type)?c+8:c+e.size}return d};
hfa=function(a,b){var c=g.xt(a,0,1937011556),d=g.xt(a,0,1953654136);if(!c||!d||2<=a.getUint32(c.offset+12))return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.xt(e,0,1937011556);if(!f)return null;d=e.getUint32(f.dataOffset+8);var h=e.getUint32(f.dataOffset+12);if(1701733217!=h&&1701733238!=h)return null;h=new efa(a.byteLength+d);pt(h,a,0,c.offset+12);h.data.setInt32(h.u,2);h.u+=4;pt(h,a,c.offset+16,c.size-16);pt(h,e,e.byteOffset+f.dataOffset+8,d);pt(h,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.q([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.xt(a,0,e.value),h.data.setUint32(e.offset,e.size+d);if(Lt)return h.data;d=g.xt(h.data,0,1953654136);h.data.setUint32(d.offset+16,2);return h.data};
Mt=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
Nt=function(a){return String.fromCharCode.apply(null,a)};
Ot=function(a,b){this.B=a;this.u=0;this.C=b||0};
Pt=function(a){return a.u>=a.B.byteLength};
Vt=function(a,b,c){var d=new Ot(c);if(!Qt(d,a))return!1;d=Rt(d);if(!St(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.C+d.u;var e=Tt(d,!0);d=a+(d.C+d.u-b)+e;d=9<d?Ut(d-9,8):Ut(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
ifa=function(a){var b=new Ot(a);Wt(b);if(Qt(b,[408125543,374648427,174,224]))b=Rt(b);else return null;for(var c=a=null;!Pt(b);){var d=Tt(b,!1);if(21432==d)switch(Xt(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320==d?c=Rt(b):Yt(b)}if(!c)return null;for(var e,f=d=b=null;!Pt(c);)switch(Tt(c,!1)){case 30321:if(3!=Xt(c))return null;break;case 30324:b=Zt(c);break;case 30323:f=Zt(c);break;case 30325:d=Zt(c);break;case 30322:e=Tt(c,!0);e=$t(c,e);e=new DataView(e.buffer,e.byteOffset,
e.byteLength);break;default:Yt(c)}return e?new vt(a,b,f,d,e):null};
Rt=function(a){var b=Tt(a,!0),c=a.B.byteOffset+a.u;c=new DataView(a.B.buffer,c,Math.min(b,a.B.buffer.byteLength-c));c=new Ot(c,a.C+a.u);a.u+=b;return c};
Xt=function(a){for(var b=Tt(a,!0),c=au(a),d=1;d<b;d++)c=256*c+au(a);return c};
Zt=function(a){var b=Tt(a,!0),c=0;4==b?c=a.B.getFloat32(a.u):8==b&&(c=a.B.getFloat64(a.u));a.u+=b;return c};
bu=function(a){var b=Tt(a,!0);return Nt($t(a,b))};
au=function(a){return a.B.getUint8(a.u++)};
Tt=function(a,b){var c=au(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+au(a);return c}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+au(a),d*=128;return b?c-d:c};
Yt=function(a){var b=Tt(a,!0);a.u+=b};
Wt=function(a){var b=a.u;a.u=0;var c=!1;try{St(a,440786851)&&(a.u=0,St(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.u=0,c=!1,g.Eo(d);else throw d;}a.u=b;return c};
jfa=function(a){if(!St(a,440786851,!0))return null;var b=a.u;Tt(a,!1);var c=Tt(a,!0)+a.u-b;a.u=b+c;if(!St(a,408125543,!1))return null;Tt(a,!0);if(!St(a,357149030,!0))return null;var d=a.u;Tt(a,!1);var e=Tt(a,!0)+a.u-d;a.u=d+e;if(!St(a,374648427,!0))return null;var f=a.u;Tt(a,!1);var h=Tt(a,!0)+a.u-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.B.buffer,a.B.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.B.buffer,
a.B.byteOffset+d,e),c+12);l.set(new Uint8Array(a.B.buffer,a.B.byteOffset+f,h),c+12+e);return l};
cu=function(a){var b=a.u,c={Iy:1E6,Jy:1E9,duration:0,oy:0,fq:0};if(!St(a,408125543))return a.u=b,null;c.oy=Tt(a,!0);c.fq=a.C+a.u;if(St(a,357149030))for(var d=Rt(a);!Pt(d);){var e=Tt(d,!1);2807729==e?c.Iy=Xt(d):2807730==e?c.Jy=Xt(d):17545==e?c.duration=Zt(d):Yt(d)}else return a.u=b,null;a.u=b;return c};
eu=function(a,b,c){var d=a.u,e=[];if(!St(a,475249515))return a.u=d,null;for(var f=Rt(a);St(f,187);){var h=Rt(f);if(St(h,179)){var l=Xt(h);if(St(h,183)){h=Rt(h);for(var m=b;St(h,241);)m=Xt(h)+b;e.push({fl:m,ur:l})}}}if(0<e.length&&c==e[0].fl)for(du&&g.Eo(Error("opus_oboe")),b=0;b<e.length;b++)e[b].fl+=1;a.u=d;return e};
fu=function(a){var b=a.u;a.u=0;var c=1E6;Qt(a,[408125543,357149030,2807729])&&(c=Xt(a));a.u=b;return c};
kfa=function(a,b){var c=a.u;a.u=0;if(160!=a.B.getUint8(a.u)&&!gu(a)||!St(a,160))return a.u=c,NaN;Tt(a,!0);var d=a.u;if(!St(a,161))return a.u=c,NaN;Tt(a,!0);au(a);var e=au(a)<<8|au(a);a.u=d;if(!St(a,155))return a.u=c,NaN;d=Xt(a);a.u=c;return(e+d)*b/1E9};
gu=function(a){if(!hu(a)||!St(a,524531317))return!1;Tt(a,!0);return!0};
hu=function(a){if(Wt(a)){if(!St(a,408125543))return!1;Tt(a,!0)}return!0};
Qt=function(a,b){for(var c=0;c<b.length;c++){if(!St(a,b[c]))return!1;c!=b.length-1&&Tt(a,!0)}return!0};
St=function(a,b,c){c=void 0===c?!1:c;if(Pt(a))return!1;for(var d=a.u;Tt(a,!1)!=b;)if(Yt(a),d=a.u,Pt(a))return!1;c&&(a.u=d);return!0};
Ut=function(a,b){b||(b=Math.ceil(Math.log(a+2)/Math.log(2)/7));for(var c=1<<8-b,d=[];d.length<b-1;)d.unshift(a%256),a=Math.floor(a/256);d.unshift(a|c);return d};
$t=function(a,b){var c=new Uint8Array(a.B.buffer,a.B.byteOffset+a.u,b);a.u+=b;return c};
lfa=function(a,b){this.ids=a;this.u=b};
iu=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
ju=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);return isNaN(b)||isNaN(c)?null:2===a.length&&(a=new iu(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null};
ku=function(a,b){return new iu(a,a+b-1)};
lu=function(a,b,c,d,e,f,h,l,m){this.duration=c;this.endTime=b+c;this.ingestionTime=d;this.eb=a;this.C=e;this.startTime=b;this.B=h||0;this.range=f||null;this.pending=l||!1;this.u=void 0===m?null:m};
ou=function(a,b,c,d,e,f,h,l,m,n,p){this.u=b;this.range=c;this.type=a;this.N="";this.B=-1;this.N=d;this.B=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.C=l||0;this.ib=0<=m?m:this.range?this.range.length:NaN;this.F=!!n;a=this.range?this.C+this.ib==this.range.length:void 0===p?!!this.ib:p;this.D=a;this.range?(this.K=this.startTime+this.duration*this.C/this.range.length,this.P=this.duration*this.ib/this.range.length,this.I=this.K+this.P):mu(this);this.W=[];3!=this.type||0<=this.B||!this.u.Re()||
g.lr(new Iq("b168859904",nu(this)))};
mu=function(a){a.K=a.startTime;a.P=a.duration;a.I=a.K+a.P};
mfa=function(a,b,c){var d=!(!b||b.u!=a.u||b.type!=a.type||b.B!=a.B);return c?d&&!!b&&(a.range&&b.range?b.range.end==a.range.end:b.range==a.range)&&b.C+b.ib==a.C+a.ib:d};
pu=function(a){return 1==a.type||2==a.type};
qu=function(a){return 3==a.type||6==a.type};
ru=function(a,b){return a.u==b.u?a.range&&b.range?a.range.start+a.C+a.ib==b.range.start+b.C:a.B==b.B?a.C+a.ib==b.C:a.B+1==b.B&&0==b.C&&a.D:!1};
tu=function(a,b){return ru(a,b)||ee(a.I,b.K)||a.B+1==b.B&&0==b.C&&a.D?!0:!1};
uu=function(a){return a.B+(a.D?1:0)};
nfa=function(a){1==a.length||g.jh(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new iu(a[0].range.start+a[0].C,b.range.start+b.C+b.ib-1)};
nu=function(a){a=vu(a);var b="";g.Ib(a,function(c,d){b+=d+"="+c+","});
return b.slice(0,-1)};
vu=function(a){var b={};b.itag=wu(a.u.info);b.type=a.type;b.seg=String(a.B);a.range&&(b.range=""+(a.range.start+a.C)+"-"+(a.range.start+a.C+a.ib-1));b.time=""+a.K.toFixed(1)+"-"+(a.K+a.P).toFixed(1);b.off=String(a.C);b.len=String(a.ib);a.D&&(b.end="1");a.F&&(b.eos="1");return b};
xu=function(a,b){var c=b.B;a.N="updateWithEmsg";a.B=c;b.I&&(a.F=b.I)};
yu=function(a,b){var c=b.eb;a.N="updateWithSegmentInfo";a.B=c;if(a.startTime!=b.startTime||a.duration!=b.duration)a.startTime=b.startTime,a.duration=b.duration,mu(a)};
zu=function(a){var b=this;a=void 0===a?[]:a;this.u=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
Au=function(a,b){if(0===a.u.length)return!1;var c=a.u[a.u.length-1];return c&&c.buffer===b.buffer&&c.byteOffset+c.length===b.byteOffset};
Bu=function(a,b){for(var c=g.q(b.u),d=c.next();!d.done;d=c.next())a.append(d.value)};
Cu=function(a){a.D=void 0;a.B=0;a.C=0};
Du=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.u[a.B].length};
Eu=function(a){if(!a.D){var b=a.u[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D};
Fu=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(!Du(a,b,c)){var d=a.B,e=a.C;a.focus(b+c-1);e=new Uint8Array(a.C+a.u[a.B].length-e);for(var f=0,h=d;h<=a.B;h++)e.set(a.u[h],f),f+=a.u[h].length;a.u.splice(d,a.B-d+1,e);Cu(a);a.focus(b)}d=a.u[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)};
Gu=function(a,b,c){a=Fu(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
Hu=function(a){a=Gu(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;c<a.length;c++)b[c]=a[c]}return b};
Iu=function(a,b){a.focus(b);return a.u[a.B][b-a.C]};
Ju=function(a,b){a.focus(b);return Du(a,b,4)?Eu(a).getUint32(b-a.C):256*(256*(256*Iu(a,b)+Iu(a,b+1))+Iu(a,b+2))+Iu(a,b+3)};
Ku=function(a,b,c){this.info=a;this.u=b instanceof zu?b:new zu([b]);this.u.getLength();this.C=c;this.B=null;this.D=-1;this.F=0};
Lu=function(a){return Fu(a.u)};
Mu=function(a,b){if(1!=a.info.u.info.containerType||0!=a.info.C||!a.info.D)return!0;for(var c=Lu(a),d=0,e=0;d+4<c.byteLength;){e=c.getUint32(d);if(!e)return!1;d+=e}return d!==c.byteLength?(b&&(b.lastboxlen=e.toString(),4<=c.byteLength&&(b.lastbytes=c.getUint32(c.byteLength-4).toString()),b.boxlen=d.toString(),b.bytelen=c.byteLength.toString()),!1):!0};
Nu=function(a,b,c){var d;if(!(d=!ru(a.info,b.info)||a.info.D)){if(c=void 0===c?!1:c)c=b.u,c=!(c.u.length?Au(a.u,c.u[0]):1);d=c}if(d)return null;c=new ou(a.info.type,a.info.u,a.info.range,a.info.N,a.info.B,a.info.startTime,a.info.duration,a.info.C,a.info.ib,a.info.F,a.info.D);d=b.info;c.ib+=d.ib;c.range&&(c.P+=d.P);c.I=d.I;c.D=d.D;c.F=c.F||d.F;d=new zu;Bu(d,a.u);Bu(d,b.u);c=new Ku(c,d,a.C);c.B=b.B||a.B;if(a=c.info.range)a=c.u,a=!(1===a.u.length&&0<a.u[0].byteOffset);a&&(c.C=!1);return c};
Pu=function(a){g.Ou(a.info.u.info)||a.info.u.info.Id();if(-1!=a.D)return a.D;if(a.B&&ut(a.B))return a.D=ut(a.B),a.D;if(g.Ou(a.info.u.info)){var b=Lu(a);for(var c=a.info.u.u,d=NaN,e=NaN,f=0;Dt(b,f);){var h=Et(b,f);1936286840==h.type?e=h.data.getUint32(h.dataOffset+8):1836476516==h.type?e=At(h):1952867444==h.type&&isNaN(d)&&(d=Gt(h));f=Ft(h.type)?f+8:f+h.size}!e&&c&&(e=Bt(c));b=d/e}else b=new Ot(Lu(a)),c=a.C?b:new Ot(new DataView(a.info.u.u.buffer)),d=fu(c),c=b.u,b.u=0,gu(b)?St(b,231)?(d=Xt(b)*d/1E9,
b.u=c,b=d):(b.u=c,b=NaN):(b.u=c,b=NaN);a.D=b||a.info.K;return a.D};
Ru=function(a,b){0<a.F&&(b-=a.F);var c=Pu(a)+b;Qu(a,c);a.F=b};
Qu=function(a,b){g.Ou(a.info.u.info)||a.info.u.info.Id();a.D=b;if(g.Ou(a.info.u.info)){for(var c=Lu(a),d=a.info.u.u,e=NaN,f=NaN,h=0;Dt(c,h);){var l=Et(c,h);isNaN(e)&&(1936286840==l.type?e=l.data.getUint32(l.dataOffset+8):1836476516==l.type&&(e=At(l)));if(1952867444==l.type){!e&&d&&(e=Bt(d));var m=Gt(l);isNaN(f)&&(f=Math.round(b*e)-m);m+=f;if(l.data.getUint8(l.dataOffset)){var n=l.data,p=l.dataOffset+4;n.setUint32(p,Math.floor(m/4294967296));n.setUint32(p+4,m&4294967295)}else l.data.setUint32(l.dataOffset+
4,m)}h=Ft(l.type)?h+8:h+l.size}return!0}c=new Ot(Lu(a));e=a.C?c:new Ot(new DataView(a.info.u.u.buffer));d=b;f=fu(e);e=c.u;c.u=0;if(gu(c)&&St(c,231))if(h=Tt(c,!0),d=Math.floor(1E9*d/f),Math.ceil(Math.log(d)/Math.log(2)/8)>h)c=!1;else{for(f=h-1;0<=f;f--)c.B.setUint8(c.u+f,d&255),d>>>=8;c.u=e;c=!0}else c=!1;return c};
Su=function(a){g.Ou(a.info.u.info)||a.info.u.info.Id();if(a.B&&6==a.info.type)return a.B.Kg;if(g.Ou(a.info.u.info)){var b=Lu(a);var c=0;b=Kt(b,1936286840);b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=Ht(d.value),c+=d.qu[0]/d.tu;c=c||NaN;if(!(0<=c))a:{c=Lu(a);b=a.info.u.u;d=0;for(var e,f=0;Dt(c,d);){var h=Et(c,d);if(1836476516==h.type)e=At(h);else if(1836019558==h.type){!e&&b&&(e=Bt(b));if(!e){c=NaN;break a}var l=Ct(h.data,h.dataOffset,1953653094),m=e,n=Ct(l.data,l.dataOffset,1952868452);l=Ct(l.data,
l.dataOffset,1953658222);var p=lt(n);lt(n);p&2&&lt(n);n=p&8?lt(n):0;var r=lt(l),t=r&1;p=r&4;var w=r&256,x=r&512,y=r&1024;r&=2048;var D=mt(l);t&&lt(l);p&&lt(l);for(var F=t=0;F<D;F++){var G=w?lt(l):n;x&&lt(l);p&&0==F||!y||lt(l);r&&lt(l);t+=G}f+=t/m}d=Ft(h.type)?d+8:d+h.size}c=f||NaN}}else e=new Ot(Lu(a)),c=a.C?e:new Ot(new DataView(a.info.u.u.buffer)),c=kfa(e,fu(c));return c||a.info.P};
Tu=function(a){var b=Lu(a);var c=(c=g.xt(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.u.u,c=(b=g.xt(b,0,1836476516))?At(b):a?Bt(a):NaN);return c};
Uu=function(a){if(!a.B){g.Ou(a.info.u.info)||a.info.u.info.Id();if(g.Ou(a.info.u.info)){var b=Lu(a),c=Ct(b,0,1701671783);if(c){var d=It(c);var e=d.GQ;d=wt(d.LC);if(b=Ct(b,c.offset+c.size,1701671783)){b=It(b);for(var f in b)if(c=wt(b.LC),d&&c)for(var h in c)d[h]=c[h]}e=d?new tt(d,e):null}else e=null}else{e=new Ot(Lu(a));f=e.u;e.u=0;d=h=null;if(Qt(e,[408125543,307544935,29555,26568]))for(b=Rt(e);!Pt(b);)c=Tt(b,!1),17543==c?d=wt(bu(b)):17827==c?h=bu(b):Yt(b);e.u=f;e=d?new tt(d,h):null}a.B=e}};
Vu=function(){this.u=.125;this.B=!1;this.C=0;this.Pe=!1};
Wu=function(a,b){var c=void 0===b?{}:b,d=void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4;c=void 0===c.Vm?!1:c.Vm;var e=new Vu;e.B=a.ca("html5_streaming_xhr_no_mp4_holdback_chunk");e.C=g.Q(a.experiments,"html5_time_based_consolidation_ms");a.ca("html5_resume_streaming_requests")&&a.ca("html5_defer_slicing")&&(e.u=0);e.Pe=d||c;return e};
ofa=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Tp(b||"");var c={};g.Gb(this.experimentIds,function(d){c[d]=!0});
this.experiments=c};
g.R=function(a,b){return"true"===a.flags[b]};
g.Q=function(a,b){return Number(a.flags[b])||0};
g.Xu=function(a,b){var c=a.flags[b];return c?c.toString():""};
g.Yu=function(){this.D=new Vu;this.Bz=this.Az=!1;this.qz=2;this.I=20971520;this.K=8388608;this.F=120;this.Ga=3145728;this.Z=62914560;this.Ja=10485760;this.rz=this.sz=this.Df=0;this.vC=!1;this.N=NaN;this.fo=0;this.Sq=this.UE=2;this.Mi=3;this.Iz=2;this.ba=2097152;this.Hz=1048576;this.W=!1;this.Li=1800;this.oz=5;this.Ef=10;this.X=15;this.wd=1;this.u=1.15;this.B=1.05;this.xz=!0;this.da=!1;this.Rz=.8;this.bG=this.yb=!1;this.Na=6;this.HG=this.za=!1;this.Oj=.5;this.Pb=0;this.Qq=this.Rb=!1;this.Ph=this.Cf=
0;this.uC=2;this.Za=5E3;this.xF=6;this.Aa=!1;this.P=.5;this.ac=2;this.Ub=this.TA=0;this.eB=1.5;this.VB=this.Mj=.5;this.ce=15;this.WG=1;this.Vz=this.yz=this.Qg=!1;this.pz=0;this.QD=this.aj=this.bA=this.Fz=this.EG=this.Qh=this.Ez=this.zz=!1;this.Rh=0;this.Wz=this.KG=this.Zz=this.ud=!1;this.Af=0;this.xc=this.nb=this.MG=this.tF=this.Ki=this.ka=this.fA=this.Ff=this.Yz=!1;this.ha=!0;this.Oh=this.ea=this.Dz=this.Dk=!1;this.LD=!0;this.Ni=!1;this.C="";this.Lj=!1;this.FQ=1048576;this.nG=this.wz=this.hd=this.Xg=
!1;this.Bf=46800;this.ob=this.Ks=this.Rq=this.ae=this.Qe=!1;this.RD=!0;this.ra=this.Qr=this.Gz=this.Uz=this.Nj=this.Er=this.Uq=this.aA=!1;this.td=0;this.Ls=!1;this.Qa=0;this.sF="";this.zs=this.yr=!1;this.Lb=!0;this.Lc=this.vz=this.LF=this.Yq=this.BC=this.Ji=!1;this.pe=0;this.Oi=!1};
pfa=function(a,b){1080<b.Ka().yc&&!a.Az&&(a.I=36700160,a.K=5242880,a.Ga=10485760,a.ba=4194304,a.Az=!0);2160<b.Ka().yc&&!a.Bz&&(a.I=104857600,a.N=13107200,a.Bz=!0);a.Hz=Math.max(65536,Math.min(a.ba,5*b.u))};
$u=function(a){a=a.split("");Zu.P4(a,67);Zu.ye(a,1);Zu.P4(a,49);Zu.ye(a,3);Zu.P4(a,52);Zu.N9(a,32);Zu.ye(a,1);Zu.P4(a,43);Zu.N9(a,46);return a.join("")};
av=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.lr(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
bv=function(a,b){return b&&b.test(a)?!0:!1};
dv=function(a){return(a=cv&&cv.exec(a))?a[0]:""};
ev=function(a){var b=void 0===b?!1:b;return av(bv(a,qfa),a,b,"Trusted Stream URL")};
g.fv=function(a){var b=void 0===b?!1:b;return av(bv(a,rfa),a,b,"Trusted Image URL")};
gv=function(a){var b=void 0===b?!1:b;return av(bv(a,sfa),a,b,"Trusted Promoted Video Domain URL")};
ufa=function(a){var b=void 0===b?!1:b;return av(bv(a,tfa),a,b,"Drm Licensor URL")};
hv=function(a,b){b=void 0===b?!1:b;return av(bv(a,vfa),a,b,"Captions URL")};
iv=function(a){a=new g.Zm(a);g.$m(a,document.location.protocol);g.an(a,document.location.hostname);document.location.port&&g.bn(a,document.location.port);return a.toString()};
jv=function(a){a=new g.Zm(a);g.$m(a,document.location.protocol);return a.toString()};
kv=function(a,b){this.B=a;this.D=void 0===b?!1:b;this.C=this.path=this.scheme="";this.u={};this.url=""};
mv=function(a){lv(a);return a.C};
nv=function(a){return a.B?pc(a.B,"local"):"local"===a.scheme};
ov=function(a){lv(a);return g.Mb(a.u,function(b){return null!==b})};
pv=function(a){lv(a);if("/videoplayback"!==a.path){var b=a.clone();b.set("playerfallback","1");return b}var c=a.nd();b=new g.Zm(c);var d=a.get("fvip");a=decodeURIComponent(a.get("mn")||"").split(",");if(d&&a&&1<a.length&&a[1])return c=b.u.replace(/^[^.]*/,""),g.an(b,"r"+d+"---"+a[1]+c),b=new kv(b.toString()),b.set("fallback_count","1"),b;d=b.u.match("\\.a1\\.googlevideo\\.com$");b.u.match("\\.googlevideo\\.com$")?(g.an(b,"redirector.googlevideo.com"),c=b.toString()):b.u.match("r[1-9].*\\.c\\.youtube\\.com$")?
(g.an(b,"www.youtube.com"),c=b.toString()):c=iv(c);b=new kv(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
lv=function(a){if(a.B){if(!ev(a.B)&&!a.B.startsWith("local"))throw Error("Untrusted URL: "+a.B);var b=g.gn(a.B);a.scheme=b.F;a.C=b.u+(null!=b.D?":"+b.D:"");var c=b.B;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.u;a.u=qv(c);g.Xa(a.u,
rv(b.C.toString()));g.Xa(a.u,d);"index.m3u8"===a.u.file&&(delete a.u.file,a.path+="/file/index.m3u8");a.B="";a.url="";a.D&&(b=a.get("n"))&&(b=Rda(b),a.set("n",b))}};
wfa=function(a){lv(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(ov(a)){var c=[];g.Ib(a.u,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
qv=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&tv(c,a[b],a[b+1]);return c};
rv=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?tv(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
tv=function(a,b,c){if("cmo"===b){var d;0<=(d=c.indexOf("="))?(b="cmo="+c.substr(0,d),c=c.substr(d+1)):0<=(d=c.indexOf("%3D"))&&(b="cmo="+c.substr(0,d),c=c.substr(d+3))}a[b]=c};
uv=function(a){this.Yf=a;this.u={};this.url=""};
vv=function(a,b){var c=b.indexOf("?");if(0<c){var d=rv(b.substr(c+1));g.Ib(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}c=qv(b);g.Ib(c,function(e,f){this.set(f,e)},a)};
xfa=function(a){var b=a.Yf.nd(),c=[];g.Ib(a.u,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=ov(a.Yf)?"&":"?";return b+a+d};
wv=function(a,b){var c=new kv(b),d=c.get("req_id");d&&a.set("req_id",d);g.Ib(a.u,function(e,f){c.set(f,null)});
return c};
yfa=function(){this.C=this.u=this.B=this.started=this.D=0};
zfa=function(a){a.D=(0,g.N)();a.started+=1};
xv=function(a){return Math.pow(1.6,a.started+a.C+4*a.u)};
yv=function(a,b){a[b]||(a[b]=new yfa);return a[b]};
Afa=function(a){this.C=null;this.F=this.B=0;this.u=a;this.D=a.clone()};
Av=function(a,b,c){var d=yv(c,mv(a.u));if(d.B>=b.uC||1<=d.u)if(a=zv(a),c=yv(c,mv(a)),c.B+c.u<=d.B+d.u)return!0;return!1};
Bfa=function(a,b){var c=b?zv(a):a.u;return new uv(c)};
zv=function(a){a.C||(a.C=pv(a.D));return a.C};
Bv=function(a){return 1<a.B?a.F+1E3*Math.pow(1.6,a.B-1)<(0,g.N)():!0};
g.Cv=function(a,b,c){b.Yf===a.u&&(a.u=wv(b,c));b.Yf===a.C&&(a.C=wv(b,c))};
Dv=function(a,b){this.B=a[0].u.B;this.C=b||"";this.F=this.K="";this.u=a;this.range=this.u[0].range&&0<this.u[0].ib?nfa(this.u):null;this.D=this.We=NaN;this.I=this.requestId=null};
Ev=function(a){return!pu(a.u[a.u.length-1])};
Fv=function(a){return 4==a.u[a.u.length-1].type};
g.Gv=function(a,b,c){if(a.F){var d=new uv(new kv(a.F));a.K?vv(d,a.C):a.C&&vv(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new uv(new kv(a.C)):(b=null===a.I?Av(a.B,b,c):a.I,d=Bfa(a.B,b),a.C&&vv(d,a.C));(b=a.range)&&d.set("range",b.toString());a.requestId&&d.set("req_id",a.requestId);isNaN(a.We)||d.set("headm",a.We.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.N&&g.Ib(a.N,function(e,f){d.set(f,e)});
return d};
Hv=function(a){if(a.range)return a.range.length;a=a.u[0];return Math.round(a.P*a.u.info.u)};
Iv=function(a,b,c){var d=null,e=a.u[0];if(a.range)d=ku(a.range.start,Math.min(4096,a.range.length));else if(c){if(a.C&&0<=a.C.indexOf("/range/")||"1"==a.B.D.get("defrag")||"1"==a.B.D.get("otf"))return null;d=ku(0,4096)}else if(e.u.info.video)return null;c=new ou(5,e.u,d,"createProbeRequestInfo_"+e.N,e.B);a=new Dv([c],a.C);a.I=b;return a};
Jv=function(a,b,c,d){this.sampleRate=a||0;this.u=b||0;this.spatialAudioType=c||0;this.itag=d||""};
Mv=function(a,b,c,d,e,f,h,l,m,n){this.width=a;this.height=b;this.isAccelerated=!1;this.quality=f||Kv(a,b);this.yc=g.Lv[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.Lv[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+(2===c||3===c||4===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));this.qualityLabel=a;this.u=l||"";this.primaries=m||"";this.streamType=n||0};
Nv=function(a){return 1280<=a.width||720<=a.height};
Ov=function(a){return"smpte2084"===a.u||"arib-std-b67"===a.u};
Kv=function(a,b){for(var c=Math.max(a,b),d=Math.min(a,b),e=Pv[0],f=0;f<Pv.length;f++){var h=Pv[f],l=g.Lv[h];if(c>=1.3*Math.floor(16*l/9)||d>=1.3*l)return e;e=h}return"tiny"};
Sv=function(a,b,c,d,e,f,h,l,m){this.id=a;this.mimeType=b;this.audio=void 0===c?null:c;this.video=void 0===d?null:d;this.B=void 0===e?null:e;this.zd=void 0===f?null:f;this.captionTrack=void 0===m?null:m;this.F=!0;this.C=null;this.containerType=Qv(b);this.u=h||0;this.D=l||0;this.Fb=Rv[wu(this)]||""};
wu=function(a){return a.id.split(";",1)[0]};
Tv=function(a){return"9"===a.Fb||"("===a.Fb||"9h"===a.Fb||"(h"===a.Fb};
Uv=function(a){return"9h"===a.Fb||"(h"===a.Fb};
Vv=function(a){return"1"===a.Fb};
g.Ou=function(a){return 1===a.containerType};
Wv=function(a){return"application/x-mpegURL"===a.mimeType};
Xv=function(a){return a.includes("vtt")||a.includes("text/mp4")};
Qv=function(a){return 0<=a.indexOf("/mp4")?1:0<=a.indexOf("/webm")?2:0<=a.indexOf("/x-flv")?3:0<=a.indexOf("/vtt")?4:0};
Yv=function(a,b,c,d,e){var f=new Jv;b in g.Lv||(b="small");d&&e?(e=Number(e),d=Number(d)):(e=g.Lv[b],d=Math.round(16*e/9));d=new Mv(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/&quot;/g,'"'));return new Sv(c,a,f,d)};
Zv=function(a,b,c,d){this.info=b;this.initRange=c||null;this.indexRange=d||null;this.u=null;this.F=!1;this.I=null;this.P=0;this.B=new Afa(a);this.D=null;this.W=NaN;this.C=null};
g.$v=function(){this.u=0;this.B=new Float64Array(128);this.C=new Float64Array(128);this.F=1;this.D=!1};
aw=function(a){a.B.length<a.u+1&&a.resize(2*a.B.length)};
bw=function(a,b,c,d,e,f){Zv.call(this,a,b,c||void 0,d||void 0);this.N=null;this.index=new g.$v;this.K=e;this.lastModified=f};
cw=function(a,b,c,d){for(var e=[];b<=a.index.Ob();b++){var f=a.index,h=b;f=ku(f.Dt(h),h+1<f.u||f.D?f.B[h+1]-f.B[h]:-1);h=a.index.Ce(b);var l=a.index.getDuration(b),m=Math.max(0,c-f.start),n=Math.min(f.end+1,c+d)-(f.start+m),p=b==a.index.Ob()&&m+n==f.length;e.push(new ou(3,a,f,"getRequestInfoForRange_",b,h,l,m,n,p));if(f.start+m+n>=c+d)break}return new Dv(e)};
dw=function(){var a=this;this.u=this.B=jaa;this.promise=new zm(function(b,c){a.B=b;a.u=c})};
fw=function(){void 0===ew&&(ew=g.io());return ew};
hw=function(a){a=void 0===a?!1:a;var b=fw();if(!b)return gw={};if(!gw||a)try{var c=b.get("yt-player-lv");gw=JSON.parse(c||"{}")}catch(d){gw={}}return gw};
iw=function(a){var b=fw();if(b){var c=JSON.stringify(a);b.set("yt-player-lv",c);gw=a}};
jw=function(a){return hw()[a]||0};
kw=function(){var a=hw();return Object.keys(a)};
lw=function(a){var b=hw();return Object.keys(b).filter(function(c){return b[c]===a})};
mw=function(a,b,c){c=void 0===c?!1:c;var d=hw(!0);if(c&&Object.keys(d).pop()!==a)delete d[a];else if(b===d[a])return;0!==b?d[a]=b:delete d[a];iw(d)};
Cfa=function(a){var b=hw(!0);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);iw(b);JSON.stringify(b);return b};
nw=function(a){return!!a&&1===jw(a)};
Dfa=function(){var a=fw();if(!a)return!1;try{return null!==a.get("yt-player-lv-id")}catch(b){return!1}};
qw=function(){return g.Ue(this,function b(){var c,d,e,f;return g.Aa(b,function(h){if(1==h.u){c=fw();if(!c)return h["return"](Promise.reject("No LocalStorage"));if(ow)return h["return"](ow);d=Bq(Aq());var l=Object.assign({},d);delete l.Authorization;var m=g.Kl();if(m){var n=new un;n.update(g.L("INNERTUBE_API_KEY",void 0));n.update(m);l.hash=g.qf(n.digest(),3)}m=new un;m.update(JSON.stringify(l,Object.keys(l).sort()));l=m.digest();m="";for(n=0;n<l.length;n++)m+="0123456789ABCDEF".charAt(Math.floor(l[n]/
16))+"0123456789ABCDEF".charAt(l[n]%16);e=m;f=c.get("yt-player-lv-id");return f?f===e?h.Jd(2):g.ra(h,pw(),4):(c.set("yt-player-lv-id",e),h.Jd(2))}2!=h.u&&c.set("yt-player-lv-id",e);ow=Efa();return h["return"](ow)})})};
Efa=function(){return g.Ue(this,function b(){return g.Aa(b,function(c){return c["return"](new Promise(function(d,e){var f=indexedDB.open("yt-player-local-media",4);f.onerror=function(h){"VersionError"===h.target.error.name?(h=indexedDB.open("yt-player-local-media"),h.onsuccess=function(l){d(l.target.result)},h.onerror=e):e()};
f.onsuccess=function(h){var l=h.target.result;l.onversionchange=function(){l.close();ow=null};
d(l)};
f.onupgradeneeded=function(h){var l=h.target.result;2>h.oldVersion&&(l.createObjectStore("index"),l.createObjectStore("media"));3>h.oldVersion&&l.createObjectStore("metadata");4>h.oldVersion&&l.createObjectStore("playerdata")}}))})})};
rw=function(a,b){return g.Ue(this,function d(){var e,f;return g.Aa(d,function(h){e=IDBKeyRange.bound(b+"|",b+"~");f=a.objectStore("index").getAll(e);return h["return"](new Promise(function(l,m){f.onsuccess=function(n){return void l(n.target.result.join(","))};
f.onerror=m}))})})};
Ffa=function(){return g.Ue(this,function b(){var c;return g.Aa(b,function(d){if(1==d.u)return ow?g.ra(d,ow,3):d.Jd(2);2!=d.u&&(c=d.B,c.close(),ow=null);return d["return"](new Promise(function(e,f){var h=indexedDB.deleteDatabase("yt-player-local-media");h.onsuccess=function(){return void e()};
h.onerror=function(){return void f()}}))})})};
tw=function(a,b){return g.Ue(this,function d(){var e,f,h,l;return g.Aa(d,function(m){if(1==m.u)return g.ra(m,qw(),2);e=m.B;f=["index","media","playerdata"];b&&f.push("metadata");h=e.transaction(f,"readwrite");l=IDBKeyRange.bound(a+"|",a+"~");h.objectStore("index")["delete"](l);h.objectStore("media")["delete"](l);h.objectStore("playerdata")["delete"](a);b&&h.objectStore("metadata")["delete"](a);return m["return"](new Promise(function(n,p){h.oncomplete=function(){return void n()};
h.onabort=p}))})})};
Gfa=function(){return g.Ue(this,function b(){var c,d,e;return g.Aa(b,function(f){if(1==f.u)return g.ra(f,qw(),2);c=f.B;d=c.transaction(["index","media"],"readwrite");e=d.objectStore("index").openCursor();return f["return"](new Promise(function(h,l){var m={};e.onerror=l;e.onsuccess=function(n){if(n=n.target.result){var p=n.key.match(/^([\w\-_]+)\|(a|v)$/);if(p){var r=p[1];p=p[2];m[r]=m[r]||{};m[r][p]=uw(n.value)}else d.objectStore("index")["delete"](n.key);n["continue"]()}else{var t={};n=g.q(Object.keys(m));
for(r=n.next();!r.done;r=n.next())r=r.value,p=m[r].v,t[r]=m[r].a&&p?1:2;var w=Cfa(t);n=d.objectStore("media").openKeyCursor();n.onerror=l;n.onsuccess=function(x){if(x=x.target.result){var y=x.key.match(/^([\w\-_]+)\|(\d+)\|(\d+)$/);y&&t[y[1]]||d.objectStore("media")["delete"](x.key);x["continue"]()}else h(w)}}}}))})})};
Hfa=function(a,b,c){g.Ue(this,function e(){var f,h,l,m,n,p,r,t;return g.Aa(e,function(w){if(1==w.u)return g.ra(w,qw(),2);if(3!=w.u)return f=w.B,h=f.transaction(["index","media"],"readwrite"),l=h.objectStore("index").openCursor(),m={},n=b,g.ra(w,new Promise(function(x,y){l.onsuccess=function(D){if(D=D.target.result){var F=D.key.match(/^([\w\-_]+)\|(a|v)$/);if(F){F=F[1];var G=Wp(D.value);!m[F]&&0<G.length&&(G=+G[0].mket,isNaN(G)||(m[F]=G,n+=G))}D["continue"]()}else x(m)};
l.onerror=y}),3);
for(p=kw();0<p.length&&n>c;)r=p.shift(),r!==a&&(n-=m[r]||0,delete m[r],t=IDBKeyRange.bound(r+"|",r+"~"),h.objectStore("index")["delete"](t),h.objectStore("media")["delete"](t),mw(r,0));return w["return"](new Promise(function(x,y){h.oncomplete=function(){return x()};
h.onabort=y}))})})};
Ifa=function(a,b){g.Ue(this,function d(){var e,f;return g.Aa(d,function(h){if(1==h.u)return g.ra(h,qw(),2);e=h.B;f=e.transaction(["metadata"],"readwrite");f.objectStore("metadata").put(b,a);return h["return"](new Promise(function(l,m){f.oncomplete=function(){return void l()};
f.onabort=m}))})})};
Kfa=function(a,b){var c=Math.floor(Date.now()/1E3);g.Ue(this,function e(){var f,h,l;return g.Aa(e,function(m){if(1==m.u)return Jfa("Writing playerResponse to iDB: "+a+" "+JSON.stringify(b.offlineState)),g.ra(m,qw(),2);f=m.B;h=f.transaction(["playerdata"],"readwrite");l={timestampSecs:c,player:b};h.objectStore("playerdata").put(l,a);return m["return"](new Promise(function(n,p){h.oncomplete=function(){return void n()};
h.onabort=p}))})})};
ww=function(a,b,c,d,e){return g.Ue(this,function h(){var l,m,n,p,r,t,w,x;return g.Aa(h,function(y){if(1==y.u)return l=jw(a),4===l?y["return"](Promise.resolve(4)):g.ra(y,qw(),2);m=y.B;void 0!==d&&void 0!==e?(n=m.transaction(["index","media"],"readwrite"),p=""+a+"|"+b.id+"|"+d,n.objectStore("media").put(e,p)):n=m.transaction(["index"],"readwrite");r=vw(a,b.isVideo());t=vw(a,!b.isVideo());n.objectStore("index").put(c,r);x=(w=uw(c))?n.objectStore("index").get(t):null;return y["return"](new Promise(function(D,
F){n.oncomplete=function(){var G=jw(a);4!==G&&w&&x&&uw(x.result)&&(G=1,mw(a,G));D(G)};
n.onabort=function(G){var O=jw(a);4===O?D(O):(mw(a,4),F(G))}}))})})};
Lfa=function(a){return g.Ue(this,function c(){var d,e;return g.Aa(c,function(f){if(1==f.u)return g.ra(f,qw(),2);d=f.B;e=d.transaction("index");return f["return"](rw(e,a))})})};
Mfa=function(a,b,c){return g.Ue(this,function e(){var f,h,l,m;return g.Aa(e,function(n){if(1==n.u)return g.ra(n,qw(),2);f=n.B;h=f.transaction("media");l=""+a+"|"+b+"|"+c;m=h.objectStore("media").get(l);return n["return"](new Promise(function(p,r){h.oncomplete=function(){return void p(m.result)};
h.onabort=r}))})})};
Nfa=function(a){return g.Ue(this,function c(){var d,e,f;return g.Aa(c,function(h){if(1==h.u)return g.ra(h,qw(),2);d=h.B;e=d.transaction(["playerdata"]);f=e.objectStore("playerdata").get(a);return h["return"](new Promise(function(l,m){f.onsuccess=function(){return void l(f.result)};
f.onerror=m}))})})};
Ofa=function(a){return g.Ue(this,function c(){var d,e;return g.Aa(c,function(f){if(1==f.u)return g.ra(f,qw(),2);d=f.B;e=d.transaction(["index","metadata"]);return f["return"](xw(e,a))})})};
Pfa=function(){return g.Ue(this,function b(){var c,d;return g.Aa(b,function(e){if(1==e.u)return g.ra(e,qw(),2);c=e.B;d=c.transaction(["index","metadata"]);return e["return"](Promise.all(kw().map(function(f){return xw(d,f)})))})})};
xw=function(a,b){return g.Ue(this,function d(){var e,f,h,l,m,n,p,r,t;return g.Aa(d,function(w){if(1==w.u)return e=a.objectStore("metadata").get(b),f=new Promise(function(x,y){e.onsuccess=function(){return void x(e.result)};
e.onerror=y}),g.ra(w,rw(a,b),2);
if(3!=w.u){h=w.B;l={videoId:b,totalSize:0,downloadedSize:0,status:jw(b),details:null};if(!h.length)return w["return"](l);m=Wp(h);n=g.q(m);for(p=n.next();!p.done;p=n.next())r=p.value,l.totalSize+=+r.mket*+r.avbr,l.downloadedSize+=r.hasOwnProperty("dlt")?(+r.dlt||0)*+r.avbr:+r.mket*+r.avbr;t=l;return g.ra(w,f,3)}t.details=w.B||null;return w["return"](l)})})};
yw=function(a){return g.Ue(this,function c(){return g.Aa(c,function(d){mw(a,0);return d["return"](tw(a,!0))})})};
pw=function(){return g.Ue(this,function b(){var c;return g.Aa(b,function(d){c=fw();if(!c)return d["return"](Promise.reject("No LocalStorage"));c.remove("yt-player-lv-id");var e=fw();e&&(e.remove("yt-player-lv"),gw=null);return d["return"](Ffa())})})};
uw=function(a){return!!a&&-1===a.indexOf("dlt")};
vw=function(a,b){return""+a+"|"+(b?"v":"a")};
Jfa=function(){};
Qfa=function(a,b){this.K=a;this.B=b;this.F=a.FQ;this.I=new Uint8Array(this.F);this.D=this.C=0;this.u=null;this.N=[];this.W=this.X=null;this.P=new dw};
Rfa=function(a){var b=zw(a);b=ww(a.K.C,a.B.info,b);Aw(a,b)};
Bw=function(a){return!!a.u&&a.u.F};
Dw=function(a,b){if(!Bw(a)){if(1==b.info.type)a.X=ku(0,b.u.getLength());else if(2==b.info.type){if(!a.u||1!=a.u.type)return;a.W=ku(a.D*a.F+a.C,b.u.getLength())}else if(3==b.info.type){if(3==a.u.type&&!ru(a.u,b.info)&&(a.N=[],b.info.B!=uu(a.u)||0!=b.info.C))return;if(b.info.D)a.N.map(function(c){return Cw(a,c)}),a.N=[];
else{a.N.push(b);a.u=b.info;return}}a.u=b.info;Cw(a,b);Sfa(a)}};
Cw=function(a,b){for(var c=0,d=Gu(b.u);c<d.length;){var e=Math.min(d.length-c,a.I.byteLength-a.C),f=new Uint8Array(d.buffer,d.byteOffset+c,e);a.I.set(f,a.C);a.C+=e;c+=e;if(a.C==a.I.length){if(b.info===a.u&&Bw(a)&&c===d.length)break;e=zw(a);e=ww(a.K.C,a.B.info,e,a.D,a.I);Aw(a,e);a.I=new Uint8Array(a.F);a.C=0;a.D+=1}}};
Sfa=function(a){if(Bw(a)){var b=new Uint8Array(a.I.buffer,0,a.C);var c={lmt:a.B.lastModified,docid:a.K.C,fmtid:a.B.info.id,type:a.B.info.mimeType.split(";")[0],csz:a.F,clen:a.D*a.F+a.C};c="local://localhost/videoplayback?"+Up(c);c={itag:wu(a.B.info),type:a.B.info.mimeType,bitrate:8*a.B.info.u,lmt:""+a.B.lastModified,init:a.X.toString(),index:a.W.toString(),mket:Math.round(a.B.index.bk()).toString(),avbr:Math.round(a.B.info.D).toString(),url:c};c=Up(c);b=ww(a.K.C,a.u.u.info,c,a.D,b);Aw(a,b,!0)}};
zw=function(a){a={itag:a.B.info.id,dlt:Math.round(a.u?a.u.I:0),mket:Math.round(a.B.index.bk()),avbr:Math.round(a.B.info.D),csz:a.F,lmt:a.B.lastModified};return Up(a)};
Aw=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){(c||4===d)&&a.P.resolve(d)},function(d){a.P.reject(d)})};
Tfa=function(a){for(var b=new Uint8Array(0),c=new DataView(a.buffer,a.byteOffset,a.length),d=0;d<a.length-8;){var e=c.getUint32(d);if(1>=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};
Ufa=function(a){a=Kt(a,1886614376);g.Gb(a,function(b){return!b.B});
return g.Pc(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
Vfa=function(a){var b=g.kh(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
g.Gb(a,function(e){c.set(e,d);d+=e.length});
return c};
Wfa=function(a,b){this.B=a;this.K=this.I=!1;this.length=b?b:0;this.C=0;this.D=null;this.u=[];this.F=null;this.length?1!=this.B.length||this.B[0].ib||(this.B[0].ib=this.length):1==this.B.length||g.jh(this.B,function(c){return!!c.range})};
Xfa=function(a){return a.length-a.C+a.u.reduce(function(b,c){return b+c.u.getLength()},0)};
Ew=function(a,b,c){var d=this;this.qk=a;this.Vd=b;this.loaded=this.status=0;this.error="";a=ju(this.qk.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new zu;Yfa(this).then(c,function(e){d.error=""+e||"unknown_err";c()})};
Yfa=function(a){return g.Ue(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,w,x,y,D;return g.Aa(c,function(F){if(1==F.u){d.status=200;e=d.qk.get("docid");f=d.qk.get("fmtid");h=+(d.qk.get("csz")||0);if(!e||!f||!h)throw Error("Invalid local URL");l=d.range;m=Math.floor(l.start/h);n=Math.floor(l.end/h);p=m}if(5!=F.u)return p<=n?g.ra(F,Mfa(e,f,p),5):F.Jd(0);r=F.B;t=p*h;w=(p+1)*h;x=Math.max(0,l.start-t);y=Math.min(l.end+1,w)-(x+t);D=new Uint8Array(r.buffer,x,y);d.u.append(D);d.loaded+=y;d.loaded<l.length&&
d.Vd(g.A(),d.loaded);p++;return F.Jd(2)})})};
Zfa=function(a){this.schedule=a;this.u=NaN;this.B=[];this.totalBytes=0};
Gw=function(a,b,c,d){var e=void 0===d?{}:d;d=void 0===e.sg?!1:e.sg;var f=void 0===e.mi?!1:e.mi,h=void 0===e.Dl?!1:e.Dl,l=e.ri,m=e.eb;e=e.We;this.ea=null;this.ba=this.u=NaN;this.za=0;this.X=this.da=this.B=this.D=NaN;this.ra=this.ha=this.isActive=!1;this.C=0;this.Z=NaN;this.N=this.I=Infinity;this.W=NaN;this.Aa=!1;this.K=this.P=NaN;this.F=this.ka=void 0;this.sg=d;this.mi=f;this.Dl=h;this.ri=l;this.eb=m;this.We=e;this.schedule=a;this.Ga=b;this.Ja=c;this.snapshot=Fw(this.schedule)};
Hw=function(a){return{rt:(g.A()-a.u).toFixed(),lb:a.B.toFixed(),pt:(1E3*a.Z).toFixed(),pb:a.Ga.toFixed(),stall:(1E3*a.C).toFixed(),elbowTime:(a.ba-a.u).toFixed(),elbowBytes:a.za.toFixed()}};
$fa=function(a){a.u=g.A();a.D=a.u;a.B=0;a.da=a.u;a.X=0;a.F&&(a.F=[]);a.ha=!1;a.ra=!1;a.C=0;a.snapshot=Fw(a.schedule);a.I=Infinity;a.N=Infinity;Iw(a);Jw(a,a.u);a.Z=(a.P-a.u)/1E3;a.K=NaN;a.ka=void 0};
Kw=function(a){!a.K&&a.ea&&(a.K=a.ea(),3===a.K&&(a.ka=new Zfa(a.schedule)));return a.K};
Qw=function(a,b,c,d){var e=(b-a.D)/1E3,f=c-a.B,h=Kw(a);if(3===h&&f){var l=a.ka;l.B.push({pW:f,GW:isNaN(l.u)?NaN:d-l.u,vW:d});l.u=d}a.isActive?1===h&&0<f&&(.2<e||1024>f?(a.C+=e,.2<e&&Ow(a,.05,f)):Ow(a,e,f),a.ra=!0):Lw(a,c)&&(1===h&&(d=(b-a.u)/1E3,Mw(a)||a.mi||Nw(a.schedule,d)),a.ba=b,a.za=c,a.isActive=!0);a.mi||Pw(a.schedule,e,f);a.D=b;a.B=c};
Ow=function(a,b,c){if(!a.mi){b=Math.max(b,.05);var d=a.schedule,e=b;a=a.Dl;a=void 0===a?!1:a;d.u.C(void 0===b?e:b,c/e);a||(d.I=Rw())}};
Tw=function(a,b,c){c=Math.round(c/1024);a.F&&a.F.push(Sw(b-a.da,c-a.X));a.da=b;a.X=c};
Lw=function(a,b){return b?a.ri&&1!==Kw(a)?!0:2048<=b:!1};
Uw=function(a){return Lw(a,a.B)};
Iw=function(a){a.W=a.u+1E3*a.snapshot.delay;a.Aa=!1};
Vw=function(a,b){a.ri&&void 0!==a.eb&&void 0!==a.We&&(a.I=Math.min(a.I,aga(a.ri,a.eb,a.u,b)),a.N=Math.min(a.N,cga(a.ri,a.eb,a.u,b,a.We)),a.I<=a.u?Iw(a):(a.W=a.I,a.Aa=!0))};
Mw=function(a){a.ri&&Vw(a,g.A());return a.Aa};
Jw=function(a,b){b=void 0===b?g.A():b;if(a.ri){Vw(a,b);var c=a.K?a.ri?1!==Kw(a):!1:a.I!==a.N;if(c){if(c=a.N,b<c){a.P=a.N;return}}else c=a.I;c=Math.max(c,a.W)}else c=a.W;var d=a.Ga-a.B;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=Uw(a)?d+b:d+Math.max(b,c);a.P=d};
Sw=function(a,b){for(var c="";4095<a;)c+=Sw(4095,0),a-=4095;for(;4095<b;)c+=Sw(a,4095),b-=4095,a=0;return c+("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))};
Ww=function(){return!("function"!==typeof window.fetch||!window.ReadableStream)};
Xw=function(a){if(a.Oo())return!1;a=a.Sd("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a};
Yw=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.method?"GET":h.method;var l=h.headers,m=h.body;h=void 0===h.credentials?"include":h.credentials;this.Z=b;this.X=c;this.ba=d;this.policy=e;this.status=0;this.response=void 0;this.W=!1;this.B=0;this.N=NaN;this.aborted=this.I=this.P=!1;this.errorMessage="";this.method=f;this.headers=l;this.body=m;this.credentials=h;this.u=new zu;this.id=dga++;this.D=window.AbortController?new AbortController:void 0;this.start(a);this.startTime=Date.now()};
$w=function(a){a.C.read().then(function(b){if(!a.la()){var c;window.performance&&window.performance.now&&(c=window.performance.now());var d=Date.now(),e=b.value?b.value:void 0;a.F&&(a.u.append(a.F),a.F=void 0);b.done?(a.C=void 0,a.onDone()):(a.B+=e.length,Zw(a)?a.u.append(e):a.F=e,a.Z(d,a.B,c),$w(a))}},function(b){a.onError(b)}).then(void 0,g.M)};
Zw=function(a){var b=a.Sd("content-type");b="audio/mp4"===b||"video/mp4"===b;return a.policy.B&&a.policy.Pe&&Xw(a)&&b};
ax=function(a,b,c,d){var e=this;this.status=0;this.la=this.B=!1;this.u=NaN;this.xhr=new XMLHttpRequest;this.xhr.open("GET",a);this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){2===e.xhr.readyState&&e.F()};
this.C=c;this.D=b;this.F=d;a=Do(function(f){e.onDone(f)});
this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);this.xhr.send();this.xhr.addEventListener("progress",Do(function(f){e.Vd(f)}),!1)};
cx=function(){this.C=this.u=0;this.B=Array.from({length:bx.length}).fill(0)};
dx=function(){};
hx=function(a,b){var c=this;return ex?function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];f=fx();e=b.apply(c,e);gx(a,fx()-f);return e}:b};
ix=function(a,b){if(ex){var c=fx();b();gx(a,fx()-c)}else b()};
gx=function(a,b){a in jx||(jx[a]=new cx);jx[a].zF(b)};
kx=function(){return g.Xs("yt-player-quality")||"auto"};
lx=function(){var a={values:{},iW:{}};try{var b=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);a.values=b.values;a.halfLives=b.halfLives}catch(c){}return a};
mx=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
ox=function(a,b){return+nx()[mx(a,b)]||8192};
nx=function(){return g.Xs("yt-player-performance-cap")||{}};
px=function(a){g.Ws("yt-player-watch-later-pending",a)};
qx=function(){return g.Xs("yt-player-headers-readable")||!1};
rx=function(a){g.Ws("yt-player-playback-on-reload",a)};
sx=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
vx=function(a,b,c,d,e,f){var h=this,l=void 0===f?{}:f;f=void 0===l.VE?[]:l.VE;var m=void 0===l.rq?!1:l.rq;l=void 0===l.Yk?0:l.Yk;this.B=a;this.info=b;this.timing=c;this.timing.ea=function(){var n;if(ega(h)){if(n=h.B.QD&&!(!window.performance||!window.performance.now)&&h.u&&h.u.Um()&&h.u.Gi())n=h.u,n=n.policy.Pe&&Xw(n);n=n?h.info.u[0].u.info.video?3:4:2}else n=1;return n};
this.ha=d;this.W=e;this.state=1;this.rq=m;this.P=++fga;this.D=g.Gv(this.info,this.B,this.ha);this.D.set("rn",this.P.toString());this.D.set("rbuf",(1E3*l).toFixed().toString());this.rq&&this.D.set("smb","1");this.ka=f||null;this.N=gga(this);this.K=0;this.F=null;this.I=0;this.C=null;this.X=0;this.Aa=this.da=!1;this.ba=this.Z=null;this.ra=this.B.Li*(this.B.Lb?xv(tx(this)):1);this.ea=new g.H(this.zQ,this.ra,this);this.info.B.F=(0,g.N)();zfa(tx(this));$fa(this.timing);try{this.u=hga(this),this.ea.start()}catch(n){g.Eo(n),
this.F="net.ssl",g.um(function(){return ux(h)})}};
wx=function(a){var b=Hw(a.timing);b.shost=mv(a.D.Yf);b.rn=a.P.toString();a.I&&(b.rc=a.I.toString());b.itag=""+wu(a.info.u[0].u.info);b.ml=""+ +a.info.u[0].u.he();b.sq=""+a.info.u[0].B;if(a.D){var c=a.D.Yf;lv(c);var d=decodeURIComponent(c.get("mn")||"").split(",");b.ifi=""+ +("/videoplayback"===c.path&&1<d.length&&!!d[1])}410!=a.I&&500!=a.I&&503!=a.I||(b.fmt_unav="true");a.u&&a.u.Ml()&&(b.msg=a.u.Ml());a.rq&&(b.smb="1");a.C&&(a=a.C.u,a.length&&Mu(a[0],b));return b};
gga=function(a){if(!(Fv(a.info)&&a.info.sg()&&a.B.Qg&&a.ka)||2<=a.info.B.B||"auto"!==kx()||!qx())return!1;var b=a.D.get("aitags");if(!b)return!1;var c=md(b).split(","),d=[];g.Gb(a.ka,function(e){g.nb(c,e)&&d.push(e)});
if(!d.length)return!1;a.D.set("altitags",ld(d.join(",")));return!0};
tx=function(a){return yv(a.ha,mv(a.D.Yf))};
iga=function(a,b){if(400<=b.status)return a.F="net.badstatus",6;if(!b.us())return a.F=204==b.status?"net.nocontent":"net.connect",6;var c="";if(xx(a)){var d=b.lx();2048>=d.getLength()&&(c=Gu(d),c=Nt(c),c=ev(c)?c:"")}if(c){d=tx(a);(0,g.N)();d.started=0;d.B=0;d.u=0;d=a.info;var e=a.D;g.Cv(d.B,e,c);d.requestId=e.get("req_id");return 4}c=b.mt();if((d=!!a.info.range&&a.info.range.length)&&d!=c||b.fy())return a.F="net.closed",6;yx(a,!0);if(a.B.RD&&!d&&a.C&&(d=a.C.u,d.length&&!Mu(d[0])))return a.F="net.closed",
6;e=zx(a)?b.Sd("X-Bandwidth-Est"):0;if(d=zx(a)?b.Sd("X-Bandwidth-Est3"):0)a.Aa=!0,a.B.Ez&&(e=d);d=a.timing;var f=e?parseInt(e,10):0;e=g.A();if(!d.ha){d.ha=!0;if(!d.mi){e=e>d.u&&4E12>e?e:g.A();Tw(d,e,c);Qw(d,e,c);var h=Kw(d);if(2===h&&f)Ow(d,d.B/f,d.B);else if(2===h||1===h)f=(e-d.u)/1E3,(f<=d.schedule.P.u||!d.schedule.P.u)&&!d.ra&&Uw(d)&&Ow(d,f,c),Uw(d)&&Ax(d.schedule,c,d.C);Bx(d.schedule,(e-d.u)/1E3||.05,d.B,d.Z,d.sg,d.Dl)}d.deactivate()}c=tx(a);(0,g.N)();c.started=0;c.B=0;c.u=0;a.info.B.B=0;(0,g.N)()<
Cx+3E5||!a.D||nv(a.D.Yf)||!(c=mv(a.D.Yf))||0>c.indexOf("googlevideo.com")||(g.Ws("yt-player-bandaid-host",{oQ:c},432E3),Cx=(0,g.N)());return 5};
ux=function(a){if("net.timeout"==a.F){var b=a.timing,c=g.A();if(!b.mi){c=c>b.u&&4E12>c?c:g.A();Tw(b,c,1024*b.X);var d=(c-b.u)/1E3;2!==Kw(b)&&(Uw(b)?(b.C+=(c-b.D)/1E3,Ax(b.schedule,b.B,b.C)):(Mw(b)||b.mi||Nw(b.schedule,d),b.ba=c));Bx(b.schedule,d,b.B,b.Z,b.sg,b.Dl);Pw(b.schedule,(c-b.D)/1E3,0)}}"net.nocontent"!=a.F&&("net.timeout"==a.F||"net.connect"==a.F?(b=tx(a),b.B+=1):(b=tx(a),b.u+=1),a.info.B.B++);Dx(a,6)};
Ex=function(a){a.la();var b=tx(a);return 100>b.B&&b.u<a.B.xF};
Dx=function(a,b){a.state=b;4<=a.state&&(a.B.ae?Fx(a):a.timing.deactivate());a.W&&a.W(a)};
Gx=function(a,b){if(b){var c=tx(a);c.C+=1}Fx(a);a.F="net.timeout";ux(a)};
zx=function(a){return g.jh(a.info.u,function(b){return 3==b.type})};
Fx=function(a){a.u&&a.u.abort();a.timing.deactivate()};
xx=function(a){var b=a.u.Sd("content-type"),c=a.u.Oo();return(!a.u.Gi()||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)};
hga=function(a){var b=(0,g.z)(a.WP,a),c=(0,g.z)(a.YP,a),d=(0,g.z)(a.XP,a);if(nv(a.D.Yf))return new Ew(a.D,c,b);var e=a.D.nd();return a.B.da&&(a.B.Vz&&!isNaN(a.info.We)&&a.info.We>a.B.pz?0:Ww())?new Yw(e,c,b,d,a.B.D):new ax(e,c,b,d)};
jga=function(a){a.C&&a.C.F?(a=a.C.F,a=new ou(a.type,a.u,a.range,"getEmptyStubAfter_"+a.N,a.B,a.startTime+a.duration,0,a.C+a.ib,0,!1)):(a=a.info.u[0],a=new ou(a.type,a.u,a.range,"getEmptyStubBefore_"+a.N,a.B,a.startTime,0,a.C,0,!1));return a};
Hx=function(a){return 1>a.state?!1:a.C&&a.C.u.length||a.B.ra&&a.u.ih()?!0:!1};
Ix=function(a){a.B.ra&&yx(a,!1);return a.C?a.C.u:[]};
yx=function(a,b){if(b||a.u.ih()&&!xx(a)&&!a.N){if(!a.C){if(a.u.Gi())a.info.range&&(c=a.info.range.length);else var c=a.u.mt();a.C=new Wfa(a.info.u,c)}for(;a.u.ih();)a:{c=a.C;var d=a.u.nt(),e=b&&!a.u.ih();c.D&&(Bu(c.D,d),d=c.D,c.D=null);for(var f=0,h=0,l=g.q(c.B),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.ib<=c.C)f+=m.ib;else{d.getLength();if(pu(m)&&!e&&c.C+d.getLength()-h<f+m.ib){c.D=d.split(h).im;break a}var n=c.C-f;var p=c,r=m;if(1==r.type){p.I=!0;var t=!1}else 3==r.type||4==r.type?
(r=p.I&&!p.K,p.K=!0,t=r):t=!1;p=c;var w=m,x=n;r=h;var y=d;n=t||m.u.WC()&&!n;var D=!!e;t=y.getLength()-r;w.range&&(t=Math.min(w.ib-x,t));D=w.range?w.C+x+t==w.range.length:D;w=new ou(w.type,w.u,w.range,"reslice_"+w.N,w.B,w.startTime,w.duration,w.C+x,t,D&&w.F,D);x=t;r=y.split(r).im.split(x).ws;p.u.push(new Ku(w,r,n));p=t;c.C+=p;h+=p;f+=m.ib;if(h==d.getLength())break}d.getLength()}}};
ega=function(a){if(!a.B.D.Pe||!isNaN(a.info.We)&&0<a.info.We)return!1;if(!a.u.Um())return!0;if(!Xw(a.u))return!1;if(isNaN(a.info.We)){var b=a.u.Sd("x-head-seqnum");if(b&&parseInt(b,10)>a.info.u[0].B)return!1}return!0};
Jx=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.u=this.cryptoPeriodIndex=NaN;this.B=[];this.Id=!1};
Kx=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376==d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var h=d.getUint32(c+28);f+=16*h+4}var l=d.getUint32(c+f-4);try{var m=new df(b.subarray(c+f,c+f+l)),n=new oo;for(f=m;gf(f)&&4!=f.B;)switch(f.C){case 2:var p=kf(f),r=p;g.Hf(n,2).push(r);break;case 4:p=kf(f);g.Jf(n,4,p);break;case 7:p=cf(f.u);g.Jf(n,7,p);break;case 9:p=cf(f.u);g.Jf(n,9,p);break;case 10:p=cf(f.u);
g.Jf(n,10,p);break;case 11:p=bf(f.u);g.Jf(n,11,p);break;case 12:p=cf(f.u);g.Jf(n,12,p);break;case 13:r=p=kf(f);g.Hf(n,13).push(r);break;case 14:p=new po;r=f;var t=p,w=Qda,x=r.u.C,y=cf(r.u),D=r.u.u+y;r.u.C=D;w(t,r);r.u.u=D;r.u.C=x;r=n;t=p;w=po;g.Lf(r,w,14);var F=r.u[14];F||(F=r.u[14]=[]);var G=t?t:new w,O=g.Hf(r,14);F.push(G);O.push(G.xf);break;case 15:p=jf(f);g.Jf(n,15,p);break;case 16:p=jf(f);g.Jf(n,16,p);break;case 1:p=bf(f.u);g.Jf(n,1,p);break;case 3:p=jf(f);g.Jf(n,3,p);break;case 5:p=jf(f);g.Jf(n,
5,p);break;case 6:p=jf(f);g.Jf(n,6,p);break;case 8:p=kf(f);g.Jf(n,8,p);break;default:hf(f)}f=n;if(null!=f){var K=f;break a}}catch(Ja){}}c+=e}K=null}catch(Ja){K=null}}if(null!=K)for(b=g.Hf(K,7),a.cryptoPeriodIndex||null==b||(a.cryptoPeriodIndex=b),b=g.Hf(K,10),null!=b&&0<b&&!a.Id&&a.u!==b&&(a.u=b),K=g.Hf(K,2),K=!K.length||K[0]instanceof Uint8Array?K:g.Pc(K,Waa),K=g.q(K),b=K.next();!b.done;b=K.next())a.B.push(g.qf(b.value,4))};
Lx=function(a){this.u=a;this.offset=0};
Mx=function(a){if(a.offset>=a.u.getLength())throw Error();return Iu(a.u,a.offset++)};
Nx=function(a,b){b=void 0===b?!1:b;var c=Mx(a);if(1===c){c=-1;for(var d=0;7>d;d++){var e=Mx(a);-1===c&&255!==e&&(c=0);-1<c&&(c=256*c+e)}return c}d=128;for(e=0;6>e&&d>c;e++)c=256*c+Mx(a),d*=128;return b?c:c-d};
Ox=function(a,b,c){g.P.call(this);var d=this;this.C=a;this.B=[];this.u=null;this.X=-1;this.N=0;this.ea=NaN;this.P=0;this.D=b;this.Ga=c;this.I=NaN;this.ka=0;this.ra=-1;this.F=this.W=this.Aa=this.Z=this.da=this.K=this.ba=null;this.C.C&&(this.F=new Qfa(this.C,this.D),this.F.P.promise.then(function(e){d.F=null;1==e&&d.V("localmediachange",e)},function(){d.F=null;
d.V("localmediachange",4)}),Rfa(this.F));
this.za=!1;this.ha=0};
Px=function(a){return a.B.length?a.B[0]:null};
Qx=function(a){return a.B.length?a.B[a.B.length-1]:null};
Xx=function(a,b,c){if(a.da){if(a.C.yr){var d=a.da;var e=c.info;d=d.B!=e.B&&e.B!=d.B+1||d.type!=e.type||ee(d.K,e.K)&&d.B===e.B?!1:tu(d,e)}else d=tu(a.da,c.info);d||(a.I=NaN,a.ka=0,a.ra=-1)}a.da=c.info;a.D=c.info.u;0==c.info.C?Rx(a):!a.D.Re()&&a.K&&xu(c.info,a.K);a.u?(c=Nu(a.u,c),a.u=c):a.u=c;a:{c=g.Ou(a.u.info.u.info);if(3!=a.u.info.type){if(!a.u.info.D)break a;6==a.u.info.type?Sx(a,b,a.u):Tx(a,a.u);a.u=null}for(;a.u;){d=a.u.u.getLength();if(0>=a.X&&0==a.N){var f=a.u.u,h=-1;e=-1;if(c){for(var l=0;l+
8<f.getLength();){var m=Ju(f,l),n=Ju(f,l+4);l+=m||1;if(1836019558===n)h=l;else if(1835295092===n){e=l;break}}0>e&&(h=-1)}else{f=new Lx(f);for(m=l=!1;;){n=f.offset;var p=f;try{var r=Nx(p,!0),t=Nx(p,!1);var w=r;var x=t}catch(D){x=w=-1}p=w;var y=x;if(0>p)break;if(408125543!==p)if(524531317===p)l=!0,0<=y&&(e=f.offset+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.offset+y);if(160===p){0>h&&(e=h=f.offset+y);break}f.skip(y)}}0>h&&(e=-1)}if(0>h)break;a.X=h;a.N=
e-h}if(a.X>d)break;a.X?(d=Ux(a,a.X),d.C&&!a.D.Re()&&Vx(a,d),Sx(a,b,d),Wx(a,d),a.X=0):a.N&&(d=Ux(a,0>a.N?Infinity:a.N),a.N-=d.u.getLength(),Wx(a,d))}}a.u&&a.u.info.D&&(Wx(a,a.u),a.u=null)};
Tx=function(a,b){!a.D.Re()&&0==b.info.C&&(g.Ou(b.info.u.info)||b.info.u.info.Id())&&Uu(b);if(1==b.info.type)try{Vx(a,b),Yx(a,b)}catch(d){g.M(d);var c=vu(b.info);c.hms="1";a.V("error",c||{})}b.info.u.rs(b);a.F&&Dw(a.F,b)};
kga=function(a){var b=a.B.reduce(function(c,d){return c+d.u.getLength()},0);
a.u&&(b+=a.u.u.getLength());return b};
Zx=function(a){return g.Pc(a.B,function(b){return b.info})};
Ux=function(a,b){var c=a.u,d=Math.min(b,c.u.getLength());if(d==c.u.getLength())return a.u=null,c;c.u.getLength();d=Math.min(d,c.info.ib);var e=c.u.split(d),f=e.ws;e=e.im;var h=new ou(c.info.type,c.info.u,c.info.range,c.info.N,c.info.B,c.info.startTime,c.info.duration,c.info.C,d,!1,!1);f=new Ku(h,f,c.C);c=new ou(c.info.type,c.info.u,c.info.range,c.info.N,c.info.B,c.info.startTime,c.info.duration,c.info.C+d,c.info.ib-d,c.info.F,c.info.D);c=new Ku(c,e,!1);c=[f,c];a.u=c[1];return c[0]};
Vx=function(a,b){b.u.getLength();var c=Lu(b);if(!a.C.Fz&&Uv(b.info.u.info)&&"bt2020"===b.info.u.info.Ka().primaries){var d=new Ot(c);Qt(d,[408125543,374648427,174,224,21936,21937])&&(d=d.C+d.u,129==c.getUint8(d)&&1==c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.u.info;Tv(d)&&!Uv(d)&&(d=Lu(b),Wt(new Ot(d)),Vt([408125543,374648427,174,224],21936,d));b.info.u.info.isVideo()&&(d=b.info.u,d.info&&d.info.video&&4==d.info.video.projectionType&&!d.D&&(g.Ou(d.info)?d.D=gfa(c):d.info.Id()&&(d.D=ifa(c))));b.info.u.info.Id()&&
b.info.isVideo()&&(c=Lu(b),Wt(new Ot(c)),Vt([408125543,374648427,174,224],30320,c)&&Vt([408125543,374648427,174,224],21432,c));if(a.C.Oi&&b.info.u.info.Id()){c=Lu(b);var e=new Ot(c);if(Qt(e,[408125543,374648427,174,29637])){d=Tt(e,!0);e=e.C+e.u;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.D.info.audio&&g.Ou(b.info.u.info)){d=Lu(b);c=g.xt(d,0,1701606260);f=g.xt(d,0,1836476516);if(c&&f){c.skip(2);var h=kt(c),l=mt(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(nt(c)),e.push(nt(c)),
m.push(kt(c)),n.push(kt(c));else for(h=0;h<l;++h)d.push(lt(c)),e.push(lt(c)),m.push(kt(c)),n.push(kt(c));c=At(f);c=new ffa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.Ou(b.info.u.info))for(d=Lu(b),e=g.xt(d,0,1701082227);e;)e.markAsSkip(),e=g.xt(d,e.offset+e.size,1701082227);a.za=!0;a.C.LD&&a.V("gaplessinfo",c)}}a.D.Re()||b.info.u.u||b.info.u.indexRange||(g.Ou(b.info.u.info)?(c=Lu(b),(d=Ct(c,0,1836019574))?(d=d.offset+d.size,e=new Uint8Array(d),e.set(new Uint8Array(c.buffer,c.byteOffset,d)),c=e):c=null):
c=jfa(new Ot(Lu(b))),c&&(b.info.u.u=c))};
Sx=function(a,b,c){if(a.D.Re()){if(a.za&&a.D.Re()&&c.info.B==c.info.u.index.Ob()&&(b=Lu(c),b=g.xt(b,0,1953658222))){b.skip(1);var d=jt(b)<<16|kt(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=mt(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=mt(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.u,e))}}if(b=a.ba&&!!a.ba.D.C)if(b=c.info.isVideo())b=Tu(c),h=a.ba,$x?(l=1/b,b=ay(a,b)>=ay(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&a.D.Re()&&c.info.B==c.info.u.index.Ob()&&
(b=a.ba,$x?(l=Tu(c),h=1/l,l=ay(a,l),b=ay(b)+h-l):b=b.getDuration()-a.getDuration(),b=1+b/c.info.duration,zt(Lu(c),b))}else{h=!1;a.K||(Uu(c),c.B&&(a.K=c.B,h=!0,xu(c.info,c.B),e=c.info.u.info,d=Lu(c),g.Ou(e)?Jt(d,1701671783):e.Id()&&Vt([408125543],307544935,d)));if(d=e=Su(c))d=c.info.u.info.Id()&&160==Iu(c.u,0);if(d)a.P+=e,a.I=l+e;else{if(a.C.Zz){if(l=f=a.Ga(Pu(c),1),0<=a.I&&6!=c.info.type){f-=a.I;var n=f-a.ka;d=c.info.B;var p=c.info.K,r=a.Z?a.Z.B:-1,t=a.Z?a.Z.K:-1,w=a.Z?a.Z.duration:-1;m=a.C.Af&&f>
a.C.Af;var x=a.C.pe&&n>a.C.pe;1E-4<Math.abs(n)&&(a.C.KG&&a.V("avsyncissue",{audio:""+ +!!a.D.info.audio,sq:d.toFixed(),sliceStart:p,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:w,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*n).toFixed(),skipRewrite:""+(+m||x)}),a.ra=d);n=0;a.C.Wz&&(m||x||(l=a.I),a.C.Yz&&a.ba&&!a.D.info.audio&&g.Ou(c.info.u.info)&&(x=a.ba,m=x.ra,x=x.ka,p=.02<Math.abs(x-f),(d==m||d>m&&d>a.ra)&&p&&(d=Math.max(.95,Math.min(1.05,(e-(x-f))/e)),zt(Lu(c),d),d=Su(c),n=e-d,e=d)));a.ka=
f+n}}else isNaN(a.I)?f=c.info.startTime:f=a.I,l=f;Qu(c,l)?(isNaN(a.ea)&&(a.ea=l),a.P+=e,a.I=l+e):(l=vu(c.info),l.smst="1",a.V("error",l||{}))}if(h&&a.K){h=by(a,!0);yu(c.info,h);a.u&&yu(a.u.info,h);b=g.q(b.info.u);for(l=b.next();!l.done;l=b.next())yu(l.value,h);(c.info.D||a.u&&a.u.info.D)&&6!=c.info.type||(a.W=h,a.V("placeholderinfo",h),cy(a))}}Yx(a,c);a.ha&&Ru(c,a.ha);a.Z=c.info};
Wx=function(a,b){if(b.info.D){a.Aa=b.info;if(a.K){var c=by(a,!1);a.V("segmentinfo",c);a.W||cy(a);a.W=null}Rx(a)}a.F&&Dw(a.F,b);if(c=Qx(a))if(c=Nu(c,b,a.C.Uq)){a.B.pop();a.B.push(c);return}a.B.push(b)};
Rx=function(a){a.u=null;a.X=-1;a.N=0;a.K=null;a.ea=NaN;a.P=0;a.W=null};
Yx=function(a,b){if(a.D.info.zd){if(b.info.u.info.Id()){var c=new Ot(Lu(b));if(Qt(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=Tt(c,!0);c=16!=d?null:$t(c,d)}else c=null;d="webm"}else b.info.W=Ufa(Lu(b)),c=Vfa(b.info.W),d="cenc";c&&c.length&&(c=new Jx(c,d),c.Id=b.info.u.info.Id(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),a.C.Qr&&b.B&&b.B.F&&(c.u=b.B.F),a.V("needkeyinfo",c))}};
cy=function(a){var b=a.K,c;b.u["Cuepoint-Type"]?c=new qt(dy?parseFloat(b.u["Cuepoint-Playhead-Time-Sec"])||0:-(parseFloat(b.u["Cuepoint-Playhead-Time-Sec"])||0),parseFloat(b.u["Cuepoint-Total-Duration-Sec"])||0,b.u["Cuepoint-Context"],b.u["Cuepoint-Identifier"]||"",lga[b.u["Cuepoint-Event"]||""]||"unknown",1E3*(parseFloat(b.u["Cuepoint-Playhead-Time-Sec"])||0)):c=null;c&&(c.startSecs+=a.ea,a.V("cuepoint",c,b.B))};
by=function(a,b){var c=a.K;if(c.u["Stitched-Video-Id"]||c.u["Stitched-Video-Duration-Us"]||c.u["Stitched-Video-Start-Frame-Index"]||c.u["Serialized-State"]){var d=c.u["Stitched-Video-Id"]?c.u["Stitched-Video-Id"].split(",").slice(0,-1):[];var e=[];if(c.u["Stitched-Video-Duration-Us"])for(var f=g.q(c.u["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),h=f.next();!h.done;h=f.next())e.push((parseInt(h.value,10)||0)/1E6);e=[];if(c.u["Stitched-Video-Start-Frame-Index"])for(f=g.q(c.u["Stitched-Video-Start-Frame-Index"].split(",").slice(0,
-1)),h=f.next();!h.done;h=f.next())e.push(parseInt(h.value,10)||0);d=new lfa(d,c.u["Serialized-State"]?c.u["Serialized-State"]:"")}return new lu(c.B,a.ea,b?c.Kg:a.P,c.ingestionTime,"sq/"+c.B,void 0,void 0,b,d)};
ay=function(a,b){b=void 0===b?0:b;var c=b?Math.round(a.ha*b)/b:a.ha;a.D.C&&c&&(c+=a.D.C.u);return c+a.getDuration()};
ey=function(a,b){0>b||(a.B.forEach(function(c){return Ru(c,b)}),a.ha=b)};
fy=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
gy=function(a,b,c){b=void 0===b?",":b;c=void 0===c?a?a.length:0:c;var d=[];if(a)for(c=Math.max(a.length-c,0);c<a.length;c++)d.push(a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3));return d.join(b)};
hy=function(a,b){if(!a)return-1;try{for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c}catch(d){}return-1};
iy=function(a,b){return 0<=hy(a,b)};
mga=function(a,b){if(!a)return NaN;var c=hy(a,b);return 0<=c?a.start(c):NaN};
jy=function(a,b){if(!a)return NaN;var c=hy(a,b);return 0<=c?a.end(c):NaN};
ky=function(a){return a&&a.length?a.end(a.length-1):NaN};
ly=function(a,b){var c=jy(a,b);return 0<=c?c-b:0};
my=function(a,b,c){for(var d=[],e=[],f=0;f<a.length;f++)a.end(f)<b||a.start(f)>c||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return fy(d,e)};
ny=function(a,b,c){this.Z=a;this.u=b;this.D=[];this.C=new Ox(a,b,c);this.B=this.K=null;this.ha=0;this.ba=b.info.u;this.ea=0;this.N=b.bn();this.I=-1;this.ra=b.bn();this.F=this.N;this.W=!1;this.da=this.P=this.ka=this.X=-1};
oy=function(a,b){b&&$x&&ey(a.C,b.qw());a.K=b};
py=function(a){return a.K&&a.K.Tr()};
ry=function(a){for(;a.D.length&&5==a.D[0].state;){var b=a.D.shift();qy(a,b);b=b.timing;a.ha=(b.D-b.u)/1E3}a.D.length&&Hx(a.D[0])&&!a.D[0].info.sg()&&qy(a,a.D[0])};
qy=function(a,b){if(Hx(b)){if(Ix(b).length){b.da=!0;var c=b.C;var d=c.u;c.u=[];c.F=g.gb(d).info;c=d}else c=[];c=g.q(c);for(d=c.next();!d.done;d=c.next())sy(a,b,d.value)}};
sy=function(a,b,c){switch(c.info.type){case 1:case 2:Tx(a.C,c);break;case 4:var d=c.info.u.XC(c);c=c.info;var e=a.B;e&&e.u==c.u&&e.type==c.type&&(c.range&&e.range?e.range.start==c.range.start&&e.range.end==c.range.end:e.range==c.range)&&e.B==c.B&&e.C==c.C&&e.ib==c.ib&&(a.B=g.gb(d).info);d=g.q(d);for(c=d.next();!c.done;c=d.next())sy(a,b,c.value);break;case 3:Xx(a.C,b,c);break;case 6:Xx(a.C,b,c),a.B=c.info}};
ty=function(a,b){var c=b.info;c.u.info.u>=a.ba&&(a.ba=c.u.info.u)};
yy=function(a,b,c){c=void 0===c?!1:c;if(a.K){var d=a.K.Ue(),e=jy(d,b),f=NaN,h=py(a);h&&(f=jy(d,h.u.index.Ce(h.B)));if(e==f&&a.B&&a.B.ib&&uy(vy(a),0))return b}a=wy(a,b,c);return 0<=a?a:NaN};
Ay=function(a,b){a.u.he();var c=wy(a,b);if(0<=c)return c;c=a.C;c.F?(c=c.F,c=c.u&&3==c.u.type?c.u.startTime:0):c=Infinity;b=Math.min(b,c);a.B=a.u.ej(b).u[0];zy(a)&&a.K&&a.K.abort();a.ea=0;return a.B.startTime};
By=function(a){a.N=!0;a.F=!0;a.I=-1;Ay(a,Infinity)};
Cy=function(a){var b=0;g.Gb(a.D,function(c){var d=b;c=c.C&&c.C.length?Xfa(c.C):Hv(c.info);b=d+c},a);
return b+=kga(a.C)};
Dy=function(a,b){if(!a.K)return 0;var c=py(a);if(c&&c.F)return c.I;c=a.K.Ue(!0);return ly(c,b)};
Fy=function(a){Ey(a);a=a.C;a.B=[];Rx(a)};
Gy=function(a,b){if(a.D.length){if(a.D[0].info.u[0].startTime<=b)return;Ey(a)}for(var c=a.C,d=c.B.length-1;0<=d;d--)c.B[d].info.startTime>b&&c.B.pop();a.D.length?a.B=g.gb(g.gb(a.D).info.u):a.C.B.length?a.B=Qx(a.C).info:a.B=py(a);a.B&&b<a.B.startTime&&(a.ea=0,a.u.he()?a.B=a.u.ej(b,!0).u[0]:a.B=null)};
Ty=function(a,b){var c;for(c=0;c<a.D.length&&b!==a.D[c];c++);if(c==a.D.length)Hy(a,b);else{for(;c<a.D.length;)Hy(a,a.D.pop());var d=Sy(a);a.Z.Lb&&d&&d.u.Re()&&ei(b.info.u,function(e){return e.u==d.u&&e.B==d.B&&!!d.ib&&d.C+d.ib>e.C&&d.C+d.ib<=e.C+e.ib})?a.B=d:qu(b.info.u[0])?a.B=jga(b):a.B=null}};
zy=function(a){var b;!(b=!a.Z.Rq&&"f"===a.u.info.Fb)&&(b=a.Z.Xg)&&(b=a.C,b=!!b.F&&Bw(b.F));if(b)return!0;b=py(a);if(!b)return!1;var c=b.F&&b.D;return a.ra&&0<a.X?c||b.B>=a.X:c};
vy=function(a){var b=[],c=py(a);c&&b.push(c);b=g.tb(b,Zx(a.C));g.Gb(a.D,function(d){g.Gb(d.info.u,function(e){d.da&&(b=g.Ke(b,function(f){return!(f.u!=e.u?0:f.range&&e.range?f.range.start+f.C>=e.range.start+e.C&&f.range.start+f.C+f.ib<=e.range.start+e.C+e.ib:f.B==e.B&&f.C>=e.C&&(f.C+f.ib<=e.C+e.ib||e.D))}));
(qu(e)||4==e.type)&&b.push(e)})});
a.B&&!mfa(a.B,g.gb(b),a.B.u.Re())&&b.push(a.B);return b};
uy=function(a,b){if(!a.length)return!1;for(var c=b+1;c<a.length;c++)if(!tu(a[c-1],a[c]))return!1;return!0};
wy=function(a,b,c){c=void 0===c?!1:c;if(!a.B||!a.B.ib)return NaN;a=vy(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var h=a[f];if(h.K<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:uy(a,c?b:0)?a[b].startTime:NaN};
Uy=function(a){return ei(a.D,function(b){return 3<=b.state})};
Vy=function(a){return!(!a.B||a.B.u==a.u)};
Wy=function(a){return Vy(a)&&a.u.he()&&a.B.u.info.u<a.u.info.u};
Xy=function(a,b,c){return(a=Sy(a))&&!a.F?a.I>b&&a.I<b+c:!1};
Sy=function(a){var b=Qx(a.C);return b?b.info:py(a)};
Ey=function(a){g.Gb(a.D,function(b){Hy(this,b)},a);
a.D=[];a.B=null};
Hy=function(a,b){var c=a.Z.Lb&&b.info.u[0].u.Re();b.da&&!c&&(c=a.C,c.W&&!c.C.Ff&&c.V("placeholderrollback",c.W),c.W=null,c.K=null,c.da=c.Aa,c.I-=c.P,Rx(c));b.dispose()};
Yy=function(a){return!!a.B&&-1!=a.B.B&&a.B.B<a.u.index.dh()};
Zy=function(a){var b=a.B;b&&-1==b.B&&(a=Qx(a.C))&&qu(a.info)&&(a=a.info.B,b.N="updateLastSliceRequested",b.B=a)};
$y=function(a){return ei(a.D,function(b){return b.N})};
az=function(a){this.B=this.D=0;this.alpha=Math.exp(Math.log(.5)/a)};
cz=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.D=!1;this.I=!0;this.B=Math.round(a*this.resolution);this.values=Array(this.B);for(a=0;a<this.B;a++)this.values[a]=Infinity;this.N=bz(this);this.F=c;this.K=d};
bz=function(a){for(var b=Array(a.B),c=0;c<a.B;c++)b[c]=c;return b};
dz=function(a,b){if(!a.D&&0===a.valueIndex)return 0;a.I&&(g.Cb(a.N,function(c,d){return a.values[c]-a.values[d]}),a.I=!1);
return a.values[a.N[Math.round(b*((a.D?a.B:a.valueIndex)-1))]]||0};
pga=function(a){var b=new nga;this.policy=a;this.P=b;this.K=this.X=0;this.B=-1;this.F=this.I=Rw();this.W=new cz(4,1,.6,.4);this.C=new cz(10,1,.5,.4);this.u=a.B?new az(a.u):new cz(a.u,20,.5,.4);this.N=new cz(5,1,.25);this.D=new cz(30,1,.5);a=oga();this.u.C(this.policy.D,0<a.byterate?a.byterate:this.policy.C);0<a.delay&&this.W.C(1,Math.min(+a.delay,2));0<a.stall&&this.C.C(1,+a.stall);0<a.init&&(this.F=Math.min(a.init,this.F));this.B=Rw()};
Nw=function(a,b){a.W.C(1,b);-1<a.B&&3E4<Rw()-a.B&&ez(a)};
Bx=function(a,b,c,d,e,f){f=void 0===f?!1:f;a.N.C(b,c/b);f||(a.I=Rw());e||a.D.C(1,b-d)};
Ax=function(a,b,c){b=Math.max(b,2048);a.C.C(1,c/b);-1<a.B&&3E4<Rw()-a.B&&ez(a)};
fz=function(a){a=a.W.u();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
Pw=function(a,b,c){isNaN(c)||(a.K+=c);isNaN(b)||(a.X+=b)};
gz=function(a){a=a.u.u();return 0<a?a:1};
hz=function(a){var b=gz(a);b=1/((a.C.u()||0)+1/b);a=a.N.u();return Math.max(b,0<a?a:1)};
Fw=function(a){return{delay:fz(a),stall:a.C.u()||0,byterate:gz(a),init:a.F}};
ez=function(a){qga(Fw(a));a.B=Rw()};
iz=function(a){return 4E3<=Rw()-a.I};
jz=function(a,b){this.B=a;this.u=b;this.C=1};
lz=function(a,b,c,d,e){e=void 0===e?!1:e;a.u.hd&&(d=Math.abs(d));d/=a.C;var f=1/hz(a.B);var h=.9*(d-a.u.Mi);h=Math.max(h,fz(a.B)+2048*f);c=h/f*a.u.Rz/(b+c);c=Math.min(c,d);a.u.ce&&e&&(c=Math.max(c,a.u.ce));return kz(a,c,b)};
kz=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.u.Iz*c),Math.min(Math.min(a.u.ba,31*c),Math.ceil(b*c))))||65536};
rga=function(a,b){var c=kz(a,b.video?a.u.UE:a.u.Sq,b.u);return a.u.fo&&b.video?Math.max(c,a.u.fo):c};
mz=function(a){var b=hz(a.B);if(a.u.bG)return b;var c=a.u.Hz,d=1E-9+fz(a.B);b*=Math.min(1,c/(b*d));a.u.Oj&&(c=((dz(a.B.D,.98)||0)-1)/2,c=Math.max(0,Math.min(1,c)),b*=1-a.u.Oj*c);return b};
nz=function(a){return mz(a)/a.C};
g.oz=function(){this.segments=[]};
pz=function(a,b){if(b>a.Ob())a.segments=[];else{var c=g.ib(a.segments,function(d){return d.eb>=b},a);
0<c&&a.segments.splice(0,c)}};
qz=function(a,b,c,d,e,f){f=void 0===f?0:f;Zv.call(this,a,b,d);this.index=e||new g.oz;this.Kg=f;this.X=c;this.N=!0;if(this.K=!c)this.F=!0};
rz=function(a){return a.D.Pe||a.D.Pe?a.da&&Ww()?3:2:a.aj?-1:1};
sz=function(a){var b=void 0===a?{}:a;a=void 0===b.Kg?0:b.Kg;var c=void 0===b.mA?!1:b.mA,d=void 0===b.YA?0:b.YA,e=void 0===b.Rd?0:b.Rd,f=void 0===b.hg?Infinity:b.hg,h=void 0===b.IC?0:b.IC;b=void 0===b.rf?!1:b.rf;this.segments=[];this.u=a;this.C=d;this.B=c;this.D=this.I=-1;this.N=e;this.W=f;this.K=null;this.P=h;this.F=b};
uz=function(a,b,c){b=tz(a,b);return 0<=b&&(c||!a.segments[b].pending)};
tz=function(a,b){return Bb(a.segments,function(c){return b-c.eb})};
vz=function(a,b,c){c=void 0===c?{}:c;qz.call(this,a,b,"",void 0,void 0,c.Kg||0);this.index=new sz(c)};
wz=function(a,b,c){for(;a;a=a.parentNode)if(a.attributes&&(!c||a.nodeName===c)){var d=a.getAttribute(b);if(d)return d}return""};
xz=function(a,b){for(var c=a;c;c=c.parentNode){var d=c.getElementsByTagName(b);if(0<d.length)return d[0]}return null};
yz=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(Number(b[2])|0)+60*(Number(b[4])|0)+(Number(b[6])|0):Number(a)|0};
zz=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
sga=function(a,b,c,d,e){this.eb=a;this.startSecs=b;this.durationSecs=c;this.u=d||NaN;this.B=e||NaN};
Az=function(){this.u=[];this.B=null;this.I=0;this.D=[];this.C=!1;this.K="";this.F=-1};
tga=function(a){var b=a.D;a.D=[];return b};
uga=function(){this.D=[];this.u=null;this.B={};this.C={}};
yga=function(a,b,c){var d=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.q(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.parentNode.parentNode,h=null;"Period"==f.nodeName?h=vga(a):"AdaptationSet"==f.nodeName?h=wga(a,f.attributes.id?f.attributes.id.value:f.attributes.mimetype.value):"Representation"==f.nodeName&&(h=xga(a,f.attributes.id.value));if(null==h)return;h.update(e,c);vb(d,tga(h))}vb(a.D,d);qaa(a.D,function(l){return 1E3*l.startSecs+l.u})};
zga=function(a){a.u&&(a.u.u=[]);g.Ib(a.B,function(b){b.u=[]});
g.Ib(a.C,function(b){b.u=[]})};
vga=function(a){a.u||(a.u=new Az);return a.u};
wga=function(a,b){a.B[b]||(a.B[b]=new Az);return a.B[b]};
xga=function(a,b){a.C[b]||(a.C[b]=new Az);return a.C[b]};
Bz=function(a,b,c,d,e){Zv.call(this,a,b,d||void 0,e||void 0);this.index=new g.oz;this.K=c};
Cz=function(a,b,c){var d=a.index.pw(b),e=a.index.Ce(b),f=a.index.getDuration(b),h;c?f=h=0:0<a.info.u&&(h=a.info.u*f);c=b==a.index.Ob()&&0<h;a=new ou(3,a,null,"otfCreateRequestInfoForSegment",b,e,f,0,h,c);return new Dv([a],d)};
Aga=function(a,b){if(!a.index.Dc()){for(var c=[],d=b.K,e=b.N.split(",").filter(function(r){return 0<r.length}),f=0,h=0,l=0,m=/^(\d+)/,n=/r=(\d+)/,p=0;p<d;p++){if(0>=l)if(l=e.shift(),h=(h=m.exec(l))?+h[1]/1E3:0)l=(l=n.exec(l))?+l[1]:0,l+=1;
else return;c.push(new lu(p,f,h,NaN,"sq/"+(p+1)));f+=h;l--}a.index.append(c)}};
Bga=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
Dz=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
Ez=function(){this.endTime=this.startTime=0;this.length=1};
Fz=function(){this.buffered=new Ez;this.appendWindowStart=this.appendWindowEnd=-1;this.mode="sequence";this.onerror=this.onabort=null;this.timestampOffset=-1;this.updating=!1};
Cga=function(a,b){return Gz(function(c,d){return g.zr(c,d,4,1E3)},a,b)};
g.Hz=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=Nt(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
Gz=function(a,b,c){b.match(Dga);return a(b,c).then(function(d){var e=g.Hz(d);return e?Gz(a,e,c):d})};
Iz=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.P.call(this);this.ea=this.duration=0;this.rf=this.I=this.isLive=this.C=!1;this.hg=this.Rd=0;this.isOtf=this.Bg=!1;this.W=(0,g.N)();this.K=Infinity;this.u={};this.sourceUrl=a||"";this.Ha=this.Z=0;this.F=null;this.ra=!!b&&g.R(b,"html5_live_nonzero_first_segment_start_time");this.isManifestless=!1;this.X=[];this.Aa=!!b&&g.R(b,"html5_live_self_init_segments");this.D=null;this.za=c;this.ka=!b||!g.R(b,"html5_manifest_without_credentials");
this.N=0;this.ba=!!b&&g.R(b,"disable_html5_manifest_namespace_redux");this.da="";this.P=NaN;this.ha=b&&g.R(b,"disable_html5_duration_caching")?Infinity:10;this.tj=this.Jl=this.B=0};
Ega=function(a){return g.Mb(a.u,function(b){return!!b.info.video&&Ov(b.info.video)})};
Jz=function(a){return g.Mb(a.u,function(b){return!!b.info.zd})};
Fga=function(a){return g.Mb(a.u,function(b){return Xv(b.info.mimeType)})};
Gga=function(a){return Nb(a.u,function(b){return b.info.video?b.Tt():!0})};
Kz=function(a){return g.Mb(a.u,function(b){return nv(b.B.u)})};
Lz=function(a,b){a.u[b.info.id]=b};
Hga=function(a,b,c,d){c=void 0===c?0:c;var e=new Iz("",d,!1);e.duration=c||0;g.Gb(a,function(f){var h=Mz(f,b,e.duration),l=ju(f.init),m=ju(f.index),n=parseInt(f.clen,10),p=Nz(f.url,f.sp,f.s);f=parseInt(f.lmt,10);p&&Lz(e,new bw(p,h,l,m,n,f))});
return e};
Iga=function(a,b,c,d){c=void 0===c?0:c;var e=new Iz("",d,!1);e.duration=c||0;g.Gb(a,function(f){var h=Mz(f,b,e.duration),l=Nz(f.url,f.sp,f.s);if(!g.Ou(h)){var m=d&&g.R(d,"html5_manifestless_vp9_otf"),n=d&&g.R(d,"html5_otf_webm_audio_killswitch");if(!m||!h.isVideo()&&n)return}l&&(h.video&&3==h.video.streamType?Lz(e,new Bz(l,h,"sq/0",null,null)):(m=ju(f.init),f=ju(f.index),Lz(e,new Bz(l,h,"",m,f))))});
e.isOtf=!0;return e};
Jga=function(a,b,c,d){var e=new Iz("",d,!0);g.Gb(a,function(f){var h=Mz(f,c),l=Nz(f.url,f.sp,f.s),m=parseInt(f.target_duration_sec,10)||5;f=parseInt(f.max_dvr_duration_sec,10)||14400;var n=parseInt(l.get("mindsq"),10)||parseInt(l.get("min_sq"),10)||0,p=parseInt(l.get("maxdsq"),10)||parseInt(l.get("max_sq"),10)||Infinity;e.Rd=e.Rd||n;e.hg=e.hg||p;var r=!Xv(h.mimeType),t=d&&g.Q(d,"html5_manifestless_max_segment_history");l&&Lz(e,new vz(l,h,{Kg:m,mA:r,YA:f,Rd:n,hg:p,IC:t,rf:b}))});
e.C=!b;e.Bg=!0;e.isManifestless=!0;e.isLive=!b;e.rf=b;e.I=!!e.Rd&&!!e.hg&&isFinite(e.hg);return e};
Mz=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);var h=null;f=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){h=(a.size||"640x360").split("x");h=new Mv(+h[0],+h[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries,+a.stream_type);var l=h;null===Oz&&(Oz=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));
if((Oz||Pz)&&('video/webm; codecs="vp9"'==d||'video/webm; codecs="vp9.2"'==d)){var m="00",n="08",p="01",r="01",t="01";'video/webm; codecs="vp9.2"'==d&&(m="02",n="10","bt2020"===l.primaries&&(t=p="09"),"smpte2084"==l.u&&(r="16"),"arib-std-b67"==l.u&&(r="18"));d='video/webm; codecs="'+["vp09",m,"51",n,"01",p,r,t,"00"].join(".")+'"'}}m=l=null;/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)&&(l=new Jv(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type),a.name&&(m=new Dz(a.name,a.audio_track_id,
"1"==a.isDefault)));a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(f=new Bga(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind));n=parseInt(a.bitrate,10)/8;p=parseInt(a.clen,10);c=c&&p?p/c:0;p=null;if(b&&a.drm_families)for(p={},a=g.q(a.drm_families.split(",")),r=a.next();!r.done;r=a.next())r=r.value,p[r]=b[r];return new Sv(e,d,l,h,m,p,n,c,f)};
Kga=function(a){return ei(a,function(b){return 3==+b.stream_type})?3:0};
Qz=function(a,b){return a.F?wb(a.F.D,b):a.X.length?wb(a.X,b):[]};
Nz=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new kv(a,!0);a.set("alr","yes");c&&(c=$u(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
Tz=function(a,b){var c=wz(b,"id");c=c.replace(":",";");var d=wz(b,"mimeType"),e=wz(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=parseInt(wz(b,"bandwidth"),10)/8;var f=parseInt(xz(b,"BaseURL").getAttribute(Rz(a,"contentLength")),10);f=a.duration&&f?f/a.duration:0;var h=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){h=parseInt(wz(b,"width"),10);var l=parseInt(wz(b,"height"),10),m=parseInt(wz(b,"frameRate"),10),n=Lga(wz(b,Rz(a,"projectionType")));a:switch(wz(b,Rz(a,"stereoLayout"))){case "layout_left_right":var p=
1;break a;case "layout_top_bottom":p=2;break a;default:p=0}wz(b,"video_level");h=new Mv(h,l,m,n,p,void 0,void 0,void 0,void 0)}m=l=null;if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d))if(l=parseInt(wz(b,"audioSamplingRate"),10),m=parseInt(wz(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10),n=Mga(wz(b,Rz(a,"spatialAudioType"))),l=new Jv(l,m,n),m=wz(b,"lang")||"und",n=xz(b,"Role")){var r=wz(n,"value")||"";Sb(Sz,r)?(n=m+"."+Sz[r],p="main"==r,m=wz(b,Rz(a,"langName"))||m+" - "+r,m=new Dz(m,
n,p)):m=null}else m=null;p=null;if(n=xz(b,"ContentProtection"))if(g.ak())if((p=n.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==p.value)for(p={},n=n.firstChild;null!=n;n=n.nextSibling)"yt:SystemURL"==n.nodeName&&(p[n.attributes.type.value]=n.textContent.trim());else p=null;else if((p=n.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==p.textContent)for(p={},n=n.firstChild;null!=n;n=n.nextSibling)"SystemURL"==n.localName&&"http://youtube.com/yt/2012/10/10"==n.namespaceURI&&
(p[n.attributes.type.textContent]=n.textContent.trim());else p=null;return new Sv(c,d,l,h,m,p,e,f)};
Lga=function(a){switch(a){case "equirectangular":return 2;case "equirectangular_threed_top_bottom":return 3;case "mesh":return 4;case "rectangular":return 1;default:return 0}};
Mga=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return 1;case "spatial_audio_type_ambisonics_quad":return 2;case "spatial_audio_type_foa_with_non_diegetic":return 3;default:return 0}};
Uz=function(a,b){b=void 0===b?"":b;a.Ha=1;a.W=(0,g.N)();return Lm(Cga(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.ka}).then((0,g.z)(a.cJ,a)),(0,g.z)(a.eJ,a))};
Nga=function(a,b,c){return Uz(new Iz(a,b,c),a)};
Oga=function(a,b,c){var d=a.getAttribute("media"),e=null;c||(a=a.getAttribute("mediaRange"),null!=a&&(c=a.split("-"),0<=parseInt(c[1],10)?e=ju(a):d=d+"?range="+a));return new lu(b.eb,b.startSecs,b.durationSecs,b.u,d,e,b.B)};
Vz=function(a){return a.isLive&&(0,g.N)()-a.W>=a.K};
Wz=function(a){var b=a.K;isFinite(b)&&(Vz(a)?a.refresh():(b=Math.max(0,a.W+b-(0,g.N)()),a.D||(a.D=new g.H(a.refresh,b,a),g.C(a,a.D)),a.D.start(b)))};
Pga=function(a){a=a.u;for(var b in a){var c=a[b].index;if(c.Dc())return c.Ob()+1}return 0};
Xz=function(a){return a.Jl&&a.B?a.Jl-a.B:0};
Yz=function(a){if(!isNaN(a.P))return a.P;var b=a.u,c;for(c in b){var d=b[c].index;if(d.Dc()){b=0;for(c=d.dh();c<=d.Ob();c++)b+=d.getDuration(c);b/=d.Qm();b=.5*Math.round(b/.5);d.Qm()>a.ha&&(a.P=b);return b}if(a.isLive&&(d=b[c],d.Kg))return d.Kg}return NaN};
Qga=function(a,b){var c=Vb(a.u,function(e){return e.index.Dc()});
if(!c)return NaN;c=c.index;var d=c.eh(b);return c.Ce(d)==b?b:d<c.Ob()?c.Ce(d+1):NaN};
Rga=function(a,b){g.Ib(a.u,function(c){g.Ib(b,function(d,e){var f=c.B;f.u.set(e,d);f.D.set(e,d);f.C&&f.C.set(e,d)})})};
Sga=function(a,b){if(!a.u["0"]){var c=new Sv("0","fakesb",void 0,new Mv(0,0,0,void 0,void 0,"auto"),null,null,1);a.u["0"]=b?new qz(new kv("http://www.youtube.com/videoplayback"),c,"fake"):new bw(new kv("http://www.youtube.com/videoplayback"),c,new iu(0,0),new iu(0,0),0,NaN)}};
Rz=function(a,b){return a.ba?"yt:"+b:a.da+":"+b};
Tga=function(a){return g.jb(Object.values(a.u),function(b){return b.info.zd&&b.info.video?480<b.info.video.yc&&"H"==b.info.Fb:!1})};
Zz=function(a,b,c,d){g.P.call(this);this.D=0;this.B=b;this.u=c;this.F=a;this.P=d;this.I=0;this.K=this.F.isManifestless&&!this.F.rf;this.C=!1;this.N=null};
$z=function(a,b){var c=a.u.index,d=a.B.B;uz(c,d)||b&&b.B==d?(a.F=!uz(c,d),a.W=!uz(c,d)):(a.F=!0,a.W=!0)};
aA=function(a,b,c){if(!a.u.he())return 0!=b&&Ey(a),b;var d=yy(a,b);if(!isNaN(d))return d;Fy(a);return c&&(c=jy(c.Ue(),b),!isNaN(c))?(Ay(a,c+Uga),b):Ay(a,b)};
Wga=function(a,b,c,d){if(a.C&&a.D){var e=Vga(a,b,c);if(-1!=e){a.B.F=!1;a.u.F=!1;a.K=!0;g.um(function(){bA(a,"seekreason","behindMinSq");cA(a,e)});
return}}c?a.B.W=!1:a.u.W=!1;0<=yy(a.B,a.D)&&0<=yy(a.u,a.D)?((a.B.F||a.u.F)&&bA(a,"iterativeSeeking","done;count."+a.I,!1),a.B.F=!1,a.u.F=!1):d&&g.um(function(){if(a.K||!a.P.ha)a.P.Nj?dA(a):c&&cA(a,b.startTime);else{var f=b.startTime,h=b.duration,l=c?a.B.F:a.u.F;l=!a.la()&&l;var m=-1!=a.B.I&&-1!=a.u.I,n=!a.B.W&&!a.u.W;l&&m&&n&&(a.D>=f&&a.D<f+h+.1?((c?a.B:a.u).F=!1,a.B.F||a.u.F||(bA(a,"iterativeSeeking","done;count."+a.I,!1),a.I=0)):8>a.I?(a.I++,bA(a,"iterativeSeeking","inprogress;count."+a.I+";target."+
a.D+";actual."+f+";duration."+h+";isVideo."+c,!1),a.seek(a.D)):(bA(a,"iterativeSeeking","incomplete;count."+a.I+";target."+a.D+";actual."+f,!1),a.I=0,a.B.F=!1,a.u.F=!1,a.V("seekplayerrequired",f+.1,!0)))}})};
Vga=function(a,b,c){if(!a.C)return-1;c=(c?a.B:a.u).u.index;var d=c.eh(a.D);return(uz(c,a.F.Rd)||b.eb==a.F.Rd)&&d<a.F.Rd?a.F.uc():-1};
cA=function(a,b){!a.la()&&a.K&&-1!=a.B.I&&-1!=a.u.I&&(a.K=!1,a.V("seekplayerrequired",b+.1,a.P.Nj))};
dA=function(a){var b=-1!=a.B.I,c=-1!=a.u.I;if(!b||!c)if(b=!b&&Px(a.B.C),c=!c&&Px(a.u.C),b||c)if(c=b?a.B:a.u,b=b?a.u:a.B,c.I=Px(c.C).info.B,-1!=b.I){var d=Math.max(b.u.index.Ce(b.I),c.u.index.Ce(c.I));bA(a,"seekreason","initManifestlessSync");g.um(function(){return cA(a,d)});
a.N&&(a.N.resolve(d+.1),a.N=null)}};
bA=function(a,b,c,d){a.V("ctmp",b,c,void 0===d?!1:d)};
eA=function(a,b){ws.call(this,1,arguments)};
fA=function(a,b){ws.call(this,1,arguments);this.u=a};
Xga=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
hA=function(a){var b=gA(a);if(b.aft)return b.aft;a=g.L((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=a.length,d=0;d<c;d++){var e=b[a[d]];if(e)return e}return NaN};
iA=function(a){return!!g.Na("yt.timing."+(a||"")+"pingSent_")};
jA=function(a,b){g.Ia("yt.timing."+(b||"")+"pingSent_",a,void 0)};
lA=function(a){return g.Na("ytcsi."+(a||"")+"data_")||kA(a)};
mA=function(a){a=lA(a);a.info||(a.info={});return a.info};
gA=function(a){a=lA(a);a.tick||(a.tick={});return a.tick};
nA=function(a){var b=lA(a).nonce;b||(b=is(),lA(a).nonce=b);return b};
kA=function(a){var b={tick:{},info:{}};g.Ia("ytcsi."+(a||"")+"data_",b,void 0);return b};
pA=function(a){var b=gA(a||""),c=hA(a);c&&!oA&&(zs(Yga,new eA(Math.round(c-b._start),a)),oA=!0)};
qA=function(){var a=g.Na("ytcsi.debug");a||(a=[],g.Ia("ytcsi.debug",a,void 0),g.Ia("ytcsi.reference",{},void 0));return a};
sA=function(a){a=a||"";var b=rA();if(b[a])return b[a];var c=qA(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);return b[a]=d};
rA=function(){var a=g.Na("ytcsi.reference");if(a)return a;qA();return g.Na("ytcsi.reference")};
tA=function(){this.u=0};
uA=function(){tA.u||(tA.u=new tA);return tA.u};
wA=function(a,b){vA[b]=vA[b]||{count:0};var c=vA[b];c.count++;c.time=(0,g.N)();a.u||(a.u=pp(function(){var d=(0,g.N)(),e;for(e in vA)vA[e]&&6E4<d-vA[e].time&&delete vA[e];a&&(a.u=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new Iq("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.lr(c)),!0):!1};
xA=function(a){return!!g.L("FORCE_CSI_ON_GEL",!1)||g.uo("csi_on_gel")||!!lA(a).useGel};
yA=function(a){a=lA(a);if(!("gel"in a))a.gel={gelTicks:{},gelInfos:{}};else if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}return a.gel};
zA=function(a){kA(a);Zga();jA(!1,a);a||(g.L("TIMING_ACTION")&&ro("PREVIOUS_ACTION",g.L("TIMING_ACTION")),ro("TIMING_ACTION",""))};
FA=function(a,b,c,d){d=d?d:a;AA(d);var e=d||"",f=rA();f[e]&&delete f[e];var h=qA(),l={timerName:e,info:{},tick:{},span:{}};h.push(l);f[e]=l;sA(d||"").info.actionType=a;zA(d);lA(d).useGel=!0;ro(d+"TIMING_AFT_KEYS",b);ro(d+"TIMING_ACTION",a);BA("yt_sts","c",d);CA("_start",c,d);if(xA(d)){a={actionType:DA[so((d||"")+"TIMING_ACTION")]||"LATENCY_ACTION_UNKNOWN",previousAction:DA[so("PREVIOUS_ACTION")]||"LATENCY_ACTION_UNKNOWN"};if(b=g.rs())a.clientScreenNonce=b;b=nA(d);uA().info(a,b)}g.Ia("ytglobal.timing"+
(d||"")+"ready_",!0,void 0);EA(d)};
BA=function(a,b,c){if(null!==b)if(mA(c)[a]=b,xA(c)){var d=b;b=yA(c);if(b.gelInfos)b.gelInfos["info_"+a]=!0;else{var e={};b.gelInfos=(e["info_"+a]=!0,e)}if(a.match("_rid")){var f=a.split("_rid")[0];a="REQUEST_ID"}if(a in GA){b=GA[a];g.nb($ga,b)&&(d=!!d);a in HA&&"string"===typeof d&&(d=HA[a]+d.toUpperCase().replace(/-/g,"_"));a=d;d=b.split(".");for(var h=e={},l=0;l<d.length-1;l++){var m=d[l];h[m]={};h=h[m]}h[d[d.length-1]]="requestIds"===b?[{id:a,endpoint:f}]:a;b=ft({},e)}else g.nb(aha,a)||g.lr(new Iq("Unknown label logged with GEL CSI",
a)),b=void 0;b&&IA(b,c)}else sA(c||"").info[a]=b};
IA=function(a,b){if(xA(b)){var c=sA(b||"");ft(c.info,a);c=yA(b);"gelInfos"in c||(c.gelInfos={});ft(c.gelInfos,a);c=nA(b);uA().info(a,c)}};
CA=function(a,b,c){var d=gA(c);if(g.uo("use_first_tick")&&JA(a,c))return d[a];if(!b&&"_"!==a[0]){var e=a;KA.mark&&(pc(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),KA.mark(e))}e=b||(0,g.N)();d[a]=e;e=yA(c);e.gelTicks&&(e.gelTicks["tick_"+a]=!0);c||b||(0,g.N)();if(xA(c)){sA(c||"").tick[a]=b||(0,g.N)();e=nA(c);if("_start"===a){var f=uA();wA(f,"baseline_"+e)||g.Lq("latencyActionBaselined",{clientActionNonce:e},{timestamp:b})}else uA().tick(a,e,b);pA(c);e=!0}else e=!1;e||(EA(c),sA(c||"").tick[a]=b||(0,g.N)());
return d[a]};
LA=function(a){var b="above_the_fold";KA&&KA.measure&&(pc(b,"measure_")||(b="measure_"+b),a?KA.measure(b,a):KA.measure(b))};
JA=function(a,b){var c=gA(b);return a in c};
MA=function(a,b){JA("_start",b)&&!JA(a,b)&&CA(a,void 0,b)};
EA=function(a){if(!iA(a)){var b=g.L((a||"")+"TIMING_ACTION",void 0),c=gA(a);if(g.Na("ytglobal.timing"+(a||"")+"ready_")&&b&&JA("_start")&&hA(a))if(pA(a),a)NA(a);else{b=!0;var d=g.L("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&NA(a)}}};
bha=function(){switch(Wo()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
NA=function(a){if(!xA(a)){var b=gA(a),c=mA(a),d=b._start,e=g.L("CSI_SERVICE_NAME","youtube"),f={v:2,s:e,action:g.L((a||"")+"TIMING_ACTION",void 0)},h=c.srt;void 0!==b.srt&&delete c.srt;b.aft=hA(a);var l=gA(a),m=l.pbr,n=l.vc;l=l.pbs;m&&n&&l&&m<n&&n<l&&mA(a).yt_pvis&&"youtube"===e&&(BA("yt_lt","hot_bg",a),e=b.vc,m=b.pbs,delete b.aft,c.aft=Math.round(m-e));for(var p in c)"_"!==p.charAt(0)&&(f[p]=c[p]);b.ps=(0,g.N)();p={};e=[];for(var r in b)"_"!==r.charAt(0)&&(m=Math.round(b[r]-d),p[r]=m,e.push(r+"."+
m));f.rt=e.join(",");b=!!c.ap;g.uo("debug_csi_data")&&(c=g.Na("yt.timing.csiData"),c||(c=[],g.Ia("yt.timing.csiData",c,void 0)),c.push({page:location.href,time:new Date,args:f}));c="";for(var t in f)f.hasOwnProperty(t)&&(c+="&"+t+"="+f[t]);f="/csi_204?"+c.substring(1);window.navigator&&window.navigator.sendBeacon&&b?bt(f):g.at(f);jA(!0,a);zs(OA,new fA(p.aft+(Number(h)||0),a))}};
AA=function(a){if(xA(a))JA("_start",a)&&CA("aa",void 0,a);else if(!iA(a)){var b=g.L("CSI_SERVICE_NAME","youtube");g.L((a||"")+"TIMING_ACTION",void 0)&&b&&(CA("aa",void 0,a),BA("ap",1,a),BA("yt_fss","c",a),NA(a))}};
PA=function(){this.B=this.C=0;this.F={}};
QA=function(a,b,c,d){g.P.call(this);this.B=this.u=null;this.C=!1;this.D=0;this.F=b;this.K=a;this.I=c;this.I.C.subscribe("cuepoint",this.N,this);this.P=d};
RA=function(a,b){if(a.u){a.B=null;a.C=!1;var c=b.startTime+a.D-a.u.Te.startSecs;0>=c||(c=new qt(a.u.Te.startSecs-(a.F.xc&&!isNaN(a.D)?a.D:0),c,a.u.Te.context,a.u.Te.identifier,"stop",a.u.Te.u+1E3*b.duration),a.V("ctmp","cuepointdiscontinuity","segNum."+b.eb,!1),a.N(c,b.eb))}};
SA=function(a){return a.u?a.u.Te:null};
TA=function(a,b,c){this.errorCode=a;this.u=b;this.details=c||{}};
g.UA=function(a){var b;for(b in a)if(a.hasOwnProperty(b)){var c=(""+a[b]).replace(/[:,=]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""};
VA=function(a){var b=void 0===b?!1:b;if(a instanceof TA)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.kr(a):g.lr(a);return new TA(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})};
WA=function(a,b,c){g.P.call(this);var d=this;this.u=a;this.P=b;this.N=c;this.W=this.C=this.F=null;this.I=0;this.D=function(e){return d.V(e.type,d)};
this.supports(3)&&(this.u.addEventListener("updateend",this.D),this.u.addEventListener("error",this.D));this.X=0;this.K=fy([],[]);this.B=!1};
XA=function(){return!(!window.SourceBuffer||!SourceBuffer.prototype.changeType)};
ZA=function(a,b){g.B.call(this);var c=this;this.u=a?a:{};this.B=b?b:{};this.D={};this.F=this.C=0;this.I=new g.H(function(){return YA(c)},1E4);
g.C(this,this.I)};
aB=function(a,b){$A(a,b);return a.u[b]&&a.B[b]?a.u[b]/Math.pow(2,a.C/a.B[b]):0};
$A=function(a,b){if(!a.u[b]){var c=lx();a.u=c.values?c.values:{};a.B=c.halfLives?c.halfLives:{};a.D=c.values?Object.assign({},c.values):{}}};
YA=function(a){var b=lx();if(b.values){b=b.values;var c={};for(d in a.u)b[d]&&a.D[d]&&(a.u[d]+=b[d]-a.D[d]),c[d]=aB(a,d);a.D=c}var d=a.B;b={};b.values=a.D;b.halfLives=d;g.Ws("yt-player-memory",b,2592E3)};
bB=function(){var a=g.Na("yt.player.utils.videoElement_");a||(a=g.Fe("VIDEO"),g.Ia("yt.player.utils.videoElement_",a,void 0));return a};
cB=function(a){var b=bB();return!!(b&&b.canPlayType&&b.canPlayType(a))};
cha=function(a){try{var b=dB('video/mp4; codecs="avc1.42001E"')||dB('video/webm; codecs="vp9"');return(dB('audio/mp4; codecs="mp4a.40.2"')||dB('audio/webm; codecs="opus"'))&&(b||!a)||cB('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
dB=function(a){if(/opus/.test(a)&&(g.eB&&!Qn("38")||g.eB&&Xj("crkey")))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!ek())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!cB(a)};
fB=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
gB=function(){var a=bB();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
hB=function(){var a=bB();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
nga=function(){this.u=0};
iB=function(a,b){this.u=a;this.B=b;this.C=0;Object.defineProperty(this,"timestampOffset",{get:this.xR,set:this.BR});Object.defineProperty(this,"buffered",{get:this.vR})};
dha=function(){this.length=0};
jB=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.u=a;this.B=NaN;this.C=0;Object.defineProperty(this,"duration",{get:this.wR,set:this.AR});Object.defineProperty(this,"readyState",{get:this.yR});this.u.addEventListener("webkitsourceclose",(0,g.z)(this.zR,this),!0)};
kB=function(a,b,c,d){g.P.call(this);var e=this;this.u=a;this.N={error:function(){!e.la()&&e.isActive()&&e.V("error",e)},
updateend:function(){!e.la()&&e.isActive()&&e.V("updateend",e)}};
Zr(this.u,this.N);this.B=b;this.P=c;this.I=0;this.F=Infinity;this.D=0;this.K=this.C=d};
lB=function(a,b){this.u=a;this.B=void 0===b?!1:b;this.C=!1};
mB=function(a,b){b=void 0===b?!1:b;g.B.call(this);this.F=new g.Wr(this);g.C(this,this.F);this.B=this.u=null;this.C=a;var c=this.C;c=c.RL?c.u.webkitMediaSourceURL:window.URL.createObjectURL(c);this.qp=new lB(c,!0);this.I=b;this.D=null;Xr(this.F,this.C,["sourceopen","webkitsourceopen"],this.uP);Xr(this.F,this.C,["sourceclose","webkitsourceclose"],this.tP)};
eha=function(a,b){nB(a)?g.um(function(){return b(a)}):a.D=b};
oB=function(a,b){try{a.C.duration=b}catch(c){}};
pB=function(a){return!!a.u||!!a.B};
nB=function(a){try{return"open"==a.C.readyState}catch(b){return!1}};
qB=function(a){try{return"closed"==a.C.readyState}catch(b){return!0}};
rB=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
sB=function(a,b,c,d){if(!a.u||!a.B)return null;var e=a.u.isView()?a.u.u:a.u,f=a.B.isView()?a.B.u:a.B,h=new mB(a.C,!0);h.qp=a.qp;e=new kB(e,b,c,d);b=new kB(f,b,c,d);h.u=e;h.B=b;g.C(h,e);g.C(h,b);nB(a)||a.u.Nn(a.u.lc());return h};
tB=function(a,b,c){this.experiments=a;this.W=b;this.X=void 0===c?!1:c;this.F=!!g.Na("cast.receiver.platform.canDisplayType");this.D={};this.K=!1;this.N=new Set;this.I=!0;this.B=!g.R(this.experiments,"html5_disable_protected_hdr");this.C=!1;this.P=g.R(this.experiments,"html5_disable_vp9_encrypted");a=g.Na("cast.receiver.platform.getValue");this.u=!this.F&&a&&a("max-video-resolution-vpx")||null};
fha=function(a,b){var c=wu(b);if("0"===c)return!0;var d=b.mimeType;if(g.R(a.experiments,"html5_disable_codec_on_platform_errors")){if(a.N.has(b.Fb))return!1}else if(Vv(b)&&a.K)return!1;if(b.video&&(Ov(b.video)||"bt2020"===b.video.primaries)&&!(uB(a,vB.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches))||"338"===c&&!(g.eB?Qn(53):g.wB&&Qn(64)))return!1;var e={};b.video&&(b.video.width&&(e[vB.WIDTH.name]=
b.video.width),b.video.height&&(e[vB.HEIGHT.name]=b.video.height),b.video.fps&&(e[vB.FRAMERATE.name]=b.video.fps),b.video.u&&(e[vB.EOTF.name]=b.video.u),b.u&&(e[vB.BITRATE.name]=8*b.u),"("===b.Fb&&(e[vB.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(e[vB.DECODETOTEXTURE.name]="true");b.audio&&b.audio.u&&(e[vB.CHANNELS.name]=b.audio.u);a.C&&Tv(b)&&(e[vB.EXPERIMENTAL.name]="allowed");for(var f=g.q(Object.keys(vB)),h=f.next();!h.done;h=
f.next()){h=vB[h.value];var l;if(l=e[h.name])(l=h===vB.EOTF&&0<b.mimeType.indexOf("vp09.02"))||(l=b,l=g.R(a.experiments,"html5_ignore_h264_framerate_cap")&&h===vB.FRAMERATE&&("H"===l.Fb||"h"===l.Fb)),l=!(l||h===vB.DECODETOTEXTURE&&!g.R(a.experiments,"html5_decode_to_texture_cap"));if(l)if(uB(a,h))if(a.u){if(a.u[h.name]<e[h.name])return!1}else d=d+"; "+h.name+"="+e[h.name];else if(Uv(b)&&h===vB.EOTF)return!1}!g.R(a.experiments,"disable_html5_cast_hdcp_filter2")&&a.F&&b.video&&1080<b.video.yc&&b.zd&&
(d+="; hdcp=2.2");return"227"===c&&!g.R(a.experiments,"html5_enable_1080p_hq_cenc")||("585"===c||"588"===c||"583"===c||"586"===c||"584"===c||"587"===c||"591"===c||"592"===c)&&!g.R(a.experiments,"html5_enable_new_hvc_enc")?!1:a.isTypeSupported(d)};
xB=function(){var a=Yj()&&!Qn(29),b=Xj("google tv")&&Xj("chrome")&&!Qn(30),c=ck();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
g.yB=function(a,b){b=void 0===b?!1:b;return xB()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(bB(),"application/x-mpegURL")?!0:!1};
uB=function(a,b){b.name in a.D||(a.D[b.name]=gha(a,b));return a.D[b.name]};
gha=function(a,b){if(a.u)return!!a.u[b.name];if(b===vB.BITRATE&&g.R(a.experiments,"html5_ignore_bad_bitrates")&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===vB.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.invalid);if(b.video){var c='video/webm; codecs="vp9"';a.isTypeSupported(c)||(c='video/mp4; codecs="avc1.4d401e"')}else c=
'audio/webm; codecs="opus"',a.isTypeSupported(c)||(c='audio/mp4; codecs="mp4a.40.2"');return a.isTypeSupported(c+"; "+b.name+"="+b.valid)&&!a.isTypeSupported(c+"; "+b.name+"="+b.invalid)};
zB=function(){g.P.call(this);this.items={}};
hha=function(a,b){this.encryptedClientKey=b;this.u=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)};
AB=function(a){try{return g.af(a)}catch(b){return null}};
iha=function(a){try{var b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?AB(b.clientKey):null;var c=b.encryptedClientKey?AB(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.N)():null;a&&c&&d&&(this.u=new hha(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=AB(b.onesieUstreamerConfig));this.baseUrl=b.baseUrl}};
jha=function(){this.u=17;this.C=13E4;this.D=.5;this.B=!1};
S=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
BB=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
CB=function(a,b){return void 0===b||null===b?a:Number(b)};
DB=function(a,b){return void 0===b||null===b?a:b.toString()};
EB=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}if(a){var c=a.match(kha);if(c){var d=Number(c[2]);c=Number(c[1]);if(!isNaN(d)&&!isNaN(c)&&0<d)return c/d}}return NaN};
FB=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.uo("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
dC=function(a,b,c){g.B.call(this);this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.td=this.Lb=this.yb=this.Af=this.userDisplayName=this.userDisplayImage="";this.deviceParams={};this.controlsType="0";this.kj=NaN;this.xc=!1;this.ra=0;this.ac=this.Ph=this.vg=!1;a=a?g.Zb(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);this.cspNonce=DB("",a.csp_nonce);this.experiments=new ofa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:
a.fflags);this.Aa=b?b.serializedForcedExperimentIds:a.forced_experiments||void 0;this.ca("web_player_deprecated_uvr_killswitch");try{var d=document.location.toString()}catch(w){d=""}this.Pb=d;this.Qe=(d=window.location.ancestorOrigins)?Array.from(d):[];d=!this.ca("web_player_context_config_embeds_fields_killswitch");this.B=S(!1,b&&d?b.isEmbed:a.is_embed);if(b&&b.device){var e=b.device;e.brand&&(this.deviceParams.cbrand=e.brand);e.browser&&(this.deviceParams.cbr=e.browser);e.browserVersion&&(this.deviceParams.cbrver=
e.browserVersion);this.deviceParams.c=e.interfaceName||"WEB";this.deviceParams.cver=e.interfaceVersion||"html5";e.interfaceTheme&&(this.deviceParams.ctheme=e.interfaceTheme);this.deviceParams.cplayer=e.interfacePlayerType||"UNIPLAYER";e.model&&(this.deviceParams.cmodel=e.model);e.network&&(this.deviceParams.cnetwork=e.network);e.os&&(this.deviceParams.cos=e.os);e.osVersion&&(this.deviceParams.cosver=e.osVersion);e.platform&&(this.deviceParams.cplatform=e.platform)}else this.deviceParams.c=a.c||"web",
this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER";b&&!this.ca("wpcc_loader_url_killswitch")?this.loaderUrl=this.B||GB(this)&&b.loaderUrl?b.loaderUrl||"":this.Pb:this.loaderUrl=this.B||GB(this)&&a.loaderUrl?DB("",a.loaderUrl):this.Pb;this.C=bv(this.loaderUrl,lha);e=this.loaderUrl;var f=void 0===f?!1:f;this.Sq=av(bv(e,mha),e,f,"Trusted Ad Domain URL");this.ha=S(!1,a.privembed);this.protocol=0===this.Pb.indexOf("http:")?"http":"https";this.N=dv((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||
"")||dv(this.Pb)||this.protocol+"://www.youtube.com/";f=b?b.eventLabel:a.el;e="detailpage";"adunit"===f?e=this.B?"embedded":"detailpage":"embedded"===f||this.C?e=BB(e,f,nha):f&&(e="embedded");this.ea=e;xp();f=null;e=b?b.playerStyle:a.ps;var h=g.nb(HB,e);!e||h&&!this.C||(f=e);this.playerStyle=f;this.P=(this.I=g.nb(HB,this.playerStyle))&&"area120-boutique"!==this.playerStyle&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.Rq=!this.P;this.Z=S(!1,a.disableplaybackui);this.Rb=bB().defaultPlaybackRate?
IB||g.lk||JB?g.wB&&Qn("20")||g.eB&&Qn("4")||g.rg&&Qn("11")||hk():!(g.rg&&!Xj("chrome")||IB||Xj("android")||Xj("silk")):!1;this.Nj=S(!1,a.enable_faster_speeds);this.u=S("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.u?f=!0:(f=Number(g.A()/1E3),e=g.Mr.getInstance(),f=this.ca("block_desktop_background_playback_with_mobile_cookie")&&e&&f>Number(e.get("dhmu",f.toString())));this.Qq=f;this.Na="3"===this.controlsType||this.u||S(!1,a.use_media_volume);this.W=hB();this.Qr=
g.KB;this.Qh=S(!1,b&&d?b.embedOptOutDeprecation:a.opt_out_deprecation);this.pfpChazalUi=S(!1,b&&d?b.pfpChazalUi:a.pfp_chazal_ui);var l;b?void 0!==b.hideInfo&&(l=!b.hideInfo):l=a.showinfo;this.Ki=g.LB(this)&&!this.Qh||S(!MB(this)&&!NB(this)&&!this.I,l);this.Rh=b?!!b.mobileIphoneSupportsInlinePlayback:S(!1,a.playsinline);l=this.u&&OB&&null!=PB&&0<PB&&2.3>=PB;f=b?b.useNativeControls:a.use_native_controls;e=this.u&&!this.ca("embeds_enable_mobile_custom_controls");f=QB(this)||!l&&S(e,f)?"3":"1";e=b?b.controlsType:
a.controls;this.controlsType="0"!==e&&0!==e?f:"0";this.hd=this.u;this.color=BB("red",b&&d?b.progressBarColor:a.color,oha);this.Yq="3"===this.controlsType||S(!1,b&&d?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.za=!this.B;this.Li=(f=!this.za&&!NB(this)&&!this.P&&!this.I&&!MB(this))&&!this.Yq&&"1"===this.controlsType;this.Za=g.RB(this)&&f&&"0"===this.controlsType&&!this.Li;this.Ls=this.yr=l;this.Mi=SB&&!g.$d(601)?!1:!0;this.fo=this.B||!1;this.Ga=NB(this)?"":(this.loaderUrl||
a.post_message_origin||"").substring(0,128);this.widgetReferrer=DB("",b&&d?b.widgetReferrer:a.widget_referrer);var m;b&&d?b.disableCastApi&&(m=!1):m=a.enablecastapi;this.wd=(m=!this.C||S(!0,m))&&"1"===this.controlsType&&!this.u&&(NB(this)||g.RB(this)||g.TB(this))&&!g.UB(this)&&!VB(this);this.Ks=fB()||gB();m=b?!!b.supportsAutoplayOverride:S(!1,a.autoplayoverride);this.Ff=!this.u&&!Xj("nintendo wiiu")&&!Xj("nintendo 3ds")||m;m=b?!!b.enableMutedAutoplay:S(!1,a.mutedautoplay);l=this.ca("embeds_enable_muted_autoplay")&&
g.LB(this);this.Qg=m&&l&&this.W&&!QB(this);m=(NB(this)||MB(this))&&"blazer"===this.playerStyle;this.ae=b?!!b.disableFullscreen:!S(!0,a.fs);this.ka=!this.ae&&(m||Sr());this.Oh=this.ca("uniplayer_block_pip")&&(Yj()&&Qn(58)&&!mk()||jk);m=g.LB(this)&&!this.Qh;var n;b?void 0!==b.disableRelatedVideos&&(n=!b.disableRelatedVideos):n=a.rel;this.nb=m||S(!this.I,n);this.Df=S(!1,b&&d?b.enableContentOwnerRelatedVideos:a.co_rel);this.F=mk()&&0<PB&&4.4>=PB?"_top":"_blank";this.Lc=g.TB(this);this.Cf=S("blazer"===
this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":n="bl";break;case "gmail":n="gm";break;case "books":n="gb";break;case "docs":n="gd";break;case "duo":n="gu";break;case "google-live":n="gl";break;case "google-one":n="go";break;case "play":n="gp";break;case "chat":n="hc";break;case "hangouts-meet":n="hm";break;case "photos-edu":case "picasaweb":n="pw";break;default:n="yt"}this.X=n;this.kd=DB("",b&&d?b.authorizedUserIndex:a.authuser);var p;b?void 0!==b.disableWatchLater&&
(p=!b.disableWatchLater):p=a.showwatchlater;this.Mk=(this.B&&!this.ha||!!this.kd)&&S(!this.P,this.C?p:void 0);this.ud=b?!!b.disableKeyboardControls:S(!1,a.disablekb);this.loop=S(!1,a.loop);this.pageId=DB("",a.pageid);this.zs=S(!0,a.canplaylive);this.li=S(!1,a.livemonitor);this.disableSharing=S(this.I,b?b.disableSharing:a.ss);(p=a.video_container_override)?(n=p.split("x"),2!==n.length?p=null:(p=Number(n[0]),n=Number(n[1]),p=isNaN(p)||isNaN(n)||0>=p*n?null:new g.he(p,n))):p=null;this.Ni=p;this.mute=
b?!!b.startMuted:S(!1,a.mute);this.Ef=!this.mute&&S("0"!==this.controlsType,a.store_user_volume);p=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:BB(void 0,p,WB);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":DB("",a.cc_lang_pref);p=BB(2,b&&d?b.captionsLanguageLoadPolicy:a.cc_load_policy,WB);"3"===this.controlsType&&2===p&&(p=3);this.Si=p;this.pe=b?b.hl||"en_US":DB("en_US",a.hl);this.region=b?b.contentRegion||"US":DB("US",a.cr);
this.hostLanguage=b?b.hostLanguage||"en":DB("en",a.host_language);this.Lj=!this.ha&&Math.random()<g.Q(this.experiments,"web_player_api_logging_fraction");this.da=!this.ha;this.enabledEngageTypes=new Set;this.deviceHasDisplay=S(!0,a.deviceHasDisplay);this.kj=CB(this.kj,a.ismb);p=a;g.Xu(this.experiments,"html5_qoe_intercept")?p=g.Xu(this.experiments,"html5_qoe_intercept"):this.Rq?(p=p.vss_host||"s.youtube.com",this.ca("www_for_videostats")&&"s.youtube.com"===p&&(p=XB(this.N)||"www.youtube.com")):p=
"video.google.com";this.Oi=p;this.Oe(a,!0);this.K=new zB;g.C(this,this.K);p=b?b.innertubeApiKey:DB("",a.innertube_api_key);n=b?b.innertubeApiVersion:DB("",a.innertube_api_version);m=b?b.innertubeContextClientVersion:DB("",a.innertube_context_client_version);this.ba={innertubeApiKey:so("INNERTUBE_API_KEY")||p,innertubeApiVersion:so("INNERTUBE_API_VERSION")||n,fC:g.L("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),fp:this.deviceParams.c,innertubeContextClientVersion:so("INNERTUBE_CONTEXT_CLIENT_VERSION")||
m,Bs:this.hostLanguage,As:this.region,Cs:so("INNERTUBE_HOST_OVERRIDE")||"",iC:!!g.L("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),hC:!!g.L("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Ji=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.D=new tB(this.experiments,this.ca("html5_force_hfr_support")?!0:YB(this)||dk()||ek()||ZB(this),g.eB&&g.$d(56)||g.wB&&g.$d(54)||ZB(this));p=this.kj;n=this.experiments;m=new jha;g.$B(this)&&(m.B=!0,m.D=.1);g.R(n,"html5_ewma_bandwidth_estimator")&&(m.B=
!0);g.R(n,"html5_pctile_bandwidth_estimator")&&(m.B=!1);p&&(m.C=p/8);m.u=g.Q(n,"html5_bandwidth_window_size")||m.u;this.schedule=new pga(m);this.enableSafetyMode=S(!1,a.enable_safety_mode);p=this.Z?!1:NB(this)&&"blazer"!==this.playerStyle;var r;b&&d?r=b.disableAutonav?!1:void 0:r=a.allow_autonav;this.ob=S(p,r);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:S(!1,a.send_visitor_id_header);this.Ja=(0,g.N)();var t;"docs"===this.playerStyle&&(b&&d?t=b.disableNativeContextMenu:t=a.disable_native_context_menu);
this.disableNativeContextMenu=S(!1,t);this.Oj=YB(this)&&this.ca("enable_skip_intro_button");this.embedConfig=DB("",b&&d?b.serializedEmbedConfig:a.embed_config);this.ce=S(!1,a.full_window);this.Qa=!g.aC(this)&&!bC(this)&&!g.UB(this)&&!VB(this)&&!0;this.livingRoomAppMode=BB("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode,cC);this.transparentBackground=b?!!b.transparentBackground:S(!1,a.transparent_background);this.useFastSizingOnWatchDefault=S(!0,b?b.useFastSizingOnWatchDefault:a.use_fast_sizing_on_watch_default);
this.showMiniplayerButton=b?!!b.showMiniplayerButton:S(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:S(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:S(!1,a.use_miniplayer_ui);this.showBackButton=S(!1,a.showbackbutton);this.Uq=1E-4>Math.random();this.Bf=a.onesie_hot_config?new iha(a.onesie_hot_config):void 0;this.isTectonic=!!a.isTectonic;this.Er=c;this.Ub=new ZA;g.C(this,this.Ub)};
eC=function(a,b){return!a.I&&Yj()&&Qn(55)&&"3"===a.controlsType&&!b};
g.fC=function(a){a=XB(a.N);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.gC=function(a){return g.UB(a)?"music.youtube.com":g.fC(a)};
hC=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
iC=function(a){return NB(a)&&!g.aC(a)};
QB=function(a){return SB&&!a.Rh||Xj("nintendo wiiu")||Xj("nintendo 3ds")?!0:!1};
VB=function(a){return"area120-boutique"===a.playerStyle};
g.UB=function(a){return"music-embed"===a.playerStyle};
g.$B=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"===a.deviceParams.cplatform};
GB=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===a.deviceParams.c};
ZB=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.jC=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
YB=function(a){return"web"===a.deviceParams.c.toLowerCase().substr(0,3)};
g.kC=function(a){return"WEB"===a.deviceParams.c.toUpperCase()};
bC=function(a){return"WEB_KIDS"===a.deviceParams.c};
g.aC=function(a){return"WEB_UNPLUGGED"===a.deviceParams.c};
lC=function(a){return"TVHTML5_UNPLUGGED"===a.deviceParams.c};
g.mC=function(a){return g.aC(a)||"TV_UNPLUGGED_CAST"===a.deviceParams.c||lC(a)};
nC=function(a){return"WEB_REMIX"===a.deviceParams.c};
g.oC=function(a){return"WEB_EMBEDDED_PLAYER"===a.deviceParams.c};
pC=function(a){return"WEB_MUSIC_EMBEDDED_PLAYER"===a.deviceParams.c};
g.qC=function(a){return g.kC(a)&&a.ca("web_player_i_see_captions")};
g.tC=function(a){return(a.deviceHasDisplay&&g.eB&&!jk&&"3"!==a.controlsType?g.lk?a.B&&g.$d(51):!0:!1)||(a.deviceHasDisplay&&g.wB&&!jk&&"3"!==a.controlsType?g.lk?a.B&&g.$d(48):g.$d(38):!1)||(a.deviceHasDisplay&&g.rg&&!jk&&"3"!==a.controlsType?g.lk?a.B&&g.$d(37):g.$d(27):!1)||a.deviceHasDisplay&&g.rC&&!ik()&&g.$d(11)||a.deviceHasDisplay&&g.sC&&g.$d("604.4")};
uC=function(a){if(g.RB(a)&&OB)return!1;if(g.wB){if(!g.$d(47)||!g.$d(52)&&g.$d(51))return!1}else if(g.sC)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
NB=function(a){return"detailpage"===a.ea};
g.RB=function(a){return"embedded"===a.ea};
g.vC=function(a){return"leanback"===a.ea};
MB=function(a){return"adunit"===a.ea||"gvn"===a.playerStyle};
g.TB=function(a){return"profilepage"===a.ea};
g.LB=function(a){return a.B&&g.RB(a)&&!MB(a)&&!a.I};
wC=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(5===b.length)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(8===b.length)return b.splice(7,0,"s20-c"),b.join("/");if(9===b.length)return b[7]+="-s20-c",b.join("/");g.lr(new Iq("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.xC=function(a){var b=g.gC(a);!a.ca("yt_embeds_disable_new_error_lozenge_url")&&pha.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
XB=function(a){var b=g.yd(a);return(a=Number(g.xd(4,a))||null)?b+":"+a:b};
yC=function(a,b){this.id=a;this.u=b;this.captionTracks=[];this.B=this.D=this.F=null;this.C="UNKNOWN"};
zC=function(a,b,c,d){this.C=c;this.reason=d;this.B=a||0;this.u=b||0};
AC=function(a,b){return a.B===b.B&&a.u===b.u&&a.C===b.C&&a.reason===b.reason};
BC=function(a,b,c,d){return new zC(g.Lv[a]||0,g.Lv[b]||0,c,d)};
CC=function(a){var b=g.Lv.auto;return a.B===b&&a.u===b};
DC=function(a){var b=a.u||a.B;return Vb(qha,function(c){return g.Lv[c]===b})||"auto"};
EC=function(a,b){var c=g.Lv[b];return a.B<=c&&(!a.u||a.u>=c)};
FC=function(a,b,c){this.videoInfos=a;this.audioTracks=[];this.u=b||null;this.B=c||null;if(this.u)for(a=new Set,b=g.q(this.u),c=b.next();!c.done;c=b.next())if(c=c.value,c.B&&!a.has(c.B.id)){var d=new yC(c.id,c.B);a.add(c.B.id);this.audioTracks.push(d)}};
rha=function(){this.ea=this.ra=this.u=this.D=this.C=this.I=this.K=this.X=this.W=!1;this.Z=!0;this.ba=!1;this.F=0;this.ka=!1;this.da=Infinity;this.fv=!1;this.Aa=!0;this.P=this.N=!1;this.B={};this.ha=!1};
sha=function(a){if(a.X)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.ka&&b.unshift("1");a.u&&b.unshift("h");return b};
tha=function(a){var b=["o","a","A"];a.I&&(b=["m","M"].concat(b));a.C&&(b=["mac3","MAC3"].concat(b));a.D&&(b=["meac3","MEAC3"].concat(b));a.W&&(b=["so","sa"].concat(b));a.ra&&b.unshift("a");a.K&&b.unshift("ah");return b};
GC=function(a,b,c){b=void 0===b?{}:b;if(uB(a.D,vB.AV1_CODECS)&&uB(a.D,vB.HEIGHT)&&uB(a.D,vB.BITRATE))return b.isCapabilityUsable=!0,8192;try{var d=sx();if(d)return b.localPref=d}catch(f){}d=g.Q(a.experiments,"html5_av1_thresh");var e=g.Q(a.experiments,"html5_av1_thresh_lcc");e&&2>=navigator.hardwareConcurrency&&(d=e);(e=g.Q(a.experiments,"html5_av1_thresh_hcc"))&&4<navigator.hardwareConcurrency&&(d=e);b.coreCount=navigator.hardwareConcurrency;(a=g.Q(a.experiments,"html5_av1_thresh_arm"))&&Zj()&&(b.isArm=
!0,d=a);if(c){if((a=c.videoInfos.find(function(f){return Vv(f)}))&&a.C)return d=8192,b.av1Threshold=d;
c=c.videoInfos[0].video;a=Math.min(ox("1",c.fps),ox("1",30));b.perfCap=a;d=Math.min(d,a);Ov(c)&&(b.hdr="1",d*=.75)}else c=ox("1",30),b.perfCap30=c,d=Math.min(d,c),c=ox("1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d};
HC=function(a,b,c,d){this.flavor=a;this.u=b;this.C=c;this.experiments=d;this.B={};this.Zg=this.keySystemAccess=null;this.Cr=this.Dr=-1;this.Zn=null;this.D="";this.F=!!d&&g.R(d,"edge_nonprefixed_eme");this.D=d?g.Xu(d,"html5_hdcp_probing_stream_url"):""};
JC=function(a){return a.F?!1:!a.keySystemAccess&&!!IC()&&"com.microsoft.playready"===a.u};
KC=function(a){return"com.microsoft.playready"===a.u};
LC=function(a){return g.ar&&"com.microsoft.playready"===a.u&&!!navigator.requestMediaKeySystemAccess};
MC=function(a){return!a.keySystemAccess&&!!IC()&&"com.apple.fps.1_0"===a.u};
NC=function(a){return"com.youtube.fairplay"===a.u};
OC=function(a){return"fairplay"===a.flavor};
IC=function(){var a=window,b=a.MSMediaKeys;gk()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
PC=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.eB&&!g.ak())return Qn("45");if(g.ar||g.ye)return g.R(a,"edge_nonprefixed_eme");if(g.wB)return Qn("47");if(g.sC){var b=g.Q(a,"html5_safari_desktop_eme_min_version");if(b)return Qn(b)}return!g.R(a,"html5_disable_nonprefixed_eme_for_other")};
uha=function(a,b,c){var d=ck(),e=d?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&(e.unshift("com.youtube.widevine.l3"),d&&c&&e.unshift("com.youtube.widevine.forcehdcp"));return d?e:a?[].concat(g.la(e),g.la(QC.playready)):[].concat(g.la(QC.playready),g.la(e))};
RC=function(a,b,c){var d={};if(Kz(c)){for(var e in c.u)a=c.u[e],d[a.info.Fb]=[a.info];return d}for(var f in c.u){e=c.u[f];var h=wu(e.info);""==e.info.Fb||("304"==h||"266"==h)&&a.Z||a.ea&&"h"==e.info.Fb&&e.info.video&&1080<e.info.video.yc||a.ba&&e.info.video&&4320<=e.info.video.yc&&32<e.info.video.fps||!fha(b,e.info)||"(h"==e.info.Fb&&!b.B||(h="MAC3"==e.info.Fb||"MEAC3"==e.info.Fb||"M"==e.info.Fb,c.isLive&&h&&!a.N||(d[e.info.Fb]=d[e.info.Fb]||[],d[e.info.Fb].push(e.info)))}c=g.q(Object.keys(d));for(f=
c.next();!f.done;f=c.next())f=f.value,d[f]&&d[f][0].isVideo()&&(d[f]=vha(a,d[f]),d[f]=wha(b,d[f]));return g.Kb(d,function(l){return!!l.length})};
xha=function(a,b,c){var d={};g.Ib(b,function(e,f){var h=e.filter(function(l){var m;if(m=l.zd&&c&&l.zd[c.flavor]&&c.B[l.mimeType])(l="("!=l.Fb&&"(h"!=l.Fb)||(l=(uB(a,vB.CRYPTOBLOCKFORMAT)||a.X)&&!a.P),m=l;return m?!0:!1});
h.length&&(d[f]=h)});
return d};
yha=function(a,b,c,d,e){function f(t){return!!h[t]}
e=void 0===e?!1:e;var h=RC(a,b,c);Jz(c)&&(h=xha(b,h,d));if(Kz(c))return a=g.jb(Object.values(h),function(t){return!!t.length&&!!t[0].audio}),b=g.jb(Object.values(h),function(t){return!!t.length&&!!t[0].video}),a&&b||Br(),Cr(new FC(b,a));
b=tha(a);b=g.jb(b,f);d=h[b];if(!b)return Br();h["9"]&&h.h&&c.Bg&&!a.P&&delete h["9"];var l=h["9h"]?"9h":"9",m=[];if(a.ha&&!a.u)m=Ega(c)?h["1"]||h["9h"]?[].concat(h["1"],h["9h"]).filter(function(t){return t}):[].concat(h["9"],h.h).filter(function(t){return t}):[].concat(h["1"],h["9"],h.h).filter(function(t){return t});
else if(0<a.F&&h[l]&&h["1"]){if(e)c=h["1"],e=h[l];else{var n=Math.min(a.F,SC(h["1"])),p=SC(h[l]),r=function(t){return t<=n||t>p};
c=h["1"].filter(function(t){return r(t.Ka().yc)});
c.length&&(a.B.highestAv1Resolution=c[c.length-1].Ka().yc);e=h[l].filter(function(t){return!r(t.Ka().yc)});
e.length&&(a.B.higestVp9Resolution=e[e.length-1].Ka().yc)}m=[].concat(c,e).filter(function(t){return t})}if(m.length&&!a.u)return TC(m,d),Cr(new FC(m,d,UC(h,"",b)));
c=sha(a);c=g.jb(c,f);if(!c)return Br();a.Aa&&"1"==c&&h[l]&&(a=SC(h["1"]),SC(h[l])>a&&(c=l));"9"==c&&h.h&&(a=SC(h["9"]),SC(h.h)>1.5*a&&(c="h"));a=h[c];if(!a.length)return Br();TC(a,d);return Cr(new FC(a,d,UC(h,c,b)))};
UC=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)?(TC(d,e),new FC(d,e)):null};
TC=function(a,b){g.Cb(a,function(c,d){return d.Ka().height*d.Ka().width-c.Ka().height*c.Ka().width||d.u-c.u});
g.Cb(b,function(c,d){return d.u-c.u})};
wha=function(a,b){var c=g.kh(b,function(d,e){return 32<e.Ka().fps?Math.min(d,e.Ka().width):d},Infinity);
Infinity>c&&(b=a.I&&(a.W||uB(a,vB.FRAMERATE))?g.Ke(b,function(d){return 32<d.Ka().fps||d.Ka().width<c}):g.Ke(b,function(d){return!(32<d.Ka().fps)}));
dk()&&(b=g.Ke(b,function(d){return"299"!=wu(d)}));
return b};
vha=function(a,b){return b=g.Ke(b,function(c){return c.Ka().yc<=a.da})};
SC=function(a){return g.kh(a,function(b,c){return Math.max(b,c.Ka().yc)},0)};
VC=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
zha=function(a,b,c,d){this.ha=a;this.u=b;this.K=c;this.N=d;this.F=WC;this.B=this.X=null;this.Z=-1;this.D=this.I=null;this.C=[];this.da={};this.W=0;this.ba=this.P=!1;this.ea=0;this.ra=new Set;this.Aa=!1;this.ka=null};
Cha=function(a,b,c){XC(a,b);Aha(a,c);a.X=a.I;Bha(a);a.B=a.D;return YC(a)};
Dha=function(a,b){if(AC(a.F,b))return null;if("m"==b.reason&&b.isLocked())return XC(a,b),a.W=a.C.length-1,ZC(a),$C(a),a.ba=a.ba||a.B!=a.D,a.B=a.D,new VC(a.I,a.B,b.reason);"r"==b.reason&&(a.Z=-1);XC(a,b);$C(a);if("r"==b.reason&&a.D==a.B)return new VC(a.I,a.D,b.reason);if(a.B&&a.D&&aD(a,a.B.info)<aD(a,a.D.info)){var c=a.F.reason;a.P=a.P||"r"==c||"u"==c||"v"==c}return null};
Eha=function(a,b){if(b.info.video){if(a.B!=b)return a.B=b,YC(a)}else a.X=b;return null};
bD=function(a,b){b.W=(0,g.N)();a.Z=-1;XC(a,a.F);a.P=a.u.BC};
cD=function(a){for(var b=(0,g.N)()-6E4,c=g.q(a.N.videoInfos),d=c.next();!d.done;d=c.next())if(a.K.u[d.value.id].W>b)return!0;return!1};
Fha=function(a){return new VC(a.X,a.B,a.F.reason)};
dD=function(a){return a.F.isLocked()};
nla=function(a){return 0<a.C.length&&0==a.W};
YC=function(a){a.Z=(0,g.N)();a.P=!1;return new VC(a.X,a.B,a.F.reason)};
eD=function(a){var b=!dD(a)&&-1<a.Z&&8E3>(0,g.N)()-a.Z,c=a.D&&3*aD(a,a.D.info)<nz(a.ha);if(!b||c)ZC(a),$C(a),a.ba=a.ba||a.D!=a.B};
fD=function(a,b){for(var c={},d=g.q(b),e=d.next();!e.done;e=d.next())if((e=e.value)&&e.video){var f=e.video.yc,h=c[f],l=h&&Vv(h)&&h.video.yc>a.u.Qa,m=f<=a.u.Qa?Vv(e):Tv(e);if(!h||l||m)c[f]=e}return c};
XC=function(a,b){a.F=b;var c=a.N.videoInfos;if(!dD(a)){var d=(0,g.N)()-6E4;c=g.Ke(c,function(p){if(p.u>this.u.N)return!1;p=this.K.u[p.id];var r=p.info.Fb;return this.u.zs&&this.ra.has(r)||p.W>d?!1:4<p.B.B||4<p.P||p.I?!1:!0},a);
if(cD(a)){var e=g.Ke(c,function(p){p=wu(p);return"140"===p||"134"===p||"243"===p});
e.length&&(c=e)}}c.length||(c=a.N.videoInfos);e=g.Ke(c,b.D,b);if(a.u.Ls||a.u.vz){var f="m"===b.reason||"s"===b.reason;a.u.LF&&gD&&g.sC&&(!f||1080>b.u)&&(e=e.filter(function(p){return!!p&&!!p.video&&!!p.C}));
if(!XA()&&0<e.length){var h=(f=e[0])&&f.video&&f.video.yc;if(h){f=e.filter(function(p){return!!p&&!!p.video&&p.video.yc==h});
var l=fD(a,f)[h].Fb;e=e.filter(function(p){return!!p&&!!p.video&&p.Fb==l})}}var m=fD(a,e);
e=e.filter(function(p){return!!p&&!!p.video&&p.Fb==m[p.video.yc].Fb})}e.length||(e=[c[0]]);
e.sort((0,g.z)(function(p,r){return aD(this,p)-aD(this,r)},a));
for(c=1;c<e.length;c++){f=e[c-1];var n=e[c];f.video.width>n.video.width?(g.qb(e,c),c--):aD(a,f)*a.u.u>aD(a,n)&&(g.qb(e,c-1),c--)}c=e[e.length-1];a.Aa=!!a.B&&!!a.B.info&&a.B.info.Fb!=c.Fb;a.C=e;pfa(a.u,c)};
Aha=function(a,b){if(b)a.I=a.K.u[b];else{var c=g.jb(a.N.u,function(d){return!!d.B&&d.B.isDefault});
c=c||a.N.u[0];a.I=a.K.u[c.id]}ZC(a)};
hD=function(a,b){for(var c=0;c+1<a.C.length&&"tiny"==a.C[c].Ka().quality;)c++;var d=nz(a.ha)/a.u.u;return aD(a,b.info)+aD(a,a.C[c])>d};
ZC=function(a){if(!a.I||!a.u.C&&!a.u.Lj)if(!a.I||!a.I.info.B)if(a.I=a.K.u[a.N.u[0].id],1<a.N.u.length){var b=!1;if(a.u.Dk){if(b=!0,a.u.Dz){var c=g.ib(a.N.u,function(d){return"250"===wu(d)});
0<=c&&(a.I=a.K.u[a.N.u[c].id],b=hD(a,a.I))}}else b=a.F.isLocked()?240>a.F.u:hD(a,a.I);b&&(a.I=a.K.u[g.gb(a.N.u).id])}};
$C=function(a){a.u.Ji&&(a.ka=a.ka||new g.H(function(){a.u.Ji&&a.B&&!cD(a)&&1===Math.floor(10*Math.random())?bD(a,a.B):a.ka.start()},6E4),a.ka.xb());
if(!a.D||!a.u.C&&!a.u.Lj)if(dD(a))a.D=360>=a.F.u?a.K.u[a.C[0].id]:a.K.u[g.gb(a.C).id];else{for(var b=Math.min(a.W,a.C.length-1),c=nz(a.ha),d=aD(a,a.I.info),e=c/a.u.B-d;0<b&&!(aD(a,a.C[b])<=e);b--);for(c=c/a.u.u-d;b<a.C.length-1&&!(aD(a,a.C[b+1])>=c);b++);a.D=a.K.u[a.C[b].id];a.W=b}};
Bha=function(a){var b=a.u.B,c=nz(a.ha)/b-aD(a,a.I.info);b=g.kb(a.C,function(d){return aD(this,d)<c},a);
0>b&&(b=0);a.W=b;a.D=a.K.u[a.C[b].id]};
iD=function(a,b){a.u.Qa=GC(b,{},a.N);XC(a,a.F);eD(a);a.P=a.D!=a.B};
aD=function(a,b){if(!a.da[b.id]){var c=a.K.u[b.id].index.BB(a.ea,15);c=b.D&&a.B&&a.B.index.Dc()?c||b.D:c||b.u;a.da[b.id]=c}c=a.da[b.id];a.u.Pb&&b.video&&b.video.yc>a.u.Pb&&(c*=1.5);return c};
ola=function(a,b){var c=Vb(a.K.u,function(d){return wu(d.info)==b});
if(!c)throw Error("Itag "+b+" from server not known.");return c};
pla=function(a){var b=[];if("m"==a.F.reason||"s"==a.F.reason)return b;var c=!1;if(Gga(a.K)){for(var d=Math.max(0,a.W-2);d<a.W&&d<a.C.length;d++){var e=wu(a.C[d]);Nv(a.C[d].Ka())||(c=!0);b.push(e)}b.reverse();if(!c&&a.u.yz)for(d=Math.max(0,a.W-3);0<=d&&!c;d--)Nv(a.C[d].Ka())||(c=!0,b.push(wu(a.C[d])))}return b};
qla=function(){this.Yk=0;this.F=this.D=this.B=this.C=NaN;this.u="";this.bandwidthEstimate=NaN};
jD=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.B=this.u=a-1};
kD=function(a){return a.data[a.u]||0};
rla=function(a){this.D=new jD(50);this.u=null;this.C=this.B=0;this.F=a};
lD=function(a,b,c,d){this.u=a;this.I=b;this.F=d;this.D=c;this.C=0};
mD=function(a,b,c,d){g.P.call(this);this.u=a;this.da=b;this.ea=c;this.Z=d;this.ba=NaN;this.D=this.W=this.I=null;this.C=this.N=this.P=this.K=NaN;this.F=!1;this.X=NaN};
sla=function(a,b,c,d){return a.Aa&&a.ka&&3===rz(a)?new mD(a,b,c,d):null};
nD=function(a,b){if(a.u.fA){var c=b.info.u;if(0>=c)a.X=NaN;else{var d=hz(a.da),e=b.index.u;c=Math.max(1,d/c);a.X=Math.round(1E3*Math.max(((c-1)*e+a.u.P)/c,e-a.u.ac))}}};
tla=function(a,b){var c=g.A()/1E3,d=c-a.K,e=c-a.P,f=e>=a.u.Mj,h=!1;if(f){var l=0;!isNaN(b)&&b>a.N&&(l=b-a.N,a.N=b);l/e<a.u.eB&&(h=!0);a.P=c}c=d>=a.u.ac&&!a.F;if(!f&&!c&&oD(a,b))return NaN;c&&(a.F=!0);a:{d=h;c=g.A()/1E3-(a.ea.u()||0)-a.W.C-a.u.P;f=a.D.startTime;c=f+c;if(d){if(isNaN(b)){pD(a,NaN,"n",b);f=NaN;break a}d=b-a.u.Ub;d<c&&(c=d)}else a.F&&(d=c+a.u.P-a.ba+a.u.VB,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.u.Ub))),c=d);f=c=Math.max(c,f)}a.C=f;if(isNaN(a.C))return qD(a),NaN;if(!h&&oD(a,b))return rD(a,
b),NaN;if(a.C<=a.D.startTime)return pD(a,NaN,"y",b),qD(a),NaN;if(!a.Z(a.C,!1))return!rD(a,b)&&h&&(pD(a,NaN,"t",b),qD(a)),NaN;h=a.C;pD(a,h,"s",b);qD(a);return h};
rD=function(a,b){return a.Z(a.C,!0)?!1:(pD(a,NaN,"ns",b),qD(a),!0)};
oD=function(a,b){return isNaN(b)?!0:isNaN(a.C)?!1:b<a.C+(a.F?a.u.Ub:a.u.TA)};
qD=function(a){a.I=null;a.W=null;a.D=null;a.K=NaN;a.P=NaN;a.N=NaN;a.C=NaN;a.F=!1};
pD=function(a,b,c,d){var e=wx(a.I);e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.C).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.K).toFixed(0);e.ssr_n=g.A().toFixed(0);e.ssr_f=(1E3*a.W.C).toFixed(0);e.ssr_fa=a.F?"1":"0";e.ssr_o=(1E3*a.ea.u()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.D.u.index;uz(b,a.D.B,!0)&&(e.ssr_ist=(1E3*b.Ce(a.D.B)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.D.B)).toFixed(0));e=g.UA(e);a.V("ctmp","ssr",e,!1)};
g.tD=function(a,b,c){this.start=a;this.end=b;this.active=!0;this.color="";this.D=ula++;a=c||{};this.id=a.id||"";this.priority=a.priority||7;this.visible=a.visible||!1;this.style=a.style||sD.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.jh(d.thumbnails,function(e){return g.fv(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
uD=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
vla=function(a,b){switch(a.style){case sD.CHAPTER_MARKER:return b?8:5;case sD.AD_MARKER:return 6;case sD.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.vD=function(a,b){return a.start-b.start||a.priority-b.priority||a.D-b.D};
g.wD=function(a){return"crn_"+a};
g.xD=function(a){return"crx_"+a};
wla=function(){this.B=g.vD;this.u=[]};
xla=function(a,b,c){var d=[];for(b=yD(a,b);b<a.u.length;++b){var e=a.u[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
zD=function(a,b){for(var c=[],d=g.q(a.u),e=d.next();!e.done&&!(e=e.value,e.contains(b)&&c.push(e),e.start>b);e=d.next());return c};
yla=function(a){return a.u.slice(yD(a,0x7ffffffffffff),a.u.length)};
yD=function(a,b){var c=Bb(a.u,function(d){return b-d.start||1});
return 0>c?-(c+1):c};
AD=function(a,b){for(var c=NaN,d=g.q(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,e.contains(b)&&(isNaN(c)||e.end<c)&&(c=e.end),e.start>b&&(isNaN(c)||e.start<c)){c=e.start;break}return c};
BD=function(a,b){if(1<b.length&&b.length>a.u.length)a.u=a.u.concat(b),a.u.sort(a.B);else for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,!a.u.length||0<a.B(d,a.u[a.u.length-1])?a.u.push(d):g.Fb(a.u,d,a.B)};
CD=function(a,b,c,d){g.B.call(this);this.X=a;this.Z=b;this.N=c;this.P=d;this.D=NaN;this.I=this.K=this.started=!1;this.C=[];this.W=new g.H(this.B,250,this);g.C(this,this.W);this.F=new g.H(this.B,0,this);g.C(this,this.F);this.u=new wla};
DD=function(a,b){if(!a.la()){for(var c=g.q(b),d=c.next();!d.done;d=c.next())if(d=d.value){var e=a.C.indexOf(d);0<=e&&a.C.splice(e,1);var f=a.u;e=f.u;d=g.Ab(e,d,f.B);0<=d&&g.qb(e,d)}a.B()}};
ED=function(a){return a.la()?[]:a.u.u};
FD=function(a,b){var c=ED(a).filter(function(d){return d.namespace===b});
DD(a,c);return c};
GD=function(a,b){var c=[];if(!b.length)return c;for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1===a.C.indexOf(e)&&(a.C.push(e),c.push([1,e]))}return c};
HD=function(a,b){var c=[];if(!b.length)return c;b.sort(g.vD);for(var d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,a.C.splice(a.C.indexOf(e),1),c.push([2,e]);return c};
Bla=function(a){if(a.started&&!a.la()){a.F.stop();var b=a.N();g.T(b,32)&&a.W.start();for(var c=zla(a),d=g.T(b,2),e=[],f=[],h=g.q(a.C),l=h.next();!l.done;l=h.next())l=l.value,l.active&&(d?0x8000000000000>l.end:!l.contains(c))&&f.push(l);e=e.concat(HD(a,f));h=f=null;d?(b=zD(a.u,0x7ffffffffffff),f=b.filter(function(m){return 0x8000000000000>m.end}),h=yla(a.u)):b=a.D<=c&&ID(b)?xla(a.u,a.D,c):zD(a.u,c);
e=e.concat(GD(a,b));f&&(e=e.concat(HD(a,f)));h&&(e=e.concat(GD(a,h)));a.D=c;Ala(a,e)}};
Ala=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d[1];1===d[0]?a.P(g.wD(e.namespace),e):a.P(g.xD(e.namespace),e)}};
zla=function(a){return g.T(a.N(),2)?0x8000000000000:1E3*a.X()};
Cla=function(a){a=void 0===a?{}:a;var b=a.Pe,c=a.wq,d=a.Ob,e=a.Pm;this.aj=a.aj;this.Pe=b;this.wq=c;this.Ob=d;this.Pm=e};
JD=function(a,b){if(0>b)return!0;var c=a.Ob();return b<c||b===c&&!a.aj||b===c&&(c=a.Pm())&&b===c.eb?!0:!1};
Dla=function(a,b,c){if(!JD(a,b))return 0;if(!a.Pe||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.Ob();return b<c||b===c&&(a=a.Pm())&&b===a.eb&&!a.pending?2:1};
aga=function(a,b,c,d){if(JD(a,b))return d;b=0;a.Pe&&(b=.2);return c+1E3*(a.wq+b)};
cga=function(a,b,c,d,e){b=Dla(a,b,e);if(2===b)return d;c=b?d:c+1E3*a.wq;a.Pe&&(c+=1E3*a.wq);return c};
KD=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.isBackground?!1:d.isBackground;var e=void 0===d.Cn?!1:d.Cn,f=void 0===d.Fs?!1:d.Fs;d=void 0===d.videoDuration?0:d.videoDuration;this.videoId=a;this.status=b;this.isBackground=c;this.Cn=e;this.Fs=f;this.videoDuration=d};
ND=function(a,b,c,d,e,f,h,l){l=void 0===l?!1:l;g.P.call(this);var m=this;this.ba=a;this.u=b;this.F=c;this.za=new PA;this.yb=h||null;this.X=new jz(a,b);this.K=new zha(this.X,b,this.F,d);a=Cha(this.K,e,f&&f.id);this.D=new ny(this.u,a.audio,(0,g.z)(this.nA,this));this.B=new ny(this.u,a.video,(0,g.z)(this.nA,this));LD(this,this.D);LD(this,this.B);this.B.C.ba=this.D.C;this.C=null;this.Lb={updateend:this.IP,error:this.KM};this.ra=new g.H(this.sh,0,this);g.C(this,this.ra);this.xc=new g.H(this.sh,1E3,this);
g.C(this,this.xc);this.wd=new g.H(this.sh,void 0,this);g.C(this,this.wd);this.hd=new g.H(this.sh,1E4,this);g.C(this,this.hd);this.W=this.I=NaN;this.Ga=this.ac=0;this.Aa=this.Pb=this.ha=!1;this.Qa="";this.ob=new az(5);this.Ja={};this.Rb=NaN;(this.P=sla(this.u,this.ba,this.ob,function(n,p){return MD(m,n,p)}))&&this.P.subscribe("ctmp",this.gd,this);
this.N=new Zz(this.F,this.B,this.D,this.u);g.C(this,this.N);this.Z=new QA(this.F,this.u,this.B,this.N);g.C(this,this.Z);this.Z.subscribe("ctmp",this.gd,this);Ela(this,this.N);this.td=NaN;this.Lc=null;this.ea=NaN;this.ud=!1;this.Ub=0;this.da=!1;this.Za=0;this.ka=l?1:0};
Fla=function(a){var b=a.B.u.index;a.Lc=new Cla({aj:a.u.aj,Pe:a.u.D.Pe,wq:b.u,Ob:function(){return b.Ob()},
Pm:function(){return b.Pm()}})};
OD=function(a,b){b=b||a.B&&a.B.B&&a.B.B.startTime||a.I;var c=a.B;var d=a.K;var e=d.D&&d.D.index.eh(b)||0;d.ea!=e&&(d.da={},d.ea=e,XC(d,d.F));eD(d);d.D&&!d.D.index.Dc()&&(d.ea=-1);d=d.D;c.u!=d&&(c.u=d);c=a.D;d=a.K.I;c.u!=d&&(c.u=d)};
PD=function(a,b){a.Pb=b;a.da||(a.ha=!0)};
QD=function(a){a.C&&a.C.u&&a.C.B&&($r(a.C.u,a.Lb,a),$r(a.C.B,a.Lb,a));oy(a.D,null);oy(a.B,null);a.C=null};
SD=function(a,b){b=void 0===b?!1:b;QD(a);b?a.da=!0:a.u.Oh?PD(a,a.ud):PD(a,!1);RD(a)};
UD=function(a){a.C&&qB(a.C)&&(SD(a),a.u.Uz&&TD(a,!0,"fmt.unplayable",{unexpected:1}))};
WD=function(a,b,c){if(2===a.ka||a.ha&&(!iz(a.ba)||a.Pb)||a.u.Xg&&!iz(a.ba))return!1;if(a.F.isManifestless){if(0<b.D.length&&b.B&&-1==b.B.B||b.D.length>=a.u.WG&&!a.u.Rb||!a.u.zz&&0<b.D.length&&!a.u.D.Pe)return!1;if(b.N)return!a.F.isLive||!isNaN(a.Rb)}if($y(b))return!1;if(!(b.B||a.F.isManifestless&&a.u.Rb&&b.N)){if(!b.u.he())return!1;Ay(b,a.I)}var d=b.D.length+c.D.length;(Uy(b)||Uy(c)||a.F.isLive&&(!a.u.Rb||!b.D.length))&&--d;if(d+1>=a.u.qz)return!1;d=b.B;if(!d)return!0;if(!Bv(d.u.B))return!1;4==d.type&&
d.u.he()&&(b.B=g.gb(d.u.hu(d)),d=b.B);if(!d.F&&!d.u.vj(d))return!1;var e=a.F.rf||a.F.I;if(a.F.isManifestless&&e){e=b.u.index.Ob();var f=c.u.index.Ob();e=Math.min(e,f);if(0<b.u.index.I&&0<e&&d.B>=e)return b.X=e,c.X=e,!1}if(d.u.info.audio&&4==d.type)return!1;if(Wy(b)&&!a.u.W)return!0;if(d.F||Cy(b)&&Cy(b)+Cy(c)>a.u.Ga)return!1;e=!b.F&&!c.F;f=b==a.B&&a.da;if(!(c=!!(c.B&&!c.B.F&&c.B.I<d.I)&&(!a.F.isManifestless||c.B&&c.B.I&&d.I)&&e&&!f||a.u.ha&&!b.F&&c.F)&&(c=qu(d))){d=d.I;a:if(c=SA(a.Z),a.da&&c)a=c.startSecs+
c.durationSecs;else{c=VD(a,b,!0);!dD(a.K)&&0<a.u.X&&(e=((0,g.N)()-a.ac)/1E3,c=Math.min(c,a.u.X+a.u.wd*e));c=a.I+c;if(a.u.Ph&&(e=Gla(a)+a.u.Ph,e<c)){a.gd("mrl","ori."+c+";mod."+e,!0);a.u.nG&&(a.ac=(0,g.N)());a=e;break a}a=c}c=d>a}return c?!1:(b=b.K)&&b.isLocked()?!1:!0};
XD=function(a,b,c){if((!a.C||nB(a.C)&&!a.u.W)&&!a.N.C&&a.K.P){var d=a.I;a=a.X;c=lz(a,b.u.info.u,c.u.info.u,0);var e=fz(a.B)+c/hz(a.B);Gy(b,d+Math.max(e,e+a.u.Ef-c/b.u.info.u))}};
ZD=function(a,b,c){if(WD(a,b,c)){var d=Hla(a,b,c);if(d)if(a.u.aA&&a.F.isManifestless&&!b.N&&0>d.u[0].B)a.gd("invalidsq",nu(d.u[0]));else{if(a.Na){var e=d.u[0].u.info.id,f=d.u[0].B,h=d.u[0].K;0>f&&0<=b.P?f=b.P:0<=b.P&&(b.P=-1);(e=Ila(a.Na.u,h,f,e))&&f>c.ka?(0>d.u[0].B&&0<f&&(d.K="sq/"+f),d.F=e):b.ka=f}a.u.Er&&-1!=d.u[0].B&&d.u[0].B<a.F.Rd&&(d=b.u.Pl(a.F.Rd,!1));a=YD(a,d);b.D.push(a);b.B=g.gb(a.info.u)}}};
Hla=function(a,b,c){if(b.N){if(a.F.isLive){var d=a.F.Rd&&a.F.I?b.u.Pl(a.F.Rd,!1):b.u.ej(Infinity);d.We=a.Rb}else d=b.u.Pl(0,!1);a.P?0==d.We&&(d.D=a.P.X):d.D=a.td;return d}d=b.B;if(!d.u.he())return d.u.Re()?(a=lz(a.X,b.u.info.u,c.u.info.u,0),a=d.u.Ol(d,a)):a=d.ck(),a;a.u.Lc||!a.K.P||a.u.W||a.F.isManifestless||(XD(a,b,c),b.B||Ay(b,a.I));if(!b.B)return null;d=b.B;var e=d.I-a.I,f=!d.range||0==d.ib&&0==d.C?0:d.range.length-(d.C+d.ib),h=d.u;Jla(a,b,e)&&0==f&&(a.F.isManifestless?h=b.u:(h=d.startTime+$D,
d.ib&&(h+=d.duration),Ay(b,h),d=b.B,h=d.u));h.Re()?(c=lz(a.X,h.info.u,c.u.info.u,e,nla(a.K)&&a.Aa),d=Kla(d,c,Vy(b))):(0>d.B&&(c=vu(d),c.pr=""+b.D.length,a.N.C&&(c.sk="1"),a.gd("nosq",d.N+";"+g.UA(c))),d=h.ck(d));a.da&&d.u.forEach(function(l){l.type=6});
return d};
Jla=function(a,b,c){if(!Vy(b)||!b.u.he())return!1;var d=Math.min(15,.5*VD(a,b,!0));return Wy(b)||c<=d||a.K.P};
Kla=function(a,b,c){b=a.u.Ol(a,b);if(b.range&&1<b.u.length)if(c||b.B.B||b.u[0].u!=a.u)b=a.u.Ol(a,b.u[0].ib);else{c=b.u[b.u.length-1];var d=c.ib/b.range.length;!c.D&&.4>d&&(b=a.u.Ol(a,b.range.length-c.ib))}return b};
Lla=function(a,b){var c=Hv(b),d=a.X,e=Math.min(2.5,fz(d.B));d=mz(d);var f=pu(b.u[0]),h=nv(b.B.u),l=a.u.Xg,m;a.Lc?m={sg:f,mi:h,Dl:l,ri:a.Lc,eb:b.u[0].B,We:b.We}:m={sg:f,mi:h,Dl:l};return new Gw(a.ba,c,c-e*d,m)};
YD=function(a,b){qu(b.u[b.u.length-1])&&aE(a,Eha(a.K,b.u[0].u));var c=Lla(a,b);a.u.HG&&(c.F=[]);var d={Yk:Math.max(0,b.u[0].K-a.I)};a.u.Qg&&Fv(b)&&b.u[0].u.info.video&&(d.VE=pla(a.K));a.da&&(d.rq=!0);return new vx(a.u,b,c,a.Ja,function(e){a:{var f=e.info.u[0].u,h=f.info.video?a.B:a.D;if(!(2<=e.state)||4<=e.state||!e.u.Gi()||!a.u.td||e.K||!(!a.C||a.ha||Dy(h,a.I)>a.u.td)){var l=a.u.Rh;if(!(!l||4<=e.state||e.K<l||Av(e.info.B,a.u,a.Ja))){l=a.Ja;var m=mv(zv(e.info.B));l=yv(l,m);l.u||l.B||l.started||(l=
Iv(e.info,!0,a.u.Qh))&&YD(a,l)}if(!a.la()&&2<=e.state){l=a.za;var n=e.info.u[0].u;m=!l.D&&n.info.video;n=!l.u&&n.info.audio;4==e.state?m?l.Ne("vrr"):n&&l.Ne("arr"):5==e.state?m?(l.D=e.nd(),up(4)):n&&(l.u=e.nd()):3==e.state&&m&&up(4);4<=e.state&&(a.u.za&&(l=Hw(e.timing),m=e.timing,a.gd("rqs",g.UA({rn:e.P.toString(),rt:l.rt,pt:l.pt,stall:l.stall,elt:l.elbowTime,elb:l.elbowBytes,strm:""+e.u.Gi(),d:m.F?m.F.join(""):""}))),e.Aa&&a.gd("sbwe3","1",!0));if(4==e.state)Ty(h,e),Fv(e.info)&&bE(a,h,f,!0),a.sh();
else if(4<=e.state&&5==e.info.u[0].type)5==e.state&&(f=(e.info.u[0].u.info.video?a.B:a.D).D[0]||null)&&f.K&&Gx(f,!0),e.dispose();else{if(!e.isFailed()&&e.N&&2<=e.state&&4!=e.state)if(f=e.u?e.u.Sd("X-Response-Itag"):null){f=ola(a.K,f);h=e.info.range.length-f.Ur();f.F=!0;e.info.u[0].u.F=!1;l=f.sl(h)[0];e.info=l;if(e.C){h=e.C;l=l.u;h.B=l;m=l[0].range;n=Gu(h.u[0].u);Gu(g.gb(h.u).u);for(var p=0;p<h.u.length;p++){h.u[p].info=l[p];var r=l[p].range;h.u[p].u=new zu([new Uint8Array(n.buffer,r.start-m.start,
r.length)])}}e.N=!1;h=a.B;h.u!=f&&(h.u=f);h=a.B;h.B&&(h.B.u=f);a.V("constraint",f.info.Ka().quality);(h=e.u?e.u.Sd("X-Segment-Lmt"):null)&&f instanceof bw&&(isNaN(f.lastModified)||f.lastModified==h||Ty(a.B,e))}else e.N=!1;if(5==e.state)cE(a,e),1===a.ka&&(f=SA(a.Z),a.Na&&f&&("continue"===f.event||"start"===f.event)?(f=a.Na.u,f.D.isActive()||f.D.start(),a.ka=2,a.gd("ssjoinad","seq."+e.info.u[0].B)):a.ka=4);else if(a.u.da&&Hx(e)&&!(4<=e.state)&&!cE(a,e)&&!e.isFailed()){e=void 0;break a}e.isFailed()&&
(f=e.info.u[0].u,h=e.F,Ex(e)?(l=(f.info.video&&1<f.B.B||410==e.I||500==e.I||503==e.I)&&!cD(a.K),m=wx(e),n=f.info.video?a.B:a.D,l&&(m.stun="1"),TD(a,!1,h,m),a.la()||(l&&bD(a.K,f),a.u.Ki&&1==e.info.u.length&&0<e.info.u[0].C&&f!=n.u&&a.Aa?a.V("reattachrequired"):(Ty(n,e),a.sh()))):nv(f.B.u)?(a.V("localplaybackfailed"),f={err:e.F,rn:e.P.toString()},(h=e.u.Ml()||"")&&a.gd("dldbrerr",g.rf(h)),TD(a,!1,"net.closed",f)):(TD(a,!1,h,wx(e)),e.info.sg()?(f.I=h,a.sh()):TD(a,!0,"net.retryexhausted",{err:h,rn:e.P.toString()})));
a.sh();a.u.Za&&4<=e.state&&Ex(e)&&Av(e.info.B,a.u,a.Ja)&&(f=a.Ja,h=mv(e.info.B.u),f=yv(f,h),f.D+a.u.Za*xv(f)>(0,g.N)()||(e=Iv(e.info,!1,a.u.Qh))&&YD(a,e))}}}e=void 0}return e},d)};
aE=function(a,b){b&&a.V("videoformatchange",b)};
cE=function(a,b){var c=b.info.u[0].u,d=c.info.video?a.B:a.D;Mla(a,d,b);b.info.sg()&&!Ev(b.info)&&(g.Gb(Ix(b),function(e){Tx(d.C,e)}),a.V("metadata",c));
ry(d);return!!Px(d.C)};
Mla=function(a,b,c){if(a.F.isManifestless&&b){b.N&&(c.la(),4<=c.state||c.u.Gi()||Hx(c),b.N=!1);c.X&&a.ob.C(1,c.X);c.u&&(c.Z=parseInt(c.u.Sd("X-Head-Seqnum"),10));b=c.Z;c.u&&(c.ba=parseInt(c.u.Sd("X-Head-Time-Millis"),10));c=c.ba;a=a.F;for(var d in a.u){var e=a.u[d].index,f=c;e.B&&(b&&(e.I=Math.max(e.I,b)),f&&(e.D=Math.max(e.D,f)))}}};
gE=function(a){var b=a.C.u,c=a.C.B;a.D.u.C&&dE(a,b,a.D.u.C);if(Nla(a)){if(a.u.Qq){if(!b.ql()){var d=Px(a.D.C);d&&eE(a,b,d)}c.ql()||(b=Px(a.B.C))&&eE(a,c,b)}a.Ga||(a.Ga=(0,g.N)())}else{if(a.Ga){d=(0,g.N)()-a.Ga;var e=Dy(a.D,a.I),f=Dy(a.B,a.I);a.gd("appendpause","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.Ga=0}a.P&&(d=a.P.B(a.D,ky(a.C.B.Ue())))&&a.V("seekplayerrequired",d,!0);d=!1;fE(a,a.B,c)&&(d=!0,e=a.za,e.C||(e.C=g.A(),e.Ne("vda"),MA("vda","video_to_ad"),e.B&&up(4)));
if(a.C&&!qB(a.C)&&(fE(a,a.D,b)&&(d=a.za,d.B||(d.B=g.A(),d.Ne("ada"),MA("ada","video_to_ad"),d.C&&up(4)),d=!0),!a.la()&&a.C)){!a.u.ea&&zy(a.B)&&zy(a.D)&&nB(a.C)&&!a.C.sf()&&(e=py(a.D).u,e==a.F.u[e.info.id]&&(e=a.C,nB(e)&&e.C.endOfStream(),ez(a.ba)));e=a.u.rz;f=a.u.vC;d||!(0<e||f)||!nB(a.C)||zy(a.B)||zy(a.D)||(b.Cq(a.I,f,e),c.Cq(a.I,f,e));if(c=d)c=a.C,c=!(c.u?c.u.supports(0):rB());c&&a.ra.xb()}}};
Nla=function(a){if($y(a.B)||1===a.ka||2===a.ka)return!0;if(a.u.nb)return!1;var b;if(b=a.N.C){b=a.X;var c=a.B,d=a.D;if(0==c.D.length&&0==d.D.length)b=!0;else{var e=0,f=Zx(c.C).concat(Zx(d.C));f=g.q(f);for(var h=f.next();!h.done;h=f.next())e+=h.value.ib;c=c.u.info.u+d.u.info.u;e/=c;b=10<e?!0:10>c*(10-e)/nz(b)}(b=!b)||(b=a.B,b=0<b.D.length&&1==b.C.B.length&&Px(b.C).info.P<b.ha)}if(b)return!0;if(!a.Aa||!a.u.Na||10>a.I||360<a.B.u.info.Ka().yc)return!1;b=Xy(a.B,a.I,a.u.Na)||Xy(a.D,a.I,a.u.Na);return(0<
a.B.D.length||0<a.D.D.length||WD(a,a.B,a.D)||WD(a,a.D,a.B))&&b};
fE=function(a,b,c){if(c.sf())return!0;if(!c.tv())return!1;var d=Px(b.C);if(!d||6==d.info.type)return!1;var e=d.info,f=py(b);!f||f.D||ru(f,e)||c.abort();c.bz(e.u.info.containerType,e.u.info.mimeType);if(e=a.u.yb&&a.F.C&&0==d.info.C&&(g.Ou(d.info.u.info)||a.u.tF)){if(null==c.ql()){e=py(b);if(!(f=!e||e.u!=d.info.u)){b:if(e=e.W,f=d.info.W,e.length!=f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.Eb(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.ql(),f=d.info.u.u,e=e!==f&&!g.Eb(e,f);e=!e}e&&(g.Ou(d.info.u.info)?
(Jt(Lu(d),1836019574),Jt(Lu(d),1718909296)):(e=new Ot(Lu(d)),hu(e),St(e,524531317,!0),d.u=d.u.split(e.C+e.u).im),d.C=!1);a.u.Ni&&d.C&&(d.C=!1);e=a.P&&!!a.P.I&&b.u.info.audio;f=a.F.isManifestless||d.C;if(!(a.F.C&&0!=d.info.C||f&&!e)&&eE(a,c,d))return!0;if(e)return!1;e=a.I+VD(a,b,!1);if(!(e=d.info.K>e)){a:if(a.u.Qe&&(!d.info.C||d.info.D)&&a.gd("sba",c.jb({as:nu(d.info)})),e=d.C?d.info.u.u:null,f=Gu(d.u),d.C&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=hE(a,c,f,d.info,e),"s"==e)a.Ub=0,a=!0;
else{a.u.Ks||(c.abort(),Fy(b));if("i"==e||"x"==e)iE(a,"checked",e,d.info);else{if("q"==e&&(d.info.isVideo()?(e=a.u,e.I=Math.floor(.8*e.I),e.Z=Math.floor(.8*e.Z),e.F=Math.floor(.8*e.F)):(e=a.u,e.K=Math.floor(.8*e.K),e.Ja=Math.floor(.8*e.Ja),e.F=Math.floor(.8*e.F)),!c.sf()&&!a.C.isView()&&c.Cq(Math.min(a.I,d.info.startTime),!0,5))){a=!1;break a}a.V("reattachrequired")}a=!1}e=!a}if(e)return!1;b.C.B.shift();ty(b,d);return!0};
iE=function(a,b,c,d){var e="fmt.unplayable",f=!0;"x"==c||"m"==c?(e="fmt.unparseable",d.u.I=e,d.u.info.video&&!cD(a.K)&&bD(a.K,d.u)):"i"==c&&(15>a.Ub?(a.Ub++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=vu(d);d.mrs=a.C.C.readyState;d.origin=b;d.reason=c;TD(a,f,e,d)};
jE=function(a,b,c){var d=a.F,e=!1,f;for(f in d.u){var h=Xv(d.u[f].info.mimeType)||d.u[f].info.isVideo();c==h&&(h=d.u[f].index,uz(h,b.eb)||(h.uD(b),e=!0))}Wga(a.N,b,c,e);c&&(a=a.Z,a.F.ob&&(a.P.C&&!a.F.Yq?(a.B=null,a.C=!1):(c=a.u&&a.B&&a.u.eb==a.B.eb-1,c=a.u&&c&&"stop"!=a.u.Te.event&&"predictStart"!=a.u.Te.event,a.B&&a.B.eb<b.eb&&(c?RA(a,a.B):a.C=!0),a.B=b)))};
eE=function(a,b,c){c.info.u.he();var d=c.info.u.u;if(null==d||b.ql()==d)return!1;var e=d,f=b.Sr();if(a.u.Ni&&f&&b.isView()&&g.Ou(c.info.u.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=hfa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.gd("fenc","1")}f=null;h=c.info.u.sl(0);h.length&&(f=h[0].u[0]);d=hE(a,b,e,f,d);return"s"!=d?(iE(a,"sepInit",d,c.info),!0):b.sf()};
hE=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.M(f),"u";c=gy(b.Ue()).replace(/,/g,"_");d=g.rf(f.message);a.gd("quex","br."+c+";t."+(a.C?b==a.C.B?"v":"a":"u")+";e."+d);return"q"}return qB(a.C)?"m":"s"};
LD=function(a,b){b.C.subscribe("needkeyinfo",a.oM,a);b.C.subscribe("error",a.ZN,a);b.C.subscribe("avsyncissue",a.YN,a);var c=(0,g.z)(a.cO,a,b);b.C.subscribe("placeholderinfo",c,void 0);c=(0,g.z)(a.dO,a,b);b.C.subscribe("placeholderrollback",c,void 0);c=(0,g.z)(a.eO,a,b);b.C.subscribe("segmentinfo",c,void 0);c=a.aO.bind(a);b.C.subscribe("gaplessinfo",c,void 0);c=a.bO.bind(a);b.C.subscribe("localmediachange",c,void 0)};
Ela=function(a,b){b.subscribe("seekplayerrequired",function(c,d){a.da||a.V("seekplayerrequired",c,d)});
b.subscribe("ctmp",function(c,d){a.gd(c,d,!1)});
b.subscribe("error",function(c,d,e){TD(a,c,d,e)});
b.subscribe("setcurrenttime",function(c){a.I=c})};
dE=function(a,b,c){var d=0+c.duration;c=-c.u;0==b.Rr()&&d==b.iw()||b.sy(0,d);c!=b.lc()&&(b.Nn(c),$x&&ey(a.D.C,b.qw()))};
VD=function(a,b,c){if(a.ha)return 1;var d=b.u.info.audio?a.u.K:a.u.I;!a.u.W&&dD(a.K)&&(d=Math.max(d,b.u.info.audio?a.u.Ja:a.u.Z));c&&(d+=a.u.Ga);var e=dD(a.K)?b.B?b.B.u.info.u:b.u.info.u:b.ba;d/=e;0<a.u.Df&&a.C&&nB(a.C)&&(b=b.u.info.video?a.C.B:a.C.u)&&!b.sf()&&(b=b.Ue(),e=hy(b,a.I),0<=e&&(b=a.I-b.start(e),d+=Math.max(0,Math.min(b-a.u.Df,a.u.sz))));0<a.u.F&&(d=Math.min(d,a.u.F));a.u.Cf&&c&&!dD(a.K)&&(c=a.K,c=aD(c,g.gb(c.C))+aD(c,c.N.u[0]),c=a.u.Cf*(c/mz(a.X)),c<d&&15>c&&a.gd("bwcapped","1",!0),c=
Math.max(c,15),d=Math.min(d,c));return d};
Gla=function(a){if(!a.yb)return Infinity;var b=g.Ke(ED(a.yb),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.I)return c.start/1E3;return Infinity};
Ola=function(a,b){var c=vy(a.B).find(function(d){return d.startTime>=b&&MD(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
MD=function(a,b,c){if(!(a.B.u.he()&&a.D.u.he()&&a.C&&a.C.B&&a.C.u))return!1;if(c&&a.F.isManifestless&&(-1==a.B.I||-1==a.D.I))return!0;var d=yy(a.B,b,c);if(isNaN(d))return!1;a=yy(a.D,a.u.ka?b:d,c);return isNaN(a)?!1:!0};
bE=function(a,b,c,d){c.he()||c.F||!Bv(c.B)||(d=c.sl(d?rga(a.X,c.info):0),g.Gb(d,function(e){if("f"!=e.u[0].u.info.Fb){var f=YD(this,e);Ev(e)&&(b.D.push(f),b.B=g.gb(f.info.u))}},a),c.F=!0)};
TD=function(a,b,c,d){a.la()||(d=new TA(c,b,d),g.Ua(a),g.UA(d.details),a.V("error",d),"html5.invalidstate"!=c&&"fmt.unplayable"!=d.errorCode&&"fmt.unparseable"!=c&&b&&a.dispose())};
RD=function(a){Fy(a.D);Fy(a.B)};
kE=function(a){a.D.C.F=null;a.B.C.F=null;a.u.C="";a.u.Xg=!1};
Pla=function(a,b){var c=b.info.video?a.B:a.D;null!=c&&bE(a,c,b,!1)};
Qla=function(a){if(a.yb){var b=a.F.getStreamTimeOffset()||a.ea||0,c=g.Ke(ED(a.yb),function(f){return"ad"==f.namespace}),d=0;
c=g.q(c);for(var e=c.next();!e.done;e=c.next())e=e.value.start/1E3-b,e>a.I&&(0===d||d>e)&&(d=e);0<d&&30<Math.abs(d-a.Za)&&(a.Za=d,a.D&&Gy(a.D,a.Za),a.B&&Gy(a.B,a.Za))}};
g.U=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.q(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""};
g.lE=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];d.text&&b.push(Rla(d))}return 1==b.length?b[0]:g.Ee("SPAN",null,b)};
Rla=function(a){var b=null,c=a.text;a.bold&&(b=g.Ee("B",null,b||c));a.italics&&(b=g.Ee("I",null,b||c));a.strikethrough&&(b=g.Ee("STRIKE",null,b||c));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(a=a.navigationEndpoint.urlEndpoint,b=g.Ee("A",null,b||c),g.id(b,a.url),"TARGET_NEW_WINDOW"==a.target&&(b.target="_blank"));return b||g.Ee("SPAN",null,c)};
mE=function(a,b,c,d){d=void 0===d?!1:d;g.B.call(this);this.experiments=b;this.useCobaltWidevine=d;this.u=[];this.B={};this.D={};this.callback=null;this.F=!1;this.C=[];this.initialize(a,!c)};
Tla=function(a,b){a.callback=b;a.C=[];PC(a.experiments)?nE(a):Sla(a)};
nE=function(a){if(!a.la())if(0===a.u.length)a.callback(a.C);else{var b=a.u[0],c=a.B[b],d=Ula(a,c);navigator.requestMediaKeySystemAccess(b,d).then(Do(function(e){if(!a.la()){c.keySystemAccess=e;if(KC(c)){e=bB();for(var f=g.q(Object.keys(a.D[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.B[h]=!!e.canPlayType(h)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.q(e.audioCapabilities),h=f.next();!h.done;h=f.next())c.B[h.value.contentType]=!0;if(e.videoCapabilities)for(e=
g.q(e.videoCapabilities),f=e.next();!f.done;f=e.next())c.B[f.value.contentType]=!0}a.C.push(c);a.ca("html5_drm_fallback_to_playready_on_retry")||a.useCobaltWidevine?(a.u.shift(),nE(a)):a.callback(a.C)}}),Do(function(){a.F=!a.F&&"widevine"===a.B[a.u[0]].flavor;
a.F||a.u.shift();nE(a)}))}};
Ula=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};KC(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.q(Object.keys(a.D[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==b.flavor||a.F?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(h.push({contentType:e,robustness:"HW_SECURE_ALL"}),h.push({contentType:e,robustness:"SW_SECURE_DECODE"}),
a.ca("html5_query_sw_secure_crypto_for_android")&&(mk()||Yj())&&h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}))}return[c]};
Sla=function(a){if(IC()&&g.sC)a.C.push(new HC("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=Vla(),c=g.jb(a.u,function(d){var e=a.B[d],f=!1,h=!1,l;for(l in a.D[e.flavor])b(l,d)&&(e.B[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c&&a.C.push(a.B[c]);a.u=[]}a.callback(a.C)};
Vla=function(){var a=IC();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=bB();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
oE=function(a){this.La=a};
pE=function(a,b,c){if(c)return Br();var d={};c=bB();b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.te().mimeType)){var f=e.La.Ka().quality;if(!d[f]||d[f].te().Id())d[f]=e}var h=[];d.auto&&h.push(d.auto);g.Gb(Pv,function(l){(l=d[l])&&h.push(l)});
return h.length?Cr(h):Br()};
Wla=function(a,b,c){this.C=a;this.B=b;this.cpn=c;this.D=0;this.u=""};
qE=function(a,b,c){a.cpn&&(b=g.Ld(b,{cpn:a.cpn}));c&&(b=g.Ld(b,{uW:c}));return b};
rE=function(a,b){var c=a.itag.toString();null!==b&&(c+=b.itag.toString());return c};
Xla=function(a,b,c){var d="#EXT-X-MEDIA:TYPE=AUDIO,",e="YES",f="audio";if(b.u){f=b.u;var h=f.getId().split(".")[0];h&&(d+='LANGUAGE="'+h+'",');a.u||f.getIsDefault()||(e="NO");f=f.getName()}h="";null!==c&&(h=c.itag.toString());a=qE(a,b.url,h);return d=d+('NAME="'+f+'",DEFAULT='+(e+',AUTOSELECT=YES,GROUP-ID="'))+(rE(b,c)+'",URI="'+(a+'"'))};
Yla=function(a){for(var b=[],c=[],d=g.q(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.D?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate});
c.sort(function(f,h){return f.bitrate-h.bitrate});
a.B=b.concat(c)};
Zla=function(a,b,c,d,e,f,h,l,m,n,p,r){this.itag=a;this.url=b;this.codecs=c;this.width=d;this.height=e;this.fps=f;this.bitrate=h;this.u=void 0===p?null:p;this.audioChannels=r;this.D=(null===l||void 0===l?void 0:l.split(","))||[];this.C=m||null;this.zd=n||"";this.B=""};
sE=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!0:c;var d={};a=g.q(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var f=e.type;e.audio_channels&&(f=f+"; channels="+e.audio_channels);if(!MediaSource.isTypeSupported(f))continue}if(c||!e.drm_families||"smpte2084"!==e.eotf&&"arib-std-b67"!==e.eotf){f={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"};var h=e.type.match(/codecs="([^"]*)"/);h=h?h[1]:"";var l=null;e.audio_track_id&&(l=new Dz(e.name,
e.audio_track_id,!!e.is_default));var m=e.eotf;e=new Zla(e.itag,e.url,h,+e.width,+e.height,+e.fps,+e.bitrate,e.audio_itag,m?f[m]:void 0,e.drm_families,l,+e.audio_channels);d[e.itag]=d[e.itag]||[];d[e.itag].push(e)}}return d};
tE=function(a,b,c){this.La=a;this.B=b;this.expiration=c;this.u=null};
$la=function(a,b){if(!(jk||gk()||ck()))return null;var c=sE(b,g.R(a.experiments,"html5_filter_fmp4_in_hls"));if(!c)return null;for(var d=[],e={},f=g.q(Object.keys(c)),h=f.next();!h.done;h=f.next()){h=g.q(c[h.value]);for(var l=h.next();!l.done;l=h.next()){var m=l.value;m.u&&(l=m.u.getId(),e[l]||(m=new yC(l,m.u),e[l]=m,d.push(m)))}}return 0<d.length?d:null};
dma=function(a,b,c,d,e){if(!(jk||gk()||ck()))return Br();var f=ama(c),h=sE(c,g.R(a.experiments,"html5_filter_fmp4_in_hls"),a.D.B);if(!h)return Br();g.R(a.experiments,"html5_filter_video_m2ts_in_hls_killswitch")||bma(h);c={};var l=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c);c=[];for(var m=[],n=[],p=g.Q(a.experiments,"html5_hls_min_video_height"),r=null,t="",w=g.q(Object.keys(h)),x=w.next();!x.done;x=w.next())if(x=x.value,!g.R(a.experiments,"html5_disable_drm_hfr_1080")||"383"!==
x&&"373"!==x){x=g.q(h[x]);for(var y=x.next();!y.done;y=x.next())if(y=y.value,y.width){if(!(y.height<p)){var D=g.q(y.D);for(var F=D.next();!F.done;F=D.next())if(F=F.value,h[F]){y.B=F;break}y.B||(y.B=cma(h,y));if(F=h[y.B]){c.push(y);D="fairplay"===y.zd?l:null;var G="";"PQ"===y.C?G="smpte2084":"HLG"===y.C&&(G="arib-std-b67");G&&(t=G);n.push(uE(F,[y],e,y.itag,y.width,y.height,y.fps,f,void 0,void 0,D,G));if(!r||y.width*y.height*y.fps>r.width*r.height*r.fps)r=y}}}else m.push(y)}D=n.reduce(function(O,K){return K.te().isEncrypted()&&
O},!0)?l:null;
d=Math.max(d,g.Q(a.experiments,"html5_hls_initial_bitrate"));h=r||{};n.push(uE(m,c,e,"93",void 0===h.width?0:h.width,void 0===h.height?0:h.height,void 0===h.fps?0:h.fps,f,"auto",d,D,t));return pE(a.D,n,eC(a,b))};
uE=function(a,b,c,d,e,f,h,l,m,n,p,r){for(var t=0,w="",x=g.q(a),y=x.next();!y.done;y=x.next())y=y.value,w||(w=y.itag),y.audioChannels&&y.audioChannels>t&&(t=y.audioChannels,w=y.itag);d=new Sv(d,"application/x-mpegURL",new Jv(0,t,null,w),new Mv(e,f,h,null,void 0,m,void 0,r),void 0,p);a=new Wla(a,b,c);a.D=n?n:1369843;return new tE(d,a,l)};
ama=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};
cma=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.zd===b.zd&&!e.audioChannels)return d}return""};
bma=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]};
vE=function(a,b){this.La=a;this.u=b};
ema=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 kv(h.url,!0);if(h.s){var l=h.sp,m=$u(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=Yv(h.type,h.quality,h.itag,h.width,h.height);e.push(new vE(h,f))}}return pE(a.D,e,eC(a,b))};
wE=function(a,b){this.La=a;this.u=b};
fma=function(a){var b=[];g.Gb(a,function(c){if(c&&c.url){var d=Yv(c.type,"medium","0");b.push(new wE(d,c.url))}});
return b};
gma=function(a,b,c){c=fma(c);return pE(a.D,c,eC(a,b))};
hma=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.ustreamerConfig=AB(a.ustreamerConfig))};
g.xE=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.u=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null};
g.yE=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (Automatic Captions)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")};
AE=function(a){for(var b={},c=g.q(Object.keys(zE)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[zE[d]];e&&(b[d]=e)}return b};
BE=function(a,b){for(var c={},d=g.q(Object.keys(zE)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.fv(f)&&(c[zE[e]]=f)}return c};
EE=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(CE)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=CE[e];for(var f=g.q(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=DE(h.url);g.fv(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=DE(a.url),g.fv(a)&&(b["maxresdefault.jpg"]=a));return b};
DE=function(a){return a.startsWith("//")?"https:"+a:a};
FE=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return ima[a];return null};
GE=function(a){return a&&a.baseUrl||""};
HE=function(a){a=g.Xp(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};
IE=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;var c=b.playerAttestationRenderer.challenge;null!=c&&(a.Tg=c)};
jma=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=JE(d.baseUrl);if(!e)return;d=new g.xE({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.U(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.vv=b.audioTracks||[];a.xA=b.defaultAudioTrackIndex||0;b.translationLanguages?a.wv=g.Pc(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.U(f.languageName)}}):
a.wv=[];
a.jr=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
kma=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.interstitials.map(function(l){var m=l.unserializedPlayerResponse;if(m)return{is_yto_interstitial:!0,raw_player_response:m};if(l=l.playerVars)return Object.assign({is_yto_interstitial:!0},Vp(l))});
e=g.q(e);for(var f=e.next();!f.done;f=e.next())switch(f=f.value,d.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:f,Gu:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:f,Gu:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var h=Number(d.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:h,playerVars:f,
Gu:0===h?5:7})}}};
lma=function(a,b){var c=b.find(function(d){return!(!d||!d.tooltipRenderer)});
c&&(a.tooltipRenderer=c.tooltipRenderer)};
KE=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)};
LE=function(a){g.P.call(this);this.u=null;this.C=new g.mo;this.u=null;this.I=new Set;this.crossOrigin=a||""};
OE=function(a,b,c){c=ME(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.Dc(e)){d=a;var f=c,h=f+"-"+e;d.I.has(h)||(d.I.add(h),g.lo(d.C,f,{CC:f,DD:e}))}NE(a)};
NE=function(a){if(!a.u&&!a.C.isEmpty()){var b=a.C.remove();a.u=mma(a,b)}};
mma=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.CC].nd(b.DD);c.onload=function(){var d=b.CC,e=b.DD;null!==a.u&&(a.u.onload=null,a.u=null);d=a.levels[d];d.loaded.add(e);NE(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.kw()-1);e=[e,d];a.V("l",e[0],e[1])};
return c};
g.PE=function(a,b,c,d){this.level=a;this.F=b;this.loaded=new Set;this.level=a;this.F=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.C=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.u=Math.floor(Number(a[5]));this.D=a[6];this.signature=a[7];this.videoLength=d};
QE=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;LE.call(this,c);this.isLive=d;this.K=!!e;this.levels=this.B(a,b);this.D=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
RE=function(a,b,c){return(a=a.levels[b])?a.At(c):-1};
ME=function(a,b){var c=a.D.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].ge()>=b)return a.D.set(b,d),d;a.D.set(b,c-1);return c-1};
SE=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.PE.call(this,a,b,c,0);this.B=null;this.I=d?3:0};
TE=function(a,b,c,d){QE.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].iD(c)};
nma=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.Ld(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.UE=function(a,b){g.P.call(this);this.Oa=a;this.adModule=!1;this.adaptiveFormats="";this.jA=this.adSafetyReason=this.adQueryId=this.bv=null;this.mo="";this.zd=null;this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.rg="";this.gv=this.Wq=this.FC=!1;this.tC=null;this.ao=this.om=this.Jq=this.Jr=this.Js=!1;this.Qc=null;this.Wk=!1;this.Yp=NaN;this.Rx={};this.Ky=this.cycToken=null;this.author="";this.Wj=0;this.xv=!1;this.Si=null;this.ov=this.UA=!1;this.clientScreenNonce=
this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.Ui=this.uo="";this.contentCheckOk=!1;this.Wg=0;this.Ar=this.Go=!1;this.endSeconds=0;this.Zn=this.Zg=this.La=this.Sv=null;this.ew="";this.qd=!1;this.kj=this.Xm=0;this.ev=this.pipable=this.Cl=!1;this.paidContentOverlayDurationMs=0;this.isLivePlayback=this.li=this.isPrivate=this.isListed=this.Tw=this.mutedAutoplay=this.Bk=!1;this.hx="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.Gs=this.jp=
this.rf=!1;this.latencyClass="UNKNOWN";this.enableServerStitchedDai=this.Jc=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.Ci=0;this.reloadReason="";this.Zw=this.qC=this.lj=!1;this.keywords={};this.mh="";this.Ms=0;this.Dq=!1;this.liveChunkReadahead=NaN;this.Ps=0;this.fn=null;this.pp=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=!1;this.sj=[];this.me=[];this.racyCheckOk=!1;this.YE={};this.iu=0;this.Ia=null;this.autonavState=
1;this.rA=null;this.shortDescription="";this.vg=this.Cy=!1;this.pu=this.lk=this.startSeconds=0;this.Du=this.uA=this.CG=WC;this.Qn=this.suggestions=null;this.Hy=!1;this.expandedSubtitle=this.Jo=this.subtitle=this.title="";this.multiMarkersPlayerBarRenderer=this.Av=void 0;this.Ba=[];this.hlsFormats=this.Eq="";this.Qs=this.ou=this.Pg=this.Bj=this.Gg=this.gq=this.ys=null;this.qg="vvt";this.ie=!1;this.kz=null;this.NG="";this.Lq=NaN;this.Ou=this.Ku=this.Ju=this.Iu=this.Hu=this.Nu=this.Iq=this.Mu=this.Kq=
this.Lu="";this.bo=null;this.GF=!1;this.Rc={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.XB=this.WB=NaN;this.Fn=this.kp=this.Vk=this.gC=this.YB=!1;this.lq=!0;this.Hh={};this.captionTracks=[];this.vv=[];this.xA=0;this.wv=[];this.jr=!1;this.Bo=new yC("und",new Dz("Default","und",!0));this.ax=0;this.Vc=null;this.Hn=[];this.Tk=[];this.gz=this.Up="";this.slotPosition=-1;this.breakType=0;this.watchNextResponse=this.playerResponse=this.aB=this.Fo=this.ug=this.Qv=this.dv=this.Yu=null;
this.vr=!1;this.Zd=null;this.Rw=this.Eo=this.useCobaltWidevine=this.TF=this.Fl=this.Cj=!1;this.mk=this.Bl=NaN;this.defraggedFromSubfragments=this.Vm=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.Dk=this.iz=this.nm=!1;this.interstitials=[];this.Kc=this.Uw=!1;this.Tp=this.KD=this.bj="";this.isVisualizerEligible=!1;this.Qt=null;this.Yb="";this.ni=this.eC=!1;this.ID=this.Hq="";this.Tx=this.Nx=this.Nw=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=
NaN;this.showShareButton=!0;this.oq=!1;this.On=this.Mk=!0;this.errorDetail=this.userGenderAge="";this.Ly=this.My=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Yh=this.errorReason=this.errorCode=null;this.mr=this.lr="";this.Xg=this.Jm=!1;this.tj=this.Jl=this.hg=this.Rd=0;this.np=this.fetchType=null;this.aF=!0;this.Xq=-1;this.No=null;this.ca("web_player_ux_module_wait")&&this.Oa.Qa&&this.me.push("ux");
this.setData(b)};
XE=function(a,b){a.fflags=DB(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.rg=jv(c));a.Wq=S(a.Wq,b.iv_ads_only);a.gv=S(a.gv,b.iv_allow_in_place_switch);a.isPharma=S(a.isPharma,b.is_pharma);a.author=DB(a.author,b.author);a.uo=JE(b.ttsurl)||a.uo;a.xv=S(a.xv,b.cc_asr);a.Ui=DB(a.Ui,b.channel_path);a.channelBanner=DB(a.channelBanner,b.channel_banner);a.videoCountText=DB(a.videoCountText,b.video_count_text);a.autonavState=BB(a.autonavState,b.autonav_state,oma);a.clientPlaybackNonce=DB(a.clientPlaybackNonce,
b.cpn);a.subscribed=S(a.subscribed,b.subscribed);a.rawViewCount=CB(a.rawViewCount,b.view_count);a.shortViewCount=DB(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=DB(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=DB(a.lengthText||"",b.lengthText);a.qo=DB(a.qo||"",b.qo);a.title=DB(a.title,b.title);a.subtitle=DB(a.subtitle,b.subtitle);a.Jo=DB(a.Jo,b.expanded_title);a.expandedSubtitle=DB(a.expandedSubtitle,b.expanded_subtitle);a.mo=DB(a.mo,b.aria_label);a.ypcPreview=DB(a.ypcPreview,
b.ypc_preview);a.lz=DB(a.lz,b.ypc_origin);a.ie=S(a.ie,b.ypc_is_premiere_trailer);a.Hq=DB(a.Hq,b.ypc_clickwrap_message);a.paygated=S(a.paygated,b.paygated);a.GF=S(a.GF,b.requires_purchase);a.showShareButton=!S(!a.showShareButton,b.ss);a.Mk=S(a.Mk,b.showwatchlater);a.On=S(a.On,b.shownotifybutton);a.oq=S(a.oq,b.copy_share);if(c=b.keywords)a.keywords=VE(c.split(","));if(c=b.rvs)a.suggestions=Wp(c);a.contentCheckOk=S(a.contentCheckOk,b.cco);a.racyCheckOk=S(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=S(a.isLivingRoomDeeplink,
b.is_living_room_deeplink);a.oauthToken=DB(a.oauthToken,b.oauth_token);a.mh=DB(a.mh,b.kpt);a.visitorData=DB(a.visitorData,b.visitor_data);if(c=b.session_data)a.sd=Tp(c);if(c=b.endscreen_autoplay_session_data)a.Sv=Tp(c);a.Br=DB(a.Br,b.endscreen_ad_tracking_data);a.GG=S(a.GG,b.wait_for_vast_info_cards_xml);a.Fy=S(a.Fy,b.suppress_creator_endscreen);a.pC=S(a.pC,b.is_trueview_action);a.jG=DB(a.jG,b.tracking_list);a.lr=DB(a.lr,b.clip);a.mr=DB(a.mr,b.clipt);WE(a,b)};
aF=function(a,b){var c,d,e,f,h,l=b.raw_watch_next_response;if(!l){var m=b.watch_next_response;m&&(l=JSON.parse(m))}if(l){a.watchNextResponse=l;l=a.watchNextResponse.contents;var n;if(l){if(n=l.singleColumnWatchNextResults){var p=CB(0,b.autoplay_count);if(n.autoplay&&n.autoplay.autoplay&&!n.playlist){var r=n.autoplay.autoplay.sets;n={};m={};var t=null;if(r){for(var w=g.q(r),x=w.next();!x.done;x=w.next())if((x=x.value.autoplayVideoRenderer)&&x.compactVideoRenderer){t=x.compactVideoRenderer;break}if(r=
r[0].autoplayVideo)(r=r.clickTrackingParams)&&(n.itct=r),n.autonav="1",n.playnext=String(p)}else n.feature="related-auto";if(t){m.autonav="1";m.video_id=t.videoId;if(p=t.shortBylineText)m.author=g.U(p);if(p=t.title)m.title=g.U(p)}m.endscreen_autoplay_session_data=g.Hd(n);a.suggestions=[m]}}n=l.twoColumnWatchNextResults}l=a.watchNextResponse.playerOverlays;if(l&&(l=l.playerOverlayRenderer)){if(m=l.endScreen)if(m=m.watchNextEndScreenRenderer)var y=m.results;if(m=l.videoDetails){var D=m.embeddedPlayerOverlayVideoDetailsRenderer;
if(m=m.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.dw=m.title,a.cw=m.byline}if(m=l.actions)for(m=g.q(m),p=m.next();!p.done;p=m.next())p=p.value,p.likeButtonRenderer&&(a.likeButtonRenderer=p.likeButtonRenderer);if(m=null===(c=l.decoratedPlayerBarRenderer)||void 0===c?void 0:c.decoratedPlayerBarRenderer)a.multiMarkersPlayerBarRenderer=null===(d=m.playerBar)||void 0===d?void 0:d.multiMarkersPlayerBarRenderer,a.Av=null===(f=null===(e=m.playerBar)||void 0===e?void 0:e.chapteredPlayerBarRenderer)||
void 0===f?void 0:f.chapters,a.jQ=null===(h=m.playerBarActionButton)||void 0===h?void 0:h.buttonRenderer;g.RB(a.Oa)&&(a.Mk=!!l.addToMenu);YE(a,l.shareButton);if(m=l.productsInVideoOverlayRenderer)a.shoppingOverlayRenderer=m.shoppingOverlayRenderer;if(l=l.autoplay)var F=l.playerOverlayAutoplayRenderer}!y&&n&&(l=n.endScreen&&n.endScreen.endScreen)&&(y=l.results);n&&(l=n.desktopOverlay&&n.desktopOverlay.desktopOverlayConfigRenderer)&&(l.suppressShareButton&&(a.showShareButton=!1),l.suppressWatchLaterButton&&
(a.Mk=!1));D&&ZE(a,b,D);D=CB(0,b.autoplay_count);if(y){l=n||null;m=F||null;p=[];t=!0;y=g.q(y);for(r=y.next();!r.done;r=y.next()){x=r.value;w=void 0;r=null;if(x.endScreenVideoRenderer){x=x.endScreenVideoRenderer;var G=x.title;r={id:x.videoId,length_seconds:x.lengthInSeconds};var O=x.publishedTimeText;O&&(r.publishedTimeText=g.U(O));if(O=x.shortBylineText)r.author=g.U(O);if(O=x.shortViewCountText)r.short_view_count_text=g.U(O);G&&(r.title=g.U(G),(G=G.accessibility)&&(G=G.accessibilityData)&&G.label&&
(r.aria_label=G.label));if(G=x.navigationEndpoint)if(w=G.clickTrackingParams,G=G.watchEndpoint)r.bB=G;if(G=x.thumbnailOverlays)for(G=g.q(G),O=G.next();!O.done;O=G.next())if((O=O.value.thumbnailOverlayTimeStatusRenderer)&&"LIVE"==O.style){r.live_playback="1";break}x=EE(x.thumbnail);x=AE(x);x.iurlmq&&(x={iurlmq:x.iurlmq,iurlhq:x.iurlmq});Object.assign(r,x)}else if(x.endScreenPlaylistRenderer){x=x.endScreenPlaylistRenderer;w=x.navigationEndpoint;if(!w)continue;r=w.watchEndpoint;if(!r)continue;r=r.videoId;
r={list:x.playlistId,video_id:r,playlist_length:x.videoCount,thumbnail_ids:r};if(G=x.title)r.playlist_title=g.U(G);if(G=x.shortBylineText)r.playlist_author=g.U(G);w=w.clickTrackingParams;x=EE(x.thumbnail);Object.assign(r,AE(x))}r&&(r.session_data=g.Hd({itct:w}),t?($E(r,l,m,D),p.splice(0,0,r),t=!1):p.push(r))}a.suggestions=p}if(F){a.aF=!!F.preferImmediateRedirect;if(a.ca("web_new_autonav_countdown")||a.ca("web_new_big_thumbnail_endscreen")){y=F;n=n||null;l={id:y.videoId};if(m=y.videoTitle)l.title=
g.U(m),(m=m.accessibility)&&(m=m.accessibilityData)&&m.label&&(l.aria_label=m.label);if(m=y.byline)l.author=g.U(m);if(m=y.publishedTimeText)l.publishedTimeText=g.U(m);if(m=y.thumbnailOverlays)for(m=g.q(m),p=m.next();!p.done;p=m.next())if(p=p.value.thumbnailOverlayTimeStatusRenderer)if("LIVE"==p.style){l.live_playback="1";break}else if("DEFAULT"==p.style&&p.text){l.lengthText=g.U(p.text);break}m=EE(y.background);m=AE(m);m.iurlmq&&(m={iurlmq:m.iurlmq,iurlhq:m.iurlmq});Object.assign(l,m);if(m=y.nextButton)if(m=
m.buttonRenderer)if(p=m.navigationEndpoint)if(m=p.clickTrackingParams,l.session_data=g.Hd({itct:m}),m=p.watchEndpoint)l.bB=m;y.topBadges&&(m=y.topBadges[0])&&(m=m.metadataBadgeRenderer)&&"BADGE_STYLE_TYPE_PREMIUM"==m.style&&(l.nq=!0);if(m=y.alternativeTitle)l.qo=g.U(m);$E(l,n,y,D);a.suggestions||(a.suggestions=[]);a.suggestions[0]=l}null!=F.countDownSecs&&(a.Xq=1E3*F.countDownSecs)}a.watchNextResponse.currentVideoThumbnail&&(a.Hh=EE(a.watchNextResponse.currentVideoThumbnail))}};
bF=function(a){return!!(a.Ia&&a.Ia.videoInfos&&a.Ia.videoInfos.length)};
dF=function(a){if(a.ca("html5_single_format_policy")&&a.No)return a.No;var b=a.ni,c=!!a.ma&&(a.ma.mj()||a.ma.nj()||a.ma.ij()),d=a.Oa,e=!!a.ma&&a.ma.Bg,f=cF(a),h=a.iz;a.isAd();var l=a.isOtf(),m=a.fv(),n=new rha;n.X=f;n.K=h&&d.C;Xj("windows nt 5.1")&&!g.wB&&(n.u=!0);c&&OB&&6>=PB&&(n.u=!0);if(f=c)f=d.ca("disable_html5_ambisonic_audio")||!(g.tC(d)||d.ca("html5_enable_spherical")||d.ca("html5_enable_spherical3d"))?!1:uC(d);f&&(n.W=!0);b&&(n.u=!0,n.ra=!0);l&&!g.R(d.experiments,"html5_otf_prefer_vp9")&&
(n.u=!0);uB(d.D,vB.CHANNELS)&&(g.R(d.experiments,"html5_enable_aac51")&&(n.I=!0),g.R(d.experiments,"html5_enable_ac3")&&(n.C=!0),g.R(d.experiments,"html5_enable_eac3")&&(n.D=!0));g.R(d.experiments,"html5_block_8k_hfr")&&(n.ba=!0);!g.R(d.experiments,"html5_kaios_hd_killswitch")&&JB&&(n.da=480);if(e||c)n.Z=!1;n.ea=!1;b=GC(d,n.B);0<b&&2160>b&&(XA()||g.R(d.experiments,"html5_format_hybridization"))&&(n.B.supportsChangeType=XA(),n.F=b);2160<=b&&(n.ka=!0);sx()&&(n.B.serveVp9OverAv1IfHigherRes=!1,n.Aa=!1);
n.fv=m;m=g.ar||nk()&&!m?!1:!0;n.P=m;n.ha=g.R(d.experiments,"html5_format_hybridization");ck()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(n.C=!0,n.D=!0);a.isLivePlayback&&(d=a.Jc&&a.Oa.ca("html5_enable_audio_51_for_live_dai"),m=!a.Jc&&a.Oa.ca("html5_enable_audio_51_for_live_non_dai"),n.N=d||m);return a.No=n};
qma=function(a){a.Zg||a.ma&&Jz(a.ma);var b={};a.ma&&(b=RC(dF(a),a.Oa.D,a.ma));b=new mE(b,a.Oa.experiments,a.TF,pma(a));g.C(a,b);a.kp=!1;a.qd=!0;Tla(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.Zg=a.Zg;e.Dr=a.Dr;e.Cr=a.Cr;break;case "widevine":e.Zn=a.Zn}a.Hn=c;0<a.Hn.length&&(a.Vc=a.Hn[0]);eF(a)})};
iF=function(a,b){var c;(c=!b)||(c=!(!fF(a)&&a.adaptiveFormats));if(c)return null;gF(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(Pz=!0);c=hF(b);var d=a.zd;var e=a.lengthSeconds,f=a.isLivePlayback,h=a.rf,l=a.Oa.experiments,m=Kga(c);d=f||h?Jga(c,h,d,l):3==m?Iga(c,d,e,l):Hga(c,d,e,l);0<c.length&&(c=c[0],c.url&&c.sp&&c.s&&(c=Nz(c.url,c.sp,c.s),c=Number(c.get("max_sq"))||Infinity,isFinite(c)&&(a.jp=!0)));if(c=d.isManifestless)c=!(a.ca("html5_manifestless_vp9")||a.ca("html5_manifestless_vp9_normal_latency")&&
(!a.isLowLatencyLiveStream||"NORMAL"==a.latencyClass)||!rma(d));return c?(d.dispose(),null):d};
kF=function(a,b){var c=iF(a,b);if(!c)return!1;jF(a,c);return!0};
fF=function(a){return ck()&&!lF(a)};
lF=function(a){return gF(a,"html5_enable_tvos_dash_dogfood")||a.ca("html5_enable_tvos_dash")&&(a.ca("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
pma=function(a){return a.useCobaltWidevine?a.ca("html5_enable_tvos_widevine")&&ck()?lF(a):gF(a,"html5_enable_androidtv_cobalt_widevine")&&Xj("cobalt")&&Xj("android")?!0:!1:!1};
rma=function(a){return a.isManifestless&&dB('video/webm; codecs="vp9"')&&g.Mb(a.u,function(b){return Tv(b.info)})};
mF=function(a){return!(!a.ma||!a.ma.isManifestless)};
oF=function(a){if(!Ww())return!1;if(a.ca("html5_streaming_debug"))return!0;if(g.ar)return!1;if(g.ak()){var b=Wj();if(16<=b&&17>b)return!1}return!mF(a)||"ULTRALOW"!=a.latencyClass&&21530001!=nF(a)?window.AbortController?a.ca("html5_streaming_xhr")||a.ca("html5_streaming_xhr_manifestless")&&mF(a)?!0:!1:!1:!0};
pF=function(a){var b=mF(a),c=oF(a);return(a.hasSubfragmentedFmp4||a.Vm)&&b?c&&Ww()?3:2:a.defraggedFromSubfragments&&b?-1:1};
nF=function(a){return a.isLowLatencyLiveStream&&void 0!=a.ma&&5<=Yz(a.ma)?21530001:a.liveExperimentalContentId};
qF=function(a){return ck()&&lF(a)?!1:!xB()||a.UA?!0:!1};
sma=function(a){a.qd=!0;a.Vk=!1;if(!a.If&&rF(a))Lfa(a.videoId).then(function(d){a:{var e=iF(a,a.adaptiveFormats);if(e)if(d=iF(a,d)){if(0<g.Q(a.Oa.experiments,"hoffle_cache_size_secs")){var f=a.videoId,h=jw(f);0!==h&&mw(f,h,!0)}f=g.q(Object.keys(d.u));for(h=f.next();!h.done;h=f.next()){var l=h.value;h=d.u[l];l=e.u[l];if(!l||h.lastModified<l.lastModified){sF(a,!0);a.np=new KD(a.videoId,2,{Cn:!0});d.dispose();jF(a,e);break a}}e.dispose();jF(a,d)}else jF(a,e)}a.V("ctmp","dlac","r")},function(){return kF(a,
a.adaptiveFormats)}).then(function(){eF(a)});
else{ev(a.If)||g.lr(new Iq("DASH MPD Origin invalid: ",a.If));var b=a.If,c=g.Q(a.Oa.experiments,"dash_manifest_version")||4;b=g.Ld(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Ld(b,{pacing:0}));Nga(b,a.Oa.experiments,a.isLivePlayback).then(function(d){a.la()||(jF(a,d,!0),CA("mrc"),eF(a))},function(d){a.la()||(a.qd=!1,a.V("dataloaderror",new TA("manifest.net.retryexhausted",!0,{backend:"manifest",
rc:d.status})))});
CA("mrs")}};
tma=function(a,b){a.np=b};
eF=function(a){a.la()||(a.qd=!1,a.V("dataloaded"))};
jF=function(a,b,c){c=void 0===c?!1:c;a.ma=b;g.C(a,b);b.Rd=a.Rd;b.hg=a.hg;b.tj=a.tj;b.Jl=a.Jl;tF(a)&&a.me.push("webgl");a.ma.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.fn=Number(d[d.indexOf("manifest_duration")+1]));b.C&&(c?b.subscribe("refresh",a.dE,a):b.subscribe("cuepointsadded",a.FA,a));Jz(b)&&(a.kp=!0)};
uF=function(a){return a.zd?!0:!!a.ma&&Jz(a.ma)};
uma=function(a,b){var c=b||qF(a);return a.ma&&!c?(cF(a)&&Sga(a.ma,a.isLivePlayback),gF(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(a.Oa.D.C=!0),yha(dF(a),a.Oa.D,a.ma,a.Vc,a.ca("html5_dynamic_av1_hybrid_threshold")).then(function(d){vF(a,d);/^av/.test(a.clientPlaybackNonce)&&a.No&&a.V("ctmp","av1",g.UA(a.No.B))})):Br()};
vma=function(a,b){if(b&&a.hlsvp)return Br();if(a.hlsFormats){var c=hF(a.hlsFormats);a.ys=$la(a.Oa,c);var d=a.clientPlaybackNonce;return dma(a.Oa,a.isAd(),c,a.kj,d).then(function(e){for(var f,h,l=0,m=g.q(e),n=m.next();!n.done;n=m.next())n=n.value,(null===(h=null===(f=n.te())||void 0===f?void 0:f.audio)||void 0===h?void 0:h.u)>l&&(l=n.te().audio.u);2<l&&a.V("ctmp","hlschl",l);wF(a,e)})}return Br()};
wma=function(a){return a.Qn&&a.qC?gma(a.Oa,a.isAd(),a.Qn).then(function(b){wF(a,b)}):Br()};
yma=function(a){var b=hF(a.Eq,a.ew);if(a.hlsvp){var c=nma(a.hlsvp,a.clientPlaybackNonce,a.kj);b.push(c)}return ema(a.Oa,a.isAd(),b,xma(a)).then(function(d){wF(a,d)})};
vF=function(a,b){a.Ia=b;var c=a.getAvailableAudioTracks();c=c.concat(a.Bo);for(var d=0;d<a.vv.length;d++)for(var e=a.vv[d],f=0;f<c.length;f++){var h=c[f],l=h.u.id==e.audioTrackId;if(h.u.isDefault&&d==a.xA||l){if(e.captionTrackIndices)for(l=0;l<e.captionTrackIndices.length;l++)h.captionTracks[l]=a.captionTracks[e.captionTrackIndices[l]];void 0!==e.defaultCaptionTrackIndex&&(h.D=a.captionTracks[e.defaultCaptionTrackIndex]);void 0!==e.forcedCaptionTrackIndex&&(h.B=a.captionTracks[e.forcedCaptionTrackIndex]);
h.C=e.visibility||"UNKNOWN"}}if(a.Vc&&a.Ia&&a.Ia.videoInfos&&!(0>=a.Ia.videoInfos.length)&&(c=Wv(a.Ia.videoInfos[0]),c!=("fairplay"==a.Vc.flavor)))for(d=g.q(a.Hn),e=d.next();!e.done;e=d.next())if(e=e.value,c==("fairplay"==e.flavor)){a.Vc=e;break}};
wF=function(a,b){a.Bj=b;vF(a,new FC(g.Pc(a.Bj,function(c){return c.te()})))};
xma=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Oa.deviceParams.c,cver:a.Oa.deviceParams.cver};a.St&&(b.ptk=a.St,b.oid=a.SE,b.ptchn=a.RE,b.pltype=a.TE);return b};
g.xF=function(a){return fF(a)&&a.Zg?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.La&&a.La.zd||null};
yF=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.U(b.text):a.paidContentOverlayText};
zF=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?g.rd(b.durationMs):a.paidContentOverlayDurationMs};
AF=function(a){var b="";if(a.hx)return a.hx;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b};
g.BF=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
CF=function(a){return!!(a.If||a.adaptiveFormats||a.Eq||a.Qn||a.hlsvp)};
DF=function(a){var b=g.nb(a.me,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.qd&&(CF(a)||g.nb(a.me,"fresca")||g.nb(a.me,"heartbeat")||b)};
hF=function(a,b){var c=Wp(a),d={};if(b)for(var e=g.q(b.split(",")),f=e.next();!f.done;f=e.next())(f=f.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[f[1]]={width:f[2],height:f[3]});e=g.q(c);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d[f.itag];h&&(f.width=h.width,f.height=h.height)}return c};
YE=function(a,b){a.showShareButton=!!b;if(b){var c=b.buttonRenderer&&b.buttonRenderer.navigationEndpoint;c&&(a.oq=!!c.copyTextEndpoint)}};
FF=function(a,b){var c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.ug=c);if(a.ug){if(c=a.ug.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage);if(c=a.ug.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.bj=d,a.Kc=!0):(a.bj="",a.Kc=!1);if(d=c.defaultThumbnail)a.Hh=EE(d);(d=c.videoDetails&&
c.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer)&&ZE(a,b,d);if(d=c.videoDetails&&c.videoDetails.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.dw=d.title,a.cw=d.byline,d.musicVideoType&&(a.musicVideoType=d.musicVideoType);a.Mk=!!c.addToWatchLaterButton;YE(a,c.shareButton);c.playButton&&c.playButton.buttonRenderer&&c.playButton.buttonRenderer.navigationEndpoint&&(d=c.playButton.buttonRenderer.navigationEndpoint,d.watchEndpoint&&(d=d.watchEndpoint,d.watchEndpointSupportedOnesieConfig&&d.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig&&
(a.Qt=new hma(d.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig))));c.videoDurationSeconds&&(a.lengthSeconds=g.rd(c.videoDurationSeconds));a.ca("web_player_include_innertube_commands")&&c.webPlayerActionsPorting&&KE(a,c.webPlayerActionsPorting);if(a.ca("embeds_wexit_list_ajax_migration")&&c.playlist&&c.playlist.playlistPanelRenderer){c=c.playlist.playlistPanelRenderer;d=[];if(c.contents)for(var e=0,f=c.contents.length;e<f;e++){var h=c.contents[e].playlistPanelVideoRenderer;if(h){var l=
h.shortBylineText?g.U(h.shortBylineText):"",m=h.title?g.U(h.title):"";d.push({author:l,encrypted_id:h.videoId,title:m})}}d={index:c.currentIndex,list:c.playlistId,playlist_length:c.totalVideos,video:d};c.titleText&&(d.title=g.U(c.titleText));c.shortBylineText&&(d.author=g.U(c.shortBylineText));a.aB=d}}a.ug.playabilityStatus&&(a.Fo=a.ug.playabilityStatus,EF(a)&&(a.errorDetail="0",a.Fo&&(c=a.Fo.embeddedPlayerErrorMessageRenderer)))&&(a.ZA=c.embeddedPlayerErrorMessageRenderer);(c=a.ug.attestation)&&
IE(a,c)}};
$E=function(a,b,c,d){d={autonav:1,playnext:d};a.list&&(d.autoplay="1");if(b){if(b=b.autoplay)if(b=b.autoplay)if(b=b.sets)if(b=b[0])if(b=b.autoplayVideo)if((c=b.clickTrackingParams)&&(d.itct=c),b=b.watchEndpoint)a.autonav_watch_endpoint=b}else c&&(b=c.nextButton)&&(b=b.buttonRenderer)&&(b=b.navigationEndpoint)&&b.clickTrackingParams&&(d.itct=b.clickTrackingParams);d.itct||(d.feature="related-auto");a.endscreen_autoplay_session_data=g.Hd(d)};
ZE=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);if(d=c.channelThumbnailEndpoint&&c.channelThumbnailEndpoint.channelThumbnailEndpoint)if(d=d.urlEndpoint&&d.urlEndpoint.urlEndpoint)b.channel_path=d.url;if(d=c.collapsedRenderer)if(d=d.embeddedPlayerOverlayVideoDetailsCollapsedRenderer){var e=d.title;e&&(b.title=g.U(e));if(d=d.subtitle)b.subtitle=g.U(d)}if(c=c.expandedRenderer)if(c=c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(d=c.title)b.expanded_title=
g.U(d);if(d=c.subtitle)b.expanded_subtitle=g.U(d);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.On=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.My=b.toggledServiceEndpoint||null,a.Ly=b.defaultServiceEndpoint||null):(a.My=b.defaultServiceEndpoint||null,a.Ly=b.toggledServiceEndpoint||
null))}};
g.GF=function(a){return a.isLivePlayback&&!a.allowLiveDvr};
HF=function(a){return a.isLivePlayback&&a.allowLiveDvr};
tF=function(a){return a.nj()||a.mj()||a.Ym()||a.ij()};
zma=function(a){a.Ia=a.Ia.B};
g.IF=function(a){if(a.Fy)return null;var b=a.tC;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.JF=function(a){return a.Fy?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.KF=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.LF=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.q(a.playerResponse.annotations);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.playerAnnotationsExpandedRenderer&&b.playerAnnotationsExpandedRenderer.featuredChannel)return b.playerAnnotationsExpandedRenderer;return null};
MF=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.Oa.ea};
NF=function(a){if(a.isAd()&&a.videoId!=a.Oa.Lb)return a.Oa.Lb};
OF=function(a){return a.Bk||"detailpage"==MF(a)||a.mutedAutoplay};
PF=function(a){if(OF(a)){if("detailpage"==MF(a))return a.Cl||0<a.Ci;if("adunit"!=MF(a)||!a.In)return!0}return!1};
QF=function(a){var b=1,c=g.Q(a.Oa.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.Yp;g.R(a.Oa.experiments,"html5_enable_per_format_loudness")&&a.Ia&&a.Ia.u&&a.Ia.u[0]&&a.Rx[a.Ia.u[0].id]&&(c=a.Rx[a.Ia.u[0].id]);return Math.min(1,Math.pow(10,-c/20))||b};
cF=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===a.Oa.deviceParams.c&&"MUSIC"===a.Oa.deviceParams.ctheme;!a.nm&&(nC(a.Oa)||c)&&b.includes(a.musicVideoType)&&(a.nm=!0);if(b=g.ak())b=/Starboard\/([0-9]+)/.exec(g.Vc),b=10>(b?parseInt(b[1],10):NaN);c=a.Oa;c=("TVHTML5_CAST"===c.deviceParams.c||"TVHTML5"===c.deviceParams.c&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.Oa.deviceParams.ctheme;
var d;if(d=!a.nm)c||(c=a.Oa,c="TVHTML5"===c.deviceParams.c&&c.deviceParams.cver.startsWith("7")),d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.ca("cast_prefer_audio_only_for_atv_and_uploads")||a.ca("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.nm=!0);return!a.Oa.deviceHasDisplay||a.nm&&a.Oa.C};
SF=function(a){return RF(a)&&!!a.adaptiveFormats};
RF=function(a){return!!(a.ca("hoffle_save")&&a.Jm&&a.Oa.C)};
sF=function(a,b){if(a.Jm!=b&&(a.Jm=b)&&a.ma){var c=a.ma,d;for(d in c.u){var e=c.u[d];e.F=!1;e.u=null}}};
rF=function(a){return!(!(a.ca("hoffle_load")&&a.adaptiveFormats&&nw(a.videoId))||a.Jm)};
TF=function(a){if(!a.ma||!a.La||!a.Qc)return!1;var b=a.ma.u;return!!b[a.La.id]&&nv(b[a.La.id].B.u)&&!!b[a.Qc.id]&&nv(b[a.Qc.id].B.u)};
EF=function(a){return(a=a.Fo)&&a.showError?a.showError:!1};
UF=function(a){return a.ca("disable_rqs")?!1:gF(a,"html5_high_res_logging")};
gF=function(a,b){return a.ca(b)?!0:(a.fflags||"").includes(b+"=true")};
Ama=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
WE=function(a,b){var c=b.video_masthead_ad_quartile_urls;c&&(a.Vt=c.quartile_0_url,a.Yx=c.quartile_25_url,a.ay=c.quartile_50_url,a.dy=c.quartile_75_url,a.Wx=c.quartile_100_url,a.Wt=c.quartile_0_urls,a.Zx=c.quartile_25_urls,a.by=c.quartile_50_urls,a.ey=c.quartile_75_urls,a.Xx=c.quartile_100_urls)};
XF=function(a){return a?xB()?!0:VF&&5>WF?!1:!0:!1};
VE=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};
JE=function(a){if(a){if(hv(a))return a;a=iv(a);if(hv(a,!0))return a}return""};
YF=function(a){this.u=a};
Bma=function(a,b){zo(a,"version",b)};
g.ZF=function(a,b){this.type=a||"";this.id=b||""};
g.$F=function(a,b){g.P.call(this);this.Oa=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.qd=this.loaded=!1;this.sd=this.Sv=this.Vp=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Hh={};this.Ns=0;var c=b.session_data;c&&(this.sd=Tp(c));this.VH=0!==b.fetch;this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.kM="1"===b.mob;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(c=b.api)"string"===typeof c&&16===c.length?b.list="PL"+c:b.playlist=c;if(c=b.list)switch(b.listType){case "user_uploads":this.qd||(this.listId=new g.ZF("UU","PLAYER_"+c),this.loadPlaylist("/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:c}));break;case "search":Cma(this,c);break;default:var d=b.playlist_length;d&&(this.length=Number(d)||0);this.listId=new g.ZF(c.substr(0,
2),c.substr(2));(c=b.video)?(this.items=c.slice(0),this.loaded=!0):Dma(this)}else if(b.playlist){c=b.playlist.toString().split(",");0<this.index&&(this.items=[]);c=g.q(c);for(d=c.next();!d.done;d=c.next())(d=d.value)&&this.items.push({video_id:d});this.length=this.items.length;c=this.items.map(function(e){return e.video_id});
this.loadPlaylist("/list_ajax?style=json&action_get_templist=1",{video_ids:c.join(",")});this.loaded=!0}this.setShuffle(!!b.shuffle);if(c=b.suggestedQuality)this.quality=c;this.Hh=BE(b,"playlist_");this.dG=(c=b.thumbnail_ids)?c.split(","):[]};
aG=function(a){return!!(a.playlist||a.list||a.api)};
bG=function(a){var b=a.index+1;return b>=a.length?0:b};
cG=function(a){var b=a.index-1;return 0>b?a.length-1:b};
dG=function(a,b){a.index=g.be(b,0,a.length-1);a.startSeconds=0};
Cma=function(a,b){if(!a.qd){a.listId=new g.ZF("SR",b);var c={search_query:b};a.kM&&(c.mob="1");a.loadPlaylist("/search_ajax?style=json&embeddable=1",c)}};
Dma=function(a){if(!a.qd){var b=b||a.listId;b={list:b};var c=a.Ka();c&&c.videoId&&(b.v=c.videoId);a.loadPlaylist("/list_ajax?style=json&action_get_list=1",b)}};
eG=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.Ka();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;(d=b.index)?a.index=d:a.findIndex(c);a.setShuffle(!1);a.qd=!1;a.loaded=!0;a.Ns++;a.Vp&&a.Vp()}};
Ema=function(){};
gG=function(){this.u={};var a=g.wq("CONSISTENCY");a&&fG(this,{encryptedTokenJarContents:a})};
fG=function(a,b){if(b.encryptedTokenJarContents&&(a.u[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.u[b.encryptedTokenJarContents]},1E3*c);
g.vq("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
hG=function(){var a=g.L("LOCATION_PLAYABILITY_TOKEN");a&&(this.locationPlayabilityToken=a,this.u=void 0)};
iG=function(){hG.u||(hG.u=new hG);return hG.u};
g.kG=function(a,b){b=void 0===b?!0:b;var c=g.L("INNERTUBE_CONTEXT");if(!c)return g.kr(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};c=g.$b(c);var d=b,e,f;c.client||(c.client={});var h=c.client;"MWEB"===h.clientName&&(h.clientFormFactor=g.L("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");h.screenWidthPoints=window.innerWidth;h.screenHeightPoints=window.innerHeight;h.screenPixelDensity=Math.round(window.devicePixelRatio||1);h.screenDensityFloat=window.devicePixelRatio||1;
h.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var l=void 0===l?!1:l;g.Mr.getInstance();var m=g.Or(0,165)?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";g.uo("kevlar_apply_prefers_color_theme")&&(m=g.Or(0,165)?"USER_INTERFACE_THEME_DARK":g.Or(0,174)?"USER_INTERFACE_THEME_LIGHT":!g.uo("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT");
l=l?m:Uea()||m;h.userInterfaceTheme=l;if(g.uo("web_log_connection")){a:{if(m=(l=window.navigator)?l.connection:void 0){l=jG[m.type||"unknown"]||"CONN_UNKNOWN";m=jG[m.u||"unknown"]||"CONN_UNKNOWN";"CONN_CELLULAR_UNKNOWN"===l&&"CONN_UNKNOWN"!==m&&(l=m);if("CONN_UNKNOWN"!==l)break a;if("CONN_UNKNOWN"!==m){l=m;break a}}l=void 0}l&&(h.connectionType=l)}g.uo("web_populate_graft_url_killswitch")||"MWEB"!==h.clientName&&"WEB"!==h.clientName||(h.mainAppWebInfo={graftUrl:g.v.location.href});(l=g.wq("EXPERIMENTS_DEBUG"))?
h.experimentsToken="ZERO"===l?"GgIQAQ%3D%3D":l:delete h.experimentsToken;h=xo();gG.u||(gG.u=new gG);l=g.Pb(gG.u.u);c.request=Object.assign(Object.assign({},c.request),{internalExperimentFlags:h,consistencyTokenJars:l});l=g.Mr.getInstance();h=g.Or(0,58);l=l.get("gsml","");c.user=Object.assign({},c.user);h&&(c.user.enableSafetyMode=h);l&&(c.user.lockedSafetyMode=!0);(h=g.L("DELEGATED_SESSION_ID"))&&!g.uo("pageid_as_header_web")&&(c.user.onBehalfOfUser=h);d&&(d=g.rs())&&(c.clientScreenNonce=d);a&&(c.clickTracking=
{clickTrackingParams:a});g.uo("web_enable_client_location_service")&&(d=iG(),c.client||(c.client={}),d.u?(c.client.locationInfo||(c.client.locationInfo={}),c.client.locationInfo.latitudeE7=1E7*d.u.coords.latitude,c.client.locationInfo.longitudeE7=1E7*d.u.coords.longitude,c.client.locationInfo.horizontalAccuracyMeters=d.u.coords.accuracy):d.locationPlayabilityToken&&(c.client.locationPlayabilityToken=d.locationPlayabilityToken));if(g.uo("web_enable_ad_signals_in_it_context")){d=null===(e=c.adSignalsInfo)||
void 0===e?void 0:e.consentBumpParams;e=fq(void 0);h=e.bid;delete e.bid;c.adSignalsInfo={params:[],bid:h};e=g.q(Object.entries(e));for(h=e.next();!h.done;h=e.next())l=g.q(h.value),h=l.next().value,l=l.next().value,null===(f=c.adSignalsInfo.params)||void 0===f?void 0:f.push({key:h,value:""+l});!ur()&&d&&(c.adSignalsInfo.consentBumpParams=d)}return c};
lG=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
Fma=function(){var a=null;Kr().then(function(b){return a=b},function(b){return a=lG(b)});
return a};
Gma=function(){var a=Vm(1E3,"NO_BID");return Jm(Lm(pda([Kr(),a]),lG),function(){return a.cancel()})};
mG=function(a){return a.ob?g.Or(g.Mr.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
nG=function(a){this.u=a;this.C=g.Q(a.T().experiments,"bulleit_get_midroll_info_timeout_ms")||8E3;this.D=this.B=1};
tG=function(a,b,c,d){c=void 0===c?{}:c;var e=c.zo,f=c.ld;d=void 0===d?"":d;c=a.u.getVideoData(1);var h=a.u.T().Mj,l={AD_BLOCK:a.B++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:mG(a.u.T()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*oG(a.u),LACT:zp(),LIVE_INDEX:e?a.D++: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.u.getVisibilityState(),P_H:g.pG(a.u).getPlayerSize().height,P_W:g.pG(a.u).getPlayerSize().width,
YT_REMOTE:h?h.join(","):""},m=eq(dq);Object.keys(m).forEach(function(n){null!=m[n]&&(l[n.toUpperCase()]=m[n].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};(e=a.u.T().Aa)&&cq(b)&&(d.forced_experiments=e);b=$p(g.on(b,l),d);a.u.getVideoData().enableServerStitchedDai&&(b=b.concat("&expflag=enable_midroll_notify_for_bulleit%3Afalse"));d=b.split("?");if(2!=d.length)return Em(Error("Invalid AdBreakInfo URL"));e=g.q(d);d=e.next().value;e=e.next().value;g.R(a.u.T().experiments,"get_midroll_info_wexit")&&(f=Hma(a,b,l),f={rpc_data:JSON.stringify(f)},b=$p(b,f));f={};c.oauthToken&&bq()&&(f.Authorization="Bearer "+c.oauthToken);c=Vp(e);
e=a.u.T();return g.R(e.experiments,"get_midroll_info_wexit")?yr(b,{Wv:!0,format:"RAW",headers:f,method:"POST",dc:c,timeout:a.C,withCredentials:!0}):g.R(e.experiments,"get_midroll_info_use_client_rpc")?(c=qG(a.u.app),a=rG(a,b,l),g.sG(c,a,"/youtubei/v1/player/ad_break")):g.mC(e)?yr(d,{Wv:!0,format:"RAW",headers:f,method:"POST",dc:c,timeout:a.C,withCredentials:!0}):yr(b,{Wv:!0,format:"RAW",headers:f,method:"GET",timeout:a.C,withCredentials:!0})};
Jma=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=aq(b),f=uG(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=uG(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=Up(fq(c)).split("&");var l=new Map;b.forEach(function(m){m=m.split("=");1<m.length&&l.set(m[0].toString(),decodeURIComponent(m[1].toString()))});
l.has("bid")&&(h.bid=l.get("bid"));h.params=[];Ima.forEach(function(m){l.has(m)&&(m={key:m,value:l.get(m)},h.params.push(m))});
a.adSignalsInfo=h}a.client.unpluggedAppInfo||(a.client.unpluggedAppInfo={});a.client.unpluggedAppInfo.enableFilterMode=!1;b=d.deviceParams.cosver;null!=b&&"cosver"!==b&&(a.client.osVersion=b);b=d.deviceParams.cplatform;null!=b&&"cplatform"!==b&&""!==b&&(a.client.platform=b);b=d.deviceParams.cmodel;null!=b&&"cmodel"!==b&&(a.client.deviceModel=b);b=d.deviceParams.cplayer;null!=b&&"cplayer"!==b&&(a.client.playerType=b);d=d.deviceParams.cbrand;null!=d&&"cbrand"!==d&&(a.client.deviceMake=d);a.user||(a.user=
{});a.user.lockedSafetyMode=!1};
Kma=function(a,b,c){var d=!1;if(""==b)return d;b.split(",").forEach(function(e){var f={},h={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},l="ACTIVE";"!"==e[0]&&(e=e.substring(1),l="INACTIVE");e=e.split("-");3>e.length||(e[0]in vG&&(h.clientName=vG[e[0]]),e[1]in wG&&(h.platform=wG[e[1]]),h.applicationState=l,h.clientVersion=2<e.length?e[2]:"",c?(f.remoteClient=h,a.remoteContexts?a.remoteContexts.push(f):a.remoteContexts=[f]):a.remoteClients?a.remoteClients.push(h):a.remoteClients=
[h],d=!0)});
return d};
rG=function(a,b,c){var d=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?c.DRIFT_FROM_HEAD_MS:0,e=Lma.exec(b);e=null!=e&&2<=e.length?e[1]:"";var f=Mma.test(b),h=Nma.exec(b);h=null!=h&&2<=h.length?h[1]:"";var l=Oma.exec(b);l=null!=l&&2<=l.length&&!Number.isNaN(parseInt(l[1],10))?parseInt(l[1],10):1;var m=Pma.exec(b);m=null!=m&&2<=m.length?m[1]:"0";var n=g.fC(a.u.T()),p=g.kG(a.u.getVideoData(1).Ag,!0),r="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";Jma(p,b,r.toString(),a.u.T());var t={splay:!1,lactMilliseconds:c.LACT.toString(),
playerHeightPixels:c.P_H,playerWidthPixels:c.P_W,vis:c.VIS,signatureTimestamp:18564,autonavState:mG(a.u.T())},w={};Kma(w,c.YT_REMOTE,g.R(a.u.T().experiments,"use_remote_context_in_populate_remote_client_info"))&&(t.mdxContext=w);if(a=xG.includes(n)?void 0:g.wq("PREF")){w=a.split(/[:&]/);for(var x=0,y=w.length;x<y;x++){var D=w[x].split("=");if(("SML"==D[0].toUpperCase()||"GSML"==D[0].toUpperCase())&&1<D.length&&"TRUE"==D[1].toUpperCase()){p.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in
yG)for(a=a.split(/[:&]/),x=yG.FLAG_AUTO_CAPTIONS_DEFAULT_ON,w="f"+(1+Math.floor(x/31)).toString(),x=1<<Math.floor(x%31),y=0,D=a.length;y<D;y++){var F=a[y].split("=");if(F[0]==w&&parseInt("0x"+F[1],16)&x){a=!0;break a}}a=!1}t.autoCaptionsDefaultOn=a}b=Qma.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&h&&(p.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:t};e={adBlock:c.AD_BLOCK,params:e,breakIndex:l,breakPositionMs:m,clientPlaybackNonce:c.CPN,topLevelDomain:n,isProxyAdTagRequest:f,
context:p,adSignalsInfoString:Up(fq(r.toString())),overridePlaybackContext:b};h&&(e.videoId=h);c.LIVE_TARGETING_CONTEXT&&(e.liveTargetingParams=c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(e.breakLengthMs=(1E3*c.AD_BREAK_LENGTH).toString());d&&(e.driftFromHeadMs=d.toString());return e};
Hma=function(a,b,c){var d=g.wq("dkv"),e=Rma.exec(b);e=null!=e&&2<=e.length?Number(e[1]):0;e=isNaN(e)?0:e;var f=g.fC(a.u.T()),h=new Ema;h.clientName=a.u.T().ba.fp.toString();h.host=f;h.u=void 0;f=xG.includes(f)?void 0:g.wq("PREF");return{adBreakRequest:rG(a,b,c),adsCookie:d,clientInfo:h,lact:c.LACT.toString(),mediaTimeMs:e,vis:c.VIS,playerHeightPixels:c.P_H,playerWidthPixels:c.P_W,ytRemote:c.YT_REMOTE,prefCookie:f,signatureTimestamp:18564}};
zG=function(a,b,c){if(c&&c!==a.Xa)return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.xa.u.has(c.value))return!1;return!0};
PG=function(a,b,c){this.u=a;this.B=b;this.C=c};
QG=function(a,b,c,d,e,f){g.B.call(this);this.kb=a;this.ab=b;this.fc=c;this.Ca=d;this.B=e;this.u=f};
Tma=function(a,b,c){c.jm?(RG(a.kb.get(),"opportunity_type_ad_break_service_response_received",function(){return[]},b.slotId),Sma(a.B,b)):SG(a.u,c.Rg,b.slotId)};
Uma=function(a,b,c,d){var e=TG(a.Ca.get(),1);RG(a.kb.get(),"opportunity_type_ad_break_service_response_received",function(){return UG(a.fc.get(),c,d,e.clientPlaybackNonce,e.JA,e.daiEnabled,e)},b)};
VG=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)};
WG=function(a,b,c){c=void 0===c?!1:c;$a.call(this,a);this.Sk=c;this.args=[];b&&this.args.push(b)};
Vma=function(a,b,c,d,e,f,h){b=XG(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof WG?b:YG(a,d,e,b,c);return a instanceof WG?a:[a]};
ZG=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)};
$G=function(a,b){this.B=b;this.triggerType="trigger_type_before_content_video_id_started";this.triggerId=a(this.triggerType)};
aH=function(a){return"slot_type_player_bytes"===a.Xa&&a.Wb instanceof $G};
bH=function(a,b){this.B=b;this.triggerType="trigger_type_layout_id_entered";this.triggerId=a(this.triggerType)};
cH=function(a,b,c,d,e,f){this.D=b;this.B=c;this.visible=d;this.C=void 0===e?!1:e;this.F=void 0===f?!1:f;this.triggerType="trigger_type_media_time_range";this.triggerId=a(this.triggerType)};
dH=function(a){return a?"layout:  "+a.layoutType:""};
eH=function(a,b){var c=a?"trigger type: "+a.triggerType:"empty";if(b){var d=String(b.end);if(a instanceof cH&&a.C||a instanceof bH&&0x7ffffffffffff===b.end)d="MediaEnd";c+=" |start: "+b.start+(" |end: "+d)}return c};
fH=function(a,b,c,d,e){d=void 0===d?{}:d;if(!e||5E-4>Math.random())b=b||null,c=c||null,a=a instanceof Error?a:new Iq(a),d.category="H5 Ads Control Flow",b&&(d.slot=b?"slot:  "+b.Xa:""),c&&(d.layout=dH(c)),e&&(d.known_error_aggressively_sampled=!0),Oea(a,d),g.lr(a)};
XG=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Hg:new On(-0x8000000000000,-0x8000000000000),Xt:d},null!=c&&(d.Km=new On(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Hg:new On(0x7ffffffffffff,0x8000000000000),Xt:d},null!=c&&(d.Km=new On(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||fH("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||fH("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 WG("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={Hg:new On(a,e),Xt:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Km=new On(a,e)}return d;default:return new WG("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
gH=function(a,b,c,d,e,f){g.B.call(this);this.kb=a;this.fc=b;this.Zu=c;this.ya=d;this.u=e;this.Ca=f};
Wma=function(a,b,c){var d=[];a=g.q(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.renderer.invideoOverlayAdRenderer||e.renderer.adBreakServiceRenderer&&ZG(e);"AD_PLACEMENT_KIND_MILLISECONDS"===e.config.adPlacementConfig.kind&&f&&(f=XG(e.config.adPlacementConfig,0x7ffffffffffff),f instanceof WG||d.push({range:f.Hg,renderer:e.renderer.invideoOverlayAdRenderer?"overlay":"ABSR"}))}d.sort(function(h,l){return h.range.start-l.range.start});
a=!1;for(e=0;e<d.length-1;e++)if(d[e].range.end>d[e+1].range.start){a=!0;break}a&&(d=d.map(function(h){return h.renderer+"|s:"+h.range.start+("|e:"+h.range.end)}).join(","),fH("Conflicting renderers.",void 0,void 0,{detail:d,
cpn:b,videoId:c}))};
hH=function(a,b,c,d){this.C=a;this.Te=null;this.B=b;this.u=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.D=void 0===d?!1:d};
iH=function(a,b,c,d,e){g.tD.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.u=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null};
jH=function(a){return"AD_PLACEMENT_KIND_START"==a.u};
kH=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.u};
Xma=function(a){return a.end-a.start};
lH=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new On(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new On(Math.max(0,b.C-b.u),0x7ffffffffffff):new On(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.C);if(c&&(d=a,a=Math.max(0,a-b.u),a==d))break;return new On(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.Te;a=1E3*d.startSecs;if(c){if(a<b.B)return new On(a-4E3,a);c=Math.max(0,a-b.B-1E4);return new On(b.D?b.B:Math.floor(b.B+Math.random()*c),a)}return new On(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
mH=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
Yma=function(){this.url=null;this.height=this.width=0;this.adInfoRenderer=this.impressionTrackingUrls=this.clickTrackingUrls=null};
nH=function(){this.contentVideoId=null;this.macros={};this.imageCompanionAdRenderer=this.iframeCompanionRenderer=null};
oH=function(a){this.u=a};
Zma=function(a){var b=new oH(a.J);return{GI:function(){return b}}};
pH=function(a,b){this.u=a;this.Aa=b||{};this.K=String(Math.floor(1E9*Math.random()));this.N={};this.P=0};
$ma=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}};
qH=function(){g.P.call(this);var a=this;this.u={};g.dg(this,function(){return Object.keys(a.u).forEach(function(b){return delete a.u[b]})})};
sH=function(){if(null===rH){rH=new qH;Bl.getInstance().u="b";var a=Bl.getInstance(),b="h"==hl(a)||"b"==hl(a),c=!(uh.getInstance(),!1);b&&c&&(a.F=!0,a.I=new ica)}return rH};
ana=function(a,b,c){a.u[b]=c};
bna=function(a){this.C=a;this.B={};this.u=$f()?500:g.$B(a.T())?1E3:2500};
dna=function(a,b){if(!b.length)return null;var c=b.filter(function(d){if(!d.mimeType)return!1;d.mimeType in a.B||(a.B[d.mimeType]=a.C.canPlayType(d.mimeType));return a.B[d.mimeType]?!!d.mimeType&&"application/x-mpegurl"==d.mimeType.toLowerCase()||!!d.mimeType&&"application/dash+xml"==d.mimeType.toLowerCase()||"PROGRESSIVE"==d.delivery:!1});
return cna(a,c)};
cna=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.u||h<a.u||c&&!(f<c.minBitrate)||(c=e)}if(!c)for(c=null,d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,f=e.maxBitrate,h=e.minBitrate,f>a.u||(!c||f>c.maxBitrate?c=e:c&&f==c.maxBitrate&&h<c.minBitrate&&(c=e));if(!c)for(c=null,d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,f=e.minBitrate,h=e.maxBitrate,f<a.u||(!c||f<c.minBitrate?c=e:c&&f==c.minBitrate&&h>c.maxBitrate&&(c=e));return c};
tH=function(a,b){this.u=a;this.F=b;this.B=b.length;this.adBreakLengthSeconds=b.reduce(function(e,f){return e+f},0);
for(var c=0,d=a+1;d<b.length;d++)c+=b[d];this.adBreakRemainingLengthSeconds=c};
uH=function(a){return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",a.activeViewMeasurablePings||
[]],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",a.firstQuartilePings||[]],["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]]])};
ena=function(a){return(a=a.pings)?Object.fromEntries(uH(a)):{}};
vH=function(a,b,c,d,e){pH.call(this,a,ena(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.za=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.D=new tH(0,[]);this.I=this.ba=null;this.Ga=b;this.da=[];this.F={};this.ra=null;this.B=0;this.W=this.Z=this.C=null;this.ha=d;this.ka=e;this.X=null;b=this.u.skipOffsetMilliseconds||0;0<b&&(this.ra=b);this.F=Vp(this.u.playerVars||"");if(b=this.u.external)this.da=b.mediaFiles||[],b=b.durationMilliseconds,"number"===typeof b&&(this.B=b/1E3,this.F.length_seconds=
this.B.toString()),(b=dna(this.Ga,this.da))?(this.Z=b.uri,b=b.mimeType,this.F.url_encoded_third_party_media="url="+encodeURIComponent(this.Z)+"&type="+encodeURIComponent(b)):this.W=Error("Nonplayable third party ad media file.");else if(this.ha&&g.R(this.ha,"use_ivar_to_extract_ad_video_id")?this.C=this.u.externalVideoId||null:this.C=this.F.video_id,this.ba=this.F.ucid||null,this.B=CB(this.B,this.F.length_seconds),this.ka&&this.C&&(this.X=this.ka(this.C)),this.F.cta_conversion_urls)try{this.F.cta_conversion_urls=
JSON.parse(this.F.cta_conversion_urls)}catch(f){g.M(f)}this.I=this.u.clickthroughEndpoint||null;this.D=new tH(0,[this.B])};
wH=function(a){var b=a.F||{};1<a.D.B&&(b.slot_pos=a.D.u);b.autoplay="1";return b};
xH=function(a){return 0<a.B&&7.05>=a.B};
yH=function(){pH.apply(this,arguments)};
zH=function(){this.B=[];this.D=null;this.C=0};
AH=function(a,b){b&&a.B.push(b)};
BH=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};
CH=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};
DH=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
EH=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
fna=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=BH(a.impressionCommands)||[];b.error=BH(a.errorCommands)||[];b.mute=BH(a.muteCommands)||[];b.unmute=BH(a.unmuteCommands)||[];b.pause=BH(a.pauseCommands)||[];b.rewind=BH(a.rewindCommands)||[];b.resume=BH(a.resumeCommands)||[];b.skip=BH(a.skipCommands)||[];b.close=BH(a.closeCommands)||[];b.clickthrough=BH(a.clickthroughCommands)||[];b.fullscreen=BH(a.fullscreenCommands)||[];b.active_view_viewable=BH(a.activeViewViewableCommands)||
[];b.active_view_measurable=BH(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=BH(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=BH(a.endFullscreenCommands)||[];b.channel_clickthrough=BH(a.channelClickthroughCommands)||[];b.abandon=BH(a.abandonCommands)||[];b.progress=CH(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=CH(a.progressCommands.filter(function(c){return EH(c)&&ee(DH(c),0)}));
b.first_quartile=CH(a.progressCommands.filter(function(c){return EH(c)&&ee(DH(c),.25)}));
b.midpoint=CH(a.progressCommands.filter(function(c){return EH(c)&&ee(DH(c),.5)}));
b.third_quartile=CH(a.progressCommands.filter(function(c){return EH(c)&&ee(DH(c),.75)}));
b.complete=CH(a.progressCommands.filter(function(c){return EH(c)&&ee(DH(c),1)}));
return b};
FH=function(a){pH.call(this,a,fna(a));this.B=a.questions?a.questions.reduce(function(b,c){var d=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer;return d?b+(d.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0):0};
GH=function(a,b,c,d){this.id=b;this.X=a.placementStartPings||[];this.W=a.placementEndPings||[];this.C=d.Te;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.D=(this.K=e.getAdBreakUrl||"")?0:2;d.u=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=lH(b,d);if(null==f)d=new iH(b,new On(-1,-1),!1,"adcuerange:invalid",
2),d.deactivate(),d=[null,d];else{e=":"+(no.getInstance().u++).toString(36);var h=d.daiEnabled||d.Te;f=new iH(b,f,d.visible&&!h,"adcuerange:"+e,2);h=null;if(d.Te||0<d.u)if(d=lH(b,d,!0))h=new iH(b,d,!1,"prefetch:"+e,3),f.C=h,h.C=f;d=[h,f]}this.Z=d[0];this.u=d[1];this.B=c;this.N=!1;this.I={};this.P={};this.F=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
HH=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.u.u||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.u.u};
IH=function(a){return"AD_PLACEMENT_KIND_START"==a.u.u};
KH=function(a){var b={};gna(a,b);hna(b);b.LACT=JH(function(){return zp().toString()});
b.VIS=JH(function(){return a.getVisibilityState().toString()});
b.SDKV="h.3.0";b.VOL=JH(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
b.VED="";return b};
ina=function(a){var b={};if(!a.kind)return g.kr(Error("AdPlacementConfig without kind")),b;if("AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.kr(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=JH(cb(Math.round(g.rd(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=JH(cb("0"));return b};
JH=function(a){return{toString:function(){return a()}}};
jna=function(a,b,c){function d(l,m){var n=b[m];n&&(f[l]=n)}
function e(l,m){var n=b[m];n&&(f[l]=h(n))}
if(!b||g.Wb(b))return a;var f=Object.assign({},a),h=c?encodeURIComponent:function(l){return l};
e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
gna=function(a,b){b.CPN=JH(function(){var c;(c=a.getVideoData(1))?c=c.clientPlaybackNonce:(g.lr(Error("Video data is null.")),c=null);return c});
b.AD_MT=JH(function(){return LH(a,2)});
b.MT=JH(function(){return LH(a,1)});
b.P_H=JH(function(){return g.pG(a).getPlayerSize().height.toString()});
b.P_W=JH(function(){return g.pG(a).getPlayerSize().width.toString()});
b.PV_H=JH(function(){return g.pG(a).getVideoContentRect().height.toString()});
b.PV_W=JH(function(){return g.pG(a).getVideoContentRect().width.toString()})};
LH=function(a,b){var c=1E3*a.getCurrentTime(b,!1);return Math.round(Math.max(0,c)).toString()};
hna=function(a){a.CONN=JH(cb("0"));a.WT=JH(function(){return Date.now().toString()})};
MH=function(a){var b=Object.assign({},{});b.MIDROLL_POS=HH(a)?JH(cb(Math.round(a.u.start/1E3).toString())):JH(cb("0"));return b};
kna=function(a){var b={};b.SLOT_POS=JH(cb(a.D.u.toString()));return b};
NH=function(a,b){var c=b&&-1!=b.indexOf("load_timeout")?"402":"400",d={};return d.YT_ERROR_CODE=a.toString(),d.ERRORCODE=c,d.ERROR_MSG=b,d};
OH=function(a){for(var b={},c=g.q(lna),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
PH=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c={};Object.assign.apply(Object,[c].concat(g.la(b)));return c};
QH=function(){};
RH=function(a){this.u=a};
SH=function(a){this.u=a;bq()};
TH=function(a){g.B.call(this);var b=this;this.B=a;this.u=null;g.dg(this,function(){return b.u=null})};
VH=function(a){return UH(a)&&1==a.getPlayerState(2)};
UH=function(a){a=a.Tb();return void 0!==a&&2==a.getPlayerType()};
WH=function(a){a=a.T();return YB(a)&&!g.mC(a)&&"desktop-polymer"==a.playerStyle};
YH=function(a,b){var c=a.T();QB(c)||"3"!=c.controlsType||XH(g.pG(a),b)};
ZH=function(a){switch(a){case "abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "complete":return"complete";case "end_fullscreen":return"exitfullscreen";case "first_quartile":return"firstquartile";case "fullscreen":return"fullscreen";case "impression":return"impression";case "midpoint":return"midpoint";
case "mute":return"mute";case "pause":return"pause";case "progress":return"progress";case "resume":return"resume";case "skip":return"skip";case "start":return"start";case "third_quartile":return"thirdquartile";case "unmute":return"unmute"}return null};
mna=function(a){this.u=a;var b=Bl.getInstance();a=a.Jc();b.D!==a&&((b.D=a)||Sca(b))};
$H=function(a,b,c,d,e,f,h){f=void 0===f?new SH(new RH(d.getVideoData(1))):f;h=void 0===h?!1:h;g.B.call(this);this.B=a;this.P=b;this.C=c;this.u=d;this.N=e;this.I=f;this.K=Array.from(this.B.Aa.progress||[]);this.K.sort(function(l,m){return l.offsetMilliseconds-m.offsetMilliseconds});
this.D={uz:.25,Jz:.5,Sz:.75};this.F=null;this.W=h};
fI=function(a,b,c){!aI(a)&&0<c&&(bI(a,b),cI(a)?dI(a,b,c):eI(a,b,c))};
hI=function(a,b){aI(a)||(cI(a)?(bI(a,0,!0),dI(a,b,b)):(bI(a,0,!0),eI(a,0,0,!0)),gI(a,"complete"))};
bI=function(a,b,c){for(c=void 0===c?!1:c;a.B.P<a.K.length;){var d=iI(a,"progress"),e=a.K[a.B.P];if(e.offsetMilliseconds<=1E3*b||c){var f=e.baseUrl;f&&(e=e.headers||[],a.I.send(f,jI(a),d,e));a.B.P++}else break}};
eI=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.D.uz||d)&&gI(a,"first_quartile");(b>=c*a.D.Jz||d)&&gI(a,"midpoint");(b>=c*a.D.Sz||d)&&gI(a,"third_quartile")};
kI=function(a,b,c,d){if(null==a.F){if(c<d||1<c-d)return}else if(a.F>d||d>c)return;gI(a,b)};
dI=function(a,b,c){if(0<c&&0<b){var d=g.lI(a.u,a.u.getPresentingPlayerType());g.T(d,16)||g.T(d,32)||(kI(a,"first_quartile",b,c*a.D.uz),kI(a,"midpoint",b,c*a.D.Jz),kI(a,"third_quartile",b,c*a.D.Sz))}a.F=b};
mI=function(a,b){for(var c=iI(a,b),d=g.q(a.B.Aa[b]||[]),e=d.next();!e.done;e=d.next()){var f=e.value;if(e=f.baseUrl)f=f.headers||[],a.I.send(e,jI(a),c,f)}a.B.N[b]=!0};
gI=function(a,b){a.B.N.hasOwnProperty(b)||mI(a,b)};
nI=function(a,b){return a.B.N.hasOwnProperty(b)};
jI=function(a){for(var b={},c=KH(a.u),d=g.q(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b[e]=c[e].toString();return Object.assign(b,a.C)};
iI=function(a,b){var c=a.P;var d=a.B;if(d.ip()){var e=ZH(b);if(null==e)d={};else{var f;(f=d.ea()())||(f=(f=c.u)&&f.Tb?(f=f.Tb())&&2==f.getPlayerType()?oI(f):null:null);f?(c={opt_adElement:f,opt_fullscreen:c.u.isFullscreen()},d=Gl(e,d.K,c)):d={}}}else d={};return d?Object.assign({},d):{}};
pI=function(a,b){switch(b){case "action-companion":case "shopping-companion":case "image-companion":case "videowall-companion":case "ads-engagement-panel":if(2==a.u.getPresentingPlayerType())a.u.sendVideoStatsEngageEvent(1,void 0,2);else if(a.N){var c=a.N.u;c&&c()}else g.M(Error("trackCompanionEngagement is called butcompanionEngagementHandler is null"),"ERROR")}};
cI=function(a){return!g.R(a.u.T().experiments,"html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.W};
aI=function(a){return cI(a)&&!nI(a,"impression")};
qI=function(a){return cI(a)&&nI(a,"seek")};
sI=function(a,b,c,d,e,f){c=void 0===c?{}:c;this.componentType=a;this.renderer=void 0===b?null:b;this.macros=c;this.layoutId=d;this.u=e;this.B=f;this.id=rI(a)};
rI=function(a){return a+(":"+(no.getInstance().u++).toString(36))};
tI=function(a){this.u=a};
uI=function(a,b){if(0===b||1===b&&(a.u.u||g.mC(a.u)||g.$B(a.u)||bC(a.u)||!g.sC))return!0;var c=g.te("video-ads");return null!=c&&"none"!==tg(c,"display")};
g.vI=function(a,b){this.state=a;this.xj=b};
wI=function(a,b){return g.T(a.state,b)&&!g.T(a.xj,b)?1:!g.T(a.state,b)&&g.T(a.xj,b)?-1:0};
g.xI=function(a,b){return 0<wI(a,b)};
yI=function(a,b,c,d,e,f,h){f=void 0===f?0:f;h=void 0===h?!1:h;g.P.call(this);this.J=a;this.Fa=d;this.B=e;this.B.u[b.K]=this;this.B.subscribe("adactiveviewmeasurable",this.lF,this);this.B.subscribe("adfullyviewableaudiblehalfdurationimpression",this.mF,this);this.B.subscribe("adoverlaymeasurableimpression",this.nF,this);this.B.subscribe("adoverlayunviewableimpression",this.oF,this);this.B.subscribe("adoverlayviewableendofsessionimpression",this.pF,this);this.B.subscribe("adoverlayviewableimmediateimpression",
this.qF,this);this.B.subscribe("adviewableimpression",this.rF,this);this.ad=b;this.Z=[];this.macros=c;this.F=!1;this.W=!uI(new tI(this.J.T()),f);this.daiEnabled=h};
AI=function(a){a.daiEnabled&&!g.R(a.J.T().experiments,"html5_dai_debug_logging_killswitch")&&fH("AdCoordinator registered for play",void 0,void 0,{adCpn:zI(a),contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce,adEverStarted:a.F,adBlocked:a.W});a.W?a.Bd("ui_unstable"):a.Ld()};
CI=function(a,b){vb(a.Z,b);BI(a,b,1)};
DI=function(a){a=a.Fa;a.C=PH(a.C,NH(0,"No playable media files can be selected"));gI(a,"error")};
BI=function(a,b,c){0!=b.length&&(b=g.Pc(b,function(d){return new mH(d,c,d.id)}),a.V("onAdUxUpdate",b))};
zI=function(a){return(a=a.J.getVideoData(2))&&a.clientPlaybackNonce||""};
EI=function(a,b,c,d,e,f,h,l){yI.call(this,a,b,e,f,h);this.u=this.D=null;this.P=!1;this.da=c;this.ba=d;this.ha=l};
FI=function(a){if(!a.ha)return!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===a.da)return a.Lk(),!0;var b=a.J.getVideoData(2);a.P=b?a.ba===b.videoId:!1;a.D=function(c,d){a.P=d?a.ba===d.videoId:!1};
a.J.addEventListener("videodatachange",a.D);a.u=function(){a.P&&(a.D&&(a.J.removeEventListener("videodatachange",a.D),a.D=null),a.u&&(a.J.removeEventListener("onAdStart",a.u),a.u=null),a.Lk())};
a.J.addEventListener("onAdStart",a.u);return!0};
GI=function(){pH.apply(this,arguments)};
HI=function(a,b,c,d,e){sI.call(this,"action-companion",a,b,c,d,e)};
II=function(a,b,c,d,e,f){EI.call(this,a,b,void 0===f?"AD_PLACEMENT_KIND_UNKNOWN":f,b.u.adVideoId,c,d,e,g.R(a.T().experiments,"only_show_companion_with_video_ad_or_command_for_action"));this.C=null;this.I=new HI(this.ad.u,this.macros)};
JI=function(a,b){if(!b)return!1;var c=a.I.renderer;return c&&c.adVideoId==b.videoId};
nna=function(a){var b={};b.abandon=a.abandonCommands&&BH(a.abandonCommands.commands)||[];return b};
KI=function(a){pH.call(this,a,nna(a))};
LI=function(a,b){sI.call(this,"ad-action-interstitial",a,b)};
MI=function(a,b,c,d,e,f){yI.call(this,a,b,c,d,e,1);this.C=b;this.u=b.u.durationMilliseconds||0;this.Ua=null;this.D=f};
NI=function(a,b){sI.call(this,"ad-choice-interstitial",a,b)};
OI=function(a,b,c,d,e,f){yI.call(this,a,b,c,d,e,1);this.u=b;this.C=f};
PI=function(a){pH.call(this,a);this.B=Vp(this.u.playerVars||"")};
QI=function(){pH.apply(this,arguments)};
RI=function(){pH.apply(this,arguments)};
SI=function(){pH.apply(this,arguments)};
TI=function(){pH.apply(this,arguments)};
UI=function(){pH.apply(this,arguments)};
VI=function(){pH.apply(this,arguments)};
WI=function(){pH.apply(this,arguments)};
XI=function(a,b,c,d,e,f,h,l,m,n,p,r,t){this.ba=a;this.K=b;this.P=c;this.W=d;this.B=e;this.N=f;this.u=h;this.Z=l;this.X=m;this.C=n;this.F=p;this.D=r;this.I=t};
YI=function(a,b,c,d,e){yI.call(this,a,b,c,d,e);var f=this;this.D=b;this.u=new g.H(function(){f.Bd("load_timeout")},1E4);
g.C(this,this.u);this.C=new g.Wr(this);g.C(this,this.C)};
ZI=function(a){sI.call(this,"ad-message",a)};
$I=function(a,b,c,d,e,f,h){yI.call(this,a,b,c,d,e);var l=this;this.C=b;this.K=b.u.durationMs||0;this.I=h;this.N=!1;this.D=this.u=0;this.P=function(){var m=l.J.getProgressState().current;m<l.u?l.Pd():m>l.D&&l.Ae()}};
bJ=function(a){if(a.I&&a.N){a.N=!1;a=g.q(a.I.listeners);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(c.u){b=c.u;c.u=void 0;c.B=void 0;c=c.C();aJ(c.Bb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);c=g.q(c.B);for(var d=c.next();!d.done;d=c.next())d.value.Fe(b)}else fH("Received AdNotify terminated event when no slot is active")}}};
cJ=function(a,b){sI.call(this,"ads-engagement-panel",a,b)};
dJ=function(a,b,c,d,e){yI.call(this,a,b,c,d,e)};
eJ=function(a,b,c,d){sI.call(this,"invideo-overlay",a,b,c,d);this.u=d};
fJ=function(a,b,c,d,e){yI.call(this,a,b,c,d,e);this.u=b};
gJ=function(a,b){sI.call(this,"persisting-overlay",a,b)};
hJ=function(a,b,c,d,e){yI.call(this,a,b,c,d,e);this.u=b};
iJ=function(){sI.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.jJ=function(a,b){for(var c={},d=g.q(Object.keys(b)),e=d.next();!e.done;c={Tu:c.Tu},e=d.next())e=e.value,c.Tu=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.Tu}}(c));
return a};
kJ=function(a){return a?g.U(a):null};
lJ=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};
ona=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
mJ=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
rna=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&&(pna(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=kJ(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
qna(a,b,c,d))}};
pna=function(a,b,c){var d=kJ(b.confirmLabel)||"",e=kJ(b.title)||"",f=[];if(b.adReasons)for(var h=g.q(b.adReasons),l=h.next();!l.done;l=h.next())f.push(kJ(l.value)||"");a.whyThisAdInfo={closeButton:d,menuTitle:"",targetingReasonHeader:e,targetingReasons:f,adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};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)}};
qna=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:kJ(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=lJ(b.navigationEndpoint);var h=mJ(b[1]),l=[mJ(b[0])];(b=ona(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)};
sna(a,e,d)}}};
sna=function(a,b,c){a.muteAdInfo.goneText=kJ(b.title)||"";a.muteAdInfo.questionText=kJ(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=kJ(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=kJ(e.reason)||"";e=lJ(e.endpoint)[0];a.push({label:d,url:e})}};
nJ=function(a,b){var c=new iJ;c.adBadgeText="Ad";1<a.B&&(c.adPodPositionInfoString=g.jJ("$AD_INDEX of $ADS_COUNT",{AD_INDEX:String(a.u+1),ADS_COUNT:String(a.B)}));c.adBreakLengthSeconds=a.adBreakLengthSeconds;c.adBreakRemainingLengthSeconds=a.adBreakRemainingLengthSeconds;c.adPodPosition=a.u+1;c.adPodLength=a.B;null!=a.C&&(c.adBreakEndSeconds=a.C/1E3);b&&(c.adVideoId=b);return c};
oJ=function(a,b,c,d,e,f){this.B=a;this.C=b;this.u=KH(d);if(f)for(a=g.q(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.u[b]=f[b];this.D=c;this.I=d;this.F=e};
qJ=function(a,b,c){b.isSkippable=!0;b.skipTime=c.skipOffsetMilliseconds?Math.floor(c.skipOffsetMilliseconds/1E3):0;if(c.skippableRenderer)switch(Object.keys(c.skippableRenderer)[0]){case "skipButtonRenderer":var d=c.skippableRenderer.skipButtonRenderer;b.skip=function(){var e=d.adRendererCommands&&d.adRendererCommands.clickCommand;e?pJ(a,e):a.D.ik()};
b.skipShown=function(){pJ(a,d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
rJ=function(a,b,c){rna(b,c,function(d){pJ(a,d)},function(d){a.sendAdsPing(d)})};
pJ=function(a,b){if(b){var c=sJ(a);Array.isArray(b)?b.forEach(function(d){return a.B.executeCommand(d,c)}):a.B.executeCommand(b,c)}};
sJ=function(a){if(g.R(a.I.T().experiments,"dynamic_command_macro_resolution_on_tvhtml5_killswitch"))return a.C;for(var b={},c=g.q(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.u[d].toString();return Object.assign(b,a.C)};
tJ=function(){return{adNextParams:"",adSystem:0,attributionInfo:null,clickThroughUrl:"",executeCommand:function(){},
instreamAdPlayerOverlayRenderer:null,instreamSurveyAdRenderer:null,slidingTextPlayerOverlayRenderer:null,isBumper:!1,isPostroll:!1,isSkippable:!1,muteAdInfo:null,skipTime:0,videoId:"",videoUrl:"",whyThisAdInfo:null,muteAd:function(){},
muteAdClicked:function(){},
sendAdsPing:function(){},
skip:function(){},
endSurveyOnSubmitted:function(){},
skipShown:function(){},
whyThisAdClicked:function(){},
whyThisAdClosed:function(){},
daiEnabled:!1,remoteSlotsData:null}};
tna=function(a,b,c,d,e,f,h){this.u=c;this.B=new oJ(a,b,d,e,f);this.C=h};
una=function(a,b,c){var d=tJ();d.instreamAdPlayerOverlayRenderer=b;c&&(d.adNextParams=c);d.executeCommand=function(e){pJ(a.B,e)};
if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":qJ(a.B,d,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":rJ(a.B,d,b.adInfoRenderer.adHoverTextButtonRenderer)}d.isBumper=xH(a.u)&&!d.isSkippable;d.isPostroll=a.u.isPostroll;a.u.isSkippable();b=a.u.C;c=a.u.getVideoUrl();b?d.videoId=b:c&&(d.videoUrl=c);if(b=(b=a.u.I)&&b.urlEndpoint)d.clickThroughUrl=b.url||"";d.sendAdsPing=
function(e){a.B.sendAdsPing(e)};
d.daiEnabled=a.C;d.remoteSlotsData=a.u.X;return d};
uJ=function(a,b,c,d,e){sI.call(this,"shopping-companion",a,b,c,d,e)};
vJ=function(a,b,c,d,e,f){EI.call(this,a,b,void 0===f?"AD_PLACEMENT_KIND_UNKNOWN":f,b.u.adVideoId,c,d,e,g.R(a.T().experiments,"only_show_companion_with_video_ad_or_command_for_shopping"));this.C=new uJ(this.ad.u,this.macros)};
wJ=function(a){this.value=a};
xJ=function(a){this.value=a};
yJ=function(a){this.value=a};
zJ=function(a){this.value=a};
AJ=function(){wJ.apply(this,arguments)};
BJ=function(a){this.value=a};
CJ=function(a){this.value=a};
DJ=function(a){this.value=a};
EJ=function(a){this.value=a};
FJ=function(a){this.value=a};
GJ=function(a){this.value=a};
HJ=function(){wJ.apply(this,arguments)};
IJ=function(a){this.value=a};
JJ=function(a){this.value=a};
KJ=function(a){this.value=a};
LJ=function(a){this.value=a};
MJ=function(a){this.value=a};
NJ=function(a){this.value=a};
OJ=function(a){this.value=a};
PJ=function(a){this.value=a};
QJ=function(a){this.value=a};
RJ=function(a){this.value=a};
SJ=function(a){this.value=a};
TJ=function(a){this.value=a};
UJ=function(a){this.value=a};
VJ=function(a){this.value=a};
WJ=function(a){this.value=a};
XJ=function(a){this.value=a};
YJ=function(a){this.value=a};
ZJ=function(a){this.value=a};
$J=function(a){this.value=a};
aK=function(a){this.value=a};
bK=function(a){this.value=a};
cK=function(a){this.value=a};
dK=function(a){this.value=a};
eK=function(a){this.value=a};
fK=function(){wJ.apply(this,arguments)};
gK=function(){wJ.apply(this,arguments)};
vna=function(a){var b={};if(!a.questions||0===a.questions.length)return b;a=(a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer||a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer).surveyAdQuestionCommon;return(a=a.instreamAdPlayerOverlay&&a.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)?a:b};
xna=function(a,b,c,d,e,f){this.u=new oJ(a,b,c,d,e,wna(f))};
yna=function(a,b){var c=tJ();c.instreamSurveyAdRenderer=b;c.executeCommand=function(e){pJ(a.u,e)};
var d=vna(b);if(d.skipOrPreviewRenderer)switch(Object.keys(d.skipOrPreviewRenderer)[0]){case "skipAdRenderer":qJ(a.u,c,d.skipOrPreviewRenderer.skipAdRenderer)}if(d.adInfoRenderer)switch(Object.keys(d.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":rJ(a.u,c,d.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(e){a.u.sendAdsPing(e)};
return c};
wna=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=JH(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
b.SURVEY_ELAPSED_MS=JH(a);return b};
iK=function(a,b,c){g.P.call(this,!0);var d=this;this.I=b;this.F=c;this.B=a;this.Ua=new g.Tm(200);this.Ua.ua("tick",function(){var e=Date.now(),f=e-d.D;d.D=e;d.u+=f;d.u>=d.B&&(d.u=d.B,d.Ua.stop());e=d.u/1E3;d.F&&d.F.Gc(e);hK(d,{current:e,duration:d.B/1E3})});
g.C(this,this.Ua);this.u=0;this.C=null;g.dg(this,function(){d.C=null});
this.D=0};
hK=function(a,b){a.I.va("onAdPlaybackProgress",b);a.C=b};
jK=function(a){sI.call(this,"survey",a)};
kK=function(a,b,c,d,e,f,h){yI.call(this,a,b,c,d,e,1);var l=this;this.D=b;this.C=new g.Wr;g.C(this,this.C);this.C.R(this.J,"resize",function(){450>g.pG(l.J).getPlayerSize().width&&(g.Yr(l.C),l.Pd())});
this.K=0;this.I=h(this,function(){return""+(Date.now()-l.K)});
if(this.u=g.$B(a.T())?new iK(1E3*b.B,a,f):null)g.C(this,this.u),this.C.R(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&(m=l.D.u,(m=m.questions&&m.questions[0])?(m=(m=m.instreamSurveyAdMultiSelectQuestionRenderer||m.instreamSurveyAdSingleSelectQuestionRenderer)&&m.surveyAdQuestionCommon,pJ(l.I.u,m&&m.timeoutCommands)):g.kr(Error("Expected a survey question in InstreamSurveyAdRenderer.")))})};
lK=function(a,b){sI.call(this,"survey-interstitial",a,b)};
mK=function(a,b,c,d,e){yI.call(this,a,b,c,d,e,1);this.u=b};
nK=function(a){sI.call(this,"ad-text-interstitial",a)};
oK=function(a,b,c,d,e,f){yI.call(this,a,b,c,d,e);this.C=b;this.u=b.u.durationMilliseconds||0;this.Ua=null;this.D=f};
pK=function(a,b){var c=void 0===c?!0:c;var d=g.L("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.yd(window.location.href);e&&d.push(e);e=g.yd(a);if(g.nb(d,e)||!e&&pc(a,"/"))if(g.uo("autoescape_tempdata_url")&&(d=document.createElement("a"),g.id(d,a),a=d.href),a&&(d=Ad(a),e=d.indexOf("#"),d=0>e?d:d.substr(0,e)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.rs()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&(c=b,d="ST-"+qd(d).toString(36),c=c?g.Hd(c):"",g.vq(d,c,f||5))}else f=b,c="ST-"+qd(d).toString(36),
f=f?g.Hd(f):"",g.vq(c,f,5)};
g.qK=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;d=d.location;a=g.Ld(a,b)+c;a=a instanceof g.Fc?a:g.Lc(a);d.href=g.Gc(a)};
g.rK=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.L("EVENT_ID");d&&(b.ei||(b.ei=d));b&&pK(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.qK(a))};
g.sK=function(a,b,c){c&&pK(a,c);c=g.Kc(a);c=g.Gc(c);a!=c&&g.Eo(Error("Unsafe window.open URL: "+a));a=c;window.open(a,b||qd(a).toString(36))};
tK=function(a){a=void 0===a?null:a;sI.call(this,"ad-channel-thumbnail");this.channelIconThumbnailUrl=a};
uK=function(a){a=void 0===a?null:a;sI.call(this,"ad-title");this.videoTitle=a};
vK=function(a){a=void 0===a?null:a;sI.call(this,"advertiser-name");this.channelName=a};
wK=function(a,b,c,d){sI.call(this,"player-overlay",a,{},b,d);this.C=c;this.u=d};
xK=function(a){sI.call(this,"skip-button",a)};
yK=function(a){sI.call(this,"visit-advertiser",a);var b={};var c=a.text;a=a.navigationEndpoint;null!=c&&null!=c.runs&&null!=a?(b.runs=[g.Zb(c.runs[0])],b.runs[0].navigationEndpoint=a):(b={text:"Visit advertiser's site"},a&&(b.navigationEndpoint=a),b={runs:[b]});this.visitAdvertiserLabel=b};
zK=function(a,b,c,d,e,f,h,l,m,n,p){yI.call(this,a,b,c,d,e,1,l);var r=this;this.X=!0;this.I=n;this.u=b;this.C=h;this.ba=new g.Wr(this);g.C(this,this.ba);this.D=new g.H(function(){r.Bd("load_timeout")},1E4);
g.C(this,this.D);this.ha=!g.R(a.T().experiments,"bulleit_unstarted_event_killswitch");this.N=!1;this.da=m(this);this.ea=f;this.K=p;this.P=!1};
zna=function(a){if(a.daiEnabled&&g.R(a.J.T().experiments,"enable_topsoil_wta_for_halftime")){var b=a.u.D,c=b.D,d=b.C,e=b.u;b=b.F;if(void 0===c)g.kr(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.kr(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,h){return f+h},0),Math.min(Math.max((d-c)/1E3-e,0),a.u.B)}};
CK=function(a,b){if(null!==a.I&&a.P){a.P=!1;for(var c=AK(a),d=g.q(a.I.listeners),e=d.next();!e.done;e=d.next())if(e=e.value,e.u&&e.u.layoutId===c){var f="adabandoned"===b?"abandoned":"normal";BK(e.C(),e.B,e.u,f);e.B=null;e.u=null}else fH("Received AD_ENDED for unknown layout")}};
DK=function(a){return(a=a.J.getVideoData(2))?a.clientPlaybackNonce:""};
AK=function(a){if(a=a.u.u.elementId)return a;g.kr(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
GK=function(a){var b=a.u.u,c=b.playerOverlay&&b.playerOverlay.instreamAdPlayerOverlayRenderer;c||(c={});var d=a.J.T();if(g.mC(d)&&!c.skipOrPreviewRenderer){var e=a.J.getDuration(2);isFinite(e)&&33<e&&!a.u.isSkippable()&&!g.mC(d)&&g.kr(new Iq("Instream ad is skippable by length, but was was marked nonskippable.",{adLengthSecs:e,IVAR:b}));d={};a.u.isSkippable()&&!xH(a.u)?d.skipAdRenderer=EK(a):d.adPreviewRenderer=FK(a,!1,xH(a.u));c.skipOrPreviewRenderer=d}c.skipOrPreviewRenderer&&g.Wb(c.skipOrPreviewRenderer)&&
g.kr(new Iq("IAPOR.skipOrPreview was filled, but empty.",b));return c};
EK=function(a){var b={preskipRenderer:{}};b.preskipRenderer.adPreviewRenderer=FK(a,!0,!1);b.skippableRenderer={};a=b.skippableRenderer;var c={message:{}};c.message.text="Skip Ad";a.skipButtonRenderer=c;return b};
FK=function(a,b,c){var d=a.J.getVideoData(1),e={};if(b||c){var f={},h={};c=c?g.jJ("Your video will begin in $TIME_REMAINING",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"}):g.jJ("You can skip to video in $TIME_REMAINING",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"});h.text=c;h.isTemplated=!0;f.templatedAdText=h;e.templatedCountdown=f}else f={},h=g.jJ("Video will play after ad",{NEW_LINE:"\n"}),f.text=h,f.isTemplated=!1,e.staticPreview=f;b&&(e.durationMilliseconds=5E3);e.thumbnail={};b=e.thumbnail;
f={};f.url=hC(a.J.T(),d.videoId,"mqdefault.jpg");f.width=320;f.height=180;b.thumbnail={thumbnails:[f]};return e};
Ana=function(a){function b(x,y){var D=a.lQ,F=Object.assign({},{});F.FINAL=JH(cb("1"));F.SLOT_POS=JH(cb("0"));return PH(D,OH(F),y)}
function c(x){return null==x?{create:function(){return null}}:{create:function(y,D,F){var G=b(y,D);
D=a.Aq(y,G);y=x(y,G,D,F);g.C(y,D);return y}}}
var d=c(function(x,y,D){return new fJ(a.J,x,y,D,a.jf)}),e=c(function(x,y,D,F){return new vJ(a.J,x,y,D,a.jf,F)}),f=c(function(x,y,D){return new MI(a.J,x,y,D,a.jf,a.Ea)}),h=c(function(x,y,D){return new hJ(a.J,x,y,D,a.jf)}),l=c(function(x,y,D,F){return new II(a.J,x,y,D,a.jf,F)}),m=c(function(x,y,D){return new oK(a.J,x,y,D,a.jf,a.Ea)}),n=c(function(x,y,D){return new mK(a.J,x,y,D,a.jf)}),p=c(function(x,y,D){return new OI(a.J,x,y,D,a.jf,a.Ea)}),r=c(function(x,y,D){return new $I(a.J,x,y,D,a.jf,a.Ea,a.qj)}),
t=c(function(x,y,D){return new YI(a.J,x,y,D,a.jf,a.Ea)}),w=c(function(x,y,D){return new dJ(a.J,x,y,D,a.jf)});
this.u=new XI({create:function(x,y){var D=PH(b(x,y),OH(kna(x))),F=a.Aq(x,D),G=new zK(a.J,x,D,F,a.jf,a.cI,a.Ea,a.daiEnabled,function(O){return new tna(a.Ea,D,x,O,a.J,a.Bh,a.daiEnabled)},a.rj,a.ag);
g.C(G,F);return G}},d,e,{create:function(x,y){var D=a.Aq(x,y),F=new kK(a.J,x,y,D,a.jf,a.Ea,function(G,O){return new xna(a.Ea,y,G,a.J,a.Bh,O)});
g.C(F,D);return F}},f,h,l,m,n,p,r,t,w)};
HK=function(a,b,c){this.B=a;this.u={};this.D=void 0===b?!1:b;this.C=void 0===c?!1:c};
Bna=function(a,b){var c=a.startSecs+a.durationSecs;c=0>=c?null:c;if(null===c)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}var d=Math.max(a.startSecs,0);return{hI:new On(d,c),FJ:new qt(d,c-d,a.context,a.identifier,a.event,a.u)}};
IK=function(){this.u=[]};
JK=function(a,b,c){var d=g.Ab(a.u,b);if(0<=d)return b;b=-d-1;return b>=a.u.length||a.u[b]>c?null:a.u[b]};
Cna=function(a){this.B=new IK;this.u=new HK(a.iI,a.tQ,a.hQ)};
KK=function(){pH.apply(this,arguments)};
LK=function(a){KK.call(this,a);g.Pc((a.image&&a.image.thumbnail?a.image.thumbnail.thumbnails:null)||[],function(b){return new g.he(b.width,b.height)})};
MK=function(a){this.u=a};
NK=function(a){a=[a,a.C].filter(function(d){return!!d});
for(var b=g.q(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a};
PK=function(a,b){var c=a.u;g.um(function(){return OK(c,b,1)})};
Dna=function(a,b,c){this.C=a;this.u=b;this.B=c;this.D=a.getCurrentTime()};
Fna=function(a,b){var c=void 0===c?Date.now():c;if(a.B)for(var d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=c,h=a.u;QK({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:Ena(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.u,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:f,contentCpn:h}});"unknown"===e.event&&RK("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.u);e=e.startSecs+e.u/1E3;e>a.D&&a.C.getCurrentTime()>e&&RK("DAI_ERROR_TYPE_LATE_CUEPOINT",
a.u)}};
Gna=function(a,b,c){a.B&&QK({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})};
SK=function(a,b){a.B&&QK({driftRecoveryInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,driftRecoveryMs:b.driftRecoveryMs.toString(),breakDurationMs:Math.round(b.DC-b.WE).toString(),driftFromHeadMs:Math.round(1E3*oG(a.C)).toString()}})};
Hna=function(a,b){a.B&&QK({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.UH}})};
RK=function(a,b){QK({daiStateTrigger:{errorType:a,contentCpn:b}})};
QK=function(a){g.Lq("adsClientStateChange",a)};
Ena=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"}};
TK=function(a){this.J=a;this.preloadType="2";this.adVideoId=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.D=this.u=this.hh=!1;this.adFormat=null;this.clientName=(a=!g.R(this.J.T().experiments,"html5_ad_csi_tracker_initialization_killswitch"))?this.J.T().deviceParams.c:g.L("INNERTUBE_CLIENT_NAME",void 0);this.clientVersion=a?this.J.T().deviceParams.cver:g.L("INNERTUBE_CLIENT_VERSION",void 0);this.F=a?this.J.T().deviceParams.cbrand:"";this.I=a?this.J.T().deviceParams.cmodel:"";this.playerType=
"html5";this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="vod"};
VK=function(a,b,c,d,e,f){UK(a);var h=a.J.getVideoData(1),l=a.J.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;0>=e?UK(a):(a.actionType=a.C?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=f?"live":"vod",a.D=d+1===e,a.hh=!0,a.hh&&(BA("c",a.clientName,a.actionType),BA("cver",a.clientVersion,a.actionType),g.R(a.J.T().experiments,"html5_ad_csi_tracker_initialization_killswitch")||
(BA("cbrand",a.F,a.actionType),BA("cmodel",a.I,a.actionType)),BA("yt_pt",a.playerType,a.actionType),BA("yt_pre",a.preloadType,a.actionType),BA("yt_abt",Ina(a.B),a.actionType),a.contentCpn&&BA("cpn",a.contentCpn,a.actionType),a.videoId&&BA("docid",a.videoId,a.actionType),a.adCpn&&BA("ad_cpn",a.adCpn,a.actionType),a.adVideoId&&BA("ad_docid",a.adVideoId,a.actionType),BA("yt_vst",a.videoStreamType,a.actionType),a.adFormat&&BA("ad_at",a.adFormat,a.actionType)))};
UK=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.B="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.hh=!1;a.u=!1};
WK=function(a){a.u=!1;FA("video_to_ad",["apbs"],void 0,void 0)};
YK=function(a){a.D?XK(a):(a.u=!1,FA("ad_to_ad",["apbs"],void 0,void 0))};
XK=function(a){a.u=!1;FA("ad_to_video",["pbresume"],void 0,void 0)};
ZK=function(a){a.hh&&!a.u&&(a.C=!1,a.u=!0,"ad_to_video"!==a.actionType&&CA("apbs",void 0,a.actionType))};
Ina=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"1";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"2";case "AD_PLACEMENT_KIND_END":return"3";default:return"unknown"}};
$K=function(){};
g.aL=function(a){return(a=Jna[a.toString()])?a:"LICENSE"};
g.bL=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
cL=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.bL(b,c)};
dL=function(a,b){return cL(a,a.state|b)};
eL=function(a,b){return cL(a,a.state&~b)};
fL=function(a,b,c){return cL(a,(a.state|b)&~c)};
g.T=function(a,b){return!!(a.state&b)};
g.gL=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.hL=function(a){return g.T(a,8)&&!g.T(a,2)&&!g.T(a,1024)};
ID=function(a){return a.Gb()&&!g.T(a,16)&&!g.T(a,32)};
Kna=function(a){return g.T(a,8)&&g.T(a,16)};
g.iL=function(a){return g.T(a,1)&&!g.T(a,2)};
jL=function(a){return g.T(a,128)?-1:g.T(a,2)?0:g.T(a,64)?-1:g.T(a,1)&&!g.T(a,32)?3:g.T(a,8)?1:g.T(a,4)?2:-1};
lL=function(a){var b=g.Ke(g.Qb(kL),function(c){return!!(a&kL[c])});
g.Cb(b);return"yt.player.playback.state.PlayerState<"+b.join(",")+">"};
mL=function(a,b,c,d,e,f,h,l){g.P.call(this);this.Zc=a;this.J=b;this.u=d;this.F=this.u.B instanceof pH?this.u.B:null;this.B=null;this.Z=!1;this.K=c;this.W=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.ba=0;this.ea=!1;this.Vg=e;this.Hm=f;this.Pj=h;this.X=!1;this.daiEnabled=l};
nL=function(a){if(UH(a.J)){var b=a.J.getVideoData(2),c=a.u.P[b.Yb]||null;if(!c)g.R(a.J.T().experiments,"html5_dai_debug_logging_killswitch")||fH("AdPlacementCoordinator ended because no mapped ad is found",void 0,void 0,{adCpn:b.clientPlaybackNonce,contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce}),a.Ft();else if(!a.B||a.B&&a.B.ad!==c)g.R(a.J.T().experiments,"html5_dai_debug_logging_killswitch")||fH("AdPlacementCoordinator played an ad due to ad to ad transition",void 0,void 0,{adCpn:b.clientPlaybackNonce,
contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce}),a.Ld(c)}else 1===a.J.getPresentingPlayerType()&&(g.R(a.J.T().experiments,"html5_dai_debug_logging_killswitch")||fH("AdPlacementCoordinator ended due to ad to content transition",void 0,void 0,{contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce}),a.B&&a.Ft())};
oL=function(a){(a=a.baseUrl)&&g.at(a,void 0,nn(a))};
pL=function(a,b){VK(a.K,a.u.u.u,b,a.mB(),a.oB(),a.isLiveStream())};
rL=function(a){qL(a.Zc,a.u.u,a);a.daiEnabled&&!a.u.N&&(Lna(a,a.pB()),a.u.N=!0)};
Lna=function(a,b){for(var c=sL(a),d=a.u.u.start,e=[],f=g.q(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=tL(h);e.push({externalVideoId:h.C,originalMediaDurationMs:(1E3*h.B).toString(),trimmedMediaDurationMs:(parseInt(h.u.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.D.D=a.u.u.start;h.D.C=c;if(!Mna(a,h,d,m)||l!==m)break;d=l}c=b.reduce(function(n,p){return n+tL(p)},0);
Gna(a.Vg,Xma(a.u.u),c);Hna(a.Vg,{cueIdentifier:a.u.C&&a.u.C.identifier,UH:e})};
tL=function(a){var b=1E3*a.B;return 0<parseInt(a.u.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.u.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.u.trimmedMaxNonSkippableAdDurationMs,10):b};
sL=function(a){var b=a.u.u.end;a=JK(a.Hm,a.u.u.start,b);return Math.min(b,null===a?Infinity:a)};
Mna=function(a,b,c,d){var e=a.Pj.create(b,OH(MH(a.u)),a.u.u.u);c=e.cB(c,d);g.eg(e);if(!c)return!1;a.u.P[c]=b;return!0};
Nna=function(a){if(a.ea)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.A()/1E3)-a.ba;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
uL=function(a,b,c,d){this.u=a;this.B=b;this.C=c;this.D=d};
vL=function(){var a=this;this.u=[];g.uo("screen_manager_wait_for_csn")&&(g.uo("web_lifecycles")&&Ona[0].push(this.B),Ds("loggingScreenCreated",function(){a.B()}),Ds("clearWaitForNavigationJobs",function(){a.u=[]}))};
wL=function(){vL.u||(vL.u=new vL);return vL.u};
xL=function(a,b){var c=g.ls(b);var d=g.rs(void 0),e=g.ps(void 0);d&&e&&g.Is(a.client,d,e,[c])};
Pna=function(a){var b=wL();g.Na("midTransition")||"UNDEFINED_CSN"===g.rs()?b.u.push(a):a()};
yL=function(a,b,c,d,e,f){g.P.call(this);this.F=a;this.B=b;this.C=c;this.I=d;this.u=e;this.D=f;Qna(this)};
Rna=function(a,b){var c={isEmpty:!0,oC:!1,Rg:[]};if(!b)return c;b&&b.trackingParams&&xL(wL(),b.trackingParams);if(b&&b.adThrottled)return c.oC=!0,c;var d=b.playerAds;if(!d||!d.length)return c;d=d.map(function(f){return f.adPlacementRenderer}).filter(function(f){return f&&null!=f.renderer});
if(g.ob(d))return c;if(0<a.u.u.end){var e=a.u.u.end.toString();d.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==f.kind&&"-1"==f.adTimeOffset.offsetEndMilliseconds&&f.adTimeOffset.offsetEndMilliseconds!=e&&(f.adTimeOffset.offsetEndMilliseconds=e)})}c.Rg=d;
c.isEmpty=!1;return c};
Qna=function(a){[a.u.Z,a.u.u].filter(function(b){return null!=b}).forEach(function(b){qL(a.B,b,a)})};
zL=function(){KK.apply(this,arguments)};
AL=function(a){return a.length?g.Pc(a[0].loggingUrls||[],function(b){return b.baseUrl}):[]};
BL=function(a,b,c,d,e,f,h){EI.call(this,b,d.B,d.u.u,d.B.u.adVideoId,e,f,h,g.R(b.T().experiments,"only_show_companion_with_video_ad_or_command_for_image"));this.ka=c;this.I=d;this.C=d.B;this.X=a;this.N=this.ea=this.K=null;a=this.I.u;a.visible=!1;qL(this.X,a,this)};
DL=function(a,b,c,d,e,f,h,l){mL.call(this,a,b,c,d,e,f,h,l);this.D=d.B;this.I=-1;this.N=this.C=null;this.P=CL(this.Yr())};
EL=function(a){a.I++;var b=a.Yr();b?a.Ld(b):a.Yj()};
CL=function(a){return a?Sna.some(function(b){return a instanceof b}):!1};
Tna=function(a){this.u=new uL(function(b){b=new mL(a.Zc,a.J,a.QA(),b,a.Vg,a.Hm,a.Pj,a.daiEnabled);rL(b);return b},function(b){return new yL(a.Zu,a.Zc,a.J,a.Xu,b,a.Vg)},function(b){var c=a.Aq(b.B);
b=new BL(a.Zc,a.J,a.dI,b,a.SQ,c,a.jf);g.C(b,c);return b},function(b){b=new DL(a.Zc,a.J,a.QA(),b,a.Vg,a.Hm,a.Pj,a.daiEnabled);
rL(b);return b})};
FL=function(a,b){zH.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.Lq("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),AH(this,new QI(a.adStart.adMessageRenderer)));if(a.linearAds)for(var c=[],d=g.q(a.linearAds),e=d.next();!e.done;e=d.next())e=e.value,e.instreamVideoAdRenderer?(e=b(e.instreamVideoAdRenderer),AH(this,e),c.push(e.B)):e.adActionInterstitialRenderer?(e=new KI(e.adActionInterstitialRenderer),AH(this,e)):e.adIntroRenderer&&(e=new PI(e.adIntroRenderer),
AH(this,e),this.C=1),this.B.filter(function(f){return f instanceof vH}).forEach(function(f,h){if(f instanceof vH){var l=new tH(h,c);
f.D=l}})};
GL=function(a,b){zH.call(this);var c=a.persistingOverlay;this.D=c&&c.persistingAdOverlayRenderer?new TI(c.persistingAdOverlayRenderer):null;AH(this,Una(this,a.adVideoStart));a:{if(c=a.linearAd){if(c.instreamVideoAdRenderer){c=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){c=new FH(c.instreamSurveyAdRenderer);break a}}c=null}AH(this,c);(c=a.adVideoEnd)?c.adActionInterstitialRenderer?(this.C=1,c=new KI(c.adActionInterstitialRenderer)):c=null:c=null;AH(this,c)};
Una=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.C=1,new KI(b.adActionInterstitialRenderer)):b.adTextInterstitialRenderer?new WI(b.adTextInterstitialRenderer):b.adMessageRenderer?(g.Lq("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new QI(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new VI(b.surveyTextInterstitialRenderer):null};
HL=function(a,b,c){this.C=a;this.u=b;this.B=c};
IL=function(a){var b=new RH(a.KA),c=new SH(b);return{AI:function(){return b},
ow:function(){return c}}};
JL=function(a){this.u=a};
KL=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,h=e?a.u.create(e,f):null;return new GH(b,c,h,d)}catch(l){g.M(l)}};
Vna=function(a){var b=new JL(a.OH);return{lB:function(){return b}}};
LL=function(a){g.B.call(this);this.u=a;this.C=new mna(a.J);this.B=new TH(a.J);g.C(this,this.B)};
Wna=function(a){return function(){return new TK(a.u.J)}};
ML=function(a){return function(b,c){return new $H(b,a.C,c,a.u.J,a.B,a.u.Bh,a.u.daiEnabled)}};
NL=function(a){g.B.call(this);var b=this;this.B=a;this.u=null;g.dg(this,function(){return b.u=null});
var c=Vr(a);if(c){var d=function(){b.u&&b.u(!!Tr())};
this.B.addEventListener(c,d);g.dg(this,function(){b.B.removeEventListener(c,d)})}};
OL=function(a){g.B.call(this);this.u=a};
Xna=function(a){var b=window.document;return g.mC(a.T())?new NL(b):new OL(a)};
PL=function(a){g.B.call(this);this.u=new Dna(a.J,a.contentCpn,a.daiEnabled)};
RL=function(a){QL=a&&a.data};
TL=function(a){SL=a&&a.data};
VL=function(a){UL=a&&a.data};
XL=function(a){WL=a&&a.data};
YL=function(){WL=UL=QL=null};
bM=function(){g.B.call(this);var a=this;this.Mc=new Map;this.u=new Map;ZL(this,"commandExecutorCommand",function(b,c,d){b=b.commands;b=void 0===b?[]:b;c=void 0===c?{}:c;d=void 0===d?{}:d;a.la();b=g.q(b);for(var e=b.next();!e.done;e=b.next())a.executeCommand(e.value,c,d)});
$L(this,"commandExecutorCommand",function(b,c){aM(a,b.commands,c)});
ZL(this,"clickTrackingParams",function(){});
$L(this,"clickTrackingParams",function(){})};
Yna=function(a,b){ZL(a,b.ai(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
Zna=function(a,b){$L(a,b.ai(),function(c,d){b.hj(c,d)})};
ZL=function(a,b,c){a.la();a.Mc.get(b)&&g.M(Error("Extension name "+b+" already registered"));a.Mc.set(b,c)};
$L=function(a,b,c){a.la();a.u.get(b)&&g.M(Error("Extension name "+b+" already registered"));a.u.set(b,c)};
aM=function(a,b,c){b=void 0===b?[]:b;a.la();var d=[],e=[],f=g.q(b);for(b=f.next();!b.done;b=f.next())b=b.value,b.hasOwnProperty("pingingEndpoint")||b.hasOwnProperty("adPingingEndpoint")?d.push(b):e.push(b);d=g.q(d);for(b=d.next();!b.done;b=d.next())cM(a,b.value,c);e=g.q(e);for(b=e.next();!b.done;b=e.next())cM(a,b.value,c)};
cM=function(a,b,c){a.la();b.loggingUrls&&dM(a,"loggingUrls",b.loggingUrls,c);b=g.q(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;eM.hasOwnProperty(d)||dM(a,d,e,c)}};
fM=function(a,b,c,d,e){e=void 0===e?{}:e;(a=a.Mc.get(b))||new Iq("Unhandled field",b);try{a(c,d,e)}catch(f){g.M(f)}};
dM=function(a,b,c,d){(a=a.u.get(b))||new Iq("Unhandled field",b);try{a(c,d)}catch(e){g.M(e)}};
hM=function(a,b,c,d,e){g.P.call(this);var f=this;this.u=b;this.ra=null;this.Lb=c;this.ea=e.ag;this.da=e.Ck;c=this.u.getVideoData(1).getPlayerResponse()||{};this.D=!gM(this.ea)&&c.playerConfig&&c.playerConfig.daiConfig&&(c.playerConfig.daiConfig.enableDai||c.playerConfig.daiConfig.enableServerStitchedDai)||!1;this.ob=Zma({J:b}).GI();this.B=this.C=null;this.F=new Map;c=this.u.T().experiments;var h=IL({KA:b.getVideoData(1)}),l=new LL({Bh:h.ow(),J:b,daiEnabled:this.D});g.C(this,l);this.I=new Set;this.ka=
-1;this.ha=[];this.W=null;this.P=new Map;this.X=new Map;this.Z=new Set;this.K=new g.Wr(this);g.C(this,this.K);this.N=new g.Wr(this);g.C(this,this.N);this.Aa=this.Za=this.za=!1;this.ba=g.mC(b.T());this.Rb=d;d=new PL({contentCpn:this.u.getVideoData(1).clientPlaybackNonce,eW:this,daiEnabled:this.D,J:this.u});g.C(this,d);this.yb=d.u;d=new Cna({iI:this,tQ:g.R(c,"html5_recognize_predict_start_cue_point"),hQ:g.R(c,"html5_persist_cue_range_killswitch")});this.Ja=d.u;this.Na=d.B;var m=cc(OH(KH(this.u)));e=
new Ana({Ea:this,cI:l.B,jf:sH(),Bh:h.ow(),J:this.u,lQ:m,Aq:ML(l),daiEnabled:this.D,rj:e.rj,ag:this.ea,qj:e.qj});this.Pb=(new Tna({Xu:this.Lb,Pj:e.u,Zu:a,Zc:this,dI:this.ob,jf:sH(),QA:Wna(l),Vg:this.yb,Hm:this.Na,J:this.u,SQ:m,Aq:function(n){return ML(l)(n,m)},
daiEnabled:this.D})).u;this.Ga=Vna({OH:new HL(new bna(b),c,function(n){return f.X.has(n)?f.X.get(n):null})}).lB();
this.Qa=Xna(this.u);g.C(this,this.Qa);this.Ub=g.vC(this.u.T())?g.R(this.u.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit_living_room"):g.R(this.u.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit")};
oM=function(a,b){var c=a.u.getVideoData(1);if(c.ov||g.L("SERVED_VIA_SPF_HISTORY"))g.R(a.u.T().experiments,"directly_unlock_preroll_on_cached_playbacks_for_bulleit")?a.da.u():iM(a);else{if(WH(a.u)){var d=jM(a.u);d.addEventListener("updateKevlarOrC3Companion",RL);d.addEventListener("onPlaShelfInfoCardsReady",TL);d.addEventListener("updateEngagementPanelAction",VL);d.addEventListener("changeEngagementPanelVisibility",XL);window.addEventListener("yt-navigate-start",YL)}a.K.R(a.u,"applicationplayerstatechange",
a.PM);a.K.R(a.u,g.wD("ad"),a.Mt,a);a.K.R(a.u,g.xD("ad"),a.qN,a);a.K.R(a.u,"aduxclicked",a.AM);a.K.R(a.u,"videodatachange",a.KP);d=$na(a,b);d=kM(a,d);d=lM(a,d);0<d.length&&mM(a,d);a.W&&(c.subscribe("cuepointupdated",a.Jx,a),a.D&&c.ma&&a.Jx(Qz(c.ma,0)));nM(a.ea)||iM(a);g.um(a.nR,a)}};
$na=function(a,b){return b.filter(function(c){return"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)?(!a.D&&g.mC(a.u.T())&&a.u.getVideoData(1).Bg()||(a.W=c),!1):!0})};
kM=function(a,b){a.P=new Map;return b.filter(function(c){return"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)&&c.elementId?(a.P.set(c.elementId,c),!1):!0})};
lM=function(a,b){a.X=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.X.set(c.hostElementId,c),!1):!0})};
pM=function(a,b){return b.every(function(c){c=a.F.get(c);return null==c?(g.M(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof yL?!1:c instanceof mL?!c.ji():!0})};
iM=function(a){var b=aoa(a);if(0<b.length){nM(a.ea)||pM(a,b)&&a.da.u();var c=g.Q(a.u.T().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.ba&&g.$B(a.u.T())?(c=new g.H(function(){qM(a,b)},c),g.C(a,c),c.start()):g.um(function(){qM(a,b)})}else nM(a.ea)||a.da.u()};
boa=function(a,b){if(!b)return{};var c=!!a.B&&a.B||null;c?(c=c.B,c=c.ad.ip()?iI(c.Fa,b):{}):c={};return c};
aoa=function(a){for(var b=rM(a),c=g.q(b),d=c.next();!d.done;d=c.next())a.I["delete"](d.value);return b};
rM=function(a){var b=[];a=g.q(a.I);for(var c=a.next();!c.done;c=a.next())c=c.value,jH(c)&&b.push(c);return b};
doa=function(a,b,c){c=void 0===c?null:c;b=a.Ga.create(b,coa(a),a.ha.length,c);a.ha=a.ha.concat(b);return b};
qM=function(a,b){if(!a.la())for(var c=g.q(b),d=c.next();!d.done;d=c.next())a.Mt(d.value)};
mM=function(a,b,c){b=doa(a,b,void 0===c?null:c);return 0==b.length?null:b.map(function(d){return a.Pb.create(d)})};
uM=function(a,b){b.Zm()?(g.eg(a.C),a.C=b):(sM(a,b),b.nC()&&tM(a,b))};
sM=function(a,b){a.C&&a.C.Ep().start<b.Ep().start&&((g.R(a.u.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_action")&&vM(a)||g.R(a.u.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_image")&&wM(a)||g.R(a.u.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_shopping")&&xM(a))&&b.ji()?yM(a):b.Sw()&&yM(a))};
vM=function(a){return!!a.C&&a.C.Es()};
wM=function(a){return!!a.C&&a.C.Qw()};
xM=function(a){return!!a.C&&a.C.Is()};
yM=function(a){var b=a.ob,c=b.u.getVideoData(1);b.u.va("updateKevlarOrC3Companion",{contentVideoId:c&&c.videoId});g.eg(a.C);a.C=null};
tM=function(a,b){a.B&&zM(a,a.D);a.B=b;b.ji()&&AM(a)};
AM=function(a){a.za||(a.N.R(a.u,"presentingplayerstatechange",a.SL),a.N.R(a.u,"internalAbandon",a.qM),a.N.R(a.u,"progresssync",a.PP),a.N.R(a.u,"onVolumeChange",a.RP),a.N.R(a.Qa,"fullscreentoggled",a.DN),a.za=!0);g.I(a.u.getRootNode(),"ad-showing");a.D||(g.I(a.u.getRootNode(),"ad-interrupting"),g.R(a.u.T().experiments,"enable_html5_teal_ad_badge")&&WH(a.u)&&g.I(a.u.getRootNode(),"ad-teal-design"),g.BM(a.u.app,2))};
zM=function(a,b,c){var d=!!a.B&&a.B||null,e=d&&d.ji()&&(UH(a.u)||a.D);d=b&&d&&d.reset()||null;a.B&&CM(a,a.B);a.B=null;a.ka=-1;e&&DM(a,c);a.Aa||a.da.u();b&&d&&(d.Ep().B=!1,rL(d))};
DM=function(a,b){g.Yr(a.N);a.za=!1;g.Bn(a.u.getRootNode(),"ad-showing");a.D||(a.Ub?(a.Aa||a.da.u(),EM(a),a.u.cueVideoByPlayerVars({},2)):(a.u.cueVideoByPlayerVars({},2),EM(a)),g.Bn(a.u.getRootNode(),"ad-interrupting"),g.R(a.u.T().experiments,"enable_html5_teal_ad_badge")&&g.Bn(a.u.getRootNode(),"ad-teal-design"));b&&b(a.u)};
EM=function(a){if(a.Za)!a.ba&&g.$B(a.u.T())&&(g.R(a.u.T().experiments,"release_player_on_abandon_for_bulleit_living_room")||g.R(a.u.T().experiments,"release_player_on_abandon_for_bulleit_lr_ads_frontend"))&&g.FM(a.u,2);else if(g.FM(a.u,2),!a.ba){var b=g.lI(a.u,1);g.T(b,4)&&!g.T(b,2)&&a.u.playVideo()}};
qL=function(a,b,c){if(b instanceof iH){if(a.ba&&kH(b)&&g.T(g.lI(a.u,1),64)&&!a.D){var d=1E3*a.u.getCurrentTime(1)||0;d!=b.start&&b.contains(d)&&b.deactivate()}a.F.has(b)?g.M(Error(b.toString()+" has already been seen")):(a.I.add(b),a.F.set(b,c),jH(b)||g.GM(a.u,[b],1))}else g.M(Error("Should use AdCueRange instead of CueRange"))};
coa=function(a){var b=1E3*a.u.getDuration(1);return new hH(b,1E3*a.u.getCurrentTime(1)||0,g.R(a.u.T().experiments,"enable_upg_processed_dvr_dai")?a.D:a.u.getVideoData(1).Bg(),g.R(a.u.T().experiments,"html5_recognize_predict_start_cue_point"))};
OK=function(a,b,c){g.HM(a.u.app,b,c);b=g.q(b);for(c=b.next();!c.done;c=b.next())c=c.value,a.I["delete"](c),a.F["delete"](c)};
CM=function(a,b){for(var c=a.F,d=g.q(c),e=d.next();!e.done;e=d.next()){e=g.q(e.value);var f=e.next().value;if(e.next().value==b){c["delete"](f);break}}g.eg(b)};
JM=function(a,b){IM(a.u.app,b);switch(b){case 1:a.ka=1;break;case 0:a.ka=0}};
KM=function(a){g.Wr.call(this);this.u=a;this.R(this.u,"onAdUxUpdate",this.N)};
LM=function(a,b,c,d,e){sI.call(this,"image-companion",a,b,c,d,e)};
MM=function(a){KM.call(this,a)};
NM=function(a){g.B.call(this);this.u=a};
OM=function(a){NM.call(this,!0);this.B=a};
eoa=function(a,b){function c(f){return{toString:f}}
var d={},e=a.getVideoData(1);d.CPN=c(function(){return e&&e.clientPlaybackNonce||null});
d.ASR=c(function(){return e&&e.adSafetyReason||null});
d.EI=c(function(){return e&&e.eventId||null});
d.AD_CPN=c(function(){return b.ra});
d.AD_MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(2))).toString()});
d.MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1))).toString()});
d.P_H=c(function(){return a.getPlayerSize().height.toString()});
d.PV_H=d.P_H;d.P_W=c(function(){return a.getPlayerSize().width.toString()});
d.PV_W=d.P_W;d.CONN="0";d.WT=c(function(){return Date.now().toString()});
d.LACT=c(function(){return zp().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
PM=function(a,b){g.B.call(this);var c=this;this.C=[];this.K=!1;this.B=0;this.F=this.I=this.D=!1;this.W=null;var d=(0,g.z)(a,b);this.u=new g.H(function(){return d(c.W)},300);
g.C(this,this.u);this.P=this.N=Infinity};
QM=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.C.includes(d.identifier))return!0}return!1};
SM=function(){var a="ytp-id-"+RM.toString();RM++;return a};
g.TM=function(a){g.B.call(this);this.Aa={};this.Rb={};this.element=this.createElement(a)};
UM=function(a,b,c,d){if("{{"===d.substr(0,2))a.Rb[d]=[b,c];else return d};
foa=function(a,b){var c=[];if(!b)return c;for(var d=g.q(b),e=d.next();!e.done;e=d.next())if(e=e.value,null!=e){var f=e.nodeType;1===f||3===f?c.push(e):e&&"string"===typeof e.G?c.push(a.createElement(e)):e.element?c.push(e.element):"string"===typeof e&&-1!==e.indexOf("\n")?e.split("\n").forEach(function(h,l){0<l&&c.push(g.Fe("BR"));c.push(g.Ge(h))}):c.push(g.Ge(e))}return c};
VM=function(a,b,c,d){if("child"===c){g.He(b);var e;void 0===d?e=void 0:!Array.isArray(d)||d&&"string"===typeof d.G?e=[d]:e=d;c=foa(a,e);c=g.q(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.E(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.Gc(g.Kc(a))),b.setAttribute(c,a))};
g.V=function(a){g.TM.call(this,a);this.Wa=!0;this.N=!1;this.listeners=[]};
g.WM=function(a,b){b?a.show():a.hide()};
g.XM=function(a){g.V.call(this,a);this.ba=new g.P;g.C(this,this.ba)};
W=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.XM.call(this,c);this.api=a;this.Ea=b;this.macros={};this.componentType=d;this.K=null;this.nb=h;this.layoutId=e;this.u=f;this.Ga=null;this.Za=new OM(this.element);g.C(this,this.Za);this.Qa=this.R(this.element,"click",this.onClick);this.ea=[];this.Z=new PM(this.onClick,this);g.C(this,this.Z);this.ob=!1;this.W=null};
YM=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.Eo(Error("Got null or undefined adText object")),"";var c=g.pd(a.text);if(!a.isTemplated)return c;if(null==b)return g.Eo(Error("Missing required parameters for a templated message")),c;for(var d=g.q(Object.entries(b)),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;f=f.next().value;c=c.replace("{"+e+"}",f)}return c};
ZM=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.ob(a.thumbnails)||null==a.thumbnails[0].url)?"":g.pd(a.thumbnails[0].url)};
goa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.ob(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.he(0,0):new g.he(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
bN=function(a,b,c){g.$M(a.api,b,a);g.aN(a.api,b,c)};
eN=function(a,b,c){g.cN(a.api,b)&&g.dN(a.api,b,c,a.u)};
fN=function(a,b){b=void 0===b?null:b;var c=a.api.T();!(0<a.ea.length)&&c.u&&g.R(a.api.T().experiments,"use_touch_events_for_bulleit_mweb")&&(JB?0:"ontouchstart"in document.documentElement&&($f()||Zf()))&&(a.Eb(a.Qa),b&&a.Eb(b),a.ea=[a.R(a.element,"touchstart",a.ZL,a),a.R(a.element,"touchmove",a.YL,a),a.R(a.element,"touchend",a.XL,a)])};
gN=function(a){return a&&a.thumbnails&&!g.ob(a.thumbnails||null)&&a.thumbnails[0].url?g.pd(a.thumbnails[0].url):""};
hN=function(a,b,c,d,e,f){f=void 0===f?!1:f;W.call(this,a,b,{G:"img",L:"ytp-ad-image"},"ad-image",c,d,void 0===e?null:e);this.B=f;this.hide()};
g.iN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,U:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
jN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",U:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.kN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},S:[{G:"path",U:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.lN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},S:[{G:"path",U:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
mN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{G:"path",U:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{G:"path",U:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
nN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{G:"path",qb:!0,U:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
oN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{G:"path",qb:!0,U:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.pN=function(){return{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",U:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
qN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,U:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
fill:"#fff"}}]}};
rN=function(){return{G:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",U:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
sN=function(){return{G:"svg",U:{viewBox:"0 0 24 24"},S:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",U:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
tN=function(){return{G:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},S:[{G:"path",U:{d:"M0 0h48v48H0z",fill:"none"}},{G:"path",U:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
g.uN=function(){return{G:"svg",U:{viewBox:"0 0 24 24"},S:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",U:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
vN=function(){return{G:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",U:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
wN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{G:"path",qb:!0,U:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
xN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.yN=function(){return{G:"svg",U:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{G:"path",U:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
zN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
AN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,U:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
BN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
CN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.DN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{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"}}]}};
g.EN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,U:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
FN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
GN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
HN=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{G:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},S:[{G:"path",U:{d:"M0 0h48v48H0z",fill:"none"}},{G:"path",U:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]};case "CHECK_BOX":return{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},
{G:"path",U:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",U:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.pN();case "INFO_OUTLINE":return tN();case "REMOVE_CIRCLE":return{G:"svg",
U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",U:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return xN();case "LIKE":return g.uN();case "DISLIKE":return sN();default:return g.lr(new Iq("Unexpected icon:",a)),null}};
IN=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;h=void 0===h?!1:h;e={G:"button",ia:["ytp-ad-button"].concat(e)};null!=l&&(e.U={tabindex:l});W.call(this,a,b,e,void 0===f?"button":f,c,d);this.B=this.C=this.D=null;this.F=h;this.hide()};
hoa=function(a){var b=null;null!=a.B&&(b=[a.B.serviceEndpoint,a.B.navigationEndpoint].filter(function(c){return null!=c}),a.B.command&&(b=b.concat(a.B.command)));
return b||[]};
JN=function(a,b,c,d,e,f,h){W.call(this,a,b,c,d,e,f);this.B=h;g.C(this,this.B);this.ha=this.F=-1};
KN=function(a){a.B&&-1===a.F&&(a.F=a.B.subscribe("b",a.Ek,a),a.ha=a.B.subscribe("a",a.Yl,a),a.Ek())};
LN=function(a){null!=a.B&&-1!==a.F&&(a.B.yk(a.F),a.B.yk(a.ha),a.ha=-1,a.F=-1)};
MN=function(a,b,c,d,e,f){f=void 0===f?!1:f;JN.call(this,a,b,{G:"div",L:"ytp-ad-timed-pie-countdown-container",S:[{G:"svg",L:"ytp-ad-timed-pie-countdown",U:{viewBox:"0 0 20 20"},S:[{G:"circle",L:"ytp-ad-timed-pie-countdown-background",U:{r:10,cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-inner",U:{r:5,cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-outer",U:{r:10,cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e);this.D=this.ga("ytp-ad-timed-pie-countdown-inner");this.C=Math.ceil(10*
Math.PI);this.I=f;this.hide()};
NN=function(a,b,c,d,e,f){W.call(this,a,b,{G:"div",L:"ytp-ad-text"},void 0===f?"ad-text":f,c,d,void 0===e?null:e);this.B=null;this.hide()};
ON=function(a,b){b&&g.Ne(a.element,YM(a.B,b))};
g.PN=function(a,b,c,d,e,f){g.B.call(this);this.element=a;this.state=null;c||a.hide();this.C=b;this.D=void 0===d?b:d;this.u=f;this.B=e;this.delay=new g.H(this.Bu,0,this);g.C(this,this.delay)};
QN=function(a,b){var c=a.element.element;b?c.setAttribute("aria-hidden","true"):c.removeAttribute("aria-hidden")};
RN=function(a,b,c,d,e,f){JN.call(this,a,b,{G:"div",L:"ytp-ad-preview-slot"},"ad-preview",c,d,e);var h=this;this.ra=-1;this.C=new g.XM({G:"span",L:"ytp-ad-preview-container"});g.C(this,this.C);this.D=new NN(this.api,this.Ea,this.layoutId,this.u,"ytp-ad-preview-text");g.C(this,this.D);this.D.fa(this.C.element);this.P=new g.XM({G:"span",L:"ytp-ad-preview-image"});g.C(this,this.P);this.I=new hN(this.api,this.Ea,this.layoutId,this.u);g.C(this,this.I);this.I.fa(this.P.element);this.P.fa(this.C.element);
this.C.fa(this.element);this.X=new g.PN(this.C,400,!1,100,function(){return h.hide()});
g.C(this,this.X);this.da=0;this.ka=!1;this.za=f;this.hide()};
SN=function(a){a.X.show(100);a.show()};
TN=function(a,b,c,d,e){e=void 0===e?0:e;g.B.call(this);this.C=a;this.B=!1;this.P=d;this.I=!1;this.u=null;0<b&&(this.u=new g.H(this.pA,b,this),g.C(this,this.u));this.D=new g.H(this.pA,c,this);g.C(this,this.D);this.N=Fn(this.C,e,1,d);g.C(this,this.N);this.K=Fn(this.C,0,d,1);g.C(this,this.K);this.F=new g.Wr;g.C(this,this.F)};
UN=function(a,b,c,d,e){JN.call(this,a,b,{G:"div",L:"ytp-ad-skip-button-slot"},"skip-button",c,d,e);var f=this;this.P=null;this.da=!1;this.D=new g.XM({G:"span",ia:["ytp-ad-skip-button-container"]});g.C(this,this.D);this.D.fa(this.element);this.C=this.I=null;this.ka=new g.PN(this.D,500,!1,100,function(){return f.hide()});
g.C(this,this.ka);this.X=new TN(this.D.element,15E3,5E3,.5,.5);g.C(this,this.X);this.hide()};
ioa=function(a){a=a.P&&a.P.adRendererCommands;return(a&&a.clickCommand&&a.clickCommand.commandExecutorCommand&&a.clickCommand.commandExecutorCommand.commands||[]).some(function(b){return b.adLifecycleCommand||b.adPlayerControlsCommand})};
VN=function(a,b){g.P.call(this);this.F=b;this.I=new g.Wr(this);g.C(this,this.I);this.B=a;this.Ua=new g.Tm(100);g.C(this,this.Ua);this.I.R(this.Ua,"tick",this.VL);this.D={seekableStart:0,seekableEnd:a/1E3,current:0};this.C=!1;this.u=0;this.start()};
WN=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-action-interstitial",U:{tabindex:"0"},S:[{G:"div",L:"ytp-ad-action-interstitial-background-container"},{G:"div",L:"ytp-ad-action-interstitial-slot",S:[{G:"div",L:"ytp-ad-action-interstitial-card",S:[{G:"div",L:"ytp-ad-action-interstitial-image-container"},{G:"div",L:"ytp-ad-action-interstitial-headline-container"},{G:"div",L:"ytp-ad-action-interstitial-description-container"},{G:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c,d);this.Ja=this.ga("ytp-ad-action-interstitial-image-container");this.P=new hN(this.api,this.Ea,this.layoutId,this.u,"ytp-ad-action-interstitial-image");g.C(this,this.P);this.P.fa(this.Ja);this.za=this.ga("ytp-ad-action-interstitial-headline-container");this.ha=new NN(this.api,this.Ea,this.layoutId,this.u,"ytp-ad-action-interstitial-headline");g.C(this,this.ha);this.ha.fa(this.za);this.ra=this.ga("ytp-ad-action-interstitial-description-container");this.da=new NN(this.api,
this.Ea,this.layoutId,this.u,"ytp-ad-action-interstitial-description");g.C(this,this.da);this.da.fa(this.ra);this.yb=this.ga("ytp-ad-action-interstitial-background-container");this.X=new hN(this.api,this.Ea,this.layoutId,this.u,"ytp-ad-action-interstitial-background",!0);g.C(this,this.X);this.X.fa(this.yb);this.Na=this.ga("ytp-ad-action-interstitial-action-button-container");this.C=this.F=this.D=this.B=null;this.I=new g.Wr;g.C(this,this.I);this.ka=null;this.hide()};
XN=function(a){var b=g.te("html5-video-player");b&&g.J(b,"ytp-ad-display-override",a)};
YN=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-choice-interstitial",S:[{G:"div",L:"ytp-ad-choice-interstitial-main-content",S:[{G:"div",L:"ytp-ad-choice-interstitial-head-title"},{G:"div",L:"ytp-ad-choice-interstitial-button-container"}]}]},"ad-choice-interstitial",c,d);this.F=this.D=this.B=this.C=null;this.I=new g.PN(this,0,!1,0);g.C(this,this.I);this.hide()};
joa=function(a,b){var c=gN(b)||"";g.rc(c)?g.Eo(Error("Found ThumbnailDetails without valid image URL")):g.E(a,"backgroundImage","url("+c+")")};
koa=function(a,b){var c=a.ga("ytp-ad-choice-interstitial-head-title");g.Ne(c,g.U(b))};
loa=function(a){switch(a){case 0:case 1:return a;default:return g.M(Error("AdChoiceInterstitialRenderer received an invalid value for default button choice index (i.e., not 0 or 1): "+a)),1}};
moa=function(a,b,c,d){if(2!==b.length)return!1;a.B=ZN(a,b[0],c,0===d);a.B.show();a.D=ZN(a,b[1],c,1===d);a.D.show();return!0};
ZN=function(a,b,c,d){var e=a.ga("ytp-ad-choice-interstitial-button-container"),f=d?1:2,h=["ytp-ad-choice-interstitial-button"],l=g.R(a.api.T().experiments,"self_podding_highlighted_button_blue")?"ytp-ad-choice-interstitial-button-highlight-blue":"ytp-ad-choice-interstitial-button-highlight",m=g.R(a.api.T().experiments,"self_podding_highlight_non_default_button");d&&h.push("ytp-ad-choice-interstitial-button-default");d===!m&&h.push(l);d=new IN(a.api,a.Ea,a.layoutId,a.u,h,"button",!1,f);g.C(a,d);d.init(rI("button"),
b,a.macros);d.fa(e);d.element.style.width=8*c+32+"px";return d};
noa=function(a,b){var c=8*b+32,d=a.ga("ytp-ad-choice-interstitial-button-container");190<c?(d.classList.add("ytp-ad-choice-interstitial-button-container-stacked"),d.style.width=c+"px"):(d.classList.remove("ytp-ad-choice-interstitial-button-container-stacked"),d.style.width="")};
ooa=function(a,b,c,d){a.C=new VN(d);a.C.subscribe("a",function(){a.I.hide();for(var e=g.q(b),f=e.next();!f.done;f=e.next())a.Ea.executeCommand(f.value,c)});
g.C(a,a.C)};
poa=function(a,b,c){var d=a.ga("ytp-ad-choice-interstitial");a.F=new MN(a.api,a.Ea,a.layoutId,a.u,a.C,!0);g.C(a,a.F);a.F.init(rI("timed-pie-countdown"),b,c);a.F.fa(d)};
$N=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-text-interstitial"},"ad-text-interstitial",c,d);this.C=this.ga("ytp-ad-text-interstitial");this.B=new NN(this.api,this.Ea,this.layoutId,this.u,"ytp-ad-text-interstitial-message");g.C(this,this.B);this.B.fa(this.C);this.hide()};
aO=function(a){var b=g.te("html5-video-player");b&&g.J(b,"ytp-ad-display-override",a)};
bO=function(){g.B.call(this);var a=this;this.u=new Map;this.B=$da(function(b){if(b.target&&(b=a.u.get(b.target))&&b)for(var c=0;c<b.length;c++)g.at(b[c],void 0,void 0)})};
dO=function(){null==cO&&(cO=new bO);return cO};
fO=function(a,b){if(a.simpleText){a:{var c=a.simpleText;if(b){var d=eO(c);if(d){c=g.Ee("SPAN",null,d);break a}}c=g.Ge(c)}return c}c=[];if(a.runs)for(d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(qoa(e,b))}return 1==c.length?c[0]:g.Ee("SPAN",null,c)};
qoa=function(a,b){var c=null,d=a.text;b&&(d=eO(d)||d);a.bold&&(c=g.Ee("B",null,c||d));a.italics&&(c=g.Ee("I",null,c||d));a.strikethrough&&(c=g.Ee("STRIKE",null,c||d));if(a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint){var e=a.navigationEndpoint.urlEndpoint;c=g.Ee("A",null,c||d);g.id(c,e.url);"TARGET_NEW_WINDOW"==e.target&&(c.target="_blank");if(e=a.navigationEndpoint.loggingUrls)e=e.map(function(f){return f.baseUrl}),dO().register(c,e),g.I(c,"ytp-ad-has-logging-urls")}return c||g.Ee("SPAN",
null,d)};
eO=function(a){a=a.split(/(?:\r\n|\r|\n)/g);if(1<a.length){for(var b=[a[0]],c=1;c<a.length;c++)b.push(g.Ee("BR")),b.push(a[c]);return b}return null};
gO=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;W.call(this,a,b,{G:"span",ia:["ytp-ad-hover-text-button"].concat(h)},void 0===l?"ad-hover-text-button":l,c,d);this.button=this.C=null;this.I=f;this.F=e;this.hide()};
hO=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-feedback-dialog-background",S:[{G:"div",L:"ytp-ad-feedback-dialog-container",S:[{G:"div",L:"ytp-ad-feedback-dialog-form",U:{role:"dialog",tabindex:"-1"},S:[{G:"div",L:"ytp-ad-feedback-dialog-title",S:[{G:"span",Y:"{{title}}"}]},{G:"span",L:"ytp-ad-info-dialog-feedback-options-title",Y:"{{reasonsTitle}}"},{G:"div",L:"ytp-ad-info-dialog-feedback-options"},{G:"div",L:"ytp-ad-feedback-dialog-confirm-container",S:[{G:"button",L:"ytp-ad-feedback-dialog-cancel-button",
Y:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-feedback-dialog-confirm-button",Y:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d);this.D=[];this.B=null;this.F=this.ga("ytp-ad-feedback-dialog-cancel-button");this.P=this.ga("ytp-ad-feedback-dialog-confirm-button");this.X=this.ga("ytp-ad-info-dialog-feedback-options");this.da=this.ga("ytp-ad-feedback-dialog-title");this.I=this.C=null;this.hide()};
uoa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.B=new IN(a.api,a.Ea,a.layoutId,a.u,["ytp-ad-feedback-dialog-close-button"],"button"),g.C(a,a.B),a.B.init(rI("button"),c,a.macros),a.B.ua("click",a.BD,a),a.B.fa(a.element));b.title&&(c=g.U(b.title),a.wa("title",c));b.reasonsTitle&&(c=g.U(b.reasonsTitle),a.wa("reasonsTitle",c));b.reasons&&roa(a,b.reasons);b.cancelLabel&&(c=g.U(b.cancelLabel),a.wa("cancelLabel",c),g.cp(a.F,"click",function(){return a.BD()}));
b.confirmLabel&&(c=g.U(b.confirmLabel),a.wa("confirmLabel",c),g.cp(a.P,"click",function(){return soa(a)}));
b.undoRenderer&&toa(a,b.undoRenderer)};
roa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=e.reason;null==d?g.Eo(Error("AdFeedbackReason.reason was not set.")):(e=e.endpoint,null==e?g.Eo(Error("AdFeedbackReason.endpoint was not set.")):(d=new iO(d,e),g.C(a,d),a.X.appendChild(d.Ma()),a.D.push(d)))}};
toa=function(a,b){var c=b&&b.buttonRenderer||null;c&&(c.serviceEndpoint?(a.C=new IN(a.api,a.Ea,a.layoutId,a.u,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.C(a,a.C),a.C.init(rI("ad-feedback-undo-mute-button"),c,a.macros),a.C.ua("click",a.HP,a),a.C.fa(a.da)):g.Eo(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint.")))};
soa=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(a.Ea.executeCommand(b[0].B,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.V("f"),a.hide())};
iO=function(a,b){this.B=b;this.u=new g.XM({G:"label",L:"ytp-ad-feedback-dialog-reason-label",S:[{G:"input",L:"ytp-ad-feedback-dialog-reason-input",U:{type:"radio",name:"feedback-reason-group"}},{G:"span",L:"ytp-ad-feedback-dialog-reason-text",Y:g.U(a)}]});this.C=this.u.ga("ytp-ad-feedback-dialog-reason-input")};
jO=function(a,b,c,d,e,f){e=void 0===e?[]:e;W.call(this,a,b,{G:"div",ia:["ytp-ad-confirm-dialog-background"],S:[{G:"div",L:"ytp-ad-confirm-dialog-container",S:[{G:"div",ia:["ytp-ad-confirm-dialog"].concat(e),U:{role:"dialog",tabindex:"-1"},S:[{G:"div",L:"ytp-ad-confirm-dialog-title",Y:"{{title}}"},{G:"div",L:"ytp-ad-confirm-dialog-messages"},{G:"div",L:"ytp-ad-confirm-dialog-confirm-container",S:[{G:"button",L:"ytp-ad-confirm-dialog-cancel-button",Y:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-confirm-dialog-confirm-button",
Y:"{{confirmLabel}}"}]}]}]},{G:"button",ia:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],S:[{G:"span",L:"ytp-ad-button-icon",S:[g.pN()]}]}]},void 0===f?"confirm-dialog":f,c,d);this.I=this.ga("ytp-ad-confirm-dialog-close-overlay-button");this.F=this.ga("ytp-ad-confirm-dialog-cancel-button");this.X=this.ga("ytp-ad-confirm-dialog-confirm-button");this.P=this.ga("ytp-ad-confirm-dialog-messages");this.D=null;this.B=new g.Wr;g.C(this,this.B);this.C=null;this.hide()};
voa=function(a,b){if(b.title){var c=g.U(b.title);a.wa("title",c)}if(b.dialogMessages){c=g.q(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=fO(d.value),a.P.appendChild(d)}b.cancelLabel&&(c=g.U(b.cancelLabel),a.wa("cancelLabel",c),a.B.R(a.F,"click",function(e){return a.Bx(e)}));
b.confirmLabel&&(c=g.U(b.confirmLabel),a.wa("confirmLabel",c),a.B.R(a.X,"click",function(e){return a.Ix(e)}));
a.B.R(a.I,"click",function(e){return a.Hx(e)})};
kO=function(a,b,c,d){jO.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
lO=function(a,b,c,d,e){W.call(this,a,b,{G:"div",L:"ytp-ad-info-dialog-background",S:[{G:"div",L:"ytp-ad-info-dialog-container",S:[{G:"div",L:"ytp-ad-info-dialog-form",U:{role:"dialog",tabindex:"-1"},S:[{G:"div",L:"ytp-ad-info-dialog-title",Y:"{{title}}"},{G:"ul",L:"ytp-ad-info-dialog-ad-reasons"},{G:"div",L:"ytp-ad-info-dialog-message"},{G:"div",L:"ytp-ad-info-dialog-mute-container"},{G:"div",L:"ytp-ad-info-dialog-confirm-container",S:[{G:"button",L:"ytp-ad-info-dialog-confirm-button",Y:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d);this.B=this.C=null;this.P=this.ga("ytp-ad-info-dialog-confirm-button");this.za=this.ga("ytp-ad-info-dialog-mute-container");this.ra=this.ga("ytp-ad-info-dialog-message");this.da=this.ga("ytp-ad-info-dialog-ad-reasons");this.F=this.D=null;this.ka=e;this.I=null;this.ha=!1;this.X=null;this.hide()};
woa=function(a){(a.I&&a.I.impressionEndpoints||[]).forEach(function(b){return a.Ea.executeCommand(b,a.macros)})};
xoa=function(a,b){var c=b.content&&b.content.adFeedbackRenderer||null;c&&(a.C=new hO(a.api,a.Ea,a.layoutId,a.u),g.C(a,a.C),a.C.init(rI("ad-feedback-dialog"),c,a.macros),a.C.fa(a.ka),a.C.subscribe("f",function(){return a.V("h")}))};
yoa=function(a,b){var c=b.content&&b.content.confirmDialogRenderer||null;c&&(a.F=new kO(a.api,a.Ea,a.layoutId,a.u),g.C(a,a.F),a.F.init(rI("ad-mute-confirm-dialog"),c,a.macros),a.F.fa(a.ka),a.F.subscribe("g",function(){return a.V("h")}))};
zoa=function(a){a.B&&a.B.ua("click",a.CD,a);g.cp(a.P,"click",function(){return a.CD()})};
mO=function(a,b,c,d,e,f){gO.call(this,a,b,c,d,void 0===f?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.B=null;this.D=e;this.hide()};
Aoa=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.M(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.B=new lO(a.api,a.Ea,a.layoutId,a.u,a.D),g.C(a,a.B),a.B.init(rI("ad-info-dialog"),b,c),a.B.fa(a.D),a.B.subscribe("i",function(){return a.V("k")}),a.B.subscribe("h",function(){return a.V("j")}))};
Boa=function(a,b,c){null==a.button?g.M(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null,null==b?a.C&&g.I(a.C.element,"ytp-ad-info-hover-text-long"):(Aoa(a,b,c),a.C&&g.I(a.C.element,"ytp-ad-info-hover-text-short"),a.button.ua("click",function(){a.B&&!a.B.Wa&&(a.B.show(),a.api.onAdUxClicked("ad-info-icon-button"))})))};
nO=function(a,b,c,d,e){e=void 0===e?null:e;this.D=a;this.Da=b;this.layoutId=d;this.B=0;this.u=new Set;this.C=Array.from(this.D.get("progress")||[]);this.C.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.F={adPlacementConfig:c,JC:e}};
oO=function(){return["metadata_type_ad_placement_config"]};
qO=function(a){var b=a.Da.get();return pO(b,a.F)};
sO=function(a,b){var c=a.D.get(b)||[];rO(a,b,c);a.u.add(b)};
tO=function(a,b){a.u.has(b)||sO(a,b)};
rO=function(a,b,c){var d=a.Da.get();a=a.layoutId;c=void 0===c?[]:c;var e=uO(d.pd.get(),a);if(e)for(b=Coa(d.bb.get(),a,b),a=pO(d,vO(e),e),c=g.q(c),e=c.next();!e.done;e=c.next())e=e.value,e.baseUrl&&d.Bh.send(e.baseUrl,a,b,e.headers);else fH("Trying to track from an unknown layout")};
xO=function(a,b){b=void 0===b?wO:b;b.width<wO.width&&(b=wO);return a.width<b.width||a.height<b.height};
yO=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
zO=function(a,b,c){c=void 0===c?wO:c;c.width<wO.width&&(c=wO);if(a.width<c.width||a.height<c.height)return{Pu:3,Fq:501,errorMessage:"ad("+yO(c)+") larger than container("+yO(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{Pu:3,Fq:501,errorMessage:"ad("+yO(c)+") to container("+yO(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{Pu:3,Fq:501,errorMessage:"ad("+yO(c)+") covers container("+yO(a)+") center."}};
BO=function(a,b){var c=AO(a.xa,"metadata_type_ad_placement_config");return new nO(a.Yd,b,c,a.layoutId)};
CO=function(a){return AO(a.xa,"metadata_type_invideo_overlay_ad_renderer")};
DO=function(a){return g.R(a.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")};
EO=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-overlay-slot",S:[{G:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d);this.P=[];this.F=this.Ja=this.ra=null;a=this.ga("ytp-ad-overlay-container");this.ka=new TN(a,45E3,6E3,.3,.4);g.C(this,this.ka);DO(this.api)||(this.ha=new g.H(this.clear,45E3,this),g.C(this,this.ha));this.D=Doa(this);g.C(this,this.D);this.D.fa(a);this.C=Eoa(this);g.C(this,this.C);this.C.fa(a);this.B=Foa(this);g.C(this,this.B);this.B.fa(a);this.Na=this.da=null;this.za=
!1;this.I=null;this.X=0;this.hide()};
Doa=function(a){var b=new g.XM({G:"div",L:"ytp-ad-text-overlay",S:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",S:[{G:"button",L:"ytp-ad-overlay-close-button",S:[HN(FO)]}]},{G:"div",L:"ytp-ad-overlay-title",Y:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",Y:"{{description}}"},{G:"div",ia:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Y:"{{displayUrl}}"}]});a.R(b.ga("ytp-ad-overlay-title"),"click",function(c){return GO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-link"),"click",function(c){return GO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-close-container"),"click",a.Cx);b.hide();return b};
Eoa=function(a){var b=new g.XM({G:"div",ia:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],S:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",S:[{G:"button",L:"ytp-ad-overlay-close-button",S:[HN(FO)]}]},{G:"div",L:"ytp-ad-overlay-text-image",S:[{G:"img",U:{src:"{{imageUrl}}"}}]},{G:"div",L:"ytp-ad-overlay-title",Y:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",Y:"{{description}}"},{G:"div",ia:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
Y:"{{displayUrl}}"}]});a.R(b.ga("ytp-ad-overlay-title"),"click",function(c){return GO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-link"),"click",function(c){return GO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-close-container"),"click",a.Cx);a.R(b.ga("ytp-ad-overlay-text-image"),"click",a.yP);b.hide();return b};
Foa=function(a){var b=new g.XM({G:"div",L:"ytp-ad-image-overlay",S:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",S:[{G:"button",L:"ytp-ad-overlay-close-button",S:[HN(FO)]}]},{G:"div",L:"ytp-ad-overlay-image",S:[{G:"img",U:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.R(b.ga("ytp-ad-overlay-image"),"click",function(c){return GO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-close-container"),"click",a.Cx);b.hide();return b};
HO=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.M(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else{var d=g.te("video-ads ytp-ad-module")||null;null==d?g.M(Error("Could not locate the root ads container element to attach the ad info dialog.")):(a.da=new g.XM({G:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.C(a,a.da),a.da.fa(d),d=new mO(a.api,a.Ea,a.layoutId,a.u,a.da.element,!1),g.C(a,d),d.init(rI("ad-info-hover-text-button"),c,a.macros),
a.I?(d.fa(a.I,0),d.subscribe("k",a.uM,a),d.subscribe("j",a.jO,a),a.R(a.I,"click",a.vM),c=g.te("ytp-ad-button",d.element),a.R(c,"click",a.aM),a.Na=d):g.M(Error("Ad info button container within overlay ad was not present.")))}}else g.Eo(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
Goa=function(a){return a.F&&a.F.closeButton&&a.F.closeButton.buttonRenderer&&(a=a.F.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
Hoa=function(a,b){if(IO(a,JO)||a.api.app.visibility.u)return!1;var c=YM(b.title),d=YM(b.description);if(g.rc(c)||g.rc(d))return!1;bN(a,a.D.element,b.trackingParams||null);a.D.wa("title",YM(b.title));a.D.wa("description",YM(b.description));a.D.wa("displayUrl",YM(b.displayUrl));b.navigationEndpoint&&vb(a.P,b.navigationEndpoint);a.D.show();a.ka.start();eN(a,a.D.element,!0);DO(a.api)||(a.R(a.api,"resize",function(){IO(a,JO)&&a.clear()}),a.R(a.api,"minimized",a.gO));
a.R(a.D.element,"mouseover",function(){a.X++});
return!0};
Ioa=function(a,b){if(IO(a,JO)||a.api.app.visibility.u)return!1;var c=YM(b.title),d=YM(b.description);if(g.rc(c)||g.rc(d))return!1;bN(a,a.C.element,b.trackingParams||null);a.C.wa("title",YM(b.title));a.C.wa("description",YM(b.description));a.C.wa("displayUrl",YM(b.displayUrl));a.C.wa("imageUrl",ZM(b.image));b.navigationEndpoint&&vb(a.P,b.navigationEndpoint);a.Ja=b.imageNavigationEndpoint||null;a.C.show();a.ka.start();eN(a,a.C.element,!0);DO(a.api)||a.R(a.api,"resize",function(){IO(a,JO)&&a.clear()});
a.R(a.C.element,"mouseover",function(){a.X++});
return!0};
Joa=function(a,b){if(a.api.app.visibility.u)return!1;var c=goa(b.image),d=c;c.width<JO.width&&(d=JO);if(0==c.width||0==c.height||IO(a,d))return!1;bN(a,a.B.element,b.trackingParams||null);a.B.wa("imageUrl",ZM(b.image));a.B.wa("width",c.width);a.B.wa("height",c.height);b.navigationEndpoint&&vb(a.P,b.navigationEndpoint);d=a.B.ga("ytp-ad-image-overlay");g.E(d,"max-width",c.width+"px");a.B.show();eN(a,a.B.element,!0);DO(a.api)||(a.ha.start(),a.R(a.api,"resize",function(){IO(a,c)&&a.clear()}));
a.R(a.B.element,"mouseover",function(){a.X++;DO(a.api)?a.api.V("aduxmouseover","invideo-overlay",a.layoutId):a.ha.stop()});
a.R(a.B.element,"mouseout",function(){DO(a.api)?a.api.V("aduxmouseout","invideo-overlay",a.layoutId):a.ha.start()});
return!0};
IO=function(a,b){var c=g.pG(a.api).getPlayerSize();if(!g.R(a.api.T().experiments,"drop_overlay_ads_on_cba_violation"))return b.width>c.width||b.height>c.height;var d=a.api.ci(!0,!1);return(c=zO(c,c.height-(d.height+d.top),b))?(a.ra&&c&&(d=g.Zb(a.macros),d.ERRORCODE=c.Fq.toString(),d.ERROR_MSG=c.errorMessage,a.Ea.executeCommand(a.ra,d)),!0):!1};
GO=function(a,b,c){var d=g.Zb(a.macros),e=g.Eg(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Cg(c,b).floor();d.I_X={toString:function(){return f.x.toString()}};
d.NX={toString:function(){return f.x.toString()}};
d.I_Y={toString:function(){return f.y.toString()}};
d.NY={toString:function(){return f.y.toString()}};
d.NM={toString:function(){return a.X.toString()}};
a.P.forEach(function(h){return a.Ea.executeCommand(h,d)});
a.api.pauseVideo()};
KO=function(a,b){var c=a.api.getRootNode();g.J(c,"ytp-ad-overlay-open",b);g.J(c,"ytp-ad-overlay-closed",!b)};
LO=function(a,b,c,d,e){JN.call(this,a,b,{G:"div",L:"ytp-ad-message-overlay",S:[{G:"div",L:"ytp-ad-message-slot"}]},"ad-message",c,d,e);var f=this;this.da=-1;this.ka=this.ga("ytp-ad-message-slot");this.D=new g.XM({G:"span",L:"ytp-ad-message-container"});this.D.fa(this.ka);g.C(this,this.D);this.C=new NN(this.api,this.Ea,this.layoutId,this.u,"ytp-ad-message-text");g.C(this,this.C);this.C.fa(this.D.element);this.P=new g.PN(this.D,400,!1,100,function(){return f.hide()});
g.C(this,this.P);this.I=0;this.X=!1;this.hide()};
Koa=function(a,b){var c=a.api.getRootNode();g.J(c,"ytp-ad-overlay-open",b);g.J(c,"ytp-ad-overlay-closed",!b)};
MO=function(a,b,c,d,e){JN.call(this,a,b,{G:"div",L:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e);this.P=!1;this.I=0;this.D=this.C=null;this.hide()};
NO=function(a,b){if(!a.P)if(a.P=!0,a.C&&(b?a.C.X.hide():a.C.hide()),b){var c=a.D;c.ka.show();c.show()}else a.D.show()};
OO=function(a,b,c,d,e){W.call(this,a,b,{G:"div",L:"ytp-ad-persisting-overlay",S:[{G:"div",L:"ytp-ad-persisting-overlay-skip"}]},"persisting-overlay",c,d);this.C=this.ga("ytp-ad-persisting-overlay-skip");this.B=e;g.C(this,this.B);this.hide()};
g.PO=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){var h="";0<d&&(h+=" "+d+" Days");if(0<d||0<e)h+=" "+e+" Hours";d=(h+(" "+f+" Minutes ")+(c+" Seconds")).trim()}else{h="";0<d&&(h+=d+":",10>e&&(h+="0"));if(0<d||0<e)h+=e+":",10>f&&(h+="0");h+=f+":";10>c&&(h+="0");d=h+c}return 0<=a?d:"-"+d};
g.QO=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)};
RO=function(a,b,c,d,e,f){JN.call(this,a,b,{G:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e);this.C=null;this.D=f;this.hide()};
SO=function(a,b,c,d){NN.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
TO=function(a,b,c,d,e){JN.call(this,a,b,{G:"div",ia:["ytp-flyout-cta","ytp-flyout-cta-inactive"],S:[{G:"div",L:"ytp-flyout-cta-icon-container"},{G:"div",L:"ytp-flyout-cta-body",S:[{G:"div",L:"ytp-flyout-cta-text-container",S:[{G:"div",L:"ytp-flyout-cta-headline-container"},{G:"div",L:"ytp-flyout-cta-description-container"}]},{G:"div",L:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e);this.D=new hN(this.api,this.Ea,this.layoutId,this.u,"ytp-flyout-cta-icon");g.C(this,this.D);this.D.fa(this.ga("ytp-flyout-cta-icon-container"));
this.P=new NN(this.api,this.Ea,this.layoutId,this.u,"ytp-flyout-cta-headline");g.C(this,this.P);this.P.fa(this.ga("ytp-flyout-cta-headline-container"));this.I=new NN(this.api,this.Ea,this.layoutId,this.u,"ytp-flyout-cta-description");g.C(this,this.I);this.I.fa(this.ga("ytp-flyout-cta-description-container"));this.C=new IN(this.api,this.Ea,this.layoutId,this.u,["ytp-flyout-cta-action-button"]);g.C(this,this.C);this.C.fa(this.ga("ytp-flyout-cta-action-button-container"));this.X=null;this.da=0;this.hide()};
UO=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=rI("ytp-ad-toggle-button-input");W.call(this,a,b,{G:"div",ia:["ytp-ad-toggle-button"].concat(e),S:[{G:"label",L:"ytp-ad-toggle-button-label",U:{"for":h},S:[{G:"span",L:"ytp-ad-toggle-button-icon",U:{role:"button","aria-label":"{{tooltipText}}"},S:[{G:"span",L:"ytp-ad-toggle-button-untoggled-icon",Y:"{{untoggledIconTemplateSpec}}"},{G:"span",L:"ytp-ad-toggle-button-toggled-icon",Y:"{{toggledIconTemplateSpec}}"}]},{G:"input",
L:"ytp-ad-toggle-button-input",U:{id:h,type:"checkbox"}},{G:"span",L:"ytp-ad-toggle-button-text",Y:"{{buttonText}}"},{G:"span",L:"ytp-ad-toggle-button-tooltip",Y:"{{tooltipText}}"}]}]},f,c,d);this.D=this.ga("ytp-ad-toggle-button");this.B=this.ga("ytp-ad-toggle-button-input");this.ga("ytp-ad-toggle-button-label");this.X=this.ga("ytp-ad-toggle-button-icon");this.I=this.ga("ytp-ad-toggle-button-untoggled-icon");this.F=this.ga("ytp-ad-toggle-button-toggled-icon");this.ha=this.ga("ytp-ad-toggle-button-text");
this.C=null;this.P=!1;this.da=null;this.hide()};
VO=function(a){a.P&&(a.isToggled()?(g.Fg(a.I,!1),g.Fg(a.F,!0)):(g.Fg(a.I,!0),g.Fg(a.F,!1)))};
Loa=function(a,b){var c=null;a.C&&(c=(b?[a.C.defaultServiceEndpoint,a.C.defaultNavigationEndpoint]:[a.C.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
WO=function(a,b,c,d,e){W.call(this,a,b,{G:"div",L:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,void 0===e?null:e);var f=this;this.B=null;this.D=new UO(this.api,this.Ea,this.layoutId,this.u,["ytp-ad-instream-user-sentiment-like-button"]);g.C(this,this.D);this.D.fa(this.element);this.C=new UO(this.api,this.Ea,this.layoutId,this.u,["ytp-ad-instream-user-sentiment-dislike-button"]);g.C(this,this.C);this.C.fa(this.element);this.F=new g.PN(this,400,!1,500,function(){return f.hide()});
g.C(this,this.F);this.I=null;this.hide()};
Moa=function(a,b){a.D.init(rI("toggle-button"),a.B.likeButton.toggleButtonRenderer,b);a.C.init(rI("toggle-button"),a.B.dislikeButton.toggleButtonRenderer,b);a.I=a.R(a.element,"change",a.AD)};
XO=function(a,b,c,d){IN.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
YO=function(a,b,c,d,e){e=void 0===e?!1:e;W.call(this,a,b,{G:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d);this.B=e;this.hide()};
ZO=function(a,b){this.B=a;this.u=b};
$O=function(a,b){return a.B+b*a.getLength()};
aP=function(a,b,c){if(!a.getLength())return null!=c?c:Infinity;a=(b-a.B)/a.getLength();return g.be(a,0,1)};
bP=function(a,b){g.XM.call(this,{G:"div",L:"ytp-ad-persistent-progress-bar-container",S:[{G:"div",L:"ytp-ad-persistent-progress-bar"}]});this.C=a;this.B=b;g.C(this,this.B);this.I=this.ga("ytp-ad-persistent-progress-bar");this.u=-1;this.R(a,"presentingplayerstatechange",this.F);this.hide();this.F()};
cP=function(a,b,c,d,e){W.call(this,a,b,{G:"div",L:"ytp-ad-player-overlay",S:[{G:"div",L:"ytp-ad-player-overlay-flyout-cta"},{G:"div",L:"ytp-ad-player-overlay-instream-info"},{G:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-player-overlay-progress-bar"},{G:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d);this.I=this.ga("ytp-ad-player-overlay-flyout-cta");this.C=this.ga("ytp-ad-player-overlay-instream-info");this.D=null;Noa(this)&&(a=g.Ee("div"),
g.I(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.C,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new SO(this.api,this.Ea,this.layoutId,this.u),c.fa(a),c.init(rI("ad-title"),{text:b.title},this.macros),g.C(this,c)),this.D=a);this.F=this.ga("ytp-ad-player-overlay-skip-or-preview");this.X=this.ga("ytp-ad-player-overlay-progress-bar");this.P=this.ga("ytp-ad-player-overlay-instream-user-sentiment");this.B=e;g.C(this,this.B);this.hide()};
Noa=function(a){a=a.api.T();return nC(a)&&a.u};
dP=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-answer"},"survey-answer",c,d);this.C=this.ga("ytp-ad-survey-answer");this.B=null;this.D="";this.hide()};
eP=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d);this.C=this.ga("ytp-ad-survey-none-of-the-above");this.B=null;this.hide()};
fP=function(a,b,c,d){IN.call(this,a,b,c,d,["ytp-ad-survey-submit-button"],"survey-submit")};
gP=function(a,b,c,d,e){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-player-overlay",S:[{G:"div",L:"ytp-ad-survey-player-overlay-instream-info"},{G:"div",L:"ytp-ad-survey-player-overlay-skip-preview-submit",S:[{G:"div",L:"ytp-ad-survey-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-survey-player-overlay-submit"}]},{G:"div",L:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d);this.I=this.ga("ytp-ad-survey-player-overlay-instream-info");this.C={};this.P=this.ga("ytp-ad-survey-player-overlay-skip-or-preview");
this.B=null;this.X=this.ga("ytp-ad-survey-player-overlay-submit");this.D=null;this.F=e;g.C(this,this.F);this.hide()};
hP=function(a,b,c,d,e){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-question",S:[{G:"div",ia:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{G:"div",ia:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{G:"div",ia:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{G:"div",L:"ytp-ad-survey-question-background"}]},e,c,d);this.question=this.ga("ytp-ad-survey-question");this.ka=this.ga("ytp-ad-survey-question-background");this.da=this.ga("ytp-ad-survey-question-text");
this.answers=this.ga("ytp-ad-survey-answers");this.X=this.ga("ytp-ad-survey-question-player-overlay");this.I=null;this.D=[];this.B=null;this.F=g.A()};
Ooa=function(a,b,c){var d=new dP(a.api,a.Ea,a.layoutId,a.u);d.fa(a.answers);d.init(rI("survey-answer"),b,c);a.D.push(d)};
Qoa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&gN(c)||"",g.rc(c)?g.Eo(Error("Found ThumbnailDetails without valid image URL")):g.E(a.ka,"backgroundImage","url("+c+")"));Poa(a,b)}else g.M(Error("addCommonComponents() needs to be called before starting countdown."))};
Poa=function(a,b){if(null==b.durationMilliseconds||void 0==b.durationMilliseconds||0==b.durationMilliseconds)g.M(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.F=g.A();a.B=new VN(b.durationMilliseconds,a.Ea);g.C(a,a.B);if(b.timeoutCommands){var c=b.timeoutCommands;a.B.subscribe("a",function(){c.forEach(function(e){return a.Ea.executeCommand(e,a.macros)})})}if(a.B&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=
new gP(a.api,a.Ea,a.layoutId,a.u,a.B);
d.fa(a.X);d.init(rI("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.I=d;g.C(a,d);a.BF()}catch(e){g.M(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.M(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.B&&b.durationMilliseconds&&0<b.durationMilliseconds?(d=new bP(a.api,a.B),d.fa(a.X),g.C(a,d)):g.M(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
Roa=function(a){function b(c){return{toString:function(){return c()}}}
a.macros.SURVEY_LOCAL_TIME_EPOCH_S=b(function(){var c=new Date;return Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset()});
a.macros.SURVEY_ELAPSED_MS=b(function(){return g.A()-a.F})};
iP=function(a,b,c,d){hP.call(this,a,b,c,d,"survey-question-multi-select");this.C=null;this.ha=[];this.P=null;this.hide()};
Soa=function(a,b,c){a.C=new eP(a.api,a.Ea,a.layoutId,a.u);a.C.fa(a.answers);a.C.init(rI("survey-none-of-the-above"),b,c)};
Toa=function(a){a.D.forEach(function(b){b.B.toggleButton(!1)});
jP(a,!0)};
jP=function(a,b){var c=a.I,d=Uoa(a),e=b;e=void 0===e?!1:e;c.B&&(d?c.B.hide():c.B.show(),e&&c.B instanceof MO&&!c.B.P&&NO(c.B,!1));c.D&&(d?c.D.show():c.D.hide())};
Uoa=function(a){return a.D.some(function(b){return b.B.isToggled()})||a.C.B.isToggled()};
kP=function(a,b,c,d){hP.call(this,a,b,c,d,"survey-question-single-select");this.hide()};
lP=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-survey",S:[{G:"div",L:"ytp-ad-survey-questions"}]},"survey",c,d);this.B=this.ga("ytp-ad-survey-questions");this.C=[];this.hide()};
mP=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-interstitial",S:[{G:"div",L:"ytp-ad-survey-interstitial-contents",S:[{G:"div",L:"ytp-ad-survey-interstitial-logo",S:[{G:"div",L:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",L:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d);this.F=this.ga("ytp-ad-survey-interstitial");this.I=this.ga("ytp-ad-survey-interstitial-contents");this.B=null;this.X=this.ga("ytp-ad-survey-interstitial-text");this.P=this.ga("ytp-ad-survey-interstitial-logo-image");
this.D=null;this.C=new g.PN(this,500,!1,300);g.C(this,this.C)};
Voa=function(a,b,c){c=c.dismissCommands;var d=b.target==a.F;b=a.B.element.contains(b.target);if(d||b)a.C.hide(),d&&c.forEach(function(e){return a.Ea.executeCommand(e,a.macros)})};
Woa=function(a,b){var c=b&&gN(b)||"";if(g.rc(c))g.Eo(Error("Found ThumbnailDetails without valid image URL"));else{var d=a.style.cssText;if(g.ye&&10>document.documentMode)d=Rc;else{var e=document;"function"===typeof HTMLTemplateElement&&(e=g.Fe("TEMPLATE").content.ownerDocument);e=e.implementation.createHTMLDocument("").createElement("DIV");e.style.cssText=d;d=Fda(e.style)}c=Faa(d,Sc({"background-image":'url("'+c+'")'}));a.style.cssText=Oc(c)}};
Xoa=function(a){var b=g.te("html5-video-player");b&&g.J(b,"ytp-ad-display-override",a)};
nP=function(a,b){b=void 0===b?2:b;g.P.call(this);this.u=a;this.B=new g.Wr(this);g.C(this,this.B);this.F=Yoa;this.D=null;this.B.R(this.u,"presentingplayerstatechange",this.WL);this.D=this.B.R(this.u,"progresssync",this.yD);this.C=b;1===this.C&&this.yD()};
pP=function(a,b){KM.call(this,a);this.D=a;this.K=b;this.B={};var c=new g.V({G:"div",ia:["video-ads","ytp-ad-module"]});g.C(this,c);JB&&g.I(c.element,"ytp-ads-tiny-mode");this.F=new OM(c.element);g.C(this,this.F);g.oP(this.D,c.element,4);g.C(this,dO())};
Zoa=function(a,b){var c=a.B;var d=b.id;c=null!==c&&d in c?c[d]:null;null==c&&g.Eo(Error("Component not found for element id: "+b.id));return c||null};
qP=function(a){this.controller=a};
rP=function(a){this.yo=a};
sP=function(a){this.yo=a};
tP=function(a,b,c){this.yo=a;this.fg=b;this.wh=c};
apa=function(a,b,c){var d=a.yo();switch(b.type){case "SKIP":b=!1;for(var e=g.q(a.fg.u.entries()),f=e.next();!f.done;f=e.next()){f=g.q(f.value);var h=f.next().value;f.next();"slot_type_player_bytes"===h.Xa&&"core"===h.rb&&(b=!0)}b?(c=$oa(a,c))?a.wh.Zo(c):fH("No triggering layout ID available when attempting to mute."):g.um(function(){d.tp()})}};
$oa=function(a,b){if(b)return b;for(var c=g.q(a.fg.u.entries()),d=c.next();!d.done;d=c.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;if("slot_type_in_player"===d.Xa&&"core"===d.rb)return e.layoutId}};
uP=function(){};
vP=function(){};
wP=function(a,b){this.jo=a;this.Da=b};
xP=function(a){this.J=a};
yP=function(a,b){this.Bh=a;this.Da=b};
cpa=function(a){g.B.call(this);this.u=a;this.B=bpa(this)};
bpa=function(a){var b=new bM;g.C(a,b);a=g.q([new qP(a.u.PH),new wP(a.u.jo,a.u.Da),new rP(a.u.QH),new xP(a.u.J),new yP(a.u.Bh,a.u.Da),new tP(a.u.lM,a.u.fg,a.u.wh),new sP(a.u.ZH),new uP,new vP]);for(var c=a.next();!c.done;c=a.next())c=c.value,Yna(b,c),Zna(b,c);a=g.q(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())ZL(b,c.value,function(){});
return b};
zP=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.xa.u.has(c.value))return!1;return!0};
AP=function(a){var b=new Map;a.forEach(function(c){b.set(c.u(),c)});
this.u=b};
AO=function(a,b){var c=a.u.get(b);if(void 0!==c)return c.get()};
BP=function(a){return Array.from(a.u.keys())};
epa=function(a){var b;return(null===(b=dpa.get(a))||void 0===b?void 0:b.tq)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
DP=function(a,b){var c={type:fpa.get(b.Xa)||"SLOT_TYPE_UNSPECIFIED",entryTriggerType:b.Wb?CP.get(b.Wb.triggerType)||"TRIGGER_TYPE_UNSPECIFIED":"TRIGGER_TYPE_UNSPECIFIED",controlFlowManagerLayer:gpa.get(b.rb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};1!==b.feedPosition&&(c.feedPosition=b.feedPosition);if(a){c.debugData={slotId:b.slotId};var d=b.Wb;if(d){var e={type:CP.get(d.triggerType)||"TRIGGER_TYPE_UNSPECIFIED"};"trigger_type_layout_id_entered"===d.triggerType&&(e.layoutIdEnteredTriggerData={enteredLayoutId:d.B});
c.debugData.slotEntryTriggerData=e}}return c};
ipa=function(a,b){var c={type:hpa.get(b.layoutType)||"LAYOUT_TYPE_UNSPECIFIED",controlFlowManagerLayer:gpa.get(b.rb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
kpa=function(a,b,c,d){b={opportunityType:jpa.get(b)||"OPPORTUNITY_TYPE_UNSPECIFIED"};a&&(d||c)&&(b.debugData={slots:g.Pc(d||[],function(e){return DP(a,e)}),
associatedSlotId:c});return b};
FP=function(a,b){return function(c){return lpa(EP(a),b.slotId,b.Xa,b.feedPosition,b.rb,b.Wb,c.layoutId,c.layoutType,c.rb)}};
lpa=function(a,b,c,d,e,f,h,l,m){return{adClientDataEntry:{slotData:DP(a,{slotId:b,Xa:c,feedPosition:d,rb:e,Wb:f,oe:[],cf:[],xa:new AP([])}),layoutData:ipa(a,{layoutId:h,layoutType:l,rb:m,uf:[],vf:[],tf:[],wf:[],Yd:new Map,xa:new AP([]),Ye:{}})}}};
GP=function(a){this.ya=a;this.u=.1>Math.random()};
EP=function(a){return a.u||g.R(a.ya.get().J.T().experiments,"html5_force_debug_data_for_client_tmp_logs")};
HP=function(a,b,c,d){g.B.call(this);this.B=b;this.Bb=c;this.ya=d;this.u=a(this,this,this,this,this);g.C(this,this.u);a=g.q(b);for(b=a.next();!b.done;b=a.next())g.C(this,b.value)};
IP=function(a,b){a.B.add(b);g.C(a,b)};
KP=function(a,b,c){fH(c,b,void 0,void 0,c.Sk);JP(a,b,!0)};
npa=function(a,b,c){if(LP(a.u,b))if(MP(a.u,b).D=c?"filled":"not_filled",null===c){NP(a.Bb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.q(a.B);for(var d=c.next();!d.done;d=c.next())d.value.zi(b);JP(a,b,!1)}else{NP(a.Bb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);var e=g.q(a.B);for(d=e.next();!d.done;d=e.next())d.value.Ai(b);if(MP(a.u,b).F)JP(a,b,!1);else{NP(a.Bb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.u;if(!MP(f,b))throw new OP("Unknown slotState for onLayout");
if(!f.Mc.pj.get(b.Xa))throw new OP("No LayoutRenderingAdapterFactory registered for slot of type: "+b.Xa);if(g.ob(c.uf)&&g.ob(c.vf)&&g.ob(c.tf)&&g.ob(c.wf))throw new OP("Layout has no exit triggers.");PP(f,0,c.uf);PP(f,1,c.vf);PP(f,2,c.tf);PP(f,6,c.wf)}catch(n){QP(a,b,c,n);JP(a,b,!0);return}a.u.ym(b);try{var h=a.u,l=MP(h,b),m=h.Mc.pj.get(b.Xa).get().u(h.D,h.B,b,c);m.init();l.layout=c;if(l.C)throw new OP("Already had LayoutRenderingAdapter registered for slot");l.C=m;RP(h,l,0,c.uf);RP(h,l,1,c.vf);
RP(h,l,2,c.tf);RP(h,l,6,c.wf)}catch(n){SP(a,b);JP(a,b,!0);QP(a,b,c,n);return}NP(a.Bb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.q(a.B);for(d=e.next();!d.done;d=e.next())d.value.zh(b,c);SP(a,b);mpa(a,b)}}};
opa=function(a,b,c){NP(a.Bb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.q(a.B);for(var d=a.next();!d.done;d=a.next())d.value.zh(b,c)};
ppa=function(a,b){aJ(a.Bb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",b);LP(a.u,b)&&(MP(a.u,b).D="fill_canceled",JP(a,b,!1))};
qpa=function(a,b,c){NP(a.Bb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.q(a.B);for(var d=a.next();!d.done;d=a.next())d.value.Kd(b,c)};
BK=function(a,b,c,d){NP(a.Bb,epa(d),b,c);a=g.q(a.B);for(var e=a.next();!e.done;e=a.next())e.value.Ud(b,c,d)};
QP=function(a,b,c,d){fH(d,b,c,void 0,d.Sk);JP(a,b,!0)};
SP=function(a,b){if(LP(a.u,b)){MP(a.u,b).ym=!1;var c=TP,d=MP(a.u,b),e=[].concat(g.la(d.K));pb(d.K);c(a,e)}};
TP=function(a,b){b.sort(function(h,l){return h.category===l.category?h.trigger.triggerId.localeCompare(l.trigger.triggerId):h.category-l.category});
for(var c=new Map,d=g.q(b),e=d.next();!e.done;e=d.next())if(e=e.value,LP(a.u,e.slot))if(MP(a.u,e.slot).ym)MP(a.u,e.slot).K.push(e);else{rpa(a.Bb,e.slot,e,e.layout);var f=c.get(e.category);f||(f=[]);f.push(e);c.set(e.category,f)}d=g.q(spa.entries());for(e=d.next();!e.done;e=d.next())f=g.q(e.value),e=f.next().value,f=f.next().value,(e=c.get(e))&&tpa(a,e,f);(d=c.get(3))&&upa(a,d);(d=c.get(4))&&vpa(a,d);(c=c.get(5))&&wpa(a,c)};
tpa=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&UP(a.u,d.slot)&&xpa(a,d.slot,d.layout,c)};
upa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())JP(a,d.value.slot,!1)};
vpa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;a:switch(MP(a.u,d.slot).D){case "not_filled":var e=!0;break a;default:e=!1}e&&(aJ(a.Bb,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",d.slot),a.u.Mo(d.slot))}};
wpa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;aJ(a.Bb,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",d.slot);for(var e=g.q(a.B),f=e.next();!f.done;f=e.next())f.value.Ah(d.slot);try{var h=a.u,l=d.slot,m=MP(h,l);if(!m)throw new WG("Got enter request for unknown slot");if(!m.B)throw new WG("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==m.u)throw new WG("Tried to enter a slot from stage: "+m.u);if(VP(m))throw new WG("Got enter request for already active slot");
for(var n=g.q(WP(h,l.Xa+"_"+l.feedPosition).values()),p=n.next();!p.done;p=n.next()){var r=p.value;if(m!==r&&VP(r)){e=void 0;var t=h;f=r;var w=l,x=XP(t.oa.get(),1,!1),y=TG(t.Ca.get(),1),D=dH(f.layout),F=f.slot.Wb,G=ypa(t,F),O=eH(F,G),K=w.xa.u.has("metadata_type_fulfilled_layout")?dH(AO(w.xa,"metadata_type_fulfilled_layout")):"unknown",Ja=w.Wb,va=ypa(t,Ja),Va=eH(Ja,va);t=G;w=va;if(t&&w){if(t.start>w.start){var Jb=g.q([w,t]);t=Jb.next().value;w=Jb.next().value}e=t.end>w.start}else e=!1;throw new WG("Trying to enter a slot when a slot of same type is already active.",
{details:x+" |"+(O+" |"+Va),activeSlotStatus:f.u,activeLayout:D?D:"empty",enteringLayout:K,hasOverlap:String(e),contentCpn:y.clientPlaybackNonce,contentVideoId:y.videoId});}}}catch(bb){fH(bb,d.slot,YP(a.u,d.slot),void 0,bb.Sk);JP(a,d.slot,!0);continue}d=MP(a.u,d.slot);"scheduled"!==d.u&&ZP(d.slot,d.u,"enterSlot");d.u="enter_requested";d.B.Uv()}};
mpa=function(a,b){var c;if(LP(a.u,b)&&VP(MP(a.u,b))&&YP(a.u,b)&&!UP(a.u,b)){NP(a.Bb,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=YP(a.u,b))&&void 0!==c?c:void 0);var d=MP(a.u,b);"entered"!==d.u&&ZP(d.slot,d.u,"enterLayoutForSlot");d.u="rendering";d.C.startRendering(d.layout)}};
xpa=function(a,b,c,d){if(LP(a.u,b)){var e=a.Bb,f;var h=(null===(f=dpa.get(d))||void 0===f?void 0:f.cq)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";NP(e,h,b,c);a=MP(a.u,b);"rendering"!==a.u&&ZP(a.slot,a.u,"exitLayout");a.u="rendering_stop_requested";a.C.Ok(c,d)}};
JP=function(a,b,c){if(LP(a.u,b)){if(a.u.Xw(b)||a.u.Vw(b))if(MP(a.u,b).F=!0,!c)return;if(VP(MP(a.u,b)))MP(a.u,b).F=!0,zpa(a,b,c);else if(a.u.Yw(b))MP(a.u,b).F=!0,LP(a.u,b)&&(aJ(a.Bb,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=MP(a.u,b),b.D="fill_cancel_requested",b.I.u());else{c=YP(a.u,b);aJ(a.Bb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var d=MP(a.u,b),e=b.Wb,f=d.X.get(e.triggerId);f&&(f.Mg(e),d.X["delete"](e.triggerId));e=g.q(b.oe);for(f=e.next();!f.done;f=e.next()){f=
f.value;var h=d.P.get(f.triggerId);h&&(h.Mg(f),d.P["delete"](f.triggerId))}e=g.q(b.cf);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.N.get(f.triggerId))h.Mg(f),d.N["delete"](f.triggerId);null!=d.layout&&(e=d.layout,$P(d,e.uf),$P(d,e.vf),$P(d,e.tf),$P(d,e.wf));d.I=void 0;null!=d.B&&(d.B.release(),d.B=void 0);null!=d.C&&(d.C.release(),d.C=void 0);d=a.u;MP(d,b)&&(d=WP(d,b.Xa+"_"+b.feedPosition))&&d["delete"](b.slotId);aJ(a.Bb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.q(a.B);for(d=a.next();!d.done;d=
a.next())d=d.value,d.Bi(b),c&&d.xi(b,c)}}};
zpa=function(a,b,c){if(LP(a.u,b)&&VP(MP(a.u,b))){var d=YP(a.u,b);if(d&&UP(a.u,b))xpa(a,b,d,c?"error":"abandoned");else{aJ(a.Bb,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=MP(a.u,b);if(!e)throw new WG("Cannot exit slot it is unregistered");"enter_requested"!==e.u&&"entered"!==e.u&&"rendering"!==e.u&&ZP(e.slot,e.u,"exitSlot");e.u="exit_requested";if(void 0===e.B)throw e.u="scheduled",new WG("Cannot exit slot because adapter is not defined");e.B.Zv()}catch(f){fH(f,b,void 0,void 0,f.Sk)}}}};
aQ=function(a){this.slot=a;this.X=new Map;this.P=new Map;this.N=new Map;this.W=new Map;this.C=this.layout=this.B=this.I=void 0;this.ym=this.F=!1;this.K=[];this.u="not_scheduled";this.D="not_filled"};
VP=function(a){return"enter_requested"===a.u||a.isActive()};
OP=function(a,b,c){c=void 0===c?!1:c;$a.call(this,a);this.Sk=c;this.args=[];b&&this.args.push(b)};
bQ=function(a,b,c,d,e,f,h,l){g.B.call(this);this.Mc=a;this.C=b;this.F=c;this.D=d;this.B=e;this.Cb=f;this.oa=h;this.Ca=l;this.u=new Map};
WP=function(a,b){var c=a.u.get(b);return c?c:new Map};
MP=function(a,b){return WP(a,b.Xa+"_"+b.feedPosition).get(b.slotId)};
Apa=function(a){var b=[];a.u.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};
ypa=function(a,b){if(b instanceof cH)return b.B;if(b instanceof bH){var c=uO(a.Cb.get(),b.B);if(c=null===c||void 0===c?void 0:AO(c.xa,"metadata_type_ad_placement_config"))return c=XG(c,0x7ffffffffffff),c instanceof WG?void 0:c.Hg}};
LP=function(a,b){return null!=MP(a,b)};
UP=function(a,b){var c=MP(a,b),d;if(d=null!=c.layout)a:switch(c.u){case "rendering":case "rendering_stop_requested":d=!0;break a;default:d=!1}return d};
YP=function(a,b){var c=MP(a,b);return null!=c.layout?c.layout:null};
cQ=function(a,b,c){if(g.ob(c))throw new WG("No "+Bpa.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.Mc.ng.get(d.triggerType))throw new WG("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
PP=function(a,b,c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Mc.ng.get(d.triggerType))throw new OP("No trigger adapter registered for "+Bpa.get(b)+" trigger of type: "+d.triggerType);};
RP=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.Mc.ng.get(e.triggerType);f.Jg(c,e,b.slot,b.layout?b.layout:null);b.W.set(e.triggerId,f)}};
$P=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.W.get(d.triggerId);e&&(e.Mg(d),a.W["delete"](d.triggerId))}};
ZP=function(a,b,c){fH("Slot stage was "+b+" when calling method "+c,a)};
Cpa=function(a){return dQ(a.Tl).concat(dQ(a.ng)).concat(dQ(a.dj)).concat(dQ(a.Dj)).concat(dQ(a.pj))};
dQ=function(a){var b=[];a=g.q(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.ii&&b.push(c);return b};
Epa=function(a){g.B.call(this);this.u=a;this.B=Dpa(this)};
Dpa=function(a){var b=new HP(function(c,d,e,f){return new bQ(a.u.Mc,c,d,e,f,a.u.Cb,a.u.oa,a.u.Ca)},new Set(Cpa(a.u.Mc).concat(a.u.listeners)),a.u.Bb,a.u.ya);
g.C(a,b);return b};
eQ=function(a){g.B.call(this);var b=this;this.B=a;this.u=null;g.dg(this,function(){g.eg(b.u);b.u=null})};
X=function(a){return new eQ(a)};
Ipa=function(a,b,c,d,e){b=g.q(b);for(var f=b.next();!f.done;f=b.next())f=f.value,fQ(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return Fpa(n)});
a=[];b={};f=g.q(f);for(var h=f.next();!h.done;b={pm:b.pm},h=f.next()){b.pm=h.value;h={};for(var l=g.q(b.pm.cv),m=l.next();!m.done;h={Jj:h.Jj},m=l.next())h.Jj=m.value,m=function(n,p){return function(r){return n.Jj.OA(r,p.pm.adVideoId,p.pm.instreamVideoAdRenderer.elementId,n.Jj.hA)}}(h,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===h.Jj.wm?a.push(Gpa(c,d,h.Jj.iA,e,h.Jj.adSlotLoggingData,m)):a.push(Hpa(c,d,e,b.pm.instreamVideoAdRenderer.elementId,h.Jj.adSlotLoggingData,m))}return a};
fQ=function(a,b,c){if(b=Jpa(b)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=Kpa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.Ds=c)}else fH("InstreamVideoAdRenderer without externalVideoId")}};
Jpa=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};
Fpa=function(a){if(void 0===a.instreamVideoAdRenderer)return fH("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.q(a.cv),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.OA)return!1;if(void 0===c.hA)return fH("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.Ds||void 0===c.wm||a.Ds!==c.wm&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.wm)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return fH("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.Ds,"matching APSR kind":c.wm}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.wm&&void 0===c.iA)return fH("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
Kpa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,Ds:void 0,adVideoId:b,cv:[]});return a.get(b)};
gQ=function(a,b,c,d,e,f,h){d?Kpa(a,d).cv.push({iA:b,wm:c,hA:e,adSlotLoggingData:f,OA:h}):fH("Companion AdPlacementSupportedRenderer without adVideoId")};
Npa=function(a,b,c,d,e,f,h){if(!Lpa(a))return new WG("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[Mpa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=hQ(e.Sa.get(),"layout_type_sliding_text_player_overlay",m);var p={layoutId:m,layoutType:"layout_type_sliding_text_player_overlay",rb:"core"},r=new iQ(e.u,d);return{layoutId:m,layoutType:"layout_type_sliding_text_player_overlay",Yd:new Map,uf:[r],vf:[],
tf:[],wf:[],rb:"core",xa:new AP([new LJ(l)]),Ye:n(p)}})]};
Lpa=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};
Spa=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!Opa(a))return function(){return new WG("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=Ppa(h);return 0>=l?function(){return new WG("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=Qpa(m,c,d,function(t){var w=n(t);
t=t.slotId;t=hQ(e.Sa.get(),"layout_type_survey",t);var x={layoutId:t,layoutType:"layout_type_survey",rb:"core"},y=new iQ(e.u,d),D=new jQ(e.u,l,t),F=new kQ(e.u,t),G=new lQ(e.u,t),O=new Rpa(e.u);return{layoutId:t,layoutType:"layout_type_survey",Yd:new Map,uf:[y,D,O],vf:[F],tf:[],wf:[G],rb:"core",xa:new AP([new KJ(h),new FJ(b),new eK(l/1E3)]),Ye:w(x)}}),r=Npa(a,c,p.slotId,d,e,m,n);
return r instanceof WG?r:[p].concat(g.la(r))}};
Ppa=function(a){var b=0;a=g.q(a.questions);for(var c=a.next();!c.done;c=a.next())b+=c.value.instreamSurveyAdMultiSelectQuestionRenderer.surveyAdQuestionCommon.durationMilliseconds;return b};
Opa=function(a){a=((null===a||void 0===a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;if(!a||!a.questions||1!==a.questions.length)return!1;a=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer;if(null===a||void 0===a||!a.surveyAdQuestionCommon)return!1;a=(a.surveyAdQuestionCommon.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;var b=((null===a||void 0===a?void 0:a.adInfoRenderer)||{}).adHoverTextButtonRenderer;return((null===a||void 0===a?void 0:a.skipOrPreviewRenderer)||
{}).skipAdRenderer&&b?!0:!1};
Vpa=function(a,b,c,d,e){var f=[];try{var h=[],l=Tpa(a,d,function(t){t=Upa(t.slotId,c,b,e(t),d);h=t.WQ;return t.kI});
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 WG)return r;f.push.apply(f,g.la(r))}}catch(t){return new WG(t,{errorMessage:t.message,AdPlacementRenderer:c})}return f};
Upa=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={YF:h,ZF:0,UQ:n};l=l.map(function(t){return Wpa(a,t,p,c,d,f,e,m)}).map(function(t,
w){var x=new tH(w,n);
return t(x)});
var r=l.map(function(t){return t.lI});
return{kI:Xpa(c,a,h,r,f,new Map([["ad_placement_start",b.placementStartPings||[]],["ad_placement_end",b.placementEndPings||[]]]),Ypa(b),d,m),WQ:l.map(function(t){return t.VQ})}};
Wpa=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=Vp(m.playerVars);b=Number(n.length_seconds);if(isNaN(b))throw new TypeError("Expected valid length seconds in player vars");var p=Zpa(n,m);if(!p)throw new TypeError("Expected valid video id in IVAR");var r=c.YF,t=c.ZF,w=Number(m.trimmedMaxNonSkippableAdDurationMs),x=isNaN(w)?b:Math.min(b,
w/1E3),y=Math.min(r+1E3*x,l);c.YF=y;c.ZF++;c.UQ.push(x);var D=m.pings?uH(m.pings):new Map;c=m.playerOverlay||{};var F=void 0===c.instreamAdPlayerOverlayRenderer?null:c.instreamAdPlayerOverlayRenderer;return function(G){var O=m.adLayoutLoggingData,K=m.sodarExtensionData,Ja=hQ(d.Sa.get(),"layout_type_media",a),va={layoutId:Ja,layoutType:"layout_type_media",rb:"adapter"};G={layoutId:Ja,layoutType:"layout_type_media",Yd:D,uf:[],vf:[],tf:[],wf:[],rb:"adapter",xa:new AP([new IJ(h),new SJ(x),new TJ(n),new VJ(r),
new WJ(y),new XJ(t),new PJ({current:null}),F&&new JJ(F),new FJ(f),new HJ(p),new GJ(G),K&&new UJ(K)].filter($pa)),Ye:e(va),adLayoutLoggingData:O};O=Spa(m,f,h,G.layoutId,d);return{lI:G,VQ:O}}};
Zpa=function(a,b){var c=a.video_id;if(c||(c=b.externalVideoId))return c};
Ypa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
bqa=function(a,b,c,d,e,f,h,l){a=aqa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=hQ(b.Sa.get(),"layout_type_forecasting",n);var p={layoutId:n,layoutType:"layout_type_forecasting",rb:"core"},r=new Map,t=e.impressionUrls;t&&r.set("impression",t);return{layoutId:n,layoutType:"layout_type_forecasting",Yd:r,uf:[new mQ(b.u,n)],vf:[],tf:[],wf:[],rb:"core",xa:new AP([new ZJ(e),new FJ(c)]),Ye:m(p)}});
return a instanceof WG?a:[a]};
dqa=function(a,b,c,d,e,f,h,l){a=cqa(a,c,f,h,d,function(m,n){var p=m.slotId,r=l(m),t=e.contentSupportedRenderer;t?t.textOverlayAdContentRenderer?(t=hQ(b.Sa.get(),"layout_type_in_video_text_overlay",p),r=nQ(b,t,"layout_type_in_video_text_overlay",e,c,r,oQ(b,n,p))):t.enhancedTextOverlayAdContentRenderer?(t=hQ(b.Sa.get(),"layout_type_in_video_enhanced_text_overlay",p),r=nQ(b,t,"layout_type_in_video_enhanced_text_overlay",e,c,r,oQ(b,n,p))):t.imageOverlayAdContentRenderer?(t=hQ(b.Sa.get(),"layout_type_in_video_image_overlay",
p),p=oQ(b,n,p),p.push(new jQ(b.u,45E3,t)),r=nQ(b,t,"layout_type_in_video_image_overlay",e,c,r,p)):r=new OP("InvideoOverlayAdRenderer without appropriate sub renderer"):r=new OP("InvideoOverlayAdRenderer without contentSupportedRenderer");return r});
return a instanceof WG?a:[a]};
eqa=function(){return[]};
fqa=function(a){var b;return 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};
hqa=function(a,b,c,d,e,f,h,l,m,n,p){if(!e.playerVars)return new WG("No playerVars available in InstreamVideoAdRenderer.");if(!fqa(e))return new WG("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:e});var r=Vp(e.playerVars),t=Number(r.length_seconds);if(isNaN(t))return new WG("Expected valid length seconds in player vars");r.iv_load_policy=p;l.Tf&&(r.ctrl=l.Tf);l.Le&&(r.ytr=l.Le);l.Xi&&(r.ytrcc=l.Xi);l.isMdxPlayback&&(r.mdx="1");r.vvt&&(r.vss_credentials_token=r.vvt,l.qg&&(r.vss_credentials_token_type=
l.qg),l.mdxEnvironment&&(r.mdx_environment=l.mdxEnvironment));var w=n.get(e.externalVideoId);a=gqa(a,c,f,h,d,function(x){var y=new tH(0,[t]);x=m(x);var D=e.elementId,F={layoutId:D,layoutType:"layout_type_media",rb:"core"};y=[new FJ(c),new GJ(y),new HJ(e.externalVideoId),new IJ(f),new JJ(e.playerOverlay.instreamAdPlayerOverlayRenderer),new gK({impressionCommands:e.impressionCommands,onAbandonCommands:e.onAbandonCommands,completeCommands:e.completeCommands,adVideoProgressCommands:e.adVideoProgressCommands}),
new TJ(r),new PJ({current:null}),new SJ(t)];var G=hQ(b.Sa.get(),"layout_type_media_layout_player_overlay",pQ(b.Sa.get(),"slot_type_in_player"));y.push(new NJ(G));e.adNextParams&&y.push(new yJ(e.adNextParams));e.clickthroughEndpoint&&y.push(new zJ(e.clickthroughEndpoint));e.legacyInfoCardVastExtension&&y.push(new fK(e.legacyInfoCardVastExtension));e.sodarExtensionData&&y.push(new UJ(e.sodarExtensionData));w&&y.push(new dK(w));return{layoutId:D,layoutType:"layout_type_media",Yd:uH(e.pings),uf:[new mQ(b.u,
D)],vf:e.skipOffsetMilliseconds?[new kQ(b.u,G)]:[],tf:[new kQ(b.u,G)],wf:[],rb:"core",xa:new AP(y),Ye:x(F),adLayoutLoggingData:e.adLayoutLoggingData}});
return a instanceof WG?a:[a]};
qQ=function(a,b,c,d,e,f){this.ab=a;this.wb=b;this.Ya=c;this.u=d;this.Wh=e;this.loadPolicy=void 0===f?1:f};
UG=function(a,b,c,d,e,f,h){var l,m,n,p,r,t,w,x,y,D,F,G=[];if(0===b.length)return G;b=b.filter(VG);for(var O=new Map,K=new Map,Ja=g.q(b),va=Ja.next();!va.done;va=Ja.next())(va=va.value.renderer.remoteSlotsRenderer)&&va.hostElementId&&K.set(va.hostElementId,va);Ja=g.q(b);for(va=Ja.next();!va.done;va=Ja.next()){va=va.value;var Va=iqa(a,O,va,d,e,f,h,K);Va instanceof WG?fH(Va,void 0,void 0,{renderer:va.renderer,config:va.config.adPlacementConfig,kind:va.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):
G.push.apply(G,g.la(Va))}if(null===a.u||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),G.length||a||fH("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===(w=b[0])||void 0===w?void 0:w.renderer}),G;c=c.filter(VG);G.push.apply(G,g.la(Ipa(O,c,a.ab.get(),a.u,d)));G.length||fH("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(D=null===(y=null===(x=b[0])||void 0===x?void 0:x.config)||void 0===y?void 0:y.adPlacementConfig)||void 0===D?void 0:D.kind,renderer:null===(F=b[0])||
void 0===F?void 0:F.renderer});return G};
iqa=function(a,b,c,d,e,f,h,l){function m(w){return FP(a.Ya.get(),w)}
var n=c.renderer,p=c.config.adPlacementConfig,r=p.kind,t=c.adSlotLoggingData;if(null!=n.actionCompanionAdRenderer)gQ(b,c.elementId,r,n.actionCompanionAdRenderer.adVideoId,p,t,function(w,x,y,D){var F=a.wb.get(),G=n.actionCompanionAdRenderer,O=FP(a.Ya.get(),w);return rQ(F,w.slotId,"layout_type_companion_with_action_button",new xJ(G),x,y,D,G.impressionPings,G.impressionCommands,O,n.actionCompanionAdRenderer.adLayoutLoggingData)});
else if(n.imageCompanionAdRenderer)gQ(b,c.elementId,r,n.imageCompanionAdRenderer.adVideoId,p,t,function(w,x,y,D){var F=a.wb.get(),G=n.imageCompanionAdRenderer,O=FP(a.Ya.get(),w);return rQ(F,w.slotId,"layout_type_companion_with_image",new BJ(G),x,y,D,G.impressionPings,G.impressionCommands,O,n.imageCompanionAdRenderer.adLayoutLoggingData)});
else if(n.shoppingCompanionCarouselRenderer)gQ(b,c.elementId,r,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(w,x,y,D){var F=a.wb.get(),G=n.shoppingCompanionCarouselRenderer,O=FP(a.Ya.get(),w);return rQ(F,w.slotId,"layout_type_companion_with_shopping",new CJ(G),x,y,D,G.impressionPings,G.impressionEndpoints,O,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)});
else{if(n.adBreakServiceRenderer){if(!ZG(c))return[];if(f&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===p.kind){if(!a.Wh)return new WG("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");jqa(a.Wh,{adPlacementRenderer:c,contentCpn:d,JA:e});return[]}return Vma(a.ab.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f)}if(n.clientForecastingAdRenderer)return bqa(a.ab.get(),a.wb.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return dqa(a.ab.get(),
a.wb.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if(n.linearAdSequenceRenderer){if(f)return Vpa(a.ab.get(),a.wb.get(),c,d,m);fQ(b,n,r);return eqa(a.ab.get(),a.wb.get())}if((!n.remoteSlotsRenderer||f)&&n.instreamVideoAdRenderer&&!f)return fQ(b,n,r),hqa(a.ab.get(),a.wb.get(),p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy)}return[]};
sQ=function(a){g.B.call(this);this.u=a};
RG=function(a,b,c,d){a.u().Dg(b,d);c=c();a=a.u();tQ(a.Bb,"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;aJ(d.Bb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.u;if(g.rc(c.slotId))throw new WG("Slot ID was empty");if(MP(e,c))throw new WG("Duplicate registration for slot.");if(!e.Mc.dj.has(c.Xa))throw new WG("No fulfillment adapter factory registered for slot of type: "+c.Xa);if(!e.Mc.Dj.has(c.Xa))throw new WG("No SlotAdapterFactory registered for slot of type: "+
c.Xa);cQ(e,5,c.Wb?[c.Wb]:[]);cQ(e,4,c.oe);cQ(e,3,c.cf);var f=d.u,h=c.Xa+"_"+c.feedPosition,l=WP(f,h);if(MP(f,c))throw new WG("Duplicate slots not supported");l.set(c.slotId,new aQ(c));f.u.set(h,l)}catch(Yd){fH(Yd,c,void 0,void 0,Yd.Sk);break a}d.u.ym(c);try{var m=d.u,n=MP(m,c),p=c.Wb,r=m.Mc.ng.get(p.triggerType);r&&(r.Jg(5,p,c,null),n.X.set(p.triggerId,r));for(var t=g.q(c.oe),w=t.next();!w.done;w=t.next()){var x=w.value,y=m.Mc.ng.get(x.triggerType);y&&(y.Jg(4,x,c,null),n.P.set(x.triggerId,y))}for(var D=
g.q(c.cf),F=D.next();!F.done;F=D.next()){var G=F.value,O=m.Mc.ng.get(G.triggerType);O&&(O.Jg(3,G,c,null),n.N.set(G.triggerId,O))}var K=m.Mc.dj.get(c.Xa).get(),Ja=m.C,va=c;var Va=uQ(va,{Se:["metadata_type_fulfilled_layout"]})?new vQ(Ja,va):K.u(Ja,va);n.I=Va;var Jb=m.Mc.Dj.get(c.Xa).get().u(m.F,c);Jb.init();n.B=Jb}catch(Yd){fH(Yd,c,void 0,void 0,Yd.Sk);JP(d,c,!0);break a}aJ(d.Bb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.u.lg(c);va=g.q(d.B);for(var bb=va.next();!bb.done;bb=va.next())bb.value.lg(c);
SP(d,c)}};
wQ=function(a,b,c,d){g.B.call(this);var e=this;this.kb=a;this.ab=b;this.vb=c;this.u=new Map;d.get().addListener(this);g.dg(this,function(){d.get().removeListener(e)})};
Sma=function(a,b){var c=0x8000000000000;for(var d=0,e=g.q(b.oe),f=e.next();!f.done;f=e.next())f=f.value,f instanceof cH?(c=Math.min(c,f.B.start),d=Math.max(d,f.B.end)):fH("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new On(c,d);d="throttledadcuerange:"+b.slotId;a.u.set(d,b);a.vb.get().addCueRange(d,c.start,c.end,!1,a)};
xQ=function(){g.B.apply(this,arguments);this.ii=!0;this.u=new Map;this.B=new Map};
uO=function(a,b){for(var c=g.q(a.B.values()),d=c.next();!d.done;d=c.next()){d=g.q(d.value);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.layoutId===b)return e}fH("Trying to retrieve an unknown layout")};
yQ=function(){this.B=new Map;this.u=new Map;this.C=new Map};
pQ=function(a,b){if(g.L("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;a.B.set(b,c+1);return b+"_"+c}return is()};
hQ=function(a,b,c){if(g.L("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.u.get(b)||0;a.u.set(b,d+1);return c+"_"+b+"_"+d}return is()};
zQ=function(a,b){if(g.L("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.C.get(b)||0;a.C.set(b,c+1);return b+"_"+c}return is()};
kqa=function(a,b){this.layoutId=b;this.triggerType="trigger_type_close_requested";this.triggerId=a(this.triggerType)};
iQ=function(a,b){this.C=b;this.triggerType="trigger_type_layout_id_exited";this.triggerId=a(this.triggerType)};
lqa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
AQ=function(a,b){this.C=b;this.Xa="slot_type_player_bytes";this.layoutType="layout_type_media";this.triggerType="trigger_type_on_different_layout_id_entered";this.triggerId=a(this.triggerType)};
BQ=function(a,b){this.C=b;this.Xa="slot_type_in_player";this.triggerType="trigger_type_on_different_slot_id_enter_requested";this.triggerId=a(this.triggerType)};
mQ=function(a,b){this.layoutId=b;this.triggerType="trigger_type_on_layout_self_exit_requested";this.triggerId=a(this.triggerType)};
mqa=function(a,b){this.opportunityType="opportunity_type_ad_break_service_response_received";this.associatedSlotId=b;this.triggerType="trigger_type_on_opportunity_received";this.triggerId=a(this.triggerType)};
Rpa=function(a){this.triggerType="trigger_type_playback_minimized";this.triggerId=a(this.triggerType)};
kQ=function(a,b){this.B=b;this.triggerType="trigger_type_skip_requested";this.triggerId=a(this.triggerType)};
lQ=function(a,b){this.B=b;this.triggerType="trigger_type_survey_submitted";this.triggerId=a(this.triggerType)};
jQ=function(a,b,c){this.durationMs=b;this.layoutId=c;this.triggerType="trigger_type_time_relative_to_layout_enter";this.triggerId=a(this.triggerType)};
nqa=function(a,b,c,d,e,f){a=c.cC?c.cC:hQ(f,"layout_type_media_layout_player_overlay",a);var h={layoutId:a,layoutType:"layout_type_media_layout_player_overlay",rb:b};return{layoutId:a,layoutType:"layout_type_media_layout_player_overlay",Yd:new Map,uf:[new iQ(function(l){return zQ(f,l)},c.Wy)],
vf:[],tf:[],wf:[],rb:b,xa:d,Ye:e(h),adLayoutLoggingData:c.adLayoutLoggingData}};
CQ=function(a,b){var c=this;this.ya=a;this.Sa=b;this.u=function(d){return zQ(c.Sa.get(),d)}};
DQ=function(a,b,c,d,e){return nqa(b,c,d,new AP([new MJ(d.Wy),new JJ(d.instreamAdPlayerOverlayRenderer),new OJ(d.kQ),new FJ(d.adPlacementConfig),new SJ(d.videoLengthSeconds),new eK(d.TJ)]),e,a.Sa.get())};
rQ=function(a,b,c,d,e,f,h,l,m,n,p){b=hQ(a.Sa.get(),c,b);var r={layoutId:b,layoutType:c,rb:"core"},t=new Map;l?t.set("impression",l):m&&fH("Companion Ad Renderer without impression Pings but does have impressionCommands",void 0,void 0,{"impressionCommands length":m.length,adPlacementKind:h.kind,companionType:d.u()});return{layoutId:b,layoutType:c,Yd:t,uf:[new mQ(a.u,b),new AQ(a.u,f)],vf:[],tf:[],wf:[],rb:"core",xa:new AP([d,new HJ(e),new FJ(h)]),Ye:n(r),adLayoutLoggingData:p}};
oQ=function(a,b,c){var d=[];d.push(new BQ(a.u,c));g.R(a.ya.get().J.T().experiments,"html5_make_pacf_in_video_overlay_evictable")||b&&d.push(b);return d};
nQ=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,rb:"core"};return{layoutId:b,layoutType:c,Yd:new Map,uf:h,vf:[new kqa(a.u,b)],tf:[],wf:[],rb:"core",xa:new AP([new AJ(d),new FJ(e)]),Ye:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
Xpa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return zP(p,[],["layout_type_media"])})||fH("Unexpect subLayout type for DAI composite layout");
b=hQ(a.Sa.get(),"layout_type_composite_player_bytes",b);var n={layoutId:b,layoutType:"layout_type_composite_player_bytes",rb:"core"};return{layoutId:b,layoutType:"layout_type_composite_player_bytes",Yd:f,uf:[new lqa(a.u)],vf:[],tf:[],wf:[],rb:"core",xa:new AP([new VJ(c),new WJ(m),new QJ(d),new FJ(e),new $J(h)]),Ye:l(n)}};
$pa=function(a){return null!=a};
EQ=function(a,b,c){this.B=b;this.visible=c;this.triggerType="trigger_type_after_content_video_id_ended";this.triggerId=a(this.triggerType)};
FQ=function(a,b,c){this.layoutId=b;this.slotId=c;this.triggerType="trigger_type_layout_id_active_and_slot_id_has_exited";this.triggerId=a(this.triggerType)};
oqa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
GQ=function(a,b,c){this.C=b;this.B=c;this.triggerType="trigger_type_not_in_media_time_range";this.triggerId=a(this.triggerType)};
HQ=function(a,b){this.B=b;this.triggerType="trigger_type_on_new_playback_after_content_video_id";this.triggerId=a(this.triggerType)};
IQ=function(a,b){this.slotId=b;this.triggerType="trigger_type_on_element_self_enter_requested";this.triggerId=a(this.triggerType)};
JQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_entered";this.triggerId=a(this.triggerType)};
KQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_exited";this.triggerId=a(this.triggerType)};
LQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_fulfilled_empty";this.triggerId=a(this.triggerType)};
MQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_fulfilled_non_empty";this.triggerId=a(this.triggerType)};
NQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_scheduled";this.triggerId=a(this.triggerType)};
OQ=function(a){var b=this;this.Sa=a;this.u=function(c){return zQ(b.Sa.get(),c)}};
YG=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=pQ(a.Sa.get(),"slot_type_ad_break_request"),l=[];d.Km&&d.Km.start!==d.Hg.start&&l.push(new cH(a.u,c,new On(d.Km.start,d.Hg.start),!1));l.push(new cH(a.u,c,new On(d.Hg.start,d.Hg.end),d.Xt));d={getAdBreakUrl:b.getAdBreakUrl,wF:d.Hg.start,vF:d.Hg.end};b=new MQ(a.u,h);f=[new bK(d)].concat(g.la(f));return{slotId:h,Xa:"slot_type_ad_break_request",feedPosition:1,Wb:b,oe:l,cf:[new HQ(a.u,c),new KQ(a.u,h),new LQ(a.u,h)],rb:"core",xa:new AP(f),adSlotLoggingData:e}};
qqa=function(a,b,c){var d=[];c=g.q(c);for(var e=c.next();!e.done;e=c.next())d.push(pqa(a,b,e.value));return d};
pqa=function(a,b,c){return null!=c.u&&c.u===a?c.clone(b):c};
rqa=function(a,b,c,d){var e=pQ(a.Sa.get(),"slot_type_in_player");c=new bH(a.u,c);var f={slotId:e,Xa:"slot_type_in_player",feedPosition:1,rb:"core",Wb:c};return{slotId:e,Xa:"slot_type_in_player",feedPosition:1,Wb:c,oe:[new JQ(a.u,e)],cf:[new HQ(a.u,b),new KQ(a.u,e)],rb:"core",xa:new AP([new aK(d(f))])}};
cqa=function(a,b,c,d,e,f){var h=PQ(a,b,c,d);if(h instanceof WG)return h;h instanceof cH&&(h=new cH(a.u,h.D,h.B,h.visible,h.C,!0));d=h instanceof cH?new GQ(a.u,c,h.B):null;b=pQ(a.Sa.get(),"slot_type_in_player");f=f({slotId:b,Xa:"slot_type_in_player",feedPosition:1,rb:"core",Wb:h},d);return f instanceof OP?new WG(f):{slotId:b,Xa:"slot_type_in_player",feedPosition:1,Wb:h,oe:[new JQ(a.u,b)],cf:[new HQ(a.u,c),new KQ(a.u,b)],rb:"core",xa:new AP([new aK(f)]),adSlotLoggingData:e}};
Qpa=function(a,b,c,d){var e=pQ(a.Sa.get(),"slot_type_in_player");c=new bH(a.u,c);var f={slotId:e,Xa:"slot_type_in_player",feedPosition:1,rb:"core",Wb:c};return{slotId:e,Xa:"slot_type_in_player",feedPosition:1,Wb:c,oe:[new JQ(a.u,e)],cf:[new HQ(a.u,b),new KQ(a.u,e)],rb:"core",xa:new AP([new aK(d(f))])}};
Mpa=function(a,b,c,d,e){var f=pQ(a.Sa.get(),"slot_type_in_player");c=new FQ(a.u,d,c);d={slotId:f,Xa:"slot_type_in_player",feedPosition:1,rb:"core",Wb:c};return{slotId:f,Xa:"slot_type_in_player",feedPosition:1,Wb:c,oe:[new JQ(a.u,f)],cf:[new HQ(a.u,b)],rb:"core",xa:new AP([new aK(e(d))])}};
Hpa=function(a,b,c,d,e,f){var h=pQ(a.Sa.get(),b);return sqa(a,h,b,new bH(a.u,d),c,e,f)};
Gpa=function(a,b,c,d,e,f){return sqa(a,c,b,new IQ(a.u,c),d,e,f)};
Tpa=function(a,b,c){var d=pQ(a.Sa.get(),"slot_type_player_bytes"),e=new oqa(a.u),f={slotId:d,Xa:"slot_type_player_bytes",feedPosition:1,rb:"core",Wb:e};return{slotId:d,Xa:"slot_type_player_bytes",feedPosition:1,Wb:e,oe:[new NQ(a.u,d)],cf:[new HQ(a.u,b)],rb:"core",xa:new AP([new aK(c(f)),new YJ({})])}};
gqa=function(a,b,c,d,e,f){var h=pQ(a.Sa.get(),"slot_type_player_bytes");b=PQ(a,b,c,d);if(b instanceof WG)return b;d={slotId:h,Xa:"slot_type_player_bytes",feedPosition:1,rb:"core",Wb:b};return{slotId:h,Xa:"slot_type_player_bytes",feedPosition:1,Wb:b,oe:[new JQ(a.u,h)],cf:[new KQ(a.u,h),new HQ(a.u,c)],rb:"core",xa:new AP([new aK(f(d))]),adSlotLoggingData:e}};
aqa=function(a,b,c,d,e,f){var h=pQ(a.Sa.get(),"slot_type_forecasting");b=PQ(a,b,c,d);if(b instanceof WG)return b;d={slotId:h,Xa:"slot_type_forecasting",feedPosition:1,rb:"core",Wb:b};return{slotId:h,Xa:"slot_type_forecasting",feedPosition:1,Wb:b,oe:[new JQ(a.u,h)],cf:[new KQ(a.u,h),new HQ(a.u,c)],rb:"core",xa:new AP([new aK(f(d))]),adSlotLoggingData:e}};
PQ=function(a,b,c,d){var e=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new $G(a.u,c);case "AD_PLACEMENT_KIND_MILLISECONDS":b=XG(b,d);if(b instanceof WG)return b;b=b.Hg;return new cH(a.u,c,b,e,b.end===d);case "AD_PLACEMENT_KIND_END":return new EQ(a.u,c,e);default:return new WG("Cannot construct entry trigger",{kind:b.kind})}};
sqa=function(a,b,c,d,e,f,h){var l={slotId:b,Xa:c,feedPosition:1,rb:"core",Wb:d};return{slotId:b,Xa:c,feedPosition:1,Wb:d,oe:[new JQ(a.u,b)],cf:[new HQ(a.u,e),new KQ(a.u,b)],rb:"core",xa:new AP([new aK(h(l))]),adSlotLoggingData:f}};
QQ=function(a,b,c){g.B.call(this);this.ya=a;this.u=b;this.Ca=c;this.eventCount=0};
aJ=function(a,b,c){tQ(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)};
NP=function(a,b,c,d){tQ(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,void 0,d?d.adLayoutLoggingData:void 0)};
rpa=function(a,b,c,d){g.R(a.ya.get().J.T().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs")&&tQ(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c)};
tQ=function(a,b,c,d,e,f,h,l,m,n){if(g.R(a.ya.get().J.T().experiments,"html5_enable_ads_client_monitoring_log")&&!g.R(a.ya.get().J.T().experiments,"html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var p=EP(a.u.get());b={eventType:b,eventOrder:++a.eventCount};var r=g.Q(a.ya.get().J.T().experiments,"html5_experiment_id_label"),t={organicPlaybackContext:{contentCpn:TG(a.Ca.get(),1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=TG(a.Ca.get(),1).Bg;0<r&&(t.html5ExperimentContext=
{ytExperimentId:r});a={};f&&(a.slotData=DP(p,f));h&&(a.layoutData=ipa(p,h));l&&(f={type:CP.get(l.trigger.triggerType)||"TRIGGER_TYPE_UNSPECIFIED",category:tqa.get(l.category)||"TRIGGER_CATEGORY_UNSPECIFIED"},a.triggerData=f);c&&(a.opportunityData=kpa(p,c,d,e));t&&(a.externalContext=t);b.adClientData=a;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);g.Lq("adsClientStateChange",{adsClientEvent:b})}};
RQ=function(){this.u=new Map};
SQ=function(a,b,c,d,e){g.B.call(this);this.C=b;this.oa=c;this.ya=d;this.Fd=e;this.listeners=[];var f=new g.Wr(this);g.C(this,f);f.R(a,"internalAbandon",this.B);g.dg(this,function(){g.Yr(f)})};
uqa=function(a,b,c,d,e,f,h){var l;if(""===b)fH("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else{a.u=b;a.oa.get().si(b,c,d,e,f,h);null===(l=a.Fd)||void 0===l?void 0:l.get().si(b,c,d,e,f,h);a.C.si(b,c,d,e,f,h);a=g.q(a.listeners);for(var m=a.next();!m.done;m=a.next())m.value.si(b,c,d,e,f,h)}};
vqa=function(a,b){a.u=void 0;for(var c=g.q(a.listeners),d=c.next();!d.done;d=c.next())d.value.Kl(b)};
TQ=function(a){g.B.call(this);this.J=a;this.u=new Map;this.B=new g.Wr(this);g.C(this,this.B);this.B.R(this.J,g.wD("ad"),this.C,this);this.B.R(this.J,g.xD("ad"),this.D,this)};
wqa=function(a,b,c,d,e){g.tD.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
UQ=function(a){this.J=a};
VQ=function(a){return g.R(a.J.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")};
WQ=function(a){var b=g.kC(a.J.T())||a.J.T().u||g.oC(a.J.T())||pC(a.J.T())||bC(a.J.T()),c=nC(a.J.T())&&g.R(a.J.T().experiments,"html5_enable_video_overlay_on_inplayer_slot_for_remix");a=g.$B(a.J.T())&&!g.mC(a.J.T())&&g.R(a.J.T().experiments,"html5_enable_video_overlay_on_inplayer_slot_for_tv");return b||c||a};
gM=function(a){return g.R(a.J.T().experiments,"html5_pacf_enable_dai")};
nM=function(a){return g.R(a.J.T().experiments,"html5_handle_preroll_lock_in_pacf")};
xqa=function(a){return g.R(a.J.T().experiments,"html5_recognize_predict_start_cue_point")};
yqa=function(a){return g.R(a.J.T().experiments,"drop_overlay_ads_on_cba_violation")};
XQ=function(a,b){this.oa=a;this.J=b;this.u=new Map;sH().subscribe("adactiveviewmeasurable",this.C,this);sH().subscribe("adfullyviewableaudiblehalfdurationimpression",this.B,this);sH().subscribe("adviewableimpression",this.D,this)};
zqa=function(a,b,c,d){d=void 0===d?null:d;a.u.has(b)?fH("Unexpected registration of layout in LidarApi"):(a.u.set(b,d),ana(sH(),b,{Po:function(){return{currentTime:XP(a.oa.get(),2,!1),duration:c,Gb:2===a.oa.get().getPresentingPlayerType()&&1===YQ(a.oa.get(),2),nW:!1,oW:!0,volume:a.oa.get().isMuted()?0:a.oa.get().getVolume()/100}}}))};
Aqa=function(a,b){a.u.has(b)?(a.u["delete"](b),delete sH().u[b]):fH("Unexpected unregistration of layout in LidarApi")};
Coa=function(a,b,c){if(!a.u.has(b))return{};if("seek"===c)return a=g.R(a.J.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock"),Hl(b,a),{};c=ZH(c);if(null===c)return{};var d=a.J.Tb();d=d&&2===d.getPlayerType()&&oI(d);if(!d)return{};a={opt_adElement:d,opt_fullscreen:a.oa.get().isFullscreen()};return Gl(c,b,a)};
ZQ=function(a,b){this.u=a;this.C=b};
$Q=function(a,b,c,d){var e=void 0===e?new ZQ(function(){var f=a.getVideoData(1);return f?f.lf():""},function(){return a.T().pageId}):e;
this.J=a;this.pd=b;this.bb=c;this.Ca=d;this.jo=e;this.B=null;this.u=new Map;this.Bh=new SH(e)};
Bqa=function(a,b,c,d){d=void 0===d?[]:d;(c=uO(a.pd.get(),c))?(c=pO(a,vO(c),c),b.hasOwnProperty("baseUrl")?a.jo.send(b,c):a.Bh.send(b,c,{},d)):fH("Trying to ping from an unknown layout")};
aR=function(a){if(a=a.J.Tb())if(a=Cqa(a.I))return a;return function(){}};
bR=function(a,b){a.u.has(b.Qo())?fH("Trying to register an existing AdErrorInfoSupplier."):a.u.set(b.Qo(),b)};
cR=function(a,b){a.u["delete"](b.Qo())||fH("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
vO=function(a){var b=AO(a.xa,"metadata_type_ad_placement_config");a=AO(a.xa,"metadata_type_sub_layout_index");return{adPlacementConfig:b,JC:a}};
pO=function(a,b,c){var d=c?Dqa(a):{};c=c?Eqa(a,c.layoutId):{};var e={},f={};d=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},KH(a.J)),ina(b.adPlacementConfig)),(e.SLOT_POS=JH(function(){return(b.JC||0).toString()}),e)),c),d),(f.FINAL=JH(function(){return"1"}),f.AD_CPN=JH(function(){var l;
return(null===(l=TG(a.Ca.get(),2))||void 0===l?void 0:l.clientPlaybackNonce)||""}),f));
c={};e=g.q(Object.values(Fqa));for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d[f];null!=h&&(c[f]=h.toString())}return c};
Dqa=function(a){var b,c={},d=null===(b=a.B)||void 0===b?void 0:b.u();null!=d&&(c.SURVEY_ELAPSED_MS=JH(function(){return(1E3*d).toString()}));
c.SURVEY_LOCAL_TIME_EPOCH_S=JH(function(){return Math.round(Date.now()/1E3).toString()});
return c};
Eqa=function(a,b){var c=a.u.get(b);if(!c)return{};c=c.hw();if(!c)return{};var d={};return d.YT_ERROR_CODE=c.Pu.toString(),d.ERRORCODE=c.Fq.toString(),d.ERROR_MSG=c.errorMessage,d};
g.dR=function(){g.Wr.apply(this,arguments)};
eR=function(a,b){g.B.call(this);this.J=a;this.Cc=b;this.listeners=[];var c=new g.dR(this);g.C(this,c);c.R(a,"videodatachange",this.LP);this.u=TG(this);this.contentCpn=TG(this,1).clientPlaybackNonce};
TG=function(a,b){var c=a.J.getVideoData(b);return c?a.Zq(c):null};
fR=function(a){g.B.call(this);this.J=a;this.listeners=[];this.u=function(){fH("Called 'doUnlockPreroll' before it's initialized.")};
var b=new g.Wr(this);g.C(this,b);b.R(a,"progresssync",this.LO);b.R(a,"presentingplayerstatechange",this.CO);b.R(a,"fullscreentoggled",this.rK);b.R(a,"onVolumeChange",this.sK);b.R(a,"minimized",this.yi);b.R(a,"resize",this.Ra)};
XP=function(a,b,c){return a.J.getCurrentTime(b,c)};
YQ=function(a,b){return g.lI(a.J,b)};
Gqa=function(a){var b=g.pG(a.J).getPlayerSize();a=a.J.ci(!0,!0);return b.height-(a.height+a.top)};
Hqa=function(a,b){var c=a.J.T();QB(c)||"3"!==c.controlsType||XH(g.pG(a.J),b)};
Iqa=function(a,b,c){g.B.call(this);var d=this;this.Sa=X(function(){return new yQ});
g.C(this,this.Sa);this.wb=X(function(){return new CQ(d.ya,d.Sa)});
g.C(this,this.wb);this.Cb=X(function(){return new xQ});
g.C(this,this.Cb);this.kb=X(function(){return new sQ(a)});
g.C(this,this.kb);this.ab=X(function(){return new OQ(d.Sa)});
g.C(this,this.ab);this.Cc=X(function(){return new RQ});
g.C(this,this.Cc);this.vb=X(function(){return new TQ(b)});
g.C(this,this.vb);this.ya=X(function(){return new UQ(b)});
g.C(this,this.ya);this.Ya=X(function(){return new GP(d.ya)});
g.C(this,this.Ya);this.fc=X(function(){return new qQ(d.ab,d.wb,d.Ya,null,null)});
g.C(this,this.fc);this.Ca=X(function(){return new eR(b,d.Cc)});
g.C(this,this.Ca);this.Bb=new QQ(this.ya,this.Ya,this.Ca);g.C(this,this.Bb);this.oa=X(function(){return new fR(b)});
g.C(this,this.oa);this.bb=X(function(){return new XQ(d.oa,b)});
g.C(this,this.bb);this.Da=X(function(){return new $Q(b,d.Cb,d.bb,d.Ca)});
g.C(this,this.Da);this.Hb=new gH(this.kb,this.fc,c,this.ya,a,this.Ca);g.C(this,this.Hb);var e=new SQ(b,this.Hb,this.oa,this.ya);this.yd=X(function(){return e});
this.yj=e;this.Nc=new wQ(this.kb,this.ab,this.vb,this.yd);g.C(this,this.Nc);this.Ib=new QG(this.kb,this.ab,this.fc,this.Ca,this.Nc,c);g.C(this,this.Ib);this.Mc={Tl:new Map,dj:new Map,ng:new Map,Dj:new Map,pj:new Map};this.listeners=[];this.le={Ib:this.Ib,Rk:null,rj:null,ag:this.ya.get(),Ck:this.oa.get(),Hb:this.Hb,qj:null,wh:{Zo:function(){}},
fg:this.Cb.get()}};
gR=function(a){this.u=a};
hR=function(){};
Jqa=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&Te(b.siub,b.scs,b.bgub,b.bgp)};
Kqa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.wb=c;this.Ya=d;this.ya=e;this.u=null};
Lqa=function(a,b,c){a.u&&fH("Currently active request ongoing for slot. This should never happen",a.slot);a.u=b();a.u.then(function(d){a.u=null;c&&c(d);var e;if(e=VQ(a.ya.get()))if(e=!d.jm)a:{e=g.q(a.slot.oe);for(var f=e.next();!f.done;f=e.next())if(f.value instanceof $G){e=!0;break a}e=!1}if(e)for(e=g.q(d.Rg),f=e.next();!f.done;f=e.next())f=f.value,f.renderer&&f.renderer.invideoOverlayAdRenderer&&fH("Detected deferred preroll overlay.",a.slot,void 0,{kind:f.config&&f.config.adPlacementConfig&&f.config.adPlacementConfig.kind||
"unknown"});e=d.jm?"layout_type_throttled_ad_break_response":"layout_type_ad_break_response";f=a.wb.get();var h=a.slot.slotId,l=FP(a.Ya.get(),{slotId:a.slot.slotId,Xa:a.slot.Xa,feedPosition:a.slot.feedPosition,rb:a.slot.rb,Wb:a.slot.Wb}),m=hQ(f.Sa.get(),e,h),n={layoutId:m,layoutType:e,rb:"core"};d={layoutId:m,layoutType:e,Yd:new Map,uf:[new mqa(f.u,h)],vf:[],tf:[],wf:[],rb:"core",xa:new AP([new cK(d)]),Ye:l(n)};npa(a.callback,a.slot,d)},function(d){a.u=null;
d instanceof Qm||KP(a.callback,a.slot,new WG(d,void 0,!0))})};
Mqa=function(a){if(null==a.u)ppa(a.callback,a.slot);else try{a.u.cancel(),a.u=null,ppa(a.callback,a.slot)}catch(b){a.u=null,KP(a.callback,a.slot,new WG(b))}};
iR=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.Pc=c;this.B=new Kqa(a,b,d,e,f)};
jR=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.Pc=c;this.B=new Kqa(a,b,d,e,f)};
vQ=function(a,b){this.callback=a;this.slot=b};
uQ=function(a,b){return zG(a,b.Se,b.Xa)?!0:!1};
Nqa=function(){};
kR=function(a,b,c,d){this.Pc=a;this.wb=b;this.Ya=c;this.ya=d};
lR=function(){};
Oqa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.u=d};
mR=function(a,b){return zP(a,b.Se,b.nh)?!0:!1};
nR=function(a){this.B=a};
Pqa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Da=d;this.u=e;a=AO(this.layout.xa,"metadata_type_ad_placement_config");this.Fa=new nO(c.Yd,this.Da,a,c.layoutId)};
Qqa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];oO().forEach(function(b){a.push(b)});
return{Se:a,nh:["layout_type_forecasting"]}};
oR=function(a,b,c){this.Da=a;this.B=b;this.bb=c};
pR=function(a,b,c,d){g.P.call(this);this.callback=a;this.slot=b;this.layout=c;this.B=d;this.Ij=[]};
qR=function(a,b,c,d,e,f,h){e=AO(c.xa,e);a=qO(a);var l=fb(function(){d.Kd(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.Ye},function(){l()}))};
sR=function(a,b,c,d,e,f,h,l){if(b===a){a:{a=g.q(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"slot_type_player_bytes"===b.Xa&&rR(f,c.get(b))){c=!0;break a}c=!1}c?d.J.sendVideoStatsEngageEvent(1,void 0,2):e?e():fH("Tried to call engagePingCallback but it is null",h,l)}};
rR=function(a,b){return zP(b,["metadata_type_ad_video_id"],["layout_type_media"])&&a===AO(b.xa,"metadata_type_ad_video_id")?!0:!1};
tR=function(a,b,c,d,e,f,h,l){pR.call(this,a,b,c,d);this.Da=e;this.Nd=f;this.pd=l;this.ii=!0;this.Yg=null;this.ko="action-companion";this.Qk=AO(c.xa,"metadata_type_ad_video_id");IP(this.Nd(),this);a=AO(c.xa,"metadata_type_ad_placement_config");this.Fa=new nO(c.Yd,this.Da,a,c.layoutId)};
Rqa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_ad_video_id"];oO().forEach(function(b){a.push(b)});
return{Se:a,nh:["layout_type_companion_with_action_button"]}};
uR=function(a,b,c,d,e,f,h){pR.call(this,a,b,c,d);this.oa=e;this.Da=f;this.pd=h;this.u=!1;this.C=AO(this.layout.xa,"metadata_type_linked_player_bytes_layout_id")};
Sqa=function(){return{Se:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],nh:["layout_type_media_layout_player_overlay"]}};
vR=function(a,b,c,d,e,f,h){return mR(c,Sqa())?new uR(a,b,c,d,e,f,h):null};
wR=function(a,b,c,d){this.Mb=a;this.oa=b;this.Da=c;this.pd=d};
Tqa=function(a){return!a.xj.Gb()&&a.state.Gb()};
xR=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
zR=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,D){g.B.call(this);var F=this;this.callback=a;this.slot=b;this.layout=c;this.Nd=d;this.F=e;this.Da=f;this.bb=h;this.Xc=l;this.Tc=m;this.Ca=n;this.oa=p;this.vb=r;this.Hc=t;this.kc=w;this.bd=x;this.Xb=y;this.fd=D;this.ii=!0;this.adCpn="";this.B=this.C=!1;a=AO(this.layout.xa,"metadata_type_ad_placement_config");this.Fa=new nO(c.Yd,this.Da,a,c.layoutId);this.u=new g.H(function(){yR(F,"load_timeout",new OP("Media layout load timeout."))},1E4)};
Uqa=function(){for(var a="metadata_type_ad_video_id metadata_type_linked_in_player_layout_id metadata_type_player_vars metadata_type_player_bytes_callback_ref metadata_type_instream_ad_player_overlay_renderer metadata_type_instream_video_ad_commands metadata_type_video_length_seconds".split(" "),b=g.q(oO()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Se:a,nh:["layout_type_media"]}};
yR=function(a,b,c){a.D={Pu:3,Fq:"load_timeout"===b?402:400,errorMessage:c.message};QP(a.callback,a.slot,a.layout,c)};
Vqa=function(a,b,c){c=void 0===c?!1:c;var d=a.Fa,e=1E3*b,f=c;for(f=void 0===f?!1:f;d.B<d.C.length;){var h=d.C[d.B];if(h.offsetMilliseconds<=e||f)rO(d,"progress",[h]),d.B++;else break}d=AO(a.layout.xa,"metadata_type_video_length_seconds");(b>=.25*d||c)&&tO(a.Fa,"first_quartile");(b>=.5*d||c)&&tO(a.Fa,"midpoint");(b>=.75*d||c)&&tO(a.Fa,"third_quartile")};
Wqa=function(a,b){VK(a.Hc.get(),AO(a.layout.xa,"metadata_type_ad_placement_config").kind,b,1,1,!1)};
AR=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w){this.Nd=a;this.B=b;this.Da=c;this.bb=d;this.Xc=e;this.Tc=f;this.Ca=h;this.oa=l;this.vb=m;this.Hc=n;this.kc=p;this.bd=r;this.Xb=t;this.fd=w};
BR=function(a,b,c,d,e,f,h,l){g.B.call(this);this.B=a;this.u=b;this.C=c;this.kb=d;this.ab=e;this.Ya=f;this.ya=h;this.Ca=l;this.ii=!0};
Xqa=function(a){var b;return WQ(a.ya.get())||(null===(b=TG(a.Ca.get()))||void 0===b?0:b.daiEnabled)&&gM(a.ya.get())?!0:!1};
CR=function(a){var b,c=null===(b=AO(a.xa,"metadata_type_player_bytes_callback_ref"))||void 0===b?void 0:b.current;if(c){var d=a.layoutId,e=AO(a.xa,"metadata_type_content_cpn"),f=AO(a.xa,"metadata_type_instream_ad_player_overlay_renderer"),h=AO(a.xa,"metadata_type_ad_placement_config"),l=AO(a.xa,"metadata_type_video_length_seconds");var m=a.xa.u.has("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?AO(a.xa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):a.xa.u.has("metadata_type_layout_enter_ms")&&a.xa.u.has("metadata_type_layout_exit_ms")?
(AO(a.xa,"metadata_type_layout_exit_ms")-AO(a.xa,"metadata_type_layout_enter_ms"))/1E3:void 0;a={Wy:d,contentCpn:e,kQ:c,instreamAdPlayerOverlayRenderer:f,adPlacementConfig:h,videoLengthSeconds:l,TJ:m,adLayoutLoggingData:a.adLayoutLoggingData,cC:AO(a.xa,"metadata_type_linked_in_player_layout_id")}}else a=null;return a};
Yqa=function(a,b){this.callback=a;this.slot=b};
DR=function(){};
Zqa=function(a,b,c){this.callback=a;this.slot=b;this.oa=c};
$qa=function(a,b,c){this.callback=a;this.slot=b;this.oa=c;this.u=!1};
ara=function(a){a.u&&(a.oa.get().u(),a.u=!1)};
ER=function(a){this.oa=a};
FR=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
GR=function(a){g.B.call(this);this.qx=a;this.gb=new Map};
HR=function(a,b){GR.call(this,a);var c=this;b.get().addListener(this);g.dg(this,function(){b.get().removeListener(c)})};
IR=function(a){g.B.call(this);this.u=a;this.ii=!0;this.gb=new Map;this.F=new Set;this.C=new Set;this.D=new Set;this.I=new Set;this.B=new Set};
JR=function(a,b){g.B.call(this);var c=this;this.u=a;this.gb=new Map;b.get().addListener(this);g.dg(this,function(){b.get().removeListener(c)})};
bra=function(a,b,c){var d=[];a=g.q(a.values());for(var e=a.next();!e.done;e=a.next())e=e.value,e.trigger instanceof HQ&&e.trigger.B===b===c&&d.push(e);return d};
cra=function(a,b){for(var c=[],d=g.q(a.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof $G&&e.trigger.B===b&&c.push(e);return c};
KR=function(a,b,c,d){g.B.call(this);var e=this;this.C=a;this.vb=b;this.oa=c;this.Ca=d;this.gb=new Map;this.u=new Set;this.B=new Set;c.get().addListener(this);g.dg(this,function(){c.get().removeListener(e)})};
LR=function(a,b,c,d,e,f,h,l,m,n){if(TG(a.Ca.get(),1).clientPlaybackNonce!==m)throw new WG("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.gb.set(c.triggerId,{bundle:new FR(b,c,d,e),Dm:f});a.vb.get().addCueRange(f,h,l,n,a)};
dra=function(a,b){for(var c=g.q(a.gb.entries()),d=c.next();!d.done;d=c.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;if(b===e.Dm)return d}return""};
MR=function(a){g.B.call(this);this.C=a;this.ii=!0;this.gb=new Map;this.B=this.u=null};
NR=function(a,b){for(var c=[],d=g.q(a.gb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof mQ){var f;if(f=e.trigger.layoutId===b)f=(f=spa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&TP(a.C(),c)};
OR=function(a){g.B.call(this);this.u=a;this.ii=!0;this.gb=new Map};
PR=function(a,b,c,d,e,f){g.B.call(this);this.C=a;this.Ed=b;this.Ya=c;this.Ca=d;this.ya=e;this.Sa=f;this.u=this.B=null;this.Ed.get().addListener(this)};
QR=function(a,b){this.Xu=a;this.ya=b};
era=function(a,b){if(!a)return{Rg:[],jm:!0};a.trackingParams&&xL(wL(),a.trackingParams);if(a.adThrottled)return{Rg:[],jm:!0};var c=a.playerAds;if(!c||!c.length)return{Rg:[],jm:!1};c=c.map(function(e){return e.adPlacementRenderer}).filter(function(e){return!(!e||!e.renderer)});
if(!c.length)return{Rg:[],jm:!1};if(0<b.end){var d=b.end.toString();c.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===e.kind&&e.adTimeOffset&&"-1"===e.adTimeOffset.offsetEndMilliseconds&&e.adTimeOffset.offsetEndMilliseconds!==d&&(e.adTimeOffset.offsetEndMilliseconds=d)})}return{Rg:c,
jm:!1}};
RR=function(a){g.B.call(this);this.J=a;this.listeners=[];this.u=new g.Wr(this);g.C(this,this.u);this.u.R(this.J,"aduxclicked",this.onAdUxClicked);this.u.R(this.J,"aduxmouseover",this.qK);this.u.R(this.J,"aduxmouseout",this.pK);this.u.R(this.J,"muteadaccepted",this.BM)};
fra=function(a,b,c){b=g.Pc(b,function(d){return new mH(d,c,d.id)});
a.J.va("onAdUxUpdate",b)};
SR=function(a,b){for(var c=g.q(a.listeners),d=c.next();!d.done;d=c.next())b(d.value)};
TR=function(a){this.J=a};
UR=function(a){this.J=a};
VR=function(a){this.J=a};
WR=function(){this.listeners=[]};
gra=function(a){this.J=a};
hra=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Ca=d;this.Rf=e;this.Fd=f;this.oa=h;this.Fa=l;this.Da=m;this.B=n;this.u=null;this.driftRecoveryMs=AO(c.xa,"metadata_type_drift_recovery_ms")||null};
jra=function(a,b){var c=ira(a,b);a.u={Sh:c};c&&c.startRendering()};
lra=function(a){var b=AO(a.layout.xa,"metadata_type_layout_enter_ms"),c=AO(a.layout.xa,"metadata_type_layout_exit_ms");a=kra(a.Fd.get(),b,c);return Math.min(c,null!==a?a:Infinity)};
ira=function(a,b){return null==b?null:a.B.find(function(c){return c.layout.layoutId===b})||null};
YR=function(a,b){var c;a.Da.get();var d={driftRecoveryInfo:Object.assign({contentCpn:null===(c=a.Ca.get().u)||void 0===c?void 0:c.clientPlaybackNonce,adClientData:a.layout.Ye.adClientDataEntry},b)};g.Lq("adsClientStateChange",d)};
mra=function(a,b,c,d,e,f,h,l,m){this.callback=a;this.slot=b;this.layout=c;this.Rf=d;this.Fa=e;this.oa=f;this.Cc=h;this.bb=l;this.Xc=m;this.X=!0;this.u=null};
nra=function(a,b,c,d){var e=AO(a.layout.xa,"metadata_type_video_length_seconds");0>=e||0>=c||g.T(b,16)||g.T(b,32)||(xR(c,.25*e,d)&&tO(a.Fa,"first_quartile"),xR(c,.5*e,d)&&tO(a.Fa,"midpoint"),xR(c,.75*e,d)&&tO(a.Fa,"third_quartile"))};
ora=function(a){return Object.assign(Object.assign({},ZR(a)),{adPlacementConfig:AO(a.xa,"metadata_type_ad_placement_config"),subLayouts:AO(a.xa,"metadata_type_sub_layouts").map(ZR)})};
ZR=function(a){return{enterMs:AO(a.xa,"metadata_type_layout_enter_ms"),exitMs:AO(a.xa,"metadata_type_layout_exit_ms")}};
$R=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,D){this.Nd=a;this.B=b;this.Ca=c;this.Rf=d;this.oa=e;this.Da=f;this.Cc=h;this.Fd=l;this.bb=m;this.Xc=n;this.Tc=p;this.vb=r;this.Hc=t;this.kc=w;this.bd=x;this.Xb=y;this.fd=D};
aS=function(a,b,c,d,e,f){g.B.call(this);var h=this;this.kb=a;this.ab=b;this.Ca=c;this.Fd=e;this.oa=f;this.u=null;d.get().addListener(this);g.dg(this,function(){d.get().removeListener(h)});
e.get().addListener(this);g.dg(this,function(){e.get().removeListener(h)})};
jqa=function(a,b){if(TG(a.Ca.get(),1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===b.adPlacementRenderer.config.adPlacementConfig.kind)if(a.u)fH("Unexpected multiple fetch instructions for the current content");else{a.u=b;for(var c=g.q(a.Fd.get().u),d=c.next();!d.done;d=c.next())pra(a,a.u,d.value)}};
pra=function(a,b,c){var d=XP(a.oa.get(),1,!1);RG(a.kb.get(),"opportunity_type_live_stream_break_signal",function(){var e=a.ab.get();var f=1E3*c.startSecs;f={Hg:new On(f,f+1E3*c.durationSecs),Xt:!1};var h=c.startSecs+c.durationSecs;f.Km=c.startSecs<=d?new On(1E3*(c.startSecs-4),1E3*h):new On(1E3*Math.floor(d+Math.random()*Math.max(0,c.startSecs-d-10)),1E3*h);return[YG(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,b.contentCpn,f,b.adPlacementRenderer.adSlotLoggingData,[new RJ(c)])]})};
bS=function(a,b){var c;g.B.call(this);var d=this;this.D=a;this.B=new Map;this.C=new Map;this.u=null;b.get().addListener(this);g.dg(this,function(){b.get().removeListener(d)});
this.u=(null===(c=b.get().u)||void 0===c?void 0:c.slotId)||null};
qra=function(a,b){for(var c=[],d=g.q(a.values()),e=d.next();!e.done;e=d.next())e=e.value,e.slot.slotId===b&&c.push(e);return c};
cS=function(a,b,c,d){g.B.call(this);this.J=a;this.Ca=b;this.ya=c;this.Da=d;this.listeners=[];this.B=new Set;this.u=[];this.D=new HK(this,xqa(c.get()));this.C=new IK;rra(this)};
kra=function(a,b,c){return JK(a.C,b,c)};
rra=function(a){var b,c=a.J.getVideoData(1);c.subscribe("cuepointupdated",a.Kx,a);a.B.clear();a.u.length=0;c=(null===(b=c.ma)||void 0===b?void 0:Qz(b,0))||[];a.Kx(c)};
sra=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");}};
tra=function(a){this.J=a};
vra=function(a,b,c){ura(a.J,b,c)};
dS=function(a){g.B.call(this);this.C=a;this.ii=!0;this.gb=new Map;this.u=new Map;this.B=new Map};
wra=function(a,b){var c=[],d=a.u.get(b.layoutId);if(d){d=g.q(d);for(var e=d.next();!e.done;e=d.next())(e=a.B.get(e.value.triggerId))&&c.push(e)}return c};
eS=function(){this.listeners=new Set};
fS=function(a,b,c,d,e,f,h,l){pR.call(this,a,b,c,d);this.Da=e;this.Nd=f;this.pd=l;this.ii=!0;this.Yg=null;this.ko="image-companion";this.Qk=AO(c.xa,"metadata_type_ad_video_id");IP(this.Nd(),this);a=AO(c.xa,"metadata_type_ad_placement_config");this.Fa=new nO(c.Yd,this.Da,a,c.layoutId)};
xra=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_ad_video_id"];oO().forEach(function(b){a.push(b)});
return{Se:a,nh:["layout_type_companion_with_image"]}};
gS=function(a,b,c,d,e,f,h,l){pR.call(this,a,b,c,d);this.Da=e;this.Nd=f;this.pd=l;this.ii=!0;this.Yg=null;this.ko="shopping-companion";this.Qk=AO(c.xa,"metadata_type_ad_video_id");IP(this.Nd(),this);a=AO(c.xa,"metadata_type_ad_placement_config");this.Fa=new nO(c.Yd,this.Da,a,c.layoutId)};
yra=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_ad_video_id"];oO().forEach(function(b){a.push(b)});
return{Se:a,nh:["layout_type_companion_with_shopping"]}};
zra=function(a,b,c,d,e){this.Mb=a;this.Da=b;this.Nd=c;this.pd=d;this.bb=e};
hS=function(a,b,c,d,e,f,h,l,m,n){pR.call(this,f,a,b,e);this.Da=c;this.u=h;this.oa=l;this.Xb=m;this.ya=n;this.Fa=BO(b,c)};
Ara=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];oO().forEach(function(b){a.push(b)});
return{Se:a,nh:["layout_type_in_video_text_overlay","layout_type_in_video_enhanced_text_overlay"]}};
iS=function(a,b,c,d,e,f,h,l,m,n,p){pR.call(this,f,a,b,e);this.Da=c;this.u=h;this.D=l;this.oa=m;this.Xb=n;this.ya=p;this.Fa=BO(b,c)};
Bra=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.ob(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.he(0,0):new g.he(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
jS=function(a,b,c,d,e,f,h,l,m){this.Mb=a;this.oa=b;this.Da=c;this.pd=d;this.bb=e;this.B=f;this.C=h;this.Xb=l;this.ya=m};
kS=function(a){g.B.call(this);this.u=a;this.gb=new Map};
lS=function(a,b){for(var c=[],d=g.q(a.gb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.layoutId===b.layoutId&&c.push(e);c.length&&TP(a.u(),c)};
mS=function(a,b,c){g.B.call(this);this.C=a;this.oi=b;this.Sa=c;this.u=this.B=void 0;this.oi.get().addListener(this)};
Cra=function(a,b,c,d,e){g.B.call(this);var f=this;this.Sa=X(function(){return new yQ});
g.C(this,this.Sa);this.wb=X(function(){return new CQ(f.ya,f.Sa)});
g.C(this,this.wb);this.Cb=X(function(){return new xQ});
g.C(this,this.Cb);this.kb=X(function(){return new sQ(a)});
g.C(this,this.kb);this.ab=X(function(){return new OQ(f.Sa)});
g.C(this,this.ab);this.Cc=X(function(){return new RQ});
g.C(this,this.Cc);this.bd=X(function(){return new tI(b.T())});
g.C(this,this.bd);this.Mb=X(function(){return new RR(b)});
g.C(this,this.Mb);this.Xb=X(function(){return new gR(e)});
g.C(this,this.Xb);this.Hc=X(function(){return new TK(b)});
g.C(this,this.Hc);this.vb=X(function(){return new TQ(b)});
g.C(this,this.vb);this.Tc=X(function(){return new TR(b)});
g.C(this,this.Tc);this.kc=X(function(){return new UR(b)});
g.C(this,this.kc);this.ya=X(function(){return new UQ(b)});
g.C(this,this.ya);this.Pc=X(function(){return new QR(d,f.ya)});
g.C(this,this.Pc);this.Ya=X(function(){return new GP(f.ya)});
g.C(this,this.Ya);this.fc=X(function(){return new qQ(f.ab,f.wb,f.Ya,"slot_type_above_feed",f.Wh)});
g.C(this,this.fc);this.fd=X(function(){return new VR(b)});
g.C(this,this.fd);this.Ed=X(function(){return new WR});
g.C(this,this.Ed);this.oi=X(function(){return new eS});
g.C(this,this.oi);this.Ca=X(function(){return new eR(b,f.Cc)});
g.C(this,this.Ca);this.Bb=new QQ(this.ya,this.Ya,this.Ca);g.C(this,this.Bb);this.Fd=X(function(){return new cS(b,f.Ca,f.ya,f.Da)});
g.C(this,this.Fd);this.Rf=X(function(){return new tra(b)});
g.C(this,this.Rf);this.oa=X(function(){return new fR(b)});
g.C(this,this.oa);this.Xc=X(function(){return new hR});
this.bb=X(function(){return new XQ(f.oa,b)});
g.C(this,this.bb);this.Da=X(function(){return new $Q(b,f.Cb,f.bb,f.Ca)});
g.C(this,this.Da);this.Ie=new BR(CR,nS,function(l,m,n,p){return DQ(f.wb.get(),l,m,n,p)},this.kb,this.ab,this.Ya,this.ya,this.Ca);
g.C(this,this.Ie);this.Hb=new gH(this.kb,this.fc,c,this.ya,a,this.Ca);g.C(this,this.Hb);var h=new SQ(b,this.Hb,this.oa,this.ya,this.Fd);this.yd=X(function(){return h});
this.yj=h;this.Wh=new aS(this.kb,this.ab,this.Ca,this.yd,this.Fd,this.oa);g.C(this,this.Wh);this.Nc=new wQ(this.kb,this.ab,this.vb,this.yd);g.C(this,this.Nc);this.Ib=new QG(this.kb,this.ab,this.fc,this.Ca,this.Nc,c);g.C(this,this.Ib);this.re=X(function(){return new kR(f.Pc,f.wb,f.Ya,f.ya)});
g.C(this,this.re);this.qc=X(function(){return new lR});
g.C(this,this.qc);this.cd=new HR(a,this.Mb);g.C(this,this.cd);this.Va=new IR(a);g.C(this,this.Va);this.dl=new kS(a);g.C(this,this.dl);this.dd=new JR(a,this.yd);g.C(this,this.dd);this.Sc=new KR(a,this.vb,this.oa,this.Ca);g.C(this,this.Sc);this.Il=new bS(a,this.Ca);g.C(this,this.Il);this.Sb=new MR(a);g.C(this,this.Sb);this.Ge=new OR(a);g.C(this,this.Ge);this.km=new dS(a);g.C(this,this.km);this.jc=X(function(){return new DR});
g.C(this,this.jc);this.Je=X(function(){return new ER(f.oa)});
g.C(this,this.Je);this.eA=X(function(){return new zra(f.Mb,f.Da,a,f.Cb,f.bb)});
g.C(this,this.eA);this.qe=X(function(){return new nR(f.Ib)});
g.C(this,this.qe);this.se=X(function(){return new oR(f.Da,f.Sb,f.bb)});
g.C(this,this.se);this.He=X(function(){return new $R(a,f.Sb,f.Ca,f.Rf,f.oa,f.Da,f.Cc,f.Fd,f.bb,f.Xc,f.Tc,f.vb,f.Hc,f.kc,f.bd,f.Xb,f.fd)});
g.C(this,this.He);this.gh=X(function(){return new jS(f.Mb,f.oa,f.Da,f.Cb,f.bb,f.dl,f.km,f.Xb,f.ya)});
g.C(this,this.gh);this.av=new mS(a,this.oi,this.Sa);g.C(this,this.av);this.Aj=new PR(a,this.Ed,this.Ya,this.Ca,this.ya,this.Sa);g.C(this,this.Aj);this.Mc={Tl:new Map([["opportunity_type_ad_break_service_response_received",this.Ib],["opportunity_type_live_stream_break_signal",this.Wh],["opportunity_type_player_bytes_media_layout_entered",this.Ie],["opportunity_type_player_response_received",this.Hb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Nc]]),dj:new Map([["slot_type_ad_break_request",
this.re],["slot_type_above_feed",this.qc],["slot_type_forecasting",this.qc],["slot_type_in_player",this.qc],["slot_type_player_bytes",this.qc]]),ng:new Map([["trigger_type_skip_requested",this.cd],["trigger_type_layout_id_entered",this.Va],["trigger_type_layout_id_exited",this.Va],["trigger_type_on_different_layout_id_entered",this.Va],["trigger_type_slot_id_entered",this.Va],["trigger_type_slot_id_exited",this.Va],["trigger_type_slot_id_fulfilled_empty",this.Va],["trigger_type_slot_id_fulfilled_non_empty",
this.Va],["trigger_type_slot_id_scheduled",this.Va],["trigger_type_on_different_slot_id_enter_requested",this.Va],["trigger_type_close_requested",this.dl],["trigger_type_before_content_video_id_started",this.dd],["trigger_type_after_content_video_id_ended",this.Sc],["trigger_type_media_time_range",this.Sc],["trigger_type_not_in_media_time_range",this.Sc],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Il],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Il],["trigger_type_on_layout_self_exit_requested",
this.Sb],["trigger_type_on_element_self_enter_requested",this.Sb],["trigger_type_on_new_playback_after_content_video_id",this.dd],["trigger_type_on_opportunity_received",this.Ge],["trigger_type_time_relative_to_layout_enter",this.km]]),Dj:new Map([["slot_type_above_feed",this.jc],["slot_type_ad_break_request",this.jc],["slot_type_forecasting",this.jc],["slot_type_in_player",this.jc],["slot_type_player_bytes",this.Je]]),pj:new Map([["slot_type_above_feed",this.eA],["slot_type_ad_break_request",this.qe],
["slot_type_forecasting",this.se],["slot_type_player_bytes",this.He],["slot_type_in_player",this.gh]])};this.listeners=[this.Cb.get()];this.le={Ib:this.Ib,Rk:this.Sb,rj:this.Ed.get(),ag:this.ya.get(),Ck:this.oa.get(),Hb:this.Hb,qj:this.oi.get(),wh:this.cd,fg:this.Cb.get()}};
Dra=function(a,b,c,d,e){g.B.call(this);var f=this;this.Sa=X(function(){return new yQ});
g.C(this,this.Sa);this.wb=X(function(){return new CQ(f.ya,f.Sa)});
g.C(this,this.wb);this.Cb=X(function(){return new xQ});
g.C(this,this.Cb);this.kb=X(function(){return new sQ(a)});
g.C(this,this.kb);this.ab=X(function(){return new OQ(f.Sa)});
g.C(this,this.ab);this.Cc=X(function(){return new RQ});
g.C(this,this.Cc);this.bd=X(function(){return new tI(b.T())});
g.C(this,this.bd);this.Mb=X(function(){return new RR(b)});
g.C(this,this.Mb);this.Xb=X(function(){return new gR(e)});
g.C(this,this.Xb);this.Hc=X(function(){return new TK(b)});
g.C(this,this.Hc);this.vb=X(function(){return new TQ(b)});
g.C(this,this.vb);this.Tc=X(function(){return new TR(b)});
g.C(this,this.Tc);this.kc=X(function(){return new UR(b)});
g.C(this,this.kc);this.ya=X(function(){return new UQ(b)});
g.C(this,this.ya);this.Pc=X(function(){return new QR(d,f.ya)});
g.C(this,this.Pc);this.Ya=X(function(){return new GP(f.ya)});
g.C(this,this.Ya);this.fc=X(function(){return new qQ(f.ab,f.wb,f.Ya,null,null)});
g.C(this,this.fc);this.fd=X(function(){return new VR(b)});
g.C(this,this.fd);this.Ed=X(function(){return new WR});
g.C(this,this.Ed);this.oi=X(function(){return new eS});
g.C(this,this.oi);this.Ca=X(function(){return new eR(b,f.Cc)});
g.C(this,this.Ca);this.Bb=new QQ(this.ya,this.Ya,this.Ca);g.C(this,this.Bb);this.oa=X(function(){return new fR(b)});
g.C(this,this.oa);this.bb=X(function(){return new XQ(f.oa,b)});
g.C(this,this.bb);this.Da=X(function(){return new $Q(b,f.Cb,f.bb,f.Ca)});
g.C(this,this.Da);this.Xc=X(function(){return new hR});
g.C(this,this.Xc);this.Ie=new BR(CR,nS,function(l,m,n,p){return DQ(f.wb.get(),l,m,n,p)},this.kb,this.ab,this.Ya,this.ya,this.Ca);
g.C(this,this.Ie);this.Hb=new gH(this.kb,this.fc,c,this.ya,a,this.Ca);g.C(this,this.Hb);var h=new SQ(b,this.Hb,this.oa,this.ya);this.yd=X(function(){return h});
this.yj=h;this.Nc=new wQ(this.kb,this.ab,this.vb,this.yd);g.C(this,this.Nc);this.Ib=new QG(this.kb,this.ab,this.fc,this.Ca,this.Nc,c);g.C(this,this.Ib);this.re=X(function(){return new kR(f.Pc,f.wb,f.Ya,f.ya)});
g.C(this,this.re);this.qc=X(function(){return new lR});
g.C(this,this.qc);this.cd=new HR(a,this.Mb);g.C(this,this.cd);this.Va=new IR(a);g.C(this,this.Va);this.dl=new kS(a);g.C(this,this.dl);this.dd=new JR(a,this.yd);g.C(this,this.dd);this.Sc=new KR(a,this.vb,this.oa,this.Ca);g.C(this,this.Sc);this.Sb=new MR(a);g.C(this,this.Sb);this.Ge=new OR(a);g.C(this,this.Ge);this.km=new dS(a);g.C(this,this.km);this.jc=X(function(){return new DR});
g.C(this,this.jc);this.Je=X(function(){return new ER(f.oa)});
g.C(this,this.Je);this.qe=X(function(){return new nR(f.Ib)});
g.C(this,this.qe);this.se=X(function(){return new oR(f.Da,f.Sb,f.bb)});
g.C(this,this.se);this.gh=X(function(){return new jS(f.Mb,f.oa,f.Da,f.Cb,f.bb,f.dl,f.km,f.Xb,f.ya)});
g.C(this,this.gh);this.He=X(function(){return new AR(a,f.Sb,f.Da,f.bb,f.Xc,f.Tc,f.Ca,f.oa,f.vb,f.Hc,f.kc,f.bd,f.Xb,f.fd)});
g.C(this,this.He);this.av=new mS(a,this.oi,this.Sa);g.C(this,this.av);this.Aj=new PR(a,this.Ed,this.Ya,this.Ca,this.ya,this.Sa);g.C(this,this.Aj);this.Mc={Tl:new Map([["opportunity_type_ad_break_service_response_received",this.Ib],["opportunity_type_player_bytes_media_layout_entered",this.Ie],["opportunity_type_player_response_received",this.Hb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Nc]]),dj:new Map([["slot_type_ad_break_request",this.re],["slot_type_forecasting",this.qc],
["slot_type_in_player",this.qc],["slot_type_player_bytes",this.qc]]),ng:new Map([["trigger_type_skip_requested",this.cd],["trigger_type_layout_id_entered",this.Va],["trigger_type_layout_id_exited",this.Va],["trigger_type_on_different_layout_id_entered",this.Va],["trigger_type_slot_id_entered",this.Va],["trigger_type_slot_id_exited",this.Va],["trigger_type_slot_id_fulfilled_empty",this.Va],["trigger_type_slot_id_fulfilled_non_empty",this.Va],["trigger_type_slot_id_scheduled",this.Va],["trigger_type_on_different_slot_id_enter_requested",
this.Va],["trigger_type_close_requested",this.dl],["trigger_type_before_content_video_id_started",this.dd],["trigger_type_after_content_video_id_ended",this.Sc],["trigger_type_media_time_range",this.Sc],["trigger_type_not_in_media_time_range",this.Sc],["trigger_type_on_layout_self_exit_requested",this.Sb],["trigger_type_on_element_self_enter_requested",this.Sb],["trigger_type_on_new_playback_after_content_video_id",this.dd],["trigger_type_on_opportunity_received",this.Ge],["trigger_type_time_relative_to_layout_enter",
this.km]]),Dj:new Map([["slot_type_ad_break_request",this.jc],["slot_type_forecasting",this.jc],["slot_type_in_player",this.jc],["slot_type_player_bytes",this.Je]]),pj:new Map([["slot_type_ad_break_request",this.qe],["slot_type_forecasting",this.se],["slot_type_in_player",this.gh],["slot_type_player_bytes",this.He]])};this.listeners=[this.Cb.get()];this.le={Ib:this.Ib,Rk:null,rj:this.Ed.get(),ag:this.ya.get(),Ck:this.oa.get(),Hb:this.Hb,qj:this.oi.get(),wh:this.cd,fg:this.Cb.get()}};
Era=function(a,b,c,d,e){g.B.call(this);var f=this;this.Sa=X(function(){return new yQ});
g.C(this,this.Sa);this.wb=X(function(){return new CQ(f.ya,f.Sa)});
g.C(this,this.wb);this.Cb=X(function(){return new xQ});
g.C(this,this.Cb);this.kb=X(function(){return new sQ(a)});
g.C(this,this.kb);this.ab=X(function(){return new OQ(f.Sa)});
g.C(this,this.ab);this.Cc=X(function(){return new RQ});
g.C(this,this.Cc);this.bd=X(function(){return new tI(b.T())});
g.C(this,this.bd);this.Mb=X(function(){return new RR(b)});
g.C(this,this.Mb);this.Xb=X(function(){return new gR(e)});
g.C(this,this.Xb);this.Hc=X(function(){return new TK(b)});
g.C(this,this.Hc);this.vb=X(function(){return new TQ(b)});
g.C(this,this.vb);this.Tc=X(function(){return new TR(b)});
g.C(this,this.Tc);this.kc=X(function(){return new UR(b)});
g.C(this,this.kc);this.ya=X(function(){return new UQ(b)});
g.C(this,this.ya);this.Pc=X(function(){return new QR(d,f.ya)});
g.C(this,this.Pc);this.Ya=X(function(){return new GP(f.ya)});
g.C(this,this.Ya);this.fc=X(function(){return new qQ(f.ab,f.wb,f.Ya,null,null)});
g.C(this,this.fc);this.fd=X(function(){return new VR(b)});
g.C(this,this.fd);this.Ed=X(function(){return new WR});
g.C(this,this.Ed);this.Ca=X(function(){return new eR(b,f.Cc)});
g.C(this,this.Ca);this.Bb=new QQ(this.ya,this.Ya,this.Ca);g.C(this,this.Bb);this.oa=X(function(){return new fR(b)});
g.C(this,this.oa);this.bb=X(function(){return new XQ(f.oa,b)});
g.C(this,this.bb);this.Da=X(function(){return new $Q(b,f.Cb,f.bb,f.Ca)});
g.C(this,this.Da);this.Xc=X(function(){return new hR});
g.C(this,this.Xc);this.Ie=new BR(CR,nS,function(l,m,n,p){return DQ(f.wb.get(),l,m,n,p)},this.kb,this.ab,this.Ya,this.ya,this.Ca);
g.C(this,this.Ie);this.Hb=new gH(this.kb,this.fc,c,this.ya,a,this.Ca);g.C(this,this.Hb);var h=new SQ(b,this.Hb,this.oa,this.ya);this.yd=X(function(){return h});
this.yj=h;this.Nc=new wQ(this.kb,this.ab,this.vb,this.yd);g.C(this,this.Nc);this.Ib=new QG(this.kb,this.ab,this.fc,this.Ca,this.Nc,c);g.C(this,this.Ib);this.re=X(function(){return new kR(f.Pc,f.wb,f.Ya,f.ya)});
g.C(this,this.re);this.qc=X(function(){return new lR});
g.C(this,this.qc);this.cd=new HR(a,this.Mb);g.C(this,this.cd);this.Va=new IR(a);g.C(this,this.Va);this.dd=new JR(a,this.yd);g.C(this,this.dd);this.Sc=new KR(a,this.vb,this.oa,this.Ca);g.C(this,this.Sc);this.Sb=new MR(a);g.C(this,this.Sb);this.Ge=new OR(a);g.C(this,this.Ge);this.jc=X(function(){return new DR});
g.C(this,this.jc);this.Je=X(function(){return new ER(f.oa)});
g.C(this,this.Je);this.qe=X(function(){return new nR(f.Ib)});
g.C(this,this.qe);this.se=X(function(){return new oR(f.Da,f.Sb,f.bb)});
g.C(this,this.se);this.QE=X(function(){return new wR(f.Mb,f.oa,f.Da,f.Cb)});
g.C(this,this.QE);this.He=X(function(){return new AR(a,f.Sb,f.Da,f.bb,f.Xc,f.Tc,f.Ca,f.oa,f.vb,f.Hc,f.kc,f.bd,f.Xb,f.fd)});
g.C(this,this.He);this.Aj=new PR(a,this.Ed,this.Ya,this.Ca,this.ya,this.Sa);g.C(this,this.Aj);this.Mc={Tl:new Map([["opportunity_type_ad_break_service_response_received",this.Ib],["opportunity_type_player_bytes_media_layout_entered",this.Ie],["opportunity_type_player_response_received",this.Hb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Nc]]),dj:new Map([["slot_type_ad_break_request",this.re],["slot_type_forecasting",this.qc],["slot_type_in_player",this.qc],["slot_type_player_bytes",
this.qc]]),ng:new Map([["trigger_type_skip_requested",this.cd],["trigger_type_layout_id_entered",this.Va],["trigger_type_layout_id_exited",this.Va],["trigger_type_on_different_layout_id_entered",this.Va],["trigger_type_slot_id_entered",this.Va],["trigger_type_slot_id_exited",this.Va],["trigger_type_slot_id_fulfilled_empty",this.Va],["trigger_type_slot_id_fulfilled_non_empty",this.Va],["trigger_type_slot_id_scheduled",this.Va],["trigger_type_before_content_video_id_started",this.dd],["trigger_type_after_content_video_id_ended",
this.Sc],["trigger_type_media_time_range",this.Sc],["trigger_type_on_layout_self_exit_requested",this.Sb],["trigger_type_on_element_self_enter_requested",this.Sb],["trigger_type_on_new_playback_after_content_video_id",this.dd],["trigger_type_on_opportunity_received",this.Ge]]),Dj:new Map([["slot_type_ad_break_request",this.jc],["slot_type_above_feed",this.jc],["slot_type_forecasting",this.jc],["slot_type_in_player",this.jc],["slot_type_player_bytes",this.Je]]),pj:new Map([["slot_type_ad_break_request",
this.qe],["slot_type_forecasting",this.se],["slot_type_in_player",this.QE],["slot_type_player_bytes",this.He]])};this.listeners=[this.Cb.get()];this.le={Ib:this.Ib,Rk:null,rj:this.Ed.get(),ag:this.ya.get(),Ck:this.oa.get(),Hb:this.Hb,qj:null,wh:this.cd,fg:this.Cb.get()}};
Fra=function(a,b,c,d,e){g.B.call(this);var f=this;this.Sa=X(function(){return new yQ});
g.C(this,this.Sa);this.wb=X(function(){return new CQ(f.ya,f.Sa)});
g.C(this,this.wb);this.Cb=X(function(){return new xQ});
g.C(this,this.Cb);this.kb=X(function(){return new sQ(a)});
g.C(this,this.kb);this.ab=X(function(){return new OQ(f.Sa)});
g.C(this,this.ab);this.Cc=X(function(){return new RQ});
g.C(this,this.Cc);this.bd=X(function(){return new tI(b.T())});
g.C(this,this.bd);this.Mb=X(function(){return new RR(b)});
g.C(this,this.Mb);this.Xb=X(function(){return new gR(e)});
g.C(this,this.Xb);this.Hc=X(function(){return new TK(b)});
g.C(this,this.Hc);this.vb=X(function(){return new TQ(b)});
g.C(this,this.vb);this.Tc=X(function(){return new TR(b)});
g.C(this,this.Tc);this.kc=X(function(){return new UR(b)});
g.C(this,this.kc);this.ya=X(function(){return new UQ(b)});
g.C(this,this.ya);this.Pc=X(function(){return new QR(d,f.ya)});
g.C(this,this.Pc);this.Ya=X(function(){return new GP(f.ya)});
g.C(this,this.Ya);this.fc=X(function(){return new qQ(f.ab,f.wb,f.Ya,null,null)});
g.C(this,this.fc);this.fd=X(function(){return new VR(b)});
g.C(this,this.fd);this.Ed=X(function(){return new WR});
g.C(this,this.Ed);this.Ca=X(function(){return new eR(b,f.Cc)});
g.C(this,this.Ca);this.Bb=new QQ(this.ya,this.Ya,this.Ca);g.C(this,this.Bb);this.oa=X(function(){return new fR(b)});
g.C(this,this.oa);this.bb=X(function(){return new XQ(f.oa,b)});
g.C(this,this.bb);this.Da=X(function(){return new $Q(b,f.Cb,f.bb,f.Ca)});
g.C(this,this.Da);this.Xc=X(function(){return new hR});
g.C(this,this.Xc);this.Ie=new BR(CR,nS,function(l,m,n,p){return DQ(f.wb.get(),l,m,n,p)},this.kb,this.ab,this.Ya,this.ya,this.Ca);
g.C(this,this.Ie);this.Hb=new gH(this.kb,this.fc,c,this.ya,a,this.Ca);g.C(this,this.Hb);var h=new SQ(b,this.Hb,this.oa,this.ya);this.yd=X(function(){return h});
this.yj=h;this.Nc=new wQ(this.kb,this.ab,this.vb,this.yd);g.C(this,this.Nc);this.Ib=new QG(this.kb,this.ab,this.fc,this.Ca,this.Nc,c);g.C(this,this.Ib);this.re=X(function(){return new kR(f.Pc,f.wb,f.Ya,f.ya)});
g.C(this,this.re);this.qc=X(function(){return new lR});
g.C(this,this.qc);this.cd=new HR(a,this.Mb);g.C(this,this.cd);this.Va=new IR(a);g.C(this,this.Va);this.dd=new JR(a,this.yd);g.C(this,this.dd);this.Sc=new KR(a,this.vb,this.oa,this.Ca);g.C(this,this.Sc);this.Sb=new MR(a);g.C(this,this.Sb);this.Ge=new OR(a);g.C(this,this.Ge);this.jc=X(function(){return new DR});
g.C(this,this.jc);this.Je=X(function(){return new ER(f.oa)});
g.C(this,this.Je);this.qe=X(function(){return new nR(f.Ib)});
g.C(this,this.qe);this.se=X(function(){return new oR(f.Da,f.Sb,f.bb)});
g.C(this,this.se);this.gh=X(function(){return new wR(f.Mb,f.oa,f.Da,f.Cb)});
g.C(this,this.gh);this.He=X(function(){return new AR(a,f.Sb,f.Da,f.bb,f.Xc,f.Tc,f.Ca,f.oa,f.vb,f.Hc,f.kc,f.bd,f.Xb,f.fd)});
g.C(this,this.He);this.Aj=new PR(a,this.Ed,this.Ya,this.Ca,this.ya,this.Sa);g.C(this,this.Aj);this.Mc={Tl:new Map([["opportunity_type_ad_break_service_response_received",this.Ib],["opportunity_type_player_bytes_media_layout_entered",this.Ie],["opportunity_type_player_response_received",this.Hb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Nc]]),dj:new Map([["slot_type_ad_break_request",this.re],["slot_type_forecasting",this.qc],["slot_type_in_player",this.qc],["slot_type_player_bytes",
this.qc]]),ng:new Map([["trigger_type_skip_requested",this.cd],["trigger_type_layout_id_entered",this.Va],["trigger_type_layout_id_exited",this.Va],["trigger_type_on_different_layout_id_entered",this.Va],["trigger_type_slot_id_entered",this.Va],["trigger_type_slot_id_exited",this.Va],["trigger_type_slot_id_fulfilled_empty",this.Va],["trigger_type_slot_id_fulfilled_non_empty",this.Va],["trigger_type_slot_id_scheduled",this.Va],["trigger_type_before_content_video_id_started",this.dd],["trigger_type_media_time_range",
this.Sc],["trigger_type_on_layout_self_exit_requested",this.Sb],["trigger_type_on_element_self_enter_requested",this.Sb],["trigger_type_on_new_playback_after_content_video_id",this.dd],["trigger_type_on_opportunity_received",this.Ge]]),Dj:new Map([["slot_type_ad_break_request",this.jc],["slot_type_forecasting",this.jc],["slot_type_in_player",this.jc],["slot_type_player_bytes",this.Je]]),pj:new Map([["slot_type_ad_break_request",this.qe],["slot_type_forecasting",this.se],["slot_type_in_player",this.gh],
["slot_type_player_bytes",this.He]])};this.listeners=[this.Cb.get()];this.le={Ib:this.Ib,Rk:null,rj:this.Ed.get(),ag:this.ya.get(),Ck:this.oa.get(),Hb:this.Hb,qj:null,wh:this.cd,fg:this.Cb.get()}};
oS=function(a,b,c,d,e,f,h,l){uR.call(this,a,b,c,d,e,f,h);this.tm=l};
Gra=function(a,b,c,d,e){this.Mb=a;this.oa=b;this.Da=c;this.pd=d;this.tm=e};
Hra=function(a,b,c,d,e){g.B.call(this);var f=this;this.Sa=X(function(){return new yQ});
g.C(this,this.Sa);this.wb=X(function(){return new CQ(f.ya,f.Sa)});
g.C(this,this.wb);this.Cb=X(function(){return new xQ});
g.C(this,this.Cb);this.kb=X(function(){return new sQ(a)});
g.C(this,this.kb);this.ab=X(function(){return new OQ(f.Sa)});
g.C(this,this.ab);this.Cc=X(function(){return new RQ});
g.C(this,this.Cc);this.tm=X(function(){return new gra(b)});
g.C(this,this.tm);this.bd=X(function(){return new tI(b.T())});
g.C(this,this.bd);this.Mb=X(function(){return new RR(b)});
g.C(this,this.Mb);this.Xb=X(function(){return new gR(e)});
g.C(this,this.Xb);this.Hc=X(function(){return new TK(b)});
g.C(this,this.Hc);this.vb=X(function(){return new TQ(b)});
g.C(this,this.vb);this.Tc=X(function(){return new TR(b)});
g.C(this,this.Tc);this.kc=X(function(){return new UR(b)});
g.C(this,this.kc);this.ya=X(function(){return new UQ(b)});
g.C(this,this.ya);this.Pc=X(function(){return new QR(d,f.ya)});
g.C(this,this.Pc);this.Ya=X(function(){return new GP(f.ya)});
g.C(this,this.Ya);this.fc=X(function(){return new qQ(f.ab,f.wb,f.Ya,null,null)});
g.C(this,this.fc);this.fd=X(function(){return new VR(b)});
g.C(this,this.fd);this.Ed=X(function(){return new WR});
g.C(this,this.Ed);this.Ca=X(function(){return new eR(b,f.Cc)});
g.C(this,this.Ca);this.Bb=new QQ(this.ya,this.Ya,this.Ca);g.C(this,this.Bb);this.oa=X(function(){return new fR(b)});
g.C(this,this.oa);this.bb=X(function(){return new XQ(f.oa,b)});
g.C(this,this.bb);this.Da=X(function(){return new $Q(b,f.Cb,f.bb,f.Ca)});
g.C(this,this.Da);this.Xc=X(function(){return new hR});
g.C(this,this.Xc);this.Ie=new BR(CR,nS,function(l,m,n,p){return DQ(f.wb.get(),l,m,n,p)},this.kb,this.ab,this.Ya,this.ya,this.Ca);
g.C(this,this.Ie);this.Hb=new gH(this.kb,this.fc,c,this.ya,a,this.Ca);g.C(this,this.Hb);var h=new SQ(b,this.Hb,this.oa,this.ya);this.yd=X(function(){return h});
this.yj=h;this.Nc=new wQ(this.kb,this.ab,this.vb,this.yd);g.C(this,this.Nc);this.Ib=new QG(this.kb,this.ab,this.fc,this.Ca,this.Nc,c);g.C(this,this.Ib);this.re=X(function(){return new kR(f.Pc,f.wb,f.Ya,f.ya)});
g.C(this,this.re);this.qc=X(function(){return new lR});
g.C(this,this.qc);this.cd=new HR(a,this.Mb);g.C(this,this.cd);this.Va=new IR(a);g.C(this,this.Va);this.dd=new JR(a,this.yd);g.C(this,this.dd);this.Sc=new KR(a,this.vb,this.oa,this.Ca);g.C(this,this.Sc);this.Sb=new MR(a);g.C(this,this.Sb);this.Ge=new OR(a);g.C(this,this.Ge);this.jc=X(function(){return new DR});
g.C(this,this.jc);this.Je=X(function(){return new ER(f.oa)});
g.C(this,this.Je);this.qe=X(function(){return new nR(f.Ib)});
g.C(this,this.qe);this.se=X(function(){return new oR(f.Da,f.Sb,f.bb)});
g.C(this,this.se);this.He=X(function(){return new AR(a,f.Sb,f.Da,f.bb,f.Xc,f.Tc,f.Ca,f.oa,f.vb,f.Hc,f.kc,f.bd,f.Xb,f.fd)});
g.C(this,this.He);this.IG=X(function(){return new Gra(f.Mb,f.oa,f.Da,f.Cb,f.tm)});
g.C(this,this.IG);this.Aj=new PR(a,this.Ed,this.Ya,this.Ca,this.ya,this.Sa);g.C(this,this.Aj);this.Mc={Tl:new Map([["opportunity_type_ad_break_service_response_received",this.Ib],["opportunity_type_player_bytes_media_layout_entered",this.Ie],["opportunity_type_player_response_received",this.Hb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Nc]]),dj:new Map([["slot_type_ad_break_request",this.re],["slot_type_forecasting",this.qc],["slot_type_player_bytes",this.qc]]),ng:new Map([["trigger_type_skip_requested",
this.cd],["trigger_type_layout_id_entered",this.Va],["trigger_type_layout_id_exited",this.Va],["trigger_type_on_different_layout_id_entered",this.Va],["trigger_type_slot_id_entered",this.Va],["trigger_type_slot_id_exited",this.Va],["trigger_type_slot_id_fulfilled_empty",this.Va],["trigger_type_slot_id_fulfilled_non_empty",this.Va],["trigger_type_slot_id_scheduled",this.Va],["trigger_type_before_content_video_id_started",this.dd],["trigger_type_after_content_video_id_ended",this.Sc],["trigger_type_media_time_range",
this.Sc],["trigger_type_on_layout_self_exit_requested",this.Sb],["trigger_type_on_element_self_enter_requested",this.Sb],["trigger_type_on_new_playback_after_content_video_id",this.dd],["trigger_type_on_opportunity_received",this.Ge]]),Dj:new Map([["slot_type_ad_break_request",this.jc],["slot_type_forecasting",this.jc],["slot_type_player_bytes",this.Je]]),pj:new Map([["slot_type_ad_break_request",this.qe],["slot_type_forecasting",this.se],["slot_type_in_player",this.IG],["slot_type_player_bytes",
this.He]])};this.listeners=[this.Cb.get()];this.le={Ib:this.Ib,Rk:null,rj:null,ag:this.ya.get(),Ck:this.oa.get(),Hb:this.Hb,qj:null,wh:this.cd,fg:this.Cb.get()}};
Ira=function(a,b,c,d){this.Mb=a;this.oa=b;this.Da=c;this.pd=d};
Jra=function(a,b,c,d,e){g.B.call(this);var f=this;this.Sa=X(function(){return new yQ});
g.C(this,this.Sa);this.wb=X(function(){return new CQ(f.ya,f.Sa)});
g.C(this,this.wb);this.Cb=X(function(){return new xQ});
g.C(this,this.Cb);this.kb=X(function(){return new sQ(a)});
g.C(this,this.kb);this.ab=X(function(){return new OQ(f.Sa)});
g.C(this,this.ab);this.Cc=X(function(){return new RQ});
g.C(this,this.Cc);this.bd=X(function(){return new tI(b.T())});
g.C(this,this.bd);this.Mb=X(function(){return new RR(b)});
g.C(this,this.Mb);this.Xb=X(function(){return new gR(e)});
g.C(this,this.Xb);this.Hc=X(function(){return new TK(b)});
g.C(this,this.Hc);this.vb=X(function(){return new TQ(b)});
g.C(this,this.vb);this.Tc=X(function(){return new TR(b)});
g.C(this,this.Tc);this.kc=X(function(){return new UR(b)});
g.C(this,this.kc);this.ya=X(function(){return new UQ(b)});
g.C(this,this.ya);this.Pc=X(function(){return new QR(d,f.ya)});
g.C(this,this.Pc);this.Ya=X(function(){return new GP(f.ya)});
g.C(this,this.Ya);this.fc=X(function(){return new qQ(f.ab,f.wb,f.Ya,null,f.Wh,3)});
g.C(this,this.fc);this.fd=X(function(){return new VR(b)});
g.C(this,this.fd);this.Ca=X(function(){return new eR(b,f.Cc)});
g.C(this,this.Ca);this.Bb=new QQ(this.ya,this.Ya,this.Ca);g.C(this,this.Bb);this.Fd=X(function(){return new cS(b,f.Ca,f.ya,f.Da)});
g.C(this,this.Fd);this.Rf=X(function(){return new tra(b)});
g.C(this,this.Rf);this.oa=X(function(){return new fR(b)});
g.C(this,this.oa);this.Xc=X(function(){return new hR});
this.bb=X(function(){return new XQ(f.oa,b)});
g.C(this,this.bb);this.Da=X(function(){return new $Q(b,f.Cb,f.bb,f.Ca)});
g.C(this,this.Da);this.Hb=new gH(this.kb,this.fc,c,this.ya,a,this.Ca);g.C(this,this.Hb);var h=new SQ(b,this.Hb,this.oa,this.ya,this.Fd);this.yd=X(function(){return h});
this.yj=h;this.Ie=new BR(CR,nS,function(l,m,n,p){return DQ(f.wb.get(),l,m,n,p)},this.kb,this.ab,this.Ya,this.ya,this.Ca);
g.C(this,this.Ie);this.Wh=new aS(this.kb,this.ab,this.Ca,this.yd,this.Fd,this.oa);g.C(this,this.Wh);this.Nc=new wQ(this.kb,this.ab,this.vb,this.yd);g.C(this,this.Nc);this.Ib=new QG(this.kb,this.ab,this.fc,this.Ca,this.Nc,c);g.C(this,this.Ib);this.re=X(function(){return new kR(f.Pc,f.wb,f.Ya,f.ya)});
g.C(this,this.re);this.qc=X(function(){return new lR});
g.C(this,this.qc);this.cd=new HR(a,this.Mb);g.C(this,this.cd);this.Va=new IR(a);g.C(this,this.Va);this.dd=new JR(a,this.yd);g.C(this,this.dd);this.Sc=new KR(a,this.vb,this.oa,this.Ca);g.C(this,this.Sc);this.Il=new bS(a,this.Ca);g.C(this,this.Il);this.Sb=new MR(a);g.C(this,this.Sb);this.Ge=new OR(a);g.C(this,this.Ge);this.jc=X(function(){return new DR});
g.C(this,this.jc);this.Je=X(function(){return new ER(f.oa)});
g.C(this,this.Je);this.qe=X(function(){return new nR(f.Ib)});
g.C(this,this.qe);this.se=X(function(){return new oR(f.Da,f.Sb,f.bb)});
g.C(this,this.se);this.He=X(function(){return new $R(a,f.Sb,f.Ca,f.Rf,f.oa,f.Da,f.Cc,f.Fd,f.bb,f.Xc,f.Tc,f.vb,f.Hc,f.kc,f.bd,f.Xb,f.fd)});
g.C(this,this.He);this.gh=X(function(){return new Ira(f.Mb,f.oa,f.Da,f.Cb)});
g.C(this,this.gh);this.Mc={Tl:new Map([["opportunity_type_ad_break_service_response_received",this.Ib],["opportunity_type_live_stream_break_signal",this.Wh],["opportunity_type_player_bytes_media_layout_entered",this.Ie],["opportunity_type_player_response_received",this.Hb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Nc]]),dj:new Map([["slot_type_ad_break_request",this.re],["slot_type_forecasting",this.qc],["slot_type_in_player",this.qc],["slot_type_player_bytes",this.qc]]),ng:new Map([["trigger_type_skip_requested",
this.cd],["trigger_type_layout_id_entered",this.Va],["trigger_type_layout_id_exited",this.Va],["trigger_type_on_different_layout_id_entered",this.Va],["trigger_type_slot_id_entered",this.Va],["trigger_type_slot_id_exited",this.Va],["trigger_type_slot_id_fulfilled_empty",this.Va],["trigger_type_slot_id_fulfilled_non_empty",this.Va],["trigger_type_slot_id_scheduled",this.Va],["trigger_type_before_content_video_id_started",this.dd],["trigger_type_after_content_video_id_ended",this.Sc],["trigger_type_media_time_range",
this.Sc],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Il],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Il],["trigger_type_on_layout_self_exit_requested",this.Sb],["trigger_type_on_element_self_enter_requested",this.Sb],["trigger_type_on_new_playback_after_content_video_id",this.dd],["trigger_type_on_opportunity_received",this.Ge]]),Dj:new Map([["slot_type_ad_break_request",this.jc],["slot_type_forecasting",this.jc],["slot_type_in_player",this.jc],["slot_type_player_bytes",this.Je]]),pj:new Map([["slot_type_ad_break_request",
this.qe],["slot_type_forecasting",this.se],["slot_type_player_bytes",this.He],["slot_type_in_player",this.gh]])};this.listeners=[this.Cb.get()];this.le={Ib:this.Ib,Rk:null,rj:null,ag:this.ya.get(),Ck:this.oa.get(),Hb:this.Hb,qj:null,wh:this.cd,fg:this.Cb.get()}};
Lra=function(a,b,c,d){g.B.call(this);var e=this;this.u=Kra(function(){return e.B},a,b,c,d);
g.C(this,this.u);this.B=(new Epa(this.u)).B;g.C(this,this.B)};
Kra=function(a,b,c,d,e){try{var f=b.T();if(g.kC(f))var h=new Cra(a,b,c,d,e);else if(g.oC(f))h=new Dra(a,b,c,d,e);else if(pC(f))h=new Fra(a,b,c,d,e);else if(bC(f))h=new Era(a,b,c,d,e);else if(nC(f))h=new Hra(a,b,c,d,e);else if(g.aC(f))h=new Jra(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.T(),fH("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,"interface":e.deviceParams.c,mW:e.deviceParams.cver,lW:e.deviceParams.ctheme,
kW:e.deviceParams.cplayer,wW:e.playerStyle}),new Iqa(a,b,c,d)}};
g.pS=function(a){g.P.call(this);this.loaded=!1;this.player=a};
qS=function(a){g.pS.call(this,a);var b=this;this.u=null;this.D=new nG(this.player);this.C=null;this.F=function(){function d(){return b.u}
if(null!=b.C)return b.C;var e=IL({KA:a.getVideoData(1)});e=new cpa({PH:new PG(d,b.B.u.le.Rk,b.B.B),jo:e.AI(),QH:d,ZH:d,lM:d,wh:b.B.u.le.wh,Bh:e.ow(),J:b.player,ag:b.B.u.le.ag,Da:b.B.u.Da,fg:b.B.u.le.fg});b.C=e.B;return b.C};
this.B=new Lra(this.player,this,this.D,this.F);g.C(this,this.B);this.created=!1;var c=a.T();!YB(c)||g.aC(c)||bC(c)||(c=function(){return b.u},g.C(this,new pP(a,c)),g.C(this,new MM(a,c)))};
Mra=function(a){var b=a.B.u.le.Hb.u().u,c=WP(b,"slot_type_player_bytes_1");b=[];c=g.q(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot);c=!1;b=g.q(b);for(d=b.next();!d.done;d=b.next())aH(d.value)&&(c&&fH("More than 1 preroll playerBytes slot detected"),c=!0);(b=c)||(b=a.u,b=!pM(b,rM(b)));b||a.B.u.le.Ck.u()};
Nra=function(a){a=g.q(a.B.u.le.fg.u.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"slot_type_player_bytes"===b.Xa&&"core"===b.rb)return!0;return!1};
SG=function(a,b,c){c=void 0===c?"":c;var d=a.B.u.le.ag,e=a.player.getVideoData(1);e=e&&e.getPlayerResponse()||{};d=Ora(b,d,e&&e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1);Uma(a.B.u.le.Ib,c,d.An,b);a.u&&0<d.Zk.length&&(a=a.u,b=d.Zk,b=kM(a,b),b=lM(a,b),mM(a,b))};
Ora=function(a,b,c){var d={Zk:[],An:[]};a=g.q(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&null!=e.renderer){var f=e.renderer,h=e.config&&e.config.adPlacementConfig&&e.config.adPlacementConfig.kind,l=b;if(c)f=gM(l);else if(null!=f.clientForecastingAdRenderer||null!=f.adBreakServiceRenderer&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==h)f=!0;else if(null!=f.actionCompanionAdRenderer)f=!!f.actionCompanionAdRenderer.controlFlowExperimentEnabled;else if(null!=f.imageCompanionAdRenderer)f=!!f.imageCompanionAdRenderer.controlFlowExperimentEnabled;
else if(null!=f.shoppingCompanionCarouselRenderer)f=!!f.shoppingCompanionCarouselRenderer.controlFlowExperimentEnabled;else if(null!=f.invideoOverlayAdRenderer)f=VQ(l);else if(null!=f.instreamVideoAdRenderer||null!=f.remoteSlotsRenderer)f=g.R(l.J.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf");else if(f.linearAdSequenceRenderer&&f.linearAdSequenceRenderer.linearAds)if(f.linearAdSequenceRenderer.adStart)f=!1;else{if(h=g.R(l.J.T().experiments,"html5_enable_composite_vod_lsar_ad_intro_on_pacf"))a:if(f=
f.linearAdSequenceRenderer.linearAds,1>=f.length||!f[0].adIntroRenderer)h=!1;else{for(h=1;h<f.length;h++)if(!f[h].instreamVideoAdRenderer){h=!1;break a}h=!0}f=h}else f=!1;f?d.An.push(e):d.Zk.push(e)}return d};
wS=function(a){if(!rS){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;256>b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);rS=new Uint8Array(256);sS=[];tS=[];uS=[];vS=[];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;rS[f]=e;b=e<<1^(e>>7&&283);var h=b^e;sS.push(b<<24|e<<16|e<<8|h);tS.push(h<<24|sS[f]>>>8);uS.push(e<<24|tS[f]>>>8);vS.push(e<<24|uS[f]>>>8)}}this.u=[0,0,0,0];this.C=new Uint8Array(16);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=(rS[a>>16&255]^d)<<24|rS[a>>8&255]<<16|rS[a&255]<<8|rS[a>>>24],d=d<<1^(d>>7&&283)),e.push(e[c-4]^a);this.D=e;this.B=16};
Pra=function(a,b){for(var c=0;4>c;c++)a.u[c]=b[4*c]<<24|b[4*c+1]<<16|b[4*c+2]<<8|b[4*c+3];a.B=16};
Qra=function(a){for(var b=a.D,c=a.u[0]^b[0],d=a.u[1]^b[1],e=a.u[2]^b[2],f=a.u[3]^b[3],h=3;0<=h&&!(a.u[h]=-~a.u[h]);h--);for(h=4;40>h;){var l=sS[c>>>24]^tS[d>>16&255]^uS[e>>8&255]^vS[f&255]^b[h++];var m=sS[d>>>24]^tS[e>>16&255]^uS[f>>8&255]^vS[c&255]^b[h++];var n=sS[e>>>24]^tS[f>>16&255]^uS[c>>8&255]^vS[d&255]^b[h++];f=sS[f>>>24]^tS[c>>16&255]^uS[d>>8&255]^vS[e&255]^b[h++];c=l;d=m;e=n}a=a.C;c=[c,d,e,f];for(d=0;16>d;)a[d++]=rS[c[0]>>>24]^b[h]>>>24,a[d++]=rS[c[1]>>16&255]^b[h]>>16&255,a[d++]=rS[c[2]>>
8&255]^b[h]>>8&255,a[d++]=rS[c[3]&255]^b[h++]&255,c.push(c.shift())};
g.xS=function(){g.B.call(this);this.C=null;this.K=this.I=!1;this.F=new g.im;g.C(this,this.F)};
yS=function(a){a=a.To();return 1>a.length?NaN:a.end(a.length-1)};
Rra=function(a,b){a.C&&null!==b&&b.u===a.C.u||(a.C&&a.C.dispose(),a.C=b)};
zS=function(a){return ly(a.kf(),a.getCurrentTime())};
Sra=function(a,b){if(0==a.jg()||0<a.qh())return!1;var c=0<a.getCurrentTime();if(0<=b){var d=a.To();if(d.length||!c)return iy(d,b)}return c};
Tra=function(a){var b=a.kf();return 0<ky(b)&&a.getDuration()?jy(b,a.getCurrentTime()):0};
Ura=function(a){var b=a.kf();return 0<ky(b)&&a.getDuration()?b.end(b.length-1):0};
AS=function(a){var b=a.getDuration();return Infinity==b?1:b?Tra(a)/b:0};
BS=function(a){switch(a.qh()){case 2:return"progressive.net.retryexhausted";case 3:return"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
CS=function(a,b,c){g.Ll.call(this,b,a);this.B=c||null};
g.DS=function(a){g.xS.call(this);this.u=a;this.B={}};
g.ES=function(a,b,c,d){d=void 0===d?!1:d;g.xS.call(this);this.u=a;this.B=b;this.D=c;this.N=d};
FS=function(){this.u=[];this.B=[];this.C=[]};
Wra=function(a,b,c){c=g.Fe(c?"AUDIO":"VIDEO");g.Xa(c,Vra);g.cp(c,"loadeddata",(0,g.z)(c.XH,c));SB&&6<=WF&&g.cp(c,"webkitbeginfullscreen",(0,g.z)(c.play,c));a.B.push(c);b?a.C.push(c):GS(a,c);return c};
GS=function(a,b){g.nb(a.B,b)&&!g.nb(a.u,b)&&(b.src||b.load(),g.rb(a.C,b)||a.u.push(b))};
HS=function(){this.u=this.started=!1};
IS=function(){this.keys=[];this.values=[]};
JS=function(a,b){this.u=a;this.C=b;this.B=null;this.D=[];this.F=!1};
g.KS=function(a){a.B||(a.B=a.u.createMediaElementSource(a.C.Ma()));return a.B};
g.LS=function(a){for(var b;0<a.D.length;)(b=a.D.pop())&&b.disconnect();a.B&&a.B.disconnect()};
Xra=function(){MA("bg_l","player_att");MS=(0,g.N)()};
Yra=function(a){a=void 0===a?{}:a;var b=tr;a=void 0===a?{}:a;return b.u?b.u.invoke(void 0,void 0,a):null};
Zra=function(a){a=void 0===a?{}:a;return Pea(a)};
$ra=function(a,b){var c=this;this.videoData=a;this.C=b;var d={};this.B=(d.c1a=function(){if(NS(c)){var e="";c.videoData&&c.videoData.Tg&&(e=c.videoData.Tg+("&r1b="+c.videoData.clientPlaybackNonce));var f={};e=(f.atr_challenge=e,f);MA("bg_v","player_att");e=c.C?Yra(e):g.Na("yt.abuse.player.invokeBotguard")(e);MA("bg_s","player_att");e=e?"r1a="+e:"r1c=2"}else MA("bg_e","player_att"),e="r1c=1";return e},d.c3a=function(e){return"r3a="+Math.floor(c.videoData.lengthSeconds%Number(e.c3a)).toString()},d.c6a=
function(e){e=Number(e.c);
var f=c.C?parseInt(g.L("DCLKSTAT",0),10):(f=g.Na("yt.abuse.dclkstatus.checkDclkStatus"))?f():NaN;return"r6a="+(e^f)},d);
this.videoData&&this.videoData.Tg?this.u=Vp(this.videoData.Tg):this.u={}};
asa=function(a){if(a.videoData&&a.videoData.Tg){for(var b=[a.videoData.Tg],c=g.q(Object.keys(a.B)),d=c.next();!d.done;d=c.next())d=d.value,a.u[d]&&a.B[d]&&(d=a.B[d](a.u))&&b.push(d);return b.join("&")}return null};
csa=function(a){var b={};Object.assign(b,a.B);"c1b"in a.u&&(b.c1a=function(){return bsa(a)});
if(a.videoData&&a.videoData.Tg){for(var c=[a.videoData.Tg],d=g.q(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.u[e]&&b[e]&&(e=b[e](a.u))&&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)};
NS=function(a){return a.C?tr.Dd():(a=g.Na("yt.abuse.player.botguardInitialized"))&&a()};
bsa=function(a){if(!NS(a))return MA("bg_e","player_att"),Promise.resolve("r1c=1");var b="";a.videoData&&a.videoData.Tg&&(b=a.videoData.Tg+("&r1b="+a.videoData.clientPlaybackNonce));var c={},d=(c.atr_challenge=b,c),e=a.C?Zra:g.Na("yt.abuse.player.invokeBotguardAsync");return new Promise(function(f){MA("bg_v","player_att");e(d).then(function(h){h?(MA("bg_s","player_att"),f("r1a="+h)):(MA("bg_e","player_att"),f("r1c=2"))},function(){MA("bg_e","player_att");
f("r1c=3")})})};
dsa=function(a){var b=a.interval,c=a.eq,d=a.JG,e=a.drmSessionId;this.url=a.url;this.interval=b;this.eq=c;this.JG=d;this.drmSessionId=e};
OS=function(){g.P.apply(this,arguments)};
PS=function(a,b,c,d){OS.call(this);var e=this;this.C=-1;this.u={};this.D=new g.H(this.F,0,this);g.C(this,this.D);this.B=new g.H(function(){e.la()||(e.D.start(Math.random()*c),e.B.start(b))},a,this);
g.C(this,this.B);d.subscribe("fairplay_next_need_key_info",this.I,this)};
esa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
fsa=function(a,b,c){a=a.match(wd);for(var d=[],e=g.q(a[6].split("&")),f=e.next();!f.done;f=e.next())f=f.value,0===f.indexOf("cpi=")?d.push("cpi="+b.toString()):0===f.indexOf("ek=")?d.push("ek="+ld(c)):d.push(f);a[6]="?"+d.join("&");b="skd://"+a.slice(2).join("");a=2*b.length;c=new Uint8Array(a+4);c[0]=a%256;c[1]=(a-c[0])/256;for(a=0;a<b.length;++a)c[2*a+4]=b.charCodeAt(a);return c};
gsa=function(a,b){this.statusCode=a;this.message=b;this.u=this.heartbeatParams=this.errorMessage=null;this.B={};this.nextFairplayKeyId=null};
isa=function(a){var b=Nt(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(-1===c)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null==e)return null;e=e[1];isFinite(e)&&(e=String(e));e="string"===typeof e?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=wt(b.slice(d+2));if(null==b)return null;a=new gsa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.aL(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new dsa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,eq:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.u=c.split(",");if(c=b["Key-Ids"])a.B=hsa(c);a.nextFairplayKeyId=b["Next-Key-Id"];return a};
hsa=function(a){if(!a)return{};a=a.split(";");var b={};g.Gb(a,function(c){c=c.split(",");2===c.length&&(b[c[1]]=c[0])});
return b};
jsa=function(a,b){g.B.call(this);this.message=a;this.requestNumber=b;this.onError=this.onSuccess=null;this.u=new g.Mn(5E3,2E4,.2)};
ksa=function(a,b,c){a.onSuccess=b;a.onError=c};
msa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.la())if(0!==e.status&&e.response)if(CA("drm_net_r"),e=new Uint8Array(e.response),e=isa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else lsa(a,e)},
onError:function(e){lsa(a,e)}};
c&&(b=Rd(b,"access_token",c));g.oq(b,d)};
lsa=function(a,b){if(!a.la())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
osa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.la()){CA("drm_net_r");var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=g.af(f.license)}catch(x){}if(0!==h||l){l=new gsa(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.q(f.authorizedFormats),r=p.next();!r.done;r=p.next())if(r=r.value,r.trackType&&r.keyId){var t=nsa[r.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");h[t]||(m.push(t),h[t]=!0);var w=null;try{w=
g.af(r.keyId)}catch(x){}w&&(n[g.qf(w,4)]=t)}}l.u=m;l.B=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}},
onError:function(f){if(!a.la())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")},
Pf:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
d&&(e.oA="Bearer "+d);g.Kp(c,"player/get_drm_license",b,e)};
RS=function(a,b,c,d){g.P.call(this);this.videoData=a;this.C=b;this.ea=c;this.sessionId=d;this.F={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.K=this.P=!1;this.D=null;this.Z=[];this.I=[];this.W=!1;this.u={};this.X=NaN;this.status="";this.B=a.Vc;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.C.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Wf&&(a.vvt=this.videoData.Wf,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.C.kd&&(a.authuser=this.C.kd);this.C.pageId&&(a.pageid=this.C.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());if(this.videoData.ca("html5_send_device_type_in_drm_license_request")){var e;(e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Vc))?e[1]:"")&&(a.cdt=e)}this.F=a;this.F.session_id=d;this.N=!0;"widevine"===this.B.flavor&&(this.F.hdr="1");"playready"===this.B.flavor&&(b=Number(g.Xu(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.F.mfpe=""+
b),this.N=!1,this.videoData.ca("html5_playready_enable_non_persist_license")&&(this.F.pst="0"));b=OC(this.B)?esa(c.initData).replace("skd://","https://"):this.B.C;this.videoData.ca("enable_shadow_yttv_channels")&&(b=new g.Zm(b),document.location.origin&&document.location.origin.includes("green")?g.an(b,"web-green-qa.youtube.com"):g.an(b,"www.youtube.com"),b=b.toString());this.baseUrl=b;this.fairplayKeyId=Pd(this.baseUrl,"ek")||"";if(b=Pd(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.ba=
this.videoData.ca("html5_use_drm_retry");this.Z=c.B;QS(this,"sessioninit."+c.cryptoPeriodIndex);this.status="in"};
tsa=function(a,b){QS(a,"createkeysession");a.status="gr";CA("drm_gk_s");a.url=psa(a);try{a.D=b.createSession(a.ea,function(d){QS(a,d)})}catch(d){var c="t.g";
d instanceof DOMException&&(c+=";c."+d.code);a.V("licenseerror","drm.unavailable",!0,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.D&&(qsa(a.D,function(d,e){rsa(a,d,e)},function(d){a.la()||a.error("drm.keyerror",!0,d)},function(){a.la()||(QS(a,"onkyadd"),a.K||(a.V("sessionready"),a.K=!0))},function(d){ssa(a,d)}),g.C(a,a.D))};
psa=function(a){var b=a.baseUrl;ufa(b)||a.error("drm.net",!0,"t.x");if(!Pd(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.C.experiments.experiments[e]});
0<c.length&&(a.F.fexp=c.join())}c=g.q(Object.keys(a.F));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Rd(b,d,a.F[d]);return b};
usa=function(a){var b={};Object.assign(b,a.F);return b};
vsa=function(a,b){var c=new dsa({JG:g.qf(b),drmSessionId:a.sessionId});a.V("heartbeatparams",c)};
rsa=function(a,b,c){if(!a.la())if(b){QS(a,"onkmtyp."+c);a.status="km";switch(c){case "license-renewal":if(a.videoData.ca("use_innertube_heartbeats_for_widevine")&&"widevine"===a.B.flavor){vsa(a,b);return}break;case "license-request":case "license-release":break;case "individualization-request":wsa(a,b);return;default:a.V("ctmp","message_type","t."+c+";l."+b.byteLength)}a.P||(CA("drm_gk_f"),a.P=!0,a.V("newsession",a));if(KC(a.B)&&(b=xsa(b),!b))return;OC(a.B)&&!a.videoData.useInnertubeDrmService()&&
(b=Mt(g.qf(b)));b=new jsa(b,++a.requestNumber);ksa(b,function(d,e){ysa(a,d,e)},function(d,e,f,h){if(!a.la()){var l=!1,m=3;
void 0!==h&&400<=h&&500>h&&(m=g.Q(a.C.experiments,"html5_license_server_error_retry_limit")||3);(h=d.u.B>=m)||(h=a.ba&&36E4<(0,g.N)()-a.X);h&&(l=!0,e="drm.net.retryexhausted");QS(a,"onlcsrqerr."+e+";"+f);a.error(e,l,f);a.shouldRetry(l,d)&&zsa(a,d)}});
g.C(a,b);Asa(a,b)}else a.error("drm.unavailable",!1,"km.empty")};
wsa=function(a,b){QS(a,"sdpvrq");if("widevine"!==a.B.flavor)a.error("drm.provision",!0,"e.flavor;f."+a.B.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.C.deviceParams);c=g.Ld("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);var d={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:Nt(b)}),responseType:"arraybuffer"};
g.zr(c,d,3,500).then(Do(function(e){if(!a.la()){e=new Uint8Array(e.response);var f=Nt(e);try{var h=JSON.parse(f)}catch(l){}h&&h.signedResponse?(a.V("ctmp","drminfo","provisioning"),a.D&&a.D.update(e)):(h=h&&h.error&&h.error.message,e="e.parse",h&&(e+=";m."+h),a.error("drm.provision",!0,e))}}),Do(function(e){a.la()||a.error("drm.provision",!0,"e."+e.errorCode+";c."+(e.xhr&&e.xhr.status))}))}};
ssa=function(a,b){a.la()||0>=b.size||(b.forEach(function(c,d){var e=KC(a.B)?d:c,f=new Uint8Array(KC(a.B)?c:d);KC(a.B)&&Bsa(f);var h=g.qf(f,4);Bsa(f);f=g.qf(f,4);a.u[h]?a.u[h].status=e:a.u[f]?a.u[f].status=e:a.u[h]={type:"",status:e}}),Csa("Key statuses changed: "+Dsa(a,",")),QS(a,"onkeystatuschange"),a.status="kc",a.V("keystatuseschange",a))};
SS=function(a){var b;if(b=a.N&&null!=a.D)a=a.D,b=!(!a.u||!a.u.keyStatuses);return b};
Asa=function(a,b){a.status="km";CA("drm_net_s");if(a.videoData.useInnertubeDrmService()){var c=new g.jr(a.C.ba),d=g.Hp(c.Gf||g.Ip());d.drmSystem=Esa[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.qf(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);if(!d.context||!d.context.client){a.error("drm.net",!0,"t.r;ic.0");return}var e=a.C.deviceParams;
e&&(d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver);d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.Wf&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Wf,scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.mh&&
(d.context.user.kidsParent={oauthToken:a.videoData.mh});if(OC(a.B)){e=a.fairplayKeyId;for(var f=[],h=0;h<e.length;h+=2)f.push(parseInt(e.substring(h,h+2),16));d.fairplayKeyId=g.qf(f)}osa(b,d,c,a.videoData.lf())}else msa(b,a.url,a.videoData.oauthToken);a.status="rs"};
ysa=function(a,b,c){a.la()||(a.C.ca("html5_drm_ignore_out_of_order_responses")&&a.requestNumber!==c&&"widevine"===a.B.flavor?QS(a,"drmOOO."+a.requestNumber+"."+c,!0):(QS(a,"onlcsrsp"),a.status="rr",0!==b.statusCode)?a.error("drm.auth",!0,"t.f;c."+b.statusCode,b.errorMessage||void 0):(CA("drm_kr_s"),a.videoData.ca("outertube_streaming_data_always_use_staging_license_service")&&b.heartbeatParams&&b.heartbeatParams.url&&(c=a.B.C.match(/(.*)youtube.com/g))&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url),
b.heartbeatParams&&a.V("newlicense",b.heartbeatParams),b.u&&(a.I=b.u,a.W=ei(a.I,function(d){return d.includes("HDR")})),b.B&&(a.u=Lb(b.B,function(d){return{type:d,
status:"unknown"}})),MC(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=g.af(Nt(b.message)):NC(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=Mt(g.qf(b.message))),a.D&&(QS(a,"updtks"),a.status="ku",a.D.update(b.message).then(function(){CA("drm_kr_f");
if(!SS(a))if(QS(a,"ksApiUnsup"),LC(a.B)){var d=Fsa(a.I);480<g.Lv[d]&&a.V("hdentitled",a)}else a.V("keystatuseschange",a)},function(d){d="msuf.req."+a.requestNumber+";msg."+g.rf(d.message);
a.error("drm.keyerror",!0,d)})),a.K&&(a.X=(0,g.N)()),OC(a.B)&&a.V("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId)))};
zsa=function(a,b){var c=b.u.getValue();c=new g.H(function(){Asa(a,b)},c);
g.C(a,c);c.start();g.Nn(b.u);QS(a,"rtyrq")};
Gsa=function(a,b){if(!SS(a)&&LC(a.B)&&!b)return"large";var c=[],d=!0;if(SS(a))for(var e=g.q(Object.keys(a.u)),f=e.next();!f.done;f=e.next())f=f.value,"usable"===a.u[f].status&&c.push(a.u[f].type),"unknown"!==a.u[f].status&&(d=!1);if(!SS(a)||d)c=a.I;return Fsa(c)};
Dsa=function(a,b){for(var c=[],d=g.q(Object.keys(a.u)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.u[e].type+"_"+a.u[e].status);return c.join(b)};
Hsa=function(a){var b=a.status+".";return SS(a)?b+Dsa(a,"."):b+a.I.join(".")};
Isa=function(a,b,c){a:{switch(b){case "highres":case "hd2880":b="UHD2";break;case "hd2160":case "hd1440":b="UHD1";break;case "hd1080":case "hd720":b="HD";break;case "large":case "medium":case "small":case "light":case "tiny":b="SD";break;default:c="";break a}c&&(b+="HDR");c=b}for(var d in a.u)if("output-restricted"===a.u[d].status&&(b=a.u[d].type,""===c||"AUDIO"===b||c===b))return!0;return!1};
Jsa=function(a,b){for(var c in a.u)if("usable"===a.u[c].status&&a.u[c].type===b)return!0;return!1};
QS=function(a,b,c){((void 0===c?0:c)||UF(a.videoData)||"playready"===a.B.flavor&&a.videoData.useInnertubeDrmService())&&a.V("ctmp","drmlog",b)};
Csa=function(){};
Bsa=function(a){var b=a[0];a[0]=a[3];a[3]=b;b=a[1];a[1]=a[2];a[2]=b;b=a[4];a[4]=a[5];a[5]=b;b=a[6];a[6]=a[7];a[7]=b};
Fsa=function(a){return g.nb(a,"UHD2")?"highres":g.nb(a,"UHD1")?"hd2160":g.nb(a,"HD")?"hd1080":g.nb(a,"HD720")?"hd720":"large"};
xsa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=(new DOMParser).parseFromString(b,"text/xml");return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(TS(Vaa(a.childNodes[0].nodeValue)).buffer):null:null};
Ksa=function(a,b,c,d,e){var f;"playready"===e?f=xsa(a):"fairplay"===e&&(f=Mt(g.qf(a)));f&&(a={format:"RAW",method:"POST",postBody:f,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Naa(c,d),g.zr(c,a,3,500).then(function(h){h=new Uint8Array(h.response);(h=isa(h))&&h.message&&b.update(h.message)}))};
US=function(a,b,c,d,e){g.B.call(this);this.element=a;this.N=b;this.initData=c;this.u=d;this.B=e;this.sessionId="";this.K=this.I=this.C=this.F=null;this.D=new g.Wr(this);g.C(this,this.D);Lsa(this)};
Lsa=function(a){a.u?(a.D.R(a.u,"message",a.jK),a.D.R(a.u,"keystatuseschange",a.kK),a.u.closed&&a.u.closed.then(Do(function(){a.la()||Xj("xboxone")&&a.C&&a.C("closed")}),null)):a.B&&(Xr(a.D,a.B,["mskeymessage",
"webkitkeymessage"],a.xE),Xr(a.D,a.B,["mskeyerror","webkitkeyerror"],a.wE),Xr(a.D,a.B,["mskeyadded","webkitkeyadded"],a.vE))};
qsa=function(a,b,c,d,e){a.F=b;a.C=c;a.I=d;a.K=e};
Msa=function(a,b,c){g.M(c);a.C&&(c instanceof DOMException&&(b+=";n.$(exc.name);m.$(exc.message)"),a.C(b))};
VS=function(a,b){g.B.call(this);this.element=a;this.u=b;this.I={};this.D=null;this.F=new g.Wr(this);this.C=this.B=null;g.C(this,this.F)};
WS=function(a){if(a.u.keySystemAccess)return a.u.keySystemAccess.createMediaKeys().then(function(b){a.la()||(a.B=b,a.element.setMediaKeys(b))});
JC(a.u)?a.C=new (IC())(a.u.u):MC(a.u)?(a.C=new (IC())(a.u.u),a.element.webkitSetMediaKeys(a.C)):Nsa(a);return null};
Nsa=function(a){Xr(a.F,a.element,["keymessage","webkitkeymessage"],a.nK);Xr(a.F,a.element,["keyerror","webkitkeyerror"],a.mK);Xr(a.F,a.element,["keyadded","webkitkeyadded"],a.lK)};
Osa=function(a){return"widevine"===a.u.flavor&&a.u.Zn&&a.B.setServerCertificate?a.B.setServerCertificate(a.u.Zn):null};
Qsa=function(a,b){var c=Psa(b,a.u.Zg);c=a.C.createSession("video/mp4",c);return new US(null,null,null,null,c)};
Rsa=function(a,b){for(var c=new Uint8Array(270),d=0;135>d;d++)c[2*d]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(d);c=a.C.createSession("video/mp4",b,c);return new US(null,null,null,null,c)};
XS=function(a,b){var c=a.I[b.sessionId];!c&&a.D&&(c=a.D,a.D=null,c.sessionId=b.sessionId,a.I[b.sessionId]=c);return c};
Psa=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<c.length;e+=2)d+=String.fromCharCode(parseInt(c.substr(e,2),16));c=d;d=new ArrayBuffer(2*c.length);e=new Uint16Array(d);for(var f=0;f<c.length;f++)e[f]=c.charCodeAt(f);c=new Uint8Array(d);d=0;f=new ArrayBuffer(a.byteLength+4+c.byteLength+4+b.byteLength);e=new Uint8Array(f);f=new DataView(f);e.set(a);d+=a.byteLength;f.setUint32(d,
c.length,!0);d+=4;e.set(c,d);d+=c.length;f.setUint32(d,b.byteLength,!0);e.set(b,d+4);return e};
YS=function(a,b){g.B.call(this);this.u=g.Fe("video");this.B=null;this.D=[];this.F=new g.Wr(this);this.C=new HC("fairplay","com.youtube.fairplay","",b);this.C.Zg=a;g.C(this,this.F);this.init()};
ZS=function(a,b,c){OS.call(this);var d=this;this.D=a;this.C=b;this.u=[];this.B=new g.H(function(){var e=d.u.shift().info;a:{var f=e.cryptoPeriodIndex;if(isNaN(f)&&0<d.C.values.length)f=!0;else{for(var h=g.q(d.C.values),l=h.next();!l.done;l=h.next())if(l.value.cryptoPeriodIndex===f){f=!0;break a}f=!1}}f||d.V("rotated_need_key_info_ready",e);0<d.u.length&&(e=d.u[0].time-(0,g.N)(),d.B.start(Math.max(0,e)))},0);
g.C(this,this.B);c.subscribe("widevine_set_need_key_info",this.F,this)};
aT=function(a,b,c){g.P.call(this);this.element=a;this.videoData=b;this.B=c;this.u=this.videoData.Vc;this.drmSessionId=this.videoData.drmSessionId||g.js();this.C=new IS;this.K=new IS;this.P=new IS;this.D=[];this.Aa=2;this.ba=new g.Wr(this);this.za=this.ha=!1;this.heartbeatParams=null;this.Z=this.da=this.ea=this.W=!1;this.F=null;this.ka=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||IC()||PC(c.experiments);c=g.R(this.B.experiments,"html5_drm_initial_constraint_from_config")?this.videoData.Eo:g.R(this.B.experiments,
"html5_drm_start_from_null_constraint");this.N="fairplay"===this.u.flavor||c?WC:Ssa;this.I=new VS(this.element,this.u);g.C(this,this.I);JC(this.u)&&(this.X=new VS(this.element,this.u),g.C(this,this.X));g.C(this,this.ba);c=this.element;this.u.keySystemAccess?this.ba.R(c,"encrypted",this.oK):Xr(this.ba,c,JC(this.u)?["msneedkey"]:["needkey","webkitneedkey"],this.nO);Tsa(this);a:switch(c=this.u,a=this.B.experiments,b=this.C,c.flavor){case "fairplay":19.2999<Wj()?(a=c.Dr,c=c.Cr,c>=a&&(c=.75*a),b=.5*(a-
c),c=new PS(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new ZS(g.R(a,"disable_license_delay"),b,this);break a;default:c=null}if(this.F=c)g.C(this,this.F),this.F.subscribe("rotated_need_key_info_ready",this.kA,this);PC(this.B.experiments);$S(this,"cks"+this.u.te());c=this.u;"com.youtube.widevine.forcehdcp"===c.u&&c.D&&(this.Ga=new YS(this.videoData.Zg,this.B.experiments),g.C(this,this.Ga))};
Tsa=function(a){var b=WS(a.I);b?b.then(Do(function(){Usa(a)}),Do(function(c){if(!a.la()){g.M(c);
var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.V("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):($S(a,"mdkrdy"),a.W=!0);
a.X&&(b=WS(a.X))};
Vsa=function(a,b,c){a.za=!0;c=new Jx(b,c);a.B.ca("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));a.B.ca("html5_process_all_encrypted_events")?bT(a,c):a.B.ca("html5_eme_loader_sync")?bT(a,c):0!==a.D.length&&a.videoData.Ia&&a.videoData.Ia.wc()?cT(a):bT(a,c)};
Wsa=function(a,b){$S(a,"onneedkeyinfo");g.R(a.B.experiments,"html5_eme_loader_sync")&&(a.P.get(b.initData)||a.P.set(b.initData,b));bT(a,b)};
Ysa=function(a,b){if(JC(a.u)&&!a.ea){var c=Tfa(b);if(0!==c.length){var d=new Jx(c);a.ea=!0;navigator.requestMediaKeySystemAccess("com.microsoft.playready",[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}]).then(function(e){e.createMediaKeys().then(function(f){Xsa(a,f,d)})},null)}}};
Xsa=function(a,b,c){var d=b.createSession(),e=a.C.values[0],f=usa(e);d.addEventListener("message",function(h){h=new Uint8Array(h.message);Ksa(h,d,a.u.C,f,"playready")});
d.addEventListener("keystatuseschange",function(){"usable"in d.keyStatuses&&(a.da=!0,Zsa(a,Gsa(e,a.da)))});
d.generateRequest("cenc",c.initData)};
bT=function(a,b){if(!a.la()){$S(a,"onInitData");if(g.R(a.B.experiments,"html5_eme_loader_sync")&&a.videoData.Ia&&a.videoData.Ia.wc()){var c=a.P.get(b.initData),d=a.K.get(b.initData);if(!c||!d)return;b=c;c=b.initData;a.K.remove(c);a.P.remove(c)}$S(a,"initd."+b.initData.length+";ct."+b.contentType);"widevine"===a.u.flavor?a.ha&&!a.videoData.isLivePlayback||g.R(a.B.experiments,"vp9_drm_live")&&a.videoData.isLivePlayback&&b.Id||(a.ha=!0,c=b.u,Kx(b),c&&!b.Id&&b.u!==c&&a.V("ctmp","cpsmm","emsg."+c+";pssh."+
b.u),a.V("widevine_set_need_key_info",b)):a.kA(b)}};
Usa=function(a){if(!a.la())if(g.R(a.B.experiments,"html5_drm_set_server_cert")&&!g.$B(a.B)){var b=Osa(a.I);b?b.then(Do(function(c){UF(a.videoData)&&a.V("ctmp","ssc",c)}),Do(function(c){a.V("ctmp","ssce","n."+c.name+";m."+c.message)})).then(Do(function(){dT(a)})):dT(a)}else dT(a)};
dT=function(a){a.la()||(a.W=!0,$S(a,"onmdkrdy"),cT(a))};
cT=function(a){if(a.za&&a.W&&!a.Z){for(;a.D.length;){var b=a.D[0];if(a.C.get(b.initData))if("fairplay"===a.u.flavor)a.C.remove(b.initData);else{a.D.shift();continue}Kx(b);break}a.D.length&&a.createSession(a.D[0])}};
Zsa=function(a,b){var c=BC("auto",b,!1,"l");if(g.R(a.B.experiments,"html5_drm_initial_constraint_from_config")?a.videoData.Eo:g.R(a.B.experiments,"html5_drm_start_from_null_constraint")){if(AC(a.N,c))return}else if(EC(a.N,b))return;a.N=c;a.V("qualitychange");$S(a,"updtlq"+b)};
$sa=function(a){if(0>=a.C.values.length){var b="ns;";a.W||(b+="nr;");return b+="ql."+a.D.length}return Hsa(a.C.values[0])};
$S=function(a,b){a.la()||UF(a.videoData)&&a.V("ctmp","drmlog",b)};
ata=function(a){if(ck()){var b=a.I;b=b.B&&b.B.u?b.B.u():null;$S(a,"mtr."+g.qf(b,3))}};
eT=function(a,b,c){g.P.call(this);this.videoData=a;this.Oa=b;this.playerVisibility=c;this.P=0;this.B=this.u=null;this.W=this.I=this.D=!1;this.N=this.K=0;this.C=NaN;this.F=0};
hT=function(a,b,c){var d=!1,e=a.P+3E4<(0,g.N)()||!1,f;if(f=a.videoData.ca("html5_pause_on_nonforeground_platform_errors")&&!e)f=a.playerVisibility,f=!!(f.u||f.isInline()||f.isBackground()||f.pictureInPicture||f.C);f&&(c.nonfg="paused",e=!0,a.V("pausevideo"));f=a.videoData.La;if(!e&&((null===f||void 0===f?0:Vv(f))||(null===f||void 0===f?0:Tv(f))))if(a.videoData.ca("html5_disable_codec_on_platform_errors"))a.Oa.D.N.add(f.Fb),d=e=!0,c.cfalls=f.Fb;else{var h;if(h=a.videoData.ca("html5_disable_codec_for_playback_on_error")&&
a.u){h=a.u.K;var l=f.Fb;h.ra.has(l)?h=!1:(h.ra.add(l),h.Z=-1,XC(h,h.F),h=!0)}h&&(d=e=!0,c.cfallp=f.Fb)}if(!e)return bta(a,c);a.P=(0,g.N)();e=a.videoData;e=e.Gg?e.Gg.uB()<Date.now()/1E3+1800:!1;c.e=b;e&&(c.staleprog="1");fT(a,"qoe.restart",c);if(e&&cta(a))return gT(a),!0;Xj("philips")&&dta(a);!a.videoData.ca("html5_disable_codec_on_platform_errors")&&f&&Vv(f)?(a.Oa.D.disableAv1(),d=!0):a.u?(b=a.u,c=(c=py(b.B)||b.B.B)?c.u:b.B.u,c.P+=1,bD(b.K,c)):a.videoData.Gg&&a.videoData.Gg.py();a.V("newelementrequired",
d);return!0};
bta=function(a,b){if(a.videoData.vg)return!1;a.Oa.ra+=1;if(10>=a.Oa.ra)return!1;b.exiled=""+a.Oa.ra;fT(a,"qoe.start15s",b);a.V("playbackstalledatstart");return!0};
dta=function(a){if("GAME_CONSOLE"!==a.Oa.deviceParams.cplatform)try{window.close()}catch(b){}};
cta=function(a){return a.D||"yt"!==a.Oa.X?!1:a.videoData.vg?25>a.videoData.Ci:!a.videoData.Ci};
gT=function(a){a.D||(a.D=!0,a.V("signatureexpiredreloadrequired"))};
eta=function(a,b){if(a.B&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.B.qh();b.details.merr=c?c.toString():"0";b.details.msg=a.B.mn()}};
fta=function(a,b){return"html5.invalidstate"===b.errorCode&&a.Oa.ca("html5_new_element_on_invalid_state")||"fmt.unplayable"===b.errorCode||"fmt.unparseable"===b.errorCode?hT(a,b.errorCode,b.details):!1};
gta=function(a){return"net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&!!a.details.fmt_unav};
ita=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="18564";if(cta(a))return c?(a.I=!0,a.V("releaseloader")):(b.u&&(b.details.e=b.errorCode,b.errorCode="qoe.restart",b.u=!1),fT(a,b.errorCode,b.details),gT(a)),!0;6048E5<(0,g.N)()-a.Oa.Ja&&hta(a,"signature");return!1};
hta=function(a,b){try{window.location.reload();fT(a,"qoe.restart",{detail:"pr."+b});return}catch(c){}a.Oa.ca("tvhtml5_retire_old_players")&&g.$B(a.Oa)&&dta(a)};
jta=function(a,b){a.Oa.D.B=!1;fT(a,"qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});a.V("formatupdaterequested")};
iT=function(a,b,c,d){a.V("clienttemp",b,c,(void 0===d?{Ey:!1}:d).Ey)};
fT=function(a,b,c){a.V("qoeerror",b,c)};
kta=function(a,b,c,d){this.videoData=a;this.u=b;this.reason=c;this.B=d};
lta=function(a){navigator.mediaCapabilities?jT(a.videoInfos).then(function(){return a},function(){return a}):Cr(a)};
jT=function(a){var b=navigator.mediaCapabilities;if(!b)return Cr(a);var c=a.map(function(d){return b&&b.decodingInfo({type:"media-source",video:d.video?{contentType:d.mimeType,width:d.video.width||640,height:d.video.height||360,bitrate:8*d.u||1E6,framerate:d.video.fps||30}:null})});
return Hm(c).then(function(d){for(var e=0;e<d.length;e++)a[e].F=d[e].smooth,a[e].C=d[e].powerEfficient;return a},function(){return a})};
kT=function(a,b){g.P.call(this);this.u=a;this.W=b;this.P=this.I=this.K=this.C=this.B=this.F=this.N=this.D=0;this.playbackRate=1};
nta=function(a,b,c){!g.R(a.u.experiments,"html5_tv_ignore_capable_constraint")&&g.$B(a.u)&&(c=c.compose(mta(a,b)));return c};
ota=function(a){return a.ca("html5_exponential_memory_for_sticky")?.5>aB(a.u.Ub,"sticky-lifetime")?"auto":kx():kx()};
pta=function(a){var b=new zC(0,0,!1,"o");1<a.playbackRate&&(b=new zC(0,480,!0,"o"));return b};
mta=function(a,b){if(g.$B(a.u)&&uB(a.u.D,vB.HEIGHT))var c=b.Ia.videoInfos[0].Ka().yc;else{c=b.Ia.wc();var d;QB(a.u)&&(d=window.screen&&window.screen.width?new g.he(window.screen.width,window.screen.height):null);d||(d=a.u.Ni?a.u.Ni.clone():a.W.getPlayerSize());(SB||gD||c)&&d.scale(g.jC());c=d;cF(b.videoData)||SF(b.videoData);var e=b.Ia.videoInfos;if(e.length){d=.85;var f=e[0].Ka();4!==f.projectionType&&2!==f.projectionType&&3!==f.projectionType||OB||(d=.45);f=e[0];var h=f.Ka();e=g.q(e);for(var l=
e.next();!l.done&&!(f=h=l.value,h=h.Ka(),null===c||h.width*d<c.width&&h.height*d<c.height);l=e.next());c="93"===wu(f)?Kv(h.width,h.height):h.quality;c=BC("auto",c,!1,"r")}else c=WC;c=c.u}c&&(c=Math.max(c,360));return new zC(0,c,!1,"r")};
qta=function(a,b){var c;a:if((c=b.Ia)&&c.videoInfos.length){for(var d=g.q(c.videoInfos),e=d.next();!e.done;e=d.next())if(e=e.value,e.F){c=e.Ka().yc;break a}c=c.videoInfos[0].Ka().yc}else c=0;Zj()&&!g.$B(a.u)&&Tv(b.Ia.videoInfos[0])&&(c=Math.min(c,g.Lv.large));return new zC(0,c,!1,"o")};
rta=function(a,b){var c=0;!a.u.u||g.RB(a.u)||ik()||g.R(a.u.experiments,"mweb_uniplayer_auto_quality")||g.R(a.u.experiments,"hls_for_vod")||(c=g.Lv.medium);var d=g.Q(a.u.experiments,"html5_default_quality_cap");if(d){var e=b.Ia.wc()&&!b.videoData.Tf&&!b.videoData.zd,f=g.Q(a.u.experiments,"html5_quality_cap_min_age_secs");e&&f&&(e=a.u.schedule.F,e=(0,g.N)()-e>1E3*f);e&&(c=c?Math.min(c,d):d)}d=g.Q(a.u.experiments,"html5_random_playback_cap");f=/[a-h]$/;d&&f.test(b.videoData.clientPlaybackNonce)&&(c=
c?Math.min(c,d):d);(d=g.Q(a.u.experiments,"html5_not_vp9_supported_quality_cap"))&&!dB('video/webm; codecs="vp9"')&&(c=c?Math.min(c,d):d);if(f=d=g.Q(a.u.experiments,"html5_hfr_quality_cap"))a:{f=b.Ia;if(f.wc())for(f=g.q(f.videoInfos),e=f.next();!e.done;e=f.next())if(32<e.value.Ka().fps){f=!0;break a}f=!1}f&&(c=c?Math.min(c,d):d);(d=g.Q(a.u.experiments,"html5_live_quality_cap"))&&b.videoData.isLivePlayback&&(c=c?Math.min(c,d):d);return new zC(0,c,!1,"d")};
sta=function(a,b){return g.Ue(a,function d(){var e;return g.Aa(d,function(f){if(!b.Ia.wc())return f["return"](void 0);e=b.Ia.videoInfos;return f["return"](jT(e))})})};
tta=function(a,b){return g.Ue(a,function d(){var e,f,h=this;return g.Aa(d,function(l){if(1==l.u)return(e=b.Ia.videoInfos.find(function(m){return Vv(m)}))?null!==e.C?l.Jd(2):g.ra(l,jT([e]),2):l["return"](!1);
f=e.C||!1;h.V("ctmp","mcrsp","itag."+e.id+";smooth."+ +e.F+";efficient."+ +f);return l["return"](f)})})};
vta=function(a,b){if(!b.videoData.La||a.ca("html5_disable_performance_downgrade"))return!1;6E4<g.A()-a.N&&(a.D=0);a.D++;a.N=g.A();if(4!==a.D)return!1;uta(a,b.videoData.La);return!0};
xta=function(a,b,c,d){if(!b||!c||!b.videoData.La)return!1;var e=g.Q(a.u.experiments,"html5_df_downgrade_thresh"),f=a.ca("html5_log_media_perf_info"),h=g.Q(a.u.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.N)()-a.F?0:f||0<e||0<h))return!1;a.F=(0,g.N)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.I,m=c.totalVideoFrames-a.P;a.I=c.droppedVideoFrames;a.P=c.totalVideoFrames;f&&b.videoData.Cj&&a.V("ctmp","ddf","dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames);
if(d)return a.B=0,a.C=0,!1;d=60<m?l/m:0;0<d&&(a.K=d);a.C=0<h&&60*d>h?a.C+1:0;if(!e||g.$B(a.u))return!1;a.B=d>e?a.B+1:0;if(3!==a.B)return!1;uta(a,b.videoData.La);a.V("ctmp","dfd",wta());return!0};
uta=function(a,b){var c=b.Ka().yc-1,d=b.Fb,e=b.Ka().fps,f=nx();d=mx(d,e);0<+f[d]&&(c=Math.min(+f[d],c));f[d]!==c&&(f[d]=c,g.Ws("yt-player-performance-cap",f,604800));a.V("av1hybridthresholdchange")};
yta=function(a,b){if(!b.Ia.wc())return WC;var c=a.u.ca("html5_dynamic_av1_hybrid_threshold"),d=0,e=g.Q(a.u.experiments,"html5_performance_cap_floor");e=a.u.u?240:e;for(var f=g.q(b.Ia.videoInfos),h=f.next();!h.done;h=f.next()){var l=h.value;if(!c||!Vv(l))if(h=ox(l.Fb,l.Ka().fps),l=l.Ka().yc,Math.max(h,e)>=l){d=l;break}}return new zC(0,d,!1,"b")};
zta=function(a,b){var c=g.Q(a.u.experiments,"html5_background_quality_cap"),d=g.Q(a.u.experiments,"html5_background_cap_idle_secs");return!c||"auto"!==ota(a)||zp()/1E3<d?WC:b?new zC(0,c,!1,"v"):WC};
Ata=function(a,b){var c=g.Q(a.u.experiments,"html5_autonav_quality_cap"),d=g.Q(a.u.experiments,"html5_autonav_cap_idle_secs");return c&&b.videoData.Cl&&zp()/1E3>d?new zC(0,c,!1,"e"):WC};
Bta=function(a,b){a.ca("html5_log_media_perf_info")&&(a.V("ctmp","perfdb",wta()),a.V("ctmp","hwc",""+navigator.hardwareConcurrency,!0),b&&a.V("ctmp","mcdb",b.Ia.videoInfos.filter(function(c){return!1===c.F}).map(function(c){return wu(c)}).join("-")))};
wta=function(){var a=Lb(nx(),function(b){return""+b});
return g.UA(a)};
lT=function(a,b){g.B.call(this);this.provider=a;this.I=b;this.u=-1;this.F=!1;this.B=-1;this.playerState=new g.bL;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.delay=new g.H(this.send,6E4,this);this.C=!1;g.C(this,this.delay)};
Cta=function(a){0<=a.u||(3===a.provider.getVisibilityState()?a.F=!0:(a.u=g.mT(a.provider),a.delay.start()))};
Dta=function(a){if(!(0>a.B)){var b=g.mT(a.provider),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.iL(a.playerState)&&!g.T(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
Eta=function(a){switch(a.u.Er){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}};
Fta=function(a){return(!a.ca("html5_health_to_gel")||a.u.Ja+36E5<(0,g.N)())&&(a.ca("html5_health_to_gel_canary_killswitch")||a.u.Ja+36E5<(0,g.N)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===Eta(a))?a.ca("html5_health_to_qoe"):!0};
nT=function(a,b,c,d,e){var f={format:"RAW"},h={};aq(a)&&bq()&&(c&&(h["X-Goog-Visitor-Id"]=c),b&&(h["X-Goog-PageId"]=b),d&&(h.Authorization="Bearer "+d),c||d||b)&&(f.withCredentials=!0);0<Object.keys(h).length&&(f.headers=h);e&&(f.Mf=e);return 1<Object.keys(f).length?f:null};
oT=function(a,b,c,d,e,f){bq()&&c.token&&(a=g.Ld(a,{ctt:c.token,cttype:c.Oy,mdx_environment:c.mdxEnvironment}));e?(null==b?b={}:(c=g.Xp(a),Object.keys(c).includes("cpn")),f?ir(a,b):hr(a,b)):b?(f=g.Xp(a),Object.keys(f).includes("cpn"),g.oq(a,b)):g.at(a,d)};
qT=function(a){g.B.call(this);var b=this;this.provider=a;this.u={};this.sequenceNumber=1;this.ra=NaN;this.Bc="N";this.I=this.Na=this.za=this.ha=this.C=0;this.X=this.Qa="";this.Ga=this.Z=NaN;this.Aa=0;this.nb=-1;this.Ja=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.ea=this.W=!1;this.ob=[];this.N=null;this.P=this.ba=this.D=!1;this.B=-1;this.ka=!1;this.Za=new g.H(this.mJ,750,this);this.K=this.adCpn="";g.C(this,this.Za);(a=navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.N=
c});
g.pT(this,0,"vps",["N"])};
g.pT=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
sT=function(a,b){var c=a.provider.B();g.pT(a,b,"cmt",[c.toFixed(3)]);c=a.provider.N();if(a.F&&1E3*c>a.F.PD+100&&a.F){var d=a.F,e=d.isAd;a.da=1E3*b-d.DQ-(1E3*c-d.PD)-d.vQ;rT(a,"gllat","l."+a.da.toFixed()+";prev_ad."+ +e);delete a.F}};
tT=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.mT(a.provider);var c=a.provider.D();if(!isNaN(a.Z)&&!isNaN(c.B)){var d=c.B-a.Z;0<d&&g.pT(a,b,"bwm",[d,(c.D-a.Ga).toFixed(3)])}a.Z=c.B;a.Ga=c.D;isNaN(c.bandwidthEstimate)||g.pT(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.videoData.Cj&&c.u&&rT(a,"bwinfo",c.u);a.N&&g.pT(a,b,"bat",[a.N.level,a.N.charging?"1":"0"]);d=a.provider.getVisibilityState();a.nb!==d&&(g.pT(a,b,"vis",[d]),a.nb=d);sT(a,b);(d=Gta(a.provider))&&d!==a.Aa&&(g.pT(a,b,"conn",[d]),
a.Aa=d);Hta(a,b,c)};
Hta=function(a,b,c){if(!isNaN(c.Yk)){var d=c.Yk;c.C<d&&(d=c.C);g.pT(a,b,"bh",[d.toFixed(3)])}};
uT=function(a){for(var b=0,c=g.q(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(g.kh(a.u[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.H(a.reportStats,0,a)).start()};
Ita=function(a){a.provider.videoData.Fn&&vT(a,"prefetch");a.provider.videoData.Ci&&rT(a,"reload","r."+a.provider.videoData.reloadReason+";ct."+a.provider.videoData.Ci);a.provider.videoData.li&&vT(a,"monitor");a.provider.videoData.isLivePlayback&&vT(a,"live");a.provider.videoData.Tf&&rT(a,"ctrl",a.provider.videoData.Tf,!0);if(a.provider.videoData.Le){var b=a.provider.videoData.Le.replace(/,/g,"_");rT(a,"ytp",b,!0)}a.provider.videoData.CF&&(b=a.provider.videoData.CF.replace(/,/g,"."),rT(a,"ytrexp",
b,!0));if(!g.R(a.provider.u.experiments,"html5_disable_gpu_reporting")){var c=a.provider.u.experiments;b=a.provider.videoData;c=g.R(c,"enable_white_noise")||g.R(c,"enable_webgl_noop")||g.R(c,"enable_gpu_logging");var d=b.Ym()||b.mj()||b.nj()||b.ij(),e=b.Ia&&Vv(g.gb(b.Ia.videoInfos))&&/^g/.test(b.clientPlaybackNonce);b=/^gp/.test(b.clientPlaybackNonce);(c||d||b||e)&&(b=(0,g.wT)())&&(a.u.gpu=[b])}a.ra=Go(function(){a.reportStats()},1E4)};
Jta=function(a,b,c,d){var e=a.provider.B();c=[c,e.toFixed(3)];d&&c.push(d);g.pT(a,b,"error",c);a.P=!0};
Kta=function(a){0<=a.B||(a.provider.u.ac||3!==a.provider.getVisibilityState()?a.B=g.mT(a.provider):a.ka=!0)};
vT=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
rT=function(a,b,c,d){var e=a.u.ctmp||[],f=-1!==a.ob.indexOf(b);f||a.ob.push(b);if(!d||!f){/[^a-zA-Z0-9;.!_-]/.test(c)&&(c=c.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));if(!d&&!/^t[.]/.test(c)){var h=1E3*g.mT(a.provider);c="t."+h.toFixed()+";"+c}Lta(b,c);e.push(b+":"+c);a.u.ctmp=e;uT(a);return h}};
Mta=function(a,b,c,d,e,f){1===f&&a.reportStats();a.adCpn=b;a.K=c;b=g.mT(a.provider);c=a.provider.B();1===f&&g.pT(a,b,"vps",[a.Bc]);var h=a.u.xvt||[];h.push("t."+b.toFixed(3)+";m."+c.toFixed(3)+";g.2;tt."+f+";np.0;c."+d+";d."+e);a.u.xvt=h;0===f&&(a.reportStats(),a.adCpn="",a.K="")};
yT=function(a){this.provider=a;this.K=!1;this.u=0;this.D=-1;this.lastUpdateTime=NaN;this.B=0;this.segments=[];this.I=this.F=0;this.P=this.provider.xe().volume;this.N=this.provider.xe().muted;this.C=xT(this.provider)};
Nta=function(a){return a.F+a.provider.B()-a.B};
Ota=function(a){a.segments.length&&a.u===a.B||a.Gm();var b=a.segments;a.segments=[];return b};
Qta=function(a){Pta(a);a.I=Go(function(){a.update()},100);
a.lastUpdateTime=g.mT(a.provider);a.C=xT(a.provider)};
Pta=function(a){window.clearInterval(a.I);a.I=NaN};
Rta=function(a,b,c){c-=a.lastUpdateTime;return b===a.u&&.5<c};
zT=function(a,b,c,d){this.segments=[];this.experimentIds=[];this.lj=this.ha=this.isFinal=this.Za=this.ba=this.autoplay=this.autonav=!1;this.Ja="yt";this.B=this.F=null;this.sendVisitorIdHeader=this.za=!1;this.pageId="";this.D="watchtime"===c;this.C="playback"===c;this.da="delayplay"===c;this.ea="atr"===c;this.ob="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.ea?"/api/stats/"+c:"//"+b.Oi+"/api/stats/"+c;this.Ub=!b.ca("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.C&&b.pfpChazalUi&&
a.Kc;d&&(this.ha=d.fs,d.rtn&&(this.B=d.rtn),this.D?(this.playerState=d.state,0<d.rti&&(this.F=d.rti)):(this.yb=d.mos,this.Pb=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),d.inview&&(this.Qa=d.inview),d.size&&(this.Na=d.size));this.deviceParams=g.Zb(b.deviceParams);this.nb=b.Ga;this.experimentIds=b.experiments.experimentIds;this.Aa=b.pe;this.Ja=b.X;this.region=b.region;this.userAge=b.userAge;this.Ga=b.Af;this.ac=zp();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.N=g.R(b.experiments,
"vss_pings_using_networkless");this.P=g.R(b.experiments,"vss_send_then_write");this.pageId=b.pageId;b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.accessToken=a.lf();this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=PF(a);this.autonav=a.Cl||this.autonav;this.contentVideoId=NF(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.ba=a.Kc;a.Nh&&(this.I=a.Nh,this.Z=a.qg);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.Wj=a.Wj;this.Wg=a.Wg;a.La&&
(this.videoFormat=wu(a.La),a.Qc&&wu(a.Qc)!==this.videoFormat&&(this.X=wu(a.Qc)));a.ma&&Kz(a.ma)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.Ub?"embedded_unbranded":MF(a);this.lj=a.lj;this.Xm=a.Xm;if(b=AF(a))this.Lb=b;this.pp=a.pp;this.Fg=a.Fg;this.eventId=a.eventId;this.playlistId=a.jG||a.playlistId;this.au=a.au;this.Tf=a.Tf;this.Le=a.Le;this.kq=a.kq;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;
this.Ox=a.Ox;this.referrer=a.referrer;this.Wp=a.AF||a.Wp;this.Tn=a.Tn;this.zu=a.zu;this.userGenderAge=a.userGenderAge;this.Vq=a.Vq};
AT=function(a,b){return nT(a.uri,a.pageId,a.sendVisitorIdHeader?a.visitorData:void 0,a.accessToken,b)};
Sta=function(a,b,c,d,e,f){b.cmt=b.len;b.lact="0";d=d().toFixed(3);b.rt=Number(d).toString();a=g.Ld(a,b);e?(null==c&&(c={}),f?ir(a,c):hr(a,c)):c?g.oq(a,c):g.at(a)};
CT=function(a){var b={ns:a.Ja,el:a.eventLabel,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.u(a.Wj),ei:a.eventId,fmt:a.videoFormat,fs:a.ha?"1":"0",rt:a.u(a.Rb),of:a.Ox,adformat:a.adFormat,content_v:a.contentVideoId,euri:a.nb,lact:a.ac,live:a.Lb,cl:(339548151).toString(),mos:a.yb,osid:a.osid,state:a.playerState,vm:a.videoMetadata,volume:a.Pb};a.adQueryId&&(b.aqi=a.adQueryId);a.subscribed&&(b.subscribed="1");g.Xa(b,a.deviceParams);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay=
"1");a.ba&&(b.dni="1");a.isFinal&&(b["final"]="1");a.lj&&(b.splay="1");a.Wg&&(b.delay=a.Wg);a.Aa&&(b.hl=a.Aa);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.Ga&&(b.uga=a.Ga+a.userAge);void 0!==a.ra&&(b.len=a.u(a.ra));!a.D&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.B&&(b.rtn=a.u(a.B));a.Wp&&(b.feature=a.Wp);a.playlistId&&(b.list=a.playlistId);a.Tf&&(b.ctrl=a.Tf);a.Le&&(b.ytr=a.Le);a.kq&&(b.ssrt="1");a.X&&(b.afmt=a.X);a.offlineDownloadUserChoice&&
(b.ODUC=a.offlineDownloadUserChoice);a.ka&&(b.lio=a.u(a.ka));a.D?(b.idpj=a.Xm,b.ldpj=a.pp,null!=a.F&&(b.rti=a.u(a.F)),a.Vq&&(b.ald=a.Vq)):void 0!==a.adType&&(b.at=a.adType);a.Na&&(a.C||a.da)&&(b.size=a.Na);null!==a.Qa&&(a.C||a.da)&&(b.inview=a.u(a.Qa));a.D&&(b.volume=BT(a,g.Pc(a.segments,function(d){return d.volume})),b.muted=BT(a,g.Pc(a.segments,function(d){return d.muted?1:0})),b.st=BT(a,g.Pc(a.segments,function(d){return d.startTime})),b.et=BT(a,g.Pc(a.segments,function(d){return d.endTime})),
ei(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=BT(a,g.Pc(a.segments,function(d){return d.playbackRate}))),ei(a.segments,function(d){return"-"!==d.sm})&&(b.als=g.Pc(a.segments,function(d){return d.sm}).join(",")));
ei(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=BT(a,g.Pc(a.segments,function(d){return d.visibilityState})));
ei(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=BT(a,g.Pc(a.segments,function(d){return d.connectionType})));
ei(a.segments,function(d){return 0!==d.C})&&(b.blo=BT(a,g.Pc(a.segments,function(d){return d.C})));
ei(a.segments,function(d){return"-"!==d.B})&&(b.cc=g.Pc(a.segments,function(d){return d.B}).join(","));
ei(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Pc(a.segments,function(d){return d.clipId}).join(","));
if(ei(a.segments,function(d){return!!d.u})){var c="au";
a.C&&(c="au_d");b[c]=g.Pc(a.segments,function(d){return d.u}).join(",")}bq()&&a.I&&(b.ctt=a.I,b.cttype=a.Z,b.mdx_environment=a.mdxEnvironment);
a.ob&&(b.etype=void 0!==a.K?a.K:0);a.Tn&&(b.uoo=a.Tn);a.zu&&(b.upt=a.zu);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=Tta[a.livingRoomAppMode]||a.livingRoomAppMode);return b};
BT=function(a,b){return g.Pc(b,a.u).join(",")};
DT=function(a){var b=g.kG();b.adSignalsInfo=fq(void 0);var c=a.Ag;c&&(b.clickTracking={clickTrackingParams:c});var d=b.client||{},e="EMBED",f=MF(a);c=a.T();"leanback"===f?e="WATCH":c.ca("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.li?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(!c.ca("innertube_context_enable_forced_experiments_killswitch")&&c.Aa){f=c.Aa.split(",");e=[];f=g.q(f);for(var h=
f.next();!h.done;h=f.next())e.push(Number(h.value));d.experimentIds=e}if(e=c.getPlayerType())d.playerType=e;if(e=c.deviceParams.ctheme)d.theme=e;a.Dq&&(d.unpluggedAppInfo={enableFilterMode:!0});if(e=a.Zd)d.unpluggedLocationInfo=e;b.client=d;d=b.request||{};if(e=a.mdxEnvironment)d.mdxEnvironment=e;b.request=d;d=b.user||{};if(e=a.Wf)d.credentialTransferTokens=[{token:e,scope:"VIDEO"}];if(e=a.mh)d.delegatePurchases={oauthToken:e},d.kidsParent={oauthToken:e};b.user=d;if(d=a.contextParams)b.activePlayers=
[{playerContextParams:d}];if(a=a.clientScreenNonce)b.clientScreenNonce=a;if(a=c.Ga)b.thirdParty={embedUrl:a};return b};
ET=function(a,b,c){var d=a.videoId,e=DT(a),f=a.T(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(zp()),referer:document.location.toString(),signatureTimestamp:18564};a.Cl&&(h.autonav=!0);PF(a)&&(h.autoplay=!0);f.C&&a.cycToken&&(h.cycToken=a.cycToken);a.Pw&&(h.fling=!0);var l=a.Mm;if(l){var m={},n=l.split("|");3===n.length?(m.breakType=Uta[n[0]],m.offset={kind:"OFFSET_MILLISECONDS",value:String(Number(n[1])||0)},m.url=n[2]):m.url=l;h.forceAdParameters={videoAds:[m]}}a.isLivingRoomDeeplink&&
(h.isLivingRoomDeeplink=!0);l=a.Ps;if(null!=l){l={startWalltime:String(l)};if(m=a.fn)l.manifestDuration=String(m||14400);h.liveContext=l}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.lj&&(h.splay=!0);l=a.vnd;5===l&&(h.vnd=l);if((l=a.isMdxPlayback)||g.R(f.experiments,"send_mdx_remote_data_if_present")){l={triggeredByMdx:l};if(n=a.Le)m=n.startsWith("!"),n=n.split("-"),3===n.length?(m&&(n[0]=n[0].substr(1)),m={clientName:Vta[n[0]]||"UNKNOWN_INTERFACE",platform:Wta[n[1]]||"UNKNOWN_PLATFORM",applicationState:m?
"INACTIVE":"ACTIVE",clientVersion:n[2]||""},f.ca("use_remote_context_in_populate_remote_client_info")?l.remoteContexts=[{remoteClient:m}]:l.remoteClients=[m]):(m={clientName:"UNKNOWN_INTERFACE"},f.ca("use_remote_context_in_populate_remote_client_info")?l.remoteContexts=[{remoteClient:m}]:l.remoteClients=[m]);if(m=a.Xi)l.skippableAdsSupported=m.split(",").includes("ska");h.mdxContext=l}l=b.width;0<l&&(h.playerWidthPixels=l);if(b=b.height)h.playerHeightPixels=b;0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=
c.substring(0,128);d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=!0);a.ca("hoffle_save")&&RF(a)&&(d.forOffline=!0);if(a=a.T().embedConfig)d.serializedThirdPartyEmbedConfig=a;return d};
Xta=function(a){var b=a.T();g.Mr.getInstance();var c={context:DT(a),videoId:a.videoId,racyCheckOk:a.racyCheckOk,contentCheckOk:a.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===MF(a)&&(c.isAdPlayback=!0);b.embedConfig&&(c.serializedThirdPartyEmbedConfig=b.embedConfig);b.Df&&(c.showContentOwnerOnly=!0);g.Or(0,141)&&(c.autonavState=g.Or(0,140)?"STATE_OFF":"STATE_ON");return c};
Zta=function(a,b,c,d){var e=window.location.search;if(38===b.Fg&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.Ld("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.pM});if(30===b.Fg&&"docs"===a.playerStyle)return g.Ld("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.kd,authkey:b.authKey,eurl:a.Ga});if(33===b.Fg&&"google-live"===a.playerStyle)return g.Ld("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.X&&g.kr(Error("getVideoInfoUrl for invalid namespace: "+a.X));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Ga,ps:a.playerStyle,el:MF(b),hl:a.pe,list:b.playlistId,agcid:b.jA,aqi:b.adQueryId,sts:18564,lact:zp()};g.Xa(f,a.deviceParams);a.Aa&&(f.forced_experiments=a.Aa);b.Wf?(f.vvt=b.Wf,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):b.lf()&&(f.access_token=b.lf());b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&&
(f.break_type=b.breakType);null!==b.Yu&&(f.ad_id=b.Yu);null!==b.dv&&(f.ad_sys=b.dv);null!==b.Qv&&(f.encoded_ad_playback_context=b.Qv);b.Hy&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.Si&&2!==a.Si&&(f.cc_load_policy=a.Si);a.mute&&(f.mute=a.mute);b.annotationsLoadPolicy&&2!==a.annotationsLoadPolicy&&(f.iv_load_policy=b.annotationsLoadPolicy);b.Br&&(f.endscreen_ad_tracking=b.Br);var h=a.K.get(b.videoId);h&&h.Bq&&(f.ic_track=h.Bq);b.Ag&&(f.itct=b.Ag);PF(b)&&
(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.Cl&&(f.autonav="1");b.Tw&&(f.noiba="1");g.R(a.experiments,"send_mdx_remote_data_if_present")?(b.isMdxPlayback&&(f.mdx="1"),b.Le&&(f.ytr=b.Le)):b.isMdxPlayback&&(f.mdx="1",f.ytr=b.Le);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.Xi&&(f.ytrcc=b.Xi);b.Zw&&(f.utpsa="1");b.Pw&&(f.is_fling="1");b.Rw&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);b.Mm&&(h=3===b.Mm.split("|").length,f.force_ad_params=h?b.Mm:"||"+b.Mm);b.Fn&&(f.preload=
b.Fn);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.lj&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");NF(b)&&(f.content_v=NF(b));b.li&&(f.livemonitor=1);a.kd&&(f.authuser=a.kd);a.pageId&&(f.pageid=a.pageId);a.yb&&(f.ei=a.yb);a.B&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.C&&b.Ps&&(f.live_start_walltime=b.Ps);a.C&&b.fn&&(f.live_manifest_duration=b.fn);a.C&&b.playerParams&&(f.player_params=b.playerParams);a.C&&b.cycToken&&(f.cyc=b.cycToken);a.C&&b.Ky&&
(f.tkn=b.Ky);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.mh&&(f.kpt=b.mh);b.Ms&&(f.kids_age_up_mode=b.Ms);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.Dq&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.Zd?(h=null!=b.Zd.latitudeE7&&null!=b.Zd.longitudeE7?b.Zd.latitudeE7+","+b.Zd.longitudeE7:",",h+=","+(b.Zd.clientPermissionState||0)+","+(b.Zd.locationRadiusMeters||"")+","+(b.Zd.locationOverrideToken||"")):h=null;h&&
(f.uloc=h);b.hp&&(f.internalipoverride=b.hp);a.embedConfig&&(f.embed_config=a.embedConfig);a.Df&&(f.co_rel="1");0<a.Qe.length&&(f.ancestor_origins=Array.from(a.Qe).join(","));void 0!==a.homeGroupInfo&&(f.home_group_info=a.homeGroupInfo);void 0!==a.livingRoomAppMode&&(f.living_room_app_mode=a.livingRoomAppMode);a.enablePrivacyFilter&&(f.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(f.is_living_room_deeplink="1");b.lr&&b.mr&&(f.clip=b.lr,f.clipt=b.mr);b.vr&&(f.disable_watch_next="1");a.ca("web_player_gvi_wexit_diff")&&
(f.player_request=JSON.stringify(ET(b,c,d)));a.ca("html5_onesie_watch_next_diff")&&(f.watch_next_request=JSON.stringify(Xta(b)));for(var l in f)!Yta.has(l)&&f[l]&&512<String(f[l]).length&&(g.lr(Error("GVI param too long: "+l)),f[l]="");b=a.N;g.aC(a)&&(b=dv(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.N);a=g.Ld(b+"get_video_info",f);e&&(a=lq(a,e));return a};
g.FT=function(a,b){return a.N+"timedtext_video?ref=player&v="+b.videoId};
g.GT=function(a,b){a.feature=b;return a};
$ta=function(a){var b={};a.DF&&(b.ytrext=a.DF);return g.Wb(b)?void 0:b};
HT=function(a){g.B.call(this);this.provider=a;this.currentPlayerState="paused";this.B=NaN;this.K=[10,10,10,40];this.P=this.N=0;this.ba=this.Z=this.da=this.ea=this.X=this.W=this.C=!1;this.D=NaN;this.F=this.I=void 0;this.u=new yT(a)};
cua=function(a){if(!a.C){g.R(a.provider.u.experiments,"disable_embedpage_playback_logging")||16623!==a.provider.videoData.iu||g.Eo(Error("Playback for EmbedPage"));var b=IT(a,"playback");a.K=[10+a.provider.videoData.Xm,10,10,40+a.provider.videoData.pp-a.provider.videoData.Xm,40];Qta(a.u);b.B=JT(a,!0);b.send();if(a.provider.videoData.St){b=a.provider.u;var c=a.provider.videoData;c={html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,ei:c.eventId,ptk:c.St,oid:c.SE,ptchn:c.RE,pltype:c.TE,content_v:NF(c)};
b=g.Ld(b.N+"ptracking",c);KT(a,b)}a.provider.videoData.Go&&(LT(a,"playback"),a.D||aua(a));a.provider.videoData.Wg||bua(a);a.C=!0;a=a.u;a.u=a.provider.B();a.lastUpdateTime=g.mT(a.provider);!(0===a.B&&5>a.u)&&2<a.u-a.B&&(a.B=a.u);a.K=!0}};
JT=function(a,b,c){c=void 0===c?NaN:c;var d=g.mT(a.provider);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.K[a.N];a.N+1<a.K.length&&a.N++;var f=c+e;a.B=g.Fo(function(){if(!a.la()){a.B=NaN;a.u.update();var h=Ota(a.u),l=dua(a,h);b&&(l.F=f);var m=a.provider.ca("html5_expanded_max_vss_pings")?1E3:400;m=a.P>m;!(1<h.length)&&h[0].isEmpty()||m||(l.B=JT(a,!0,f));l.send();a.P++}},1E3*(f-d));
return f};
IT=function(a,b){var c=a.provider,d=c.xe();g.Xa(d,c.videoData.xe());g.Xa(d,{state:a.currentPlayerState});c=new zT(a.provider.videoData,a.provider.u,b,d);c.Wj=a.provider.B();a.provider.videoData.isLivePlayback||(c.ra=a.provider.F());a.provider.videoData.ma&&(d=a.provider.videoData.ma.ue(c.Wj))&&(c.ka=d-c.Wj);c.Rb=g.mT(a.provider);c.segments=[xT(a.provider)];a.provider.videoData.enableServerStitchedDai&&a.F&&a.I&&(c.clientPlaybackNonce=a.F,c.videoId=a.I);return c};
dua=function(a,b){var c=IT(a,"watchtime");c.segments=b;c.Wj=a.u.u;return c};
MT=function(a){a.u.update();return dua(a,Ota(a.u))};
bua=function(a){a.provider.videoData.remarketingUrl&&!a.ea&&(KT(a,a.provider.videoData.remarketingUrl),a.ea=!0);a.provider.videoData.youtubeRemarketingUrl&&!a.da&&(KT(a,a.provider.videoData.youtubeRemarketingUrl),a.da=!0);a.provider.videoData.googleRemarketingUrl&&!a.Z&&(KT(a,a.provider.videoData.googleRemarketingUrl),a.Z=!0);a.provider.videoData.ppvRemarketingUrl&&!a.ba&&(KT(a,a.provider.videoData.ppvRemarketingUrl),a.ba=!0);eua(a)};
fua=function(a){if(!a.la()&&a.C){a.currentPlayerState="paused";var b=MT(a);b.isFinal=!0;b.send();g.Ho(a.D);a.dispose()}};
aua=function(a){a.D=Go(function(){LT(a,"heartbeat")},3E4)};
LT=function(a,b){var c=a.provider.u,d=a.provider.videoData,e={ns:c.X,el:MF(d),eurl:c.Ga,fmt:d.La?wu(d.La):0,html5:1,list:d.playlistId,cpn:d.clientPlaybackNonce,ei:d.eventId,ps:c.playerStyle,noflv:1,st:a.provider.B(),video_id:d.videoId,metric:b};PF(d)&&(e.autoplay="1");"heartbeat"===b&&(e.tpmt=Nta(a.u));g.Xa(e,c.deviceParams);KT(a,g.Ld(g.R(c.experiments,"cardio_base_url_killswitch")?(c.u?c.protocol+"://www.youtube.com/":c.N)+"live_204":c.N+"live_204",e))};
gua=function(a,b,c){a.W||(c||(c=IT(a,"atr")),c.W=b,c.send(),a.W=!0)};
eua=function(a){a.provider.videoData.Rc.eventLabel=MF(a.provider.videoData);a.provider.videoData.Rc.playerStyle=a.provider.u.playerStyle;a.provider.videoData.In&&(a.provider.videoData.Rc.feature="pyv");a.provider.videoData.Rc.vid=a.provider.videoData.videoId;var b=a.provider.videoData.Rc;a=a.provider.videoData;a=a.isAd()||!!a.In;b.isAd=a};
iua=function(a){var b=IT(a,"engage");b.K=1;a=hua(a.provider);return g.Wa(Sta,b.uri,CT(b),AT(b),a,b.N,b.P)};
KT=function(a,b){var c=a.provider.videoData.lf(),d=a.provider.ca("web_player_vss_pageid_header")?a.provider.u.pageId:void 0,e=a.provider.u.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,f=g.R(a.provider.u.experiments,"vss_pings_using_networkless"),h=g.R(a.provider.u.experiments,"vss_send_then_write");c=nT(b,d,e,c,void 0);oT(b,c,{token:a.provider.videoData.Nh,Oy:a.provider.videoData.qg,mdxEnvironment:a.provider.videoData.mdxEnvironment},void 0,f,h)};
NT=function(a){g.B.call(this);var b=this;this.provider=a;this.B=this.qoe=this.u=null;this.currentVideoId=void 0;this.C=new Map;this.provider.videoData.isValid()&&!this.provider.videoData.Qn&&(this.u=new HT(this.provider),g.C(this,this.u),this.qoe=new qT(this.provider),g.C(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.currentVideoId=this.provider.videoData.videoId)&&this.C.set(this.currentVideoId,this.u));Fta(this.provider)&&(this.B=new lT(this.provider,function(c){b.qoe&&rT(b.qoe,
"h5h",c,void 0)}),g.C(this,this.B))};
g.OT=function(a){a.provider.videoData.enableServerStitchedDai?a.C.get(a.currentVideoId).Gm():a.u&&a.u.Gm()};
jua=function(a,b,c,d){a.qoe&&(a=a.qoe,g.pT(a,g.mT(a.provider),"ad_playback",[b,c,d]))};
kua=function(a,b){a.u&&gua(a.u,b)};
lua=function(a){if(!a.u)return null;var b=IT(a.u,"atr");return function(c){a.u&&gua(a.u,c,b)}};
Cqa=function(a){return a.u?iua(a.u):function(){}};
PT=function(a,b){this.C=a;this.timerName="";this.B=!1;this.u=b||null;this.B=!1};
mua=function(a){a=a.timerName;BA("yt_sts","p",a);CA("_start",void 0,a)};
nua=function(a,b,c){var d=g.RB(b.Oa)&&b.Oa.Ff&&OF(b);if(b.Oa.Cf&&(NB(b.Oa)||g.vC(b.Oa)||d)&&!a.B){a.B=!0;g.L("TIMING_ACTION")||ro("TIMING_ACTION",a.C.csiPageType);a.C.csiServiceName&&ro("CSI_SERVICE_NAME",a.C.csiServiceName);if(a.u){b=a.u.B;d=g.q(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,CA(e,b[e],a.timerName);b=a.u.u;d=g.q(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,BA(e,b[e],a.timerName);b=a.u;b.B={};b.u={}}BA("yt_pvis",bha(),a.timerName);BA("yt_pt","html5",
a.timerName);c&&!JA("pbs",a.timerName)&&a.tick("pbs",c);c=a.C;!g.vC(c)&&!NB(c)&&JA("_start",a.timerName)&&NA(a.timerName)}};
oua=function(){this.endTime=this.startTime=-1;this.B="-";this.playbackRate=1;this.visibilityState=0;this.u="";this.volume=this.connectionType=this.C=0;this.muted=!1;this.sm=this.clipId="-"};
pua=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w){this.videoData=a;this.u=b;this.C=void 0;this.xe=c;this.F=d;this.B=e;this.D=f;this.P=h;this.getAudioTrack=l;this.getPlaybackRate=m;this.I=n;this.getVisibilityState=p;this.K=r||function(){};
this.W=t||function(){};
this.N=w||function(){return-1}};
g.mT=function(a){return hua(a)()};
hua=function(a){if(!a.C){var b=g.Wa(function(d){var e=(0,g.N)();d&&631152E6>=e&&(g.M(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},g.R(a.u.experiments,"html5_validate_yt_now")),c=b();
a.C=function(){return Math.round(b()-c)/1E3};
a.W()}return a.C};
Gta=function(a){if(navigator.connection&&navigator.connection.type)return qua[navigator.connection.type]||qua.other;if(g.$B(a.u)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
xT=function(a){var b=new oua;b.B=a.xe().cc||"-";b.playbackRate=a.getPlaybackRate();var c=a.getVisibilityState();0!==c&&(b.visibilityState=c);a.u.xc&&(b.C=1);c=a.getAudioTrack();c.u&&c.u.id&&"und"!==c.u.id&&(b.u=c.u.id);b.connectionType=Gta(a);b.volume=a.xe().volume;b.muted=a.xe().muted;b.clipId=a.xe().clipid||"-";b.sm=a.videoData.sm||"-";return b};
rua=function(){this.B=this.mediaTime=NaN;this.u=this.seeking=!1};
QT=function(a,b){return b>a.mediaTime+.001&&b<a.mediaTime+5};
RT=function(a,b,c,d){if(d=1<d)a.u=!0;if(a.seeking)b!==a.mediaTime&&(a.seeking=!1);else if(0<b&&a.mediaTime===b)return c-a.B>(d||!a.u?1500:400);a.mediaTime=b;a.B=c;return!1};
sua=function(a,b){this.videoData=a;this.Ia=b};
uua=function(a,b,c){return b.Zq(c).then(function(){if(tua(a,b))for(;;)void 0;else return Cr(new sua(b,b.Ia))},function(d){d instanceof Error&&g.Eo(d);
d=b.isLivePlayback&&!g.yB(a.D,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.If,drm:""+ +uF(b),f18:""+ +(0<=b.Eq.indexOf("itag=18")),c18:""+ +cB('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.ma&&(uF(b)?(e.f142=""+ +!!b.ma.u["142"],e.f149=""+ +!!b.ma.u["149"],e.f279=""+ +!!b.ma.u["279"]):(e.f133=""+ +!!b.ma.u["133"],e.f140=""+ +!!b.ma.u["140"],e.f242=""+ +!!b.ma.u["242"]),e.cAVC=""+ +dB('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +dB('audio/mp4; codecs="mp4a.40.2"'),
e.cVP9=""+ +dB('video/webm; codecs="vp9"'));if(b.Vc){e.drmsys=b.Vc.u;var f=0;b.Vc.B&&(f=Object.keys(b.Vc.B).length);e.drmst=""+f}return new TA(d,!0,e)})};
tua=function(a,b){return a.ca("disable_init_range_auth")?!1:b.ma?!!Vb(b.ma.u,function(c){var d;return 2097152<(null===(d=c.initRange)||void 0===d?void 0:d.length)}):!1};
wua=function(a,b,c){g.P.call(this);this.videoData=a;this.experiments=b;this.N=c;this.B=[];this.D=0;this.C=!0;this.I=!1;this.K=0;c=new vua;"ULTRALOW"===a.latencyClass&&(c.D=!1);a.li?c.B=3:g.GF(a)&&(c.B=2);g.R(b,"html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.I=!0);var d=pF(a);c.F=2===d||-1===d;c.F&&(c.W++,21530001===nF(a)&&(c.K=g.Q(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Xj("trident/")||Xj("edge/"))d=g.Q(b,"html5_platform_minimum_readahead_seconds")||3,c.C=Math.max(c.C,
d);g.Q(b,"html5_minimum_readahead_seconds")&&(c.C=g.Q(b,"html5_minimum_readahead_seconds"));g.Q(b,"html5_maximum_readahead_seconds")&&(c.N=g.Q(b,"html5_maximum_readahead_seconds"));g.R(b,"html5_force_adaptive_readahead")&&(c.D=!0);g.Q(b,"html5_allowable_liveness_drift_chunks")&&(c.u=g.Q(b,"html5_allowable_liveness_drift_chunks"));g.Q(b,"html5_readahead_ratelimit")&&(c.P=g.Q(b,"html5_readahead_ratelimit"));switch(nF(a)){case 21530001:c.u=(c.u+1)/5,"LOW"===a.latencyClass&&(c.u*=2),c.X=g.R(b,"html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.F=1!==this.policy.B;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.li&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(nF(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.F&&b++;this.u=ST(this,b)};
xua=function(a,b){var c=a.u;(void 0===b?0:b)&&a.policy.X&&3===pF(a.videoData)&&--c;return TT(a)*c};
VT=function(a,b){var c=UT(a);var d=a.policy.u;a.I||(d=Math.max(d-1,0));d*=TT(a);return b>=c-d};
UT=function(a){return Math.max(a.N()-xua(a,!0),a.videoData.uc())};
yua=function(a,b,c){b=VT(a,b);c||b?b&&(a.C=!0):a.C=!1;a.F=2===a.policy.B||3===a.policy.B&&a.C};
zua=function(a,b){var c=VT(a,b);a.I!==c&&a.V("livestatusshift",c);a.I=c};
TT=function(a){return a.videoData.ma?Yz(a.videoData.ma)||5:5};
ST=function(a,b){b=Math.max(Math.max(a.policy.W,Math.ceil(a.policy.C/TT(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.N/TT(a))),b)};
vua=function(){this.W=1;this.C=0;this.N=Infinity;this.P=0;this.D=!0;this.u=2;this.B=1;this.F=!1;this.K=NaN;this.X=this.I=!1};
ZT=function(a,b,c,d){g.B.call(this);this.F=a;this.V=b;this.visibility=c;this.Z=d;this.C=this.D=null;this.u=0;this.K={};this.playerState=new g.bL;this.I=new g.H(this.B,1E3,this);g.C(this,this.I);this.da=new WT({delayMs:g.Q(this.F.experiments,"html5_seek_timeout_delay_ms")});this.X=new WT({delayMs:g.Q(this.F.experiments,"html5_long_rebuffer_threshold_ms")});this.ha=XT(this,"html5_seek_set_cmt");this.ba=XT(this,"html5_seek_jiggle_cmt");this.ea=XT(this,"html5_seek_new_elem");XT(this,"html5_decoder_freeze_timeout");
this.ka=XT(this,"html5_unreported_seek_reseek");this.P=XT(this,"html5_long_rebuffer_jiggle_cmt");this.W=XT(this,"html5_reload_element_long_rebuffer");this.N=XT(this,"html5_ads_preroll_lock_timeout")};
XT=function(a,b){var c=g.Q(a.F.experiments,b+"_delay_ms"),d=g.R(a.F.experiments,b+"_cfl");return new WT({delayMs:c,tr:d})};
$T=function(a,b,c,d,e,f,h){Aua(b,c)?(d=a.jb(b),d.wn=h,d.wdup=a.K[e]?"1":"0",a.V("qoeerror",e,d),a.K[e]=!0,b.tr||f()):(b.eu&&b.B&&!b.D?(f=(0,g.N)(),d?b.u||(b.u=f):b.u=0,c=!d&&f-b.B>b.eu,f=b.u&&f-b.u>b.iy||c?b.D=!0:!1):f=!1,f&&(f=a.jb(b),f.wn=h,f.we=e,f.wsuc=""+ +d,h=g.UA(f),a.V("ctmp","workaroundReport",h),d&&(b.reset(),a.K[e]=!1)))};
WT=function(a){a=void 0===a?{}:a;var b=void 0===a.iy?1E3:a.iy,c=void 0===a.eu?3E4:a.eu,d=void 0===a.tr?!1:a.tr;this.F=Math.ceil((void 0===a.delayMs?0:a.delayMs)/1E3);this.iy=b;this.eu=c;this.tr=d;this.u=this.B=this.C=this.startTimestamp=0;this.D=!1};
Aua=function(a,b){if(!a.F||a.B)return!1;if(!b)return a.reset(),!1;var c=(0,g.N)();if(!a.startTimestamp)a.startTimestamp=c,a.C=0;else if(a.C>=a.F)return a.B=c,!0;a.C+=1;return!1};
bU=function(a,b,c,d){g.P.call(this);var e=this;this.videoData=a;this.X=b;this.visibility=c;this.Za=d;this.policy=new Bua(this.X);this.P=new ZT(this.X,(0,g.z)(this.V,this),this.visibility,this.Za);a={};this.ha=(a.seekplayerrequired=this.IQ,a.videoformatchange=this.SN,a);this.playbackData=null;this.Ga=new g.Wr;this.W=this.B=this.F=this.u=null;this.C=NaN;this.K=0;this.I=null;this.ka=NaN;this.N=this.Z=null;this.za=this.ba=!1;this.da=new g.H(function(){Cua(e,!1)},this.policy.u);
this.ob=new g.H(function(){aU(e)});
this.Aa=new g.H(function(){e.ba=!0;Dua(e)});
this.Na=this.D=0;this.ra=!0;this.Ja=0;this.Qa=NaN;this.ea=new g.H(function(){var f=e.X.Ub;f.C+=1E4/36E5;f.C-f.F>1/6&&(YA(f),f.F=f.C);e.ea.start()},1E4);
this.ca("html5_unrewrite_timestamps")?this.ha.timestamp=this.Nn:this.ha.timestamp=this.iL;g.C(this,this.Ga);g.C(this,this.da);g.C(this,this.Aa);g.C(this,this.ob);g.C(this,this.ea)};
Eua=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.W=new rla(function(){a:{if(a.playbackData&&a.playbackData.Ia.wc()){if(mF(a.videoData)&&a.F){var c=a.F.ob.u()||0;break a}if(a.videoData.ma){c=a.videoData.ma.N;break a}}c=0}return c}),a.B=new wua(a.videoData,a.X.experiments,function(){return a.Ad(!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.K=a.K||a.videoData.startSeconds||0)};
dU=function(a,b){g.Yr(a.Ga);(a.u=b)?(Fua(a),aU(a)):cU(a);var c=a.P;(c.D=b)&&c.I.xb()};
fU=function(a,b){a.F&&$r(a.F,a.ha,a);(a.F=b)?(Zr(b,a.ha,a),eU(a,!0)):cU(a);a.P.C=b};
gU=function(a){return a.getCurrentTime()-a.lc()};
hU=function(a){return a.B?UT(a.B):Infinity};
iU=function(a){return!!a.B&&a.B.F};
Cua=function(a,b){if(a.B){var c=a.B;var d=a.getCurrentTime();!VT(c,d)&&c.F?(c.policy.I&&(c.policy.u=Math.max(c.policy.u+1,10)),c=Infinity):c=d<c.videoData.uc()?Math.min(c.videoData.uc()+10,UT(c)):NaN;if(!isNaN(c)){if(a.ca("html5_in_buffer_ptl")&&a.F&&b){d=a.da.isActive();var e=UT(a.B);if((e=Ola(a.F,e-a.lc()))&&!d){a.policy.u&&a.da.start();a.V("ctmp","inBufferPtl","cmt."+a.getCurrentTime()+";seekTo"+(e+a.lc()));a.seekTo(e+a.lc());return}}a.ca("html5_peg_to_live_logging")&&a.V("ctmp","ptl","cmt."+a.getCurrentTime()+
";seekTo"+(c+a.lc()));a.seekTo(c)}}};
eU=function(a,b){if(a.B&&a.F){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(c=a.B,c.B.length){var d=c.u;b:{if(c.B.length){if(1<Math.min.apply(null,c.B)){var e=ST(c,c.u-1);break b}if(c.policy.D){e=ST(c,c.u+1);break b}}e=c.u}c.u=e;if(d=d!==c.u)c.B=[],c.D=0;c=d}else c=!1;c&&a.V("livereadaheadchanged",xua(a.B));c=a.F;d=a.B.u;e=a.B;e=(e.u-1+e.policy.u)*TT(e);var f=a.B.policy.K;c.Rb=Math.max(d-1,0);c.P&&(c.P.ba=
e);c.td=f}};
jU=function(a){return a.videoData.isLivePlayback&&!!a.videoData.Ia&&!a.videoData.Ia.wc()};
Dua=function(a){Gua(a).then(void 0,function(){cU(a)});
Hua(a).then(function(b){a.N&&(a.N.resolve(b),a.V("seekend"));cU(a)},function(){cU(a)});
a.V("seekstart")};
Gua=function(a){if(!a.Z)if(a.F)if(isFinite(a.C))a.Z=a.F.seek(a.C-a.D);else{var b=a.F;RD(b);b.P&&nD(b.P,b.B.u);b.ra.xb();b=b.N;var c=Math.max(b.B.C.I||0,b.u.C.I||0);By(b.B);By(b.u);var d=b.F,e;for(e in d.u)pz(d.u[e].index,Infinity);b.F.isManifestless&&(b.K=!0);b.V("setcurrenttime",c);b.C=!0;b.N=new dw;a.Z=b.N;a.C=a.F.getCurrentTime()+a.D}else a.Z=Dm(a.C-a.D);return a.Z};
Hua=function(a){var b=a.I;b||(a.I=new dw,b=a.I,aU(a));return b};
Iua=function(a,b,c){return isNaN(b)?NaN:g.be(b,a.uc(),a.Ad(c))};
aU=function(a){if(a.I)if(!a.ca("html5_nondash_live_seek_killswitch")&&jU(a)&&a.u&&0<a.u.jg()&&0<yS(a.u)&&(a.C=Iua(a,a.C,!1)),!a.u||!Jua(a))a.ob.start(750);else if(!isNaN(a.C)&&isFinite(a.C)&&a.ka!==a.C-a.D){var b=a.u.getCurrentTime()-a.C;if(Math.abs(b)<=a.Ja)a.I&&a.I.resolve(a.u.getCurrentTime());else if(!a.videoData.isLivePlayback&&a.C>=a.Ad()-.1)a.C=a.Ad(),a.I.resolve(a.Ad()),a.V("ended");else try{var c=a.C-a.D;a.u.seekTo(c);a.P.u=c;a.ka=c;a.K=a.C}catch(d){}}};
Jua=function(a){if(!a.u||0===a.u.jg()||0<a.u.qh())return!1;var b=0<a.u.getCurrentTime();if(!a.ca("html5_nondash_mediaelementready_killswitch")&&!a.wc()&&!a.videoData.isLivePlayback&&uF(a.videoData))return b;if(0<=a.C){var c=a.u.To();if(c.length||!b)return iy(c,a.C-a.D)}return b};
cU=function(a){a.C=NaN;a.ka=NaN;a.I=null;a.Z=null;a.N=null;a.ba=!1;a.za=!1;a.Ja=0;a.da.stop();a.Aa.stop()};
Fua=function(a){if(a.u){for(var b=g.q(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Ga.R(a.u,c.value,function(d){var e=a.u;switch(d.type){case "seeking":d=e.getCurrentTime()+a.D;if(!a.I||a.za&&d!==a.C)a.I=new dw,a.ka=d,e=e.getCurrentTime(),a.P.u=e,a.seekTo(d),a.za=!0;break;case "seeked":a.I&&a.I.resolve(a.u.getCurrentTime());break;case "loadedmetadata":a.ra?(e="ss.",d=0,(HF(a.videoData)||a.videoData.liveUtcStartSeconds)&&(a.videoData.liveUtcStartSeconds||a.videoData.startSeconds&&
isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds)&&a.videoData.ma?(d=a.videoData.liveUtcStartSeconds||a.videoData.lk,e="utc.",d=a.Ad()-a.ue(a.Ad())+d):a.videoData.ma&&a.videoData.ma.isManifestless&&a.videoData.lk?(e="mss.",d=a.videoData.lk+a.lc()):a.ca("html5_unrewrite_timestamps")&&a.videoData.pu&&(e="stss.",d=a.videoData.pu),d?(a.seekTo(d),a.V("ctmp","startSeconds",e+String(d)),a.ra=!1):a.videoData.lk&&a.V("ctmp","startSeconds",""+e+(a.videoData.lk+a.lc())),e=!!d):e=!1;a.ca("html5_nondash_live_seek_killswitch")&&
!e&&jU(a)&&(a.C=isFinite(a.C)?g.be(a.C,a.uc(),a.Ad()):a.Ad());aU(a);break;case "progress":aU(a)}});
a.N||a.K||a.policy.C||!a.u.fu()||a.seekTo(.01)}};
Kua=function(a){if(!a.u)return 0;if(HF(a.videoData)){var b=Ura(a.u)+a.D-a.uc();a=a.Ad()-a.uc();return Math.max(0,Math.min(1,b/a))}return AS(a.u)};
Bua=function(a){this.u=g.Q(a.experiments,"html5_in_buffer_ptl_timeout_ms");this.B=g.R(a.experiments,"html5_live_smoothly_extend_max_seekable_time");this.D=a.ca("html5_seek_over_discontinuities");this.C=a.ca("html5_requires_seek_for_playback_at_zero_killswitch")};
Lua=function(){var a=Wo();return!(!a||"visible"===a)};
Nua=function(a){var b=Mua();b&&document.addEventListener(b,a,!1)};
Oua=function(a){var b=Mua();b&&document.removeEventListener(b,a,!1)};
Mua=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Vo+"VisibilityState"])return"";a=Vo+"visibilitychange"}return a};
kU=function(){g.P.call(this);var a=this;this.fullscreen=0;this.C=this.pictureInPicture=this.B=this.u=this.inline=!1;this.D=function(){a.Eg()};
Nua(this.D);this.F=this.getVisibilityState(this.B,this.isFullscreen(),this.u,this.isInline(),this.pictureInPicture,this.C)};
lU=function(){g.B.call(this);this.C={};this.u={};this.B=new g.H(this.D,250,this);g.C(this,this.B)};
nU=function(a,b,c,d){a.C[b]=c;a.u[b]=new mU(void 0===d?!1:d)};
oU=function(a,b){if(a.u[b]){var c=a.u[b].buffer;for(var d=[];c.B!==c.u;)c.B=(c.B+1)%c.data.length,d.push(c.data[c.B]);c=d}else c=[];return c};
pU=function(a,b){return a.u[b]?kD(a.u[b].buffer):0};
mU=function(a){this.B=a;this.u=NaN;this.buffer=new jD(100)};
Pua=function(a){a=$p(a,{key:g.L("INNERTUBE_API_KEY")});var b=g.L("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Ad(a)));return a};
Qua=function(a){return{method:"POST",mode:aq(a)?"same-origin":"cors",credentials:aq(a)?"same-origin":"include"}};
qU=function(a,b,c,d,e){this.u=a;this.D=b;this.C=c;this.handleError=d;this.B=e};
tU=function(a,b,c){var d=void 0===d?rU:d;a:{var e,f;if((null===(e=b.signalServiceEndpoint)||void 0===e?0:e.signal)&&a.u.Dy&&(e=a.u.Dy[b.signalServiceEndpoint.signal])){var h=new e;break a}if((null===(f=b.continuationCommand)||void 0===f?0:f.request)&&a.u.Iv&&(f=a.u.Iv[b.continuationCommand.request])){h=new f;break a}for(h in b)if(a.u.rr[h]&&(f=a.u.rr[h])){h=new f;break a}h=void 0}if(!h)return a.handleError(new Iq("Error: No request builder found for command.",b)),Dm({});var l;f=c;f=void 0===f?{}:
f;d=void 0===d?rU:d;c={context:g.kG(b.clickTrackingParams)};if(e=h.C(b)){h.u(c,e,f);var m;h=g.sU(h.B());(f=null===(m=null===(l=b.commandMetadata)||void 0===l?void 0:l.webCommandMetadata)||void 0===m?void 0:m.apiUrl)&&(h=f);l=Pua(h);l={input:l,Kn:Qua(l),Mw:c,config:Object.assign({},void 0)};l.config.oo?l.config.oo.identity=d:l.config.oo={identity:d}}else g.kr(new Iq("Error: Failed to create Request from Command.",b)),l=void 0;if(l)return Dm(Rua(a,l));a.handleError(new Iq("Error: Failed to build request for command.",
b));return Dm({})};
g.sG=function(a,b,c){var d=void 0===d?rU:d;var e=void 0===e?!0:e;b.context||(b.context=g.kG(void 0,e));c=Pua(c);b={input:c,Kn:Qua(c),Mw:b,config:{oo:{identity:d}}};return Dm(Rua(a,b))};
Rua=function(a,b){return g.Ue(a,function d(){var e=this,f,h,l,m,n;return g.Aa(d,function(p){if(1==p.u)return f=e,h=JSON.stringify(b.Mw),e.C.u?(l=Sua(b),p.Jd(2)):g.ra(p,Tua(b),3);2!=p.u&&(l=p.B);b.Kn=Object.assign(Object.assign({},b.Kn),{headers:l});g.uo("enable_get_account_switcher_endpoint_on_webfe")?(m=Object.assign({},b.Kn),"POST"===b.Kn.method&&(m=Object.assign(Object.assign({},m),{body:h}))):m=Object.assign(Object.assign({},b.Kn),{body:h});n=e.D.fetch(b.input,m);return p["return"](n.then(function(r){if(r&&
f.B)for(var t=g.q(f.B),w=t.next();!w.done;w=t.next())w.value.B(r,b.Mw);return Promise.resolve(r)}))})})};
Uua=function(a,b){var c,d;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.u.Dy)return-1<wo("web_op_signal_type_banlist").indexOf(b.signalServiceEndpoint.signal)?!1:!!a.u.Dy[b.signalServiceEndpoint.signal];if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.u.Iv)return-1<wo("web_op_continuation_type_banlist").indexOf(b.continuationCommand.request)?!1:!!a.u.Iv[b.continuationCommand.request];for(var e in b)if(a.u.rr[e]){if(-1<wo("web_op_endpoint_banlist").indexOf(e))break;
return!0}return!1};
Tua=function(a){var b,c;a=null===(c=null===(b=a.config)||void 0===b?void 0:b.oo)||void 0===c?void 0:c.sessionIndex;return Dm(Bq(0,{sessionIndex:a})).then(function(d){return Promise.resolve(Object.assign(Object.assign({},Vua()),d))})};
Sua=function(a){var b,c;a=null===(c=null===(b=a.config)||void 0===b?void 0:b.oo)||void 0===c?void 0:c.sessionIndex;a=Bq(0,{sessionIndex:a});return Object.assign(Object.assign({},Vua()),a)};
Vua=function(){return{"Content-Type":"application/json","X-Goog-Visitor-Id":g.L("VISITOR_DATA")}};
Xua=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=Wua[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(Wua).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.sU=function(a){return"/youtubei/v1/"+Xua(a)};
uU=function(){};
vU=function(){};
wU=function(){};
xU=function(){};
yU=function(){};
zU=function(){};
Yua=function(){zU.u||(zU.u=new zU);return zU.u};
Zua=function(a){var b;g.uo("enable_get_account_switcher_endpoint_on_webfe")?b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))}):b=a.json();
a.redirected||a.ok||b.then(function(c){g.lr(new Iq("Error: API fetch failed",a.status,a.url,c))});
return b};
g.BU=function(){if(!AU){var a={rr:{playlistEditEndpoint:yU,subscribeEndpoint:vU,unsubscribeEndpoint:wU,modifyChannelNotificationPreferenceEndpoint:xU}},b=g.uo("web_enable_client_location_service")?iG():void 0,c=[];b&&c.push(b);b=Yua();var d=Aq();qU.u=new qU(a,b,d,Kea,c);AU=qU.u}return AU};
CU=function(a){this.F=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.I=new Uint8Array(64);this.B=0;this.F.set(a);this.C.set(a);for(a=0;64>a;a++)this.F[a]^=92,this.C[a]^=54;this.reset()};
ava=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.u[0];c=a.u[1];e=a.u[2];for(var f=a.u[3],h=a.u[4],l=a.u[5],m=a.u[6],n=a.u[7],p,r,t=0;64>t;t++)p=n+$ua[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.u[0]=b+a.u[0]|0;a.u[1]=c+a.u[1]|0;a.u[2]=e+a.u[2]|0;a.u[3]=f+a.u[3]|0;a.u[4]=h+a.u[4]|0;a.u[5]=l+a.u[5]|0;a.u[6]=m+a.u[6]|0;a.u[7]=n+a.u[7]|0};
cva=function(a){var b=new Uint8Array(32),c=64-a.B;55<a.B&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.D,f=1;9>f;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.u[c]>>>24,b[4*c+1]=a.u[c]>>>16&255,b[4*c+2]=a.u[c]>>>8&255,b[4*c+3]=a.u[c]&255;bva(a);return b};
bva=function(a){a.u=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.D=0;a.B=0};
dva=function(a,b,c){return g.Ue(this,function e(){var f,h,l,m,n,p,r,t;return g.Aa(e,function(w){switch(w.u){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){w.Jd(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);sa(w,3);return g.ra(w,h.importKey("raw",a,l,!1,m),5);case 5:return p=w.B,g.ra(w,h.sign(l,p,n),6);case 6:r=w.B;f=new Uint8Array(r);ta(w,2);break;case 3:ua(w);case 2:if(!f){t=
new CU(a);t.update(b);t.update(c);var x=cva(t);t.update(t.F);t.update(x);x=cva(t);t.reset();f=x}return w["return"](f)}})})};
fva=function(a,b,c){return g.Ue(this,function e(){var f,h,l,m,n,p;return g.Aa(e,function(r){switch(r.u){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){r.Jd(2);break}h=window.crypto.subtle;l={name:"AES-CTR",counter:c,length:128};sa(r,3);return g.ra(r,eva(a),5);case 5:return m=r.B,g.ra(r,h.encrypt(l,m,b),6);case 6:n=r.B;f=new Uint8Array(n);ta(r,2);break;case 3:ua(r);case 2:return f||(p=new wS(a),Pra(p,c),f=p.encrypt(b)),r["return"](f)}})})};
eva=function(a){return window.crypto.subtle.importKey("raw",a,{name:"AES-CTR"},!1,["encrypt"])};
DU=function(a){var b=this,c=new wS(a);return function(d,e){return g.Ue(b,function h(){return g.Aa(h,function(l){Pra(c,e);return l["return"](new Uint8Array(c.encrypt(d)))})})}};
EU=function(a){this.u=a;this.iv=TS(hs())};
gva=function(a,b){return g.Ue(a,function d(){var e=this;return g.Aa(d,function(f){return f["return"](dva(e.u.B,b,e.iv))})})};
FU=function(a){this.B=a;this.D=this.u=0;this.C=-1};
GU=function(a){var b=Iu(a.B,a.u);++a.u;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=Iu(a.B,a.u),++a.u,d*=128,c+=(b&127)*d;return c};
HU=function(a,b){for(a.D=b;a.u+1<=a.B.totalLength;){var c=a.C;0>c&&(c=GU(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.C=c;break}switch(e){case 0:GU(a);break;case 1:a.u+=8;break;case 2:c=GU(a);a.u+=c;break;case 5:a.u+=4}}return!1};
IU=function(a,b,c){c=void 0===c?0:c;return HU(a,b)?GU(a):c};
JU=function(a,b){var c=void 0===c?"":c;if(!HU(a,b))return c;c=GU(a);if(!c)return"";var d=Gu(a.B,a.u,c);a.u+=c;return g.v.TextDecoder?(new TextDecoder).decode(d):g.We(d)};
KU=function(a,b){var c=void 0===c?null:c;if(!HU(a,b))return c;c=GU(a);var d=Gu(a.B,a.u,c);a.u+=c;return d};
hva=function(a){this.iv=KU(new FU(a),5)};
iva=function(a){a=KU(new FU(a),4);this.u=new hva(new zu([a]))};
kva=function(a){a=new FU(a);this.u=IU(a,1);this.itag=IU(a,3);this.lastModifiedTime=IU(a,4);this.xtags=JU(a,5);IU(a,6);IU(a,8);IU(a,9,-1);IU(a,10);this.B=this.itag+";"+this.lastModifiedTime+";"+this.xtags;this.isAudio="audio"===jva[Rv[""+this.itag]]};
lva=function(a){this.body=null;a=new FU(a);this.onesieProxyStatus=IU(a,1,-1);this.body=KU(a,4)};
mva=function(a){a=new FU(a);this.startTimeMs=IU(a,1);this.endTimeMs=IU(a,2)};
nva=function(a){var b=new FU(a);a=JU(b,3);var c=IU(b,5);this.u=IU(b,7);var d=KU(b,14);this.B=new mva(new zu([d]));b=JU(b,15);this.C=a+";"+c+";"+b};
ova=function(a){this.C=a;this.B=!1;this.u=[]};
pva=function(a){for(;a.u.length&&!a.u[0].isEncrypted;){var b=a.u.shift();a.C(b.streamId,b.buffer)}};
qva=function(a){var b,c;return g.Ue(this,function e(){var f=this,h,l,m,n;return g.Aa(e,function(p){switch(p.u){case 1:h=f;if(null===(c=null===(b=window.crypto)||void 0===b?void 0:b.subtle)||void 0===c||!c.importKey)return p["return"](DU(a));l=window.crypto.subtle;sa(p,2);return g.ra(p,eva(a),4);case 4:m=p.B;ta(p,3);break;case 2:return ua(p),p["return"](DU(a));case 3:return p["return"](function(r,t){return g.Ue(h,function x(){var y,D;return g.Aa(x,function(F){if(1==F.u){if(n)return F["return"](n(r,
t));y={name:"AES-CTR",counter:t,length:128};sa(F,2);D=Uint8Array;return g.ra(F,l.encrypt(y,m,r),4)}if(2!=F.u)return F["return"](new D(F.B));ua(F);n=DU(a);return F["return"](n(r,t))})})})}})})};
LU=function(a){g.P.call(this);var b=this;this.D=a;this.u={};this.C={};this.B=this.iv=null;this.queue=new ova(function(c,d){g.Ua(b);b.V("STREAM_DATA",{id:c,data:d})})};
rva=function(a,b,c){var d=Iu(b,0);b=Gu(b,1);d=a.u[d]||null;g.Ua(a);d&&(a=a.queue,a.u.push({streamId:d,buffer:b,isEncrypted:c}),a.B||pva(a))};
sva=function(a,b){g.Ue(a,function d(){var e=this,f,h,l,m,n,p,r,t;return g.Aa(d,function(w){switch(w.u){case 1:return g.Ua(e),e.V("PLAYER_RESPONSE_RECEIVED"),f=Gu(b),sa(w,2),g.ra(w,e.D(f,e.iv),4);case 4:h=w.B;ta(w,3);break;case 2:return l=ua(w),g.Ua(e),e.V("PLAYER_RESPONSE_FAILED",{errorInfo:l}),w["return"]();case 3:m=new lva(new zu([h]));if(1!==m.onesieProxyStatus)return n={st:m.onesieProxyStatus},p=new TA("onesie.response.badproxystatus",!1,n),e.V("PLAYER_RESPONSE_FAILED",{errorInfo:p}),w["return"]();
r=m.body;t=g.v.TextDecoder?(new TextDecoder).decode(r):g.We(r);g.Ua(e);e.V("PLAYER_RESPONSE_READY",t);w.u=0}})})};
MU=function(){this.u=0;this.C=void 0;this.B=new Uint8Array(4096);this.view=new DataView(this.B.buffer);g.v.TextEncoder&&(this.C=new TextEncoder)};
NU=function(a,b){var c=a.u+b;if(!(a.B.length>=c)){for(var d=2*a.B.length;d<c;)d*=2;c=new Uint8Array(d);c.set(a.B);a.B=c;a.view=new DataView(a.B.buffer)}};
OU=function(a,b){if(268435455<b){NU(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.u,c&127|128),c>>=7,a.u+=1;b=Math.floor(b/268435456)}for(NU(a,4);127<b;)a.view.setUint8(a.u,b&127|128),b>>=7,a.u+=1;a.view.setUint8(a.u,b);a.u+=1};
PU=function(a,b,c){OU(a,b<<3|2);b=c.length;OU(a,b);NU(a,b);a.B.set(c,a.u);a.u+=b};
QU=function(a,b,c){c=a.C?a.C.encode(c):new Uint8Array(TS(g.Ve(c)).buffer);PU(a,b,c)};
RU=function(a){return new Uint8Array(a.B.buffer,0,a.u)};
tva=function(a){var b=a.encryptedOnesiePlayerRequest,c=a.encryptedClientKey,d=a.iv;a=a.hmac;this.serializeResponseAsJson=!0;this.encryptedOnesiePlayerRequest=b;this.encryptedClientKey=c;this.iv=d;this.hmac=a};
SU=function(a){var b=a.value;this.name=a.name;this.value=b};
uva=function(a){var b=a.httpHeaders,c=a.postBody;this.url=a.url;this.httpHeaders=b;this.postBody=c};
vva=function(a){this.Rv=a.Rv};
wva=function(a,b){if(b+1<=a.totalLength){var c=Iu(a,b);c=128>c?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)c=Iu(a,b++);else if(2===c){c=Iu(a,b++);var d=Iu(a,b++);c=(c&63)+64*d}else if(3===c){c=Iu(a,b++);d=Iu(a,b++);var e=Iu(a,b++);c=(c&31)+32*(d+256*e)}else if(4===c){c=Iu(a,b++);d=Iu(a,b++);e=Iu(a,b++);var f=Iu(a,b++);c=(c&15)+16*(d+256*(e+256*f))}else c=b+1,a.focus(c),Du(a,c,4)?c=Eu(a).getUint32(c-a.C,!0):(d=Iu(a,c+2)+256*Iu(a,c+3),c=Iu(a,c)+256*(Iu(a,
c+1)+256*d)),b+=5;return[c,b]};
TU=function(a){this.C=a;this.u=new zu};
xva=function(a){var b,c;a:{var d,e=a.T().Bf;if(e){var f=null===(c=g.Xs("yt-player-bandaid-host"))||void 0===c?void 0:c.oQ;if(f&&e.baseUrl){c=new kv("https://"+f+e.baseUrl);if(e=null===(d=a.Qt)||void 0===d?void 0:d.urlQueryOverride)for(d=rv(e),d=g.q(Object.entries(d)),e=d.next();!e.done;e=d.next())f=g.q(e.value),e=f.next().value,f=f.next().value,c.set(e,f);if(!c.get("id")){e=AB(a.videoId);d=[];if(e)for(e=g.q(e),f=e.next();!f.done;f=e.next())d.push(f.value.toString(16).padStart(2,"0"));d=d.join("");
if(!d){c=void 0;break a}c.set("id",d)}break a}}c=void 0}!c&&(null===(b=a.Qt)||void 0===b?0:b.url)&&(c=new kv(a.Qt.url));if(!c)return"";c.set("ack","1");c.set("cpn",a.clientPlaybackNonce);c.set("opr","1");c.set("pvi","135");c.set("pai","140");c.set("oad","0");c.set("ovd","0");c.set("oaad","0");c.set("oavd","0");return c.nd()};
UU=function(a,b,c){var d=this;this.videoData=a;this.u=b;this.playerRequest=c;this.xhr=null;this.B=new dw;this.F=!1;this.D=new g.H(this.I,1E4,this);this.C=new EU(a.T().Bf.u);this.N=new TU(function(e,f){d.K.feed(e,f)});
this.K=yva(this)};
yva=function(a){var b=new LU(function(c,d){return a.C.decrypt(c,d)});
b.subscribe("FIRST_BYTE_RECEIVED",function(){a.u.tick("orfb");a.F=!0});
b.subscribe("PLAYER_RESPONSE_READY",function(c){a.u.tick("oprr");a.B.resolve(c);a.D.stop()});
b.subscribe("PLAYER_RESPONSE_RECEIVED",function(){a.u.tick("orpr")});
b.subscribe("PLAYER_RESPONSE_FAILED",function(c){VU(a,c.errorInfo)});
return b};
VU=function(a,b){a.B.reject(b);a.D.stop();a.u.tick("ore");a.xhr&&a.xhr.abort()};
zva=function(a){for(var b=a.xhr;b.ih();){var c=b.nt();c.getLength();a.N.feed(c)}};
Bva=function(a){return g.Ue(a,function c(){var d=this,e,f;return g.Aa(c,function(h){if(1==h.u)return g.ra(h,Ava(d),2);e=h.B;f={Rv:e};return h["return"](new vva(f))})})};
Ava=function(a){return g.Ue(a,function c(){var d=this,e,f,h,l,m;return g.Aa(c,function(n){if(1==n.u)return g.ra(n,Cva(d),2);if(3!=n.u)return e=n.B,f=d.C.u.encryptedClientKey,h=d.C.iv,g.ra(n,gva(d.C,e),3);l=n.B;m={encryptedOnesiePlayerRequest:e,encryptedClientKey:f,iv:h,hmac:l};return n["return"](new tva(m))})})};
Cva=function(a){return g.Ue(a,function c(){var d=this,e,f,h;return g.Aa(c,function(l){switch(l.u){case 1:var m=d.videoData.T().ba;m="https://youtubei.googleapis.com/youtubei/"+m.innertubeApiVersion+"/player?key="+m.innertubeApiKey;var n=[new SU({name:"Content-Type",value:"application/json"})],p=d.videoData.lf();p&&n.push(new SU({name:"Authorization",value:"Bearer "+p}));n.push(new SU({name:"User-Agent",value:g.Vc}));(p=d.videoData.visitorData||so("VISITOR_DATA"))&&n.push(new SU({name:"X-Goog-Visitor-Id",
value:p}));p=JSON.stringify(d.playerRequest);e=new uva({url:m,httpHeaders:n,postBody:p});sa(l,2);return g.ra(l,d.C.encrypt(e.lm()),4);case 4:f=l.B;ta(l,3);break;case 2:return ua(l),h=new TA("onesie.request.encrypt",!1),l["return"](Promise.reject(h));case 3:return l["return"](f)}})})};
Hva=function(a,b,c,d,e,f){a.la();a.qd=!0;var h=a.T();return g.R(h.experiments,"html5_onesie")&&g.R(h.experiments,"html5_onesie_player_config")&&"yt"===h.X?Dva(a).then(function(){return Eva(a,d,e,f)}).then(function(){WU(a)},function(l){l=VA(l);
if(l.u)return Promise.reject(l);c(l);return XU(a,b,c,"onesie",!0)}):Fva(h,a)?Gva(a,e,f).then(function(){WU(a)},function(l){l=VA(l);
if(l.u)return WU(a),Promise.reject(l);c(l);return XU(a,b,c,"op")}):XU(a,b,c,"gvi")};
Fva=function(a,b){return(g.R(a.experiments,"web_player_gvi_wexit")||g.R(a.experiments,"hoffle_api")&&RF(b))&&"yt"===a.X&&"adunit"!==MF(b)?!0:!1};
Dva=function(a){a=a.T().Bf;if(!a||!a.u)return Promise.reject(new TA("onesie.unavailable.hotconfig",!1,{key:"0"}));a={};Ww()||(a.fetch="0");window.Uint8Array||(a.uint8="0");return 0<Object.keys(a).length?(a.onesie="0",Promise.reject(new TA("html5.missingapi",!1,a))):Promise.resolve()};
Eva=function(a,b,c,d){return g.Ue(this,function f(){var h,l,m,n,p,r;return g.Aa(f,function(t){if(1==t.u)return a.fetchType="onesie",h=ET(a,c,d),l=new UU(a,b,h),g.ra(t,l.fetch(),2);m=t.B;n={player_response:m};a.qd=!1;a.Oe(n,!0);if(a.qd||DF(a))return t["return"](Promise.resolve());p={};a.errorCode?(p.ec=a.errorCode,p.ed=a.errorDetail,p.es=a.Yh||""):p.successButUnplayable="1";r=new TA("onesie.response",!1,p);return t["return"](Promise.reject(r))})})};
Gva=function(a,b,c){return g.Ue(this,function e(){var f,h,l,m,n,p;return g.Aa(e,function(r){if(1==r.u)return f=g.BU(),h=ET(a,b,c),l=g.sU(Iva),g.ra(r,g.sG(f,h,l),2);m=r.B;a.qd=!1;a.Oe({raw_player_response:m},!0);if(a.errorCode)return n={ec:a.errorCode,ed:a.errorDetail,es:a.Yh||""},r["return"](Promise.reject(new TA("auth",!0,n)));if(!a.qd&&!DF(a))return p=a.isAd()?"auth":"manifest.net.retryexhausted",r["return"](Promise.reject(new TA(p,!0,{successButUnplayable:"1"})));r.u=0})})};
XU=function(a,b,c,d,e){return g.Ue(this,function h(){var l,m,n,p,r,t,w,x,y;return g.Aa(h,function(D){switch(D.u){case 1:l=function(){return!0},m=function(F){F=VA(F);
if(F.u)return Promise.reject(F);c(F);return!1},p=(n=a.isAd())?1:3,r=0;
case 2:if(!(r<p)){D.Jd(4);break}t=b;if(!(0<r)){D.Jd(5);break}return g.ra(D,Vm(5E3),6);case 6:w={playerretry:r,playerretrysrc:d},n||(w.recover="embedded"),t=$p(b,w);case 5:return g.ra(D,Jva(a,t,e).then(l,m),7);case 7:if(x=D.B)return D["return"]();r++;D.Jd(2);break;case 4:y=n?"auth":"manifest.net.retryexhausted";if(!n&&1E-4>Math.random())try{g.lr(new Iq("b/152131571",btoa(b)))}catch(F){}return D["return"](Promise.reject(new TA(y,!0,{backend:"gvi"})))}})})};
Jva=function(a,b,c){return g.Ue(this,function e(){var f,h,l,m,n,p,r,t,w,x,y,D,F,G;return g.Aa(e,function(O){if(1==O.u)return a.fetchType="gvi",f=a.T(),(m=$ta(a))?(h={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,dc:m},l=$p(b,{action_display_post:1})):(h={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},l=b),n={},f.sendVisitorIdHeader&&a.visitorData&&(n["X-Goog-Visitor-Id"]=a.visitorData),(p=g.Xu(f.experiments,"debug_dapper_trace_id"))&&(n["X-Google-DapperTraceInfo"]=p),(r=g.Xu(f.experiments,
"debug_sherlog_username"))&&(n["X-Youtube-Sherlog-Username"]=r),0<Object.keys(n).length&&(h.headers=n),t=(0,g.N)(),w=function(K){if(!a.la()){K=K?K.status:-1;var Ja=400===K||429===K,va=((0,g.N)()-t).toFixed();va={backend:"gvi",rc:""+K,rt:va};var Va="manifest.net.connect";429===K?Va="auth":200<K&&(Va="manifest.net.badstatus");return Promise.reject(new TA(Va,Ja,va))}},x=function(K){return w(K.xhr)},g.ra(O,Gz(yr,l,h).then(void 0,x),2);
y=O.B;if(!y||!y.responseText)return O["return"](w(y));a.qd=!1;D=Vp(y.responseText);a.Oe(D,!0,c);if(a.errorCode)return F={ec:a.errorCode,ed:a.errorDetail,es:a.Yh||""},O["return"](Promise.reject(new TA("auth",!0,F)));if(!a.qd&&!DF(a))return G=a.isAd()?"auth":"manifest.net.retryexhausted",O["return"](Promise.reject(new TA(G,!0,{successButUnplayable:"1"})));O.u=0})})};
WU=function(a){g.Ue(this,function c(){var d,e,f,h,l;return g.Aa(c,function(m){if(1==m.u){d=a.T();if(a.vr||"adunit"!==MF(a)&&(g.$B(d)||bC(d)||nC(d)))return m["return"]();sa(m,2);e=g.BU();f=Xta(a);h=g.sU(g.Kva);return g.ra(m,g.sG(e,f,h),4)}if(2!=m.u)return l=m.B,a.Oe({raw_watch_next_response:l},!1),ta(m,0);ua(m);m.u=0})})};
Lva=function(a,b,c,d,e,f){function h(){CA("virc");MA("virc","video_to_ad")}
CA("vir");MA("vir","video_to_ad");a=Hva(a,b,c,d,e,f);a.then(h,h);return a};
$U=function(a,b,c,d,e,f,h){g.P.call(this);var l=this;this.F=a;this.Ub=new rua;this.Z=c;this.pe=d;this.Ki=f;this.ba=h;this.ea=new CD((0,g.z)(this.getCurrentTime,this),(0,g.z)(this.getPlaybackRate,this),(0,g.z)(this.getPlayerState,this),function(m,n){m!=g.wD("endcr")||g.T(l.C,32)||YU(l);e(m,n,l.Lb)});
g.C(this,this.ea);this.P=null;this.yb=new IS;this.ra=null;this.da=new kT(a,this.pe);g.C(this,this.da);this.da.subscribe("ctmp",this.sb,this);this.Df=!0;this.W=this.D=null;this.ha=[];this.ka=new HS;this.X=this.ob=null;this.Aa=new HS;this.Lc=null;this.Li=this.Na=!1;this.wd=NaN;this.Rh=new g.H(this.AP,500,this);g.C(this,this.Rh);this.C=new g.bL;this.ce=[];this.Lb=b;this.Pb=new g.Wr;g.C(this,this.Pb);this.u=new g.UE(a);Mva(this,function(){return{}});
Nva(this);this.B=null;this.Qa=new g.H((0,g.z)(this.PN,this),15E3);g.C(this,this.Qa);a=g.Q(this.F.experiments,"html5_source_buffer_attach_delay_time")||15E3;this.Qh=new g.H((0,g.z)(this.sP,this),a);g.C(this,this.Qh);this.Nj=0;this.Ph=this.xc=!1;this.Ja=NaN;this.Za=!1;this.Rb=0;this.Bf=new g.H(this.qy,4500,this);g.C(this,this.Bf);this.Ef=!1;this.td=NaN;this.za=new lU;g.C(this,this.za);nU(this.za,"bufferhealth",function(){var m=l.K;return m.u?zS(m.u):0});
nU(this.za,"bandwidth",(0,g.z)(this.DI,this));nU(this.za,"networkactivity",(0,g.z)(this.MI,this),!0);nU(this.za,"livelatency",(0,g.z)(this.AB,this));nU(this.za,"rawlivelatency",(0,g.z)(this.EB,this));this.za.start();this.Cf=!0;this.Oi=0;this.Qg=!1;this.ud=1;this.hd=(0,g.z)(this.QP,this);Nua(this.hd);this.ba.subscribe("visibilitystatechange",this.hd);this.Ni=0;Ova(this);g.C(this,this.K);this.Ga=null;this.Ji=!1;this.ae=[];this.Ff=this.Mj=0;this.Oh=this.Oj=!1;this.Af=new g.H(function(){l.Td("ad.rebuftimeout",
"RETRYABLE_ERROR","vps."+l.C.state.toString(16))});
g.C(this,this.Af);this.ac=null;this.Mi=0;this.Lj=new g.H(function(){g.iL(l.C)&&vta(l.da,l.X)&&ZU(l)});
g.C(this,this.Lj);this.Qe=new g.H(this.FF,3E4,this);g.C(this,this.Qe)};
Mva=function(a,b){!a.I||a.I.la();var c=new pua(a.u,a.F,b,(0,g.z)(a.getDuration,a),(0,g.z)(a.getCurrentTime,a),(0,g.z)(a.RI,a),(0,g.z)(a.pe.getPlayerSize,a.pe),(0,g.z)(a.getAudioTrack,a),(0,g.z)(a.getPlaybackRate,a),(0,g.z)(a.tw,a),a.Ki,(0,g.z)(a.dJ,a),function(){return a.Z.tick("qoes")},function(){return gU(a.K)});
a.I=new NT(c)};
Nva=function(a){!a.N||a.N.la();a.N=new eT(a.u,a.F,a.ba);a.N.subscribe("newelementrequired",function(b){return aV(a,b)});
a.N.subscribe("qoeerror",a.VC,a);a.N.subscribe("playbackstalledatstart",function(){return a.V("playbackstalledatstart")});
a.N.subscribe("signatureexpiredreloadrequired",function(){return a.V("signatureexpired")});
a.N.subscribe("releaseloader",function(){return bV(a)});
a.N.subscribe("pausevideo",function(){return a.pauseVideo()});
a.N.subscribe("clienttemp",a.sb,a);a.N.subscribe("highrepfallback",a.BN,a);a.N.subscribe("playererror",a.Td,a);a.N.subscribe("removedrmplaybackmanager",function(){return cV(a)});
a.N.subscribe("formatupdaterequested",function(){return dV(a)});
a.N.subscribe("reattachvideosourcerequired",function(){return Pva(a)})};
eV=function(a){var b=a.I;b.B&&b.B.send();if(b.qoe){var c=b.qoe;if(c.P){"PL"===c.Bc&&(c.Bc="N");var d=g.mT(c.provider);g.pT(c,d,"vps",[c.Bc]);c.D||(0<=c.B&&(c.u.user_intent=[c.B.toString()]),c.D=!0);c.reportStats(d)}}if(b.provider.videoData.enableServerStitchedDai)for(c=g.q(b.C.values()),d=c.next();!d.done;d=c.next())fua(d.value);else b.u&&fua(b.u);b.dispose();g.eg(a.I)};
oI=function(a){return a.B&&a.B.wk()?a.B.Ma():null};
fV=function(a){if(a.u.isValid())return!0;a.Td("api.invalidparam",void 0,"invalidVideodata.1");return!1};
gV=function(a,b){a.Na=void 0===b?!1:b;if(!fV(a)||a.ka.started)g.$B(a.F)&&a.u.isLivePlayback&&a.ka.started&&!a.ka.isFinished()&&!a.Na&&a.Dv();else{a.ka.start();var c=a.I;g.mT(c.provider);c.qoe&&Ita(c.qoe);a.Dv()}};
Qva=function(a){var b=a.u,c=a.pe.getPlayerSize(),d=a.Ki(),e=Zta(a.F,a.u,c,d,a.ba.isFullscreen());Lva(a.u,e,function(f){return a.handleError(f)},a.Z,c,d).then(void 0,function(f){a.u!=b||b.la()||(f=VA(f),"auth"==f.errorCode&&a.u.errorDetail?a.Td("auth",unescape(a.u.errorReason),g.UA(f.details),a.u.errorDetail,a.u.Yh||void 0):a.handleError(f))})};
Rva=function(a,b){a.ac=b;a.D&&(a.D.Na=new YF(b))};
Uva=function(a){if(!g.T(a.C,128))if(a.u.Dc(),a.Cf=!0,4!=a.Lb&&(a.ha=g.ub(a.u.me)),CF(a.u)){hV(a).then(function(){a.la()||(a.Na&&iV(a),Sva(a,a.u),a.ka.u=!0,jV(a,"dataloaded"),a.Aa.started?kV(a):a.Na&&YV(a,dL(dL(a.C,512),1)),Bta(a.da,a.X))});
a.sb("loudness",""+a.u.Yp.toFixed(3),!0);var b=Ama(a.u);b&&a.sb("playerResponseExperiment",b,!0);Tva(a)}else jV(a,"dataloaded")};
hV=function(a){bV(a);a.X=null;var b=uua(a.F,a.u,a.ba.B);a.ob=b;a.ob.then((0,g.z)(a.xO,a),(0,g.z)(a.yO,a));return b};
dV=function(a){hV(a).then(function(){return iV(a)});
g.hL(a.C)&&a.playVideo()};
ZV=function(a){a.B&&a.B.ln();gV(a);fV(a)&&!g.T(a.C,128)&&(a.Aa.started||(a.Aa.start(),YV(a,dL(dL(a.C,8),1))),kV(a))};
kV=function(a){a.la();if(!a.Aa.isFinished()&&a.ka.isFinished()&&!g.T(a.C,128)&&!a.ha.length){if(!a.ea.started){var b=a.ea;b.started=!0;b.B()}if(!$V(a)){a.D&&(b=a.D.za,a.Li=!!b.u&&!!b.D);a.Aa.isFinished()||(a.Aa.u=!0);!a.u.isLivePlayback||0<a.u.lk&&!mF(a.u)||(a.seekTo(Infinity),aW(a,"readying"),a.ba.isBackground()&&(a.Ph=!0));b=a.I;if(b.u){var c=b.u;c.provider.videoData.Go&&c.provider.videoData.Ar&&(LT(c,"connected"),aua(c))}b.qoe&&(b=b.qoe,b.provider.videoData.Tp&&vT(b,b.provider.videoData.Tp),b.provider.videoData.isLivePlayback&&
(c=b.provider.videoData.ma,mF(b.provider.videoData)&&vT(b,"manifestless"),c&&Yz(c)&&vT(b,"live-segment-"+Yz(c).toFixed(1))),"yt"!==b.provider.u.X&&(b.u.len=[b.provider.videoData.lengthSeconds.toFixed(2)]));a.V("playbackready",a);JA("pbr",a.Z.timerName)||(a.Z.tick("pbr"),MA("pbr","video_to_ad"))}}};
YU=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.B&&a.B.pause();b=b?new g.bL(14):new g.bL;YV(a,b)};
Sva=function(a,b){if(b.endSeconds&&b.endSeconds>b.startSeconds){var c=b.endSeconds;a.ra&&(a.removeCueRange(a.ra),a.ra=null);a.ra=new g.tD(1E3*c,0x7ffffffffffff);a.ra.namespace="endcr";a.addCueRange(a.ra)}};
cW=function(a,b,c,d){a.u.La=c;d&&Vva(a,b,d);var e=(d=g.bW(a))?wu(d):"";d=a.I;e=new kta(a.u,c,b,e);if(d.qoe){c=d.qoe;d=g.mT(c.provider);g.pT(c,d,"vfs",[e.u.id,e.B,c.Qa,e.reason]);c.Qa=e.u.id;e=c.provider.P();if(0<e.width&&0<e.height){e=[Math.round(e.width),Math.round(e.height)];var f=g.jC();1<f&&e.push(f);g.pT(c,d,"view",e)}c.ba||(c.provider.videoData.Cj&&vT(c,"rqs"),c.provider.videoData.ma&&Kz(c.provider.videoData.ma)&&(c.u.preload=["1"]));c.ba=!0;c.P=!0;g.pT(c,d,"vps",[c.Bc]);c.reportStats(d)}c=
a.da;c.D=0;c.B=0;a.V("internalvideoformatchange",a.u,"m"==b)};
g.bW=function(a){var b=dW(a);return CC(b)||!a.X?null:g.jb(a.X.Ia.videoInfos,(0,g.z)(b.D,b))};
Vva=function(a,b,c){if(c!=a.u.Qc){var d=!a.u.Qc;a.u.Qc=c;"m"!=b&&(b=d?"i":"a");var e=a.I;c=new kta(a.u,c,b,"");if(e.qoe){e=e.qoe;var f=g.mT(e.provider);c.u.id!==e.X&&(g.pT(e,f,"afs",[c.u.id,e.X,c.reason]),e.X=c.u.id)}d||a.V("internalaudioformatchange",a.u,"m"==b)}};
eW=function(a,b){a.ha=a.ha.filter(function(c){return b!=c});
a.Aa.started&&kV(a)};
$V=function(a){var b;(b=!!a.ha.length)||(a=a.ea.u.u[0],b=!!a&&-0x8000000000000>=a.start);return b};
gW=function(a,b){if(a.B&&b.Ma()==a.B.Ma()&&(b.isView()||a.B.isView())){if(b.isView()||!a.B.isView())g.Yr(a.Pb),a.B=b,Wva(a),dU(a.K,a.B),a.N.B=a.B}else{a.B&&fW(a);if(!a.C.isError()){var c=eL(a.C,512);g.T(c,8)&&!g.T(c,2)&&(c=dL(c,1));b.isView()&&(c=eL(c,64));YV(a,c)}a.B=b;a.B.setLoop(a.Qg);a.B.setPlaybackRate(a.ud);Wva(a);dU(a.K,a.B);a.N.B=a.B}};
fW=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;if(a.B){var d=a.getCurrentTime();0<d&&(a.K.K=d);dU(a.K,null);a.N.B=null;hW(a);a.D&&(a.D.ra.xb(),iW(a,c));a.Qa.stop();if(a.B){!a.Aa.started||a.C.isError()||g.T(a.C,2)||YV(a,dL(a.C,512));g.Yr(a.Pb);if(b||!a.B.isView())a.B.stopVideo(),cV(a);a.B=null}}};
dW=function(a){if(a.X){var b=a.da;var c=a.X,d=jW(a);a=a.ba.isBackground();var e=ota(b);e=BC("auto",e,!1,"s");CC(e)?e=mta(b,c).compose(qta(b,c)).compose(rta(b,c)).compose(zta(b,a)).compose(Ata(b,c)).compose(yta(b,c)).compose(c.videoData.CG).compose(pta(b)):b.ca("html5_perf_cap_override_sticky")&&(e=e.compose(yta(b,c)));b=c.videoData.Du.compose(e).compose(c.videoData.uA).compose(d)}else b=WC;return b};
jW=function(a,b){if(a.P){var c=a.P;var d=void 0===b?!1:b;c=(void 0===d?0:d)&&c.ra?c.ra:c.N}else c=bF(a.u)&&a.u.ma&&Jz(a.u.ma)?(g.R(a.F.experiments,"html5_drm_initial_constraint_from_config")?a.u.Eo:g.R(a.F.experiments,"html5_drm_start_from_null_constraint"))?WC:Ssa:WC;a.Oh&&(c=c.compose(Xva));return c};
lW=function(a){if(!a.la()&&!g.T(a.C,128)&&a.u.Ia){if(a.u.Ia.wc())kW(a);else{var b=dW(a),c=a.u;a:{var d=a.u.Bj;if(b.u){for(var e=g.q(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.te(),l=g.Lv[h.Ka().quality];if((!b.C||"auto"!==h.Ka().quality)&&l<=b.u){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.Gg=d;cW(a,b.reason,Yva(a,a.u.Gg))}a.C.Gb()&&(a.K.ra=!1,a.playVideo())}};
kW=function(a){if(a.u.Ia&&a.u.Ia.wc()){var b=dW(a),c=a.u.La;if(!mW(a,"html5_dynamic_av1_hybrid_threshold")&&c&&Vv(c)){var d=GC(a.F);if(d&&d<c.Ka().yc&&d!=a.Mi){a.Mi=d;hV(a);return}}if(a.D&&(a=a.D,!a.la()&&!AC(a.K.F,b)&&a.B)){var e=a.K.F;aE(a,Dha(a.K,b));OD(a);c=dD(a.K)&&"m"==b.reason&&a.K.ba;d=a.u.ud&&"l"==b.reason&&Vy(a.B);b=("b"==b.reason||"o"==b.reason)&&e.u>b.u;e=a.K.Aa&&!XA();c||d||b||e?(a.gd("reattachOnConstraint",c?"u":d?"drm":e?"codec":"perf"),a.V("reattachrequired")):(!a.u.Lc&&a.K.P&&XD(a,
a.B,a.D),a.ra.xb())}}};
ZU=function(a){mW(a,"html5_nonblocking_media_capabilities")?kW(a):lW(a)};
$va=function(a){mW(a,"html5_probe_media_capabilities")&&lta(a.u.Ia);Rga(a.u.ma,{cpn:a.u.clientPlaybackNonce,c:a.F.deviceParams.c,cver:a.F.deviceParams.cver});var b=a.F,c=a.u,d=new g.Yu,e=Wu(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Vm:c.Vm});d.D=e;d.zs=b.ca("html5_disable_codec_for_playback_on_error");d.yr=b.ca("html5_max_drift_per_track_secs")||b.ca("html5_rewrite_manifestless_for_sync")||b.ca("html5_check_segnum_discontinuity");d.Nj=b.ca("html5_unify_sqless_flow");d.xc=b.ca("html5_unrewrite_timestamps");
d.Rb=b.ca("html5_stop_overlapping_requests");d.Df=g.Q(b.experiments,"html5_min_readbehind_secs");d.sz=g.Q(b.experiments,"html5_min_readbehind_cap_secs");d.rz=g.Q(b.experiments,"html5_max_readbehind_secs");d.vC=g.R(b.experiments,"html5_trim_future_discontiguous_ranges");d.Qq=b.ca("html5_append_init_while_paused");d.Cf=g.Q(b.experiments,"html5_max_readahead_bandwidth_cap");d.Ph=g.Q(b.experiments,"html5_post_interrupt_readahead");d.P=g.Q(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");
d.ac=g.Q(b.experiments,"html5_subsegment_readahead_timeout_secs");d.TA=g.Q(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.Ub=g.Q(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");d.eB=g.Q(b.experiments,"html5_subsegment_readahead_min_load_speed");d.Mj=g.Q(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.VB=g.Q(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.Qg=b.ca("html5_peak_shave");d.yz=b.ca("html5_peak_shave_always_include_sd");
d.Vz=b.ca("html5_restrict_streaming_xhr_on_sqless_requests");d.pz=g.Q(b.experiments,"html5_max_headm_for_streaming_xhr");d.zz=b.ca("html5_pipeline_manifestless_allow_nonstreaming");d.Ez=b.ca("html5_prefer_server_bwe3");d.fo=1024*g.Q(b.experiments,"html5_video_tbd_min_kb");d.Qh=b.ca("html5_probe_live_using_range");d.EG=b.ca("html5_last_slice_transition");d.bA=b.ca("html5_store_xhr_headers_readable");d.QD=b.ca("html5_enable_packet_train_response_rate");if(e=g.Q(b.experiments,"html5_probe_secondary_during_timeout_miss_count"))d.Rh=
e,d.uC=1;d.Za=g.Q(b.experiments,"html5_probe_primary_delay_base_ms")||d.Za;d.Ff=b.ca("html5_no_placeholder_rollbacks");d.fA=b.ca("html5_subsegment_readahead_enable_mffa");b.ca("html5_allow_video_keyframe_without_audio")&&(d.ka=!0);d.Ki=b.ca("html5_reattach_on_stuck");d.tF=b.ca("html5_webm_init_skipping");d.Mi=g.Q(b.experiments,"html5_request_size_padding_secs")||d.Mi;d.MG=b.ca("html5_log_timestamp_offset");d.hd=b.ca("html5_abs_buffer_health");d.nG=b.ca("html5_interruption_resets_seeked_time");d.Bf=
g.Q(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.Bf;d.ae=b.ca("html5_explicitly_dispose_xhr");d.aA=b.ca("html5_skip_invalid_sq");d.Uz=b.ca("html5_restart_on_unexpected_detach");d.KG=b.ca("html5_log_live_discontinuity");d.Wz=b.ca("html5_rewrite_manifestless_for_continuity");d.pe=g.Q(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.Af=g.Q(b.experiments,"html5_max_drift_per_track_secs");d.Yz=b.ca("html5_rewrite_manifestless_for_sync");d.Pb=g.Q(b.experiments,"html5_static_abr_resolution_shelf");
d.Uq=!b.ca("html5_encourage_array_coalescing");d.Qr=b.ca("html5_crypto_period_secs_from_emsg");d.ra=b.ca("html5_defer_slicing");d.td=g.Q(b.experiments,"html5_buffer_health_to_defer_slice_processing");d.Ks=b.ca("html5_disable_reset_on_append_error");d.LF=b.ca("html5_filter_non_efficient_formats_for_safari");d.vz=b.ca("html5_format_hybridization");d.Lc=b.ca("html5_urgent_adaptation_fix");b.ca("html5_media_common_config_killswitch")||(d.F=c.maxReadAheadMediaTimeMs/1E3||d.F,e=b.schedule,e.u.u()===e.policy.C?
d.X=10:d.X=c.minReadAheadMediaTimeMs/1E3||d.X,d.wd=c.readAheadGrowthRateMs/1E3||d.wd);qg&&(d.Z=41943040);d.W=!rB();g.$B(b)||!rB()?(e=b.experiments,d.I=8388608,d.K=524288,d.Sq=5,d.Ga=2097152,d.ba=1048576,d.Iz=1.5,d.xz=!1,d.N=4587520,dk()&&(d.N=786432),d.u*=1.1,d.B*=1.1,d.yb=!0,d.Z=d.I,d.Ja=d.K,d.Oh=g.R(e,"persist_disable_player_preload_on_tv")||g.R(e,"persist_disable_player_preload_on_tv_for_living_room")||!1):b.u&&(d.u*=1.3,d.B*=1.3);g.eB&&Xj("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,
d.I=20971520,d.K=1572864,e&&(d.N=812500,d.Li=1E3,d.UE=5,d.ba=2097152));!b.ca("html5_disable_firefox_init_skipping")&&g.wB&&(d.yb=!0);b.supportsGaplessAudio()||(d.LD=!1);JB&&(d.Dk=!0);hk()&&(d.Oi=!0);if(mF(c)){d.bG=!0;d.Zz=!0;if("ULTRALOW"==c.latencyClass||"LOW"==c.latencyClass&&!b.ca("html5_disable_low_pipeline"))d.WG=2,d.qz=4;d.aj=c.defraggedFromSubfragments;c.Jc&&(d.ob=!0);g.GF(c)&&(d.ha=!1);d.Er=g.mC(b)}c.isAd()&&(d.Na=0,d.ce=0);oF(c)&&(d.da=!0,b.ca("html5_resume_streaming_requests")&&(d.Lb=!0,
d.Li=400,d.oz=2));d.Aa=b.ca("html5_enable_subsegment_readahead_v3")||b.ca("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"==c.latencyClass;d.za=c.Cj;d.HG=d.za&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||UF(c));nk()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.ca("html5_disable_move_pssh_to_moov")&&Jz(c.ma)&&(d.yb=!1);Jz(c.ma)&&(d.Ki=!1);var f=0;b.ca("html5_live_use_alternate_bandwidth_window_sizes")&&(f=b.schedule.policy.u,c.isLivePlayback&&(f=g.Q(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")||f));e=b.schedule;e.P.u=mF(c)?.5:0;if(!e.policy.B&&f&&(e=e.u,f=Math.round(f*e.resolution),f!==e.B)){var h=Array(f),l=Math.min(f,e.D?e.B:e.valueIndex),m=e.valueIndex-l;0>m&&(m+=e.B);for(var n=0;n<l;++n)h[n]=e.values[(m+n)%e.B];for(;n<f;++n)h[n]=Infinity;e.B=f;e.values=h;e.valueIndex=l%f;e.D=l===f;e.I=!0;e.N=bz(e)}d.nb=c.isLivePlayback;
switch(nF(c)){case 21530001:d.wz=b.ca("html5_live_smoothly_extend_max_seekable_time");d.Aa=!0;"LOW"==c.latencyClass?d.P=g.Q(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"==c.latencyClass&&(d.P=g.Q(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.Ff=!0;break;case 2153E4:d.Aa=!1}d.Dk=d.Dk||c.Dk;d.ea=c.ni;UF(c)&&(d.Qe=!0);c.ni&&!Jz(c.ma)&&b.ca("html5_hack_gapless_init")&&(d.Ni=!0);(e=g.Q(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.ni&&c.isAd()&&
(d.u*=e,d.B*=e);SF(c)?(d.C=c.videoId,d.hd=!0,SF(c)&&c.Xg&&(d.Xg=!0)):c.FC&&(d.Lj=!0);b.ca("html5_drm_initial_constraint_from_config")?d.ud=c.Eo:d.ud=b.ca("html5_drm_start_from_null_constraint");b.ca("html5_dynamic_av1_hybrid_threshold")&&(d.Ls=!0,d.Qa=GC(b,{},c.Ia));c="auto"!==kx();e=g.Q(b.experiments,"html5_deadzone_multiplier")||1;(f=g.Q(b.experiments,"html5_sticky_reduces_discount_by"))&&c&&(e-=f);d.u*=e;d.B*=e;if(e=g.Q(b.experiments,"html5_request_sizing_multiplier"))d.Rz=e;d.Ef=g.Q(b.experiments,
"html5_min_upgrade_health")||d.Ef;uB(b.D,vB.BITRATE)&&(d.N=NaN);b.D.C&&(d.sF="; "+vB.EXPERIMENTAL.name+"=allowed");c&&(d.Oj=0,d.Pb=0);d.Fz=b.ca("html5_rec_2020_matrix_correction_killswitch");c=d.nb&&!b.ca("html5_pause_appends_killswitch");d.nb=c||b.ca("html5_never_pause_appends");g.R(b.experiments,"html5_prefer_low_quality_audio_means_64k")&&JB&&(d.Dz=!0);g.R(b.experiments,"debug_html5_random_stun_format")&&(d.Ji=!0);g.R(b.experiments,"html5_urgent_adaptation_when_stun")&&(d.BC=!0);b=b.experiments;
g.R(b,"html5_validate_lengthless_slices_killswitch")&&(d.RD=!1);g.R(b,"html5_audio_only_eos_fix_killswitch")&&(d.Rq=!0);g.R(b,"html5_reject_promise_if_seeking_to_head_killswitch")&&(d.Gz=!0);g.R(b,"html5_check_seeking_for_cuepoints_killswitch")&&(d.Yq=!0);g.R(b,"html5_rewrite_webm_track_uid_killswitch")&&(d.Oi=!1);b=a.getAudioTrack();b=b.u.isDefault?void 0:b;c=a.yb;c.keys=[];c.values=[];a.D=new ND(a.F.schedule,d,a.u.ma,a.u.Ia,dW(a),b,a.ea,a.u.enableServerStitchedDai);a.D.subscribe("needkeyinfo",a.rE,
a);a.D.subscribe("newDrmInfo",a.oO,a);a.D.subscribe("videoformatchange",a.TN,a);a.D.subscribe("audioformatchange",a.RN,a);a.D.subscribe("error",a.handleError,a);a.D.subscribe("ctmp",a.sb,a);a.D.subscribe("reattachrequired",a.BQ,a);a.D.subscribe("metadata",a.lE,a);a.D.subscribe("constraint",a.JP,a);a.D.subscribe("timestamp",a.RJ,a);a.D.subscribe("localmediachange",a.UN,a);a.D.subscribe("localplaybackfailed",a.LH,a);a.da.subscribe("av1hybridthresholdchange",a.SM,a);d=Zva(a)?!0:a.Na&&g.$B(a.F)&&a.u.isLivePlayback;
a.D.initialize(a.getCurrentTime(),dW(a),d);a.u.probeUrl&&(a.D.Qa=a.u.probeUrl);(a.ha.length||a.Na)&&iW(a,!1);fU(a.K,a.D);a.N.u=a.D;a.ac&&(a.D.Na=new YF(a.ac));TF(a.u)&&(a.D.u.xF=2)};
Ova=function(a){a.K=new bU(a.u,a.F,a.ba,function(){return g.nb(a.ha,"ad")});
a.K.subscribe("seekto",function(b,c){a.K.K=b;var d=a.Ub;d.mediaTime=b;d.seeking=!0;c||nW(a);a.ra&&b>a.u.endSeconds&&isFinite(b)&&(a.removeCueRange(a.ra),a.ra=null);b<oW(a)-.01&&(d=eL(a.C,2),g.T(d,8)&&(d=eL(d,4)),YV(a,d));a.V("SEEK_TO",a,b)});
a.K.subscribe("seekstart",function(){return pW(a)});
a.K.subscribe("seekend",function(){return a.V("SEEK_COMPLETE")});
a.K.subscribe("newmediaelementrequired",function(){return aV(a)});
a.K.subscribe("ended",function(){return YU(a)});
a.K.subscribe("ctmp",a.sb,a);a.K.subscribe("qoeerror",a.VC,a);a.K.subscribe("livereadaheadchanged",function(b){var c=a.I;c.qoe&&(c=c.qoe,g.pT(c,g.mT(c.provider),"lra",[b]),rT(c,"live-readahead-seconds",b.toString()))});
a.K.subscribe("releaseadsprerolllock",function(){return eW(a,"ad")})};
bV=function(a){a.D&&(a.D.dispose(),a.D=null,fU(a.K,null),a.N.u=null);hW(a)};
hW=function(a){if(a.W){if(a.D){var b=mF(a.u)&&a.u.Jc&&!a.u.isAd();SD(a.D,b)}a.W.dispose();a.W=null}};
qW=function(a){if(a.W)return a.W.qp;awa(a);return a.W?a.W.qp:null};
awa=function(a){if(mW(a,"html5_application_media_source"))a.V("requestmediasource",a);else{var b=g.Q(a.F.experiments,"html5_source_buffer_attach_retry_limit")||0;a.Nj<b&&a.Qh.start();try{var c=a.B.qt()}catch(d){if(hT(a.N,"html5.missingapi",{updateMs:"1"}))return;g.lr(d);d.message="window.URL object overwritten by external code";window.setTimeout(function(){throw d;},0);
a.Td("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1")}rW(a,c)}};
rW=function(a,b){bwa(a);a.W=b;eha(a.W,function(c){try{if(a.W&&(!c||a.W==c)){var d=a.getDuration();!d&&mF(a.u)&&(d=g.Q(a.F.experiments,"html5_manifestless_media_source_duration")||3600);a.W.isView()?(c=d,c>a.W.getDuration()&&oB(a.W,c)):oB(a.W,d);var e=a.D,f=a.W;e.da&&(RD(e),e.da=!1);QD(e);if(!pB(f)){var h=e.B.u.info.mimeType+e.u.sF,l=e.D.u.info.mimeType,m=new WA("fakesb"==l?new Fz:f.C.addSourceBuffer(l),Qv(l),!1),n=new WA("fakesb"==h?new Fz:f.C.addSourceBuffer(h),Qv(h),!0);f.u=m;f.B=n;g.C(f,m);g.C(f,
n)}oy(e.B,f.B);oy(e.D,f.u);e.C=f;e.resume();Zr(f.u,e.Lb,e);Zr(f.B,e.Lb,e);e.u.MG&&1E-4>=Math.random()&&e.gd("toff",""+f.u.supports(1),!0);e.sh();a.V("mediasourceattached");a.Qh.stop()}}catch(p){g.lr(p),a.handleError(new TA("fmt.unplayable",!0,{msi:"1",ename:p.name}))}})};
bwa=function(a){a.D?Lm(a.D.seek(a.getCurrentTime()-a.lc()),function(){}):$va(a)};
aV=function(a,b){b=void 0===b?!1:b;return Ba(new za(new wa(function(c){if(1==c.u)return a.D&&a.D.la()&&bV(a),a.V("newelementrequired"),b?g.ra(c,hV(a),2):c.Jd(2);g.T(a.C,8)&&a.playVideo();c.u=0})))};
cwa=function(a,b){a.sb("newelem",b);aV(a)};
nW=function(a){g.T(a.C,32)||(YV(a,dL(a.C,32)),g.T(a.C,8)&&a.pauseVideo(!0),a.V("beginseeking",a));sW(a)};
pW=function(a){g.T(a.C,32)?(YV(a,fL(a.C,16,32)),a.V("endseeking",a)):g.T(a.C,2)||YV(a,dL(a.C,16))};
jV=function(a,b){a.V("internalvideodatachange",void 0===b?"dataupdated":b,a,a.u)};
Wva=function(a){g.Gb("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.Pb.R(this.B,b,this.OP,this)},a);
a.F.Ji&&a.B.wk()&&(a.Pb.R(a.B,"webkitplaybacktargetavailabilitychanged",a.FM,a),a.Pb.R(a.B,"webkitcurrentplaybacktargetiswirelesschanged",a.GM,a))};
ewa=function(a){mW(a,"html5_enable_timeupdate_timeout")&&!a.u.isLivePlayback&&dwa(a)&&a.Rh.start()};
dwa=function(a){if(!a.B)return!1;var b=a.B.getCurrentTime();a=a.B.getDuration();return!!(1<b&&b>a-.3)};
gwa=function(a){window.clearInterval(a.wd);a.Qa.stop();a.u.vg=!0;a.F.vg=!0;a.F.ra=0;fwa(a);g.T(a.C,8)&&YV(a,eL(a.C,65));var b=a.I;b.u&&cua(b.u);if(b.B){b=b.B;var c=g.mT(b.provider);0>b.u&&(b.u=c,b.delay.start());b.B=c;b.D=c}a.Bf.xb();a.V("playbackstarted");g.sp()&&((a=g.Na("yt.scheduler.instance.clearPriorityThreshold"))?a():up(0))};
fwa=function(a){var b=a.getCurrentTime(),c=a.u;!JA("pbs",a.Z.timerName)&&KA.measure&&KA.getEntriesByName&&(KA.getEntriesByName("mark_nr")[0]?LA("mark_nr"):LA());c.videoId&&a.Z.info("docid",c.videoId);c.eventId&&a.Z.info("ei",c.eventId);c.clientPlaybackNonce&&a.Z.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.Z.info("start",c.startSeconds.toString());a.B&&a.B.xk()&&a.Z.info("paused",1);c.La?a.Z.info("fmt",wu(c.La)):a.Z.info("fmt","-1");c.Fn&&a.Z.info("yt_pre",a.Li?"2":"1");a.ba.isFullscreen()&&
a.Z.info("yt_fs","1");a.Z.info("cmt",b.toFixed(3));if(a.D){b=a.D.za;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.D),c.length&&(c=c[0],b.Ne("vri",c.fetchStart),b.Ne("vdns",c.domainLookupEnd),b.Ne("vreq",c.requestStart),b.Ne("fvb",c.responseStart),b.Ne("vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.u),c.length&&(c=c[0],b.Ne("ari",c.fetchStart),b.Ne("adns",c.domainLookupEnd),b.Ne("areq",c.requestStart),b.Ne("avb",c.responseStart),
b.Ne("arc",c.responseEnd)));b=b.F;for(var d in b)a.Z.tick(d,b[d])}};
sW=function(a,b){b=void 0===b?!1:b;if(a.B&&a.u){var c=a.K,d=a.C.Gb(),e=c.getCurrentTime(),f=c.isAtLiveHead(e);if(c.W&&f){var h=c.W;if(h.u&&!(e>=h.B&&e<h.C)){var l=h.u.eh(e);-1!=l&&(h.B=h.u.Ce(l),h.C=h.B+h.u.getDuration(l),l=g.A()/1E3-h.u.ue(l),l-=h.F(),h.D.add(l))}}c.B&&(f&&(f=c.B,h=c.u?zS(c.u):0,f.D++,3>f.D||g.A()-f.K<f.policy.P||(f.K=g.A(),f.B.push(h),50<f.B.length&&f.B.shift())),f=c.B,yua(f,e,void 0===d?!0:d),zua(f,e),d&&Cua(c,!0));c=a.getCurrentTime();!a.D||g.T(a.C,4)&&g.GF(a.u)||(d=a.D,e=c,d.C&&
d.C.B&&(e-=!isNaN(d.ea)&&d.u.xc?d.ea:0,d.I!=e&&d.resume(),d.N.C&&!qB(d.C)&&(f=d.I<=e&&e<d.I+10,h=iy(d.C.B.Ue(),d.I+$D),f&&h&&(d.N.C=!1)),d.N.C||(d.I=e),d.xc.xb()));5<c&&(a.K.K=c);(d=g.sp())?g.tp(a.Ja):g.Ho(a.Ja);!g.iL(a.C)&&a.B.xk()||g.T(a.C,128)||(e=(0,g.z)(a.lJ,a),0==a.B.ul().length?a.Ja=d?g.qp(e,100):g.Fo(e,100):a.Ja=d?g.qp(e,500):g.Fo(e,500));a.u.Wj=c;!b&&a.C.Gb()&&(a.I.Vd(),a.u.isLivePlayback&&g.A()>a.Ni+6283&&(!a.isAtLiveHead()||a.u.ma&&Vz(a.u.ma)||(c=a.I,c.qoe&&(c=c.qoe,e=c.provider.D(),d=
g.mT(c.provider),Hta(c,d,e),e=e.F,isNaN(e)||g.pT(c,d,"e2el",[e.toFixed(3)]))),g.mC(a.F)&&a.sb("rawlat","l."+pU(a.za,"rawlivelatency").toFixed(3)),a.Ni=g.A()),a.u.La&&Wv(a.u.La)&&(c=oI(a))&&c.videoHeight!=a.Ff&&(a.Ff=c.videoHeight,cW(a,"a",Yva(a,a.u.Gg))));xta(a.da,a.X,a.B,a.ba.isBackground())&&ZU(a);c=a.da;d=a.u.La;0>=g.Q(c.u.experiments,"hfr_dropped_framerate_fallback_threshold")||!(d&&d.Ka()&&32<d.Ka().fps)?c=!1:3<=c.C?(c.C=0,c=!0):c=!1;c&&(a.I.onError("qoe.restart","droprate."+a.da.K),a.F.D.I=
!1,dV(a));!mW(a,"html5_check_ads_abnormality_killswitch")&&a.u.isAd()&&a.N&&a.I&&a.B&&((c=a.N,f=g.mT(a.I.provider),h=a.B.getCurrentTime(),e=a.getDuration(),(d=g.T(a.C,8))&&!c.C)?(c.C=f,c.F=h||0):(c.C&&(f-=c.C,5<=f&&(h-=c.F,e-=c.F,f>=5*h||f>=e+5))&&(e="wt."+f.toFixed(3)+".mpt."+h.toFixed(3)+(".dl."+e.toFixed(3)),iT(c,"slowads",e),c.videoData.ca("html5_report_slow_ads_as_error")&&c.V("playererror","fmt.unplayable","GENERIC_WITHOUT_LINK","slowads."+e)),d||(c.C=NaN,c.F=0)));a.V("progresssync",a,b)}};
Yva=function(a,b){if("auto"==b.La.Ka().quality&&Wv(b.te())&&a.u.Bj)for(var c=g.q(a.u.Bj),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()==a.Ff&&"auto"!=d.La.Ka().quality)return d.te();return b.te()};
YV=function(a,b){if(!g.gL(a.C,b)){var c=new g.vI(b,a.C);a.C=b;hwa(a);var d=!a.ce.length;a.ce.push(c);var e=a.B&&a.B.wp();g.xI(c,1)&&!g.T(c.xj,16)&&!e&&g.T(a.C,8)&&!g.T(a.C,64)&&a.D&&(a.D.Aa=!0,a.B&&5<=zS(a.B)&&((e=g.Q(a.F.experiments,"html5_non_network_rebuffer_duration_ms"))?a.Lj.start(e):vta(a.da,a.X)&&ZU(a)));(e=g.Q(a.F.experiments,"html5_ad_timeout_ms"))&&a.u.isAd()&&g.T(b,1)&&(g.T(b,8)||g.T(b,16))?a.Af.start(e):a.Af.stop();(0>wI(c,8)||g.xI(c,1024))&&a.Qa.stop();!g.xI(c,8)||a.u.vg||g.T(c.state,
1024)||a.Qa.start();g.T(c.state,8)&&0>wI(c,16)&&!g.T(c.state,32)&&!g.T(c.state,2)&&a.playVideo();g.T(c.state,2)&&HF(a.u)&&(e=a.getCurrentTime(),a.u.lengthSeconds!=e&&(a.u.lengthSeconds=e,jV(a)),sW(a,!0));g.xI(c,2)&&a.qy(!0);g.xI(c,128)&&a.Ch();a.u.ma&&a.u.isLivePlayback&&!a.Oj&&(0>wI(c,8)?(e=a.u.ma,e.D&&e.D.stop()):g.xI(c,8)&&a.u.ma.resume());a.K.Vb(c);a.I.Vb(c);if(d&&!a.la())try{for(var f=g.q(a.ce),h=f.next();!h.done;h=f.next()){var l=h.value;a.ea.Vb(l);a.V("statechange",l)}}finally{a.ce.length=
0}}};
tW=function(a,b){g.T(a.C,128)||(YV(a,fL(a.C,1028,9)),a.sb("dompaused",b),a.V("onDompaused"))};
iV=function(a){if(!a.B||!a.u.Ia)return!1;var b=null;a.u.Ia.wc()?(b=qW(a),a.D.resume()):(bV(a),a.u.Gg&&(b=a.u.Gg.yp()));var c=b;var d=a.B.vt();b=!1;d&&null!==c&&c.u===d.u||(a.Z.tick("vta"),MA("vta","video_to_ad"),0<a.getCurrentTime()&&(b=a.getCurrentTime(),a.K.K=b),a.B.ln(c),a.W&&up(4),!a.u.vg&&g.hL(a.C)&&a.Qa.start(),b=!0);g.T(a.C,2)||(c=a.K,c.N||!(0<c.K)||c.u&&0<c.u.getCurrentTime()||c.seekTo(c.K));a:if(c=b,g.xF(a.u)&&a.B)if((d=a.u.Vc)&&a.B.wk()){var e=a.B.Ma();if(a.P)if(e!=a.P.element)cV(a);else if(c&&
"fairplay"==d.flavor&&!ck())cV(a);else break a;a.P=new aT(e,a.u,a.F);a.P.subscribe("licenseerror",a.JN,a);a.P.subscribe("qualitychange",a.LN,a);a.P.subscribe("heartbeatparams",a.FN,a);a.P.subscribe("keystatuseschange",a.HN,a);a.P.subscribe("hdproberequired",a.KN,a);a.P.subscribe("ctmp",a.sb,a);c=g.q(a.yb.keys);for(d=c.next();!d.done;d=c.next())d=a.yb.get(d.value),Wsa(a.P,d);mW(a,"html5_eme_loader_sync")||(a=a.yb,a.keys=[],a.values=[])}else a.Td("fmt.unplayable","HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"drm.1");return b};
cV=function(a){a.P&&(a.P.dispose(),a.P=null)};
uW=function(a,b){b=void 0===b?!1:b;return a.u.isLivePlayback&&(a.isAtLiveHead()&&(mW(a,"html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.T(a.C,4))||iU(a.K)||g.GF(a.u))?a.getCurrentTime():oW(a,b)};
oW=function(a,b){return a.K.Ad(void 0===b?!1:b)};
g.iwa=function(a,b){(a.Df=b)||a.Qa.stop();if(a.u.ma)if(b)a.u.ma.resume();else{var c=a.u.ma;c.D&&c.D.stop()}g.R(a.F.experiments,"html5_suspend_loader")&&a.D&&(b?a.D.resume():iW(a,!0));g.R(a.F.experiments,"html5_fludd_suspend")&&(g.T(a.C,2)||b?g.T(a.C,512)&&b&&YV(a,eL(a.C,512)):YV(a,dL(a.C,512)));c=a.I;c.qoe&&(c=c.qoe,g.pT(c,g.mT(c.provider),"stream",[b?"A":"I"]))};
Pva=function(a){a.B&&(a.W?(cV(a),hW(a),qW(a)):(a.u.Gg&&a.u.Gg.py(),a.B.stopVideo()),a.playVideo())};
vW=function(a,b){g.R(a.F.experiments,"html5_log_rebuffer_reason")&&a.sb("bufreason","r."+b+";lact."+zp())};
wW=function(a,b,c,d,e,f){f?(a=a.I,a.qoe&&Mta(a.qoe,b,c,d,e,1),""===c&&(c=a.provider.videoData.videoId),a.C.has(c)?(b=a.C.get(c),b.C&&isNaN(b.B)&&JT(b,!1)):(d=new HT(a.provider),d.I=c,d.F=b,g.C(a,d),a.C.set(c,d),cua(d)),a.currentVideoId=c):(a=a.I,a.qoe&&Mta(a.qoe,b,c,d,e,0),""===c&&(c=a.provider.videoData.videoId),a.C.has(c)?(b=a.C.get(c),MT(b).send(),g.Ho(b.B),b.B=NaN):g.Eo(new Iq("Vss is not created when exiting the ads on SS DAI with cpn ",b)))};
jwa=function(a,b){if(a.u.Cj){var c=g.Q(a.F.experiments,"html5_log_rebuffer_events");if(c&&a.B){var d=a.B.jb();d.rt=(1E3*g.mT(a.I.provider)).toFixed();d.e=b.substr(0,3);a.ae[a.Mj++%c]=d}}};
hwa=function(a){if(a.u.Cj){a.ae.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.q(a.ae),c=b.next();!c.done;c=b.next())c=c.value,a.sb("vpe","t."+c.rt+";"+g.UA(c));a.ae=[];a.Mj=0}};
aW=function(a,b){a.sb("seekreason",b)};
kwa=function(a){if(Xj("cobalt")&&Xj("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.sb("nxdock",""+ +b)}};
mW=function(a,b){return g.R(a.F.experiments,b)};
lwa=function(a,b,c,d,e){a.sb("xvt","m."+b+";g.1;tt."+(c?1:0)+";np."+(d?1:0)+";c."+e)};
iW=function(a,b){PD(a.D,b||Zva(a))};
Zva=function(a){var b=mW(a,"disable_prefetch_when_ad_pending_for_living_room")&&g.$B(a.F),c=mW(a,"disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.nb(a.ha,"ad")};
Tva=function(a){if(gF(a.u,"html5_set_debugging_opt_in")&&(a=g.Mr.getInstance(),!g.Or(0,183))){var b="f"+(Math.floor(183/31)+1),c=Nr(b)||0;c|=268435456;0==c?delete Lr[b]:(c=c.toString(16),Lr[b]=c.toString());a.save()}};
xW=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.Ld("/sharing_services",a);g.at(d)};
mwa=function(a,b){var c={commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",url:"/service_ajax",sendPost:!0}},playlistEditEndpoint:{playlistId:"WL",actions:b}},d={list_id:"WL"};c=tU(g.BU(),c);Jm(c.then(function(e){if(e&&"STATUS_SUCCEEDED"===e.status){if(a.onSuccess)a.onSuccess({},d)}else if(a.onError)a.onError({},d)}),function(){a.Mf&&a.Mf({},d)})};
owa=function(a,b,c){g.uo("web_classic_playlist_one_platform_update")?mwa(a,[{addedVideoId:a.videoIds,action:"ACTION_ADD_VIDEO"}]):nwa("add_to_watch_later_list",a,b,c)};
pwa=function(a,b,c){g.uo("web_classic_playlist_one_platform_update")?mwa(a,[{removedVideoId:a.videoIds,action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID"}]):nwa("delete_from_watch_later_list",a,b,c)};
nwa=function(a,b,c,d){g.oq(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",Og:{feature:b.feature||null,authuser:b.kd||null,pageid:b.pageId||null},dc:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.yW||null,add_to_playlists:b.bW||null,plid:g.L("PLAYBACK_ID")||null},context:b.context,onError:b.onError,onSuccess:function(e,f){b.onSuccess.call(this,e,f)},
Mf:b.Mf,withCredentials:!!d})};
g.rwa=function(a,b,c){b=qwa(null,b,c);if(b=window.open(b,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes",!0))c=g.No("LOGGED_IN",function(d){g.Oo(g.L("LOGGED_IN_PUBSUB_KEY",void 0));ro("LOGGED_IN",!0);a(d)}),ro("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
qwa=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=Id(c,"mode",a));a=Id(d,"next",c);b&&(a=Id(a,"feature",b));return a};
yW=function(){};
zW=function(){};
twa=function(){var a,b,c=navigator;return(null===(a=c.storage)||void 0===a?0:a.estimate)?new zm(function(d){c.storage.estimate().then(function(e){d(e)})}):(null===(b=c.webkitTemporaryStorage)||void 0===b?0:b.u)?swa():Dm(void 0)};
swa=function(){var a=navigator;return new zm(function(b,c){var d;null!==(d=a.webkitTemporaryStorage)&&void 0!==d&&d.u?a.webkitTemporaryStorage.u(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
Kq=function(a,b,c){var d=this;this.Gw=a;this.handleError=b;this.u=c;this.B=!1;void 0===self.document||self.addEventListener("beforeunload",function(){d.B=!0})};
Nq=function(a){var b=Jq;if(a instanceof Pq)switch(a.type){case "UNKNOWN_ABORT":case "QUOTA_EXCEEDED":case "QUOTA_MAYBE_EXCEEDED":b.Gw(a);break;case "EXPLICIT_ABORT":a.sampleWeight=0;break;default:b.handleError(a)}else b.handleError(a)};
vwa=function(a){twa().then(function(b){a.u("idbQuotaExceeded",{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:uwa(null===b||void 0===b?void 0:b.usage),deviceStorageQuotaMbytes:uwa(null===b||void 0===b?void 0:b.quota)})})};
uwa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
wwa=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 AW(a)};
AW=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;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c};
xwa=function(a,b,c,d){if(g.Sa(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
DW=function(a,b,c){var d=this;this.api=a;this.player=b;this.player.subscribe("localmediachange",this.u,this);this.B=c;Gfa().then(function(){var e=lw(2);e=g.q(e);for(var f=e.next();!f.done;f=e.next())f=f.value,BW(d,f)||mw(f,3);CW(d)})};
EW=function(a,b){var c=jw(b);if(1===c||0===c)return Promise.resolve();c=BW(a,b);c===a.player?(a.player.stopVideo(),c=a.player,c.D&&kE(c.D)):c&&(c.D&&kE(c.D),sF(c.getVideoData(),!1));return yw(b)};
ywa=function(a,b){var c,d;return g.Ue(a,function f(){var h,l,m;return g.Aa(f,function(n){if(1==n.u)return g.ra(n,Nfa(b),2);h=n.B;if(!h)return n["return"](null);l=h.timestampSecs;m=null===(d=null===(c=h.player)||void 0===c?void 0:c.offlineState)||void 0===d?void 0:d.expiresInSeconds;return!m||l+m<=Math.floor(Date.now()/1E3)?n["return"](null):n["return"](h.player)})})};
BW=function(a,b){var c=a.api.Tb(),d=c?c.getVideoData():null;return c&&(null===d||void 0===d?0:SF(d))&&d.videoId===b?c:a.player.getVideoData().videoId===b?a.player:null};
Bwa=function(a,b){mw(b,2);var c=zwa(a,{videoId:b,download_media:!0,download_media_in_bg:!0,start:Infinity});c.subscribe("dataloaded",function(){return void Awa(a,c)});
a.player.Dh(c,a.B);gV(a.player,!1)};
zwa=function(a,b){return new g.UE(a.player.T(),b)};
CW=function(a){if(g.R(a.api.T().experiments,"hoffle_api"))0<lw(2).length||(b=lw(3),0<b.length&&Bwa(a,b[0]));else{a=g.q(lw(3));for(var b=a.next();!b.done;b=a.next())yw(b.value)}};
Awa=function(a,b){if(g.R(a.api.T().experiments,"hoffle_api")){var c=b.getPlayerResponse();if(c&&c.videoDetails&&c.videoDetails.videoId){var d=c.videoDetails.videoId,e=c.videoDetails;e={videoId:d,title:e.title,lengthSeconds:e.lengthSeconds,thumbnail:e.thumbnail,viewCount:e.viewCount,author:e.author};Ifa(e.videoId,e);Kfa(d,c)}}};
GW=function(a,b){g.B.call(this);var c=this;this.app=a;this.playerType=b;this.u=!0;this.element=null;this.F={};this.K={};this.B={};this.N=[];this.I={};this.D={};this.C=null;this.W=new Set;FW(this,"cueVideoById",this.cueVideoById);FW(this,"loadVideoById",this.loadVideoById);FW(this,"cueVideoByUrl",this.cueVideoByUrl);FW(this,"loadVideoByUrl",this.loadVideoByUrl);FW(this,"playVideo",this.playVideo);FW(this,"pauseVideo",this.pauseVideo);FW(this,"stopVideo",this.stopVideo);FW(this,"clearVideo",this.clearVideo);
FW(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);FW(this,"getVideoBytesTotal",this.getVideoBytesTotal);FW(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);FW(this,"getVideoStartBytes",this.getVideoStartBytes);FW(this,"cuePlaylist",this.cuePlaylist);FW(this,"loadPlaylist",this.loadPlaylist);FW(this,"nextVideo",this.nextVideo);FW(this,"previousVideo",this.previousVideo);FW(this,"playVideoAt",this.playVideoAt);FW(this,"setShuffle",this.setShuffle);FW(this,"setLoop",this.setLoop);FW(this,
"getPlaylist",this.OI);FW(this,"getPlaylistIndex",this.getPlaylistIndex);FW(this,"getPlaylistId",this.getPlaylistId);FW(this,"loadModule",this.loadModule);FW(this,"unloadModule",this.unloadModule);FW(this,"setOption",this.setOption);FW(this,"getOption",this.getOption);FW(this,"getOptions",this.getOptions);FW(this,"mute",this.mute);FW(this,"unMute",this.unMute);FW(this,"isMuted",this.isMuted);FW(this,"setVolume",this.setVolume);FW(this,"getVolume",this.getVolume);FW(this,"seekTo",this.seekTo);FW(this,
"getPlayerState",this.getPlayerState);FW(this,"getPlaybackRate",this.getPlaybackRate);FW(this,"setPlaybackRate",this.setPlaybackRate);FW(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);FW(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
FW(this,"setPlaybackQuality",this.setPlaybackQuality);FW(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);FW(this,"getCurrentTime",this.getCurrentTime);FW(this,"getDuration",this.getDuration);FW(this,"addEventListener",this.RH);FW(this,"removeEventListener",this.wQ);FW(this,"getDebugText",this.getDebugText);FW(this,"getVideoData",function(){return c.gs()});
FW(this,"addCueRange",this.addCueRange);FW(this,"removeCueRange",this.removeCueRange);FW(this,"setSize",this.setSize);FW(this,"getApiInterface",this.getApiInterface);FW(this,"destroy",this.destroy);FW(this,"showVideoInfo",this.showVideoInfo);FW(this,"hideVideoInfo",this.hideVideoInfo);FW(this,"isVideoInfoVisible",this.isVideoInfoVisible);FW(this,"getSphericalProperties",this.getSphericalProperties);FW(this,"setSphericalProperties",this.setSphericalProperties);this.app.T().I||(FW(this,"getVideoEmbedCode",
this.getVideoEmbedCode),FW(this,"getVideoUrl",this.getVideoUrl));FW(this,"getMediaReferenceTime",this.getMediaReferenceTime);Y(this,"getInternalApiInterface",this.getInternalApiInterface);Y(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);Y(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);Y(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);Y(this,"getAdState",this.getAdState);Y(this,"sendAbandonmentPing",this.sendAbandonmentPing);Y(this,"setLoopRange",this.setLoopRange);
Y(this,"getLoopRange",this.getLoopRange);Y(this,"setAutonavState",this.setAutonavState);Y(this,"seekToLiveHead",this.seekToLiveHead);Y(this,"seekToStreamTime",this.seekToStreamTime);Y(this,"getStreamTimeOffset",this.getStreamTimeOffset);Y(this,"getVideoData",this.gs);Y(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);Y(this,"deleteLocalMediaById",this.deleteLocalMediaById);Y(this,"deleteAllLocalMedia",this.deleteAllLocalMedia);Y(this,"cancelPendingLocalMediaById",this.cancelPendingLocalMediaById);
Y(this,"fetchLocalMedia",this.fetchLocalMedia);Y(this,"fetchLocalMediaById",this.fetchLocalMediaById);Y(this,"getLocalPlayerResponse",this.getLocalPlayerResponse);Y(this,"getLocalMediaInfoById",this.getLocalMediaInfoById);Y(this,"getAllLocalMediaInfo",this.getAllLocalMediaInfo);Y(this,"getAppState",this.getAppState);Y(this,"addInfoCardXml",this.addInfoCardXml);Y(this,"updateLastActiveTime",this.updateLastActiveTime);Y(this,"setBlackout",this.setBlackout);Y(this,"setAccountLinkState",this.setAccountLinkState);
Y(this,"updateAccountLinkingConfig",this.updateAccountLinkingConfig);Y(this,"setUserEngagement",this.setUserEngagement);Y(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);Y(this,"setFauxFullscreen",this.setFauxFullscreen);Y(this,"setUseFastSizingOnWatch",this.setUseFastSizingOnWatch);Y(this,"getPresentingPlayerType",this.getPresentingPlayerType);Y(this,"canPlayType",this.canPlayType);Y(this,"updatePlaylist",this.updatePlaylist);Y(this,"updateVideoData",this.updateVideoData);Y(this,
"updateEnvironmentData",this.updateEnvironmentData);Y(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);Y(this,"setCardsVisible",this.setCardsVisible);Y(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);Y(this,"setSafetyMode",this.setSafetyMode);Y(this,"isAtLiveHead",function(d){c.isAtLiveHead(void 0,d)});
Y(this,"getVideoAspectRatio",this.getVideoAspectRatio);Y(this,"getPreferredQuality",this.getPreferredQuality);Y(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);Y(this,"onAdUxClicked",this.onAdUxClicked);Y(this,"getFeedbackProductData",this.getFeedbackProductData);Y(this,"getStoryboardFrame",this.getStoryboardFrame);Y(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);Y(this,"getStoryboardLevel",this.getStoryboardLevel);Y(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
Y(this,"setAutonav",this.setAutonav);Y(this,"isNotServable",this.isNotServable);Y(this,"channelSubscribed",this.channelSubscribed);Y(this,"channelUnsubscribed",this.channelUnsubscribed);Y(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);Y(this,"togglePictureInPicture",this.togglePictureInPicture);Y(this,"supportsGaplessAudio",this.supportsGaplessAudio);Y(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
Y(this,"clearQueue",this.clearQueue);Y(this,"isFastLoad",function(){return!1});
Y(this,"getPlayerResponse",this.getPlayerResponse);Y(this,"getAudioTrack",this.uI);Y(this,"setAudioTrack",this.setAudioTrack);Y(this,"getAvailableAudioTracks",this.vI);Y(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);Y(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);Y(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);Y(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);Y(this,"setMinimized",this.setMinimized);Y(this,"confirmYpcRental",
this.confirmYpcRental);Y(this,"handleExternalCall",this.handleExternalCall);Y(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);Y(this,"getStatsForNerds",this.getStatsForNerds);Y(this,"setScreenLayer",this.setScreenLayer);Y(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);Y(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);Y(this,"forceFrescaUpdate",this.forceFrescaUpdate);Y(this,"shouldSendVisibilityState",this.shouldSendVisibilityState);Y(this,"updateFullerscreenEduButtonVisibility",
this.updateFullerscreenEduButtonVisibility);Y(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);Y(this,"setGlobalCrop",this.setGlobalCrop);Y(this,"getVisibilityState",this.getVisibilityState);Y(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);Y(this,"setInternalSize",this.setInternalSize)};
FW=function(a,b,c){a.F[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)};
a.B.hasOwnProperty(b)||Y(a,b,c);a.N.push(b)};
HW=function(a,b,c){a.K[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)};
a.B.hasOwnProperty(b)||Y(a,b,c);a.N.push(b)};
Y=function(a,b,c){a.B[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)}};
jM=function(a){a.C||(a.C={},g.Xa(a.C,a.F),g.Xa(a.C,a.K),a.C.addEventListener=function(b,c){Cwa(a,b,c)},a.C.removeEventListener=function(b,c){var d="string"===typeof c?b+c:b+String(g.Ua(c)),e=a.D[d];
e&&(a.app.ra.unsubscribe(b,e),e=a.D,d in e&&delete e[d])});
return a.C};
Cwa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Ua(c));if(!a.D[d]){var e;"string"===typeof c?e=function(h){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];g.Na(c).apply(window,l)}:e=c;
var f=function(h){e({target:a.C,data:h})};
a.D[d]=f;a.app.ra.subscribe(b,f)}};
Dwa=function(a,b,c){b=g.be(Math.floor(b),0,100);isFinite(b)&&IW(a.app,{volume:b,muted:a.isMuted()},c)};
Ewa=function(a,b){IW(a.app,{muted:!0,volume:a.getVolume()},b)};
Fwa=function(a,b){IW(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.JW=function(a){var b=Gwa(a.app.D);if(b)return b.chrome;a=a.app.D;a=g.UB(a.J.T())?a.Ec.get("music"):void 0;return a?a.chrome:null};
LW=function(a,b){GW.call(this,a,b);var c=this;this.u=!1;HW(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars(KW(c,d),e)});
HW(this,"loadVideoByPlayerVars",function(d,e,f,h){c.loadVideoByPlayerVars(KW(c,d),e,f,h)});
HW(this,"preloadVideoByPlayerVars",function(d,e,f,h){return void c.preloadVideoByPlayerVars(KW(c,d),e,f,h)});
HW(this,"seekBy",this.seekBy);HW(this,"mutedAutoplay",this.mutedAutoplay);HW(this,"showControls",this.showControls);HW(this,"hideControls",this.hideControls);HW(this,"cancelPlayback",this.cancelPlayback);HW(this,"getProgressState",this.getProgressState);HW(this,"isInline",this.isInline);HW(this,"setInline",this.setInline);HW(this,"getStoryboardFormat",this.getStoryboardFormat);HW(this,"getVideoContentRect",this.getVideoContentRect);HW(this,"toggleFullscreen",this.toggleFullscreen);HW(this,"isFullscreen",
this.isFullscreen);HW(this,"getVideoStats",this.getVideoStats);HW(this,"getPlayerSize",this.getPlayerSize);HW(this,"toggleSubtitles",this.toggleSubtitles);HW(this,"setCenterCrop",this.setCenterCrop);HW(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);HW(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);HW(this,"setSizeStyle",this.setSizeStyle);HW(this,"wakeUpControls",this.wakeUpControls)};
KW=function(a,b){var c={};if(a.app.T().P)for(var d=g.q(Hwa),e=d.next();!e.done;e=d.next())e=e.value,b.hasOwnProperty(e)&&(c[e]=b[e]);else for(d=g.q(Iwa),e=d.next();!e.done;e=d.next())e=e.value,b.hasOwnProperty(e)&&(c[e]=b[e]);return c};
MW=function(a){LW.call(this,a);this.P=null};
g.NW=function(a){return a.app.D};
g.OW=function(a){a=g.NW(a).Ec.get("endscreen");return!!a&&a.TC()};
PW=function(a){a=g.NW(a);var b=a.Ec.get("endscreen");return b&&b.UC()?!0:a.jq()||g.UB(a.J.T())};
g.QW=function(a,b){3===a.getPresentingPlayerType()?a.V("mdxautoplaycancel"):a.V("autonavcancel",b)};
g.lI=function(a,b){return Jwa(a.app,b)};
g.pG=function(a){return a.app.template};
g.SW=function(a){var b=g.RW(g.NW(a));return a.app.X&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.gi()||!!a.getPlaylist()};
g.TW=function(a,b,c){a.app.C.handleError(new TA(b,!1,c))};
g.VW=function(a){return(a=g.UW(g.NW(a)))?a.XJ():{}};
g.XW=function(a){a=g.WW(g.NW(a));return!!a&&a.vp()};
g.YW=function(a){a=g.WW(g.NW(a));return!!a&&a.SC()};
$W=function(a){a=ZW(g.NW(a));return!!a&&a.UJ()};
aX=function(a){a=g.NW(a).Ec.get("heartbeat");return!!a&&a.VJ()};
g.GM=function(a,b,c){Kwa(a.app,b,c)};
g.cX=function(a,b,c){a=a.app;var d=g.Z(a,c);d&&(b=FD(d.ea,b),c&&a.getPresentingPlayerType()!==c||bX(a,"cuerangesremoved",b))};
g.dX=function(a,b,c){(a=g.Z(a.app,c))&&eW(a,b)};
g.Lwa=function(a){a=(a=a.getVideoData())&&a.La;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.Mwa=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.If)};
g.oP=function(a,b,c){a=g.pG(a).element;var d=Bb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.Ie(a,b,d);b.setAttribute("data-layer",String(c))};
g.eX=function(a){var b=a.T();if(!b.ob)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.Kc&&f;return!c.ypcPreview&&(!d||e)&&!g.nb(c.me,"ypc")&&!a&&(!g.LB(b)||f)};
g.fX=function(a,b,c,d,e){a.T().da&&Nwa(a.app.Aa,b,c,d,void 0===e?!1:e)};
g.$M=function(a,b,c,d){a.T().da&&Owa(a.app.Aa,b,c,void 0===d?!1:d)};
g.aN=function(a,b,c){a.T().da&&(a.app.Aa.elements.has(b),c&&(b.visualElement=g.ls(c)))};
g.gX=function(a,b,c){a.T().da&&a.app.Aa.click(b,c)};
g.dN=function(a,b,c,d){if(a.T().da){a=a.app.Aa;a.elements.has(b);c?a.u.add(b):a.u["delete"](b);var e=g.rs(),f=b.visualElement;a.B.has(b)?e&&f&&(c?g.Os(e,[f]):g.Ps(e,[f])):c&&!a.C.has(b)&&(e&&f&&g.Js(e,f,d),a.C.add(b))}};
g.cN=function(a,b){return a.T().da?a.app.Aa.elements.has(b):!1};
g.FM=function(a,b){if(a.app.getPresentingPlayerType()===b){var c=a.app,d=g.Z(c,b);d&&(d.getPlayerType(),d.getVideoData(),d!==c.C?hX(c,c.C):Pwa(c))}};
ura=function(a,b,c){c=void 0===c?Infinity:c;a=a.app;b=void 0===b?-1:b;b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.W?iX(a.W,b,c):jX(a.ka,b,c)};
oG=function(a){a=a.app;var b=g.Z(a,void 0);if(b){a=kX(a,b);b=oW(a);var c=a.getCurrentTime(),d;(d=!a.u.isLivePlayback)||(d=a.K,d=!(d.B&&d.B.C));a=d||iU(a.K)||isNaN(b)||isNaN(c)?0:Math.max(0,b-c)}else a=0;return a};
Qwa=function(a){if(!a.ca("html5_inline_video_quality_survey"))return!1;var b=g.Z(a.app);if(!b)return!1;var c=b.getVideoData();if(!c.La||!c.La.video||1080>c.La.video.yc||c.eC)return!1;var d=/^qsa/.test(c.clientPlaybackNonce),e="r";0<=c.La.id.indexOf(";")&&(d=/^[a-p]/.test(c.clientPlaybackNonce),e="x");a.ca("html5_inline_video_quality_survey_always")&&(d=!0,e="a");return d?(b.sb("iqss",e,!0),!0):!1};
Swa=function(a,b){return g.Ue(this,function d(){var e,f,h,l;return g.Aa(d,function(m){if(1==m.u){e=g.BU();var n=a.T(),p={context:DT(a)};n=n.embedConfig;var r=a.videoId,t=a.playlistId?a.playlistId:b.list;if(t){t={playlistId:t};var w=a.playlistIndex;t.playlistIndex=String(w?w:1);t.videoId=r?r:"";n&&(t.serializedThirdPartyEmbedConfig=n);p.playlistRequest=t}else b.playlist?(r={templistVideoIds:b.playlist.toString().split(",")},n&&(r.serializedThirdPartyEmbedConfig=n),p.playlistRequest=r):r&&(r={videoId:r},
n&&(r.serializedThirdPartyEmbedConfig=n),p.singleVideoRequest=r);f=p;h=g.sU(Rwa);return g.ra(m,g.sG(e,f,h),2)}l=m.B;a.Oe({raw_embedded_player_response:l},!1);m.u=0})})};
g.lX=function(a,b){return Xv(a.info.mimeType)?b?wu(a.info)===b:!0:!1};
g.Twa=function(a,b){if(null!=a.ma&&g.mC(b.T())&&!a.ma.isManifestless&&null!=a.ma.u.rawcc)return!0;if(!a.Bg())return!1;var c=!!a.ma&&a.ma.isManifestless&&Object.values(a.ma.u).some(function(e){return g.lX(e,"386")}),d=!!a.ma&&!a.ma.isManifestless&&Fga(a.ma);
return c||d};
mX=function(a,b){g.B.call(this);this.J=a;this.F=b;this.u={};this.B={};this.C=null;this.Ec=new Map;this.D=g.R(a.T().experiments,"web_player_defer_modules")};
g.nX=function(a){return a.Ec.get("captions")};
Xwa=function(a,b){switch(b){case "ad":return oX(a);case "annotations_module":return a.RF();case "attribution":var c=a.J.T();return g.R(c.experiments,"web_player_show_music_in_this_video")&&"desktop-polymer"===c.playerStyle;case "creatorendscreen":return c=a.J.T(),"3"===c.controlsType?c=!1:"creator-endscreen-editor"===c.playerStyle?c=!0:(c=a.J.getVideoData(),c=!!c&&(!!g.IF(c)||!!g.JF(c))),c;case "embed":return g.LB(a.J.T());case "endscreen":return g.Uwa(a);case "fresca":return a.zy();case "heartbeat":return a.Ay();
case "kids":return bC(a.J.T());case "remote":return a.J.T().wd;case "miniplayer":return a.J.T().showMiniplayerUiWhenMinimized;case "music":return g.UB(a.J.T());case "captions":return c=a.J.getVideoData(),!!c.uo||!!c.captionTracks.length||g.Twa(c,a.J);case "unplugged":return g.aC(a.J.T());case "ux":return a.J.T().Qa;case "visualizer":return g.Vwa(a);case "webgl":return Wwa(a);case "ypc":return a.jq();case "ypc_clickwrap":return c=a.J.getVideoData(),c.ao&&!c.Uw;case "yto":return!!a.J.getVideoData().me.includes("yto");
default:return g.kr(Error("Module descriptor "+b+" does not match")),!1}};
pX=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;var f=a.Ec.get(b);if(!f||e)if(c||(c=function(){pX(a,b,void 0,d,e)}),f=f||Ywa(a,b,c,Xwa(a,b)))a.Ec.set(b,f),f.create(),d&&a.J.va("onApiChange")};
Zwa=function(a){a.D&&(pX(a,"endscreen"),a.Kv(),pX(a,"creatorendscreen",void 0,!0))};
g.Uwa=function(a){var b=a.J.T();if(g.vC(b)||b.I||!b.nb&&!b.Lc)return!1;var c=a.J.getPresentingPlayerType();if(2===c)return!1;if(3===c)return g.R(b.experiments,"desktop_enable_autoplay");a=a.J.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||g.R(b.experiments,"allow_poltergust_autoplay");c=a.isLivePlayback&&(!g.R(b.experiments,"allow_live_autoplay")||!c);b=a.isLivePlayback&&g.R(b.experiments,"allow_live_autoplay_on_mweb");return!c||b};
g.UW=function(a){return a.Ec.get("webgl")};
Wwa=function(a){var b=a.J.getVideoData(),c=a.J.T().experiments,d=g.fk(),e=g.R(c,"enable_spherical_kabuki");a=g.tC(a.J.T());if(b.ij())return d||e||a||g.R(c,"html5_enable_spherical");if(b.mj())return a||d||e||g.R(c,"html5_enable_spherical");if(b.nj())return a||d||g.R(c,"html5_enable_spherical3d");if(b.Ym())return a||g.R(c,"html5_enable_anaglyph3d")||!1;d=b.La&&b.La.video&&Ov(b.La.video);return a&&!g.xF(b)&&!b.isVisualizerEligible&&!d&&(g.R(c,"enable_webgl_noop")||g.R(c,"html5_enable_bicubicsharp")||
g.R(c,"html5_enable_smartsharp"))};
$wa=function(a){g.R(a.J.T().experiments,"web_player_ux_module_wait")&&a.Ec.get("ux")&&g.dX(a.J,"ux")};
axa=function(a){$wa(a);pX(a,"ux",void 0,!0)};
oX=function(a){if(a=a.J.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
g.Vwa=function(a){var b=a.J.T();return a.J.getVideoData().isVisualizerEligible&&uC(b)&&g.R(b.experiments,"web_player_music_visualizer")&&"desktop-polymer"===b.playerStyle&&g.tC(b)&&!(g.ar&&!g.$d(42))};
Ywa=function(a,b,c,d){try{if(d){var e=g.qX[b];if(e)return new e(a.J);"creatorendscreen"===b?bxa(a,"annotations_module",c):bxa(a,b,c)}else g.dX(a.J,b)}catch(f){g.dX(a.J,b),g.kr(f)}return null};
rX=function(a,b,c){for(var d=g.q(a.Ec),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;(f=f.next().value)&&(c||f.Eh(b))&&(g.eg(f),a.Ec["delete"](e))}};
sX=function(a){return a.Ec.get("ad")};
tX=function(a){if(bC(a.J.T()))return a.Ec.get("kids")};
g.RW=function(a){if(a.J.T().wd)return a.Ec.get("remote")};
uX=function(a){if(g.aC(a.J.T()))return a.Ec.get("unplugged")};
Gwa=function(a){if(a.J.T().Qa)return a.Ec.get("ux")};
g.WW=function(a){return a.Ec.get("annotations_module")};
vX=function(a){return a.Ec.get("creatorendscreen")};
ZW=function(a){return a.Ec.get("fresca")};
bxa=function(a,b,c){if(a.F){for(var d=a.F+b+".js",e=document.getElementsByTagName("SCRIPT"),f=!1,h,l=0;l<e.length;l++){var m=e[l];if(m.src===d||m.getAttribute("data-original-src")===d)h=m}h||(h=g.Fe("SCRIPT"),h.setAttribute("data-original-src",d),f=!0);var n=function(){a.la()||c.call(a)},p=function(){a.la()||g.dX(a.J,b)},r=h.onload;
h.onload=function(y){om(n);r&&r.apply(window,[y])};
var t=h.onerror;h.onerror=function(y){if(.01>Math.random()){var D=new Iq("Unable to load player module",b+".js from "+d+" on "+(document.location&&document.location.origin)+".");g.kr(D)}om(p);t&&t(y)};
var w=h,x=w.onreadystatechange;w.onreadystatechange=function(y){switch(w.readyState){case "loaded":case "complete":om(n)}x&&x(y)};
f&&((e=a.J.T().cspNonce)&&h.setAttribute("nonce",e),g.jd(h,g.ng(d)),e=document.getElementsByTagName("HEAD")[0]||document.body,e.insertBefore(h,e.firstChild),g.dg(a,function(){h.parentNode&&h.parentNode.removeChild(h);g.qX[b]=null;"annotations_module"===b&&(g.qX.creatorendscreen=null)}))}};
xX=function(a,b,c,d){g.P.call(this);var e=this;this.target=a;this.ir=b;this.B=0;this.I=!1;this.D=new g.fe(NaN,NaN);this.u=new g.Wr(this);this.ba=this.C=this.K=null;g.C(this,this.u);b=d?4E3:3E3;this.P=new g.H(function(){wX(e,1,!1)},b,this);
g.C(this,this.P);this.W=new g.H(function(){wX(e,2,!1)},b,this);
g.C(this,this.W);this.X=new g.H(function(){wX(e,512,!1)},b,this);
g.C(this,this.X);this.Z=c&&0<c.Tk.length?5E3:3E3;d||(this.C=this.u.R(a,"mouseover",this.It),this.u.R(a,"mousemove",this.gM),this.u.R(a,"mouseleave",this.hM));qg?this.u.R(a,"keypress",this.MJ):this.u.R(a,"focusin",this.wI);this.F=this.u.R(a,"mousedown",this.ED);this.N=this.u.R(a,"touchstart",this.hG,void 0,!0);wX(this,640,!0)};
cxa=function(a){wX(a,4,!1);a.K&&(a.u.Eb(a.K),a.K=null,a.C=a.u.R(a.target,"mouseover",a.It));a.C&&(a.u.Eb(a.C),a.C=a.u.R(a.target,"mouseover",a.It))};
wX=function(a,b,c){a.la();var d=!a.B;c?(a.B|=b,b&1&&a.P.start(),b&2&&a.W.start()):(a.B&=~b,b&1&&a.P.stop(),b&2&&a.W.stop(),b&512&&a.X.stop());a.B&512&&!(a.B&128)&&a.X.xb(a.Z);b=!a.B;d!==b&&a.V("autohideupdate",b)};
g.yX=function(a){g.V.call(this,{G:"button",ia:["ytp-large-play-button","ytp-button"],U:{"aria-label":"Play"},S:["{{largePlayButtonChildren}}"]});this.api=a;this.R(a,"videodatachange",this.na);this.na()};
zX=function(a){var b=a.T(),c=["ytp-cued-thumbnail-overlay"];(g.R(b.experiments,"web_player_contain_thumbnail")||b.I)&&c.push("ytp-exp-contain-thumbnail");g.V.call(this,{G:"div",ia:c,S:[{G:"div",L:"ytp-cued-thumbnail-overlay-image"}]});b=this.ga("ytp-cued-thumbnail-overlay");c=new g.yX(a);g.C(this,c);c.fa(b);this.C=new g.Wr(this);g.C(this,this.C);this.api=a;this.F=this.ga("ytp-cued-thumbnail-overlay-image");this.D=c;this.B=new g.PN(this,250);g.C(this,this.B);this.u=new g.H(this.na,0,this);g.C(this,
this.u);this.na();this.R(a,"appresize",this.Ra);this.R(a,"presentingplayerstatechange",this.qL);this.R(a,"ypcStateChanged",this.aQ);NB(a.T())&&this.R(a,"videoplayerreset",this.pL)};
dxa=function(a){var b=!a.T().ae&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.AX=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.QO(a))return g.ip(a),!0;b.pauseVideo();a=e.getAttribute("href");g.rK(a,d,!0);return!1};
g.BX=function(a,b,c){if(iC(b.T())&&2!==b.getPresentingPlayerType()){if(g.QO(c))return b.isFullscreen()&&!b.T().externalFullscreen&&b.toggleFullscreen(),g.ip(c),!0}else{var d=g.QO(c);d&&b.pauseVideo();g.rK(a,void 0,!0);d&&(g.sK(a),g.ip(c))}return!1};
CX=function(){return{G:"div",L:"ytp-spinner-container",S:[{G:"div",L:"ytp-spinner-rotator",S:[{G:"div",L:"ytp-spinner-left",S:[{G:"div",L:"ytp-spinner-circle"}]},{G:"div",L:"ytp-spinner-right",S:[{G:"div",L:"ytp-spinner-circle"}]}]}]}};
DX=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
g.EX=function(a,b,c){a=a.T();return g.R(a.experiments,"desktop_player_button_tooltip_with_shortcut")&&!a.ud?g.jJ("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.FX=function(a){g.V.call(this,{G:"div",ia:["ytp-error"],U:{role:"alert"},S:[{G:"div",L:"ytp-error-content",S:[{G:"div",L:"ytp-error-icon-container",S:[{G:"svg",U:{fill:"#fff",viewBox:"0 0 48 48"},S:[{G:"path",U:{d:"M0 0h48v48H0V0z",fill:"none"}},{G:"path",U:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{G:"div",L:"ytp-error-content-wrap",
S:[{G:"div",L:"ytp-error-content-wrap-reason",Y:"{{content}}"},{G:"div",L:"ytp-error-content-wrap-subreason",Y:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.GX=function(a){a=a.split(exa);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({G:"br"}),b.push(d[e]);c<a.length&&b.push({G:"a",U:{href:a[c],target:a[c+1]},Y:a[c+2]})}return{G:"span",S:b}};
IX=function(a,b,c,d,e,f,h){d=void 0===d?!1:d;e=void 0===e?!1:e;h=void 0===h?!0:h;e||(e=a.api.T().B);a=a.api.getVideoData();b=g.jJ(g.HX[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({G:"h2",Y:f});d.push(b[0]);h&&d.push({G:"br"});d.push({G:"a",U:{href:c,target:e?"_blank":null},Y:b[2]});d.push(b[4]);return{G:"span",S:d}};
fxa=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.R(c[d],"click",b);a.keys.push(e)}};
gxa=function(a){for(var b=0;b<a.keys.length;b++)a.Eb(a.keys[b]);a.keys=[]};
KX=function(a){g.Wr.call(this);this.J=a;this.u=new Set;this.mediaSession=navigator.mediaSession;JX(this,"play",function(){a.playVideo()});
JX(this,"pause",function(){a.pauseVideo()});
JX(this,"seekbackward",function(){a.seekBy(-5*a.getPlaybackRate())});
JX(this,"seekforward",function(){a.seekBy(5*a.getPlaybackRate())});
this.R(a,"videodatachange",this.Pa);this.R(a,"presentingplayerstatechange",this.Nf);this.Pa()};
JX=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.u.add(b)};
LX=function(a){g.V.call(this,{G:"div",L:"ytp-paid-content-overlay",U:{"aria-live":"assertive","aria-atomic":"true"}});this.J=a;this.D=new g.V({G:"div",ia:["ytp-button","ytp-paid-content-overlay-text"]});this.videoId=null;this.C=!1;this.B=new g.PN(this.D,250,!1,100);this.Bc=this.u=null;g.C(this,this.D);this.D.fa(this.element);g.C(this,this.B);this.R(a,"videodatachange",this.Pa);this.R(a,"presentingplayerstatechange",this.Vb)};
hxa=function(a,b){var c=yF(b),d=zF(b);a.u?b.videoId&&b.videoId!==a.videoId&&(a.u.wg(),a.videoId=b.videoId,a.C=!!d):c&&d&&(a.u=new g.H(a.fb,d,a),g.C(a,a.u),g.Ne(g.te("ytp-paid-content-overlay-text",a.element),c))};
ixa=function(a,b){a.u&&(g.T(b,8)&&a.C?(a.C=!1,a.tc(),a.u.start()):g.T(b,2)&&a.videoId&&(a.videoId=null))};
NX=function(a){g.V.call(this,{G:"div",L:"ytp-spinner",S:[CX(),{G:"div",L:"ytp-spinner-message",Y:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.ga("ytp-spinner-message");this.u=new g.H(this.show,500,this);g.C(this,this.u);this.R(a,"presentingplayerstatechange",this.B);this.R(a,"onFrescaStateChange",this.C);this.R(a,"playbackstalledatstart",this.D);MX(this,g.lI(a))};
MX=function(a,b){if(g.T(b,128))var c=0;else!(c=g.T(b,16))&&(c=g.T(b,1))&&(c=ZW(g.NW(a.api)),c=!(c&&c.loaded));c?a.u.start():a.hide()};
g.OX=function(a,b,c,d){d=void 0===d?!1:d;g.XM.call(this,b);var e=this;this.J=a;this.X=d;this.K=new g.Wr(this);this.W=new g.PN(this,c,!0,void 0,void 0,function(){e.u&&(e.u.getAttribute("aria-haspopup"),e.u.setAttribute("aria-expanded","true"),g.R(e.J.T().experiments,"embeds_enable_new_playlist_killswitch")?document.activeElement&&g.Me(e.u,document.activeElement)&&e.focus():e.focus())});
g.C(this,this.K);g.C(this,this.W)};
jxa=function(a){a.u&&(document.activeElement&&g.Me(a.element,document.activeElement)&&(Qe(a.u),a.u.focus()),a.u.removeAttribute("aria-expanded"),a.u=void 0);g.Yr(a.K);a.P=void 0};
PX=function(a,b,c){a.af()?a.fb():a.tc(b,c)};
QX=function(a){var b=g.Xu(a.T().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{G:"div",ia:["ytp-unmute-icon"],S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{G:"div",ia:["ytp-unmute-text"],Y:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({G:"div",ia:["ytp-unmute-box"],S:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.OX.call(this,a,{G:"button",ia:["ytp-unmute","ytp-popup","ytp-button"].concat(c),S:[{G:"div",L:"ytp-unmute-inner",S:d}]},100);this.seen=this.B=!1;this.api=a;g.fX(this.api,this.element,this,51663);this.R(a,"onMutedAutoplayChange",this.Op,this);this.R(a,"presentingplayerstatechange",
this.Nf);this.ua("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.LB(this.api.T());g.WM(this,a);a&&kxa(this);this.C=a};
lxa=function(a){a.B||(a.B=!0,g.gX(a.api,a.element))};
kxa=function(a){a.seen||(a.seen=!0,g.dN(a.api,a.element,!0))};
g.SX=function(a){g.Wr.call(this);var b=this;this.api=a;this.yy=!1;this.hi=null;this.sr=!1;this.md=null;this.Jv=this.vu=!1;this.Ty=this.Vy=null;this.yC=NaN;this.Sy=this.Do=!1;this.Jp=0;this.Wu=[];var c=a.T(),d=g.pG(a);this.qA=new g.H(this.RM,0,this);g.C(this,this.qA);g.UB(c)||(this.Em=new zX(a),g.C(this,this.Em),g.oP(a,this.Em.element,4));if(mxa()){var e=new NX(a);g.C(this,e);e=e.element;g.oP(a,e,4)}var f=a.getVideoData();this.Ac=new xX(d,function(l){return b.ir(l)},f,c.hd);
g.C(this,this.Ac);this.Ac.subscribe("autohideupdate",this.yh,this);var h=new LX(a);g.C(this,h);g.oP(a,h.element,4);this.yu=new QX(a);g.C(this,this.yu);g.oP(this.api,this.yu.element,2);this.Hw=this.api.isMutedByMutedAutoplay();this.R(a,"onMutedAutoplayChange",this.Op);this.uu=new g.H(this.Rn,200,this);g.C(this,this.uu);this.bx=f.videoId;this.IF=new g.H(function(){b.Jp=0},350);
g.C(this,this.IF);this.wr=new g.H(function(){b.Sy||RX(b)},350,this);
g.C(this,this.wr);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.I(f,"ytp-color-white")}g.UB(c)&&g.I(f,"ytp-music-player");!g.R(a.T().experiments,"disable_mediasession2")&&navigator.mediaSession&&!navigator.mediaSession.metadata&&navigator.mediaSession.setActionHandler&&(f=new KX(a),g.C(this,f));this.R(a,"appresize",this.Ra);this.R(a,"presentingplayerstatechange",this.Nf);this.R(a,"videodatachange",this.Pa);this.R(a,"videoplayerreset",this.AO);
this.R(a,"autonavvisibility",this.Hj,this);this.R(a,"sizestylechange",this.Hj,this);this.R(a,"onFrescaStateChange",this.pg,this);this.R(d,"click",this.cP,this);this.R(d,"dblclick",this.dP,this);c.ka&&(this.R(d,"gesturechange",this.eP,this),this.R(d,"gestureend",this.fP,this));this.zk=[d.C];this.Em&&this.zk.push(this.Em.element);e&&this.zk.push(e)};
TX=function(a,b){if(!b)return!1;var c=a.api.app.F;if(c.wk()&&(c=c.Ma())&&g.Me(c,b))return c.controls;for(c=0;c<a.zk.length;c++)if(g.Me(a.zk[c],b))return!1;return g.zn(b,"ytp-player-content")||g.zn(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
nxa=function(a){return!!(2===a.api.getPresentingPlayerType()&&g.pG(a.api).I&&a.api.T().u&&UX&&11<=WF)};
VX=function(a,b){return!TX(a,fp(b))&&g.QO(b)};
RX=function(a){a.Ac.Fj();if(g.R(a.api.T().experiments,"web_player_touch_mode_improvements")&&a.vu&&a.Jv)a.Jv=!1;else if(!a.api.T().Z&&!a.cj()){var b=g.lI(a.api);g.T(b,2)&&PW(a.api)||a.fm(b);if(!a.api.T().ka||b.isCued()||g.T(b,1024)){var c=a.api.app.Na;g.Lq("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.T(b,2048);c&&(b.isCued()||d)?(g.Lq("embedsRequestStorageAccessState",{isCued:b.isCued(),isAutoplayBlocked:d}),a.requestStorageAccess()):(!c||b.isCued()&&
d||g.Lq("embedsRequestStorageAccessFailedState",{state:b.state}),a.Rn())}else a.uu.isActive()?(a.xs(),a.uu.stop()):a.uu.start()}};
oxa=function(a,b){if(g.QO(b)&&a.api.isMutedByMutedAutoplay()){a.api.unMute();2===a.api.getPresentingPlayerType()&&a.api.playVideo();var c=g.lI(a.api);!g.T(c,4)||g.T(c,8)||g.T(c,2)||a.Rn();return!0}return!1};
pxa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
mxa=function(){var a=Yj()&&67<=Vj();return!Xj("tizen")&&!JB&&!a&&!0};
WX=function(a){g.V.call(this,{G:"button",ia:["ytp-button","ytp-back-button"],S:[{G:"div",L:"ytp-arrow-back-icon",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},S:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",qb:!0,U:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.J=a;g.WM(this,a.T().showBackButton);this.ua("click",this.onClick)};
g.XX=function(a){g.V.call(this,{G:"div",S:[{G:"div",L:"ytp-bezel-text-wrapper",S:[{G:"div",L:"ytp-bezel-text",Y:"{{title}}"}]},{G:"div",L:"ytp-bezel",U:{role:"status","aria-label":"{{label}}"},S:[{G:"div",L:"ytp-bezel-icon",Y:"{{icon}}"}]}]});this.J=a;this.B=new g.H(this.show,10,this);this.u=new g.H(this.hide,500,this);g.C(this,this.B);g.C(this,this.u);this.hide()};
ZX=function(a,b,c){if(0>=b){c=GN();b="muted";var d=0}else c=c?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,U:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,U:{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";YX(a,c,b,d+"%")};
qxa=function(a,b){var c=b?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]},d=a.J.getPlaybackRate(),e=g.jJ("Speed is $RATE",{RATE:String(d)});YX(a,c,e,d+"x")};
YX=function(a,b,c,d){d=void 0===d?"":d;a.wa("label",void 0===c?"":c);a.wa("icon",b);a.u.wg();a.B.start();a.wa("title",d);g.J(a.element,"ytp-bezel-text-hide",!d)};
$X=function(a,b,c){g.V.call(this,{G:"div",L:"ytp-cards-teaser",S:[{G:"div",L:"ytp-cards-teaser-box"},{G:"div",L:"ytp-cards-teaser-text",S:[{G:"span",L:"ytp-cards-teaser-label",Y:"{{text}}"}]}]});var d=this;this.J=a;this.W=b;this.Uh=c;this.D=new g.PN(this,250,!1,250);this.u=null;this.K=new g.H(this.iO,300,this);this.I=new g.H(this.hO,2E3,this);this.F=[];this.B=null;this.P=new g.H(function(){d.element.style.margin="0"},250);
this.C=null;g.C(this,this.D);g.C(this,this.K);g.C(this,this.I);g.C(this,this.P);this.R(c.element,"mouseover",this.lD);this.R(c.element,"mouseout",this.kD);this.R(a,"cardsteasershow",this.xP);this.R(a,"cardsteaserhide",this.fb);this.R(a,"cardstatechange",this.sG);this.R(a,"presentingplayerstatechange",this.sG);this.R(a,"appresize",this.ez);this.R(a,"onShowControls",this.ez);this.R(a,"onHideControls",this.aI);this.ua("click",this.YQ);this.ua("mouseenter",this.mL)};
bY=function(a,b,c){g.V.call(this,{G:"button",ia:["ytp-button","ytp-cards-button"],U:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.LB(a.T()))},S:[{G:"span",L:"ytp-cards-button-icon-default",S:[{G:"div",L:"ytp-cards-button-icon",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{G:"div",L:"ytp-cards-button-title",Y:"Info"}]},{G:"span",L:"ytp-cards-button-icon-shopping",S:[{G:"div",L:"ytp-cards-button-icon",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",L:"ytp-svg-shadow",U:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{G:"path",L:"ytp-svg-fill",U:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{G:"path",L:"ytp-svg-shadow-fill",U:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div",
L:"ytp-cards-button-title",Y:"Shopping"}]}]});this.J=a;this.D=b;this.C=c;this.u=null;this.B=new g.PN(this,250,!0,100);g.C(this,this.B);g.J(this.C,"ytp-show-cards-title",g.LB(a.T()));this.hide();this.ua("click",this.onClicked);this.ua("mouseover",this.GN);aY(this,!0)};
aY=function(a,b){b?a.u=g.cY(a.D.Jb(),a.element):(a.u=a.u,a.u(),a.u=null)};
eY=function(a,b){g.V.call(this,{G:"button",ia:[dY.BUTTON,dY.TITLE_NOTIFICATIONS],U:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},S:[{G:"div",L:dY.TITLE_NOTIFICATIONS_ON,U:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},S:[g.yN()]},{G:"div",L:dY.TITLE_NOTIFICATIONS_OFF,U:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},S:[{G:"svg",U:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{G:"path",U:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});
this.api=a;this.channelId=b;this.u=!1;g.fX(a,this.element,this,36927);this.ua("click",this.onClick,this);this.wa("pressed",!1);this.wa("label","Get notified about every new video")};
rxa=function(a,b){a.u=b;a.element.classList.toggle(dY.NOTIFICATIONS_ENABLED,a.u);if(g.R(a.api.T().experiments,"web_player_innertube_subscription_update")){var c=a.api.getVideoData();if(c)if(c=b?c.My:c.Ly){var d=qG(a.api.app);d?tU(d,c):g.M(Error("No innertube service available when updating notification preferences."))}else g.M(Error("No update preferences command available."));else g.M(Error("No video data when updating notification preferences."))}else g.oq("/subscription_ajax?action_update_subscription_preferences=1",
{method:"POST",dc:{channel_id:a.channelId,receive_all_updates:!a.u}})};
sxa=function(a,b,c){return b?a.N+"subscription_ajax":c?"/subscription_service":""};
g.gY=function(a,b,c,d,e,f,h,l,m,n,p,r,t){t=void 0===t?null:t;f&&(a=a.charAt(0)+a.substring(1).toLowerCase(),c=c.charAt(0)+c.substring(1).toLowerCase());if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var w=r.T();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.RB(w)||g.TB(w))c.target=w.F;g.V.call(this,{G:"div",ia:["ytp-button","ytp-sb"],S:[{G:"a",L:"ytp-sb-subscribe",U:c,S:[{G:"div",L:"ytp-sb-text",S:[{G:"div",L:"ytp-sb-icon"},a]},b?{G:"div",L:"ytp-sb-count",Y:b}:""]}]});f&&g.I(this.element,
"ytp-sb-classic");this.channelId=h;this.u=t}else{p=w.userDisplayName&&g.RB(w)&&!g.R(w.experiments,"subscribe_tooltipkillswitch");g.V.call(this,{G:"div",ia:["ytp-button","ytp-sb"],S:[{G:"div",L:"ytp-sb-subscribe",U:p?{title:g.jJ("Subscribe as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":wC(w),"data-tooltip-opaque":String(g.LB(w)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},S:[{G:"div",L:"ytp-sb-text",S:[{G:"div",L:"ytp-sb-icon"},
a]},b?{G:"div",L:"ytp-sb-count",Y:b}:""]},{G:"div",L:"ytp-sb-unsubscribe",U:p?{title:g.jJ("Subscribed as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":wC(w),"data-tooltip-opaque":String(g.LB(w)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},S:[{G:"div",L:"ytp-sb-text",S:[{G:"div",L:"ytp-sb-icon"},c]},d?{G:"div",L:"ytp-sb-count",Y:d}:""]}]});var x=this;this.channelId=h;this.u=t;var y=this.ga("ytp-sb-subscribe"),D=this.ga("ytp-sb-unsubscribe");
f&&g.I(this.element,"ytp-sb-classic");if(e){l&&g.I(this.element,"ytp-sb-subscribed");var F=function(){a:{var O=x.channelId;if(m||n){var K=r.T();var Ja={c:O};if(g.R(K.experiments,"embeds_botguard_with_subscribe_killswitch"))Ja="";else{var va;tr.Dd()&&(va=Yra(Ja));Ja=va||""}if(g.R(K.experiments,"web_player_innertube_subscription_update")){K=r.getVideoData();if(!K){g.M(Error("No video data available when updating subscription."));break a}K=K.subscribeCommand;if(!K){g.M(Error("No subscribe command in videoData."));
break a}va=qG(r.app);if(!va){g.M(Error("No innertube service available when updating subscriptions."));break a}tU(va,K,{botguardResponse:Ja,feature:m})}else g.oq(sxa(K,!!m,!!n),m?{method:"POST",Og:{action_create_subscription_to_channel:1,c:O},dc:{feature:m,silo_name:null,r2b:Ja},withCredentials:!0}:n?{method:"POST",Og:{action_subscribe:1},dc:{channel_ids:O,itct:n}}:{});r.va("SUBSCRIBE",O)}}D.focus();D.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},G=function(){var O=x.channelId;
if(m||n){var K=r.T();g.R(K.experiments,"web_player_innertube_subscription_update")?(K=r.getVideoData(),tU(qG(r.app),K.unsubscribeCommand,{feature:m})):g.oq(sxa(K,null!=m,null!=n),m?{method:"POST",Og:{action_remove_subscriptions:1},dc:{c:O,silo_name:null,feature:m},withCredentials:!0}:n?{method:"POST",Og:{action_unsubscribe:1},dc:{channel_ids:O,itct:n}}:{});r.va("UNSUBSCRIBE",O)}y.focus();y.removeAttribute("aria-hidden");D.setAttribute("aria-hidden","true")};
this.R(y,"click",F);this.R(D,"click",G);this.R(y,"keypress",function(O){13===O.keyCode&&F(O)});
this.R(D,"keypress",function(O){13===O.keyCode&&G(O)});
this.R(r,"SUBSCRIBE",this.B);this.R(r,"UNSUBSCRIBE",this.C);this.u&&p&&(this.tooltip=this.u.Jb(),fY(this.tooltip),g.dg(this,g.cY(this.tooltip,y)),g.dg(this,g.cY(this.tooltip,D)))}else g.I(y,"ytp-sb-disabled"),g.I(D,"ytp-sb-disabled")}};
hY=function(a,b){g.V.call(this,{G:"div",L:"ytp-title-channel",S:[{G:"div",L:"ytp-title-beacon"},{G:"a",L:"ytp-title-channel-logo",U:{href:"{{channelLink}}",target:a.T().F,"aria-label":"{{channelLogoLabel}}"}},{G:"div",L:"ytp-title-expanded-overlay",U:{"aria-hidden":"{{flyoutUnfocusable}}"},S:[{G:"div",L:"ytp-title-expanded-heading",S:[{G:"h2",L:"ytp-title-expanded-title",S:[{G:"a",Y:"{{expandedTitle}}",U:{href:"{{channelTitleLink}}",target:a.T().F,tabIndex:"{{channelTitleFocusable}}"}}]},{G:"h3",
L:"ytp-title-expanded-subtitle",Y:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.I=b;this.channel=this.ga("ytp-title-channel");this.u=this.ga("ytp-title-channel-logo");this.D=this.ga("ytp-title-expanded-overlay");this.C=this.B=this.subscribeButton=null;this.F=g.LB(this.api.T());g.fX(a,this.u,this,36925);this.F&&txa(this);this.R(a,"videodatachange",this.na);this.R(a,"videoplayerreset",this.na);this.na()};
txa=function(a){var b=a.api.T(),c=a.api.getVideoData();if(!b.ha){var d=b.kd?null:qwa(),e=new g.gY("Subscribe",null,"Subscribed",null,!0,!1,c.Ng,c.subscribed,"channel_avatar",null,d,a.api,a.I);a.subscribeButton=e;g.C(a,e);e.fa(a.D);g.fX(a.api,e.element,a,36926);e.hide();a.R(e.element,"click",function(){g.gX(a.api,e.element)});
var f=new eY(a.api,c.Ng);a.B=f;g.C(a,f);f.fa(a.D);f.hide();a.R(a.api,"SUBSCRIBE",function(){c.On&&f.show()});
a.R(a.api,"UNSUBSCRIBE",function(){c.On&&(f.hide(),rxa(f,!1))})}a.wa("flyoutUnfocusable","true");
a.wa("channelTitleFocusable","-1");b.u?a.R(a.u,"click",function(h){uxa(a)&&(h.preventDefault(),a.isExpanded()?a.Gv():a.bw());g.gX(a.api,a.u)}):(a.R(a.channel,"mouseenter",a.bw),a.R(a.channel,"mouseleave",a.Gv),a.R(a.channel,"focusin",a.bw),a.R(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.Gv()}),a.R(a.u,"click",function(){g.gX(a.api,a.u)}));
a.C=new g.H(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),g.dN(a.api,a.subscribeButton.element,!1)),a.B&&(a.B.hide(),g.dN(a.api,a.B.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.C(a,a.C);a.R(a.channel,vxa,function(){wxa(a)});
a.R(a.api,"onHideControls",a.ly);a.R(a.api,"appresize",a.ly);a.R(a.api,"fullscreentoggled",a.ly)};
wxa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
uxa=function(a){var b=a.api.getPlayerSize();return a.F&&524<=b.width};
g.jY=function(a,b,c,d){g.XM.call(this,a);this.priority=b;c&&g.iY(this,c);d&&this.pc(d)};
g.kY=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{G:c?"a":"div",ia:b,U:a,S:[{G:"div",L:"ytp-menuitem-icon",Y:"{{icon}}"},{G:"div",L:"ytp-menuitem-label",Y:"{{label}}"},{G:"div",L:"ytp-menuitem-content",Y:"{{content}}"}]}};
lY=function(a,b){a.wa("icon",b)};
g.iY=function(a,b){a.wa("label",b)};
mY=function(a,b,c,d,e,f){var h={G:"div",L:"ytp-panel"};if(c){var l="ytp-panel-title";var m={G:"div",L:"ytp-panel-header",S:[{G:"button",ia:["ytp-button",l],S:[c]}]};if(e){var n="ytp-panel-options";m.S.unshift({G:"button",ia:["ytp-button",n],S:[d]})}h.S=[m]}d=!1;f&&(f={G:"div",L:"ytp-panel-footer",S:[f]},d=!0,h.S?h.S.push(f):h.S=[f]);g.XM.call(this,h);this.content=b;d&&h.S?b.fa(this.element,h.S.length-1):b.fa(this.element);this.UB=!1;this.yJ=d;c&&(c=this.ga(l),this.R(c,"click",this.UM),this.UB=!0,
e&&(n=this.ga(n),this.R(n,"click",e)));b.subscribe("size-change",this.ZD,this);this.R(a,"fullscreentoggled",this.ZD)};
g.nY=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.XM({G:"div",L:"ytp-panel-menu",U:h});mY.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.C(this,this.menuItems)};
g.oY=function(a){for(var b=g.q(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.Mx,a);a.items=[];g.He(a.menuItems.element);a.menuItems.V("size-change")};
xxa=function(a,b){return b.priority-a.priority};
pY=function(a){var b=g.kY({"aria-haspopup":"true"});g.jY.call(this,b,a);this.ua("keydown",this.u)};
qY=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
g.rY=function(a,b){g.jY.call(this,g.kY({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{G:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.ua("click",this.onClick)};
sY=function(a,b,c,d){g.nY.call(this,a);this.J=a;this.Ta=c;this.Kb=d;this.ph=new g.rY("Loop",7);this.getVideoUrl=new pY(6);this.fh=new pY(5);this.bh=new pY(4);this.jb=new pY(3);this.bq=new g.jY(g.kY({href:"{{href}}",target:this.J.T().F},void 0,!0),2,"Troubleshoot playback issue");this.Bm=new g.XM({G:"div",ia:["ytp-copytext","ytp-no-contextmenu"],U:{draggable:"false",tabindex:"1"},Y:"{{text}}"});this.LA=new mY(this.J,this.Bm);this.kk=null;g.C(this,this.ph);this.Nb(this.ph,!0);this.ph.ua("click",this.fQ,
this);g.fX(a,this.ph.element,this.ph,28661);g.C(this,this.getVideoUrl);this.Nb(this.getVideoUrl,!0);this.getVideoUrl.ua("click",this.dQ,this);g.fX(a,this.getVideoUrl.element,this.getVideoUrl,28659);g.C(this,this.fh);this.Nb(this.fh,!0);this.fh.ua("click",this.eQ,this);g.fX(a,this.fh.element,this.fh,28660);g.C(this,this.bh);this.Nb(this.bh,!0);this.bh.ua("click",this.cQ,this);g.fX(a,this.bh.element,this.bh,28658);g.C(this,this.jb);this.Nb(this.jb,!0);this.jb.ua("click",this.bQ,this);g.C(this,this.bq);
this.Nb(this.bq,!0);this.bq.ua("click",this.XO,this);b=new g.jY(g.kY(),1,"Stats for nerds");g.C(this,b);this.Nb(b,!0);b.ua("click",this.oP,this);g.C(this,this.Bm);this.Bm.ua("click",this.pN,this);g.C(this,this.LA);c=document.queryCommandSupported&&document.queryCommandSupported("copy");g.eB&&g.$d(43)&&(c=!0);g.wB&&!g.$d(41)&&(c=!1);c&&(this.kk=new g.V({G:"textarea",L:"ytp-html5-clipboard",U:{readonly:""}}),g.C(this,this.kk),this.kk.fa(this.element));lY(this.ph,{G:"svg",U:{fill:"none",height:"24",
viewBox:"0 0 24 24",width:"24"},S:[{G:"path",U:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});lY(this.jb,{G:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",U:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
fill:"white","fill-rule":"evenodd"}}]});lY(this.bq,{G:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",U:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
fill:"white","fill-rule":"evenodd"}}]});lY(b,tN());this.R(a,"loopchange",this.kE);this.R(a,"videodatachange",this.Pa);yxa(this);this.Dh(this.J.getVideoData())};
uY=function(a,b){var c=!1;if(a.kk){var d=a.kk.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Ta.fb():(a.Bm.pc(b,"text"),g.tY(a.Ta,a.LA),DX(a.Bm.element),a.kk&&(a.kk=null,yxa(a)));return c};
yxa=function(a){var b=!!a.kk;g.iY(a.jb,b?"Copy debug info":"Get debug info");qY(a.jb,!b);g.iY(a.bh,b?"Copy embed code":"Get embed code");qY(a.bh,!b);g.iY(a.getVideoUrl,b?"Copy video URL":"Get video URL");qY(a.getVideoUrl,!b);g.iY(a.fh,b?"Copy video URL at current time":"Get video URL at current time");qY(a.fh,!b);lY(a.bh,b?rN():null);lY(a.getVideoUrl,b?vN():null);lY(a.fh,b?vN():null)};
g.vY=function(a,b){g.OX.call(this,a,{G:"div",ia:["ytp-popup",b||""]},100,!0);this.B=[];this.C=this.F=null;this.Bt=this.maxWidth=0;this.size=new g.he(0,0);this.ua("keydown",this.uL)};
zxa=function(a){var b=wY(a);if(b){g.Dg(a.element,a.maxWidth||"100%",a.Bt||"100%");g.E(b.element,"minWidth","250px");g.E(b.element,"width","");g.E(b.element,"height","");g.E(b.element,"maxWidth","100%");g.E(b.element,"maxHeight","100%");g.E(b.content.element,"height","");var c=g.Eg(b.element);c.width+=1;c.height+=1;g.E(b.element,"width",c.width+"px");g.E(b.element,"height",c.height+"px");g.E(b.element,"maxWidth","");g.E(b.element,"maxHeight","");var d=0;b.UB&&(d=b.ga("ytp-panel-header"),d=g.Eg(d).height);
var e=0;b.yJ&&(e=b.ga("ytp-panel-footer"),g.E(e,"width",c.width+"px"),e=g.Eg(e).height);g.E(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0<d.offsetWidth-d.clientWidth&&0<e&&(c.width+=e,g.E(b.element,"width",c.width+"px")));a.size=c}};
g.tY=function(a,b){var c=a.B[a.B.length-1];a.B.push(b);xY(a,c,b)};
g.yY=function(a){var b=a.B.pop(),c=a.B[0];a.B=[c];xY(a,b,c,!0)};
xY=function(a,b,c,d){Axa(a);wY(a);g.zn(c.element,"ytp-panel-animate-back")||g.zn(c.element,"ytp-panel-animate-forward");b&&(b.unsubscribe("size-change",a.Vn,a),b.unsubscribe("back",a.Sf,a));c.subscribe("size-change",a.Vn,a);c.subscribe("back",a.Sf,a);if(a.Wa){g.I(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.fa(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;zxa(a);g.Dg(a.element,e);a.F=new g.H(function(){Bxa(a,b,c,d)},20,a);
a.F.start()}else c.fa(a.element),b&&b.detach()};
Bxa=function(a,b,c,d){a.F.dispose();a.F=null;g.I(a.element,"ytp-popup-animating");d?(g.I(b.element,"ytp-panel-animate-forward"),g.Bn(c.element,"ytp-panel-animate-back")):(g.I(b.element,"ytp-panel-animate-back"),g.Bn(c.element,"ytp-panel-animate-forward"));g.Dg(a.element,a.size);a.C=new g.H(function(){g.Bn(a.element,"ytp-popup-animating");b.detach();g.Cn(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.C.dispose();a.C=null},250,a);
a.C.start()};
wY=function(a){return a.B[a.B.length-1]};
Axa=function(a){a.F&&g.tn(a.F);a.C&&g.tn(a.C)};
g.zY=function(a,b,c){g.vY.call(this,a);this.Z=b;this.Kb=c;this.I=new g.dR(this);this.D=null;g.C(this,this.I);g.fX(a,this.element,this,28656);g.I(this.element,"ytp-contextmenu");Cxa(this);this.hide()};
Cxa=function(a){g.Yr(a.I);"gvn"!==a.J.T().playerStyle&&a.I.R(g.pG(a.J),"contextmenu",a.mN)};
Dxa=function(a){a.J.isFullscreen()?g.oP(a.J,a.element,9):a.fa(document.body)};
AY=function(a,b){g.V.call(this,{G:"button",ia:["ytp-button","ytp-copylink-button"],U:{title:"{{title-attr}}","data-tooltip-opaque":String(g.LB(a.T()))},S:[{G:"div",L:"ytp-copylink-icon",Y:"{{icon}}"},{G:"div",L:"ytp-copylink-title",Y:"Copy link",U:{"aria-hidden":"true"}}]});this.api=a;this.u=b;this.visible=!1;this.tooltip=this.u.Jb();var c=a.T();fY(this.tooltip);g.J(this.element,"ytp-show-copylink-title",g.LB(c)&&!g.UB(c));g.fX(a,this.element,this,86570);this.ua("click",this.onClick);this.R(a,"videodatachange",
this.na);this.R(a,"videoplayerreset",this.na);this.R(a,"appresize",this.na);this.na();g.dg(this,g.cY(this.tooltip,this.element))};
Exa=function(a){a.wa("icon",jN());if(a.api.T().u)BY(a.tooltip,a.element,"Link copied to clipboard");else{a.wa("title-attr","Link copied to clipboard");CY(a.tooltip);BY(a.tooltip,a.element);var b=a.ua("mouseleave",function(){a.Eb(b);a.na();a.tooltip.Th()})}};
Gxa=function(a,b){return g.Ue(a,function d(){var e=this;return g.Aa(d,function(f){if(1==f.u)return sa(f,2),g.ra(f,navigator.clipboard.writeText(b),4);if(2!=f.u)return f["return"](!0);ua(f);return f["return"](Fxa(e,b))})})};
Fxa=function(a,b){var c=!1,d=g.Fe("TEXTAREA");d.value=b;d.setAttribute("readonly","");var e=a.api.getRootNode();e.appendChild(d);if(jk){var f=window.getSelection();f.removeAllRanges();var h=document.createRange();h.selectNodeContents(d);f.addRange(h);d.setSelectionRange(0,b.length)}else d.select();try{c=document.execCommand("copy")}catch(l){}e.removeChild(d);return c};
DY=function(a){g.V.call(this,{G:"div",L:"ytp-doubletap-ui",S:[{G:"div",L:"ytp-doubletap-fast-forward-ve"},{G:"div",L:"ytp-doubletap-rewind-ve"},{G:"div",L:"ytp-doubletap-static-circle",S:[{G:"div",L:"ytp-doubletap-ripple"}]},{G:"div",L:"ytp-doubletap-overlay-a11y"},{G:"div",L:"ytp-doubletap-seek-info-container",S:[{G:"div",L:"ytp-doubletap-arrows-container",S:[{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"}]},{G:"div",L:"ytp-doubletap-tooltip",
S:[{G:"div",L:"ytp-doubletap-tooltip-label",Y:"{{seekTime}}"}]}]}]});this.J=a;this.B=new g.H(this.show,10,this);this.u=new g.H(this.hide,700,this);g.C(this,this.B);g.C(this,this.u);this.hide();this.C=this.ga("ytp-doubletap-fast-forward-ve");this.D=this.ga("ytp-doubletap-rewind-ve");g.fX(this.J,this.C,this,28240);g.fX(this.J,this.D,this,28239);g.dN(this.J,this.C,!0);g.dN(this.J,this.D,!0)};
Ixa=function(a,b){var c=g.pG(a.J).getPlayerSize();a.u.wg();a.B.start();a.element.setAttribute("data-side",-1===b?"back":"forward");var d=a.ga("ytp-doubletap-static-circle");d.style.width="110px";d.style.height="110px";1===b?(d.style.right="",d.style.left=.8*c.width-30+"px"):-1===b&&(d.style.right="",d.style.left=.1*c.width-15+"px");d.style.top=.5*c.height+15+"px";Hxa(a,5)};
Hxa=function(a,b){var c=g.jJ("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.wa("seekTime",c)};
EY=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
FY=function(a,b){for(var c=0,d=g.q(a),e=d.next();!(e.done||e.value.startTime>b);e=d.next())c++;return 0===c?c:c-1};
g.GY=function(a,b,c,d,e,f,h){g.Wr.call(this);var l=this;this.api=a;this.contextMenu=c;this.Ac=d;this.Kb=e;this.B=f;this.D=h;this.C=new g.H(function(){Jxa(l,!1)},1E3);
this.u="";g.C(this,this.C);a=g.Wa(this.vy,!1);this.R(b,"mousedown",a);this.R(c.element,"mousedown",a);this.R(b,"keydown",this.SB);this.R(c.element,"keydown",this.SB);this.R(b,"keyup",this.TB);this.R(c.element,"keyup",this.TB)};
IY=function(a,b,c,d){var e=g.nX(g.NW(a.api));if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.HY.length;h++){var l=g.HY[h];if(l.option===b){e=l.options;break}}h=void 0;for(l=0;l<e.length;l++)e[l].option===f[b]&&(h=l);if(d)if(c){if(0===h)return}else if(h===e.length-1)return;d={};d[b]=e[(h+(c?e.length-1:1))%e.length].option;a.api.updateSubtitlesUserSettings(d);Jxa(a,!0);a.C.start()}};
Kxa=function(a,b){a.api.je();if(g.T(g.lI(a.api),4)){var c=a.api.getVideoData().La;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
Jxa=function(a,b){g.nX(g.NW(a.api))&&a.api.setOption("captions","sampleSubtitles",b)};
JY=function(a,b,c){g.V.call(this,{G:"button",ia:["ytp-button","ytp-overflow-button"],U:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},S:[{G:"div",L:"ytp-overflow-icon",S:[{G:"svg",U:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},S:[{G:"path",U:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var d=this;this.J=a;this.u=b;this.visible=!1;this.tooltip=this.u.Jb();
g.fX(a,this.element,this,16499);this.R(a,"appresize",this.na);this.R(a,"fullscreentoggled",this.na);this.R(a,"presentingplayerstatechange",this.na);this.na();g.dg(this,g.cY(this.tooltip,this.element));this.ua("click",function(){g.gX(a,d.element);PX(c,d.element,!1)})};
KY=function(a,b){g.OX.call(this,a,{G:"div",L:"ytp-overflow-panel",U:{id:SM(),role:"dialog"},S:[{G:"div",L:"ytp-overflow-panel-content",S:[{G:"div",L:"ytp-overflow-panel-action-buttons",Y:"{{buttons}}"}]},{G:"button",ia:["ytp-overflow-panel-close","ytp-button"],U:{title:"Close"},S:[g.pN()]}]},250);this.actionButtons=[];this.tooltip=b.Jb();this.B=this.ga("ytp-overflow-panel-content");this.closeButton=this.ga("ytp-overflow-panel-close");this.R(this.closeButton,"click",this.fb);g.dg(this,g.cY(this.tooltip,
this.closeButton));this.ua("click",this.tL);this.R(a,"videoplayerreset",this.hide);this.R(a,"fullscreentoggled",this.sL);this.hide()};
LY=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.wa("buttons",a.actionButtons))};
Lxa=function(a,b){for(var c=g.q(a.actionButtons),d=c.next();!d.done;d=c.next())d.value.zb(b)};
MY=function(a,b,c){var d=b.Ka(c),e=a.T(),f=d.Gd("default.jpg");g.V.call(this,{G:"a",ia:["ytp-video-menu-item","ytp-button"],U:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},S:[{G:"div",L:"ytp-video-menu-item-index",Y:String(c+1)},{G:"div",L:"ytp-video-menu-item-now-playing",Y:"\u25b6"},{G:"div",L:"ytp-video-menu-item-thumbnail",U:{style:f?"background-image: url("+f+");":void 0}},{G:"div",L:"ytp-video-menu-item-title",Y:d.title},{G:"div",
L:"ytp-video-menu-item-author",Y:d.author}]});this.api=a;this.index=c;this.ua("click",this.onClick)};
NY=function(a){g.OX.call(this,a,{G:"div",L:"ytp-playlist-menu",U:{role:"dialog",id:SM()},S:[{G:"div",L:"ytp-playlist-menu-header",S:[{G:"div",L:"ytp-playlist-menu-title",S:[{G:"a",L:"ytp-playlist-menu-title-name",U:{href:"{{playlisturl}}"},Y:"{{title}}"},{G:"button",ia:["ytp-playlist-menu-close","ytp-button"],U:{"aria-label":"Close"},S:[g.pN()]}]},{G:"div",L:"ytp-playlist-menu-subtitle",Y:"{{subtitle}}"}]},{G:"div",L:"ytp-playlist-menu-items",U:{role:"menu"}}]},250);this.api=a;this.selected=this.D=
this.playlist=null;this.items=this.ga("ytp-playlist-menu-items");this.C=new g.Wr(this);this.B=[];a=this.ga("ytp-playlist-menu-close");this.R(a,"click",this.fb);a=this.ga("ytp-playlist-menu-title-name");this.R(a,"click",this.BP);g.C(this,this.C);this.hide()};
OY=function(a,b,c){g.V.call(this,{G:"button",ia:["ytp-playlist-menu-button","ytp-button"],U:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},S:[{G:"div",L:"ytp-playlist-menu-button-icon",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,U:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{G:"div",L:"ytp-playlist-menu-button-text",Y:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.Jb();g.fX(a,this.element,this,70344);this.R(a,"videodatachange",this.u);this.R(a,"onPlaylistUpdate",this.u);this.R(a,"presentingplayerstatechange",this.na);this.R(a,"appresize",this.na);this.hide();this.u();g.dg(this,g.cY(this.tooltip,this.element));this.ua("click",function(){g.gX(a,d.element);PX(c,d.element,!1)})};
PY=function(a,b,c){g.V.call(this,{G:"div",L:"ytp-promotooltip-wrapper",S:[{G:"div",L:"ytp-promotooltip-container",S:[{G:"div",L:"ytp-promotooltip-content",S:[{G:"div",L:"ytp-promotooltip-title",Y:"{{title}}"},{G:"div",L:"ytp-promotooltip-details",Y:"{{details}}"}]},{G:"div",L:"ytp-promotooltip-buttons",S:[{G:"div",L:"ytp-promotooltip-dismiss-button",Y:"{{dismissButtonText}}",U:{tabindex:"0"}},{G:"div",L:"ytp-promotooltip-accept-button",Y:"{{acceptButtonText}}",U:{tabindex:"0"}}]}]},{G:"div",L:"ytp-promotooltip-pointer"}]});
this.tooltipRenderer=a;this.F=b;this.J=c;this.u=null;this.title=this.ga("ytp-promotooltip-title");this.details=this.ga("ytp-promotooltip-details");this.acceptButton=this.ga("ytp-promotooltip-accept-button");this.dismissButton=this.ga("ytp-promotooltip-dismiss-button");this.D=this.B=this.C=!1;g.WM(this,!1);this.R(c,"onShowControls",this.Ov);this.R(c,"onHideControls",this.oN);this.R(c,"resize",this.Ra);this.R(this.acceptButton,"click",this.rM);this.R(this.dismissButton,"click",this.tN)};
Mxa=function(a){a=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');return 0<a.length?a[0]:null};
QY=function(a,b){var c,d,e=a.tooltipRenderer.promoConfig;if(e){switch(b){case 0:if(null===(c=e.impressionEndpoints)||void 0===c?0:c.length)var f=e.impressionEndpoints[0];break;case 1:f=e.acceptCommand;break;case 2:f=e.dismissCommand}if(null===(d=null===f||void 0===f?void 0:f.feedbackEndpoint)||void 0===d?0:d.feedbackToken){e={feedbackTokens:[f.feedbackEndpoint.feedbackToken]};var h=qG(a.J.app);(null===h||void 0===h?0:Uua(h,f))&&tU(h,f,e)}}};
RY=function(a,b){g.V.call(this,{G:"button",ia:["ytp-replay-button","ytp-button"],U:{title:"Replay"},S:[g.DN()]});this.J=a;this.R(a,"presentingplayerstatechange",this.u);this.ua("click",this.onClick,this);var c=g.lI(a);g.WM(this,g.T(c,2));g.cY(b.Jb(),this.element)};
g.SY=function(a,b,c,d){d=void 0===d?240:d;g.V.call(this,{G:"button",ia:["ytp-button","ytp-share-button"],U:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.LB(a.T()))},S:[{G:"div",L:"ytp-share-icon",Y:"{{icon}}"},{G:"div",L:"ytp-share-title",Y:"Share"}]});this.api=a;this.u=b;this.C=c;this.B=d;this.visible=!1;this.tooltip=this.u.Jb();b=a.T();g.fX(a,this.element,this,28664);this.ua("click",this.onClick);this.R(a,"videodatachange",this.na);this.R(a,"videoplayerreset",
this.na);this.R(a,"appresize",this.na);this.R(a,"presentingplayerstatechange",this.na);this.na();g.J(this.element,"ytp-show-share-title",g.LB(b)&&!g.UB(b));g.dg(this,g.cY(this.tooltip,this.element))};
g.TY=function(a,b){var c=SM(),d=a.T();c={G:"div",L:"ytp-share-panel",U:{id:SM(),role:"dialog","aria-labelledby":c},S:[{G:"div",L:"ytp-share-panel-inner-content",S:[{G:"div",L:"ytp-share-panel-title",U:{id:c},Y:"Share"},{G:"a",ia:["ytp-share-panel-link","ytp-no-contextmenu"],U:{href:"{{link}}",target:d.F,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},Y:"{{linkText}}"},{G:"label",L:"ytp-share-panel-include-playlist",S:[{G:"input",L:"ytp-share-panel-include-playlist-checkbox",U:{type:"checkbox",
checked:!0}},"Include playlist"]},{G:"div",L:"ytp-share-panel-loading-spinner",S:[CX()]},{G:"div",L:"ytp-share-panel-service-buttons",Y:"{{buttons}}"},{G:"div",L:"ytp-share-panel-error",Y:"An error occurred while retrieving sharing information. Please try again later."}]},{G:"button",ia:["ytp-share-panel-close","ytp-button"],U:{title:"Close"},S:[g.pN()]}]};g.OX.call(this,a,c,250);this.api=a;this.tooltip=b.Jb();this.B=[];this.F=this.ga("ytp-share-panel-inner-content");this.closeButton=this.ga("ytp-share-panel-close");
this.R(this.closeButton,"click",this.fb);g.dg(this,g.cY(this.tooltip,this.closeButton));this.D=this.ga("ytp-share-panel-include-playlist-checkbox");this.R(this.D,"click",this.na);this.C=this.ga("ytp-share-panel-link");g.dg(this,g.cY(this.tooltip,this.C));this.ua("click",this.AL);this.R(a,"videoplayerreset",this.hide);this.R(a,"fullscreentoggled",this.zL);this.R(a,"onLoopRangeChange",this.na);this.hide()};
Oxa=function(a,b){a.la()||(g.Bn(a.element,"ytp-share-panel-loading"),Nxa(a,b))};
Nxa=function(a,b){Pxa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={Kj:e.Kj},f++){e.Kj=c[f];a:switch(e.Kj.img||e.Kj.iconId){case "facebook":var h={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{G:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",U:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":h={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{G:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",U:{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({G:"a",ia:["ytp-share-panel-service-button","ytp-button"],U:{href:e.Kj.url,target:"_blank",title:e.Kj.sname||e.Kj.serviceName},S:[h]}),h.ua("click",function(m){return function(n){if(g.QO(n)){var p=m.Kj.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 w=p instanceof g.Fc?p:g.Kc("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(",");Td()&&t.navigator&&t.navigator.standalone&&p&&"_self"!=p?(y=g.Fe("A"),g.id(y,w),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=kd("",t,p,y),r=g.Gc(w),t&&(g.rC&&-1!=r.indexOf(";")&&(r="'"+r.replace(/'/g,"%27")+"'"),t.opener=null,r=g.gd(g.kc("b/12014412, meta tag with sanitized URL"),
'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.nd(r)+'">'),(w=t.document)&&w.write&&(w.write(g.cd(r)),w.close()))):(t=kd(w,t,p,y))&&r.noopener&&(t.opener=null);if(r=t)r.opener||(r.opener=window),r.focus();g.ip(n)}}}(e)),g.dg(h,g.cY(a.tooltip,h.element)),a.B.push(h),d++)}var l=b.more||b.moreLink;
c=new g.V({G:"a",ia:["ytp-share-panel-service-button","ytp-button"],S:[{G:"span",L:"ytp-share-panel-service-button-more",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{G:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",U:{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"}}]}]}],U:{href:l,target:"_blank",title:"More"}});c.ua("click",function(m){g.BX(l,a.api,m)&&a.api.va("SHARE_CLICKED")});
g.dg(c,g.cY(a.tooltip,c.element));a.B.push(c);a.wa("buttons",a.B)};
Qxa=function(a){g.Bn(a.element,"ytp-share-panel-loading");g.I(a.element,"ytp-share-panel-fail")};
Pxa=function(a){for(var b=g.q(a.B),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.eg(c);a.B=[]};
WY=function(a,b){g.V.call(this,{G:"div",L:"ytp-shopping-overlay"});var c=this;this.J=a;this.za=b;this.B=this.I=this.da=this.u=this.expanded=this.dismissed=this.X=this.enabled=!1;this.ra=!0;this.D=this.C=!1;this.Z=new g.H(function(){c.badge.element.style.width=""},200,this);
this.ea=new g.H(function(){UY(c);VY(c)},200,this);
this.dismissButton=new g.V({G:"button",ia:["ytp-shopping-overlay-badge-dismiss-button-icon","ytp-button"]});g.C(this,this.dismissButton);this.F=new g.V({G:"div",L:"ytp-shopping-overlay-badge-expanded-content-container",S:[{G:"label",L:"ytp-shopping-overlay-badge-title"},this.dismissButton]});g.C(this,this.F);this.badge=new g.V({G:"button",ia:["ytp-button","ytp-shopping-overlay-badge","ytp-shopping-overlay-badge-with-controls"],S:[{G:"div",L:"ytp-shopping-overlay-badge-icon"},this.F]});g.C(this,this.badge);
this.badge.fa(this.element);this.R(this.badge.element,"click",this.VM);this.K=new g.PN(this.badge,250,!1,100);g.C(this,this.K);this.W=new g.PN(this.F,250,!1,100);g.C(this,this.W);this.ba=new g.qn(this.QQ,null,this);g.C(this,this.ba);this.P=new g.qn(this.rI,null,this);g.C(this,this.P);g.C(this,this.Z);g.C(this,this.ea);g.$M(this.J,this.badge.element,this.badge,!0);g.$M(this.J,this.dismissButton.element,this.dismissButton,!0);this.R(this.J,"onHideControls",function(){c.u=!1;VY(c);UY(c);c.Lh()});
this.R(this.J,"onShowControls",function(){c.u=!0;VY(c);UY(c);c.Lh()});
this.R(this.J,g.wD("shopping_overlay_visible"),function(){c.Eg(!0)});
this.R(this.J,g.xD("shopping_overlay_visible"),function(){c.Eg(!1)});
this.R(this.J,g.wD("shopping_overlay_expanded"),function(){c.I=!0;VY(c)});
this.R(this.J,g.xD("shopping_overlay_expanded"),function(){c.I=!1;VY(c)});
this.R(this.J,"changeProductsInVideoVisibility",this.EO);this.R(this.J,"videodatachange",this.Pa);this.R(this.J,"pageTransition",this.BL);this.R(this.dismissButton.element,"click",this.WM);this.R(this.J,"appresize",this.Lh);this.R(this.J,"fullscreentoggled",this.Lh);this.R(this.J,"cardstatechange",this.aN);this.R(this.J,"annotationvisibility",this.lR,this)};
UY=function(a){g.J(a.badge.element,"ytp-shopping-overlay-badge-with-controls",a.u||!a.B)};
XY=function(a){return a.ra&&!a.X&&a.enabled&&!a.dismissed&&!a.za.Lf()&&!a.J.isFullscreen()&&!a.da&&(a.B||a.u)};
VY=function(a,b){var c=a.I||a.u||!a.B;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.ba.stop(),a.P.stop(),a.Z.stop(),a.ba.start()):(g.WM(a.F,a.expanded),g.J(a.badge.element,"ytp-shopping-overlay-badge-expanded",a.expanded)),Rxa(a))};
Rxa=function(a){a.C&&g.dN(a.J,a.badge.element,XY(a));a.D&&g.dN(a.J,a.dismissButton.element,XY(a)&&(a.I||a.u||!a.B))};
Sxa=function(a,b){b?a.D&&g.gX(a.J,a.dismissButton.element):a.C&&g.gX(a.J,a.badge.element)};
Txa=function(a){g.cX(a.J,"shopping_overlay_visible");g.cX(a.J,"shopping_overlay_expanded")};
YY=function(a){g.OX.call(this,a,{G:"button",ia:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{G:"div",L:"ytp-skip-intro-button-text",Y:"Skip Intro"}]},100);var b=this;this.C=!1;this.B=new g.H(function(){b.hide()},5E3);
this.mk=this.Bl=NaN;g.C(this,this.B);this.I=function(){b.show()};
this.F=function(){b.hide()};
this.D=function(){var c=b.J.getCurrentTime();c>b.Bl/1E3&&c<b.mk/1E3&&b.show()};
this.R(this.J,"videodatachange",function(c,d){if("dataloaded"===c)if(b.Bl=d.Bl,b.mk=d.mk,isNaN(b.Bl)||isNaN(b.mk))b.C&&(g.cX(b.J,"intro"),b.J.removeEventListener(g.wD("intro"),b.I),b.J.removeEventListener(g.xD("intro"),b.F),b.J.removeEventListener("onShowControls",b.D),b.hide(),b.C=!1);else{b.J.addEventListener(g.wD("intro"),b.I);b.J.addEventListener(g.xD("intro"),b.F);b.J.addEventListener("onShowControls",b.D);var e=new g.tD(b.Bl,b.mk,{priority:7,namespace:"intro"});g.GM(b.J,[e]);b.C=!0}});
this.R(this.element,"click",function(){b.J.seekTo(b.mk/1E3)});
this.hide()};
ZY=function(a,b){g.V.call(this,{G:"button",ia:["ytp-airplay-button","ytp-button"],U:{title:"AirPlay"},Y:"{{icon}}"});this.J=a;this.ua("click",this.onClick);this.R(a,"airplayactivechange",this.na);this.R(a,"airplayavailabilitychange",this.na);this.na();g.dg(this,g.cY(b.Jb(),this.element))};
$Y=function(a,b){g.V.call(this,{G:"button",ia:["ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},S:[{G:"div",L:"ytp-autonav-toggle-button-container",S:[{G:"div",L:"ytp-autonav-toggle-button",U:{"aria-checked":"true"}}]}]});this.J=a;this.u=[];this.B=!1;this.isChecked=!0;this.R(a,"presentingplayerstatechange",this.Bp);this.ua("click",this.onClick);this.tooltip=b.Jb();g.dg(this,g.cY(b.Jb(),this.element));this.Bp()};
Uxa=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.wa("title",b);a.wa("label",b);CY(a.tooltip)};
g.bZ=function(a){g.V.call(this,{G:"div",L:"ytp-gradient-bottom"});this.B=g.Fe("CANVAS");this.u=this.B.getContext("2d");this.C=NaN;this.B.width=1;this.D=g.UB(a.T());g.aZ(this,g.pG(a).getPlayerSize().height)};
g.aZ=function(a,b){if(a.u){var c=Math.floor(b*(a.D?1:.4));c=Math.max(c,47);var d=c+2;if(a.C!==d){a.C=d;a.B.height=d;a.u.clearRect(0,0,1,d);var e=a.u.createLinearGradient(0,2,0,2+c);if(a.D)e.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),e.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),e.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var f=c-42;e.addColorStop(0,"rgba(0, 0, 0, 0)");e.addColorStop(f/c,"rgba(0, 0, 0, 0.3)");e.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.u.fillStyle=e;a.u.fillRect(0,2,1,c);a.element.style.height=
d+"px";try{a.element.style.backgroundImage="url("+a.B.toDataURL()+")"}catch(h){}}}};
cZ=function(a,b,c,d,e){g.V.call(this,{G:"div",L:"ytp-chapter-container",S:[{G:"button",ia:["ytp-chapter-title","ytp-button"],U:{title:"View chapter","aria-label":"View chapter"},S:[{G:"span",U:{"aria-hidden":"true"},L:"ytp-chapter-title-prefix",Y:"\u2022"},{G:"div",L:"ytp-chapter-title-content",Y:"{{title}}"},{G:"div",L:"ytp-chapter-title-chevron",S:[{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",U:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});
this.J=a;this.K=b;this.P=c;this.I=d;this.W=e;this.F="";this.currentIndex=0;this.C=void 0;this.B=!0;this.D=this.ga("ytp-chapter-container");this.u=this.ga("ytp-chapter-title");this.updateVideoData("newdata",this.J.getVideoData());this.R(a,"videodatachange",this.updateVideoData);this.R(this.D,"click",this.onClick);a.T().ca("html5_ux_control_flexbox_killswitch")&&this.R(a,"resize",this.X);this.R(a,"onVideoProgress",this.Gc);this.R(a,"SEEK_TO",this.Gc)};
Vxa=function(a,b,c,d,e){var f=b.Gt/b.rows,h=Math.min(c/(b.Ht/b.columns),d/f),l=b.Ht*h,m=b.Gt*h;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,r=-b.column*n,t=-b.row*p;e&&45>=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.dZ=function(a){g.V.call(this,{G:"div",L:"ytp-storyboard-framepreview",S:[{G:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.D=this.ga("ytp-storyboard-framepreview-img");this.Pg=null;this.B=NaN;this.events=new g.Wr(this);this.u=new g.PN(this,100);g.C(this,this.events);g.C(this,this.u);this.R(this.api,"presentingplayerstatechange",this.Vb)};
eZ=function(a,b){var c=!!a.Pg;a.Pg=b;a.Pg?(c||(a.events.R(a.api,"videodatachange",function(){eZ(a,a.api.eg())}),a.events.R(a.api,"progresssync",a.Vd),a.events.R(a.api,"appresize",a.C)),a.B=NaN,fZ(a),a.u.show(200)):(c&&g.Yr(a.events),a.u.hide(),a.u.stop())};
fZ=function(a){var b=a.Pg,c=a.api.getCurrentTime(),d=g.pG(a.api).getPlayerSize(),e=ME(b,d.width);c=RE(b,e,c);c!==a.B&&(a.B=c,OE(b,c,d.width),b=b.pl(c,d.width),Vxa(a.D,b,d.width,d.height))};
gZ=function(a,b){g.V.call(this,{G:"button",ia:["ytp-fullerscreen-edu-button","ytp-button"],S:[{G:"div",ia:["ytp-fullerscreen-edu-text"],Y:"Scroll for details"},{G:"div",ia:["ytp-fullerscreen-edu-chevron"],S:[{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",U:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.u=a;this.F=b;this.C=new g.PN(this,250,void 0,100);this.D=this.B=!1;g.fX(a,this.element,this,61214);this.F=b;g.C(this,this.C);this.R(a,
"fullscreentoggled",this.na);this.R(a,"presentingplayerstatechange",this.na);this.ua("click",this.onClick);this.na()};
g.hZ=function(a,b){g.V.call(this,{G:"button",ia:["ytp-fullscreen-button","ytp-button"],U:{title:"{{title}}"},Y:"{{icon}}"});this.J=a;this.C=b;this.message=null;this.u=g.cY(this.C.Jb(),this.element);this.B=new g.H(this.YH,2E3,this);g.C(this,this.B);this.R(a,"fullscreentoggled",this.mD);this.R(a,"presentingplayerstatechange",this.na);this.ua("click",this.onClick);if(Sr()){var c=g.pG(this.J);this.R(c,Wea(),this.Lx);this.R(c,Vr(document),this.zj)}a.T().ka||a.T().ca("embeds_enable_mobile_custom_controls")||
this.disable();this.na();this.mD(a.isFullscreen())};
iZ=function(a,b){g.V.call(this,{G:"button",ia:["ytp-miniplayer-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},S:[AN()]});this.J=a;this.visible=!1;this.ua("click",this.onClick);this.R(a,"fullscreentoggled",this.na);this.wa("title",g.EX(a,"Miniplayer","i"));g.dg(this,g.cY(b.Jb(),this.element));g.fX(a,this.element,this,62946);this.na()};
jZ=function(a,b,c){g.V.call(this,{G:"button",ia:["ytp-multicam-button","ytp-button"],U:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,U:{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.J=a;this.u=!1;this.B=new g.H(this.C,400,this);this.tooltip=b.Jb();fY(this.tooltip);g.C(this,this.B);this.ua("click",function(){PX(c,d.element,!1)});
this.R(a,"presentingplayerstatechange",function(){d.na(!1)});
this.R(a,"videodatachange",this.Pa);this.na(!0);g.dg(this,g.cY(this.tooltip,this.element))};
kZ=function(a){g.OX.call(this,a,{G:"div",L:"ytp-multicam-menu",U:{role:"dialog"},S:[{G:"div",L:"ytp-multicam-menu-header",S:[{G:"div",L:"ytp-multicam-menu-title",S:["Switch camera",{G:"button",ia:["ytp-multicam-menu-close","ytp-button"],U:{"aria-label":"Close"},S:[g.pN()]}]}]},{G:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.C=new g.Wr(this);this.items=this.ga("ytp-multicam-menu-items");this.B=[];g.C(this,this.C);a=this.ga("ytp-multicam-menu-close");this.R(a,"click",this.fb);this.hide()};
lZ=function(){g.B.call(this);this.B=null;this.startTime=this.duration=0;this.delay=new g.qn(this.u,null,this);g.C(this,this.delay)};
Wxa=function(a,b){if("path"===b.G)return b.U.d;if(b.S)for(var c=0;c<b.S.length;c++){var d=b.S[c];if(d&&"string"!==typeof d&&(d=Wxa(a,d)))return d}};
Zxa=function(a,b,c){c=Wxa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=SM();b=b.getElementsByTagName("use");for(var h=0;h<b.length;h++)b[h].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=Xxa(e),m=Xxa(c);mZ(a,function(n){d.setAttribute("d",Yxa(l,m,n))},200)};
mZ=function(a,b,c){a.B=b;a.startTime=(0,g.N)();a.duration=c;a.u()};
Xxa=function(a){var b=[];a=a.match($xa);for(var c=0;c<a.length;c++){var d=" "===a[c]?NaN:Number(a[c]);b.push(isNaN(d)?a[c]:d)}return b};
Yxa=function(a,b,c){for(var d="",e=0;e<a.length;e++){var f=a[e];d="number"===typeof f?d+(f+(b[e]-f)*c):d+f}return d};
nZ=function(a,b){g.V.call(this,{G:"button",ia:["ytp-mute-button","ytp-button"],U:a.T().W?{title:"{{title}}","aria-label":"{{label}}"}:{"aria-disabled":"true","aria-haspopup":"true"},Y:"{{icon}}"});this.J=a;this.u=null;this.D=this.P=this.F=this.X=NaN;this.Z=this.I=null;this.C=[];this.B=[];this.visible=!1;this.K=null;var c=this.J.T();this.wa("icon",GN());this.tooltip=b.Jb();this.u=new g.TM({G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"defs",S:[{G:"clipPath",U:{id:"ytp-svg-volume-animation-mask"},
S:[{G:"path",U:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{G:"path",U:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{G:"path",L:"ytp-svg-volume-animation-mover",U:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{G:"clipPath",U:{id:"ytp-svg-volume-animation-slash-mask"},S:[{G:"path",L:"ytp-svg-volume-animation-mover",U:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{G:"path",qb:!0,ia:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],U:{"clip-path":"url(#ytp-svg-volume-animation-mask)",
d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{G:"path",qb:!0,ia:["ytp-svg-fill","ytp-svg-volume-animation-hider"],U:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.C(this,this.u);this.I=this.u.ga("ytp-svg-volume-animation-speaker");this.Z=this.I.getAttribute("d");this.C=g.se("ytp-svg-volume-animation-mover",this.u.element);this.B=
g.se("ytp-svg-volume-animation-hider",this.u.element);this.ba=new lZ;g.C(this,this.ba);this.W=new lZ;g.C(this,this.W);this.ua("click",this.kO);this.R(a,"appresize",this.nD);this.R(a,"onVolumeChange",this.rL);var d=null;if(c.W)g.dg(this,g.cY(b.Jb(),this.element));else{var e="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/);d=new g.OX(a,{G:"span",ia:["ytp-popup","ytp-generic-popup"],U:{tabindex:"0"},S:[e[0],{G:"a",U:{href:"https://support.google.com/youtube/?p=noaudio",
target:c.F},Y:e[2]},e[4]]},100,!0);g.C(this,d);d.hide();d.subscribe("show",function(f){b.Ho(d,f)});
g.oP(a,d.element,4)}this.message=d;g.fX(a,this.element,this,28662);this.nD(g.pG(a).getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
cya=function(a,b){a.X=b;var c=a.Z;b&&(c+=Yxa(aya,bya,b));a.I.setAttribute("d",c)};
dya=function(a,b){a.P=b;for(var c=20*b,d=0;d<a.C.length;d++)a.C[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=GN():e=a.u;for(c=0;c<a.B.length;c++)a.B[c].style.display=0===b?"none":"";e!==a.K&&(a.wa("icon",e),a.K=e)};
oZ=function(a,b){g.V.call(this,{G:"button",ia:["ytp-pip-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},S:[AN()]});this.J=a;this.wa("title","Picture in Picture");this.ua("click",this.onClick);g.dg(this,g.cY(b.Jb(),this.element))};
g.pZ=function(a,b){g.V.call(this,{G:"button",ia:["ytp-play-button","ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}"},Y:"{{icon}}"});this.J=a;this.u=null;this.transition=new lZ;this.tooltip=b.Jb();g.C(this,this.transition);this.R(a,"fullscreentoggled",this.Pa);this.R(a,"presentingplayerstatechange",this.B);this.R(a,"videodatachange",this.Pa);eya(this,g.lI(a));this.ua("click",this.Rn,this);g.dg(this,g.cY(b.Jb(),this.element))};
fya=function(a){switch(a){case 1:return BN();case 2:return zN();case 3:return g.DN();case 4:return FN();default:return null}};
eya=function(a,b){var c=g.GF(a.J.getVideoData()),d=!1;if(g.hL(b))var e=c?4:2;else g.T(b,2)?(e=3,d=c):e=1;a.element.disabled=d;if(a.u!==e){c=null;switch(e){case 2:c=g.EX(a.J,"Pause","k");break;case 3:c="Replay";break;case 1:c=g.EX(a.J,"Play","k");break;case 4:c="Stop live playback"}3===e?a.update({title:c,label:null,icon:fya(e)}):(a.update({title:c,label:c}),(c=fya(e))&&a.u&&3!==a.u?Zxa(a.transition,a.element,c):a.wa("icon",c));CY(a.tooltip);a.u=e}};
g.qZ=function(a,b){return aG(b)?(b.fetch=0,new g.$F(a,b)):new g.UE(a,b)};
g.sZ=function(a,b,c){g.V.call(this,{G:"a",ia:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],U:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},S:[c?xN():CN()]});var d=this;this.J=a;this.u=c;this.playlist=this.videoData=null;this.I=!1;this.D=this.F=this.B=null;this.C=!1;this.tooltip=b.Jb();this.R(a,"fullscreentoggled",this.Pa);
this.R(a,"videodatachange",this.Pa);this.R(a,"onPlaylistUpdate",this.Pa);this.u||this.R(a,"appresize",this.wx);this.R(a,"mdxpreviousnextchange",function(){rZ(d);d.wx()});
this.Pa()};
gya=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.Pa,a)};
hya=function(a){return!!a.playlist&&!a.u&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.J.getCurrentTime()&&2!==a.J.getPresentingPlayerType()};
iya=function(a){var b=g.RW(g.NW(a.J));return b?a.u?b.hasNext():b.gi():!1};
rZ=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.SW(a.J)&&(!a.u||c);var d=a.u&&g.eX(a.J),e=iya(a),f=a.u&&5===a.J.getPresentingPlayerType(),h=g.EX(a.J,"Next","SHIFT+n"),l=g.EX(a.J,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.C)b.title="Replay";else if(c){var m=null;a.playlist&&(m=a.playlist.Ka(a.u?bG(a.playlist):cG(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;b.url=a.J.T().getVideoUrl(m.videoId,n?
n.toString():void 0)}b.text=m.title;b.duration=m.lengthSeconds?g.PO(m.lengthSeconds):null;b.preview=m.Gd("mqdefault.jpg")}b.title=a.u?h:l}else d&&(a.videoData&&a.videoData.suggestions&&a.videoData.suggestions.length&&(l=g.qZ(a.J.T(),a.videoData.suggestions[0]),b.url=l.fk(),b.text=l.title,b.duration=l instanceof g.UE?g.PO(l.lengthSeconds):null,b.preview=l.Gd("mqdefault.jpg")),b.title=h);b.disabled=!d&&!c&&!e&&!f;a.update(b);a.I=!!b.url;d||c||a.C||e||f?a.B||(a.B=g.cY(a.tooltip,a.element),a.F=a.ua("click",
a.onClick,a)):a.B&&(a.B(),a.B=null,a.Eb(a.F),a.F=null);CY(a.tooltip)};
tZ=function(){g.V.call(this,{G:"div",L:"ytp-chapter-hover-container",S:[{G:"div",L:"ytp-progress-bar-padding"},{G:"div",L:"ytp-progress-list",S:[{G:"div",ia:["ytp-play-progress","ytp-swatch-background-color"]},{G:"div",L:"ytp-load-progress"},{G:"div",L:"ytp-hover-progress"},{G:"div",L:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.width=0;this.C=this.ga("ytp-ad-progress-list");this.D=this.ga("ytp-load-progress");this.F=this.ga("ytp-play-progress");this.B=this.ga("ytp-hover-progress");
this.u=this.ga("ytp-chapter-hover-container")};
uZ=function(a,b){g.E(a.u,"width",b)};
vZ=function(a,b){g.E(a.u,"margin-right",b+"px")};
jya=function(){this.C=this.position=this.D=this.u=this.F=this.B=this.width=NaN};
kya=function(){g.V.call(this,{G:"div",L:"ytp-timed-marker"});this.timeRangeStartMillis=NaN;this.thumbnailUrl=this.title="";this.onActiveCommand=void 0};
g.wZ=function(a,b){g.XM.call(this,{G:"div",L:"ytp-progress-bar-container",U:{"aria-disabled":"true"},S:[{G:"div",ia:["ytp-progress-bar",a.T().u?"ytp-mobile":""],U:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},S:[{G:"div",L:"ytp-chapters-container"},{G:"div",L:"ytp-marker-crenellation-list"},{G:"div",L:"ytp-timed-markers-container"},{G:"div",L:"ytp-clip-start-exclude"},
{G:"div",L:"ytp-clip-end-exclude"},{G:"div",L:"ytp-scrubber-container",S:[{G:"div",ia:["ytp-scrubber-button","ytp-swatch-background-color"],S:[{G:"div",L:"ytp-scrubber-pull-indicator"}]}]}]},{G:"div",L:"ytp-bound-time-left",Y:"{{boundTimeLeft}}"},{G:"div",L:"ytp-bound-time-right",Y:"{{boundTimeRight}}"},{G:"div",L:"ytp-clip-start",U:{title:"{{clipstarttitle}}"},Y:"{{clipstarticon}}"},{G:"div",L:"ytp-clip-end",U:{title:"{{clipendtitle}}"},Y:"{{clipendicon}}"}]});this.api=a;this.ac=!1;this.C=this.ud=
0;this.ea=1;this.wd=this.P=0;this.D=null;this.W=this.nb=0;this.Lc=this.ga("ytp-marker-crenellation-list");this.Z={};this.Qa={};this.clipEnd=Infinity;this.za=this.ga("ytp-clip-end");this.ob=new g.bs(this.za,!0);this.xc=this.ga("ytp-clip-end-exclude");this.Qe=this.ga("ytp-clip-start-exclude");this.clipStart=0;this.Ga=this.ga("ytp-clip-start");this.yb=new g.bs(this.Ga,!0);this.I=this.ha=0;this.Oc=this.ga("ytp-progress-bar");this.Ja=void 0;this.Lb={};this.Za=this.ga("ytp-chapters-container");this.ce=
this.ga("ytp-timed-markers-container");this.Ba=[];this.ra=[];this.da=-1;this.Pb=g.Q(this.api.T().experiments,"web_macro_markers_snapping_threshold");this.ka=this.X=0;this.F=null;this.ae=this.ga("ytp-scrubber-button");this.pe=this.ga("ytp-scrubber-container");this.Na=new g.fe;this.hd=new jya;this.u=new ZO(0,0);this.K=null;this.B=this.Ub=!1;this.td=null;this.tooltip=b.Jb();g.dg(this,g.cY(this.tooltip,this.za));g.C(this,this.ob);this.ob.subscribe("hoverstart",this.XD,this);this.ob.subscribe("hoverend",
this.WD,this);this.R(this.za,"click",this.cu);g.dg(this,g.cY(this.tooltip,this.Ga));g.C(this,this.yb);this.yb.subscribe("hoverstart",this.XD,this);this.yb.subscribe("hoverend",this.WD,this);this.R(this.Ga,"click",this.cu);lya(this);this.R(a,"resize",this.Ra);this.R(a,"presentingplayerstatechange",this.wL);this.R(a,"videodatachange",this.oD);this.R(a,"videoplayerreset",this.jJ);this.R(a,"cuerangesadded",this.vG);this.R(a,"cuerangesremoved",this.xQ);this.R(a,"cuerangemarkersupdated",this.vG);this.R(a,
"onLoopRangeChange",this.uG);this.updateVideoData(a.getVideoData(),!0);this.uG(a.getLoopRange())};
lya=function(a){if(0===a.Ba.length){var b=new tZ;a.Ba.push(b);g.C(a,b);b.fa(a.Za,0)}for(;1<a.Ba.length;)a.Ba.pop().dispose();uZ(a.Ba[0],"100%");a.Ba[0].startTime=0;a.Ba[0].title=""};
mya=function(a){for(;a.ra.length;)a.ra.pop().dispose()};
oya=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=nya(a,d.timeRangeStartMillis/(1E3*a.u.u),xZ(a));g.E(d.element,"transform","translateX("+e+"px)")}};
pya=function(a,b){for(var c=0,d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;if(e.chapterRenderer){e=e.chapterRenderer;var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;h&&h.simpleText&&(f.title=h.simpleText);h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.Ba[c].startTime=0,a.Ba[c].title="",a.Ba[c].onActiveCommand=e.onActiveCommand,c++);a.Ba.length<=c&&(f=new tZ,a.Ba.push(f),g.C(a,f),f.fa(a.Za,a.Za.children.length));
a.Ba[c].startTime=e.startTime;a.Ba[c].title=e.title?e.title:"";a.Ba[c].onActiveCommand=e.onActiveCommand}c++}for(;c<a.Ba.length;)a.Ba.pop().dispose();g.yZ(a)};
g.yZ=function(a){a.X=a.Ba.length-1;a.ka=0;qya(a,!0)&&qya(a,!1);for(var b=0,c=0;c<a.Ba.length;c++)if(0===a.Ba[c].width){if(c===a.Ba.length-1)for(var d=a.Ba.length-1;0<=d;d--)if(0<a.Ba[d].width){vZ(a.Ba[d],0);uZ(a.Ba[d],Math.floor(a.Ba[d].width)+"px");break}uZ(a.Ba[c],"0")}else c===a.Ba.length-1?uZ(a.Ba[c],Math.floor(a.Ba[c].width+b)+"px"):(b=a.Ba[c].width+b,d=Math.round(b),b-=d,uZ(a.Ba[c],d+"px"));zZ(a)};
qya=function(a,b){var c=0,d=!1,e=a.Ba.length,f=1E3*a.u.u;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.C){for(var h=a.C-(a.B?3:2)*a.X,l=0===a.ka?3:h*a.ka,m=g.q(a.Ba),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.Ba[c].startTime;c<e-1&&(m=a.Ba[c+1].startTime-a.Ba[c].startTime,vZ(a.Ba[c],a.B?3:2));g.J(a.Ba[c].u,"ytp-exp-chapter-hover-container",1<a.Ba.length);n=(0===f?0:m/f*h)+a.Ba[c].width;if(n>l)a.Ba[c].width=n;else{a.Ba[c].width=0;var p=a,r=c,t=p.Ba[r-1];void 0!==
t&&0<t.width?t.width+=n:r<p.Ba.length-1&&(p.Ba[r+1].width+=n);vZ(p.Ba[r],0);b&&(a.X--,m/f>a.ka&&(a.ka=m/f),d=!0)}c++}}return d};
zZ=function(a){if(a.C){var b=a.api.getProgressState(),c=new ZO(b.seekableStart,b.seekableEnd),d=aP(c,b.loaded,0);b=aP(c,b.current,0);var e=a.u.B!==c.B||a.u.u!==c.u;a.u=c;AZ(a,b,d);e&&BZ(a);rya(a)}};
DZ=function(a,b){var c=$O(a.u,b.C);if(1<a.Ba.length){c=CZ(a,b.D,!0);for(var d=0,e=0;e<c;e++)0<a.Ba[e].width&&(d+=a.Ba[e].width,d+=a.B?3:2);c=(a.Ba[c].startTime+(b.D-d)/a.Ba[c].width*((c===a.Ba.length-1?1E3*a.u.u:a.Ba[c+1].startTime)-a.Ba[c].startTime))/1E3}return c};
sya=function(a,b,c){return c>=a.Ba.length?!1:Math.abs(b-a.Ba[c].startTime/1E3)/a.u.u*(a.C-(a.B?3:2)*a.X)<a.Pb};
tya=function(a,b,c,d){b=g.be(b,0,a.B?60:40);a.P=b;var e=a.ea,f=Math.max(a.u.getLength()/a.C,1);a.ea=b/(a.B?60:40)*(f-1)+1;b=a.C*a.ea;a.W=g.be(d*b-c,0,b-a.C);e!==a.ea&&BZ(a)};
BZ=function(a){var b=xZ(a),c=-b.B/b.u,d=(-b.B+b.width)/b.u,e=Saa(a.Lc),f=0;if(a.P>.2*(a.B?60:40)&&1===a.Ba.length){var h=c*(a.u.getLength()/60),l=d*(a.u.getLength()/60);for(h=Math.ceil(h);h<l;h++){var m=e[f];m||(m=g.Fe("DIV"),a.Lc.appendChild(m));f++;0===h%60?yn(m,"ytp-60m-progress"):0===h%30?yn(m,"ytp-30m-progress"):0===h%15?yn(m,"ytp-15m-progress"):yn(m,"ytp-1m-progress");var n=(60*h/a.u.getLength()-c)*b.u;m.style.left=n+"px"}}b=a.Ub?a.u.u:0;a.update({boundTimeLeft:g.PO($O(a.u,c)-b),boundTimeRight:g.PO($O(a.u,
d)-b)});for(c=e.length-1;c>=f;c--)g.Je(e[c]);a.element.style.height=a.P+(a.B?8:5)+"px";a.V("height-change",a.P);a.ae.style.height=a.P+(a.B?20:13)+"px";e=g.q(Object.keys(a.Z));for(f=e.next();!f.done;f=e.next())uya(a,f.value);EZ(a);AZ(a,a.I,a.ha)};
xZ=function(a){var b=a.Na.x,c=a.C*a.ea;b=g.be(b,0,a.C);a.hd.update(b,a.C,-a.W,-(c-a.W-a.C));return a.hd};
AZ=function(a,b,c){a.I=b;a.ha=c;var d=xZ(a),e=a.u.u,f=$O(a.u,a.I),h=g.jJ("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.PO(f,!0),DURATION:g.PO(e,!0)}),l=FY(a.Ba,1E3*f);l=a.Ba[l].title;a.update({ariamin:Math.floor(a.u.B),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.K&&2!==a.api.getPresentingPlayerType()&&(e=a.K.startTimeMs/1E3,f=a.K.endTimeMs/1E3);e=aP(a.u,e,0);h=aP(a.u,f,1);f=g.be(b,e,h);c=g.be(c,e,h);b=nya(a,b,d);g.E(a.pe,"transform","translateX("+
b+"px)");FZ(a,d,e,f,"PLAY_PROGRESS");FZ(a,d,e,c,"LOAD_PROGRESS")};
FZ=function(a,b,c,d,e){var f=a.Ba.length,h=b.u-a.X*(a.B?3:2),l=c*h;c=CZ(a,l);var m=d*h;h=CZ(a,m);"HOVER_PROGRESS"===e&&(h=CZ(a,b.u*d,!0),m=b.u*d-vya(a,b.u*d)*(a.B?3:2));b=Math.max(l-wya(a,c),0);for(d=c;d<f;d++)a.Ba[d].Ma(e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.Ba[f].width,GZ(a,a.Ba[f].Ma(e),f===c?d-b:d,d);f=a.Ba[h].width;m=g.be(m-wya(a,h),0,f);c===h&&(m-=b);GZ(a,a.Ba[h].Ma(e),m,f);m=a.Ba.length;for(h+=1;h<m;h++)GZ(a,a.Ba[h].Ma(e),0,a.Ba[h].width);for(h=0;h<c;h++)GZ(a,a.Ba[h].Ma(e),0,a.Ba[h].width)};
wya=function(a,b){if(b>=a.Ba.length)return a.C;for(var c=0,d=0;d<b;)c+=a.Ba[d].width,d++;return c};
GZ=function(a,b,c,d,e){e||a.api.T().u?b.style.width=c+"px":g.E(b,"transform","scalex("+(d?c/d:0)+")")};
CZ=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=vya(a,b)*(a.B?3:2));c=g.q(a.Ba);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.Ba.length?d-1:d};
nya=function(a,b,c){for(var d=b*a.u.u*1E3,e=-1,f=g.q(a.Ba),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.u-(a.B?3:2)*a.X)+(a.B?3:2)*(0>e?0:e)+c.B};
vya=function(a,b){for(var c=a.Ba.length,d=0,e=g.q(a.Ba),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.B?3:2,d++;else break;return d===c?c-1:d};
EZ=function(a){var b=!!a.K&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.K?(c=a.K.startTimeMs/1E3,d=a.K.endTimeMs/1E3):(e=c>a.u.B,f=0<a.u.u&&d<a.u.u);g.J(a.element,"ytp-loop-range-enabled",b);g.J(a.element,"ytp-clip-start-enabled",e);g.J(a.element,"ytp-clip-end-enabled",f);b=e?aP(a.u,c,0):0;d=f?aP(a.u,d,1):1;a.Ga.style.left=Math.round(1E3*b)/10+"%";a.za.style.left=Math.round(1E3*d)/10+"%";a.Qe.style.width=Math.round(1E3*b)/10+"%";a.xc.style.left=Math.round(1E3*d)/10+
"%";a.xc.style.width=Math.round(1E3*(1-d))/10+"%"};
rya=function(a){var b=xZ(a);FZ(a,b,a.I,Math.max(b.C,a.I),"HOVER_PROGRESS");for(var c=CZ(a,b.u*a.I,!0),d=CZ(a,b.D,!0),e=c;e<=d;e++)g.J(a.Ba[e].B,"ytp-hover-progress-light",b.C>a.I);g.J(a.ae,"ytp-scrubber-button-hover",c===d&&1<a.Ba.length)};
uya=function(a,b){var c=a.Z[b],d=a.Qa[b],e=xZ(a),f=aP(a.u,c.start/1E3,0),h=vla(c,a.B)/e.width;var l=aP(a.u,c.end/1E3,1);h!==Number.POSITIVE_INFINITY&&(f=g.be(f,0,l-h));l=Math.min(l,f+h);c.color&&(d.style.background=c.color);c=f;f=!0;d.style.left=Math.max(c*e.u+e.B,0)+"px";GZ(a,d,g.be((l-c)*e.u+e.B,0,e.width),e.width,void 0===f?!1:f)};
xya=function(a,b){var c=b.getId();a.Z[c]===b&&(g.Je(a.Qa[c]),delete a.Z[c],delete a.Qa[c])};
yya=function(a,b){b?a.F||(a.element.removeAttribute("aria-disabled"),a.F=new g.bs(a.Oc,!0),a.F.subscribe("hovermove",a.HO,a),a.F.subscribe("hoverend",a.GO,a),a.F.subscribe("dragstart",a.FO,a),a.F.subscribe("dragmove",a.JO,a),a.F.subscribe("dragend",a.IO,a),a.td=a.ua("keydown",a.xL)):a.F&&(a.element.setAttribute("aria-disabled","true"),a.Eb(a.td),a.F.cancel(),a.F.dispose(),a.F=null)};
g.zya=function(a){var b=2*a.C*g.jC();return 1E3*a.u.getLength()/a.api.getPlaybackRate()/b};
HZ=function(a,b,c){g.V.call(this,{G:"button",L:"ytp-button",U:{title:"Play on TV","aria-haspopup":"true"},Y:"{{icon}}"});this.J=a;this.Ta=c;this.u=null;this.R(a,"onMdxReceiversChange",this.na);this.R(a,"presentingplayerstatechange",this.na);this.R(a,"appresize",this.na);this.na();this.ua("click",this.B,this);g.dg(this,g.cY(b.Jb(),this.element))};
IZ=function(a,b,c){g.V.call(this,{G:"button",ia:["ytp-button","ytp-settings-button"],U:{"aria-haspopup":"true","aria-owns":SM(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},S:[g.EN()]});this.J=a;this.Ta=c;this.B=!0;this.ua("click",this.C);this.R(a,"onPlaybackQualityChange",this.updateBadge);this.R(a,"videodatachange",this.updateBadge);this.R(a,"webglsettingschanged",this.updateBadge);this.R(a,"appresize",this.u);g.dg(this,g.cY(b.Jb(),this.element));g.fX(this.J,this.element,this,
28663);this.updateBadge();this.u(g.pG(a).getPlayerSize())};
JZ=function(a,b){a.B=!!b;a.u(g.pG(a.J).getPlayerSize())};
KZ=function(a,b){g.rY.call(this,"Annotations",6);this.J=a;this.Ta=b;this.u=!1;this.R(a,"videodatachange",this.na);this.R(a,"onApiChange",this.na);this.subscribe("select",this.B,this);this.na()};
g.LZ=function(a,b,c,d,e,f,h){g.jY.call(this,g.kY({"aria-haspopup":"true"}),b,a);this.Ta=d;this.F=!1;this.B=null;this.options={};this.C=new g.nY(c,void 0,a,e,f,h);g.C(this,this.C);this.ua("keydown",this.yL);this.ua("click",this.open)};
Aya=function(a){if(a.B){var b=a.options[a.B];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.B=null}};
g.MZ=function(a,b){g.oY(a.C);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.B;l&&(d=!0);h&&h.priority===-e?(l=a,g.iY(l.options[f],l.rh(f,!0)),delete a.options[f]):h=a.lv(f,-e,l);c[f]=h;a.C.Nb(h,!0)}d||(a.B=null);d=g.q(Object.keys(a.options));for(e=d.next();!e.done;e=d.next())a.options[e.value].dispose();a.options=c};
NZ=function(a,b){g.LZ.call(this,"Audio track",3,a,b);this.J=a;this.tracks={};this.u=new g.V({G:"div",S:[{G:"span",Y:"Audio track"},{G:"span",L:"ytp-menuitem-label-count",Y:"{{content}}"}]});g.C(this,this.u);g.iY(this,this.u);this.R(a,"videodatachange",this.na);this.R(a,"onPlaybackAudioChange",this.na);this.na()};
OZ=function(a,b){g.rY.call(this,"Autoplay",7);this.J=a;this.Ta=b;this.B=!1;this.u=[];this.R(a,"presentingplayerstatechange",this.C);this.subscribe("select",this.F,this);this.C()};
PZ=function(a,b,c,d){d=new g.V({G:"div",ia:["ytp-linked-account-popup-button"],Y:d,U:{role:"button",tabindex:"0"}});b=new g.V({G:"div",L:"ytp-linked-account-popup",U:{role:"dialog","aria-modal":"true",tabindex:"-1"},S:[{G:"div",L:"ytp-linked-account-popup-title",Y:b},{G:"div",L:"ytp-linked-account-popup-description",Y:c},{G:"div",L:"ytp-linked-account-popup-buttons",S:[d]}]});g.OX.call(this,a,{G:"div",L:"ytp-linked-account-popup-container",S:[b]},100);var e=this;this.dialog=b;g.C(this,this.dialog);
d.ua("click",function(){e.fb()});
g.C(this,d);g.oP(this.J,this.element,4);this.hide()};
QZ=function(a,b){g.jY.call(this,g.kY({"aria-haspopup":"true"}),1);this.J=a;this.Ta=b;this.B=this.u=!1;this.R(this.J,"videodatachange",this.D);this.ua("click",this.onClick);this.D()};
RZ=function(a){return a?g.U(a):""};
SZ=function(a,b){g.LZ.call(this,"Quality",2,a,b);this.J=a;this.D={};this.u="unknown";g.I(this.C.element,"ytp-quality-menu");this.R(a,"videodatachange",this.Dp);this.R(a,"videoplayerreset",this.Dp);this.R(a,"onPlaybackQualityChange",this.pD);this.Dp()};
Bya=function(a,b,c){a=a.D[b];var d=g.Lv[b];c={G:"span",ia:c,S:[a?a.qualityLabel:d?d+"p":"Auto"]};var e;"highres"===b?e="8K":"hd2880"===b?e="5K":"hd2160"===b?e="4K":0===b.indexOf("hd")&&"hd720"!==b&&(e="HD");e&&(c.S.push(" "),c.S.push({G:"sup",L:"ytp-swatch-color",Y:e}));return c};
TZ=function(a,b,c,d,e,f,h){g.V.call(this,{G:"div",L:"ytp-slider-section",U:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{G:"div",L:"ytp-slider",S:[{G:"div",L:"ytp-slider-handle"}]}]});this.I=a;this.F=b;this.minimumValue=c;this.maximumValue=d;this.K=e;this.P=f;this.range=this.maximumValue-this.minimumValue;this.Z=this.ga("ytp-slider-section");this.B=this.ga("ytp-slider");this.W=this.ga("ytp-slider-handle");
this.D=new g.bs(this.B,!0);this.u=h?h:c;g.C(this,this.D);this.D.subscribe("dragmove",this.DL,this);this.R(this.element,"keydown",this.EL);this.R(this.element,"wheel",this.CL);this.init()};
VZ=function(a){TZ.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.C=g.Fe("P");this.ba=maa(this.X,this);g.I(this.B,"ytp-speedslider");g.I(this.C,"ytp-speedslider-text");a=this.C;var b=this.B;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);UZ(this);this.R(this.J,"onPlaybackRateChange",this.ea)};
UZ=function(a){a.C.textContent=WZ(a,a.u)+"x"};
WZ=function(a,b){var c=Number(g.be(b,a.minimumValue,a.maximumValue).toFixed(2)),d=Math.floor(100*(c+.001)%5+2E-15),e=c;0!==d&&(e=c-.01*d);return Number(e.toFixed(2))};
XZ=function(a){g.XM.call(this,{G:"div",L:"ytp-speedslider-component"});this.u=new VZ(a);g.C(this,this.u);this.element.appendChild(this.u.element)};
Cya=function(a){var b=new XZ(a);mY.call(this,a,b,"Custom");g.C(this,b)};
YZ=function(a,b){var c=new Cya(a);g.LZ.call(this,"Playback speed",5,a,b,"Custom",function(){g.tY(b,c)});
g.C(this,c);this.J=a;this.D=this.u=this.K=null;this.I=this.J.getAvailablePlaybackRates();this.R(a,"presentingplayerstatechange",this.na);this.na()};
Dya=function(a,b){var c=ZZ(b);a.options[c]?a.zc(c):b===a.D&&a.u&&(a.zc(a.u),a.pc(b.toString()))};
Fya=function(a){g.MZ(a,a.I.map(ZZ));a.u=null;a.D=null;var b=a.J.getPlaybackRate();a.I.includes(b)||(Eya(a,b),g.LZ.prototype.Be.call(a,a.u))};
Eya=function(a,b){a.D=b;a.u=g.jJ("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});var c=a.I.map(ZZ);c.unshift(a.u);g.MZ(a,c)};
ZZ=function(a){return a.toString()};
$Z=function(a,b,c,d){var e=new g.nY(b,void 0,"Video Override");g.LZ.call(this,d.text||"",a,b,c,"Video Override",function(){g.tY(c,e)});
var f=this;g.I(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.Hb(a,this.getKey,this);this.I=e;g.C(this,this.I);b=new g.jY({G:"div",L:"ytp-menuitemtitle",Y:"Allow for a different caption style if specified by the video."},0);g.C(this,b);this.I.Nb(b,!0);this.D=new g.jY({G:"div",L:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},S:[{G:"div",L:"ytp-menuitem-label",Y:"On"}]},-1);g.C(this,this.D);this.I.Nb(this.D,!0);this.R(this.D.element,
"click",function(){Gya(f,!0)});
this.u=new g.jY({G:"div",L:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},S:[{G:"div",L:"ytp-menuitem-label",Y:"Off"}]},-2);g.C(this,this.u);this.I.Nb(this.u,!0);this.R(this.u.element,"click",function(){Gya(f,!1)});
g.MZ(this,g.Pc(a,this.getKey))};
Gya=function(a,b){a.V("settingChange",a.setting+"Override",!b);a.Ta.Sf()};
a_=function(a,b){g.nY.call(this,a,void 0,"Options");var c=this;this.uk={};for(var d=0;d<g.HY.length;d++){var e=g.HY[d],f=new $Z(-d,a,b,e);g.C(this,f);f.subscribe("settingChange",this.Of,this);this.uk[e.option.toString()]=f;this.Nb(f,!0)}d=new g.jY(g.kY(),-g.HY.length,"Reset");g.C(this,d);d.ua("click",function(){c.Of("reset",!0)});
this.Nb(d,!0)};
b_=function(a,b){g.LZ.call(this,"Auto-translate",0,a,b);this.languages={}};
Hya=function(a,b){a.languages=g.Hb(b,a.getKey,a);g.MZ(a,g.Pc(b,a.getKey))};
c_=function(a,b){var c=new a_(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.qC(a.T())&&(e={G:"div",L:"ytp-panel-footer-content",S:[{G:"span",Y:d[0]},{G:"a",L:"ytp-panel-footer-content-link",Y:"Settings",U:{href:"/account_playback"}},{G:"span",Y:d[1]}]});g.LZ.call(this,"Subtitles/CC",4,a,b,"Options",function(){g.tY(b,c)},e);
var f=this;this.J=a;this.Ta=b;this.tracks={};this.I=new g.H(function(){Iya(f,!1)},3E3);
g.C(this,this.I);this.K=new g.V({G:"div",S:[{G:"span",Y:"Subtitles/CC"},{G:"span",L:"ytp-menuitem-label-count",Y:"{{content}}"}]});g.C(this,this.K);g.iY(this,this.K);this.u=new b_(a,b);g.C(this,this.u);this.u.subscribe("select",this.JL,this);this.D=c;g.C(this,this.D);this.D.subscribe("settingChange",this.Of,this);b.subscribe("show",this.nP,this);this.R(a,"videodatachange",this.na);this.R(a,"onApiChange",this.na);this.R(a,"onCaptionsTrackListChanged",this.na);this.R(a,"captionschanged",this.na);this.na()};
Iya=function(a,b){a.J.setOption("captions","sampleSubtitles",b)};
d_=function(a){g.vY.call(this,a,"ytp-settings-menu");var b=this;this.Uc=new g.nY(this.J);this.fx=this.settingsButton=null;this.Dd=!1;g.C(this,this.Uc);this.hide();g.tY(this,this.Uc);g.fX(a,this.element,this,108341,!0);this.subscribe("show",function(c){b.Eg(c)})};
Jya=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-owns")};
e_=function(a,b){g.V.call(this,{G:"button",ia:["ytp-size-button","ytp-button"],U:{title:"{{title}}"},Y:"{{icon}}"});this.J=a;this.isWidescreen=null;this.transition=new lZ;this.tooltip=b.Jb();g.C(this,this.transition);this.R(a,"sizestylechange",this.na);this.R(a,"fullscreentoggled",this.na);this.R(a,"presentingplayerstatechange",this.na);this.na();this.ua("click",this.onClick);g.dg(this,g.cY(this.tooltip,this.element))};
f_=function(a,b){g.V.call(this,{G:"button",ia:["ytp-subtitles-button","ytp-button"],U:{"aria-pressed":"{{pressed}}",title:g.EX(a,"Subtitles/closed captions","c")},S:[qN()]});this.J=a;this.R(a,"videodatachange",this.na);this.R(a,"appresize",this.na);this.R(a,"onApiChange",this.na);this.R(a,"onCaptionsTrackListChanged",this.na);this.R(a,"captionschanged",this.na);this.na();this.ua("click",this.onClick);g.dg(this,g.cY(b.Jb(),this.element))};
g.g_=function(a,b,c){c=void 0===c?350:c;g.V.call(this,{G:"div",ia:["ytp-time-display","notranslate"],S:[{G:"span",L:"ytp-time-current",Y:"{{currenttime}}"},{G:"span",L:"ytp-time-separator",Y:" / "},{G:"span",L:"ytp-time-duration",Y:"{{duration}}"}]});this.api=a;this.K=c;this.liveBadge=new g.V({G:"button",ia:["ytp-live-badge","ytp-button"],U:{disabled:"true"},Y:"{{content}}"});this.u=null;this.B=!1;this.I=this.F=null;this.isPremiere=!1;this.D=this.C=null;this.liveBadge.pc("Live");g.C(this,this.liveBadge);
this.liveBadge.fa(this.element);this.tooltip=b.Jb();this.ua("click",this.onClick);this.R(a,"presentingplayerstatechange",this.Gc);this.R(a,"appresize",this.Gc);this.R(a,"videodatachange",this.Pa);(a=a.getVideoData())&&this.updateVideoData(a);this.Gc()};
j_=function(a,b,c){g.V.call(this,{G:"div",L:"ytp-volume-panel",U:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{G:"div",L:"ytp-volume-slider",S:[{G:"div",L:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.B=b;this.K=c;this.kh=!1;this.X=this.volume=0;this.P=null;this.D=this.u=this.C=!1;this.B=b;this.K=c;this.F=b.Hd();this.W=this.ga("ytp-volume-slider");this.Z=this.ga("ytp-volume-slider-handle");this.I=
new g.bs(this.W,!0);g.C(this,this.I);this.I.subscribe("dragstart",this.rP,this);this.I.subscribe("dragmove",this.NL,this);this.I.subscribe("dragend",this.qP,this);this.R(a,"onVolumeChange",this.PL);this.R(a,"appresize",this.sD);this.R(a,"fullscreentoggled",this.zj);this.R(a,"onShowControls",this.GA);this.R(a,"onHideControls",this.GA);this.R(this.element,"keydown",this.OL);this.R(this.element,"focus",function(){h_(d,d.u,d.C,!0,d.B.kh())});
this.R(this.element,"blur",function(){h_(d,d.u,d.C,!1,d.B.kh())});
this.sD(g.pG(a).getPlayerSize());i_(this,a.getVolume(),a.isMuted())};
i_=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.wa("valuenow",d);a.wa("valuetext",e);a.Z.style.left=(a.F?60:40)*c+"px";a.volume=b};
Kya=function(a,b){g.J(a.element,"ytp-volume-control-hover",b);h_(a,b,a.C,a.D,a.B.kh())};
h_=function(a,b,c,d,e){var f=a.u||a.C||a.D||a.kh;a.u=b;a.C=c;a.D=d;a.kh=e;b=a.u||a.C||a.D||a.kh;f!==b&&(b?a.P=a.R(a.element,"wheel",a.ML):(a.Eb(a.P),a.P=null),g.J(a.K,"ytp-volume-slider-active",b))};
g.k_=function(a,b){var c=a.T(),d=g.gC(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],f=g.UB(c);f&&e.push("ytp-youtube-music-button");g.V.call(this,{G:"a",ia:e,U:{href:"{{url}}",target:c.F,title:g.jJ("Watch on $WEBSITE",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},S:[f?{G:"svg",U:{viewBox:"0 0 77 20"},S:[{G:"g",U:{fill:"none"},S:[{G:"path",U:{d:"M27.71 3.30a3.53 3.53 0 0 0-2.49-2.49c-2.19-.59-11.00-.59-11.00-.59s-8.81 0-11.00.59A3.53 3.53 0 0 0 .71 3.30c-.59 2.20-.59 6.8-.59 6.8s0 4.59.59 6.8a3.53 3.53 0 0 0 2.49 2.49c2.19.59 11.00.59 11.00.59s8.81 0 11.00-.59a3.53 3.53 0 0 0 2.49-2.49c.59-2.20.59-6.8.59-6.8s-.00-4.59-.59-6.8z",
fill:"red"}},{G:"path",U:{d:"M11.39 14.34l7.32-4.23-7.32-4.24zM40.69 7.88c-.50 2.56-.88 5.69-1.08 6.98h-.14c-.16-1.33-.54-4.44-1.06-6.97l-1.29-6.28h-3.92v16.95h2.43V4.60l.24 1.30 2.47 12.66h2.43L43.21 5.91l.26-1.31v13.97h2.43V1.62h-3.96L40.7 7.88zm11.80 8.14c-.22.46-.70.78-1.19.78-.56 0-.78-.44-.78-1.53V6.19h-2.78v9.25c0 2.28.74 3.33 2.39 3.33 1.12 0 2.03-.50 2.66-1.71h.06l.24 1.51h2.17V6.19h-2.78v9.84h.00zm8.15-4.94c-.90-.66-1.47-1.11-1.47-2.08 0-.68.32-1.07 1.08-1.07.78 0 1.04.54 1.06 2.40l2.33-.1c.18-3.01-.80-4.26-3.36-4.26-2.37 0-3.54 1.07-3.54 3.27 0 2 .96 2.91 2.53 4.1 1.35 1.05 2.13 1.63 2.13 2.48 0 .64-.40 1.09-1.10 1.09-.82 0-1.31-.78-1.18-2.16l-2.35.04c-.36 2.56.66 4.06 3.40 4.06 2.39 0 3.64-1.11 3.64-3.33.00-2.02-1.00-2.82-3.18-4.44zm4.71-4.88h2.66v12.38h-2.66zm1.35-4.88c-1.02 0-1.51.38-1.51 1.71 0 1.37.48 1.71 1.51 1.71 1.04 0 1.51-.34 1.51-1.71 0-1.27-.46-1.71-1.51-1.71zm10.25 12.80l-2.43-.12c0 2.18-.24 2.88-1.06 2.88s-.96-.78-.96-3.35V11.12c0-2.48.16-3.27.98-3.27.76 0 .96.74.96 3.05l2.41-.16c.16-1.92-.08-3.23-.82-3.98-.54-.54-1.37-.80-2.51-.80-2.7 0-3.80 1.45-3.80 5.53v1.73c0 4.20.94 5.55 3.70 5.55 1.17 0 1.97-.24 2.51-.76.78-.73 1.08-1.98 1.02-3.90z",
fill:"#fff"}}]}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{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 "}}]}]});
this.api=a;this.visible=!1;g.fX(a,this.element,this,28666);this.ua("click",this.onClick);this.R(a,"videodatachange",this.Pa);this.R(a,"onLoopRangeChange",this.Pa);this.Pa();g.dg(this,g.cY(b.Jb(),this.element))};
m_=function(a,b,c){g.Wr.call(this);var d=this;this.J=a;this.B=b;this.Ac=c;this.ka=NaN;this.ea=this.ha=null;this.u=new d_(this.J);this.Oc=new g.wZ(this.J,this.B);this.muteButton=null;this.Ih=new g.g_(this.J,this.B);this.D=this.F=this.P=this.N=null;this.X=new oZ(this.J,this.B);this.da=new g.hZ(this.J,this.B);this.Cd=new g.qn(this.Mp,null,this);this.K=null;c=a.T();this.Ac.subscribe("autohideupdate",this.yh,this);var e=!g.lI(a).isCued(),f=this.J.T().ca("html5_player_bottom_linear_gradient");f||!g.UB(c)&&
!g.R(a.T().experiments,"html5_player_dynamic_bottom_gradient")?f=f?new g.V({G:"div",L:"ytp-gradient-bottom-container",S:[{G:"div",L:"ytp-gradient-bottom-extension"},{G:"div",L:"ytp-gradient-bottom"}]}):new g.V({G:"div",L:"ytp-gradient-bottom"}):this.ea=f=new g.bZ(a);g.C(this,f);g.oP(a,f.element,8);this.ba=new g.PN(f,250,e,100);g.C(this,this.ba);this.C=new g.V({G:"div",L:"ytp-chrome-bottom",S:[{G:"div",L:"ytp-chrome-controls"}]});g.C(this,this.C);g.oP(a,this.C.element,8);this.Z=new g.PN(this.C,250,
e,100);g.C(this,this.Z);this.W=this.C.element.children[0];g.dg(this.u,function(){a.wl()===d.u&&(a.P=null)});
g.C(this,this.u);a.P=this.u;g.oP(a,this.u.element,6);this.u.subscribe("show",function(m){var n=d.B.Jb(),p=!m;if(null!=n.type)if(p)switch(n.type){case 3:case 2:l_(n);n.I.show();break;default:n.I.show()}else n.I.hide();n.K=p;b.wy(d.u,m)});
g.C(this,this.Oc);this.Oc.fa(this.C.element,0);e=new g.dZ(a);g.C(this,e);g.oP(a,e.element,4);f=new g.TM({G:"div",L:"ytp-left-controls"});g.C(this,f);f.fa(this.W);e=new g.sZ(a,b,!1);g.C(this,e);e.fa(f.element);c.Z||(e=new g.pZ(a,b),g.C(this,e),e.fa(f.element));e=new g.sZ(a,b,!0);g.C(this,e);e.fa(f.element);e=new g.V({G:"span",L:"ytp-volume-area"});g.C(this,e);e.fa(f.element);if(!c.Na&&(this.muteButton=new nZ(a,b),g.C(this,this.muteButton),this.muteButton.fa(e.element),c.W)){var h=new j_(a,b,this.C.element);
g.C(this,h);h.fa(e.element);e=new g.bs(e.element);g.C(this,e);e.subscribe("hoverstart",function(){Kya(h,!0)});
e=new g.bs(f.element);g.C(this,e);e.subscribe("hoverend",function(){Kya(h,!1)})}g.C(this,this.Ih);
this.Ih.fa(f.element);e=new g.TM({G:"div",L:"ytp-right-controls"});g.C(this,e);this.N=new cZ(a,b,this.Oc,f.element,e.element);g.C(this,this.N);a.T().ca("html5_ux_control_flexbox_killswitch")?this.N.fa(this.W):this.N.fa(f.element);e.fa(this.W);a.T().ob&&g.R(c.experiments,"web_player_move_autonav_toggle")&&(f=new $Y(a,b),g.C(this,f),f.fa(e.element));g.R(c.experiments,"external_fullscreen_with_edu")&&c.externalFullscreen&&iC(c)&&(this.P=new gZ(a,b),g.C(this,this.P),this.P.fa(e.element));f=new f_(a,b);
g.C(this,f);f.fa(e.element);f=new IZ(a,b,this.u);g.C(this,f);Jya(this.u,f);f.fa(e.element);var l=new kZ(a);g.C(this,l);g.oP(a,l.element,5);l.subscribe("show",function(m){b.ll(l,m)});
f=new jZ(a,b,l);g.C(this,f);f.fa(e.element);f=a.getVideoData();if(c.Li||f.Kc&&"1"===c.controlsType)this.F=new g.k_(a,b),g.C(this,this.F),this.F.fa(e.element);c.showMiniplayerButton&&!g.R(a.T().experiments,"web_player_pip")&&(this.D=new iZ(a,b),g.C(this,this.D),this.D.fa(e.element));g.C(this,this.X);this.X.fa(e.element);f.Cy||this.X.hide();c.ce||(f=new e_(a,b),g.C(this,f),f.fa(e.element));c.wd&&(f=new HZ(a,b,this.u),g.C(this,f),f.fa(e.element));c.Ji&&(c=new ZY(a,b),g.C(this,c),c.fa(e.element));g.C(this,
this.da);this.da.fa(e.element);g.C(this,this.Cd);this.R(a,"appresize",this.Ra);this.R(a,"fullscreentoggled",this.Ra);this.R(a,"presentingplayerstatechange",this.yx);this.R(a,"videodatachange",this.Pa);this.Ra()};
Lya=function(a,b){g.lI(a.J).isCued()||b?b&&(a.Z.hide(),a.ba.hide(),a.muteButton&&a.muteButton.zb(!1),a.F&&a.F.zb(!1),a.D&&a.D.zb(!1),a.B.Jb().Th(a.Ma())):b||(a.Z.show(),a.ba.show(),a.muteButton&&a.muteButton.zb(!0),a.F&&a.F.zb(!0),a.D&&a.D.zb(!0),a.yh())};
Mya=function(a){var b=g.pG(a.J).getPlayerSize().width;return Math.max(b-2*n_(a),100)};
n_=function(a){var b=a.B.Hd();return 12*(a.J.getVideoData().Kc?0:b?2:1)};
o_=function(a){var b=a.B.Hd()?72:50;a=a.J.T();g.kC(a)&&(g.R(a.experiments,"web_player_bigger_buttons")?b=54:g.R(a.experiments,"web_player_bigger_buttons_like_mobile")&&(b=62));return b};
q_=function(a){g.V.call(this,{G:"div",L:p_.TITLE,S:[{G:"div",L:p_.TEXT,S:[{G:"a",ia:[p_.LINK,p_.SESSIONLINK],U:{target:a.T().F,href:"{{url}}","data-sessionlink":"feature=player-title"},Y:"{{title}}"},{G:"div",L:p_.SUBTEXT,S:[{G:"a",L:p_.CHANNEL_NAME,U:{href:"{{channelLink}}",target:"_blank"},Y:"{{channelName}}"}]}]}]});this.api=a;this.u=null;this.link=this.ga(p_.LINK);g.fX(a,this.element,this,23851);this.R(a,"videodatachange",this.na);this.R(a,"videoplayerreset",this.na);this.na()};
Nya=function(a){a.wa("channelLink","");a.wa("channelName","")};
g.r_=function(a,b){g.V.call(this,{G:"div",S:[{G:"div",L:"ytp-tooltip-text-wrapper",S:[{G:"div",L:"ytp-tooltip-image"},{G:"div",L:"ytp-tooltip-title",Y:"{{title}}"},{G:"span",L:"ytp-tooltip-text",Y:"{{text}}"}]},{G:"div",L:"ytp-tooltip-bg",S:[{G:"div",L:"ytp-tooltip-duration",Y:"{{duration}}"}]}]});var c=this;this.api=a;this.ka=b;this.ha=this.api.T();this.da=this.ha.u;this.bg=this.ga("ytp-tooltip-bg");this.image=this.ga("ytp-tooltip-image");this.text=this.ga("ytp-tooltip-text");this.title=this.ga("ytp-tooltip-title");
this.W=function(e){(e=gp(e))&&g.Me(c.B,e)||c.vi()};
this.D=function(e){3===c.type&&c.vi();(e=e.currentTarget)&&1===e.nodeType&&!c.type&&(e.removeEventListener("mouseover",c.D),e.addEventListener("mouseout",c.W),e.removeEventListener("focus",c.D),e.addEventListener("blur",c.W),Oya(c,e,2))};
this.X=function(){c.vi()};
this.B=null;this.I=new g.PN(this,100);this.type=null;this.P=!1;this.u=null;this.C=NaN;this.F="";this.ba=g.pG(this.api).getPlayerSize().width;this.K=!0;this.scale=1;this.Z=new g.H(this.NJ,250,this);this.ea=new g.H(this.vi,5E3,this);g.C(this,this.I);g.C(this,this.Z);g.C(this,this.ea);if(IB){var d=this.ga("ytp-tooltip-text");d.setAttribute("role","text");d.setAttribute("aria-live","polite")}};
fY=function(a){a.element.setAttribute("aria-live","polite")};
Rya=function(a,b,c,d,e,f,h,l){if(!a.da){3===a.type&&a.vi();1!==a.type&&(yn(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.K&&a.I.show(),a.u&&a.u.dispose(),a.u=a.api.eg(),a.u&&a.u.subscribe("l",a.gE,a));a.update({text:d,title:h?h:""});g.J(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.J(a.element,"ytp-text-detail",!!e);d=-1;a.u&&(d=ME(a.u,160*a.scale),g.R(a.ha.experiments,"web_l3_storyboard")&&4===a.u.levels.length&&(d=a.u.levels.length-1),d=RE(a.u,d,c));Pya(a,d);if(l)switch(c=g.Eg(a.element).width,
l){case 1:a.title.style.right="0";a.title.style.textAlign="left";break;case 2:a.title.style.right=c+"px";a.title.style.textAlign="right";break;case 3:a.title.style.right=c/2+"px",a.title.style.textAlign="center"}Qya(a,!!e,b,f)}};
g.s_=function(a){1===a.type&&a.vi()};
g.cY=function(a,b){if(a.da)return g.Oa;b.addEventListener("mouseover",a.D);b.addEventListener("focus",a.D);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.B===b&&a.vi();b.removeEventListener("mouseover",a.D);b.removeEventListener("focus",a.D)}};
BY=function(a,b,c){if(a.type)if(3===a.type)a.vi();else return;Oya(a,b,3,c)};
Oya=function(a,b,c,d){if(b&&!b.hasAttribute)a=new Iq("showElementTooltip called with non-element.",b.toString()),g.kr(a);else{isNaN(a.C)||(a.C=NaN,a.bg.style.background="");a.B=b;a.P=!!d;d?a.F=d:(a.F=b.getAttribute("title"),b.removeAttribute("title"));yn(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.J(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.J(a.element,"ytp-tooltip-opaque",!!b);a.type=c;
a.api.addEventListener("appresize",a.X);a.K&&(l_(a),a.I.show(0))}};
l_=function(a){var b;a.B&&(b=a.B.getAttribute("data-tooltip-text"));if(b&&!a.P){var c=a.B;a.wa("text",b);var d=c.getAttribute("data-duration");a.update({title:a.F,duration:d});c=c.getAttribute("data-preview");var e=160*a.scale,f=90*a.scale,h=160*a.scale,l=90*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=c?"url("+c+")":"";a.bg.style.backgroundPosition=(e-h)/2+"px "+(f-l)/2+"px";a.bg.style.backgroundSize=h+"px "+l+"px";g.An(a.element,["ytp-text-detail","ytp-preview"]);
g.J(a.element,"ytp-has-duration",!!d)}else a.wa("text",a.F),g.Cn(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);Qya(a,!!b)};
Qya=function(a,b,c,d){var e=Math.min(a.ba,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.ka.En(a.element,a.B,c,1===a.type,d);a.element.style.top?g.I(a.element,"ytp-bottom"):a.element.style.bottom&&g.I(a.element,"ytp-top");3===a.type&&a.ea.start()};
CY=function(a){a.B&&!a.P&&a.B.hasAttribute("title")&&(a.F=a.B.getAttribute("title")||"",a.B.removeAttribute("title"),a.K&&l_(a))};
Pya=function(a,b){g.J(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.C)){a.C=b;var c=160*a.scale,d=160*a.scale,e=a.u.pl(a.C,c);Vxa(a.bg,e,c,d,!0);a.Z.start()}};
Sya=function(a){var b=a.B;3===a.type&&a.ea.stop();a.api.removeEventListener("appresize",a.X);a.P||b.setAttribute("title",a.F);a.F="";a.B=null};
g.t_=function(a,b){g.V.call(this,{G:"button",ia:["ytp-watch-later-button","ytp-button"],U:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.LB(a.T()))},S:[{G:"div",L:"ytp-watch-later-icon",Y:"{{icon}}"},{G:"div",L:"ytp-watch-later-title",Y:"Watch later"}]});this.J=a;this.icon=null;this.visible=this.B=this.u=!1;this.tooltip=b.Jb();fY(this.tooltip);g.fX(a,this.element,this,28665);this.ua("click",this.onClick,this);this.R(a,"videoplayerreset",this.QL);this.R(a,"appresize",
this.Ct);this.R(a,"videodatachange",this.Ct);this.R(a,"presentingplayerstatechange",this.Ct);this.Ct();var c=this.J.T(),d=g.Xs("yt-player-watch-later-pending");c.B&&d?(px(),Tya(this,d.videoId)):this.na(2);g.J(this.element,"ytp-show-watch-later-title",g.LB(c));g.dg(this,g.cY(b.Jb(),this.element))};
Uya=function(a,b){g.rwa(function(){px({videoId:b});window.location.reload()},"wl_button",g.fC(a.J.T()))};
Tya=function(a,b){if(!a.B)if(a.B=!0,a.na(3),g.R(a.J.T().experiments,"web_player_innertube_playlist_update")){var c=a.J.getVideoData();c=a.u?c.removeFromWatchLaterCommand:c.addToWatchLaterCommand;var d=qG(a.J.app),e=a.u?function(){a.PE()}:function(){a.OE()};
tU(d,c).then(e,function(){a.B=!1;u_(a,"An error occurred. Please try again later.")})}else c=a.J.T(),(a.u?pwa:owa)({videoIds:b,
kd:c.kd,pageId:c.pageId,onError:a.TP,onSuccess:a.u?a.PE:a.OE,context:a},c.N,!0)};
u_=function(a,b){a.na(4,b);a.J.T().C&&a.J.va("WATCH_LATER_ERROR",b)};
Vya=function(a,b){var c=a.J.T();if(b!==a.icon){switch(b){case 3:var d=CX();break;case 1:d=jN();break;case 2:d={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{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")?{G:"svg",U:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,U:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.wa("icon",d);
a.icon=b}};
v_=function(a){g.SX.call(this,a);var b=this;this.an=g.LB(this.api.T());this.Ev=48;this.Fv=69;this.Xh=null;this.Ak=[];this.Kb=new g.XX(this.api);this.xr=new DY(this.api);this.mg=new g.V({G:"div",L:"ytp-chrome-top"});this.zq=[];this.tooltip=new g.r_(this.api,this);this.backButton=this.Dn=null;this.channelAvatar=new hY(this.api,this);this.title=new q_(this.api,this);this.yf=new g.TM({G:"div",L:"ytp-chrome-top-buttons"});this.Xf=null;this.Uh=new bY(this.api,this,this.mg.element);this.overflowButton=this.Qf=
null;this.df="1"===this.api.T().controlsType?new m_(this.api,this,this.Ac):null;this.contextMenu=new g.zY(this.api,this,this.Kb);this.jv=!1;this.Lr=new g.V({G:"div",U:{tabindex:"0"}});this.Kr=new g.V({G:"div",U:{tabindex:"0"}});this.Sp=null;this.yy=this.sr=!1;var c=g.pG(a),d=a.T(),e=a.getVideoData();this.an&&(g.I(a.getRootNode(),"ytp-embed"),g.I(a.getRootNode(),"ytp-embed-playlist"),this.Ev=60,this.Fv=89);this.ug=e&&e.ug;g.C(this,this.Kb);g.oP(a,this.Kb.element,4);g.C(this,this.xr);g.oP(a,this.xr.element,
4);e=new g.V({G:"div",L:"ytp-gradient-top"});g.C(this,e);g.oP(a,e.element,1);this.Ry=new g.PN(e,250,!0,100);g.C(this,this.Ry);g.C(this,this.mg);g.oP(a,this.mg.element,1);this.Qy=new g.PN(this.mg,250,!0,100);g.C(this,this.Qy);g.C(this,this.tooltip);g.oP(a,this.tooltip.element,4);var f=new NY(a);g.C(this,f);g.oP(a,f.element,5);f.subscribe("show",function(l){b.ll(f,l)});
this.zq.push(f);this.Dn=new OY(a,this,f);g.C(this,this.Dn);d.showBackButton&&(this.backButton=new WX(a),g.C(this,this.backButton),this.backButton.fa(this.mg.element));this.an||this.Dn.fa(this.mg.element);this.channelAvatar.fa(this.mg.element);g.C(this,this.channelAvatar);g.C(this,this.title);this.title.fa(this.mg.element);g.C(this,this.yf);this.yf.fa(this.mg.element);this.Xf=new g.t_(a,this);g.C(this,this.Xf);this.Xf.fa(this.yf.element);var h=new g.TY(a,this);g.C(this,h);g.oP(a,h.element,5);h.subscribe("show",
function(l){b.ll(h,l)});
this.zq.push(h);this.shareButton=new g.SY(a,this,h);g.C(this,this.shareButton);this.shareButton.fa(this.yf.element);this.Yi=new AY(a,this);g.C(this,this.Yi);this.Yi.fa(this.yf.element);d.Oj&&(e=new YY(a),g.C(this,e),g.oP(a,e.element,4));this.an&&this.Dn.fa(this.yf.element);g.C(this,this.Uh);this.Uh.fa(this.yf.element);e=new $X(a,this,this.Uh);g.C(this,e);e.fa(this.yf.element);this.Qf=new KY(a,this);g.C(this,this.Qf);g.oP(a,this.Qf.element,5);this.Qf.subscribe("show",function(){b.ll(b.Qf,b.Qf.af())});
this.zq.push(this.Qf);this.overflowButton=new JY(a,this,this.Qf);g.C(this,this.overflowButton);this.overflowButton.fa(this.yf.element);this.df&&g.C(this,this.df);"3"===d.controlsType&&(e=new RY(a,this),g.C(this,e),g.oP(a,e.element,8));g.C(this,this.contextMenu);this.contextMenu.subscribe("show",this.AG,this);e=new bP(a,new nP(a));g.C(this,e);g.oP(a,e.element,4);this.Lr.ua("focus",this.xI,this);g.C(this,this.Lr);this.Kr.ua("focus",this.yI,this);g.C(this,this.Kr);(this.oj=d.hd?null:new g.GY(a,c,this.contextMenu,
this.Ac,this.Kb,this.xr,function(){return b.cj()}))&&g.C(this,this.oj);
this.an||(this.QF=new WY(this.api,this),g.C(this,this.QF),g.oP(a,this.QF.element,4));this.zk.push(this.Kb.element);this.R(a,"fullscreentoggled",this.zj);this.R(a,"offlineslatestatechange",this.rO,this);this.R(a,"cardstatechange",this.pg,this);this.R(a,"resize",this.nN)};
Wya=function(a){var b=a.api.T(),c=g.T(g.lI(a.api),128);return b.B&&c&&!a.api.isFullscreen()};
w_=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==tg(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=w_(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d};
g.x_=function(a){g.pS.call(this,a);this.chrome=null;this.load()};
Xya=function(){this.B=200;this.u=12};
Yya=function(a){var b=new Xya;b.B=g.Q(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.u=g.Q(a.experiments,"html5_gapless_max_played_ranges");return b};
Zya=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";c=f.Ia;if(gU(b.K)>d/1E3+1)return"in-the-past";if(f.isLivePlayback&&!isFinite(d))return"live-infinite";if(a.u&&((b=b.B)&&b.isView()&&(b=b.u),b&&b.ul().length>a.u&&g.xF(e)))return"played-ranges";if(!e.Ia)return null;if(!e.Ia.wc()||!c.wc())return"non-dash";if(e.Ia.videoInfos[0].containerType!==c.videoInfos[0].containerType)return"container";if(g.xF(f)&&g.xF(e))return"content-protection";
a=c.u[0].audio;e=e.Ia.u[0].audio;return a.sampleRate===e.sampleRate||g.eB?(a.u||2)!==(e.u||2)?"channel-count":null:"sample-rate"};
z_=function(a,b,c,d){g.B.call(this);var e=this;this.policy=a;this.u=b;this.B=c;this.D=this.C=null;this.I=-1;this.K=!1;this.F=new dw;this.ff=d-1E3*b.lc();this.F.then(void 0,function(){});
this.timeout=new g.H(function(){y_(e,"timeout")},1E4);
g.C(this,this.timeout);this.N=isFinite(d);this.status={status:0,error:null}};
bza=function(a){if(a.B.getVideoData().Ia){rW(a.B,a.D);A_(a,3);$ya(a);var b=aza(a),c=b.PF;b=b.OQ;c.subscribe("updateend",a.zn,a);b.subscribe("updateend",a.zn,a);a.zn(c);a.zn(b)}};
$ya=function(a){a.u.unsubscribe("internalvideodatachange",a.Uk,a);a.B.unsubscribe("internalvideodatachange",a.Uk,a);a.u.unsubscribe("mediasourceattached",a.Uk,a);a.B.unsubscribe("statechange",a.Vb,a)};
cza=function(a,b,c,d){return new g.ES(a.isView()?a.u:a,b,c,d)};
A_=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.F.resolve(void 0))};
y_=function(a,b){if(!a.la()&&!a.isFinished()){var c=4<=a.status.status&&"player-reload-after-handoff"!==b;a.status={status:Infinity,error:b};if(a.u&&a.B){var d=a.B.getVideoData().clientPlaybackNonce;a.u.sb("gaplessError","cpn."+d+";msg."+b);d=a.u;d.u.ni=!1;c&&aV(d);d.D&&(c=d.D,c.u.ea=!1,c.C&&gE(c))}a.F.reject(void 0);a.dispose()}};
dza=function(a){var b=a.u.B;b=b.isView()?b.B:0;var c=a.u.getVideoData().isLivePlayback?Infinity:uW(a.u,!0);c=Math.min(a.ff/1E3,c)+b;var d=a.N?100:0;a=c-gU(a.B.K)+d;return{jI:b,OD:a,SA:c,ND:Infinity}};
aza=function(a){return{PF:a.C.u.u,OQ:a.C.B.u}};
B_=function(a){g.B.call(this);var b=this;this.api=a;this.F=this.u=this.B=null;this.K=!1;this.D=null;this.N=Yya(this.api.T());this.C=null;this.I=function(){g.um(function(){eza(b)})}};
fza=function(a,b,c,d){d=void 0===d?0:d;!a.B||C_(a);a.D=new dw;a.B=b;var e=c,f=a.api.Tb(),h=f.getVideoData().isLivePlayback?Infinity:1E3*uW(f,!0);e>h&&(e=h-a.N.B,a.K=!0);f.getCurrentTime()>=e/1E3?a.I():(a.u=f,f=e,e=a.u,a.api.addEventListener(g.wD("vqueued"),a.I),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.F=new g.tD(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.F));f=d/=1E3;e=b.getVideoData().ma;if(d&&e&&a.u){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/1E3,uW(a.u,
!0)),l=Math.max(0,f-a.u.getCurrentTime()),h=Math.min(d,uW(b)+l));f=Qga(e,h)||d;f!==d&&a.B.sb("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.B;d.getVideoData().Fn=!0;d.getVideoData().ni=!0;gV(d,!0);e="";a.u&&(e=g.mT(a.u.I.provider),f=a.u.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.sb("queued",e);0!==b&&d.seekTo(b+.01,{ep:!0,Py:3});a.C=new z_(a.N,a.api.Tb(),a.B,c);c=a.C;Infinity!==c.status.status&&(A_(c,1),c.u.subscribe("internalvideodatachange",c.Uk,c),c.B.subscribe("internalvideodatachange",
c.Uk,c),c.u.subscribe("mediasourceattached",c.Uk,c),c.B.subscribe("statechange",c.Vb,c),c.u.subscribe("newelementrequired",c.oE,c),c.Uk());return a.D};
eza=function(a){g.Ue(a,function c(){var d=this,e,f,h,l;return g.Aa(c,function(m){switch(m.u){case 1:e=d;if(d.la()||!d.D||!d.B)return m["return"]();d.K&&YU(d.api.Tb(),!0,!1);f=null;if(!d.C){m.Jd(2);break}sa(m,3);return g.ra(m,d.C.gB(),5);case 5:ta(m,2);break;case 3:f=h=ua(m);case 2:return gza(d.api.app,d.B),ix("vqsp",function(){var n=e.B.getPlayerType();g.BM(e.api.app,n)}),ix("vqpv",function(){e.api.playVideo()}),f&&cwa(d.B,f.message),l=d.D,C_(d),m["return"](l.resolve(void 0))}})})};
C_=function(a){if(a.u){var b=a.u;a.api.removeEventListener(g.wD("vqueued"),a.I);b.removeCueRange(a.F);a.u=null;a.F=null}a.C&&(a.C.isFinished()||(b=a.C,Infinity!==b.status.status&&y_(b,"Canceled")),a.C=null);a.D=null;a.B=null;a.K=!1};
E_=function(a,b,c){g.B.call(this);var d=this;this.api=a;this.K=b;this.u=c;this.P=new Map;this.C=new Map;this.B=[];this.W=NaN;this.I=this.F=null;this.N=new g.H(function(){D_(d,d.W)});
this.events=new g.Wr(this);this.X=this.isLiveNow=!0;this.D=new g.H(function(){hza(d)},5E3);
this.u.getPlayerType();Rva(this.u,this);g.C(this,this.N);g.C(this,this.events);g.C(this,this.D);this.events.R(this.api,g.wD("serverstitchedcuerange"),this.jL);this.events.R(this.api,g.xD("serverstitchedcuerange"),this.kL)};
lza=function(a,b,c,d,e){var f=a.u;e=void 0===e?d+c:e;if(d>e)return F_(a,"Invalid playback enterTimeMs="+d+" is greater than parentReturnTimeMs="+e),"";var h=1E3*f.uc();if(d<h)return F_(a,"Invalid playback enterTimeMs="+d+" is less than parentMinSeekableTimeMs="+h),"";h=1E3*f.getDuration();if(e>h)return F_(a,"Invalid playback parentReturnTimeMs="+e+" is greater than parentDurationMs="+h),"";h=null;for(var l=g.q(a.B),m=l.next();!m.done;m=l.next()){m=m.value;if(d>=m.Zb&&d<m.Fc||e<=m.Fc&&e>m.Zb)return F_(a,
"Overlapping child playbacks not allowed. New playback {video_id="+(b.video_id+" enterTimeMs="+d+" parentReturnTimeMs="+e+"} overlaps existing ChildPlayback "+G_(m))),"";if(e===m.Zb)return F_(a,"Neighboring child playbacks must be added sequentially. New playback {video_id="+(b.video_id+" enterTimeMs="+d+" parentReturnTimeMs="+e+"} added after existing ChildPlayback "+G_(m))),"";d===m.Fc&&(h=m)}l="childplayback_"+iza++;m={ld:H_(c,!0),ff:Infinity,target:null};var n=b.raw_player_response;if(!n&&!g.R(a.K.experiments,
"web_player_parse_ad_response_killswitch")){var p=b.player_response;p&&(n=JSON.parse(p))}b.cpn||(b.cpn=a.gw());b={Yb:l,playerVars:b,playerType:2,durationMs:c,Zb:d,Fc:e,Zf:m,playerResponse:n,cpn:b.cpn};a.B=a.B.concat(b).sort(function(r,t){return r.Zb-t.Zb});
h?(b.Qi=h.Qi,jza(h,{ld:H_(h.durationMs,!0),ff:Infinity,target:b})):(b.Qi=b.cpn,d={ld:H_(d,!1),ff:d,target:b},a.P.set(d.ld,d),f.addCueRange(d.ld));d=kza(b.Zb,b.Zb+b.durationMs);a.C.set(d,b);f.addCueRange(d);a.X&&a.D.isActive()&&(a.D.stop(),a.X=!1,hza(a));return l};
H_=function(a,b){return new g.tD(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"serverstitchedtransitioncuerange",priority:7})};
kza=function(a,b){return new g.tD(a,b,{namespace:"serverstitchedcuerange",priority:7})};
jza=function(a,b){a.Zf=b};
I_=function(a,b){for(var c=0,d=g.q(a.B),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.Zb/1E3+c,h=f+e.durationMs/1E3;if(f>b+1)break;if(h>b)return{Vi:e,Ql:b-c};c=h-e.Fc/1E3}return{Vi:null,Ql:b-c}};
D_=function(a,b){var c=a.I||a.api.Tb().getPlayerState();J_(a,!0);var d=I_(a,b).Ql;a.u.seekTo(d);d=a.api.Tb();var e=d.getPlayerState();g.hL(c)&&!g.hL(e)?d.playVideo():g.T(c,4)&&!g.T(e,4)&&d.pauseVideo()};
J_=function(a,b){a.W=NaN;a.N.stop();a.F&&b&&pW(a.F);a.I=null;a.F=null};
iX=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.q(a.P),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.ff>=d&&l.target&&l.target.Fc<=e&&(a.u.removeCueRange(h),a.P["delete"](h))}d=b;e=c;f=[];h=g.q(a.B);for(l=h.next();!l.done;l=h.next())l=l.value,(l.Zb<d||l.Fc>e)&&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.u.removeCueRange(h),a.C["delete"](h));d=I_(a,b/1E3);b=d.Vi;
d=d.Ql;b&&(d=1E3*d-b.Zb,mza(a,b,d,b.Zb+d));(b=I_(a,c/1E3).Vi)&&F_(a,"Invalid clearEndTimeMs="+c+" that falls during "+G_(b)+".Child playbacks can only have duration updated not their start.")};
mza=function(a,b,c,d){b.durationMs=c;b.Fc=d;c={ld:H_(c,!0),ff:c,target:null};b.Zf=c;c=null;d=g.q(a.C);for(var e=d.next();!e.done;e=d.next()){e=g.q(e.value);var f=e.next().value;e.next().value.Yb===b.Yb&&(c=f)}c&&(a.u.removeCueRange(c),c=kza(b.Zb,b.Zb+b.durationMs),a.C.set(c,b),a.u.addCueRange(c))};
G_=function(a){return"playback={timelinePlaybackId="+a.Yb+" video_id="+a.playerVars.video_id+" durationMs="+a.durationMs+" enterTimeMs="+a.Zb+" parentReturnTimeMs="+a.Fc+"}"};
Ila=function(a,b,c,d){var e=null;0>=b?a.B.length&&(e=a.B[0]):(e=0,a.K.ca("web_player_ss_media_time_offset")&&(e=0===a.u.getStreamTimeOffset()?a.u.lc():a.u.getStreamTimeOffset()),e=I_(a,b+e).Vi);var f=Number(d.split(";")[0]);if(e&&e.playerResponse&&e.playerResponse.streamingData&&(b=e.playerResponse.streamingData.adaptiveFormats)){var h=b.find(function(l){return l.itag===f});
if(h&&h.url)return b=a.u.getVideoData(),d=b.ma.u[d].index.HB(c-1),c=h.url,d&&d.u&&(c=c.concat("&daistate="+d.u)),(d=b.clientPlaybackNonce)&&(c=c.concat("&cpn="+d)),e.Qi&&(a=nza(a,e.Qi),0<a.length&&(c=c.concat("&acpns="+a.join(",")))),c}return null};
F_=function(a,b){a.u.sb("timelineerror",b)};
nza=function(a,b){for(var c=[],d=g.q(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.Qi===b&&e.cpn&&c.push(e.cpn);return c};
hza=function(a){D_(a,Infinity);a=a.u;if(a.D){var b=a.D;var c=b.Z;if(c=c.u?c.u.eb:NaN)b.D&&(b.D.P=c),b.B&&(b.B.P=c),b.ka=4}a.playVideo()};
K_=function(a,b,c){g.B.call(this);var d=this;this.api=a;this.F=b;this.B=c;this.I=new Map;this.u=[];this.C=this.N=null;this.X=NaN;this.K=this.D=null;this.W=new g.H(function(){oza(d,d.X)});
this.P=[];this.Z=new g.H(function(){var e=d.P.pop();if(e){var f=e.Yb,h=e.playerVars;e=e.playerType;h.prefer_gapless=!0;d.api.preloadVideoByPlayerVars(h,e,NaN,"",f);d.P.length&&d.Z.xb(4500)}});
this.events=new g.Wr(this);c.getPlayerType();g.C(this,this.W);g.C(this,this.Z);g.C(this,this.events);this.events.R(this.api,g.wD("childplayback"),this.lL);this.events.R(this.api,"onQueuedVideoLoaded",this.OO);this.events.R(this.api,"presentingplayerstatechange",this.Nf)};
sza=function(a,b,c,d,e){var f=a.B;e=void 0===e?d+c:e;if(d>e)return L_(a,"e.enterAfterReturn enterTimeMs="+d+" is greater than parentReturnTimeMs="+e),"";var h=1E3*f.uc();if(d<h)return L_(a,"e.enterBeforeMinSeekable enterTimeMs="+d+"is less than parentMinSeekableTimeMs="+h),"";h=1E3*f.getDuration();if(e>h)return L_(a,"e.returnAfterDuration parentReturnTimeMs="+e+" is greater than parentDurationMs="+h),"";h=null;for(var l=g.q(a.u),m=l.next();!m.done;m=l.next()){m=m.value;if(d>=m.Zb&&d<m.Fc)return L_(a,
"e.overlappingEnter"),"";if(e<=m.Fc&&e>m.Zb)return L_(a,"e.overlappingReturn"),"";if(e===m.Zb)return L_(a,"e.outOfOrder"),"";d===m.Fc&&(h=m)}l="childplayback_"+pza++;m={ld:M_(c,!0),ff:Infinity,target:null};var n={Yb:l,playerVars:b,playerType:2,durationMs:c,Zb:d,Fc:e,Zf:m};a.u=a.u.concat(n).sort(function(t,w){return t.Zb-w.Zb});
h?qza(a,h,{ld:M_(h.durationMs,!0),ff:a.F.ca("timeline_manager_transition_killswitch")?Infinity:h.Zf.ff,target:n}):(b={ld:M_(d,!1),ff:d,target:n},a.I.set(b.ld,b),f.addCueRange(b.ld));b=g.R(a.F.experiments,"html5_gapless_preloading");if(a.B===a.api.Tb()&&(f=1E3*f.getCurrentTime(),f>=n.Zb&&f<n.Fc)){var p=a.api.Tb().getPlayerState(),r=f-n.Zb;om(function(){rza(a,n,r/1E3,p)});
b=!1}b&&(a.P.unshift(n),a.Z.xb(0));return l};
M_=function(a,b){return new g.tD(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:7})};
uza=function(a,b,c,d){a.C=d;tza(a.api.app,a.B,c,void 0===b?0:b)};
vza=function(a,b,c,d){a.C=d;d=b.Yb;var e=b.playerVars,f=b.playerType;a.N=b;a.api.enqueueVideoByPlayerVars(e,f,c,d)};
qza=function(a,b,c){var d=b.Zf;b.Zf=c;N_(a,b)&&(c=a.api.Tb(),d.ld===a.C&&O_(a),c.removeCueRange(d.ld),c.addCueRange(b.Zf.ld))};
O_=function(a){a.N=null;a.C=null;!a.api.app.Qa.B||a.api.clearQueue()};
wza=function(a,b){N_(a,b)||L_(a,"e.childPlaybackIsNotPresenting");return b.Fc===b.Zb+b.durationMs?b.Zb+1E3*a.api.Tb().getCurrentTime():b.Fc};
P_=function(a,b){for(var c=0,d=g.q(a.u),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.Zb/1E3+c,h=f+e.durationMs/1E3;if(f>b)break;if(h>b)return{Vi:e,Ql:b-f};c=h-e.Fc/1E3}return{Vi:null,Ql:b-c}};
oza=function(a,b){var c=a.K||a.api.Tb().getPlayerState();Q_(a,!0);var d=g.R(a.F.experiments,"html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:hU(a.B.K),e=P_(a,d);d=e.Vi;e=e.Ql;var f=d&&!N_(a,d)||!d&&a.B!==a.api.Tb(),h=1E3*e;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||O_(a);d?rza(a,d,e,c):R_(a,e,c)};
R_=function(a,b,c){var d=a.B;if(d!==a.api.Tb()){var e=d.getPlayerType();g.BM(a.api.app,e)}d.seekTo(b);xza(a,c)};
rza=function(a,b,c,d){var e=N_(a,b);if(!e){g.BM(a.api.app,b.playerType);b.playerVars.prefer_gapless=!0;var f=new g.UE(a.F,b.playerVars);f.Yb=b.Yb;S_(a.api.app,f,b.playerType,void 0)}f=a.api.Tb();e||f.addCueRange(b.Zf.ld);f.seekTo(c);xza(a,d)};
xza=function(a,b){var c=a.api.Tb(),d=c.getPlayerState();g.hL(b)&&!g.hL(d)?c.playVideo():g.T(b,4)&&!g.T(d,4)&&c.pauseVideo()};
Q_=function(a,b){a.X=NaN;a.W.stop();a.D&&b&&pW(a.D);a.K=null;a.D=null};
N_=function(a,b){var c=a.api.Tb();return!!c&&c.getVideoData().Yb===b.Yb};
yza=function(a){var b=a.u.find(function(d){return N_(a,d)});
if(b){O_(a);var c=new g.bL(8);b=wza(a,b)/1E3;R_(a,b,c)}};
jX=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.q(a.I),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.ff>=d&&l.target&&l.target.Fc<=e&&(a.B.removeCueRange(h),a.I["delete"](h))}d=b;e=c;f=[];h=g.q(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Zb>=d&&l.Fc<=e){var m=a;m.N===l&&O_(m);N_(m,l)&&g.FM(m.api,l.playerType)}else f.push(l);a.u=f;d=P_(a,b/1E3);b=d.Vi;d=d.Ql;b&&(d*=1E3,zza(a,b,d,b.Fc===b.Zb+b.durationMs?b.Zb+d:b.Fc));
(b=P_(a,c/1E3).Vi)&&L_(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Yb+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Zb+" parentReturnTimeMs="+b.Fc+"}.Child playbacks can only have duration updated not their start."))};
zza=function(a,b,c,d){b.durationMs=c;b.Fc=d;d={ld:M_(c,!0),ff:c,target:null};qza(a,b,d);N_(a,b)&&1E3*a.api.Tb().getCurrentTime()>c&&(b=wza(a,b)/1E3,c=a.api.Tb().getPlayerState(),R_(a,b,c))};
L_=function(a,b){a.B.sb("timelineerror",b)};
Bza=function(a){a&&"web"!==a&&Aza.includes(a)};
V_=function(a,b){g.B.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.u=new g.H(function(){T_(c);U_(c)});
g.C(this,this.u)};
T_=function(a){var b=(0,g.N)();a.data.forEach(function(c){c.expire<b&&W_(a,c,!0)});
a.data=g.Ke(a.data,function(c){return!(c.expire<b)})};
W_=function(a,b,c){c&&a.B&&a.B(b.value)};
U_=function(a){a.u.stop();var b=Infinity;for(var c=g.q(a.data),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&a.u.start(Math.max(b-g.A(),0))};
Cza=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+wu(a)+")":wu(a)};
X_=function(a){g.B.call(this);var b=this;this.B=null;for(var c=[],d=0;100>=d;d++)c.push(d/100);c={threshold:c};(this.u=window.IntersectionObserver?new IntersectionObserver(function(e){b.B=e[e.length-1].intersectionRatio},c):null)&&this.u.observe(a)};
Eza=function(a,b){if(g.ak())return null;var c=Dza();if(!c)return g.TW(a,"html5.webaudio",{name:"null context"}),null;if("string"===typeof c)return g.TW(a,"html5.webaudio",{name:c}),null;if(!c.createMediaElementSource)return g.TW(a,"html5.webaudio",{name:"missing createMediaElementSource"}),null;if("suspended"===c.state){var d=function(e){"suspended"===c.state&&g.hL(e.state)&&c.resume().then(function(){a.removeEventListener("presentingplayerstatechange",d);Y_=!1},null)};
Y_||(a.addEventListener("presentingplayerstatechange",d),Y_=!0)}return new JS(c,b)};
$_=function(a){g.V.call(this,{G:"div",ia:["html5-video-player"],U:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},S:[{G:"div",L:g.Z_.VIDEO_CONTAINER,U:{"data-layer":"0"}}]});var b=this;this.app=a;this.C=this.ga(g.Z_.VIDEO_CONTAINER);this.B=new g.ig(0,0,0,0);this.u=null;this.K=new g.ig(0,0,0,0);this.X=this.ea=this.ba=NaN;this.I=this.ka=!1;this.W=NaN;this.Z=!1;this.F=null;this.dispatchEvent=function(){};
this.da=function(){b.element.focus()};
this.P=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.Cp("ytp-transparent");"0"===e.controlsType&&this.Cp("ytp-hide-controls");e.ca("html5_ux_control_flexbox_killswitch")||g.I(this.element,"ytp-exp-bottom-control-flexbox");e.ca("html5_player_bottom_linear_gradient")&&g.I(this.element,"ytp-linear-gradient-bottom-experiment");e.ca("web_player_bigger_buttons")&&g.I(this.element,"ytp-exp-bigger-button");Bma(this.element,Fza(a));iC(e)&&"blazer"!==e.playerStyle&&window.matchMedia&&(this.P="desktop-polymer"===e.playerStyle?
[{query:window.matchMedia("(max-width: 656px)"),size:new g.he(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.he(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.he(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.he(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.he(854,480)},{query:window.matchMedia("(min-width: 1000px)"),size:new g.he(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),
size:new g.he(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.he(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.he(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.he(640,360)}]);this.ha=e.useFastSizingOnWatchDefault;this.D=new g.he(NaN,NaN);Gza(this);this.R(a.B,"onMutedAutoplayChange",this.Op)};
Gza=function(a){function b(){a.u&&a0(a);b0(a)!==a.Z&&a.resize()}
function c(h,l){a.updateVideoData(l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.K=new g.ig(0,0,0,0);a.B=new g.ig(0,0,0,0)}
var f=a.app.B;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.dg(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
Hza=function(a){a.u&&(a.u.removeEventListener("focus",a.da),g.Je(a.u),a.u=null)};
XH=function(a,b){QB(a.app.T());a.I=!b;a0(a)};
Iza=function(a){var b=g.R(a.app.T().experiments,"html5_aspect_from_adaptive_format"),c=g.Z(a.app);if(c=c?c.getVideoData():null){if(c.mj()||c.nj()||c.ij())return 16/9;if(b&&bF(c)&&c.Ia.wc())return b=c.Ia.videoInfos[0].video,c0(b.width,b.height)}return(a=a.u)?c0(a.videoWidth,a.videoHeight):b?16/9:NaN};
Jza=function(a,b,c,d){var e=c,f=c0(b.width,b.height);a.ka?e=c<f?Infinity:0:isNaN(a.X)?isNaN(a.ea)||(e=a.ea):e=a.X;isFinite(e)||(e=Math.max(c,f));var h;e>f?h={width:b.width,height:b.width/e,aspectRatio:e}:e<f?h={width:b.height*e,height:b.height,aspectRatio:e}:h={width:b.width,height:b.height,aspectRatio:f};d||isNaN(c)||(c>e?h.width=h.height*c:c<e&&(h.height=h.width/c),h.aspectRatio=c);return h};
c0=function(a,b){return 1>Math.abs(d0*b-a)||1>Math.abs(d0/a-b)?d0:a/b};
b0=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.Z(a.app);if(!b||$V(b))return!1;var c=g.lI(a.app.B);a=!g.T(c,2)||!g.R(a.app.T().experiments,"html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().ni;b=g.T(c,1024);return c&&a&&!b&&!c.isCued()};
a0=function(a){var b="3"===a.app.T().controlsType&&!a.I&&b0(a)&&!a.app.Za||!1;a.u.controls=b;a.u.tabIndex=b?0:-1;b?a.u.removeEventListener("focus",a.da):g.R(a.app.T().experiments,"disable_focus_redirect")||a.u.addEventListener("focus",a.da)};
Kza=function(a){var b=a.getPlayerSize(),c=1,d=!1,e=Jza(a,b,a.getVideoAspectRatio()),f=ik();if(b0(a)){var h=Iza(a);var l=isNaN(h)||g.ar||gD&&g.sC;jk&&!g.$d(601)?h=e.aspectRatio:l=l||"3"===a.app.T().controlsType;l?l=new g.ig(0,0,b.width,b.height):(c=e.aspectRatio/h,l=new g.ig((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.sC&&(h=l.width-b.height*h,0<h&&(l.width+=h,l.height+=h)));f&&(a.u.style.display="");a.Z=!0}else l=-b.height,jk?l*=window.devicePixelRatio:g.rC&&(l-=window.screen.height),
l=new g.ig(0,l,b.width,b.height),f&&(a.u.style.display="none"),a.Z=!1;jg(a.K,l)||(a.K=l,g.aC(a.app.T())?(a.u.style.setProperty("width",l.width+"px","important"),a.u.style.setProperty("height",l.height+"px","important")):g.Dg(a.u,new g.he(l.width,l.height)),g.wg(a.u,new g.fe(l.left,l.top)),d=!0);b=new g.ig((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);jg(a.B,b)||(a.B=b,d=!0);g.E(a.u,"transform",1===c?"":"scaleX("+c+")");return d};
Lza=function(){this.csn=g.rs();this.elements=new Set;this.C=new Set;this.u=new Set;this.B=new Set};
Nwa=function(a,b,c,d,e){e=void 0===e?!1:e;a.elements.has(b);a.elements.add(b);d=Zea(d);b.visualElement=d;var f=g.rs(),h=g.ps();f&&h&&g.Ns(f,h,d);g.dg(c,function(){Mza(a,b)});
e&&a.B.add(b)};
Owa=function(a,b,c,d){d=void 0===d?!1:d;a.elements.has(b);a.elements.add(b);g.dg(c,function(){Mza(a,b)});
d&&a.B.add(b)};
Mza=function(a,b){a.elements.has(b);a.elements["delete"](b);a.C["delete"](b);a.u["delete"](b);a.B["delete"](b)};
Nza=function(a){if(a.csn!==g.rs())if("UNDEFINED_CSN"===a.csn)a.csn=g.rs();else{var b=g.rs(),c=g.ps();if(b&&c){a.csn=b;for(var d=g.q(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.Ns(b,c,e)}if(b)for(a=g.q(a.u),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.Js(b,c,void 0)}};
e0=function(a,b,c,d,e){g.V.call(this,{G:"div",L:"ytp-horizonchart"});this.I=b;this.sampleCount=c;this.D=d;this.F=e;this.index=0;this.heightPx=-1;this.C=this.B=null;this.u=Math.round(a/c);this.element.style.width=this.u*this.sampleCount+"px";this.element.style.height=this.I+"em"};
f0=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.Fe("CANVAS"),a.B=c.getContext("2d")}catch(e){}if(a.B){var d=a.u*a.sampleCount;a.C=c;a.C.width=d;a.C.style.width=d+"px";a.element.appendChild(a.C)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.u*=4,c=0;c<a.sampleCount;c++)d=g.Fe("SPAN"),d.style.width=a.u+"px",d.style.left=a.u*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.B&&(c=1<(window.devicePixelRatio||1)?2:1,a.C.height=a.heightPx*c,a.C.style.height=
a.heightPx+"px",a.B.scale(1,c)));c=g.q(b);for(d=c.next();!d.done;d=c.next())a.setValue(a.index,d.value),a.index=(a.index+1)%a.sampleCount;c=a.index;a.B?a.B.clearRect(c*a.u,0,a.u,a.heightPx):(c=a.element.children[c],c.style.height="0px",c.style.borderTop="")};
g0=function(a){var b=null;b={G:"button",ia:["html5-video-info-panel-close","ytp-button"],U:{title:"close"},Y:"[x]"};g.V.call(this,{G:"div",L:"html5-video-info-panel",S:[b,{G:"div",L:"html5-video-info-panel-content",S:[{G:"div",S:[{G:"div",Y:"Video ID / sCPN"},{G:"span",Y:"{{video_id_and_cpn}}"}]},{G:"div",S:[{G:"div",Y:"Viewport / Frames"},{G:"span",Y:"{{dims_and_frames}}"}]},{G:"div",S:[{G:"div",Y:"Current / Optimal Res"},{G:"span",Y:"{{resolution}}"}]},{G:"div",S:[{G:"div",Y:"Volume / Normalized"},
{G:"span",Y:"{{volume}}"}]},{G:"div",S:[{G:"div",Y:"Codecs"},{G:"span",Y:"{{codecs}}"}]},{G:"div",U:{style:"{{shader_info_style}}"},S:[{G:"div",Y:"Shader Info"},{G:"span",Y:"{{shader_info}}"}]},{G:"div",U:{style:"{{color_style}}"},S:[{G:"div",Y:"Color"},{G:"span",Y:"{{color}}"}]},{G:"div",U:{style:"{{drm_style}}"},S:[{G:"div",Y:"Protected"},{G:"span",Y:"{{drm}}"}]},{G:"div",U:{style:"{{bandwidth_style}}"},S:[{G:"div",Y:"Connection Speed"},{G:"span",S:[{G:"span",Y:"{{bandwidth_chart}}"},{G:"span",
Y:"{{bandwidth_kbps}}"}]}]},{G:"div",U:{style:"{{network_activity_style}}"},S:[{G:"div",Y:"Network Activity"},{G:"span",S:[{G:"span",Y:"{{network_activity_chart}}"},{G:"span",Y:"{{network_activity_bytes}}"}]}]},{G:"div",S:[{G:"div",Y:"Buffer Health"},{G:"span",S:[{G:"span",Y:"{{buffer_health_chart}}"},{G:"span",Y:"{{buffer_health_seconds}}"}]}]},{G:"div",U:{style:"{{live_latency_style}}"},S:[{G:"div",Y:"Live Latency"},{G:"span",S:[{G:"span",Y:"{{live_latency_chart}}"},{G:"span",Y:"{{live_latency_secs}}"}]}]},
{G:"div",U:{style:"{{live_mode_style}}"},S:[{G:"div",Y:"Live Mode"},{G:"span",Y:"{{live_mode}}"}]},{G:"div",U:{style:"{{playback_categories_style}}"},S:[{G:"div",Y:"Playback Categories"},{G:"span",Y:"{{playback_categories}}"}]},{G:"div",S:[{G:"div",Y:"Mystery Text"},{G:"span",Y:"{{debug_info}}"}]},{G:"div",U:{style:"{{release_style}}"},S:[{G:"div",Y:"Player Release"},{G:"span",Y:"{{release_name}}"}]}]}]});b&&(b=this.ga("html5-video-info-panel-close"),this.R(b,"click",this.hide));b=[0,18750,37500,
81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];var c="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" "),d=b.map(function(e){return e/4});
this.u=new e0(300,1,150,b,c);g.C(this,this.u);this.wa("bandwidth_chart",this.u);this.C=new e0(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.C(this,this.C);this.wa("live_latency_chart",this.C);this.B=new e0(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.C(this,this.B);this.wa("buffer_health_chart",this.B);this.D=new e0(300,1,150,d,c);g.C(this,this.D);this.wa("network_activity_chart",this.D);this.delay=new g.H(this.na,
500,this);g.C(this,this.delay);this.F=a};
i0=function(a,b,c){g.B.call(this);var d=this;this.Za=this.X=!1;this.K=null;this.ae={};this.Ub={};this.Qe=!1;this.hd=null;this.pe=!1;this.Ja=!0;this.Af=this.ud=null;this.Bf=!0;this.F=this.P=null;this.Pb=this.ob=!1;this.Df=this.Lb=this.I=this.playlist=null;this.Na=void 0;this.Ga=0;this.ha=this.nb=this.ba=null;this.config=Xea(b||{});this.webPlayerContextConfig=c;vea();b=this.config.args||{};this.u=new dC(b,c,c?c.canaryState:this.config.assets.player_canary_state);g.C(this,this.u);void 0!==navigator.mediaCapabilities&&
(Pz=!0);g.R(this.u.experiments,"html5_disable_subtract_cuepoint_offset")&&(dy=!0);g.R(this.u.experiments,"html5_log_opus_oboe_killswitch")&&(du=!1);g.R(this.u.experiments,"html5_skip_empty_load")&&(Oza=!0);Pza=g.R(this.u.experiments,"html5_ios_force_seek_to_zero_on_stop");Qza=g.R(this.u.experiments,"html5_ios7_force_play_on_stall");Rza=g.R(this.u.experiments,"html5_ios4_seek_above_zero");g.R(this.u.experiments,"html5_mediastream_applies_timestamp_offset")&&($x=!0);g.R(this.u.experiments,"html5_dont_override_default_sample_desc_index")&&
(Lt=!0);this.Ef=S(NB(this.u)&&!0,b.enablesizebutton);this.td=S(!1,b.player_wide);this.visibility=new kU;g.C(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.dR(this);g.C(this,this.events);this.da=new g.Rn;g.C(this,this.da);this.ra=new g.Rn;g.C(this,this.ra);this.Aa=new Lza;this.B=new MW(this);g.C(this,this.B);this.template=new $_(this);g.C(this,this.template);this.ea=1;this.Z=this.u.Ef?Sza():{volume:100,muted:this.u.mute};this.J=this.u.C?new LW(this,1):new GW(this,
1);g.C(this,this.J);c={};this.ac=(c.internalvideodatachange=this.JM,c.playbackready=this.LM,c.playbackstarted=this.MM,c.statechange=this.OM,c);this.D=Tza(this);this.wd=new g.dR(this);g.C(this,this.wd);this.N=new PT(this.u,this.D);this.C=Uza(this);c={};this.Cf=(c.airplayactivechange=this.DM,c.airplayavailabilitychange=this.EM,c.beginseeking=this.YM,c.endseeking=this.zN,c.internalAbandon=this.fK,c.internalaudioformatchange=this.dK,c.internalvideodatachange=this.Pa,c.internalvideoformatchange=this.iK,
c.liveviewshift=this.NN,c.playbackstalledatstart=this.vP,c.progresssync=this.KO,c.onLoadProgress=this.ON,c.SEEK_COMPLETE=this.hK,c.SEEK_TO=this.lP,c.onVideoProgress=this.Qp,c.onLoadedMetadata=this.QN,c.onDompaused=this.wN,c.playbackready=this.zO,c.statechange=this.NE,c.connectionissue=this.lN,c.newelementrequired=this.pE,c.heartbeatparams=this.eK,c.videoelementevent=this.NP,c.drmoutputrestricted=this.yN,c.requestmediasource=this.YO,c.signatureexpired=this.pP,c.localmediachange=this.gK,c);this.za=
new g.dR(this);g.C(this,this.za);c=10;g.$B(this.u)&&(c=3);lC(this.u)&&(c=g.Q(this.u.experiments,"tvhtml5_unplugged_preload_cache_size"));this.yb=new V_(c,function(e){e!==g.Z(d,e.getPlayerType())&&(AA("prefetch"+e.getVideoData().videoId),e.dispose())});
g.C(this,this.yb);this.xc=this.Lc=-1;this.Rb=new g.H(this.template.resize,16,this.template);g.C(this,this.Rb);Vza(this);this.ka=new K_(this.B,this.u,this.C);this.Qa=new B_(this.B);g.C(this,this.Qa);Bza(this.u.deviceParams.c);this.events.R(this.B,g.wD("appapi"),this.HM);this.events.R(this.B,g.xD("appapi"),this.IM);this.events.R(this.B,g.wD("appad"),this.TD);this.events.R(this.B,g.xD("appad"),this.TD);this.events.R(this.B,g.xD("applooprange"),this.ny);this.events.R(this.B,"presentingplayerstatechange",
this.Nf);this.events.R(this.B,"resize",this.ZO);this.template.fa(oe(document,a));this.events.R(this.B,"offlineslatestatechange",this.qO);this.ce=Wza(this,this.template.element);g.C(this,this.ce);this.ca("hoffle_save")?this.K=new DW(this.B,h0(this,1),function(){return d.xe()}):Dfa()&&pw();
this.u.Qa&&(g.qX.ux=g.x_);Xza(this);this.N.tick("fs");Yza(this);this.W=null;this.u.Qa&&axa(this.D);g.UB(this.D.J.T())&&pX(this.D,"music");g.LB(this.D.J.T())&&pX(this.D,"embed");this.ca("web_player_sentinel_is_uniplayer")||g.Eo(Error("Player flag missing: web_player_sentinel_is_uniplayer"));this.Ff=Zza(this)};
Zza=function(a){function b(c){if(c.stack&&-1!==c.stack.indexOf("player"))(a.I||a.C).I.onError("player.exception",g.UA({n:c.name,m:c.message}))}
Co.push(b);return function(){var c=Co.indexOf(b);-1!==c&&Co.splice(c,1)}};
Uza=function(a){var b=new $U(a.u,1,a.N,a.template,function(c,d){for(var e=[],f=1;f<arguments.length;++f)e[f-1]=arguments[f];return a.da.V.apply(a.da,[c].concat(g.la(e)))},function(){return a.B.getVisibilityState()},a.visibility);
b.setPlaybackRate(a.u.B?1:$za(a,Number(g.Xs("yt-player-playback-rate"))||1));Zr(b,a.ac,a);return b};
qG=function(a){if(!a.hd){var b={rr:{subscribeEndpoint:vU,unsubscribeEndpoint:wU,playlistEditEndpoint:yU,webPlayerShareEntityServiceEndpoint:zW,modifyChannelNotificationPreferenceEndpoint:xU,feedbackEndpoint:yW}},c=Yua(),d=Aq();qU.u=new qU(b,c,d,g.M,void 0);a.hd=qU.u}return a.hd};
Tza=function(a){var b="",c=Fza(a);0===c.indexOf("//")&&(c=a.u.protocol+":"+c);var d=c.lastIndexOf("/base.js");-1!==d&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.Eo(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new mX(a.B,b);aAa(a,b);return b};
aAa=function(a,b){var c={};c=(c.destroyed=function(){a.u.C&&a.I?a.B.va("onApiChange",a.I.getPlayerType()):a.B.va("onApiChange")},c);
b.C=c};
bAa=function(a,b){var c=a.isVideoInfoVisible();a.ba||(a.ba=new g0(a.B),g.C(a,a.ba),g.oP(a.B,a.ba.element,4));g.WM(a.ba,b);j0(a)&&c!==b&&g.RW(a.D).Ny();c=a.I;b&&c&&c.sb("sfn","1",!0)};
l0=function(a){var b=k0.getTag(!0,!a.u.deviceHasDisplay);a.F=new g.DS(b);g.C(a,a.F);a.I&&gW(a.I,a.F);try{a.u.Na?(a.nb&&a.events.Eb(a.nb),a.nb=a.events.R(a.F,"volumechange",a.fO)):(a.F.Mn(a.Z.muted),a.F.setVolume(a.Z.volume/100))}catch(d){var c="setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_"));a.C.Td("html5.missingapi","UNSUPPORTED_DEVICE",c,void 0);return}g.Yr(a.za);cAa(a);c=a.template;c.u=b;c.I=!1;c.u.parentNode||g.Ie(c.C,c.u,0);c.K=new g.ig(0,0,0,0);Kza(c);a0(c);g.I(c.u,"video-stream");
g.I(c.u,g.Z_.MAIN_VIDEO);b=c.app.T();b.ae&&c.u.setAttribute("data-no-fullscreen","true");b.Rh&&(c.u.setAttribute("webkit-playsinline",""),c.u.setAttribute("playsinline",""));b.yr&&c.u&&c.R(c.u,"click",c.u.play,c.u);try{a.F.ln()}catch(d){c="activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")),a.C.Td("html5.missingapi","UNSUPPORTED_DEVICE",c,void 0)}};
m0=function(a){if(a.F){a.nb&&(a.events.Eb(a.nb),a.nb=null);g.Yr(a.za);a.I&&fW(a.I,!0);Hza(a.template);a.F.wk()&&k0.releaseTag(a.F.Ma());if(!a.ca("html5_unset_src_on_remove_killswitch"))try{a.F.du()}catch(b){}a.F=null}};
g.BM=function(a,b){var c=g.Z(a,b);c||(c=h0(a,b),n0(a,c));hX(a,c)};
hX=function(a,b){if(a.I!==b){b.getPlayerType();b.getVideoData();var c=null;a.I&&(c=a.I.getPlayerState(),rX(a.D,3),bX(a,"cuerangesremoved",ED(a.I.ea)||[]),a.Qa&&!b.isGapless()&&a.I.isGapless()&&a.F&&a.F.stopVideo(),Pwa(a));n0(a,b);a.I=b;a.F&&gW(b,a.F);Zr(b,a.Cf,a);a.Pa("newdata",b,b.getVideoData());c&&!g.gL(c,b.getPlayerState())&&a.NE(new g.vI(b.getPlayerState(),c));b.ka.isFinished()&&a.Pa("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().La)&&c.video)&&a.B.va("onPlaybackQualityChange",c.quality);
bX(a,"cuerangesadded",ED(a.I.ea)||[]);c=b.getPlayerState();g.T(c,2)?dAa(a):g.T(c,8)&&b.playVideo()}};
dAa=function(a){if(!eAa(a)){var b=a.C.B;b&&(b=b.Io(),b instanceof Promise&&b["catch"](function(){}));
o0(a,jL(Jwa(a)))}};
cAa=function(a){var b=a.F;gB()?a.za.R(b,"webkitpresentationmodechanged",a.iP):fB()&&(a.za.R(b,"enterpictureinpicture",function(){p0(a,!0)}),a.za.R(b,"leavepictureinpicture",function(){p0(a,!1)}));
SB&&(a.za.R(b,"webkitbeginfullscreen",function(){q0(a,3)}),a.za.R(b,"webkitendfullscreen",function(){q0(a,0)}))};
n0=function(a,b){if(b!==a.C){var c=b.getPlayerType();a.ae[c]=b}};
Pwa=function(a){var b;if(b=a.ha)b=a.F,b=!!b&&b===a.ha.C;b&&(m0(a),l0(a));a.I&&(fW(a.I),$r(a.I,a.Cf,a));a.I=null};
g.Z=function(a,b){return b?1===b?a.C:a.ae[b]||null:a.I};
h0=function(a,b){var c=a.N;2===b&&(c=new PT(a.u));return new $U(a.u,b,c,a.template,function(d,e){for(var f=[],h=1;h<arguments.length;++h)f[h-1]=arguments[h];return a.da.V.apply(a.da,[d].concat(g.la(f)))},function(){return a.B.getVisibilityState()},a.visibility)};
kX=function(a,b){return a.Jc(b)?a.C:b};
r0=function(a,b){var c=a.I;return c&&b===a.C&&a.Jc(b)&&a.Jc(c)?c:b};
fAa=function(a){var b=a.getVideoData(),c=10<b.lengthSeconds,d=a.D;d.MA();pX(d,"attribution",void 0,!1,!0);pX(d,"embed");pX(d,"fresca",void 0,!1,!0);pX(d,"kids");pX(d,"remote");pX(d,"miniplayer");pX(d,"music");pX(d,"captions",void 0,!0);pX(d,"unplugged");pX(d,"visualizer",void 0,!1,!0);pX(d,"ypc",void 0,!1,!0);pX(d,"ypc_clickwrap",void 0,!1,!0);pX(d,"yto",void 0,!1,!0);pX(d,"webgl",void 0,!1,!0);d.D&&c?g.dX(d.J,"endscreen"):pX(d,"endscreen");d.D&&c?(g.dX(d.J,"annotations_module"),g.dX(d.J,"creatorendscreen")):
(d.Kv(),pX(d,"creatorendscreen",void 0,!0));d.NA();$wa(d);c&&OF(b)?a.wd.R(a.B,"presentingplayerstatechange",a.BO):Zwa(a.D);a.B.V("videoready",b)};
s0=function(a){return a.C.getVideoData()};
g.t0=function(a,b){var c=g.Z(a,1);c&&YU(c,b)};
u0=function(a){a=s0(a);a.isValid();return OF(a)};
Xza=function(a){var b=new g.UE(a.u,a.config.args);g.Zs()&&b.me.push("remote");b.isValid()&&(a.C.Dh(b,function(){return a.xe()}),b=window,a.ca("html5_androidtv_quic")&&"h5vcc"in b&&"settings"in b.YI&&b.YI.settings.set("QUIC",1),!g.R(a.u.experiments,"html5_delay_initial_loading")&&u0(a)&&(a.u.Ff||a.u.Qg)&&gV(a.C))};
Yza=function(a){gAa(a);var b=a.config.args;l0(a);var c=s0(a);a.B.va("onVolumeChange",a.Z);if(b&&aG(b)){var d=iC(a.u);d&&!a.X&&(b.fetch=0);var e=g.RB(a.u)&&g.R(a.u.experiments,"embeds_wexit_list_ajax_migration");e&&!a.X&&(b.fetch=0);v0(a,b);if(d&&!a.X)w0(a);else if(e&&!a.X)x0(a);else if(!c.isValid())a.playlist.onReady(function(){y0(a)})}hX(a,a.C);
g.T(a.C.getPlayerState(),128)||(b=cha(a.u.deviceHasDisplay),"fmt.noneavailable"===b?a.C.Td("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1",void 0):"html5.missingapi"===b?a.C.Td(b,"UNSUPPORTED_DEVICE","nocanplaymedia.1",void 0):c&&c.isValid()&&u0(a)&&(a.u.Ff||a.u.Qg)?z0(a):g.Xs("yt-player-playback-on-reload")?(g.Lq("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.u.kd}),rx(!1),z0(a)):g.vC(a.u)||hAa(a),a.ca("web_player_inline_botguard")&&(g.kC(a.u)?(pp(function(){A0(a)}),
pp(function(){wr()})):(A0(a),wr())))};
A0=function(a){if(a.ca("web_player_botguard_inline_skip_config_killswitch")){var b=g.L("BG_I",null);var c=g.L("BG_IU",null);var d=g.L("BG_P",null)}else{var e=a.getVideoData().botguardData;if(!e)return;b=e.interpreterScript;c=e.interpreterUrl;d=e.program}e=a.getVideoData().Tg||"";a=a.u.cspNonce;e=e?"c1b"in Vp(e):!1;d&&(tr.qd?0:!MS||72E5<(0,g.N)()-MS)&&(b||c)&&(MA("bg_i","player_att"),tr.initialize(b,c,d,Xra,a,e))};
hAa=function(a){a.B.V("initializingmode");g.B0(a,2);pX(a.D,"remote");g.R(a.u.experiments,"player_cued_miniplayer_module_killswitch")||pX(a.D,"miniplayer")};
z0=function(a){if(g.T(a.C.getPlayerState(),128))return!1;u0(a)&&a.u.Qg&&(k0.hasTags(void 0)&&a.Za?(IW(a,{muted:!1,volume:a.Z.volume},!1),C0(a,!1)):k0.hasTags(void 0)||a.Z.muted||(IW(a,{muted:!0,volume:a.Z.volume},!1),C0(a,!0)));D0(a,1,a.C.getVideoData(),!1);a.B.V("initializingmode");hX(a,a.C);g.B0(a,3);var b;if(!(b=!a.u.Mi)){if(b=a.ha)b=a.F,b=!!b&&b===a.ha.C;b=b&&a.Qe}b&&(m0(a),l0(a),gW(a.C,a.F));ZV(a.C);if(g.T(a.C.getPlayerState(),128))return!1;o0(a,3);return a.Qe=!0};
j0=function(a){a=g.RW(a.D);return!!a&&a.loaded};
IM=function(a,b){1===b&&(a.N.tick("vr"),a.Ga||(a.Ga=Fs(OA,a.aE,a)),fwa(a.I),nua(a.N,a.I.getVideoData(),iAa(a)));var c=a.u;(g.vC(c)&&c.C||g.aC(c))&&(a.Jc()||a.B.va("onAdStateChange",b))};
jAa=function(a,b){a.I===a.C&&a.I.rl()!==b&&(a.I.setLoop(b),a.B.V("loopchange",b))};
E0=function(a,b){if(!a.P)return!1;var c=.001*a.P.startTimeMs,d=.001*a.P.endTimeMs;return ee(b,c)||ee(b,d)||b>=c&&b<=d};
$za=function(a,b){var c=a.B.getAvailablePlaybackRates();b=Number(b.toFixed(2));var d=c[0];c=c[c.length-1];b<=d||(b>=c?d=c:(d=Math.floor(100*b+.001)%5,d=0===d?b:Math.floor(100*(b-.01*d)+.001)/100));return d};
F0=function(a,b,c){if(a.Jc(c)){c=c.getVideoData();if(a.W){a=a.W;for(var d=g.q(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.Yb===e.Yb){b+=e.Zb/1E3;break}d=b;a=g.q(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Yb===e.Yb)break;var f=e.Zb/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Fc/1E3;else break}c=d}else{a=a.ka;d=g.q(a.u);for(e=d.next();!e.done;e=d.next())if(e=e.value,c.Yb===e.Yb){b+=e.Zb/1E3;break}d=b;a=g.q(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Yb===e.Yb)break;f=e.Zb/1E3;if(f<
b)d+=e.durationMs/1E3+f-e.Fc/1E3;else break}c=d}return c}return b};
gAa=function(a){var b=a.template;b.la();var c=b.app.T();c.Mi||b.Cp("tag-pool-enabled");c.I&&b.Cp(g.Z_.HOUSE_BRAND);"gvn"===c.playerStyle&&(b.Cp("ytp-gvn"),b.element.style.backgroundColor="transparent");c.za&&(b.W=g.No("yt-dom-content-change",b.resize,b));g.R(c.experiments,"web_player_ios_mweb_resizing")&&b.R(window,"orientationchange",b.resize,b);b.R(window,"resize",b.resize,b);b=a.J;b.element=a.template.element;c=b.element;for(var d in b.B)b.B.hasOwnProperty(d)&&(c[d]=b.B[d]);(d=Vr(a.template.element))&&
a.events.R(a.template,d,a.CN);a.events.R(window,"resize",a.aP)};
Jwa=function(a,b){return 3===a.getPresentingPlayerType()?g.RW(a.D).Bc:g.Z(a,b).getPlayerState()};
kAa=function(a,b){return 3===a.getPresentingPlayerType()?jL(g.RW(a.D).Bc):2!==b||a.Jc()?a.Lc:a.xc};
lAa=function(a){G0(a);jAa(a,!1);a.setLoopRange(null);a.Ub={};var b=a.N;if(b.u){var c=b.u;c.B={};c.u={}}b.B=!1;a.W?(b=a.W,a=a.C,a.getPlayerType(),J_(b,!1),iX(b),b.u=a):(b=a.ka,a=a.C,1!==a.getPlayerType()&&L_(b,"e.invalidParentVideoPlayerType"),Q_(b,!1),jX(b),b.B=a)};
w0=function(a){var b=mAa();if(b)if(!b.list)a.xt();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.B.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==a.playlist.Ka().videoId||(b.index=a.playlist.index));eG(a.playlist,b);a.Lb&&H0(a,a.Lb)}else a.Lb=null};
x0=function(a){var b=s0(a).aB;null!=b&&(eG(a.playlist,b),a.playlist.onReady(function(){y0(a)}))};
v0=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.xt,a),g.eg(a.playlist),a.playlist=null);b&&(a.X&&(b.fetch=0),a.playlist=new g.$F(a.u,b),a.playlist.subscribe("error",a.xt,a))};
I0=function(a,b,c,d){b in a.Ub||(c=new g.tD(c,d,{id:b,priority:1,namespace:"appad"}),a.C.addCueRange(c),a.Ub[b]=c)};
qAa=function(a,b){if(!(b in a))return!1;var c=a[b];Array.isArray(c)||(c=[c]);c.forEach(function(d){var e=void 0===e?!1:e;if(!(e=av(bv(d,nAa),d,e,"Active View 3rd Party Integration URL"))){var f=void 0===f?!1:f;e=av(bv(d,oAa),d,f,"Google/YouTube Brand Lift URL")}if(!(f=e)){var h=void 0===h?!1:h;f=av(bv(d,pAa),d,h,"Nielsen OCR URL")}g.at(d,void 0,f)});
return!0};
g.B0=function(a,b){b!==a.ea&&(2===b&&1===a.getPresentingPlayerType()&&(o0(a,-1),o0(a,5)),a.ea=b,a.B.V("appstatechange",b))};
o0=function(a,b){if(a.I){var c=a.I.getPlayerType();if(2===c&&!a.Jc()){a.xc!==b&&(a.xc=b,a.B.va("onAdStateChange",b));return}if(2===c&&a.Jc()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}a.Lc!==b&&(a.Lc=b,a.B.va("onStateChange",b))};
rAa=function(a,b,c,d,e){return a.W?lza(a.W,b,c,d,e):sza(a.ka,b,c,d,e)};
sAa=function(a,b,c){if(a.W){a=a.W;for(var d=void 0,e=null,f=g.q(a.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.Yb===b){e=h;break}e?(void 0===d&&(d=e.Fc),mza(a,e,c,d)):F_(a,"Invalid timelinePlaybackId="+b+" specified")}else{a=a.ka;d=void 0;e=null;f=g.q(a.u);for(h=f.next();!h.done;h=f.next())if(h=h.value,h.Yb===b){e=h;break}e?(void 0===d&&(d=e.Fc),zza(a,e,c,d)):L_(a,"e.InvalidTimelinePlaybackId timelinePlaybackId="+b)}};
tAa=function(a,b,c,d){d=void 0===d?Infinity:d;c=c||a.I.getPlayerType();var e;g.R(a.u.experiments,"html5_gapless_preloading")&&(e=D0(a,c,b,!0));e||(e=h0(a,c),e.Dh(b,function(){return a.xe()}));
tza(a,e,d)};
tza=function(a,b,c,d){d=void 0===d?0:d;var e=g.Z(a);e&&(kX(a,e).Oj=!0);fza(a.Qa,b,c,d).then(function(){a.B.va("onQueuedVideoLoaded")},function(){})};
vAa=function(a,b,c,d){var e=J0(c,b.videoId,b.Yb);b.Fn=!0;var f=a.I&&e===J0(a.I.getPlayerType(),a.I.getVideoData().videoId,a.I.getVideoData().Yb)?a.I:h0(a,c);f.Dh(b,function(){return a.xe()});
!g.R(a.u.experiments,"unplugged_tvhtml5_video_preload_no_dryrun")&&1===c&&lC(a.u)||gV(f,!0);a.yb.set(e,f,d||3600);d="prefetch"+b.videoId;FA("prefetch",["pfp"],void 0,d);IA({playerInfo:{playbackType:uAa[c]},videoId:b.videoId},d)};
J0=function(a,b,c){return a+"_"+b+"_"+c};
D0=function(a,b,c,d){if(!f){var e=J0(b,c.videoId,c.Yb);var f=a.yb.get(e);if(!f)return null;a.yb.remove(e);if(g.T(f.getPlayerState(),128))return f.dispose(),null}if(f===g.Z(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||gza(a,f);return f};
gza=function(a,b){var c=b.getPlayerType();b!==g.Z(a,c)&&(1===b.getPlayerType()?(b.getVideoData().autonavState=a.C.getVideoData().autonavState,$r(a.C,a.ac,a),c=a.C.getPlaybackRate(),a.C.dispose(),a.C=b,a.C.setPlaybackRate(c),Zr(b,a.ac,a),lAa(a)):(c=g.Z(a,c))&&c.dispose(),a.I.getPlayerType()===b.getPlayerType()?hX(a,b):n0(a,b))};
p0=function(a,b){var c=a.u.Oh&&g.R(a.u.experiments,"html5_block_pip_with_events")||g.R(a.u.experiments,"html5_block_pip_non_mse")&&"undefined"===typeof MediaSource;if(b&&c&&a.getVideoData()&&!a.getVideoData().backgroundable&&a.F&&(c=a.F.Ma())){Ur(c);return}c=a.visibility;c.pictureInPicture!==b&&(c.pictureInPicture=b,c.Eg())};
S_=function(a,b,c,d){JA("_start",a.N.timerName)||(mua(a.N),a.N.info("srt",0));var e=D0(a,c||a.I.getPlayerType(),b,!1);e&&CA("pfp",void 0,"prefetch"+b.videoId);if(!e){e=g.Z(a,c);if(!e)return!1;a.Rb.stop();a.cancelPlayback(4,c);e.Dh(b,function(){return a.xe()},d)}e===a.C&&(a.u.td=b.oauthToken);
if(!fV(e))return!1;a.Pb&&(e.N.D=!1,a.Pb=!1);if(e===a.C)return g.B0(a,1),z0(a);ZV(e);return!0};
K0=function(a,b,c){c=g.Z(a,c);b&&c===a.C&&(c.getVideoData().lj=!0)};
L0=function(a,b,c){var d=g.Z(a,c);d&&(a.cancelPlayback(4,c),d.Dh(b,function(){return a.xe()}),2===c&&a.C&&jua(a.C.I,b.clientPlaybackNonce,b.Up||"",b.breakType||0),d===a.C&&(g.B0(a,1),hAa(a)))};
g.M0=function(a,b,c,d,e,f){if(!b&&!d)throw Error("Playback source is invalid");if(NB(a.u)||g.mC(a.u))return c=c||{},c.lact=zp(),c.vis=a.B.getVisibilityState(),a.B.va("onPlayVideo",{videoId:b,watchEndpoint:f,sessionData:c,listId:d}),!1;c=a.N;c.u&&(f=c.u,f.B={},f.u={});c.B=!1;a.N.reset();b={video_id:b};e&&(b.autoplay="1");e&&(b.autonav="1");d?(b.list=d,a.loadPlaylist(b)):a.loadVideoByPlayerVars(b,1);return!0};
wAa=function(a,b,c,d,e){b=xwa(b,c,d,e);(c=g.RB(a.u)&&g.R(a.u.experiments,"embeds_wexit_list_ajax_migration"))&&!a.X&&(b.fetch=0);v0(a,b);if(c&&!a.X)c=s0(a),Swa(c,b).then(function(){x0(a)});
else a.playlist.onReady(function(){y0(a)})};
y0=function(a){var b=a.playlist.Ka();if(b){var c=a.getVideoData();c.Bk||!a.Ja?(c=c.lj,b=S_(a,b),c&&K0(a,b)):L0(a,b)}a.B.va("onPlaylistUpdate")};
g.N0=function(a){if(a.B.isMutedByMutedAutoplay())return!1;if(3===a.getPresentingPlayerType())return!0;iC(a.u)&&!a.X&&w0(a);return!(!a.playlist||!a.playlist.hasNext())};
eAa=function(a){if(a.playlist&&g.RB(a.u)&&g.N0(a)){var b=g.R(a.u.experiments,"html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
H0=function(a,b){var c=g.Na(b);if(c){var d=mAa();d&&d.list&&c();a.Lb=null}else a.Lb=b};
mAa=function(){var a=g.Na("yt.www.watch.lists.getState");return a?a():null};
g.xAa=function(a){if(!a.F||!a.F.wk())return null;var b=a.F;if(a.ha){var c=a.ha;c.C?c.C!==b&&(g.LS(c),c.C=b,c.B=null):c.C=b}else a.ha=Eza(a.B,b),a.ha&&g.C(a,a.ha);return a.ha};
yAa=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"===f?(b.style=sD.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=sD.AD_MARKER:(b.style=sD.TIME_MARKER,b.color=e),b.visible=!0);Kwa(a,[new g.tD(1E3*c,1E3*d,b)],1);return!0};
Kwa=function(a,b,c){var d=g.Z(a,c);d&&(d=d.ea,d.B(),BD(d.u,b),d.D=NaN,d.B(),c&&a.getPresentingPlayerType()!==c||bX(a,"cuerangesadded",b))};
g.HM=function(a,b,c){var d=g.Z(a,c);d&&(DD(d.ea,b),c&&a.getPresentingPlayerType()!==c||bX(a,"cuerangesremoved",b))};
iAa=function(a){var b=(0,g.N)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
IW=function(a,b,c){a.u.W&&(a.Z=b,b.muted||C0(a,!1),c&&a.u.Ef&&!a.u.Na&&zAa({volume:Math.floor(b.volume),muted:b.muted}),AAa(a),c=g.eB&&a.F&&!a.F.ze(),!a.u.Na||c)&&(b=g.Zb(b),a.u.Ef||(b.unstorable=!0),a.B.va("onVolumeChange",b))};
AAa=function(a){var b=a.getVideoData();if(!b.Wk){b=a.u.Na?1:QF(b);var c=a.F;c.Mn(a.Z.muted);c.setVolume(a.Z.volume*b/100)}};
C0=function(a,b){b!==a.Za&&(a.Za=b,a.B.va("onMutedAutoplayChange",b))};
O0=function(a){var b=Tr(!0);return b&&(b===a.template.element||a.F&&b===a.F.Ma())?b:null};
CAa=function(a,b){var c=window.screen&&window.screen.orientation;if((g.R(a.u.experiments,"lock_fullscreen2")||a.u.ca("embeds_enable_mobile_custom_controls")&&a.u.u)&&c&&c.lock&&(!g.eB||!BAa))if(b){var d=0===c.type.indexOf("portrait"),e=a.template.getVideoAspectRatio(),f=d;1>e?f=!0:1<e&&(f=!1);if(!a.ob||f!==d){c=c.lock(f?"portrait":"landscape");if(null!=c)c["catch"](g.Oa);a.ob=!0}}else a.ob&&(a.ob=!1,c.unlock())};
q0=function(a,b){var c=!!b,d=!!a.visibility.fullscreen!==c,e=a.visibility;e.fullscreen!==b&&(e.fullscreen=b,e.Eg());a.ca("html5_media_fullscreen")&&!c&&a.F&&O0(a)===a.F.Ma()&&a.F.Io();a.template.resize();d&&a.N.tick("fsc");d&&(a.B.V("fullscreentoggled",c),d=s0(a),c={fullscreen:c,videoId:d.lz||d.videoId,time:a.getCurrentTime()},a.B.getPlaylistId()&&(c.listId=a.B.getPlaylistId()),a.B.va("onFullscreenChange",c))};
bX=function(a,b,c){a.B.V(b,c);var d=g.$B(a.u)||g.aC(a.u)||nC(a.u);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.B.va(e,c)}};
P0=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.Z(a,e);if(!h||(2!==h.getPlayerType()||a.Jc(h)||f)&&!g.GF(h.getVideoData()))3===a.getPresentingPlayerType()?g.RW(a.D).wi("control_seek",b,c):(h===a.C&&a.P&&!E0(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
DAa=function(a,b,c,d){if(!a.Pb){c&&(m0(a),l0(a));a.Pb=!0;c=g.Z(a);c.N.D=!0;c.sb("reloading","reason."+b);var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.isLivePlayback?mF(e)&&g.mC(a.u)&&(f.live_utc_start=c.ue(),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.Wf&&(f.vvt=e.Wf);e.Nh&&(f.vss_credentials_token=e.Nh,f.vss_credentials_token_type=e.qg);e.oauthToken&&(f.oauth_token=e.oauthToken);f.autoplay=1;f.reload_count=e.Ci+1;f.reload_reason=b;e.Tn&&(f.unplugged_partner_opt_out=
e.Tn);e.ie&&(f.ypc_is_premiere_trailer=e.ie);a.loadVideoByPlayerVars(f,void 0,d)}};
EAa=function(a,b){a.B.va("onAutonavChangeRequest",1!==b)};
Q0=function(a,b){s0(a).autonavState=b;g.Ws("yt-player-autonavstate",b);a.B.V("autonavchange",b)};
FAa=function(a){var b=a.getVideoData().Wk,c=a.u.xc,d=a.F;b||c?d.Nv():(d.Pv(),IW(a,a.Z))};
Wza=function(a,b){return g.R(a.u.experiments,"html5_enable_embedded_player_visibility_signals")&&a.u.B?new X_(b):null};
G0=function(a){(a=sX(a.D))&&a.created&&a.destroy()};
GAa=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.q(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=tg(a,d);b.hidden=!!a.hidden};
Vza=function(a){var b=a.u,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;g.R(b.experiments,"embeds_enable_request_storage_access_safari_itp")&&g.sC&&d&&b.B?kk()||b.ha?(g.Lq("embedsStorageAccessNotChecked",{isIosWebview:kk(),isPemPlayer:b.ha}),a.Na=!1):c.hasStorageAccess().then(function(e){g.Lq("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.Na=!e},function(e){g.Lq("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.Eo(Error("Embeds ITP Error: "+e));a.Na=!1}):a.Na=!1};
R0=function(a,b){var c=void 0;if(g.$B(a.u)&&cq(b)&&bq(b)){var d=a.getVideoData().lf();d&&(c={Authorization:"Bearer "+d})}g.at(b,void 0,void 0,c)};
S0=function(a,b){b.forEach(function(c){R0(a,c)})};
Fza=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
HAa=function(a){a=(a=Gwa(a.D))?a.chrome:null;return a?(a=a.GB())?a.P:null:null};
IAa=function(a,b,c){for(var d=g.q(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a[c+e]=b[e];return a};
g.T0=function(a){if(!JAa.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(KAa,"#$1$1$2$2$3$3"));a=a.toLowerCase();a=parseInt(a.substr(1),16);return[a>>16,a>>8&255,a&255]};
LAa=function(){if(!g.ye)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.U0=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;mg();a=dd(a,null);return b.parseFromString(g.cd(a),"application/xml")}if(MAa){b=new ActiveXObject("MSXML2.DOMDocument");b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
g.V0=function(a){g.B.call(this);this.B=a;this.u={}};
NAa=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)NAa(a,b,c[h],d,e,f);else{b=Ul(b,c,d||a.handleEvent,e,f||a.B||a);if(!b)return a;a.u[b.key]=b}return a};
g.OAa=function(a){g.Ib(a.u,function(b,c){this.u.hasOwnProperty(c)&&dm(b)},a);
a.u={}};
W0=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
X0=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
aa=[];fa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
ea=aaa(this);ha("Symbol",function(a){function b(e){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c("jscomp_symbol_"+(e||"")+"_"+d++,e)}
function c(e,f){this.u=e;fa(this,"description",{configurable:!0,writable:!0,value:f})}
if(a)return a;c.prototype.toString=function(){return this.u};
var d=0;return b});
ha("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<b.length;c++){var d=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&fa(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ia(da(this))}})}return a});
var ma="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},PAa=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=ma(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),Y0;
if("function"==typeof Object.setPrototypeOf)Y0=Object.setPrototypeOf;else{var Z0;a:{var QAa={a:!0},RAa={};try{RAa.__proto__=QAa;Z0=RAa.a;break a}catch(a){}Z0=!1}Y0=Z0?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var na=Y0;
oa.prototype.N=function(a){this.B=a};
oa.prototype["return"]=function(a){this.C={"return":a};this.u=this.F};
oa.prototype.Jd=function(a){this.u=a};
ha("Reflect",function(a){return a?a:{}});
ha("Reflect.construct",function(){return PAa});
ha("Reflect.setPrototypeOf",function(a){return a?a:na?function(b,c){try{return na(b,c),!0}catch(d){return!1}}:null});
ha("Promise",function(a){function b(h){this.Ha=0;this.Hk=void 0;this.u=[];this.F=!1;var l=this.B();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.u=null}
function d(h){return h instanceof b?h:new b(function(l){l(h)})}
if(a)return a;c.prototype.B=function(h){if(null==this.u){this.u=[];var l=this;this.C(function(){l.F()})}this.u.push(h)};
var e=ea.setTimeout;c.prototype.C=function(h){e(h,0)};
c.prototype.F=function(){for(;this.u&&this.u.length;){var h=this.u;this.u=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.D(n)}}}this.u=null};
c.prototype.D=function(h){this.C(function(){throw h;})};
b.prototype.B=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.W),reject:h(this.C)}};
b.prototype.W=function(h){if(h===this)this.C(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Z(h);else{a:switch(typeof h){case "object":var l=null!=h;break a;case "function":l=!0;break a;default:l=!1}l?this.P(h):this.D(h)}};
b.prototype.P=function(h){var l=void 0;try{l=h.then}catch(m){this.C(m);return}"function"==typeof l?this.ba(l,h):this.D(h)};
b.prototype.C=function(h){this.I(2,h)};
b.prototype.D=function(h){this.I(1,h)};
b.prototype.I=function(h,l){if(0!=this.Ha)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.Ha);this.Ha=h;this.Hk=l;2===this.Ha&&this.X();this.K()};
b.prototype.X=function(){var h=this;e(function(){if(h.N()){var l=ea.console;"undefined"!==typeof l&&l.error(h.Hk)}},1)};
b.prototype.N=function(){if(this.F)return!1;var h=ea.CustomEvent,l=ea.Event,m=ea.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof l?h=new l("unhandledrejection",{cancelable:!0}):(h=ea.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.Hk;return m(h)};
b.prototype.K=function(){if(null!=this.u){for(var h=0;h<this.u.length;++h)f.B(this.u[h]);this.u=null}};
var f=new c;b.prototype.Z=function(h){var l=this.B();h.gr(l.resolve,l.reject)};
b.prototype.ba=function(h,l){var m=this.B();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(t,w){return"function"==typeof t?function(x){try{n(t(x))}catch(y){p(y)}}:w}
var n,p,r=new b(function(t,w){n=t;p=w});
this.gr(m(h,n),m(l,p));return r};
b.prototype["catch"]=function(h){return this.then(void 0,h)};
b.prototype.gr=function(h,l){function m(){switch(n.Ha){case 1:h(n.Hk);break;case 2:l(n.Hk);break;default:throw Error("Unexpected state: "+n.Ha);}}
var n=this;null==this.u?f.B(m):this.u.push(m);this.F=!0};
b.resolve=d;b.reject=function(h){return new b(function(l,m){m(h)})};
b.race=function(h){return new b(function(l,m){for(var n=g.q(h),p=n.next();!p.done;p=n.next())d(p.value).gr(l,m)})};
b.all=function(h){var l=g.q(h),m=l.next();return m.done?d([]):new b(function(n,p){function r(x){return function(y){t[x]=y;w--;0==w&&n(t)}}
var t=[],w=0;do t.push(void 0),w++,d(m.value).gr(r(t.length-1),p),m=l.next();while(!m.done)})};
return b});
ha("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ca(this,b,"endsWith");b+="";void 0===c&&(c=d.length);for(var e=Math.max(0,Math.min(c|0,d.length)),f=b.length;0<f&&0<e;)if(d[--e]!=b[--f])return!1;return 0>=f}});
ha("Array.prototype.find",function(a){return a?a:function(b,c){return Da(this,b,c).DG}});
ha("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ca(this,b,"startsWith");b+="";for(var e=d.length,f=b.length,h=Math.max(0,Math.min(c|0,d.length)),l=0;l<f&&h<e;)if(d[h++]!=b[l++])return!1;return l>=f}});
ha("String.prototype.repeat",function(a){return a?a:function(b){var c=Ca(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
ha("Object.setPrototypeOf",function(a){return a||na});
var SAa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ea(d,e)&&(a[e]=d[e])}return a};
ha("Object.assign",function(a){return a||SAa});
ha("Array.prototype.entries",function(a){return a?a:function(){return Fa(this,function(b,c){return[b,c]})}});
ha("Array.prototype.keys",function(a){return a?a:function(){return Fa(this,function(b){return b})}});
ha("Array.prototype.values",function(a){return a?a:function(){return Fa(this,function(b,c){return c})}});
ha("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Da(this,b,c).aC}});
ha("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ha("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length,f=c||0;for(0>f&&(f=Math.max(f+e,0));f<e;f++){var h=d[f];if(h===b||Object.is(h,b))return!0}return!1}});
ha("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ca(this,b,"includes").indexOf(b,c||0)}});
ha("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ea(b,d)&&c.push([d,b[d]]);return c}});
ha("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
ha("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);c<d;c++)this[c]=b;return this}});
ha("Int8Array.prototype.fill",Ga);ha("Uint8Array.prototype.fill",Ga);ha("Uint8ClampedArray.prototype.fill",Ga);ha("Int16Array.prototype.fill",Ga);ha("Uint16Array.prototype.fill",Ga);ha("Int32Array.prototype.fill",Ga);ha("Uint32Array.prototype.fill",Ga);ha("Float32Array.prototype.fill",Ga);ha("Float64Array.prototype.fill",Ga);ha("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};
var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
ha("WeakMap",function(a){function b(m){this.u=(l+=Math.random()+1).toString();if(m){m=g.q(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!Ea(m,h)){var n=new c;fa(m,h,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p["delete"](m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(r){return!1}}())return a;
var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!Ea(m,h))throw Error("WeakMap key fail: "+m);m[h][this.u]=n;return this};
b.prototype.get=function(m){return d(m)&&Ea(m,h)?m[h][this.u]:void 0};
b.prototype.has=function(m){return d(m)&&Ea(m,h)&&Ea(m[h],this.u)};
b.prototype["delete"]=function(m){return d(m)&&Ea(m,h)&&Ea(m[h],this.u)?delete m[h][this.u]:!1};
return b});
ha("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.u;return ia(function(){if(n){for(;n.head!=l.u;)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:m(n)};n=null}return{done:!0,value:void 0}})}
function d(l,m){var n=m&&typeof m;"object"==n||"function"==n?f.has(m)?n=f.get(m):(n=""+ ++h,f.set(m,n)):n="p_"+m;var p=l.B[n];if(p&&Ea(l.B,n))for(var r=0;r<p.length;r++){var t=p[r];if(m!==m&&t.key!==t.key||m===t.key)return{id:n,list:p,index:r,hf:t}}return{id:n,list:p,index:-1,hf:void 0}}
function e(l){this.B={};this.u=b();this.size=0;if(l){l=g.q(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.q([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(r){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this.B[n.id]=[]);n.hf?n.hf.value=m:(n.hf={next:this.u,previous:this.u.previous,head:this.u,key:l,value:m},n.list.push(n.hf),this.u.previous.next=n.hf,this.u.previous=n.hf,this.size++);return this};
e.prototype["delete"]=function(l){l=d(this,l);return l.hf&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.B[l.id],l.hf.previous.next=l.hf.next,l.hf.next.previous=l.hf.previous,l.hf.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.B={};this.u=this.u.previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).hf};
e.prototype.get=function(l){return(l=d(this,l).hf)&&l.value};
e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};
e.prototype.keys=function(){return c(this,function(l){return l.key})};
e.prototype.values=function(){return c(this,function(l){return l.value})};
e.prototype.forEach=function(l,m){for(var n=this.entries(),p;!(p=n.next()).done;)p=p.value,l.call(m,p[1],p[0],this)};
e.prototype[Symbol.iterator]=e.prototype.entries;var h=0;return e});
ha("Set",function(a){function b(c){this.u=new Map;if(c){c=g.q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.u.size}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.q([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;
b.prototype.add=function(c){c=0===c?0:c;this.u.set(c,c);this.size=this.u.size;return this};
b.prototype["delete"]=function(c){c=this.u["delete"](c);this.size=this.u.size;return c};
b.prototype.clear=function(){this.u.clear();this.size=0};
b.prototype.has=function(c){return this.u.has(c)};
b.prototype.entries=function(){return this.u.entries()};
b.prototype.values=function(){return this.u.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.u.forEach(function(f){return c.call(d,f,f,e)})};
return b});
ha("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ea(b,d)&&c.push(b[d]);return c}});
ha("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ha("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError(""+b+" is not iterable");b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}});
ha("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ha("WeakSet",function(a){function b(c){this.u=new WeakMap;if(c){c=g.q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}
if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e["delete"](c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;
b.prototype.add=function(c){this.u.set(c,!0);return this};
b.prototype.has=function(c){return this.u.has(c)};
b.prototype["delete"]=function(c){return this.u["delete"](c)};
return b});
ha("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Ca(this,null,"padStart"),e=b-d.length,f=void 0!==c?String(c):" ";return(0<e&&f?f.repeat(Math.ceil(e/f.length)).substring(0,e):"")+d}});
ha("Number.parseInt",function(a){return a||parseInt});
ha("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
ha("Array.prototype.copyWithin",function(a){function b(c){c=Number(c);return Infinity===c||-Infinity===c?c:c|0}
return a?a:function(c,d,e){var f=this.length;c=b(c);d=b(d);e=void 0===e?f:b(e);c=0>c?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(c<d)for(;d<e;)d in this?this[c++]=this[d++]:(delete this[c++],d++);else for(e=Math.min(e,f+d-c),c+=e-d;e>d;)--e in this?this[--c]=this[e]:delete this[--c];return this}});
ha("Int8Array.prototype.copyWithin",Ha);ha("Uint8Array.prototype.copyWithin",Ha);ha("Uint8ClampedArray.prototype.copyWithin",Ha);ha("Int16Array.prototype.copyWithin",Ha);ha("Uint16Array.prototype.copyWithin",Ha);ha("Int32Array.prototype.copyWithin",Ha);ha("Uint32Array.prototype.copyWithin",Ha);ha("Float32Array.prototype.copyWithin",Ha);ha("Float64Array.prototype.copyWithin",Ha);g.$0=g.$0||{};g.v=this||self;eaa=/^[\w+/_-]+[=]{0,2}$/;La=null;Ta="closure_uid_"+(1E9*Math.random()>>>0);faa=0;g.Ya($a,Error);$a.prototype.name="CustomError";var me;g.Ya(ab,$a);ab.prototype.name="AssertionError";var lb,ei;lb=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;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
g.TAa=Array.prototype.lastIndexOf?function(a,b){return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;
0>c&&(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.Gb=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<d;f++)f in e&&b.call(c,e[f],f,a)};
g.Ke=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in h){var m=h[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.Pc=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f="string"===typeof a?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));
return e};
g.kh=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.Gb)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
ei=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;
return!1};
g.jh=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};var ac="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var UAa={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var dc;hc.prototype.jj=!0;hc.prototype.zg=function(){return this.u};
var gc={},fc={};var Ida,Hda,Gda,Jda;Ida=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");g.VAa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.WAa=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");
g.In=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");Hda=/^http:\/\/.*/;Gda=/\s+/;Jda=/[\d\u06f0-\u06f9]/;mc.prototype.jj=!0;mc.prototype.zg=function(){return this.B.toString()};
mc.prototype.Iw=!0;mc.prototype.u=function(){return 1};
var vaa=/%{(\w+)}/g,uaa=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,lc={};var Bc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},tc=/&/g,uc=/</g,vc=/>/g,wc=/"/g,xc=/'/g,yc=/\x00/g,xaa=/[\x00&<>"']/;g.Fc.prototype.jj=!0;g.Fc.prototype.zg=function(){return this.B.toString()};
g.Fc.prototype.Iw=!0;g.Fc.prototype.u=function(){return 1};
var zaa=/^(?: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,yaa=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Ic=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Ec={},Jc=new g.Fc("about:invalid#zClosurez",Ec);Nc.prototype.jj=!0;Nc.prototype.zg=function(){return this.u};
var Mc={},Rc=new Nc("",Mc),Baa=/^[-,."'%_!# a-zA-Z0-9\[\]]+$/,Uc=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Tc=RegExp("\\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"),Caa=/\/\*/;a:{var XAa=g.v.navigator;if(XAa){var YAa=XAa.userAgent;if(YAa){g.Vc=YAa;break a}}g.Vc=""};bd.prototype.Iw=!0;bd.prototype.u=function(){return this.C};
bd.prototype.jj=!0;bd.prototype.zg=function(){return this.B.toString()};
var ZAa=/^[a-zA-Z0-9-]+$/,$Aa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},aBa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},ad={},fd=new bd(g.v.trustedTypes&&g.v.trustedTypes.emptyHTML||"",0,ad);var Jaa=eb(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.cd(fd);return!b.parentElement});var Kaa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var wd=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Od=/#|$/,Maa=/[?&]($|#)/;Ud[" "]=g.Oa;var qg,gD,BAa,bBa,cBa,dBa,IB,JB,a1;g.rg=Wc("Opera");g.ye=Wc("Trident")||Wc("MSIE");g.ar=Wc("Edge");g.rC=g.ar||g.ye;qg=Wc("Gecko")&&!(Ac(g.Vc,"WebKit")&&!Wc("Edge"))&&!(Wc("Trident")||Wc("MSIE"))&&!Wc("Edge");g.Ae=Ac(g.Vc,"WebKit")&&!Wc("Edge");gD=Wc("Macintosh");BAa=Wc("Windows");g.lk=Wc("Android");bBa=Sd();cBa=Wc("iPad");dBa=Wc("iPod");IB=Td();JB=Ac(g.Vc,"KaiOS");
a:{var b1="",c1=function(){var a=g.Vc;if(qg)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.ar)return/Edge\/([\d\.]+)/.exec(a);if(g.ye)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Ae)return/WebKit\/(\S+)/.exec(a);if(g.rg)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
c1&&(b1=c1?c1[1]:"");if(g.ye){var d1=Xd();if(null!=d1&&d1>parseFloat(b1)){a1=String(d1);break a}}a1=b1}var Zd=a1,Oaa={},e1;if(g.v.document&&g.ye){var eBa=Xd();e1=eBa?eBa:parseInt(Zd,10)||void 0}else e1=void 0;var Paa=e1;try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var Qaa=!g.ye||g.ae(9),Raa=!qg&&!g.ye||g.ye&&g.ae(9)||qg&&g.$d("1.9.1");g.ye&&g.$d("9");var Taa=g.ye||g.rg||g.Ae;g.k=g.fe.prototype;g.k.clone=function(){return new g.fe(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.he.prototype;g.k.clone=function(){return new g.he(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!je(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 ue={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=ke.prototype;g.k.Ma=function(a){return oe(this.u,a)};
g.k.getElementsByTagName=function(a,b){return(b||this.u).getElementsByTagName(String(a))};
g.k.ga=function(a){return g.te(a,this.u)};
g.k.createElement=function(a){return Ce(this.u,a)};
g.k.appendChild=function(a,b){a.appendChild(b)};
g.k.append=function(a,b){De(le(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.Je;g.k.contains=g.Me;g.xf=0;g.yf=0;Ye.prototype.clone=function(){return $e(this.B,this.D,this.C-this.D)};
Ye.prototype.clear=function(){this.B=null;this.u=this.C=this.D=0;this.F=!1};
Ye.prototype.reset=function(){this.u=this.D};
Ye.prototype.advance=function(a){this.u+=a};
var Ze=[];df.prototype.reset=function(){this.u.reset();this.B=this.C=-1};
df.prototype.advance=function(a){this.u.advance(a)};lf.prototype.length=function(){return this.u.length};
lf.prototype.end=function(){var a=this.u;this.u=[];return a};var SB,VF;g.wB=Yc();SB=Sd()||Wc("iPod");VF=Wc("iPad");g.KB=Wc("Android")&&!(Zc()||Yc()||Wc("Opera")||Wc("Silk"));g.eB=Zc();g.sC=$c()&&!Td();var pf={},tf=null;g.uf.prototype.reset=function(){this.C=[];this.u.end();this.B=0};var Cf;Cf="function"==typeof Uint8Array;g.Df=[];g.Bf.prototype.toString=function(){return this.xf.toString()};
g.Bf.prototype.clone=function(){return new this.constructor(Mf(this.xf))};var yi;yi=["av.key","js","unreleased"].slice(-1)[0];var Ig=document,Zg=window;var Of={};g.k=Qf.prototype;g.k.isEnabled=function(){return navigator.cookieEnabled};
g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.zW;d=c.HQ||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.HC}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);this.u.cookie=a+"="+b+(f?";domain="+f:"")+(h?";path="+h:"")+(0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString())+(d?";secure":"")+(null!=e?";samesite="+e:"")};
g.k.get=function(a,b){for(var c=a+"=",d=(this.u.cookie||"").split(";"),e=0,f;e<d.length;e++){f=Bc(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
g.k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{HC:0,path:b,domain:c});return d};
g.k.xg=function(){return Rf(this).keys};
g.k.mf=function(){return Rf(this).values};
g.k.isEmpty=function(){return!this.u.cookie};
g.k.clear=function(){for(var a=Rf(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var uq=new Qf("undefined"==typeof document?null:document);var Yaa=eb(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.v.addEventListener("test",null,b)}catch(c){}return a});var fBa;
fBa={iH:["BC","AD"],hH:["Before Christ","Anno Domini"],tH:"JFMAMJJASOND".split(""),yH:"JFMAMJJASOND".split(""),Cz:"January February March April May June July August September October November December".split(" "),Mz:"January February March April May June July August September October November December".split(" "),Kz:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Nz:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Xz:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Pz:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
Lz:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Oz:"Sun Mon Tue Wed Thu Fri Sat".split(" "),rU:"SMTWTFS".split(""),zH:"SMTWTFS".split(""),wH:["Q1","Q2","Q3","Q4"],uH:["1st quarter","2nd quarter","3rd quarter","4th quarter"],nz:["AM","PM"],Vu:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],Tz:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],eH:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Oq:6,HH:[5,6],Pq:5};g.f1=fBa;g.f1=fBa;g.k=g.Yf.prototype;g.k.hB=g.f1.Oq;g.k.jB=g.f1.Pq;g.k.clone=function(){var a=new g.Yf(this.date);a.hB=this.hB;a.jB=this.jB;return a};
g.k.getFullYear=function(){return this.date.getFullYear()};
g.k.getMonth=function(){return this.date.getMonth()};
g.k.getDate=function(){return this.date.getDate()};
g.k.getTime=function(){return this.date.getTime()};
g.k.getDay=function(){return this.date.getDay()};
g.k.getUTCFullYear=function(){return this.date.getUTCFullYear()};
g.k.getUTCMonth=function(){return this.date.getUTCMonth()};
g.k.getUTCDate=function(){return this.date.getUTCDate()};
g.k.getUTCHours=function(){return this.date.getUTCHours()};
g.k.getUTCMinutes=function(){return this.date.getUTCMinutes()};
g.k.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
g.k.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
g.k.add=function(a){if(a.u||a.months){var b=this.getMonth()+a.months+12*a.u,c=this.getFullYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);a:{switch(b){case 1:var d=0!=c%4||0==c%100&&0!=c%400?28:29;break a;case 5:case 8:case 10:case 3:d=30;break a}d=31}d=Math.min(d,this.getDate());this.date.setDate(1);this.date.setFullYear(c);this.date.setMonth(b);this.date.setDate(d)}a.days&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.days),this.date.setDate(1),this.date.setFullYear(a.getFullYear()),
this.date.setMonth(a.getMonth()),this.date.setDate(a.getDate()),Xf(this,a.getDate()))};
g.k.toString=function(){return[this.getFullYear(),g.od(this.getMonth()+1,2),g.od(this.getDate(),2)].join("")+""};
g.k.valueOf=function(){return this.date.valueOf()};var aba=/https?:\/\/[^\/]+/,Zaa={XR:"allow-forms",YR:"allow-modals",ZR:"allow-orientation-lock",aS:"allow-pointer-lock",bS:"allow-popups",cS:"allow-popups-to-escape-sandbox",dS:"allow-presentation",eS:"allow-same-origin",fS:"allow-scripts",gS:"allow-top-navigation",hS:"allow-top-navigation-by-user-activation"},dba=eb(function(){return $aa()});g.B.prototype.Od=!1;g.B.prototype.la=function(){return this.Od};
g.B.prototype.dispose=function(){this.Od||(this.Od=!0,this.aa())};
g.B.prototype.aa=function(){if(this.Sl)for(;this.Sl.length;)this.Sl.shift()()};g.k=gg.prototype;g.k.ge=function(){return this.right-this.left};
g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new gg(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof gg?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){var c="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};g.k=g.ig.prototype;g.k.clone=function(){return new g.ig(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.fe?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.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){var c="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};var kg={};g.u(lg,fba);lg.prototype.toString=function(){return this.u};new lg("about:blank",kg);new lg("about:invalid#zTSz",kg);var mg=g.Oa;var pg={};var Gg=!!window.google_async_iframe_id,Hg=Gg&&window.parent||window;var Qba={NONE:0,VS:1};Mg.prototype.isVisible=function(){return this.El?.3<=this.hc:.5<=this.hc};var th={IS:0,fT:1},sh={NONE:0,JT:1,iT:2};Ng.prototype.getValue=function(){return this.B};
g.u(Og,Ng);Og.prototype.setValue=function(a){if(null!==this.B||!g.Tb(this.C,a))return!1;this.B=a;return!0};
g.u(Pg,Ng);Pg.prototype.setValue=function(a){if(null!==this.B||"number"!==typeof a)return!1;this.B=a;return!0};
g.u(Qg,Ng);Qg.prototype.setValue=function(a){if(null!==this.B||"string"!==typeof a)return!1;this.B=a;return!0};Rg.prototype.disable=function(){this.C=!1};
Rg.prototype.enable=function(){this.C=!0};
Rg.prototype.isEnabled=function(){return this.C};
Rg.prototype.reset=function(){this.u={};this.C=!0;this.B={}};var Rba=!g.ye&&!$c();Wg.prototype.now=function(){return 0};
Wg.prototype.B=function(){return 0};
Wg.prototype.C=function(){return 0};
Wg.prototype.u=function(){return 0};g.u(Yg,Wg);Yg.prototype.now=function(){return Xg()&&Zg.performance.now?Zg.performance.now():Wg.prototype.now.call(this)};
Yg.prototype.B=function(){return Xg()&&Zg.performance.memory?Zg.performance.memory.totalJSHeapSize||0:Wg.prototype.B.call(this)};
Yg.prototype.C=function(){return Xg()&&Zg.performance.memory?Zg.performance.memory.usedJSHeapSize||0:Wg.prototype.C.call(this)};
Yg.prototype.u=function(){return Xg()&&Zg.performance.memory?Zg.performance.memory.jsHeapSizeLimit||0:Wg.prototype.u.call(this)};ah.prototype.isVisible=function(){return 1===$g(Ig)};var mba=/^https?:\/\/(\w|-)+\.cdn\.ampproject\.(net|org)(\?|\/|$)/;eh.prototype.nd=function(a,b,c,d){a=a+"//"+b+c;var e=oba(this)-c.length-d.length;if(0>e)return"";this.u.sort(function(p,r){return p-r});
c=null;b="";for(var f=0;f<this.u.length;f++)for(var h=this.u[f],l=this.B[h],m=0;m<l.length;m++){if(!e){c=null==c?h:c;break}var n=hh(l[m],this.C,",$");if(n){n=b+n;if(e>=n.length){e-=n.length;a+=n;b=this.C;break}c=null==c?h:c}}e="";null!=c&&(e=b+"trn="+c);return a+e+d};lh.prototype.setInterval=function(a,b){return Zg.setInterval(a,b)};
lh.prototype.clearInterval=function(a){Zg.clearInterval(a)};
lh.prototype.setTimeout=function(a,b){return Zg.setTimeout(a,b)};
lh.prototype.clearTimeout=function(a){Zg.clearTimeout(a)};
Pa(lh);ph.prototype.getContext=function(){if(!this.u){if(!Zg)throw Error("Context has not been set and window is undefined.");this.u=lh.getInstance()}return this.u};
Pa(ph);g.Ya(qh,g.Bf);var vba={TU:1,GH:2,pU:3};oc(jc(g.kc("https://pagead2.googlesyndication.com/pagead/osd.js")));uh.prototype.Vx=function(a){if("string"===typeof a&&0!=a.length){var b=this.ub;if(b.C){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=d[0];d=1<d.length?parseInt(d[1],10):1;isNaN(d)||(e=b.u[e])&&e.setValue(d)}}}};
Pa(uh);var g1=null;var Ah=g.v.performance,gBa=!!(Ah&&Ah.mark&&Ah.measure&&Ah.clearMarks),yh=eb(function(){var a;if(a=gBa){var b;if(null===g1){g1="";try{a="";try{a=g.v.top.location.hash}catch(c){a=g.v.location.hash}a&&(g1=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=g1;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
zh.prototype.disable=function(){this.u=!1;this.events!=this.B.google_js_reporting_queue&&(yh()&&g.Gb(this.events,Bh),this.events.length=0)};
zh.prototype.start=function(a,b){if(!this.u)return null;var c=new xba(a,b),d="goog_"+c.label+"_"+c.uniqueId+"_start";Ah&&yh()&&Ah.mark(d);return c};
zh.prototype.end=function(a){if(this.u&&"number"===typeof a.value){a.duration=(xh()||wh())-a.value;var b="goog_"+a.label+"_"+a.uniqueId+"_end";Ah&&yh()&&Ah.mark(b);!this.u||2048<this.events.length||this.events.push(a)}};Hh.prototype.B=function(a,b,c,d,e){e=e||this.D;try{var f=new eh;f.u.push(1);f.B[1]=fh("context",a);b.error&&b.meta&&b.id||(b=new Ih(Jh(b)));if(b.msg){var h=b.msg.substring(0,512);f.u.push(2);f.B[2]=fh("msg",h)}var l=b.meta||{};if(this.u)try{this.u(l)}catch(r){}if(d)try{d(l)}catch(r){}b=[l];f.u.push(3);f.B[3]=b;var m=dh();if(m.B){var n=m.B.url||"";f.u.push(4);f.B[4]=fh("top",n)}var p=[{url:m.u.url||""},{url:m.u.url?zd(m.u.url):""}];f.u.push(5);f.B[5]=p;vh(this.F,e,f,!1,c)}catch(r){try{vh(this.F,e,
{context:"ecmserr",rctx:a,msg:Jh(r),url:m&&m.u.url},!1,c)}catch(t){}}return this.C};
g.u(Ih,Sf);var Dh,Lh,Ch=new zh;(function(){Dh=new wba;Lh=new Hh;var a=Jg();a&&a.document&&("complete"==a.document.readyState?Nh():Ch.u&&Uf(a,"load",function(){Nh()}))})();var zba=Date.now(),Uh=-1,Sh=-1,Cj,Vh=-1,Th=!1;Xh.prototype.Ma=function(){return this.K};var ml={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},yj={BH:"start",kH:"firstquartile",rH:"midpoint",DH:"thirdquartile",bH:"complete",qH:"metric",PAUSE:"pause",vH:"resume",xH:"skip",FH:"viewable_impression",sH:"mute",EH:"unmute",lH:"fullscreen",jH:"exitfullscreen",aH:"bufferstart",ZG:"bufferfinish",mH:"fully_viewable_audible_half_duration_impression",pH:"measurable_impression",XG:"abandon",gH:"engagedview",nH:"impression",cH:"creativeview",oH:"loaded",WU:"progress",CLOSE:"close",
GS:"collapse",yU:"overlay_resize",zU:"overlay_unmeasurable_impression",AU:"overlay_unviewable_impression",CU:"overlay_viewable_immediate_impression",BU:"overlay_viewable_end_of_session_impression",dH:"custom_metric_viewable",uU:"verification_debug"},dda="start firstquartile midpoint thirdquartile resume loaded".split(" "),eda=["start","firstquartile","midpoint","thirdquartile"],gca=["abandon"],Gk={UNKNOWN:-1,BH:0,kH:1,rH:2,DH:3,bH:4,qH:5,PAUSE:6,vH:7,xH:8,FH:9,sH:10,EH:11,lH:12,jH:13,mH:14,pH:15,
XG:16,gH:17,nH:18,cH:19,oH:20,dH:21,aH:22,ZG:23};var Bba={PR:"addEventListener",kT:"getMaxSize",lT:"getScreenSize",mT:"getState",nT:"getVersion",bV:"removeEventListener",NT:"isViewable"};if(Ig&&Ig.URL){var hBa,cg=Ig.URL;hBa=!!cg&&0<cba().length;Lh.C=!hBa};fi.prototype.update=function(a){a&&a.document&&(this.K=Lg(!1,a,this.isMobileDevice),this.u=Lg(!0,a,this.isMobileDevice),hi(this,a),gi(this,a))};
Pa(fi);ji.prototype.cancel=function(){mh().clearTimeout(this.u);this.u=null};
ji.prototype.schedule=function(){var a=this;this.u=mh().setTimeout(rh(uh.getInstance().u.u,Ph(143,function(){a.B++;a.C.MC()})),Aba())};g.k=ki.prototype;g.k.bD=function(){return this.wt()};
g.k.wt=function(){return!1};
g.k.initialize=function(){return this.Dd=!0};
g.k.Om=function(){return this.u.Z};
g.k.bp=function(){return this.u.P};
g.k.getName=function(){return this.u.ha};
g.k.ak=function(){return this.u.xB()};
g.k.xB=function(){return{}};
g.k.di=function(){return this.u.K};
g.k.ZC=function(){var a=fi.getInstance();a.u=Lg(!0,this.gf,a.isMobileDevice)};
g.k.aD=function(){gi(fi.getInstance(),this.gf)};
g.k.aK=function(){hi(fi.getInstance(),this.gf)};
g.k.IB=function(){return this.C.u};
g.k.MC=function(){};
g.k.isActive=function(){return this.u.F};
g.k.Tm=function(a){var b=this.u,c=a.di();this.u=c>=this.K?a:this;b!==this.u?(this.F=this.u.F,li(this)):this.F!==this.u.F&&(this.F=this.u.F,li(this))};
g.k.jk=function(a){if(a.B===this.u){var b;if(!(b=this.da)){b=this.C;var c=this.N;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.C==a.C)b=b.u,c=a.u,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;b=!c}this.C=a;b&&qi(this)}};
g.k.Di=function(){return this.N};
g.k.dispose=function(){this.Od=!0};
g.k.la=function(){return this.Od};g.k=ri.prototype;g.k.ox=function(){return!0};
g.k.xp=function(){};
g.k.dispose=function(){if(!this.la()){var a=this.B;g.rb(a.D,this);a.N&&this.Di()&&pi(a);this.xp();this.Od=!0}};
g.k.la=function(){return this.Od};
g.k.ak=function(){return this.B.ak()};
g.k.di=function(){return this.B.di()};
g.k.Om=function(){return this.B.Om()};
g.k.bp=function(){return this.B.bp()};
g.k.Tm=function(){};
g.k.jk=function(){this.Sj()};
g.k.Di=function(){return this.X};g.k=si.prototype;g.k.di=function(){return this.u.di()};
g.k.Om=function(){return this.u.Om()};
g.k.bp=function(){return this.u.bp()};
g.k.create=function(a,b,c){var d=null;this.u&&(d=this.it(a,b,c),ni(this.u,d));return d};
g.k.NC=function(){return this.rp()};
g.k.rp=function(){return!1};
g.k.init=function(a){return this.u.initialize()?(ni(this.u,this),this.D=a,!0):!1};
g.k.Tm=function(a){0==a.di()&&this.D(a.Om(),this)};
g.k.jk=function(){};
g.k.Di=function(){return!1};
g.k.dispose=function(){this.Od=!0};
g.k.la=function(){return this.Od};
g.k.ak=function(){return{}};vi.prototype.add=function(a,b,c){++this.C;var d=this.C/4096;this.u.push(Fba(new ti(a,b,c),d));this.B=!0;return this};zi.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=xi(this.u);0<b.length&&(a+="?"+b);return a};Pa(Ci);Di.prototype.update=function(a,b,c){a&&(this.u+=b,this.B+=b,this.D+=b,this.C=Math.max(this.C,this.D));if(void 0===c?!a:c)this.D=0};var Kba=[1,.75,.5,.3,0];Ei.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.B.length;e++){var h=this.B[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.u[e].update(f&&l,d,!f||h)}};Si.prototype.update=function(a,b,c,d){this.K=-1!=this.K?Math.min(this.K,b.hc):b.hc;this.X=Math.max(this.X,b.hc);this.Z=-1!=this.Z?Math.min(this.Z,b.Vf):b.Vf;this.ea=Math.max(this.ea,b.Vf);this.Ga.update(b.Vf,c.Vf,b.u,a,d);this.B.update(b.hc,c.hc,b.u,a,d);c=d||c.El!=b.El?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.u;this.ka.update(c,a,b)};
Si.prototype.Gl=function(){return this.ka.C>=this.za};var iBa=new gg(0,0,0,0);var Pba=new gg(0,0,0,0);g.u(Wi,g.B);g.k=Wi.prototype;g.k.aa=function(){this.Hf.u&&(this.il.Gx&&(Vf(this.Hf.u,"mouseover",this.il.Gx),this.il.Gx=null),this.il.Ex&&(Vf(this.Hf.u,"mouseout",this.il.Ex),this.il.Ex=null));this.qq&&this.qq.dispose();this.oc&&this.oc.dispose();delete this.Ys;delete this.jx;delete this.qG;delete this.Hf.tk;delete this.Hf.u;delete this.il;delete this.qq;delete this.oc;delete this.ub;g.B.prototype.aa.call(this)};
g.k.dk=function(){return this.oc?this.oc.u:this.position};
g.k.Vx=function(a){uh.getInstance().Vx(a)};
g.k.Di=function(){return!1};
g.k.Xr=function(){return new Si};
g.k.Kf=function(){return this.Ys};
g.k.CB=function(a){return Zi(this,a,1E4)};
g.k.na=function(a,b,c,d,e,f,h){this.cn||(this.zr&&(a=this.kv(a,c,e,h),d=d&&this.ke.hc>=(this.El()?.3:.5),this.dz(f,a,d),this.lastUpdateTime=b,0<a.hc&&-1===this.eG&&(this.eG=b),-1==this.fG&&this.Gl()&&(this.fG=b),-2==this.ix&&(this.ix=Ui(this.dk())?a.hc:-1),this.ke=a),this.jx(this))};
g.k.dz=function(a,b,c){this.Kf().update(a,b,this.ke,c)};
g.k.nw=function(){return new Mg};
g.k.kv=function(a,b,c,d){c=this.nw();c.u=b;b=mh().B;b=0===$g(Ig)?-1:b.isVisible()?0:1;c.B=b;c.hc=this.Hv(a);c.El=this.El();c.Vf=d;return c};
g.k.Hv=function(a){return 0===this.opacity&&1===Ug(this.ub,"opac")?0:a};
g.k.El=function(){return!1};
g.k.lu=function(){return this.HJ||this.KJ};
g.k.It=function(){};
g.k.Fx=function(){};
g.k.bi=function(){return 0};
g.k.Gl=function(){return this.Ys.Gl()};var aj="StopIteration"in g.v?g.v.StopIteration:{message:"StopIteration",stack:""};$i.prototype.next=function(){throw aj;};
$i.prototype.Pi=function(){return this};g.u(dj,Mg);gj.prototype.getValue=function(){return this.B};
gj.prototype.update=function(a,b){32<=a||(this.u&1<<a&&!b?this.B&=~(1<<a):this.u&1<<a||!b||(this.B|=1<<a),this.u|=1<<a)};g.u(hj,Si);
hj.prototype.update=function(a,b,c,d){if(!b.paused){Si.prototype.update.call(this,a,b,c,d);var e=ej(b)&&ej(c),f=.5<=(d?Math.min(b.hc,c.hc):c.hc);di(b.volume)&&(this.D=-1!=this.D?Math.min(this.D,b.volume):b.volume,this.I=Math.max(this.I,b.volume));f&&(this.ba+=a,this.P+=e?a:0);this.u.update(b.hc,c.hc,b.u,a,d,e);this.C.update(!0,a);this.F.update(e,a);this.W.update(c.fullscreen,a);this.Ja.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.da.update(a,b.isVisible());this.Aa.update(a,1<=b.hc);this.ra.update(a,
ej(b))}};g.u(lj,aca);lj.prototype.C=function(){return!0};
lj.prototype.F=function(){return!1};
lj.prototype.getId=function(){var a=this,b=Ub(yj,function(c){return c==a.D});
return Gk[b].toString()};
lj.prototype.toString=function(){var a="";this.F()&&(a+="c");this.u&&(a+="s");0<this.B&&(a+=":"+this.B);return this.getId()+a};g.u(mj,ri);g.k=mj.prototype;g.k.qv=function(){if(this.element){var a=this.element,b=this.B.u.gf;try{try{var c=bi(a.getBoundingClientRect())}catch(n){c=new gg(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Ag(a,b),h=f.x,l=f.y;var m=new gg(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=iBa.clone()}this.u=m}};
g.k.vA=function(){this.D=this.B.C.u};
g.k.lC=function(a){var b=1==Ug(this.ub,"od");return Oba(a,this.D,this.element,b)};
g.k.wA=function(){this.timestamp=Rh()};
g.k.Sj=function(){this.wA();this.qv();if(1===Ug(uh.getInstance().ub,"vcm")&&this.element instanceof HTMLVideoElement){this.W=this.u;var a=this.element;var b=this.u;var c=b.ge(),d=b.getHeight(),e=a.videoHeight,f=a.videoWidth;if(!(0>=f||0>=e||0>=c||0>=d)){var h=f/e,l=c/d;a=b.clone();h>l?(c=Math.floor((d-e)/2),0<c&&(a.top=b.top+c,a.bottom=a.top+e)):(e=Math.floor((c-f)/2),0<e&&(a.left=b.left+e,a.right=a.left+f));b=a}this.u=b}this.vA();b=this.u;e=this.D;b=b.left<=e.right&&e.left<=b.right&&b.top<=e.bottom&&
e.top<=b.bottom?new gg(Math.max(b.top,e.top),Math.min(b.right,e.right),Math.min(b.bottom,e.bottom),Math.max(b.left,e.left)):new gg(0,0,0,0);e=b.top>=b.bottom||b.left>=b.right?new gg(0,0,0,0):b;b=this.B.C;d=c=a=0;0<(this.u.bottom-this.u.top)*(this.u.right-this.u.left)&&(this.lC(e)?e=new gg(0,0,0,0):(a=fi.getInstance().D,d=new gg(0,a.height,a.width,0),a=Vi(e,this.u),c=Vi(e,fi.getInstance().u),d=Vi(e,d)));e=e.top>=e.bottom||e.left>=e.right?new gg(0,0,0,0):hg(e,-this.u.left,-this.u.top);ii()||(c=a=0);
this.K=new Xh(b,this.element,this.u,e,a,c,this.timestamp,d)};
g.k.getName=function(){return this.B.getName()};var jBa=new gg(0,0,0,0);g.u(nj,mj);g.k=nj.prototype;g.k.ox=function(){this.C();return!0};
g.k.jk=function(){mj.prototype.Sj.call(this)};
g.k.wA=function(){};
g.k.qv=function(){};
g.k.Sj=function(){this.C();mj.prototype.Sj.call(this)};
g.k.Tm=function(a){a=a.isActive();a!==this.I&&(a?this.C():(fi.getInstance().u=new gg(0,0,0,0),this.u=new gg(0,0,0,0),this.D=new gg(0,0,0,0),this.timestamp=-1));this.I=a};var h1={},fca=(h1.firstquartile=0,h1.midpoint=1,h1.thirdquartile=2,h1.complete=3,h1);g.u(pj,Wi);g.k=pj.prototype;g.k.Di=function(){return!0};
g.k.CB=function(a){return Zi(this,a,Math.max(1E4,this.D/3))};
g.k.na=function(a,b,c,d,e,f,h){var l=this,m=this.Z(this)||{};g.bc(m,e);this.D=m.duration||this.D;this.P=m.isVpaid||this.P;this.ka=m.isYouTube||this.ka;e=bca(this,b);1===uj(this)&&(f=e);Wi.prototype.na.call(this,a,b,c,d,m,f,h);this.C&&this.C.u&&g.Gb(this.K,function(n){kj(n,l)})};
g.k.dz=function(a,b,c){Wi.prototype.dz.call(this,a,b,c);tj(this).update(a,b,this.ke,c);this.Ga=ej(this.ke)&&ej(b);-1==this.da&&this.za&&(this.da=this.Kf().C.u);this.de.C=0;a=this.Gl();b.isVisible()&&fj(this.de,"vs");a&&fj(this.de,"vw");di(b.volume)&&fj(this.de,"am");ej(b)&&fj(this.de,"a");this.Wm&&fj(this.de,"f");-1!=b.B&&(fj(this.de,"bm"),1==b.B&&fj(this.de,"b"));ej(b)&&b.isVisible()&&fj(this.de,"avs");this.Ga&&a&&fj(this.de,"avw");0<b.hc&&fj(this.de,"pv");vj(this,this.Kf().C.u,!0)&&fj(this.de,"gdr");
2E3<=Pi(this.Kf().B,1)&&fj(this.de,"pmx")};
g.k.Xr=function(){return new hj};
g.k.Kf=function(){return this.Ys};
g.k.nw=function(){return new dj};
g.k.kv=function(a,b,c,d){a=Wi.prototype.kv.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Wm;a.paused=2==this.Qd;a.volume=c.volume;di(a.volume)||(this.Ja++,b=this.ke,di(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.Hv=function(a){return fi.getInstance(),this.Wm?1:Wi.prototype.Hv.call(this,a)};
g.k.bi=function(){return 1};
g.k.getDuration=function(){return this.D};var kBa=g.A();var Hj={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},pca=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Ij.prototype.reset=function(){this.u=[];this.B=[]};
Pa(Ij);var Lj=Ij.getInstance();Pa(Pj);g.u(Rj,si);g.k=Rj.prototype;g.k.getName=function(){return(this.B?this.B:this.u).getName()};
g.k.ak=function(){return(this.B?this.B:this.u).ak()};
g.k.di=function(){return(this.B?this.B:this.u).di()};
g.k.init=function(a){var b=!1;(0,g.Gb)(this.C,function(c){c.initialize()&&(b=!0)});
b&&(this.D=a,ni(this.u,this));return b};
g.k.dispose=function(){(0,g.Gb)(this.C,function(a){a.dispose()});
si.prototype.dispose.call(this)};
g.k.NC=function(){return ei(this.C,function(a){return a.bD()})};
g.k.rp=function(){return ei(this.C,function(a){return a.wt()})};
g.k.it=function(a,b,c){return new mj(a,this.u,b,c)};
g.k.jk=function(a){this.B=a.B};var uca={threshold:[0,.3,.5,.75,1]};g.u(Sj,mj);g.k=Sj.prototype;g.k.ox=function(){var a=this;this.P||(this.P=Rh());if(Oh(298,function(){return vca(a)}))return!0;
mi(this.B,"msf");return!1};
g.k.xp=function(){if(this.C&&this.element)try{this.C.unobserve(this.element),this.I?(this.I.unobserve(this.element),this.I=null):this.F&&(this.F.disconnect(),this.F=null)}catch(a){}};
g.k.Sj=function(){var a=Tj(this);0<a.length&&Uj(this,a);mj.prototype.Sj.call(this)};
g.k.qv=function(){};
g.k.lC=function(){return!1};
g.k.vA=function(){};
g.k.ak=function(){var a={};return Object.assign(this.B.ak(),(a.niot_obs=this.P,a.niot_cbk=this.N,a))};
g.k.getName=function(){return"nio"};var jk=SB||VF;g.u(ok,si);ok.prototype.getName=function(){return"nio"};
ok.prototype.rp=function(){return g.ak()?!1:!fi.getInstance().B&&null!=this.u.u.gf.IntersectionObserver};
ok.prototype.it=function(a,b,c){return new Sj(a,this.u,b,c)};g.u(qk,ki);qk.prototype.IB=function(){return fi.getInstance().u};
qk.prototype.wt=function(){var a=pk();this.K!==a&&(this.u!=this&&a>this.u.K&&(this.u=this,li(this)),this.K=a);return 2==a};
Pa(qk);Pa(rk);sk.prototype.MC=function(){vk(this,Mj(),!1)};
sk.prototype.D=function(){var a=ii(),b=Rh();a?(Th||(Uh=b,g.Gb(Lj.u,function(c){var d=c.Kf();d.ha=ij(d,b,1!=c.Qd)})),Th=!0):(this.K=xk(this,b),Th=!1,Cj=b,g.Gb(Lj.u,function(c){c.zr&&(c.Kf().N=b)}));
vk(this,Mj(),!a)};
Pa(sk);var tk=sk.getInstance();var yk=null,fl="",el=!1;var i1=Ek([void 0,1,2,3,4,8,16]),j1=Ek([void 0,4,8,16]),lBa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Dk("p0",j1),p1:Dk("p1",j1),p2:Dk("p2",j1),p3:Dk("p3",j1),cp:"cp",tos:"tos",mtos:"mtos",mtos1:Ck("mtos1",[0,2,4],!1,j1),mtos2:Ck("mtos2",[0,2,4],!1,j1),mtos3:Ck("mtos3",[0,2,4],!1,j1),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Dk("a0",j1),a1:Dk("a1",j1),a2:Dk("a2",j1),a3:Dk("a3",j1),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",j1),c1:Dk("c1",j1),c2:Dk("c2",j1),c3:Dk("c3",j1),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Dk("qmtos",i1),qnc:Dk("qnc",i1),qmv:Dk("qmv",i1),qnv:Dk("qnv",i1),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",j1),ss1:Dk("ss1",j1),ss2:Dk("ss2",j1),ss3:Dk("ss3",j1),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},mBa={c:zk("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:zk("ss"),vsv:cb("w2"),t:"t"},nBa={atos:"atos",amtos:"amtos",avt:Ck("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:zk("ss"),t:"t"},oBa={a:"a",tos:Bk(),at:"at",c:zk("c"),mtos:Ck("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:cb("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},pBa={tos:Bk(),at:"at",c:zk("c"),mtos:Ck("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:cb("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.Pc(b,function(e){return 0<d&&d>=e?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};var Dca={gT:"visible",kS:"audible",FV:"time",GV:"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.u(Kk,lj);Kk.prototype.getId=function(){return this.K};
Kk.prototype.F=function(){return!0};
Kk.prototype.C=function(a){var b=a.Kf(),c=a.getDuration();return ei(this.I,function(d){if(void 0!=d.u)var e=Fca(d,b);else b:{switch(d.F){case "mtos":e=d.B?b.F.C:b.C.u;break b;case "tos":e=d.B?b.F.u:b.C.u;break b}e=0}0==e?d=!1:(d=-1!=d.C?d.C:void 0!==c&&0<c?d.D*c:-1,d=-1!=d&&e>=d);return d})};g.u(Lk,lj);Lk.prototype.C=function(a){var b=Ni(a.Kf().u,1);return vj(a,b)};g.u(Mk,lj);Mk.prototype.C=function(a){return a.Kf().Gl()};g.u(Pk,Gca);Pk.prototype.u=function(a){var b=new Nk;b.u=Ok(a,lBa);b.C=Ok(a,nBa);return b};g.u(Qk,nj);Qk.prototype.C=function(){var a=g.Na("ima.admob.getViewability"),b=Ug(this.ub,"queryid");"function"===typeof a&&b&&a(b)};
Qk.prototype.getName=function(){return"gsv"};g.u(Rk,si);Rk.prototype.getName=function(){return"gsv"};
Rk.prototype.rp=function(){var a=fi.getInstance();uh.getInstance();return a.B&&!1};
Rk.prototype.it=function(a,b,c){return new Qk(this.u,b,c)};g.u(Sk,nj);Sk.prototype.C=function(){var a=this,b=g.Na("ima.bridge.getNativeViewability"),c=Ug(this.ub,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Wb(d)&&a.F++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.u=ci(d.opt_nativeViewBounds||{});var h=a.B.C;h.u=f?jBa.clone():ci(e);a.timestamp=d.opt_nativeTime||-1;fi.getInstance().u=h.u;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
Sk.prototype.getName=function(){return"nis"};g.u(Tk,si);Tk.prototype.getName=function(){return"nis"};
Tk.prototype.rp=function(){var a=fi.getInstance();uh.getInstance();return a.B&&!1};
Tk.prototype.it=function(a,b,c){return new Sk(this.u,b,c)};g.u(Uk,ki);g.k=Uk.prototype;g.k.wt=function(){return null!=this.B.uh};
g.k.xB=function(){var a={};this.ba&&(a.mraid=this.ba);this.X&&(a.mlc=1);a.mtop=this.B.PQ;this.I&&(a.mse=this.I);this.ea&&(a.msc=1);a.mcp=this.B.compatibility;return a};
g.k.Ik=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];try{return this.B.uh[a].apply(this.B.uh,c)}catch(e){Qh(538,e,.01,function(f){f.method=a})}};
g.k.initialize=function(){var a=this;if(this.Dd)return!this.bp();this.Dd=!0;if(2===this.B.compatibility)return this.I="ng",mi(this,"w"),!1;if(1===this.B.compatibility)return this.I="mm",mi(this,"w"),!1;fi.getInstance().N=!0;this.gf.document.readyState&&"complete"==this.gf.document.readyState?Yk(this):$h(this.gf,"load",function(){mh().setTimeout(Ph(292,function(){return Yk(a)}),100)},292);
return!0};
g.k.ZC=function(){var a=fi.getInstance(),b=al(this,"getMaxSize");a.u=new gg(0,b.width,b.height,0)};
g.k.aD=function(){fi.getInstance().D=al(this,"getScreenSize")};
g.k.dispose=function(){Zk(this);ki.prototype.dispose.call(this)};
Pa(Uk);g.k=bl.prototype;g.k.Co=function(a){Xi(a,!1);rca(a)};
g.k.ds=function(){};
g.k.Xp=function(a,b,c,d){var e=this;this.B||(this.B=this.PA());b=c?b:-1;a=null==this.B?new pj(Zg,a,b,7):new pj(Zg,a,b,7,new lj("measurable_impression",this.B),Mca(this));a.Ke=d;jba(a.ub);Tg(a.ub,"queryid",a.Ke);a.Vx("");Uba(a,function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];return e.RB.apply(e,g.la(h))},function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];
return e.oJ.apply(e,g.la(h))});
(d=Pj.getInstance().u)&&Yi(a,d);a.Hf.tk&&rk.getInstance();return a};
g.k.Tm=function(a){switch(a.di()){case 0:if(a=Pj.getInstance().u)a=a.u,g.rb(a.D,this),a.N&&this.Di()&&pi(a);dl(this);break;case 2:uk(),Ug(uh.getInstance().ub,"mpv")&&Pca()}};
g.k.jk=function(){};
g.k.Di=function(){return!1};
g.k.oJ=function(a,b){a.cn=!0;switch(a.bi()){case 1:jl(this,a,b);break;case 2:this.jy(a)}this.ry()};
g.k.wJ=function(a){xj(a,0);return Aj(a,"start",ii())};
g.k.Un=function(a,b,c){vk(tk,[a],!ii());return this.ek(a,b,c)};
g.k.ek=function(a,b,c){return Aj(a,c,ii())};
g.k.rJ=function(a){return kl(a,"firstquartile",1)};
g.k.tJ=function(a){a.za=!0;return kl(a,"midpoint",2)};
g.k.xJ=function(a){return kl(a,"thirdquartile",3)};
g.k.pJ=function(a){var b=kl(a,"complete",4);qj(a);return b};
g.k.KF=function(a,b,c){b=ii();2!=a.Qd||b||(a.Kf().N=Rh());vk(tk,[a],!b);2==a.Qd&&(a.Qd=1);return Aj(a,c,b)};
g.k.vJ=function(a,b){var c=this.Un(a,b||{},"skip");qj(a);return c};
g.k.sJ=function(a,b){Xi(a,!0);return this.Un(a,b||{},"fullscreen")};
g.k.qJ=function(a,b){Xi(a,!1);return this.Un(a,b||{},"exitfullscreen")};
g.k.Qx=function(a,b,c){b=a.Kf();b.ha=ij(b,Rh(),1!=a.Qd);vk(tk,[a],!ii());1==a.Qd&&(a.Qd=2);return Aj(a,c,ii())};
g.k.uJ=function(a){vk(tk,[a],!ii());return a.B()};
g.k.Fw=function(a){vk(tk,[a],!ii());this.EF(a);qj(a);return a.B()};
g.k.RB=function(){};
g.k.jy=function(){};
g.k.EF=function(){};
g.k.YC=function(){};
g.k.ry=function(){};
g.k.PA=function(){};var pl=g.A(),rl=!1,sl=!1,tl=!1,Uca=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return ql(0)},
function(a){return!!a.ActiveXObject},
function(a){return!!a.chrome},
function(a){return!!a.navigator.serviceWorker},
function(a){return!!a.opera},
function(a){return!!a.sidebar},
function(){return!+"\v1"},
function(){return ql(1)},
function(a){return!a.ActiveXObject},
function(a){return"-ms-ime-align"in a.document.documentElement.style},
function(a){return"-ms-scroll-limit"in a.document.documentElement.style},
function(a){return"-webkit-font-feature-settings"in a.document.body.style},
function(){return ql(2)},
function(a){return"ActiveXObject"in a},
function(a){return"MozAppearance"in a.document.documentElement.style},
function(a){return"_phantom"in a},
function(a){return"callPhantom"in a},
function(a){return"content"in a.document.createElement("template")},
function(a){return"getEntriesByType"in a.performance},
function(){return ql(3)},
function(a){return"image-rendering"in a.document.body.style},
function(a){return"object-fit"in a.document.body.style},
function(a){return"open"in a.document.createElement("details")},
function(a){return"orientation"in a.screen},
function(a){return"performance"in a},
function(a){return"shape-image-threshold"in a.document.body.style},
function(){return ql(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return sl},
function(){return tl},
function(){return ql(5)},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="-webkit-min-content";a.style.width="min-content";return"1px"!=a.style.width},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="calc(1px - 1px)";a.style.width="-webkit-calc(1px - 1px)";return"1px"!=a.style.width},
function(){var a=!1;eval('var DummyFunction1 = function(x){ "use strict"; var a = 12; b = a + x*35; }');try{DummyFunction1()}catch(b){a=!0}return a},
function(){var a=!1;try{DummyFunction2()}catch(b){a=!0}return a},
function(){return!1},
function(){return ql(6)},
function(a){var b=a.document.createElement("canvas");b.width=b.height=1;b=b.getContext("2d");b.globalCompositeOperation="multiply";b.fillStyle="rgb(0,255,255)";b.fillRect(0,0,1,1);b.fill();b.fillStyle="rgb(255,255,0)";b.fillRect(0,0,1,1);b.fill();b=b.getImageData(0,0,1,1).data;return b[0]==b[2]&&b[1]==b[3]||ol(a.navigator.vibrate)},
function(a){a=a.document.createElement("canvas");a.width=a.height=1;a=a.getContext("2d");a.globalCompositeOperation="multiply";a.fillStyle="rgb(0,255,255)";a.fillRect(0,0,1,1);a.fill();a.fillStyle="rgb(255,255,0)";a.fillRect(0,0,1,1);a.fill();a=a.getImageData(0,0,1,1).data;return a[0]==a[2]&&a[1]==a[3]},
function(a){a=a.document.createElement("div");return ol(a.matches)},
function(a){a=a.document.createElement("input");a.setAttribute("type","range");return"text"!==a.type},
function(a){return a.CSS.supports("image-rendering","pixelated")},
function(a){return a.CSS.supports("object-fit","contain")},
function(){return ql(7)},
function(a){return a.CSS.supports("object-fit","inherit")},
function(a){return a.CSS.supports("shape-image-threshold","0.9")},
function(a){return a.CSS.supports("word-break","keep-all")},
function(){return eval("1 == [for (item of [1,2,3]) item][0]")},
function(a){return ol(a.CSS.supports)},
function(){return ol(Intl.Collator)},
function(a){return ol(a.document.createElement("dialog").show)},
function(){return ql(8)},
function(a){return ol(a.document.createElement("div").animate([{transform:"scale(1)",easing:"ease-in"},{transform:"scale(1.3)",easing:"ease-in"}],{duration:1300,iterations:1}).reverse)},
function(a){return ol(a.document.createElement("div").animate)},
function(a){return ol(a.document.documentElement.webkitRequestFullScreen)},
function(a){return ol(a.navigator.getBattery)},
function(a){return ol(a.navigator.permissions.query)},
function(){return!1},
function(){return ql(9)},
function(){return ol(webkitRequestAnimationFrame)},
function(a){return ol(a.BroadcastChannel.call)},
function(a){return ol(a.FontFace)},
function(a){return ol(a.Gamepad)},
function(){return ql(10)},
function(a){return ol(a.MutationEvent)},
function(a){return ol(a.MutationObserver)},
function(a){return ol(a.crypto.getRandomValues)},
function(a){return ol(a.document.body.createShadowRoot)},
function(a){return ol(a.document.body.webkitCreateShadowRoot)},
function(a){return ol(a.fetch)},
function(){return ql(11)},
function(a){return ol(a.navigator.serviceWorker.register)},
function(a){return ol(a.navigator.webkitGetGamepads)},
function(a){return ol(a.speechSynthesis.speak)},
function(a){return ol(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return ql(12)},
function(a){return a.CSS.supports("cursor","grab")},
function(a){return a.CSS.supports("cursor","zoom-in")},
function(a){return a.CSS.supports("image-orientation","270deg")},
function(){return ql(13)},
function(a){return a.CSS.supports("position","sticky")},
function(a){return void 0===a.document.createElement("style").scoped},
function(a){return a.performance.getEntriesByType("resource")instanceof Array},
function(){return"undefined"==typeof InstallTrigger},
function(){return"object"==typeof(new Intl.Collator).resolvedOptions()},
function(a){return"boolean"==typeof a.navigator.onLine},
function(){return ql(14)},
function(a){return"undefined"==typeof a.navigator.IW},
function(a){return"number"==typeof a.performance.now()},
function(){return 0==(new Uint16Array(1))[0]},
function(a){return-1==a.ActiveXObject.toString().indexOf("native")},
function(a){return-1==Object.prototype.toString.call(a.HTMLElement).indexOf("Constructor")}],Vca=[function(a){a=a.document.createElement("div");
var b=null,c=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];try{a.style.behavior="url(#default#clientcaps)"}catch(e){}for(var d=0;d<c.length;d++){try{b=a.getComponentVersion(c[d],"componentid").replace(/,/g,".")}catch(e){}if(b)return b.split(".")[0]}return!1},
function(){return(new Date).getTimezoneOffset()},
function(a){return(a.innerWidth||a.document.documentElement.clientWidth||a.document.body.clientWidth)/(a.innerHeight||a.document.documentElement.clientHeight||a.document.body.clientHeight)},
function(a){return(a.outerWidth||a.document&&a.document.body&&a.document.body.offsetWidth)/(a.outerHeight||a.document&&a.document.body&&a.document.body.offsetHeight)},
function(a){return a.screen.availWidth/a.screen.availHeight},
function(a){return a.screen.width/a.screen.height}],Wca=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.Ya(vl,ul);vl.prototype.reset=function(){this.u[0]=1732584193;this.u[1]=4023233417;this.u[2]=2562383102;this.u[3]=271733878;this.D=this.C=0};
vl.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.B,d=this.F,e=this.C,f=0;f<b;){if(0==e)for(;f<=c;)wl(this,a,f),f+=this.B;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.B){wl(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.B){wl(this,d);e=0;break}}this.C=e;this.D+=b};
vl.prototype.digest=function(){var a=Array((56>this.C?this.B:2*this.B)-this.C);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.D;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.u[b]>>>d&255;return a};g.u(xl,Pk);xl.prototype.u=function(a){var b=Pk.prototype.u.call(this,a);var c=pl=g.A();var d=ql(5);c=(sl?!d:d)?c|2:c&-3;d=ql(2);c=(tl?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.B||(this.B=Xca());b.F=this.B;b.I=Ok(a,mBa,c,"h",yl("kArwaWEsTs"));b.D=Ok(a,oBa,{},"h",yl("b96YPMzfnx"));b.B=Ok(a,pBa,{},"h",yl("yb8Wev6QDg"));return b};zl.prototype.u=function(){return g.Na(this.B)};g.u(Al,zl);Al.prototype.u=function(a){if(!a.Bn)return zl.prototype.u.call(this,a);var b=this.D[a.Bn];if(b)return function(c,d,e){b.B(c,d,e)};
Qh(393,Error());return null};g.u(Bl,bl);g.k=Bl.prototype;g.k.ds=function(a,b){var c=this,d=Pj.getInstance();if(null!=d.u)switch(d.u.getName()){case "nis":var e=ada(this,a,b);break;case "gsv":e=$ca(this,a,b);break;case "exc":e=bda(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Qca(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.bi()&&(e.Z==g.Oa&&(e.Z=function(f){return c.YC(f)}),Zca(this,e,b));
return e};
g.k.YC=function(a){a.B=0;a.ea=0;if("h"==a.F||"n"==a.F){var b;uh.getInstance();if(a.Bn&&El(this)){var c=this.N[a.Bn];c?b=function(e){return c.u(e)}:null!==c&&Qh(379,Error())}else b=g.Na("ima.common.getVideoMetadata");
if("function"===typeof b)try{var d=b(a.Ke)}catch(e){a.B|=4}else a.B|=2}else if("b"==a.F)if(b=g.Na("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{d=b(a.Ke)}catch(e){a.B|=4}else a.B|=2;else if("ml"==a.F)if(b=g.Na("ima.common.getVideoMetadata"),"function"===typeof b)try{d=b(a.Ke)}catch(e){a.B|=4}else a.B|=2;else a.B|=1;a.B||(void 0===d?a.B|=8:null===d?a.B|=16:g.Wb(d)?a.B|=32:null!=d.errorCode&&(a.ea=d.errorCode,a.B|=64));null==d&&(d={});Rca(d,a);di(d.volume)&&di(void 0)&&(d.volume*=NaN);
return d};
g.k.PA=function(){if(El(this))return new Al("ima.common.triggerExternalActivityEvent",this.C,this.N);var a=cda(this);return null!=a?new zl(a,this.C):null};
g.k.jy=function(a){!a.u&&a.cn&&il(this,a,"overlay_unmeasurable_impression")&&(a.u=!0)};
g.k.EF=function(a){a.SF&&(a.Gl()?il(this,a,"overlay_viewable_end_of_session_impression"):il(this,a,"overlay_unviewable_impression"),a.SF=!1)};
g.k.RB=function(){};
g.k.ry=function(){};
g.k.Xp=function(a,b,c,d){a=bl.prototype.Xp.call(this,a,b,c,d);this.F&&(b=this.I,null==a.I&&(a.I=new Wba),b.u[a.Ke]=a.I,a.I.F=kBa);return a};
g.k.Co=function(a){a&&1==a.bi()&&this.F&&delete this.I.u[a.Ke];return bl.prototype.Co.call(this,a)};
Pa(Bl);var Cl=new Nk;Cl.F="stopped";Cl.u="stopped";Cl.C="stopped";Cl.I="stopped";Cl.D="stopped";Cl.B="stopped";Object.freeze(Cl);var qBa=Mh(193,Gl,ll);g.Ia("Goog_AdSense_Lidar_sendVastEvent",qBa,void 0);var rBa=Ph(194,function(a,b){b=void 0===b?{}:b;var c=Dl(Bl.getInstance(),a,b);return Fl(c)});
g.Ia("Goog_AdSense_Lidar_getViewability",rBa,void 0);var sBa=Mh(195,function(){return oh()},void 0);
g.Ia("Goog_AdSense_Lidar_getUrlSignalsArray",sBa,void 0);var tBa=Ph(196,function(){return g.Fj(oh())});
g.Ia("Goog_AdSense_Lidar_getUrlSignalsList",tBa,void 0);var hea=(new Date).getTime();var bm=!g.ye||g.ae(9),uBa=g.ye&&!g.$d("9");!g.Ae||g.$d("528");qg&&g.$d("1.9b")||g.ye&&g.$d("8")||g.rg&&g.$d("9.5")||g.Ae&&g.$d("528");qg&&!g.$d("8")||g.ye&&g.$d("9");var kda=function(){if(!g.v.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{g.v.addEventListener("test",g.Oa,b),g.v.removeEventListener("test",g.Oa,b)}catch(c){}return a}();g.Ll.prototype.stopPropagation=function(){this.u=!0};
g.Ll.prototype.preventDefault=function(){this.defaultPrevented=!0};var vxa;vxa=g.Ae?"webkitAnimationEnd":g.rg?"oanimationend":"animationend";g.Ya(Ml,g.Ll);var vBa={2:"touch",3:"pen",4:"mouse"};
Ml.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;e?qg&&(Vd(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==a.clientX?
a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:vBa[a.pointerType]||"";this.state=a.state;this.B=a;a.defaultPrevented&&this.preventDefault()};
Ml.prototype.stopPropagation=function(){Ml.jd.stopPropagation.call(this);this.B.stopPropagation?this.B.stopPropagation():this.B.cancelBubble=!0};
Ml.prototype.preventDefault=function(){Ml.jd.preventDefault.call(this);var a=this.B;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,uBa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Nl="closure_listenable_"+(1E6*Math.random()|0),hda=0;Ql.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.u++);var h=Tl(a,b,d,e);-1<h?(b=a[h],c||(b.fr=!1)):(b=new ida(b,this.src,f,!!d,e),b.fr=c,a.push(b));return b};
Ql.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Tl(e,b,c,d);return-1<b?(Pl(e[b]),g.qb(e,b),0==e.length&&(delete this.listeners[a],this.u--),!0):!1};
Ql.prototype.Ro=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Tl(a,b,c,d));return-1<e?a[e]:null};var Zl="closure_lm_"+(1E6*Math.random()|0),em={},am=0,hm="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Ya(g.im,g.B);g.im.prototype[Nl]=!0;g.k=g.im.prototype;g.k.addEventListener=function(a,b,c,d){Vl(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){cm(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.ka;if(b){var c=[];for(var d=1;b;b=b.ka)c.push(b),++d}b=this.za;d=a.type||a;if("string"===typeof a)a=new g.Ll(a,b);else if(a instanceof g.Ll)a.target=a.target||b;else{var e=a;a=new g.Ll(d,b);g.bc(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=jm(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=jm(h,d,!0,a)&&e,a.u||(e=jm(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)h=a.currentTarget=c[f],e=jm(h,d,!1,a)&&e;return e};
g.k.aa=function(){g.im.jd.aa.call(this);if(this.C){var a=this.C,b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,Pl(d[e]);delete a.listeners[c];a.u--}}this.ka=null};
g.k.ua=function(a,b,c,d){return this.C.add(String(a),b,!1,c,d)};
g.k.gx=function(a,b,c,d){return this.C.add(String(a),b,!0,c,d)};
g.k.Eb=function(a,b,c,d){this.C.remove(String(a),b,c,d)};
g.k.Ro=function(a,b,c,d){return this.C.Ro(String(a),b,c,d)};km.prototype.get=function(){if(0<this.B){this.B--;var a=this.u;this.u=a.next;a.next=null}else a=this.C();return a};var nm,mda=g.db;var wm=new km(function(){return new qm},function(a){a.reset()});
pm.prototype.add=function(a,b){var c=wm.get();c.set(a,b);this.B?this.B.next=c:this.u=c;this.B=c};
pm.prototype.remove=function(){var a=null;this.u&&(a=this.u,this.u=this.u.next,this.u||(this.B=null),a.next=null);return a};
qm.prototype.set=function(a,b){this.u=a;this.scope=b;this.next=null};
qm.prototype.reset=function(){this.next=this.scope=this.u=null};var rm,sm=!1,tm=new pm;Am.prototype.reset=function(){this.context=this.onRejected=this.C=this.u=null;this.B=!1};
var Bm=new km(function(){return new Am},function(a){a.reset()});
zm.prototype.then=function(a,b,c){return Km(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
zm.prototype.$goog_Thenable=!0;zm.prototype.cancel=function(a){if(0==this.Ha){var b=new Qm(a);g.um(function(){Mm(this,b)},this)}};
zm.prototype.iR=function(a){this.Ha=0;ym(this,2,a)};
zm.prototype.jR=function(a){this.Ha=0;ym(this,3,a)};
zm.prototype.tI=function(){for(var a;a=Nm(this);)Om(this,a,this.Ha,this.Hk);this.Yv=!1};
var Sm=mm;g.Ya(Qm,$a);Qm.prototype.name="cancel";g.Ya(g.Tm,g.im);g.k=g.Tm.prototype;g.k.enabled=!1;g.k.Ua=null;g.k.setInterval=function(a){this.Ze=a;this.Ua&&this.enabled?(this.stop(),this.start()):this.Ua&&this.stop()};
g.k.Ne=function(){if(this.enabled){var a=g.A()-this.zC;0<a&&a<.8*this.Ze?this.Ua=this.yq.setTimeout(this.tA,this.Ze-a):(this.Ua&&(this.yq.clearTimeout(this.Ua),this.Ua=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.Ua||(this.Ua=this.yq.setTimeout(this.tA,this.Ze),this.zC=g.A())};
g.k.stop=function(){this.enabled=!1;this.Ua&&(this.yq.clearTimeout(this.Ua),this.Ua=null)};
g.k.aa=function(){g.Tm.jd.aa.call(this);this.stop();delete this.yq};g.k=g.Wm.prototype;g.k.mf=function(){Ym(this);for(var a=[],b=0;b<this.u.length;b++)a.push(this.B[this.u[b]]);return a};
g.k.xg=function(){Ym(this);return this.u.concat()};
g.k.isEmpty=function(){return 0==this.C};
g.k.clear=function(){this.B={};this.Pk=this.C=this.u.length=0};
g.k.remove=function(a){return Xm(this.B,a)?(delete this.B[a],this.C--,this.Pk++,this.u.length>2*this.C&&Ym(this),!0):!1};
g.k.get=function(a,b){return Xm(this.B,a)?this.B[a]:b};
g.k.set=function(a,b){Xm(this.B,a)||(this.C++,this.u.push(a),this.Pk++);this.B[a]=b};
g.k.forEach=function(a,b){for(var c=this.xg(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.k.clone=function(){return new g.Wm(this)};
g.k.Pi=function(a){Ym(this);var b=0,c=this.Pk,d=this,e=new $i;e.next=function(){if(c!=d.Pk)throw Error("The map has changed since the iterator was created");if(b>=d.u.length)throw aj;var f=d.u[b++];return a?f:d.B[f]};
return e};g.Zm.prototype.toString=function(){var a=[],b=this.F;b&&a.push(fn(b,wBa,!0),":");var c=this.u;if(c||"file"==b)a.push("//"),(b=this.N)&&a.push(fn(b,wBa,!0),"@"),a.push(ld(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,null!=c&&a.push(":",String(c));if(c=this.B)this.u&&"/"!=c.charAt(0)&&a.push("/"),a.push(fn(c,"/"==c.charAt(0)?xBa:yBa,!0));(c=this.C.toString())&&a.push("?",c);(c=this.I)&&a.push("#",fn(c,zBa));return a.join("")};
g.Zm.prototype.resolve=function(a){var b=this.clone(),c=!!a.F;c?g.$m(b,a.F):c=!!a.N;c?b.N=a.N:c=!!a.u;c?g.an(b,a.u):c=null!=a.D;var d=a.B;if(c)g.bn(b,a.D);else if(c=!!a.B){if("/"!=d.charAt(0))if(this.u&&!this.B)d="/"+d;else{var e=b.B.lastIndexOf("/");-1!=e&&(d=b.B.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=pc(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=
f[0])&&f.pop(),d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.B=d:c=""!==a.C.toString();c?cn(b,a.C.clone()):c=!!a.I;c&&(b.I=a.I);return b};
g.Zm.prototype.clone=function(){return new g.Zm(this)};
var wBa=/[#\/\?@]/g,yBa=/[#\?:]/g,xBa=/[#\?]/g,tda=/[#\?@]/g,zBa=/#/g;g.k=en.prototype;g.k.add=function(a,b){hn(this);this.C=null;a=jn(this,a);var c=this.u.get(a);c||this.u.set(a,c=[]);c.push(b);this.B=this.B+1;return this};
g.k.remove=function(a){hn(this);a=jn(this,a);return Xm(this.u.B,a)?(this.C=null,this.B=this.B-this.u.get(a).length,this.u.remove(a)):!1};
g.k.clear=function(){this.u=this.C=null;this.B=0};
g.k.isEmpty=function(){hn(this);return 0==this.B};
g.k.forEach=function(a,b){hn(this);this.u.forEach(function(c,d){g.Gb(c,function(e){a.call(b,e,d,this)},this)},this)};
g.k.xg=function(){hn(this);for(var a=this.u.mf(),b=this.u.xg(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.k.mf=function(a){hn(this);var b=[];if("string"===typeof a)kn(this,a)&&(b=g.tb(b,this.u.get(jn(this,a))));else{a=this.u.mf();for(var c=0;c<a.length;c++)b=g.tb(b,a[c])}return b};
g.k.set=function(a,b){hn(this);this.C=null;a=jn(this,a);kn(this,a)&&(this.B=this.B-this.u.get(a).length);this.u.set(a,[b]);this.B=this.B+1;return this};
g.k.get=function(a,b){if(!a)return b;var c=this.mf(a);return 0<c.length?String(c[0]):b};
g.k.toString=function(){if(this.C)return this.C;if(!this.u)return"";for(var a=[],b=this.u.xg(),c=0;c<b.length;c++){var d=b[c],e=ld(d);d=this.mf(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+ld(d[f]));a.push(h)}}return this.C=a.join("&")};
g.k.clone=function(){var a=new en;a.C=this.C;this.u&&(a.u=this.u.clone(),a.B=this.B);return a};var mn="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),vda=/\bocr\b/;var wda=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;pn.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.B[a]!=b&&(this.B[a]=b,this.u=-1)};
pn.prototype.get=function(a){return!!this.B[a]};g.Ya(g.qn,g.B);g.k=g.qn.prototype;g.k.start=function(){this.stop();this.D=!1;var a=rn(this),b=sn(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.u=Vl(this.B,"MozBeforePaint",this.C),this.B.mozRequestAnimationFrame(null),this.D=!0):this.u=a&&b?a.call(this.B,this.C):this.B.setTimeout(laa(this.C),20)};
g.k.xb=function(){this.isActive()||this.start()};
g.k.stop=function(){if(this.isActive()){var a=rn(this),b=sn(this);a&&!b&&this.B.mozRequestAnimationFrame?dm(this.u):a&&b?b.call(this.B,this.u):this.B.clearTimeout(this.u)}this.u=null};
g.k.wg=function(){this.isActive()&&(this.stop(),this.KB())};
g.k.isActive=function(){return null!=this.u};
g.k.KB=function(){this.D&&this.u&&dm(this.u);this.u=null;this.I.call(this.F,g.A())};
g.k.aa=function(){this.stop();g.qn.jd.aa.call(this)};g.Ya(g.H,g.B);g.k=g.H.prototype;g.k.Vo=0;g.k.aa=function(){g.H.jd.aa.call(this);this.stop();delete this.u;delete this.B};
g.k.start=function(a){this.stop();this.Vo=g.Um(this.C,void 0!==a?a:this.Ze)};
g.k.xb=function(a){this.isActive()||this.start(a)};
g.k.stop=function(){this.isActive()&&g.v.clearTimeout(this.Vo);this.Vo=0};
g.k.wg=function(){this.isActive()&&g.tn(this)};
g.k.isActive=function(){return 0!=this.Vo};
g.k.LB=function(){this.Vo=0;this.u&&this.u.call(this.B)};g.Ya(un,ul);un.prototype.reset=function(){this.u[0]=1732584193;this.u[1]=4023233417;this.u[2]=2562383102;this.u[3]=271733878;this.u[4]=3285377520;this.D=this.C=0};
un.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.B,d=0,e=this.I,f=this.C;d<b;){if(0==f)for(;d<=c;)vn(this,a,d),d+=this.B;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.B){vn(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.B){vn(this,e);f=0;break}}this.C=f;this.D+=b}};
un.prototype.digest=function(){var a=[],b=8*this.D;56>this.C?this.update(this.F,56-this.C):this.update(this.F,this.B-(this.C-56));for(var c=this.B-1;56<=c;c--)this.I[c]=b&255,b/=256;vn(this,this.I);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.u[c]>>d&255,++b;return a};g.Ya(g.Dn,g.im);g.k=g.Dn.prototype;g.k.Gb=function(){return 1==this.Ha};
g.k.Lt=function(){this.tg("begin")};
g.k.Lp=function(){this.tg("end")};
g.k.Mf=function(){this.tg("finish")};
g.k.tg=function(a){this.dispatchEvent(a)};var ABa=eb(function(){if(g.ye)return g.$d("10.0");var a=g.Fe("DIV"),b=g.Ae?"-webkit":qg?"-moz":g.ye?"-ms":g.rg?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!ZAa.test("div"))throw Error("");if("DIV"in aBa)throw Error("");c=null;var d="";if(b)for(h in b)if(Object.prototype.hasOwnProperty.call(b,h)){if(!ZAa.test(h))throw Error("");var e=b[h];if(null!=e){var f=h;if(e instanceof hc)e=jc(e);else if("style"==f.toLowerCase()){if(!g.Sa(e))throw Error("");
e instanceof Nc||(e=Sc(e));e=Oc(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in $Aa)if(e instanceof mc)e=nc(e).toString();else if(e instanceof g.Fc)e=g.Gc(e);else if("string"===typeof e)e=g.Kc(e).zg();else throw Error("");}e.jj&&(e=e.zg());f=f+'="'+zc(String(e))+'"';d+=" "+f}}var h="<div"+d;d=void 0;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===UAa.div?h+=">":(c=Haa(d),h+=">"+g.cd(c).toString()+"</div>",c=c.u());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=dd(h,c);g.hd(a,
b);return""!=g.sg(a.firstChild,"transition")});g.Ya(En,g.Dn);g.k=En.prototype;g.k.play=function(){if(this.Gb())return!1;this.Lt();this.tg("play");this.startTime=g.A();this.Ha=1;if(ABa())return g.E(this.u,this.K),this.D=g.Um(this.iQ,void 0,this),!0;this.ww(!1);return!1};
g.k.iQ=function(){g.Eg(this.u);yda(this.u,this.I);g.E(this.u,this.B);this.D=g.Um((0,g.z)(this.ww,this,!1),1E3*this.F)};
g.k.stop=function(){this.Gb()&&this.ww(!0)};
g.k.ww=function(a){g.E(this.u,"transition","");g.v.clearTimeout(this.D);g.E(this.u,this.B);this.endTime=g.A();this.Ha=0;a?this.tg("stop"):this.Mf();this.Lp()};
g.k.aa=function(){this.stop();En.jd.aa.call(this)};
g.k.pause=function(){};var zda={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 Dda=Gn("getPropertyValue"),Eda=Gn("setProperty");var Cda={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Kn.prototype.clone=function(){return new g.Kn(this.u,this.F,this.C,this.I,this.D,this.K,this.B,this.N)};g.Mn.prototype.B=0;g.Mn.prototype.reset=function(){this.u=this.C=this.D;this.B=0};
g.Mn.prototype.getValue=function(){return this.C};On.prototype.clone=function(){return new On(this.start,this.end)};
On.prototype.getLength=function(){return this.end-this.start};var BBa=new WeakMap;(function(){if(BAa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Vc))?a[1]:"0"}return gD?(a=/10[_.][0-9_.]+/,(a=a.exec(g.Vc))?a[0].replace(/_/g,"."):"10"):g.lk?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Vc))?a[1]:""):bBa||cBa||dBa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Vc))?a[1].replace(/_/g,"."):""):""})();var Lda=function(){if(g.wB)return Pn(/Firefox\/([0-9.]+)/);if(g.ye||g.ar||g.rg)return Zd;if(g.eB)return Td()?Pn(/CriOS\/([0-9.]+)/):Pn(/Chrome\/([0-9.]+)/);if(g.sC&&!Td())return Pn(/Version\/([0-9.]+)/);if(SB||VF){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Vc);if(a)return a[1]+"."+a[2]}else if(g.KB)return(a=Pn(/Android\s+([0-9.]+)/))?a:Pn(/Version\/([0-9.]+)/);return""}();g.Ya(g.Rn,g.B);g.k=g.Rn.prototype;g.k.subscribe=function(a,b,c){var d=this.B[a];d||(d=this.B[a]=[]);var e=this.F;this.u[e]=a;this.u[e+1]=b;this.u[e+2]=c;this.F=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.B[a]){var d=this.u;if(a=g.jb(a,function(e){return d[e+1]==b&&d[e+2]==c}))return this.Al(a)}return!1};
g.k.Al=function(a){var b=this.u[a];if(b){var c=this.B[b];0!=this.D?(this.C.push(a),this.u[a+1]=g.Oa):(c&&g.rb(c,a),delete this.u[a],delete this.u[a+1],delete this.u[a+2])}return!!b};
g.k.V=function(a,b){var c=this.B[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.I)for(e=0;e<c.length;e++){var h=c[e];Mda(this.u[h+1],this.u[h+2],d)}else{this.D++;try{for(e=0,f=c.length;e<f;e++)h=c[e],this.u[h+1].apply(this.u[h+2],d)}finally{if(this.D--,0<this.C.length&&0==this.D)for(;c=this.C.pop();)this.Al(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.B[a];b&&(g.Gb(b,this.Al,this),delete this.B[a])}else this.u.length=0,this.B={}};
g.k.aa=function(){g.Rn.jd.aa.call(this);this.clear();this.C.length=0};g.Sn.prototype.set=function(a,b){void 0===b?this.u.remove(a):this.u.set(a,g.Fj(b))};
g.Sn.prototype.get=function(a){try{var b=this.u.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.Sn.prototype.remove=function(a){this.u.remove(a)};g.Ya(Tn,g.Sn);Tn.prototype.set=function(a,b){Tn.jd.set.call(this,a,Vn(b))};
Tn.prototype.B=function(a){a=Tn.jd.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Tn.prototype.get=function(a){if(a=this.B(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Ya(Wn,Tn);Wn.prototype.set=function(a,b,c){if(b=Vn(b)){if(c){if(c<g.A()){Wn.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.A()}Wn.jd.set.call(this,a,b)};
Wn.prototype.B=function(a,b){var c=Wn.jd.B.call(this,a);if(c)if(!b&&g.Xn(c))Wn.prototype.remove.call(this,a);else return c};g.Ya(g.Yn,Wn);g.Ya(Zn,Nda);Zn.prototype.clear=function(){var a=Vba(this.Pi(!0)),b=this;g.Gb(a,function(c){b.remove(c)})};g.Ya($n,Zn);g.k=$n.prototype;g.k.isAvailable=function(){if(!this.u)return!1;try{return this.u.setItem("__sak","1"),this.u.removeItem("__sak"),!0}catch(a){return!1}};
g.k.set=function(a,b){try{this.u.setItem(a,b)}catch(c){if(0==this.u.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.k.get=function(a){a=this.u.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.u.removeItem(a)};
g.k.Pi=function(a){var b=0,c=this.u,d=new $i;d.next=function(){if(b>=c.length)throw aj;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.u.clear()};
g.k.key=function(a){return this.u.key(a)};g.Ya(ao,$n);g.Ya(bo,$n);g.Ya(eo,Zn);var Oda={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},co=null;g.k=eo.prototype;g.k.isAvailable=function(){return!!this.u};
g.k.set=function(a,b){this.u.setAttribute(fo(a),b);go(this)};
g.k.get=function(a){a=this.u.getAttribute(fo(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.u.removeAttribute(fo(a));go(this)};
g.k.Pi=function(a){var b=0,c=this.u.XMLDocument.documentElement.attributes,d=new $i;d.next=function(){if(b>=c.length)throw aj;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.u.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);go(this)};g.Ya(ho,Zn);ho.prototype.set=function(a,b){this.B.set(this.u+a,b)};
ho.prototype.get=function(a){return this.B.get(this.u+a)};
ho.prototype.remove=function(a){this.B.remove(this.u+a)};
ho.prototype.Pi=function(a){var b=this.B.Pi(!0),c=this,d=new $i;d.next=function(){for(var e=b.next();e.substr(0,c.u.length)!=c.u;)e=b.next();return a?e.substr(c.u.length):c.B.get(e)};
return d};jo.prototype.getKey=function(){return this.u};
jo.prototype.getValue=function(){return this.B};
jo.prototype.clone=function(){return new jo(this.u,this.B)};g.k=ko.prototype;g.k.remove=function(){var a=this.u,b=a.length,c=a[0];if(!(0>=b)){if(1==b)pb(a);else{a[0]=a.pop();a=0;b=this.u;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,h=2*a+2;f=h<d&&b[h].getKey()<b[f].getKey()?h:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.k.mf=function(){for(var a=this.u,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.xg=function(){for(var a=this.u,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
g.k.clone=function(){return new ko(this)};
g.k.isEmpty=function(){return g.ob(this.u)};
g.k.clear=function(){pb(this.u)};g.Ya(g.mo,ko);Pa(no);no.prototype.u=0;g.Ya(oo,g.Bf);g.Ya(po,g.Bf);var Pda=[2,13,14];po.prototype.getKey=function(){return g.Hf(this,3)};var qo=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};g.Ia("yt.config_",qo,void 0);var Bo={};var Co=[];var CBa,Jo,Mo;CBa=g.v.ytPubsubPubsubInstance||new g.Rn;Jo=g.v.ytPubsubPubsubSubscribedKeys||{};Mo=g.v.ytPubsubPubsubTopicToKeys||{};g.Lo=g.v.ytPubsubPubsubIsSynchronous||{};g.Rn.prototype.subscribe=g.Rn.prototype.subscribe;g.Rn.prototype.unsubscribeByKey=g.Rn.prototype.Al;g.Rn.prototype.publish=g.Rn.prototype.V;g.Rn.prototype.clear=g.Rn.prototype.clear;g.Ia("ytPubsubPubsubInstance",CBa,void 0);g.Ia("ytPubsubPubsubTopicToKeys",Mo,void 0);g.Ia("ytPubsubPubsubIsSynchronous",g.Lo,void 0);
g.Ia("ytPubsubPubsubSubscribedKeys",Jo,void 0);var Tda=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,Uda=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,Uo={};var cC={bU:"LIVING_ROOM_APP_MODE_UNSPECIFIED",XT:"LIVING_ROOM_APP_MODE_MAIN",VT:"LIVING_ROOM_APP_MODE_KIDS",ZT:"LIVING_ROOM_APP_MODE_MUSIC",aU:"LIVING_ROOM_APP_MODE_UNPLUGGED",UT:"LIVING_ROOM_APP_MODE_GAMING"},uAa={LU:"PLAYBACK_TYPE_UNKNOWN",FU:"PLAYBACK_TYPE_APPLICATION",EU:"PLAYBACK_TYPE_ADS",JU:"PLAYBACK_TYPE_REMOTE",KU:"PLAYBACK_TYPE_SECONDARY_CAMERA",IU:"PLAYBACK_TYPE_PREROLL_INTERSTITIAL",HU:"PLAYBACK_TYPE_POSTROLL_INTERSTITIAL",GU:"PLAYBACK_TYPE_MIDROLL_INTERSTITIAL"};var DBa=0,Vo=g.Ae?"webkit":qg?"moz":g.ye?"ms":g.rg?"o":"",EBa=g.Na("ytDomDomGetNextId")||function(){return++DBa};
g.Ia("ytDomDomGetNextId",EBa,void 0);var Xda={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};Yo.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Yo.prototype.kC=function(){return this.event?!1===this.event.returnValue:!1};
Yo.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Yo.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var $o=g.v.ytEventsEventsListeners||{};g.Ia("ytEventsEventsListeners",$o,void 0);var ap=g.v.ytEventsEventsCounter||{count:0};g.Ia("ytEventsEventsCounter",ap,void 0);var FBa=eb(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),bp=eb(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var Rw=window.ytcsi&&window.ytcsi.now?window.ytcsi.now:window.performance&&window.performance.timing&&window.performance.now&&window.performance.timing.navigationStart?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};g.Ya(np,g.B);np.prototype.X=function(a){void 0===a.u&&Zo(a);var b=a.u;void 0===a.B&&Zo(a);this.u=new g.fe(b,a.B)};
np.prototype.dk=function(){return this.u||new g.fe};
np.prototype.K=function(){if(this.u){var a=Rw();if(0!=this.D){var b=this.I,c=this.u,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.D);this.B[this.C]=.5<Math.abs((d-this.F)/this.F)?1:0;for(c=b=0;4>c;c++)b+=this.B[c]||0;3<=b&&this.P();this.F=d}this.D=a;this.I=this.u;this.C=(this.C+1)%4}};
np.prototype.aa=function(){window.clearInterval(this.W);g.dp(this.N)};g.u(rp,aea);rp.prototype.start=function(){var a=g.Na("yt.scheduler.instance.start");a&&a()};
rp.prototype.pause=function(){var a=g.Na("yt.scheduler.instance.pause");a&&a()};
Pa(rp);rp.getInstance();var yp={};var k1;k1=window;g.N=k1.ytcsi&&k1.ytcsi.now?k1.ytcsi.now:k1.performance&&k1.performance.timing&&k1.performance.now&&k1.performance.timing.navigationStart?function(){return k1.performance.timing.navigationStart+k1.performance.now()}:function(){return(new Date).getTime()};var cea=g.vo("initial_gel_batch_timeout",1E3),Mp=Math.pow(2,16)-1,Np=null,Lp=0,Cp=void 0,Ap=0,Bp=0,Pp=0,Gp=!0,Dp=g.v.ytLoggingTransportGELQueue_||new Map;g.Ia("ytLoggingTransportGELQueue_",Dp,void 0);var Jp=g.v.ytLoggingTransportTokensToCttTargetIds_||{};g.Ia("ytLoggingTransportTokensToCttTargetIds_",Jp,void 0);var Op=g.v.ytLoggingGelSequenceIdObj_||{};g.Ia("ytLoggingGelSequenceIdObj_",Op,void 0);var fea={q:!0,search_query:!0};var dq=new function(){var a=window.document;this.u=window;this.B=a};
g.Ia("yt.ads_.signals_.getAdSignalsString",function(a){return Up(fq(a))},void 0);var gq="XMLHttpRequest"in g.v?function(){return new XMLHttpRequest}:null;var jq={Authorization:"AUTHORIZATION","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"},kea="app debugcss debugjs expflag force_ad_params force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address client_dev_root_url".split(" "),
qq=!1,uG=kq;yq.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.u)try{this.u.set(a,b,g.A()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Fj(b))}catch(f){return}else e=escape(b);g.vq(a,e,c,this.B)};
yq.prototype.get=function(a,b){var c=void 0,d=!this.u;if(!d)try{c=this.u.get(a)}catch(e){d=!0}if(d&&(c=g.wq(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
yq.prototype.remove=function(a){this.u&&this.u.remove(a);g.xq(a,"/",this.B)};var rU={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};new g.im;Cq.all=function(a){return new Cq(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={qm:0};f.qm<a.length;f={qm:f.qm},++f.qm)Cq.resolve(a[f.qm]).then(function(h){return function(l){d[h.qm]=l;e--;0===e&&b(d)}}(f))["catch"](function(h){c(h)})})};
Cq.resolve=function(a){return new Cq(function(b,c){a instanceof Cq?a.then(b,c):b(a)})};
Cq.reject=function(a){return new Cq(function(b,c){c(a)})};
Cq.prototype.then=function(a,b){var c=this,d=null!==a&&void 0!==a?a:sea,e=null!==b&&void 0!==b?b:rea;return new Cq(function(f,h){"PENDING"===c.state.status?(c.u.push(function(){Eq(c,c,d,f,h)}),c.onRejected.push(function(){Fq(c,c,e,f,h)})):"FULFILLED"===c.state.status?Eq(c,c,d,f,h):"REJECTED"===c.state.status&&Fq(c,c,e,f,h)})};
Cq.prototype["catch"]=function(a){return this.then(void 0,a)};g.u(Iq,Error);var Mq=[],Jq;var l1={},wea=(l1.AUTH_INVALID="No user identifier specified.",l1.EXPLICIT_ABORT="Transaction was explicitly aborted.",l1.IDB_NOT_SUPPORTED="IndexedDB is not supported.",l1.MISSING_OBJECT_STORE="Object store not created.",l1.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.",l1.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",l1.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",l1);g.u(Pq,Iq);g.u(Qq,Pq);g.k=Rq.prototype;g.k.add=function(a,b,c){return Tq(this,[a],"readwrite",function(d){return Yq(d,a).add(b,c)})};
g.k.clear=function(a){return Tq(this,[a],"readwrite",function(b){return Yq(b,a).clear()})};
g.k.close=function(){var a;this.B.close();(null===(a=this.options)||void 0===a?0:a.closed)&&this.options.closed()};
g.k.count=function(a,b){return Tq(this,[a],"readonly",function(c){return Yq(c,a).count(b)})};
g.k["delete"]=function(a,b){return Tq(this,[a],"readwrite",function(c){return Yq(c,a)["delete"](b)})};
g.k.get=function(a,b){return Tq(this,[a],"readwrite",function(c){return Yq(c,a).get(b)})};
g.k=Vq.prototype;g.k.add=function(a,b){return Hq(this.u.add(a,b))};
g.k.clear=function(){return Hq(this.u.clear()).then(function(){})};
g.k.count=function(a){return Hq(this.u.count(a))};
g.k["delete"]=function(a){return a instanceof IDBKeyRange?Aea(this,a):Hq(this.u["delete"](a))};
g.k.get=function(a){return Hq(this.u.get(a))};
g.k.index=function(a){return new Zq(this.u.index(a))};
g.k.getName=function(){return this.u.name};
Sq.prototype.abort=function(){this.u.abort();this.aborted=!0;throw new Pq("EXPLICIT_ABORT");};
Sq.prototype.commit=function(){var a=this.u;a.commit&&!this.aborted&&a.commit()};
Zq.prototype.count=function(a){return Hq(this.u.count(a))};
Zq.prototype.get=function(a){return Hq(this.u.get(a))};
Zq.prototype.getKey=function(a){return Hq(this.u.getKey(a))};
g.k=$q.prototype;g.k.advance=function(a){this.cursor.advance(a);return Wq(this.request)};
g.k["continue"]=function(a){this.cursor["continue"](a);return Wq(this.request)};
g.k["delete"]=function(){return Hq(this.cursor["delete"]()).then(function(){})};
g.k.getKey=function(){return this.cursor.key};
g.k.getValue=function(){return this.cursor.value};
g.k.update=function(a){return Hq(this.cursor.update(a))};var br,dr,Eea=["getAll","getAllKeys","getKey","openKeyCursor"],Fea=["getAll","getAllKeys","getKey","openKeyCursor"];var GBa=g.vo("network_polling_interval",3E4);g.u(fr,g.im);fr.prototype.B=function(){var a=this;pp(function(){er()?(!1===a.u&&g.M(Error("NetworkStatusManager missed online event.")),a.u=!0,a.F&&a.F()):(!0===a.u&&g.M(Error("NetworkStatusManager missed offline event.")),a.u=!1,a.D&&a.D());a.B()},GBa)};g.jr.prototype.isReady=function(){!this.Gf&&tq()&&(this.Gf=g.Ip());return!!this.Gf};var Lea=[{KC:function(a){return"Cannot read property '"+a.key+"'"},
Px:{TypeError:[{Ig:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Ig:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Ig:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,groups:["value","key"]},{Ig:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,
groups:["key"]},{Ig:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]}],Error:[{Ig:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}]}},{KC:function(a){return"Cannot call '"+a.key+"'"},
Px:{TypeError:[{Ig:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Ig:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Ig:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Ig:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Ig:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]},
{Ig:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}}];var qr;var Mea=new g.Rn;var pr=new Set,mr=0,Nea=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];rr.prototype.initialize=function(a,b,c,d,e,f){var h=this;f=void 0===f?!1:f;b?(this.qd=!0,g.So(b,function(){h.qd=!1;if(window.botguard)sr(h,c,d,f);else{var l=To(b),m=document.getElementById(l);m&&(Ro(l),m.parentNode.removeChild(m));g.lr(new Iq("Unable to load Botguard","from "+b))}},e)):a&&(e=g.Fe("SCRIPT"),e.textContent=a,e.nonce=Ma(),document.head.appendChild(e),document.head.removeChild(e),window.botguard?sr(this,c,d,f):g.lr(Error("Unable to load Botguard from JS")))};
rr.prototype.Dd=function(){return!!this.u};
rr.prototype.dispose=function(){this.u=null};var Qea=[],vr=!1;g.u(xr,$a);Ar.prototype.then=function(a,b,c){return 1===this.Ha&&a?(a=a.call(c,this.u),xm(a)?a:Cr(a)):2===this.Ha&&b?(a=b.call(c,this.u),xm(a)?a:Br(a)):this};
Ar.prototype.getValue=function(){return this.u};
Ar.prototype.$goog_Thenable=!0;g.u(Er,$a);Er.prototype.name="BiscottiError";g.u(Dr,$a);Dr.prototype.name="BiscottiMissingError";var Gr={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Fr=null;var Lr=g.Na("ytglobal.prefsUserPrefsPrefs_")||{};g.Ia("ytglobal.prefsUserPrefsPrefs_",Lr,void 0);g.k=g.Mr.prototype;g.k.get=function(a,b){Qr(a);Pr(a);var c=void 0!==Lr[a]?Lr[a].toString():null;return null!=c?c:b?b:""};
g.k.set=function(a,b){Qr(a);Pr(a);if(null==b)throw Error("ExpectedNotNull");Lr[a]=b.toString()};
g.k.remove=function(a){Qr(a);Pr(a);delete Lr[a]};
g.k.save=function(){g.vq(this.u,this.dump(),63072E3)};
g.k.clear=function(){g.Xb(Lr)};
g.k.dump=function(){var a=[],b;for(b in Lr)a.push(b+"="+encodeURIComponent(String(Lr[b])));return a.join("&")};
Pa(g.Mr);var Tea=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),Vea=["/fashion","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ","/channel/UCTApTkbpcqiLL39WUlne4ig","/channel/UCW5PCzG3KQvbOX4zc3KY0lQ"];g.u(g.Wr,g.B);g.Wr.prototype.R=function(a,b,c,d,e){c=Do((0,g.z)(c,d||this.ra));c={target:a,name:b,callback:c};var f;e&&FBa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.I.push(c);return c};
g.Wr.prototype.Eb=function(a){for(var b=0;b<this.I.length;b++)if(this.I[b]==a){this.I.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
g.Wr.prototype.aa=function(){g.Yr(this);g.B.prototype.aa.call(this)};g.Ya(g.P,g.B);g.P.prototype.subscribe=function(a,b,c){return this.la()?0:this.nb.subscribe(a,b,c)};
g.P.prototype.unsubscribe=function(a,b,c){return this.la()?!1:this.nb.unsubscribe(a,b,c)};
g.P.prototype.yk=function(a){return this.la()?!1:this.nb.Al(a)};
g.P.prototype.V=function(a,b){return this.la()?!1:this.nb.V.apply(this.nb,arguments)};g.u(g.bs,g.P);g.k=g.bs.prototype;g.k.cancel=function(){this.D&&(this.D=!1,this.V("dragend",0,0,null));this.B&&(this.B=!1,this.V("hoverend",0,0,null),g.Yr(this.u),as(this))};
g.k.HD=function(a){g.Yr(this.u);cs(this,ds("move"),this.FD);cs(this,ds("out"),this.GD);cs(this,"touchstart",this.Uy);this.C&&cs(this,ds("down"),this.Dx);var b=g.ep(a);a=hp(a);this.B=!0;this.V("hoverstart",a.x,a.y,b);this.V("hovermove",a.x,a.y,b)};
g.k.FD=function(a){var b=g.ep(a);a=hp(a);if(this.F){var c=this.F;this.F=null;if(gp(c)==b&&ge(hp(c),a))return}this.V("hovermove",a.x,a.y,b)};
g.k.GD=function(a){var b=hp(a),c=gp(a);try{if(c&&g.Me(this.I,c)){this.F=a;this.V("hovermove",b.x,b.y,c);return}}catch(d){}g.Yr(this.u);as(this);this.B=!1;this.V("hoverend",b.x,b.y,c)};
g.k.fM=function(a){this.HD(a);this.Dx(a)};
g.k.Dx=function(a){if("number"!==typeof a.button||0==a.button){g.Yr(this.u);this.u.R(document,ds("move"),this.eM);this.u.R(document,ds("up"),this.jM);var b=g.ep(a);if(g.Ae)cs(this,"dragstart",this.nI);else if(g.ip(a),(g.rC||qg)&&b)a:{for(var c=b;c;){if(Qe(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.D=!0;a=hp(a);this.V("dragstart",a.x,a.y,b);this.V("dragmove",a.x,a.y,b)}};
g.k.nI=function(a){g.ip(a)};
g.k.eM=function(a){var b=g.ep(a);b==document&&(b=null);a=hp(a);this.V("hovermove",a.x,a.y,b);this.V("dragmove",a.x,a.y,b)};
g.k.jM=function(a){g.Yr(this.u);this.D=!1;var b=fp(a),c=g.ep(a);a=hp(a);b&&g.Me(this.I,b)?(cs(this,ds("move"),this.FD),cs(this,ds("out"),this.GD),cs(this,ds("down"),this.Dx),cs(this,"touchstart",this.Uy),this.V("dragend",a.x,a.y,c)):(as(this),this.B=!1,this.V("dragend",a.x,a.y,c),this.V("hoverend",a.x,a.y,c))};
g.k.Uy=function(a){var b=a.changedTouches[0];b&&(g.Yr(this.u),cs(this,"touchmove",this.dR),cs(this,"touchend",this.gG),cs(this,"touchcancel",this.gG),this.K=b.identifier,a=g.ep(a),this.B||(this.B=!0,this.V("hoverstart",b.pageX,b.pageY,a)),this.V("hovermove",b.pageX,b.pageY,a),this.C&&(this.D=!0,this.V("dragstart",b.pageX,b.pageY,a),this.V("dragmove",b.pageX,b.pageY,a)))};
g.k.dR=function(a){var b=es(this,a);b&&(this.C&&g.ip(a),a=g.ep(a),this.V("hovermove",b.pageX,b.pageY,a),this.C&&this.V("dragmove",b.pageX,b.pageY,a))};
g.k.gG=function(a){var b=es(this,a);if(b){g.Yr(this.u);as(this);this.B=!1;var c=g.ep(a);this.C&&(this.N||g.ip(a),this.D=!1,this.V("dragend",b.pageX,b.pageY,c));this.V("hoverend",b.pageX,b.pageY,c)}};
g.k.aa=function(){this.C&&(g.Ae&&this.I.removeAttribute("draggable"),this.I.style.touchAction="");g.Yr(this.u);g.P.prototype.aa.call(this)};fs.prototype.clone=function(){var a=new fs,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Qa(c)?g.Zb(c):c}return a};var Rwa,HBa,IBa,JBa,Iva,KBa,LBa,MBa;Rwa=["embedded_player"];HBa=["share/get_web_player_share_panel"];IBa=["feedback"];JBa=["notification/modify_channel_preference"];Iva=["player"];KBa=["browse/edit_playlist"];LBa=["subscription/subscribe"];MBa=["subscription/unsubscribe"];g.Kva=["next","unplugged/watch_next"];var gs=g.A().toString();var us=g.v.ytLoggingDocDocumentNonce_||is();g.Ia("ytLoggingDocDocumentNonce_",us,void 0);var Yea=1;ks.prototype.getAsJson=function(){var a={};void 0!==this.u.trackingParams?a.trackingParams=this.u.trackingParams:(a.veType=this.u.veType,void 0!==this.u.veCounter&&(a.veCounter=this.u.veCounter),void 0!==this.u.elementIndex&&(a.elementIndex=this.u.elementIndex));void 0!==this.u.dataElement&&(a.dataElement=this.u.dataElement.getAsJson());void 0!==this.u.youtubeData&&(a.youtubeData=this.u.youtubeData);return a};
ks.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
ks.prototype.isClientVe=function(){return!this.u.trackingParams&&!!this.u.veType};g.Ia("yt_logging_screen.getRootVeType",os,void 0);g.Ia("yt_logging_screen.getCurrentCsn",g.rs,void 0);g.Ia("yt_logging_screen.getCttAuthInfo",ts,void 0);g.Ia("yt_logging_screen.setCurrentScreen",vs,void 0);xs.prototype.toString=function(){return this.topic};var NBa=g.Na("ytPubsub2Pubsub2Instance")||new g.Rn;g.Rn.prototype.subscribe=g.Rn.prototype.subscribe;g.Rn.prototype.unsubscribeByKey=g.Rn.prototype.Al;g.Rn.prototype.publish=g.Rn.prototype.V;g.Rn.prototype.clear=g.Rn.prototype.clear;g.Ia("ytPubsub2Pubsub2Instance",NBa,void 0);var As=g.Na("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ia("ytPubsub2Pubsub2SubscribedKeys",As,void 0);var Cs=g.Na("ytPubsub2Pubsub2TopicToKeys")||{};g.Ia("ytPubsub2Pubsub2TopicToKeys",Cs,void 0);
var Bs=g.Na("ytPubsub2Pubsub2IsAsync")||{};g.Ia("ytPubsub2Pubsub2IsAsync",Bs,void 0);g.Ia("ytPubsub2Pubsub2SkipSubKey",null,void 0);g.u(Gs,ws);var afa=new xs("screen-created",Gs),Ls=[],Ms=0;var Vs;g.Rs=eb(function(){var a=new ao;return a.isAvailable()?new g.Yn(a):null});
Vs=eb(function(){var a=new bo;return a.isAvailable()?new g.Yn(a):null});var ct={},dfa=0;var oma={PS:1,YS:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};it.prototype.skip=function(a){this.u+=a};
it.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var dy=!1;var m1={},OBa=(m1.predictStart="predictStart",m1.start="start",m1["continue"]="continue",m1.stop="stop",m1),lga={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};var Lt=!1;var TS=function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a}();var du=!0;iu.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};ou.prototype.isEncrypted=function(){return this.u.info.isEncrypted()};
ou.prototype.isVideo=function(){return!!this.u.info.video};
ou.prototype.ck=function(){return this.u.ck(this)};g.k=zu.prototype;g.k.getLength=function(){return this.totalLength};
g.k.append=function(a){if(Au(this,a)){var b=this.u[this.u.length-1];this.u[this.u.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);Cu(this)}else this.u.push(a);this.totalLength+=a.length};
g.k.split=function(a){for(var b=new zu,c=new zu,d=g.q(this.u),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{ws:b,im:c}};
g.k.isFocused=function(a){return a>=this.C&&a<this.C+this.u[this.B].length};
g.k.focus=function(a){if(!this.isFocused(a)){for(a<this.C&&Cu(this);this.C+this.u[this.B].length<=a&&this.B<this.u.length;)this.C+=this.u[this.B].length,this.B+=1;this.D=void 0}};Ku.prototype.verify=function(a){if(this.info.ib!=this.u.getLength())return a.slength=this.info.ib.toString(),a.range=this.u.getLength().toString(),!1;if(1==this.info.u.info.containerType){if(8>this.info.ib||4==this.info.type)return!0;var b=Lu(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.ib&&1936286840==b;if(3==this.info.type&&0==this.info.C)return 1836019558==b||1936286840==
b||1937013104==b||1718909296==b||1701671783==b||1936419184==b}else if(2==this.info.u.info.containerType){if(4>this.info.ib||4==this.info.type)return!0;c=Lu(this).getUint32(0,!1);a.ebm=c.toString();if(3==this.info.type&&0==this.info.C)return 524531317==c||440786851==c}return!0};var Zu={ye:function(a,b){a.splice(0,b)},
N9:function(a){a.reverse()},
P4:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}};var nAa=/^https?:\/\/([^.]*\.moatads\.com\/|e[0-9]+\.yt\.srs\.doubleverify\.com|pagead2\.googlesyndication\.com\/pagead\/gen_204\?id=yt3p&sr=1&|pm\.adsafeprotected\.com\/youtube|pm\.test-adsafeprotected\.com\/youtube|youtube[0-9]+\.moatpixel\.com\/)/,cv=/^http:\/\/0\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.l2gfe\.[a-z0-9_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|^https:\/\/([a-z]+\.)?[0-9a-f]{1,63}\.sslproxy\.corp\.google\.com\/|^https:\/\/([a-z]+\.)?[a-z0-9\-]{1,63}\.demos\.corp\.google\.com\/|^https:\/\/[0-9a-f]{1,63}\.proxy\.googleprod\.com\/|^https?:\/\/((?:uytfe\.corp|dev-uytfe\.corp|uytfe\.sandbox)\.google\.com\/|([-\w]*www[-\w]*\.|[-\w]*web[-\w]*\.|[-\w]*canary[-\w]*\.|[-\w]*dev[-\w]*\.|[-\w]{1,3}\.)+youtube(-nocookie|kids)?\.com\/|([A-Za-z0-9-]{1,63}\.)*(youtube\.googleapis\.com)[.]?(:[0-9]+)?\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.c\.googlers\.com(:[0-9]+)?\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|(tv|tv-green-qa|tv-release-qa)\.youtube\.com\/|[A-Za-z0-9-]+\.prod\.google\.com(:[0-9]+)?\/|m?web-ppg\.corp\.google\.com\/)/,
oAa=/^https?:\/\/(www\.google\.com\/pagead\/xsul|www\.youtube\.com\/pagead\/slav)/,vfa=/^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|docs\.google\.com|drive\.google\.com|prod\.google\.com|plus\.google\.com|currents\.google\.com|mail\.google\.com|youtube\.com|youtube\-nocookie\.com|youtubekids\.com)[.]?(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$))/,
tfa=/^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|borg\.google\.com|prod\.google\.com|youtube\.com|youtubekids\.com)[.]?(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$))/,rfa=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|(ccp-lh\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(play-(ti-)?lh\.googleusercontent)|(gz0\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-(dev|qa)\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|plus\.google\.com|currents\.google\.com|video\.google\.com|youtube\.com|ytimg\.com|ytimg\.sandbox\.google\.com|chat\.google\.com)[.]?(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$)|s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/)/,
pAa=/^https?.*#ocr$|^https?:\/\/(aksecure\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|secure\-..\.imrworldwide\.com\/)/,sfa=/^https?:\/\/(googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion)|www\.google\.com\/(aclk|pagead\/conversion)|www\.googleadservices\.com\/(aclk|pagead\/(aclk|conversion))|www\.youtube\.com\/pagead\/conversion)/,qfa=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|(ccp-lh\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(play-(ti-)?lh\.googleusercontent)|(gz0\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-(dev|qa)\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|googlevideo\.com|prod\.google\.com|lh3\.photos\.google\.com|plus\.google\.com|currents\.google\.com|mail\.google\.com|youtube\.com|xfx7\.com|yt\.akamaized\.net|chat\.google\.com)[.]?(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$)|([A-Za-z0-9-]{1,63}\.)*c\.lh3(-d[a-gz]|-testonly)?\.(googleusercontent|photos\.google)\.com\/.*$)/,
mha=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|googlesyndication\.com|corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|borg\.google\.com|googleads\.g\.doubleclick\.net|prod\.google\.com|static\.doubleclick\.net|static\.googleadsserving\.cn|studioapi\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubekids\.com|ytimg\.com|ytimg\.sandbox\.google\.com)[.]?(:[0-9]+)?\/|lightbox-(demos|builder)\.appspot\.com\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer)/,
lha=/^https:\/\/([A-Za-z0-9-]{1,63}\.)*(crowdsource|datacompute)\.google\.com\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https:\/\/canvastester-3fd0b\.appspot\.com(\/|$)|^https:\/\/narrative-news-cast-receiver-d\.appspot\.com(\/|$)|^https:\/\/narrative-news-cast-receiver-f\.appspot\.com(\/|$)|^https:\/\/one\.google\.com(\/|$)|^https:\/\/www\.gstatic\.com\/aog_howto|^https:\/\/www\.gstatic\.com\/narrative_cast_receiver\/news|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleads\.g\.doubleclick\.net|googleplex\.com|play\.google\.com|prod\.google\.com|photos\.google\.com|get\.google\.com|class\.photos\.google\.com|plus\.google\.com|currents\.google\.com|books\.googleusercontent\.com|play\-books\-autopush\-sandbox\.googleusercontent\.com|play\-books\-canary\-sandbox\.googleusercontent\.com|play\-books\-internal\-sandbox\.googleusercontent\.com|play\-books\-staging\-sandbox\.googleusercontent\.com|blogger\.com|mail\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubekids\.com|vevo\.com|chat\.google\.com|meet\.google\.com|stadia\.google\.com|shoploop\.area120\.google\.com)[.]?(:[0-9]+)?(\/|$)|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$)|(www\.|encrypted\.)?google\.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))\/(search|webhp)\?|(www\.|encrypted\.)google\.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))\/?$|lightbox-(demos|builder)\.appspot\.com\/|s0\.2mdn\.net\/instream\/html5\/native\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris)/,
PBa=/^(https\:\/\/photos\.google\.com|https\:\/\/get\.google\.com|https\:\/\/class\.photos\.google\.com|https\:\/\/plus\.google\.com|https\:\/\/currents\.google\.com|https\:\/\/mail\.google\.com|https\:\/\/chat\.google\.com|https\:\/\/stadia\.google\.com|https\:\/\/one\.google\.com|https\:\/\/shoploop\.area120\.google\.com)$|^http:\/\/[0-9]+\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?$|^https:\/\/((staging|stream|today)\.)?meet\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)*(crowdsource|datacompute)\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)*youtube\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sandbox\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com$|^https:\/\/(books|play-books-(autopush|canary|internal|staging)-sandbox)\.googleusercontent\.com$|^https:\/\/(draft|www|(www\.)?dev\.sandbox|(www\.)?autopush\.sandbox|(www\.)?restore\.sandbox)\.blogger\.com$|^https:\/\/[0-9a-f]{1,63}\.proxy\.googleprod\.com$|^https?:\/\/(((docs|m|sing|ss|sss|www)\.)?drive\.google\.com$|([A-Za-z0-9-]{1,63}\.)*c\.googlers\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\.)*corp\.google\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\.)*googleplex\.com(:[0-9]+)?$|(www\.|encrypted\.)google\.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))\/?$|[A-Za-z0-9-]+\.prod\.google\.com(:[0-9]+)?$|docs\.google\.com$)/;kv.prototype.set=function(a,b){this.u[a]!==b&&(this.u[a]=b,this.url="")};
kv.prototype.get=function(a){lv(this);return this.u[a]||null};
kv.prototype.nd=function(){this.url||(this.url=wfa(this));return this.url};
kv.prototype.clone=function(){var a=new kv(this.B,this.D);a.scheme=this.scheme;a.path=this.path;a.C=this.C;a.u=g.Zb(this.u);a.url=this.url;return a};uv.prototype.set=function(a,b){this.Yf.get(a);this.u[a]=b;this.url=""};
uv.prototype.get=function(a){return this.u[a]||this.Yf.get(a)};
uv.prototype.nd=function(){this.url||(this.url=xfa(this));return this.url};Dv.prototype.sg=function(){return pu(this.u[0])};var n1={},vB=(n1.WIDTH={name:"width",video:!0,valid:640,invalid:99999},n1.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},n1.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},n1.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},n1.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},n1.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},n1.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},n1.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},n1.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},n1.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},n1);var Rv={0:"f",160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",304:"h",305:"h",214:"h",216:"h",374:"h",375:"h",140:"a",141:"ah",327:"sa",258:"m",380:"mac3",328:"meac3",161:"H",142:"H",143:"H",144:"H",222:"H",223:"H",145:"H",224:"H",225:"H",146:"H",226:"H",227:"H",147:"H",384:"H",376:"H",385:"H",377:"H",149:"A",261:"M",381:"MAC3",329:"MEAC3",598:"9",278:"9",242:"9",243:"9",244:"9",247:"9",248:"9",353:"9",355:"9",271:"9",313:"9",272:"9",302:"9",303:"9",407:"9",
408:"9",308:"9",315:"9",330:"9h",331:"9h",332:"9h",333:"9h",334:"9h",335:"9h",336:"9h",337:"9h",338:"so",600:"o",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",279:"(",280:"(",317:"(",318:"(",273:"(",274:"(",357:"(",358:"(",275:"(",359:"(",360:"(",276:"(",583:"(",584:"(",314:"(",585:"(",561:"(",277:"(",362:"(h",363:"(h",364:"(h",365:"(h",366:"(h",591:"(h",592:"(h",367:"(h",586:"(h",587:"(h",368:"(h",588:"(h",562:"(h",409:"(",410:"(",411:"(",412:"(",557:"(",558:"(",394:"1",395:"1",
396:"1",397:"1",398:"1",399:"1",400:"1",401:"1",571:"1",402:"1",386:"3",387:"w",406:"6"};var qha={nS:"auto",HV:"tiny",ST:"light",sV:"small",jU:"medium",QT:"large",uT:"hd720",qT:"hd1080",rT:"hd1440",sT:"hd2160",tT:"hd2880",zT:"highres",UNKNOWN:"unknown"};var o1;o1={};g.Lv=(o1.auto=0,o1.tiny=144,o1.light=144,o1.small=240,o1.medium=360,o1.large=480,o1.hd720=720,o1.hd1080=1080,o1.hd1440=1440,o1.hd2160=2160,o1.hd2880=2880,o1.highres=4320,o1);var Pv="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");g.k=Sv.prototype;g.k.Ka=function(){return this.video};
g.k.Id=function(){return 2===this.containerType};
g.k.isEncrypted=function(){return!!this.zd};
g.k.isAudio=function(){return!!this.audio};
g.k.isVideo=function(){return!!this.video};g.k=Zv.prototype;g.k.Re=function(){};
g.k.bn=function(){};
g.k.he=function(){return!!this.u&&this.index.Dc()};
g.k.vj=function(){};
g.k.WC=function(){return!1};
g.k.sl=function(){};
g.k.Ol=function(){};
g.k.ck=function(){};
g.k.ej=function(){};
g.k.rs=function(){};
g.k.XC=function(a){return[a]};
g.k.hu=function(a){return[a]};
g.k.Tt=function(){};
g.k.Ur=function(){};g.k=g.$v.prototype;g.k.Dt=function(a){return this.B[a]};
g.k.Ce=function(a){return this.C[a]/this.F};
g.k.Zr=ba(1);g.k.ue=function(){return NaN};
g.k.HB=function(){return null};
g.k.getDuration=function(a){a=this.tB(a);return 0<=a?a/this.F:-1};
g.k.tB=function(a){return a+1<this.u||this.D?this.C[a+1]-this.C[a]:-1};
g.k.dh=function(){return 0};
g.k.Ob=function(){return this.u-1};
g.k.bk=function(){return this.D?this.C[this.u]/this.F:NaN};
g.k.uc=function(){return 0};
g.k.Qm=function(){return this.u};
g.k.pw=function(){return""};
g.k.eh=function(a){a=g.Ab(this.C.subarray(0,this.u),a*this.F);return 0<=a?a:Math.max(0,-a-2)};
g.k.Dc=function(){return 0<=this.Ob()};
g.k.BB=function(a,b){if(a>=this.Ob())return 0;for(var c=0,d=this.Ce(a)+b,e=a;e<this.Ob()&&d>this.Ce(e);e++)c=Math.max(c,(e+1<this.u||this.D?this.B[e+1]-this.B[e]:-1)/this.getDuration(e));return c};
g.k.resize=function(a){a+=2;var b=this.B;this.B=new Float64Array(a+1);var c=this.C;this.C=new Float64Array(a+1);for(a=0;a<this.u+1;a++)this.B[a]=b[a],this.C[a]=c[a]};
g.k.cap=function(a,b){aw(this);this.D=!0;this.C[this.u]=b;this.B[this.u]=a};g.u(bw,Zv);g.k=bw.prototype;g.k.sl=function(a){var b=new ou(1,this,this.initRange,"initInfo"),c=new ou(2,this,this.indexRange,"indexInfo"),d=[],e=[b];ru(b,c)?e.push(c):(d.push(new Dv([c])),a=0);isNaN(this.K)&&(a=0);b=e[e.length-1];a=Math.min(a,this.K-(b.range.end-e[0].range.start+1));0<a&&(a=ku(b.range.end+1,a),e.push(new ou(4,this,a,"tbdRange")));d.push(new Dv(e));return d};
g.k.rs=function(a){if(1==a.info.type){if(this.u)return;this.u=Hu(a.u)}else if(2==a.info.type){if(this.N||0<=this.index.Ob())return;if(g.Ou(this.info)){var b=this.index,c=Lu(a);a=a.info.range.start;var d=g.xt(c,0,1936286840);c=Ht(d);b.F=c.tu;var e=c.pI;b.B[0]=c.iB+a+d.size;b.C[0]=e;b.D=!0;a=c.qu.length;for(d=0;d<a;d++){e=b;var f=c.gy[d],h=c.qu[d];e.u++;aw(e);e.B[e.u]=e.B[e.u-1]+f;e.C[e.u]=e.C[e.u-1]+h}}else this.N=Lu(a)}if(this.info.Id()&&this.u&&this.N){c=new DataView(this.u.buffer);b=this.index;
a=this.N;d=this.indexRange.end;e=new Ot(c);c=cu(e);if(null!=c&&(b.F=c.Jy/c.Iy,e=new Ot(a),a=eu(e,c.fq,d),null!=a)){a=g.q(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.fl,f=f.ur,aw(d),d.B[d.u]=e,d.C[d.u]=f,d.u++;b.cap(c.oy+c.fq,c.duration)}this.N=null}};
g.k.XC=function(a){for(var b=this.hu(a.info),c=a.info.range.start+a.info.C,d=a.C,e=[],f=0;f<b.length;f++){var h=b[f].ib;h=a.u.split(b[f].range.start+b[f].C-c).im.split(h).ws;e.push(new Ku(b[f],h,d));d=!1}return e};
g.k.hu=function(a){for(var b=a.range.start+a.C,c=0;c<this.index.Ob()&&b>=this.index.Dt(c+1);)c++;return cw(this,c,b,a.ib).u};
g.k.vj=function(a){return this.he()?!0:isNaN(this.K)?!1:a.range.end+1<this.K};
g.k.Ol=function(a,b){this.vj(a);if(!this.he()){var c=ku(a.range.end+1,b);c.end+1>this.K&&(c=new iu(c.start,this.K-1));c=[new ou(4,a.u,c,"getNextRequestInfoByLength")];return new Dv(c)}4==a.type&&(c=this.hu(a),a=c[c.length-1]);c=0;var d=a.range.start+a.C+a.ib;3==a.type&&(c=a.B,d==a.range.end+1&&(c+=1));return cw(this,c,d,b)};
g.k.ck=function(){return null};
g.k.ej=function(a,b){var c=this.index.eh(a);b&&(c=Math.min(this.index.Ob(),c+1));return cw(this,c,this.index.Dt(c),0)};
g.k.Re=function(){return!0};
g.k.bn=function(){return!1};
g.k.Ur=function(){return this.indexRange.length+this.initRange.length};
g.k.Tt=function(){return this.indexRange&&this.initRange&&this.initRange.end+1==this.indexRange.start?!0:!1};dw.prototype.then=function(a,b){return this.promise.then(a,b)};
dw.prototype.resolve=function(a){this.B(a)};
dw.prototype.reject=function(a){this.u(a)};var ew=void 0;var gw=null;var ow=null;g.k=Ew.prototype;g.k.Sd=function(a){return"content-type"===a?this.qk.get("type"):""};
g.k.abort=function(){};
g.k.Um=function(){return!0};
g.k.Oo=function(){return this.range.length};
g.k.mt=function(){return this.loaded};
g.k.us=function(){return!!this.u.getLength()};
g.k.ih=function(){return!!this.u.getLength()};
g.k.nt=function(){var a=this.u;this.u=new zu;return a};
g.k.lx=function(){return this.u};
g.k.Gi=function(){return!0};
g.k.fy=function(){return!!this.error};
g.k.Ml=function(){return this.error};Gw.prototype.deactivate=function(){this.isActive&&(this.isActive=!1)};var dga=0;g.k=Yw.prototype;g.k.start=function(a){var b=this,c={method:this.method,credentials:this.credentials};this.headers&&(c.headers=new Headers(this.headers));this.body&&(c.body=this.body);this.D&&(c.signal=this.D.signal);a=new Request(a,c);fetch(a).then(function(d){b.status=d.status;if(d.ok&&d.body)b.status=b.status||242,b.C=d.body.getReader(),b.la()?b.C.cancel("Cancelling"):(b.K=d.headers,b.ba(),$w(b));else b.onDone()},function(d){b.onError(d)}).then(void 0,g.M)};
g.k.onDone=function(){if(!this.la()){this.P=!0;if(Zw(this)&&!this.u.getLength()&&!this.I&&this.B){Xw(this);var a=new Uint8Array(8),b=new DataView(a.buffer);b.setUint32(0,8);b.setUint32(4,1936419184);this.u.append(a);this.B+=a.length}this.X()}};
g.k.onError=function(a){this.errorMessage=String(a);this.I=!0;this.onDone()};
g.k.Sd=function(a){return this.K?this.K.get(a):null};
g.k.Um=function(){return!!this.K};
g.k.mt=function(){return this.B};
g.k.Oo=function(){return+this.Sd("content-length")};
g.k.us=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.ih=function(){if(this.P)return!!this.u.getLength();var a=this.policy.C;if(a&&this.N+a>Date.now())return!1;a=this.Oo()||0;a=Math.max(16384,this.policy.u*a);this.W||(a=Math.max(a,16384));this.policy.Pe&&Xw(this)&&(a=1);return this.u.getLength()>=a};
g.k.nt=function(){this.ih();this.N=Date.now();this.W=!0;var a=this.u;this.u=new zu;return a};
g.k.lx=function(){this.ih();return this.u};
g.k.la=function(){return this.aborted};
g.k.abort=function(){this.C&&this.C.cancel("Cancelling");this.D&&this.D.abort();this.aborted=!0};
g.k.Gi=function(){return!0};
g.k.fy=function(){return this.I};
g.k.Ml=function(){return this.errorMessage};g.k=ax.prototype;g.k.onDone=function(){if(!this.la){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.B=!0;this.C()}};
g.k.Vd=function(a){this.la||(this.status=this.xhr.status,this.D(a.timeStamp,a.loaded))};
g.k.Um=function(){return 2<=this.xhr.readyState};
g.k.Sd=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.Eo(Error("Could not read XHR header "+a)),""}};
g.k.Oo=function(){return+this.Sd("content-length")};
g.k.mt=function(){return this.u};
g.k.us=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
g.k.ih=function(){return this.B&&!!this.response&&!!this.response.byteLength};
g.k.nt=function(){this.ih();var a=this.response;this.response=void 0;return new zu([new Uint8Array(a)])};
g.k.lx=function(){this.ih();return new zu([new Uint8Array(this.response)])};
g.k.abort=function(){this.la=!0;this.xhr.abort()};
g.k.Gi=function(){return!1};
g.k.fy=function(){return!1};
g.k.Ml=function(){return""};var p1,q1;cx.prototype.zF=function(a){var b=this;this.u++;this.C+=a;bx.forEach(function(c,d){a<c||b.B[d]++})};
cx.prototype.toString=function(){return""};
var bx=[20,100,500,2E3],jx=new dx,r1,QBa=qo.EXPERIMENT_FLAGS;r1=QBa?QBa.html5_enable_profiler:void 0;var ex=null!==r1&&void 0!==r1?r1:!1,fx=(null===(q1=null===(p1=window.performance)||void 0===p1?void 0:p1.now)||void 0===q1?0:q1.call(p1))?function(){return window.performance.now()}:function(){return+Date.now()};var zAa=hx("plssv",function(a){a.unstorable||(g.Ws("yt-player-volume",a),g.Ws("yt-player-volume",a,2592E3))}),Sza=hx("plssv",function(){var a=g.Xs("yt-player-volume")||{},b=a.volume;
return{volume:isNaN(b)?100:g.be(Math.floor(b),0,100),muted:!!a.muted}}),qga=hx("plssbs",function(a){g.Ws("yt-player-bandwidth",a,2592E3)}),oga=hx("plssbs",function(){return g.Xs("yt-player-bandwidth")||{}});g.k=vx.prototype;g.k.nd=function(){return this.D.nd()};
g.k.YP=function(a,b,c){if(!this.la()&&this.u){this.I=this.u.status;this.B.ra||yx(this,!1);var d=this.timing;a=a>d.u&&4E12>a?a:g.A();Tw(d,a,b);50>a-d.D&&Uw(d)&&3!==Kw(d)||Qw(d,a,b,c);b=this.timing;b.B>b.Ja&&Lw(b,b.B)&&3>this.state?Dx(this,3):this.u.Gi()&&Hx(this)&&Dx(this,Math.max(2,this.state))}};
g.k.XP=function(){if(!this.la()&&this.u){if(!this.X&&this.u.Um()&&this.u.Sd("X-Walltime-Ms")){var a=parseInt(this.u.Sd("X-Walltime-Ms"),10);this.X=(g.A()-a)/1E3}this.u.Um()&&this.u.Sd("X-Restrict-Formats-Hint")&&this.B.bA&&!qx()&&g.Ws("yt-player-headers-readable",!0,2592E3);a=parseInt(this.u.Sd("X-Head-Seqnum"),10);var b=parseInt(this.u.Sd("X-Head-Time-Millis"),10);this.Z=a||this.Z;this.ba=b||this.ba}};
g.k.WP=function(){var a=this.u;!this.la()&&a&&(this.ea.stop(),this.I=a.status,a=iga(this,a),6==a?ux(this):Dx(this,a))};
g.k.zQ=function(){if(!this.la()){var a=g.A(),b=!1;Uw(this.timing)?(a=this.timing.P,Jw(this.timing),this.timing.P-a>=.8*this.ra?(this.K++,b=5<=this.K):this.K=0):(b=this.timing,b.ri&&Vw(b,g.A()),a-=b.W,this.B.Rh&&0<a&&(this.K+=1),b=xv(tx(this))*this.B.oz,b=a>1E3*b);this.K&&this.W&&this.W(this);b?Gx(this,!1):this.ea.start()}};
g.k.isFailed=function(){return 6==this.state};
g.k.la=function(){return-1==this.state};
g.k.dispose=function(){this.info.sg()&&5!=this.state&&(this.info.u[0].u.F=!1);Dx(this,-1);this.ea.dispose();this.B.ae||Fx(this)};
var fga=0,Cx=-1;Lx.prototype.skip=function(a){this.offset+=a};var $x=!1;g.u(Ox,g.P);Ox.prototype.getDuration=function(){return this.D.index.bk()};ny.prototype.getDuration=function(){return this.u.index.bk()};az.prototype.C=function(a,b){var c=Math.pow(this.alpha,a);this.B=b*(1-c)+c*this.B;this.D+=a};
az.prototype.u=function(){return this.B/(1-Math.pow(this.alpha,this.D))};cz.prototype.C=function(a,b){var c=Math.min(this.B,Math.max(1,Math.round(a*this.resolution)));c+this.valueIndex>=this.B&&(this.D=!0);for(;c--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.B;this.I=!0};
cz.prototype.u=function(){return this.K?(dz(this,this.F-this.K)+dz(this,this.F)+dz(this,this.F+this.K))/3:dz(this,this.F)};jz.prototype.setPlaybackRate=function(a){this.C=Math.max(1,a)};
jz.prototype.getPlaybackRate=function(){return this.C};g.k=g.oz.prototype;g.k.uD=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.Zh(a))?a.duration:0};
g.k.tB=function(a){return this.getDuration(a)};
g.k.dh=function(){return this.segments.length?this.segments[0].eb:-1};
g.k.ue=function(a){return(a=this.Zh(a))?a.ingestionTime:NaN};
g.k.HB=function(a){return(a=this.Zh(a))?a.u:null};
g.k.Ob=function(){return this.segments.length?this.segments[this.segments.length-1].eb:-1};
g.k.bk=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.uc=function(){return this.segments[0].startTime};
g.k.Qm=function(){return this.segments.length};
g.k.Dt=function(){return 0};
g.k.eh=function(a){return(a=this.Lm(a))?a.eb:-1};
g.k.pw=function(a){return(a=this.Zh(a))?a.C:""};
g.k.Ce=function(a){return(a=this.Zh(a))?a.startTime:0};
g.k.Zr=ba(0);g.k.Dc=function(){return 0<this.segments.length};
g.k.Zh=function(a){a=g.Ab(this.segments,new lu(a,0,0,0,""),function(b,c){return b.eb-c.eb});
return 0<=a?this.segments[a]:null};
g.k.Lm=function(a){a=g.Ab(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return 0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.k.append=function(a){if(0!=a.length)if(a=g.ub(a),0==this.segments.length)this.segments=a;else{var b=this.segments.length?g.gb(this.segments).endTime:0,c=a[0].eb-this.Ob();1<c&&pb(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}};
g.k.BB=function(){return 0};g.u(qz,Zv);g.k=qz.prototype;g.k.Re=function(){return!1};
g.k.bn=function(){return!1};
g.k.WC=function(){return this.K};
g.k.sl=function(){if(this.K)return[];var a=new ou(1,this,this.initRange,"getMetadataRequestInfos");return[new Dv([a],this.X)]};
g.k.Ol=function(){return null};
g.k.ck=function(a){this.vj(a);return this.Pl(a.D?a.B+1:a.B,!1)};
g.k.ej=function(a,b){b=void 0===b?!1:b;var c=this.index.eh(a);b&&(c=Math.min(this.index.Ob(),c+1));return this.Pl(c,!0)};
g.k.rs=function(a){this.u=new Uint8Array(Lu(a).buffer)};
g.k.vj=function(a){return 0==a.ib?!0:this.index.Ob()>a.B&&this.index.dh()<=a.B+1};
g.k.update=function(a,b,c){this.index.append(a);pz(this.index,c);this.N=b};
g.k.he=function(){return this.K?!0:Zv.prototype.he.call(this)};
g.k.Pl=function(a,b){var c=this.index.pw(a),d=this.index.Ce(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.u?this.info.u*e:1E3;var h=!b,l=f;f=a==this.index.Ob()&&!this.N&&0<f;d=new ou(3,this,null,"liveCreateRequestInfoForSegment",a,d,e,0,l,f,h);return new Dv([d],c)};
g.k.Ur=function(){return this.K?0:this.initRange.length};
g.k.Tt=function(){return!1};g.u(sz,g.oz);g.k=sz.prototype;g.k.dh=function(){return this.B?this.segments.length?this.Lm(this.uc()).eb:-1:g.oz.prototype.dh.call(this)};
g.k.uc=function(){if(this.F)return 0;if(!this.B)return g.oz.prototype.uc.call(this);if(!this.segments.length)return 0;var a=Math.max(g.gb(this.segments).endTime-this.C,0);return 0<this.N&&this.Lm(a).eb<this.N?this.Zh(this.N).startTime:a};
g.k.bk=function(){if(!this.segments.length)return g.oz.prototype.bk.call(this);var a=this.Ob();if(!this.B||a<=this.segments[this.segments.length-1].eb)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new lu(a,Math.max(0,b.startTime-(b.eb-a)*this.u),this.u,0,"sq/"+a,void 0,void 0,!0)}return null!=this.K&&a.pending&&3===this.K?this.F?Math.min(this.C,a.startTime):a.startTime:this.F?Math.min(this.C,a.endTime):a.endTime};
g.k.Qm=function(){return this.B?this.segments.length?this.Ob()-this.dh()+1:0:g.oz.prototype.Qm.call(this)};
g.k.Ob=function(){var a=Math.min(this.W,Math.max(g.oz.prototype.Ob.call(this),this.I)),b=1E3*this.C;b=0<this.D&&this.D<b;this.F&&0<this.C&&0<this.I&&!b&&(b=this.Lm(this.C))&&(a=Math.min(b.eb-1,a));return a};
g.k.Pm=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.uD=function(a){var b=tz(this,a.eb);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.P&&0==a.eb%(300/this.u)){var c=this.segments[0].eb,d=Math.floor(this.P/this.u);a=a.eb-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.Lm=function(a){if(!this.B)return g.oz.prototype.Lm.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].eb-Math.ceil((this.segments[0].startTime-a)/this.u));else if(a>=b.endTime)b=b.eb+Math.floor((a-b.endTime)/this.u+1);else{b=Bb(this.segments,function(d){return a<d.startTime?-1: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.eb-b.eb-1))+1)+b.eb}return this.Zh(b)};
g.k.Zh=function(a){if(!this.B)return g.oz.prototype.Zh.call(this,a);if(!this.segments.length)return null;var b=tz(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.u;if(0==c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].eb-a)*b);else c==this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.eb-1)*b):(d=this.segments[c-1],c=this.segments[c],d=d.endTime+(c.startTime-d.endTime)/(c.eb-d.eb-1)*(a-d.eb-1));return new lu(a,d,b,0,"sq/"+a,void 0,void 0,!0)};g.u(vz,qz);g.k=vz.prototype;g.k.bn=function(){return!0};
g.k.he=function(){return!0};
g.k.vj=function(a){return!a.F};
g.k.sl=function(){return[]};
g.k.ej=function(a,b){if("number"===typeof a&&!isFinite(a)){var c=new ou(3,this,null,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Kg,void 0,this.Kg*this.info.u);return new Dv([c],"")}return qz.prototype.ej.call(this,a,b)};
g.k.Pl=function(a,b){var c=void 0===c?!1:c;if(uz(this.index,a))return qz.prototype.Pl.call(this,a,b);var d=this.index.Ce(a),e=b?0:this.Kg*this.info.u,f=!b;c=new ou(c?6:3,this,null,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a==this.index.Ob()&&!this.N&&0<e,f);return new Dv([c],0<=a?"sq/"+a:"")};Az.prototype.update=function(a,b){var c=void 0;this.B&&(c=this.B);var d=new Az,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+wz(a,"timescale")||1,h=(+e[0].getAttribute("t")||0)/f,l=+wz(a,"startNumber")||0;d.F=h;var m=h;var n=+wz(a,"presentationTimeOffset")||0;m=c?c.startSecs+c.durationSecs:b?m-n/f:0;n=Date.parse(zz(wz(a,"yt:segmentIngestTime")))/1E3;d.C="SegmentTemplate"==a.parentNode.tagName;d.C&&(d.K=wz(a,"media"));var p=c?l-c.eb:1;d.I=0<p?0:-p+1;e=g.q(e);for(p=e.next();!p.done;p=
e.next()){p=p.value;for(var r=+p.getAttribute("d")/f,t=(+p.getAttribute("yt:sid")||0)/f,w=+p.getAttribute("r")||0,x=0;x<=w;x++)if(c&&l<=c.eb)l++;else{var y=new sga(l,m,r,n+t,h);d.u.push(y);var D=y.startSecs;y=p.getAttribute("yt:cuepointTimeOffset");var F=p.getAttribute("yt:cuepointDuration");if(y&&F){y=parseFloat(y);D=(dy?+y/f:-y/f)+D;F=parseFloat(F)/f;var G=p.getAttribute("yt:cuepointContext")||null,O=p.getAttribute("yt:cuepointIdentifier");var K=p.getAttribute("yt:cuepointEvent");K=OBa[K]||"unknown";
y=new qt(D,F,G,O,K,y)}else y=null;y&&d.D.push(y);l++;m+=r;h+=r;n+=r+t}}d.u.length&&(d.B=g.gb(d.u))}this.I=d.I;this.B=d.B||this.B;vb(this.u,d.u);vb(this.D,d.D);this.C=d.C;this.K=d.K;-1===this.F&&(this.F=d.getStreamTimeOffset())};
Az.prototype.getStreamTimeOffset=function(){return-1===this.F?0:this.F};g.u(Bz,Zv);g.k=Bz.prototype;g.k.Re=function(){return!1};
g.k.bn=function(){return!1};
g.k.sl=function(){if(this.K){var a=new ou(1,this,null,"otfInit");return[new Dv([a],this.K)]}a=new ou(1,this,this.initRange,"otfInitInfo");var b=new ou(2,this,this.indexRange,"otfIndexInfo");return[new Dv([a,b])]};
g.k.Ol=function(){return null};
g.k.ck=function(a){this.vj(a);return Cz(this,uu(a),!1)};
g.k.ej=function(a,b){b=void 0===b?!1:b;var c=this.index.eh(a);b&&(c=Math.min(this.index.Ob(),c+1));return Cz(this,c,!0)};
g.k.rs=function(a){if(1==a.info.type)this.u||(this.u=Hu(a.u)),a.B&&"http://youtube.com/streaming/otf/durations/112015"==a.B.uri&&Aga(this,a.B);else if(2==a.info.type)if(g.Ou(this.info)){if(!this.index.Dc()&&(a=g.xt(Lu(a),0,1936286840))){var b=[],c=Ht(a);a=c.gy.length;var d=c.tu,e=c.gy,f=c.qu;c=this.indexRange.end+c.iB+1;for(var h=0,l=0;l<a;l++){var m=f[l]/d,n=e[l];b.push(new lu(l,h,m,NaN,"range/"+c+"-"+(c+n-1)));h+=m;c+=n}this.index.append(b)}}else if(this.info.Id()&&this.u&&(d=new Ot(new DataView(this.u.buffer)),
b=cu(d))&&(d=new Ot(Lu(a)),a=eu(d,b.fq,this.indexRange.end))){d=[];e=b.Iy/b.Jy;f=a.length-1;for(c=0;c<f;c++)h=a[c],l=a[c+1],m=h.ur*e,d.push(new lu(c,m,l.ur*e-m,NaN,"range/"+h.fl+"-"+(l.fl-1)));c=a[f].ur*e;d.push(new lu(f,c,b.duration*e-c,NaN,"range/"+a[f].fl+"-"+(b.oy+b.fq)));this.index.append(d)}};
g.k.vj=function(a){return 0==a.ib?!0:this.index.Ob()>a.B&&this.index.dh()<=a.B+1};
g.k.Ur=function(){return this.initRange&&this.indexRange?this.initRange.length+this.indexRange.length:0};
g.k.Tt=function(){return!1};Dz.prototype.getName=function(){return this.name};
Dz.prototype.getId=function(){return this.id};
Dz.prototype.getIsDefault=function(){return this.isDefault};
Dz.prototype.toString=function(){return this.name};
Dz.prototype.getName=Dz.prototype.getName;Dz.prototype.getId=Dz.prototype.getId;Dz.prototype.getIsDefault=Dz.prototype.getIsDefault;Ez.prototype.start=function(){return 0};
Ez.prototype.end=function(){return Infinity};g.k=Fz.prototype;g.k.addEventListener=function(){};
g.k.removeEventListener=function(){};
g.k.dispatchEvent=function(){return!1};
g.k.abort=function(){};
g.k.remove=function(){};
g.k.appendBuffer=function(){};var Dga=/action_display_post/;g.u(Iz,g.P);g.k=Iz.prototype;g.k.isFailed=function(){return 3==this.Ha};
g.k.mj=function(){return g.Mb(this.u,function(a){return a.info.video?2==a.info.video.projectionType:!1})};
g.k.nj=function(){return g.Mb(this.u,function(a){return a.info.video?3==a.info.video.projectionType:!1})};
g.k.ij=function(){return g.Mb(this.u,function(a){return a.info.video?4==a.info.video.projectionType:!1})};
g.k.Ym=function(){return g.Mb(this.u,function(a){return a.info.video?1==a.info.video.stereoLayout:!1})};
g.k.gQ=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Bg=this.C=!0;this.F||(this.F=new uga);yga(this.F,a,this.ra);this.V("refresh");for(a=0;a<b.length;a++){var c=Tz(this,b[a]),d=this.isLive&&g.Ou(c)&&this.Aa;if(!this.u[c.id]){var e=Nz(xz(b[a],"BaseURL").textContent),f=xz(b[a],"Initialization"),h=wz(f,"sourceURL");f=ju(wz(f,"range"));d&&(h="",f=void 0);this.u[c.id]=new qz(e,c,h,null===
f?void 0:f)}c=this.u[c.id];e=wz(b[a],"id","AdaptationSet");e=""!=e?e:wz(b[a],"mimetype","AdaptationSet");h=this.F;e=h.C[c.info.id]||h.B[e]||h.u||null;h=e.u;!this.B&&e.getStreamTimeOffset()&&(this.B=e.getStreamTimeOffset());if(e.C)for(d=[],h=g.q(h),f=h.next();!f.done;f=h.next()){f=f.value;for(var l=c.info.id,m=8*c.info.u,n=f.eb,p=f.startSecs,r=e.K.split("$$"),t=0;t<r.length;t++)r[t]=r[t].replace("$RepresentationID$",l),r[t]=r[t].replace("$Number$",n.toString()),r[t]=r[t].replace("$Bandwidth$",m.toString()),
r[t]=r[t].replace("$Time$",p.toString());d.push(new lu(f.eb,f.startSecs,f.durationSecs,f.u,r.join("$"),null,f.B))}else{e=wb(xz(b[a],"SegmentList").getElementsByTagName("SegmentURL"),e.I);f=[];for(l=0;l<e.length;l++)f.push(Oga(e[l],h[l],d));d=f}c.update(d,this.isLive,this.ea)}zga(this.F);return!0}this.duration=yz(wz(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){h=b[a];c=Tz(this,h);e=xz(h,"BaseURL");d=Nz(e.textContent);f=xz(h,"SegmentBase");h=ju(f.attributes.indexRange.value);f=ju(f.getElementsByTagName("Initialization")[0].attributes.range.value);
e=parseInt(e.getAttribute(Rz(this,"contentLength")),10);c=new bw(d,c,f,h,e,NaN);if(!c){b=!1;break a}Lz(this,c)}b=!0}return b};
g.k.cJ=function(a){if(this.la())return this;this.Z=a.status;a=a.responseText;a=(new DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.K=1E3*yz(wz(a,"minimumUpdatePeriod"))||Infinity;if(!this.ba){var b;a:{if(a.attributes)for(b=0;b<a.attributes.length;b++)if("http://youtube.com/yt/2012/10/10"===a.attributes[b].value){b=a.attributes[b].name.split(":")[1];break a}b=""}this.da=b}this.isLive=Infinity>this.K&&this.za;this.ea=parseInt(wz(a,Rz(this,"earliestMediaSequence")),10)||
0;if(b=Date.parse(zz(wz(a,Rz(this,"mpdResponseTime")))))this.N=(g.A()-b)/1E3;this.isLive&&0>=a.getElementsByTagName("SegmentTimeline").length||g.jh(a.getElementsByTagName("Period"),this.gQ,this);this.Ha=2;this.V("loaded");Wz(this);return this};
g.k.eJ=function(a){this.Z=a.xhr.status;this.Ha=3;this.V("loaderror");return Em(a.xhr)};
g.k.refresh=function(){if(1!=this.Ha&&!this.la()){var a=g.Ld(this.sourceUrl,{start_seq:Pga(this).toString()});Lm(Uz(this,a),function(){})}};
g.k.resume=function(){Wz(this)};
g.k.Ad=function(){if(this.isManifestless&&this.I&&Xz(this))return Xz(this);var a=this.u,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.Dc()&&(f.C&&(b=!0),h=h.bk(),f.info.isAudio()&&(isNaN(c)||h<c)?c=h:f.info.isVideo()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.uc=function(){if(this.isManifestless&&this.tj&&this.B&&this.tj-this.B)return this.tj&&this.B?this.tj-this.B:0;var a=this.u,b;for(b in a){var c=a[b].index;if(c.Dc())return c.uc()}return 0};
g.k.getStreamTimeOffset=function(){return this.B};
g.k.ue=function(a){for(var b in this.u){var c=this.u[b].index;if(c.Dc()){var d=c.eh(a),e=c.ue(d);if(e)return e+a-c.Ce(d)}}return NaN};
var Oz=null,Pz=!1,Sz={commentary:1,alternate:2,dub:3,main:4};g.u(Zz,g.P);Zz.prototype.seek=function(a){a!=this.D&&(this.I=0);this.D=a;var b=this.B.B,c=this.u.B,d=this.u.K,e=aA(this.B,a,this.B.K);d=aA(this.u,this.P.ka?a:e,d);a=Math.max(a,e,d);this.C=!0;this.F.isManifestless&&($z(this.B,b),$z(this.u,c));return a};
var Uga=2/24;g.u(eA,ws);g.u(fA,ws);var Yga=new xs("aft-recorded",eA),OA=new xs("timing-sent",fA);var s1=window,KA=s1.performance||s1.mozPerformance||s1.msPerformance||s1.webkitPerformance||new Xga;var oA=!1,Zga=(0,g.z)(KA.clearResourceTimings||KA.webkitClearResourceTimings||KA.mozClearResourceTimings||KA.msClearResourceTimings||KA.oClearResourceTimings||g.Oa,KA);var vA=g.v.ytLoggingLatencyUsageStats_||{};g.Ia("ytLoggingLatencyUsageStats_",vA,void 0);tA.prototype.tick=function(a,b,c){wA(this,"tick_"+a+"_"+b)||g.Lq("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c})};
tA.prototype.info=function(a,b){var c=Object.keys(a).join("");wA(this,"info_"+c+"_"+b)||(c=Object.assign({},a),c.clientActionNonce=b,g.Lq("latencyActionInfo",c))};
tA.prototype.span=function(a,b){var c=Object.keys(a).join("");wA(this,"span_"+c+"_"+b)||(a.clientActionNonce=b,g.Lq("latencyActionSpan",a))};var t1={},DA=(t1.ad_to_ad="LATENCY_ACTION_AD_TO_AD",t1.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",t1.app_startup="LATENCY_ACTION_APP_STARTUP",t1["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",t1["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",t1["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",t1.browse="LATENCY_ACTION_BROWSE",t1.channels="LATENCY_ACTION_CHANNELS",t1.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",t1["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",
t1["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",t1["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",t1["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",t1["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",t1["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",t1["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",t1["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",t1["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",
t1["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",t1.chips="LATENCY_ACTION_CHIPS",t1["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",t1["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",t1.embed="LATENCY_ACTION_EMBED",t1.home="LATENCY_ACTION_HOME",t1.library="LATENCY_ACTION_LIBRARY",t1.live="LATENCY_ACTION_LIVE",t1.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",t1.onboarding="LATENCY_ACTION_KIDS_ONBOARDING",t1.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
t1.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",t1.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",t1.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",t1["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",t1["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",t1.prebuffer="LATENCY_ACTION_PREBUFFER",t1.prefetch="LATENCY_ACTION_PREFETCH",t1.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",t1.profile_switcher="LATENCY_ACTION_KIDS_PROFILE_SWITCHER",t1.results=
"LATENCY_ACTION_RESULTS",t1.search_ui="LATENCY_ACTION_SEARCH_UI",t1.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",t1.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",t1.settings="LATENCY_ACTION_SETTINGS",t1.tenx="LATENCY_ACTION_TENX",t1.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",t1.watch="LATENCY_ACTION_WATCH",t1.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",t1["watch,watch7"]="LATENCY_ACTION_WATCH",t1["watch,watch7_html5"]="LATENCY_ACTION_WATCH",t1["watch,watch7ad"]="LATENCY_ACTION_WATCH",
t1["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",t1.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",t1.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",t1["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",t1["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",t1["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",t1["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",t1["video.video_editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",t1["video.video_editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",
t1["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",t1.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",t1.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",t1),u1={},GA=(u1.ad_allowed="adTypesAllowed",u1.yt_abt="adBreakType",u1.ad_cpn="adClientPlaybackNonce",u1.ad_docid="adVideoId",u1.yt_ad_an="adNetworks",u1.ad_at="adType",u1.aida="appInstallDataAgeMs",u1.browse_id="browseId",u1.p="httpProtocol",u1.t="transportProtocol",u1.cpn="clientPlaybackNonce",u1.ccs=
"creatorInfo.creatorCanaryState",u1.cseg="creatorInfo.creatorSegment",u1.csn="clientScreenNonce",u1.docid="videoId",u1.GetHome_rid="requestIds",u1.GetSearch_rid="requestIds",u1.GetPlayer_rid="requestIds",u1.GetWatchNext_rid="requestIds",u1.GetBrowse_rid="requestIds",u1.GetLibrary_rid="requestIds",u1.is_continuation="isContinuation",u1.is_nav="isNavigation",u1.b_p="kabukiInfo.browseParams",u1.is_prefetch="kabukiInfo.isPrefetch",u1.is_secondary_nav="kabukiInfo.isSecondaryNav",u1.prev_browse_id="kabukiInfo.prevBrowseId",
u1.query_source="kabukiInfo.querySource",u1.voz_type="kabukiInfo.vozType",u1.yt_lt="loadType",u1.mver="creatorInfo.measurementVersion",u1.yt_ad="isMonetized",u1.nr="webInfo.navigationReason",u1.nrsu="navigationRequestedSameUrl",u1.ncnp="webInfo.nonPreloadedNodeCount",u1.pnt="performanceNavigationTiming",u1.prt="playbackRequiresTap",u1.plt="playerInfo.playbackType",u1.pis="playerInfo.playerInitializedState",u1.paused="playerInfo.isPausedOnLoad",u1.yt_pt="playerType",u1.fmt="playerInfo.itag",u1.yt_pl=
"watchInfo.isPlaylist",u1.yt_pre="playerInfo.preloadType",u1.yt_ad_pr="prerollAllowed",u1.pa="previousAction",u1.yt_red="isRedSubscriber",u1.rce="mwebInfo.responseContentEncoding",u1.scrh="screenHeight",u1.scrw="screenWidth",u1.st="serverTimeMs",u1.ssdm="shellStartupDurationMs",u1.aq="tvInfo.appQuality",u1.br_trs="tvInfo.bedrockTriggerState",u1.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",u1.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",u1.label="tvInfo.label",u1.is_mdx="tvInfo.isMdx",
u1.preloaded="tvInfo.isPreloaded",u1.upg_player_vis="playerInfo.visibilityState",u1.query="unpluggedInfo.query",u1.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",u1.yt_vst="videoStreamType",u1.vph="viewportHeight",u1.vpw="viewportWidth",u1.yt_vis="isVisible",u1.rcl="mwebInfo.responseContentLength",u1.GetSettings_rid="requestIds",u1.GetTrending_rid="requestIds",u1.GetMusicSearchSuggestions_rid="requestIds",u1.REQUEST_ID="requestIds",u1),$ga="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(" "),
v1={},HA=(v1.ccs="CANARY_STATE_",v1.mver="MEASUREMENT_VERSION_",v1.pis="PLAYER_INITIALIZED_STATE_",v1.yt_pt="LATENCY_PLAYER_",v1.pa="LATENCY_ACTION_",v1.aq="TV_APP_QUALITY_",v1.yt_vst="VIDEO_STREAM_TYPE_",v1),aha="all_vc ap 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 w1=window;w1.ytcsi&&(w1.ytcsi.info=BA,w1.ytcsi.tick=CA);PA.prototype.Ka=function(){this.Ne("gv")};
PA.prototype.Ne=function(a,b){this.F[a]=b?window.performance.timing.navigationStart+b:(0,g.N)()};g.u(QA,g.P);QA.prototype.N=function(a,b){var c=this.I.u.index.Ob()<=b,d=this.K.isManifestless&&this.F.ob;this.u={Te:a,eb:b};this.F.ob&&this.C&&this.B&&(this.C=!1,"continue"!=a.event&&"stop"!=a.event||RA(this,this.B));this.B&&this.B.eb==b&&(this.B=null);if(c||d)this.F.xc&&(a.startSecs+=isNaN(this.D)?0:this.D),c=this.K,c.X.push(a),c.V("cuepointsadded",b)};g.u(WA,g.P);g.k=WA.prototype;g.k.appendBuffer=function(a,b,c){this.B=!1;c&&(this.C=c);b&&(b.isEncrypted()&&(this.W=this.C),3==b.type&&(this.F=b));this.supports(0)?this.u.appendBuffer(a):this.u.append(a)};
g.k.abort=function(){try{this.u.abort()}catch(a){}this.C=this.F=null};
g.k.remove=function(a,b){this.B=!1;this.u.remove(a,b)};
g.k.Rr=function(){return $x&&this.N?this.X:this.u.appendWindowStart};
g.k.iw=function(){return this.u.appendWindowEnd};
g.k.sy=function(a,b){$x&&this.N?(this.X=a,this.u.appendWindowEnd=b):a>this.Rr()?(this.u.appendWindowEnd=b,this.u.appendWindowStart=a):(this.u.appendWindowStart=a,this.u.appendWindowEnd=b)};
g.k.qw=function(){return this.I};
g.k.Nn=function(a){$x?this.I=a:this.supports(1)&&(this.u.timestampOffset=a)};
g.k.lc=function(){return $x?this.I:this.supports(1)?this.u.timestampOffset:0};
g.k.Ue=function(a){if(void 0===a?0:a)return this.B||this.sf()||(this.K=this.Ue(!1),this.B=!0),this.K;try{return this.u.buffered}catch(b){return fy([],[])}};
g.k.sf=function(){return this.u.updating};
g.k.ql=function(){return this.C};
g.k.Sr=function(){return this.W};
g.k.bz=function(a,b){this.P!=a&&(this.supports(4),this.u.changeType(b));this.P=a};
g.k.Tr=function(){return this.F};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:return void 0!=this.u.timestampOffset;case 0:return!!this.u.appendBuffer;case 2:return!!this.u.remove;case 3:return!(!this.u.addEventListener||!this.u.removeEventListener);case 4:return!!this.u.changeType;default:return!1}};
g.k.tv=function(){return!this.sf()};
g.k.isLocked=function(){return!1};
g.k.jb=function(a){a.to=""+this.u.timestampOffset;a.up=""+ +this.sf();a.aw=(this.u.appendWindowStart||0).toFixed(3)+"-"+(this.u.appendWindowEnd||Infinity).toFixed(3);try{a.bu=gy(this.u.buffered)}catch(b){}return g.UA(a)};
g.k.aa=function(){this.supports(3)&&(this.u.removeEventListener("updateend",this.D),this.u.removeEventListener("error",this.D));g.P.prototype.aa.call(this)};
g.k.Cq=function(a,b,c){if(!this.supports(2)||this.sf())return!1;var d=this.Ue(),e=hy(d,a);if(0>e)return!1;try{if(b&&e+1<d.length){var f=d.start(e+1),h=d.end(d.length-1);this.remove(f,h);return!0}if(this.isView())return!1;var l=Math.max(0,a-c);if(0<c&&d.start(e)<l)return this.remove(0,l),!0}catch(m){}return!1};var RBa={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},x1;a:{var y1=g.Vc;y1=y1.toLowerCase();if(-1!=y1.indexOf("android")){var SBa=y1.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(SBa){var TBa=parseFloat(SBa[1]);if(100>TBa){x1=TBa;break a}}var UBa=y1.match("("+g.Qb(RBa).join("|")+")");x1=UBa?RBa[UBa[0]]:0}else x1=void 0}var PB=x1,OB=0<=PB;g.u(ZA,g.B);var oha={RED:"red",XV:"white"};var nha={VR:"adunit",NS:"detailpage",US:"editpage",WS:"embedded",XS:"embedded_unbranded",RT:"leanback",UU:"previewpage",VU:"profilepage",OV:"unplugged",QU:"playlistoverview",uV:"sponsorshipsoffer"};g.k=iB.prototype;g.k.append=function(a){this.u.webkitSourceAppend(this.B,a)};
g.k.abort=function(){this.u.webkitSourceAbort(this.B)};
g.k.vR=function(){return this.u.webkitSourceState==this.u.SOURCE_CLOSED?new dha:this.u.webkitSourceBuffered(this.B)};
g.k.xR=function(){return this.C};
g.k.BR=function(a){this.C=a;this.u.webkitSourceTimestampOffset(this.B,a)};g.k=jB.prototype;g.k.addEventListener=function(a,b,c){this.u.addEventListener(a,b,c)};
g.k.removeEventListener=function(a,b,c){this.u.removeEventListener(a,b,c)};
g.k.RL=function(){return this.u.webkitMediaSourceURL};
g.k.addSourceBuffer=function(a){var b=(this.C++).toString();this.u.webkitSourceAddId(b,a);a=new iB(this.u,b);this.sourceBuffers.push(a);return a};
g.k.removeSourceBuffer=function(a){for(var b=0;b<this.sourceBuffers.length;b++)if(a===this.sourceBuffers[b]){this.u.webkitSourceRemoveId(a.B);for(a=b+1;a<this.sourceBuffers.length;a++)this.sourceBuffers[a-1]=this.sourceBuffers[a];this.sourceBuffers.pop();break}};
g.k.yR=function(){switch(this.u.webkitSourceState){case this.u.SOURCE_CLOSED:return"closed";case this.u.SOURCE_OPEN:return"open";case this.u.SOURCE_ENDED:return"ended"}return""};
g.k.endOfStream=function(){this.u.webkitSourceEndOfStream(this.u.EOS_NO_ERROR)};
g.k.zR=function(){pb(this.sourceBuffers)};
g.k.wR=function(){return this.B};
g.k.AR=function(a){this.B=a;this.u.webkitSourceSetDuration&&this.u.webkitSourceSetDuration(a)};g.u(kB,g.P);g.k=kB.prototype;g.k.appendBuffer=function(a,b,c){if(this.u.Rr()!=this.I+this.B||this.u.iw()!=this.F+this.B||this.u.lc()!=this.D+this.B)this.u.supports(1),this.u.sy(this.I+this.B,this.F+this.B),this.u.Nn(this.D+this.B);this.u.appendBuffer(a,b,c)};
g.k.abort=function(){this.u.abort()};
g.k.remove=function(a,b){this.u.remove(a+this.B,b+this.B)};
g.k.sy=function(a,b){this.I=a;this.F=b};
g.k.qw=function(){return this.D+this.B};
g.k.Rr=function(){return this.I};
g.k.iw=function(){return this.F};
g.k.Nn=function(a){this.D=a};
g.k.lc=function(){return this.D};
g.k.Ue=function(a){a=this.u.Ue(void 0===a?!1:a);return my(a,this.B,this.P)};
g.k.sf=function(){return this.u.sf()};
g.k.ql=function(){return this.u.ql()};
g.k.Sr=function(){return this.u.Sr()};
g.k.bz=function(a,b){return this.u.bz(a,b)};
g.k.supports=function(a){return this.u.supports(a)};
g.k.Tr=function(){return this.u.Tr()};
g.k.isView=function(){return!0};
g.k.Cq=function(a,b,c){return this.isActive()?this.u.Cq(a,b,c):!1};
g.k.tv=function(){return this.u.tv()?this.C:!1};
g.k.isLocked=function(){return this.K&&!this.C};
g.k.jb=function(a){return this.u.jb(a)+(";vw."+this.B+"-"+this.P)};
g.k.aa=function(){$r(this.u,this.N);g.P.prototype.aa.call(this)};
g.k.isActive=function(){return this.C};
g.k.setActive=function(a){this.C=a;this.K=this.K||this.C};lB.prototype.dispose=function(){if(!this.la){if(this.B)try{URL.revokeObjectURL(this.u)}catch(a){}this.C=!0}};
lB.prototype.la=function(){return this.C};
lB.prototype.toString=function(){return"MediaResource {"+this.u+"}"};g.u(mB,g.B);g.k=mB.prototype;g.k.getDuration=function(){return this.C.duration};
g.k.isView=function(){return this.I};
g.k.sf=function(){return!!(this.u&&this.u.sf()||this.B&&this.B.sf())};
g.k.uP=function(){!this.la()&&nB(this)&&this.D&&(this.D(this),this.D=null)};
g.k.tP=function(){this.dispose()};tB.prototype.canPlayType=function(a,b){var c=a.canPlayType?a.canPlayType(b):!1;jk?c=c||VBa[b]:2.2===PB?c=c||WBa[b]:Yj()&&(c=c||XBa[b]);return!!c};
tB.prototype.isTypeSupported=function(a){return this.F?window.cast.receiver.platform.canDisplayType(a):dB(a)};
tB.prototype.disableAv1=function(){this.K=!0};
var WBa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},XBa={"application/x-mpegURL":"maybe"},VBa={"application/x-mpegURL":"maybe"};g.u(zB,g.P);zB.prototype.add=function(a,b){!this.items[a]&&(b.vo||b.kr||b.Bq)&&(this.items[a]=cc(b),this.V("vast_info_card_add",a))};
zB.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
zB.prototype.get=function(a){return this.items[a]||null};
zB.prototype.isEmpty=function(){return g.Wb(this.items)};var WB={cU:1,dU:2,eU:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var kha=/^([0-9\.]+):([0-9\.]+)$/;var HB="area120-boutique blogger books docs duo google-live google-one play chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),YBa={rS:"cbrand",sS:"cbr",tS:"cbrver",FT:"c",IT:"cver",HT:"ctheme",GT:"cplayer",oU:"cmodel",sU:"cnetwork",wU:"cos",xU:"cosver",DU:"cplatform"};g.u(dC,g.B);g.k=dC.prototype;g.k.ca=function(a){return g.R(this.experiments,a)};
g.k.Oe=function(a,b){b=void 0===b?!1:b;this.Lb=DB(this.Lb,a.video_id);this.yb=DB(this.yb,a.eventid);for(var c=[],d=g.q(Object.keys(YBa)),e=d.next();!e.done;e=d.next()){e=YBa[e.value];var f=a[e];null!=f&&(f!==this.deviceParams[e]&&c.push(e),this.deviceParams[e]=f)}!b&&0<c.length&&this.Uq&&(c.sort(),g.lr(new Iq("Player client parameters changed after startup",c)));this.userAge=CB(this.userAge,a.user_age);this.userDisplayImage=DB(this.userDisplayImage,a.user_display_image);g.fv(this.userDisplayImage)||
(this.userDisplayImage="");this.userDisplayName=DB(this.userDisplayName,a.user_display_name);this.Af=DB(this.Af,a.user_gender);this.csiPageType=DB(this.csiPageType,a.csi_page_type);this.csiServiceName=DB(this.csiServiceName,a.csi_service_name);this.Cf=S(this.Cf,a.enablecsi);this.pageId=DB(this.pageId,a.pageid);if(c=a.enabled_engage_types)this.enabledEngageTypes=new Set(c.split(","))};
g.k.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.gC(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.aC(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,jk&&(a=Rp())&&(b.ebc=a));return g.Ld(d,b)};
g.k.getVideoEmbedCode=function(a,b,c){a="https://"+g.gC(this)+"/embed/"+a;c&&(a=g.Ld(a,{list:c}));c=b.width;b=b.height;a=g.nd(a);return'<iframe width="'+c+'" height="'+b+'" src="'+a+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'};
g.k.supportsGaplessAudio=function(){return g.eB&&!jk&&74<=Vj()||g.wB&&g.$d(68)?!0:!1};
g.k.getPlayerType=function(){return this.deviceParams.cplayer};
var pha=["www.youtube-nocookie.com","youtube.googleapis.com"];yC.prototype.getLanguageInfo=function(){return this.u};
yC.prototype.toString=function(){return this.u.name};
yC.prototype.getLanguageInfo=yC.prototype.getLanguageInfo;zC.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.u};
zC.prototype.compose=function(a){if(a.C&&CC(a))return WC;if(a.C||CC(this))return a;if(this.C||CC(a))return this;var b=this.B&&a.B?Math.max(this.B,a.B):this.B||a.B,c=this.u&&a.u?Math.min(this.u,a.u):this.u||a.u;b=Math.min(b,c);return b===this.B&&c===this.u?this:new zC(b,c,!1,c===this.u?this.reason:a.reason)};
zC.prototype.D=function(a){return a.video?EC(this,a.video.quality):!1};
var Xva=BC("auto","hd1080",!1,"l"),Ssa=BC("auto","large",!1,"l"),WC=BC("auto","auto",!1,"p");BC("small","auto",!1,"p");FC.prototype.nl=function(a){a=a||WC;for(var b=g.Ke(this.videoInfos,function(h){return a.D(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].Ka();
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
FC.prototype.getAvailableAudioTracks=function(){return this.audioTracks};
FC.prototype.wc=function(){return!!this.u};HC.prototype.clone=function(a){return new HC(this.flavor,a,this.C,this.experiments)};
HC.prototype.jb=function(){return{flavor:this.flavor,keySystem:this.u}};
HC.prototype.te=function(){switch(this.u){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.widevine.forcehdcp":return"WVYF";case "com.youtube.fairplay":return"FPY";case "com.apple.fps.1_0":return"FPA";default:return this.u}};
var z1={},QC=(z1.playready=["com.youtube.playready","com.microsoft.playready"],z1.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],z1);jD.prototype.add=function(a){this.u=(this.u+1)%this.data.length;this.data[this.u]=a};
jD.prototype.forEach=function(a){for(var b=this.u+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.u;b++)a(this.data[b]||0)};
jD.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.B=this.u=this.data.length-1};lD.prototype.send=function(){g.oq(this.u,{format:"RAW",responseType:"arraybuffer",timeout:1E4,Mf:this.B,Pf:this.B,context:this});this.C=(0,g.N)()};
lD.prototype.B=function(a){var b={rc:a.status,lb:a.response?a.response.byteLength:0,rt:(((0,g.N)()-this.C)/1E3).toFixed(3),shost:g.yd(this.u),trigger:this.I};204==a.status||a.response?this.D&&this.D(g.UA(b)):this.F(new TA("pathprobe.net",!1,b))};g.u(mD,g.P);mD.prototype.B=function(a,b){if(this.I)return tla(this,b);var c=Px(a.C);if(c){var d=c.B;if(d&&d.D&&d.C){var e=a.D.length?a.D[0]:null;e&&2<=e.state&&!e.isFailed()&&0==e.info.We&&e.u.Gi()&&(this.I=e,this.W=d,this.D=c.info,this.P=this.K=g.A()/1E3,this.N=this.D.startTime)}}return NaN};var A1={},sD=(A1.AD_MARKER="ytp-ad-progress",A1.CHAPTER_MARKER="ytp-chapter-marker",A1.TIME_MARKER="ytp-time-marker",A1);g.tD.prototype.getId=function(){return this.id};
g.tD.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+uD(this.start)+", "+uD(this.end)+"]"};
g.tD.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a===this.end&&this.start===this.end)&&(null==b||a<b&&b<=this.end)};
var ula=1;g.tD.prototype.getId=g.tD.prototype.getId;var kL={BUFFERING:1,ENDED:2,PAUSED:4,PLAYING:8,jV:16,NV:32,UNSTARTED:64,ERROR:128,EV:256,CV:512,QS:1024,pS:2048,1:"BUFFERING",2:"ENDED",4:"PAUSED",8:"PLAYING",16:"SEEKING",32:"UISEEKING",64:"UNSTARTED",128:"ERROR",256:"SYSPAUSED",512:"SUSPENDED",1024:"DOMPAUSED",2048:"AUTOPLAYBLOCKED"};g.u(CD,g.B);CD.prototype.reset=function(){this.started=!1;this.F.stop();this.u.u=[];this.C=[];this.B()};
CD.prototype.Vb=function(a){this.started&&(this.B(),g.T(a.xj,16)&&(a=AD(this.u,Math.max(this.D-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.F.start()))};
CD.prototype.B=function(){this.I=!0;if(!this.K){for(var a=3;this.I&&a;)this.I=!1,this.K=!0,Bla(this),this.K=!1,a--;this.N().Gb()&&(a=AD(this.u,this.D),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.D)/this.Z(),this.F.start(a)))}};
CD.prototype.aa=function(){this.C=[];this.u.u=[];g.B.prototype.aa.call(this)};g.u(ND,g.P);g.k=ND.prototype;
g.k.initialize=function(a,b,c){a=a||0;this.V("videoformatchange",Fha(this.K));if(this.F.isManifestless){if(this.u.wz){b=rz(this.u);for(var d in this.F.u)this.F.u[d].index.K=b}Fla(this)}this.P&&nD(this.P,this.B.u);this.u.da&&Ww()&&this.gd("streaming","ac."+!!window.AbortController,!0);d=isNaN(this.I)?0:this.I;this.I=this.F.isManifestless?d:a;c?(this.u.Oh?(this.ud=c,PD(this,c)):PD(this,!1),this.xc.xb()):(a=0==this.I,bE(this,this.B,this.B.u,a),bE(this,this.D,this.D.u,a),Lm(this.seek(this.I),function(){}),
this.za.Ka());
(this.F.Rd||this.F.hg)&&this.gd("minMaxSq","minSq."+this.F.Rd+";maxSq."+this.F.hg+";minDvrTime."+this.F.tj+";maxDvrTime."+this.F.Jl)};
g.k.resume=function(){if(this.ha||this.Aa)this.Pb=this.Aa=this.ha=!1,this.sh()};
g.k.setAudioTrack=function(a){if(!this.la()){var b=this.K;b.I=b.K.u[a.id];b.X=b.I;this.V("audioformatchange",new VC(b.X,b.B,"m"));this.V("reattachrequired")}};
g.k.setPlaybackRate=function(a){a!=this.X.getPlaybackRate()&&this.X.setPlaybackRate(a)};
g.k.sh=function(){UD(this);if(this.C&&nB(this.C)&&!this.C.sf()){var a=py(this.B);a=this.u.EG&&a&&a.F;this.F.isManifestless&&this.F.I&&Xz(this.F)?(this.W=Xz(this.F),oB(this.C,this.W)):this.F.isLive&&!a?isNaN(this.W)?(this.W=this.I+3600,oB(this.C,this.W)):this.W<=this.I+1800&&(this.W=Math.max(this.W+1800,this.I+3600),oB(this.C,this.W)):this.C.isView()||(a=Math.max(this.D.getDuration(),this.B.getDuration()),(!isFinite(this.W)||this.W!=a)&&0<a&&(oB(this.C,a),this.W=a))}if(!this.la())if(Vz(this.F)&&this.F.isFailed())TD(this,
!0,"manifest.net.retryexhausted",{rc:this.F.Z.toString()});else if(!this.F.C||!Yy(this.B)&&!Yy(this.D)||(this.B.F||this.D.F)&&this.u.ha?a=!1:(RD(this),this.V("seekplayerrequired",Infinity),a=!0),!a&&(UD(this),ry(this.B),!this.la()&&(ry(this.D),!this.la()))){this.F.isManifestless&&(Zy(this.B),Zy(this.D),dA(this.N),(a=Px(this.B.C))&&a.B&&(a=a.B.D&&!this.u.aj,this.gd(a==this.u.D.Pe?"strm":"strmbug","strm."+(a?"1":"0")+";sfmp4."+(this.u.D.Pe?"1":"0")+";dfs."+(this.u.aj?"1":"0"),!0)));if(this.C)gE(this);
else if(this.u.Xg){if(a=Px(this.B.C)){var b=this.B;b.C.B.shift();ty(b,a)}if(b=Px(this.D.C)){var c=this.D;c.C.B.shift();ty(c,b)}zy(this.B)&&zy(this.D)||(a||b)&&this.ra.xb()}OD(this);bE(this,this.B,this.B.u,!1);bE(this,this.D,this.D.u,!1);a=this.D.u.I;b=this.B.u.I;if(a||b){c="net.retryexhausted";if("fmt.unparseable"==a||"fmt.unparseable"==b)c="fmt.unparseable";TD(this,!0,c,{metadata:"1",video:this.B.u.I||"",audio:this.D.u.I||""})}else this.u.Lc&&XD(this,this.B,this.D),ZD(this,this.B,this.D),ZD(this,
this.D,this.B),this.u.xz&&this.Qa&&!this.ha&&iz(this.ba)&&(a=this.Qa,b=(0,g.z)(this.V,this,"error"),(new lD(a,"cms",null,b)).send(),this.Qa=""),this.P&&(a=this.P,a.I?(b=a.P+a.u.Mj,a.F||(b=Math.min(b,a.K+a.u.ac)),a=Math.max(0,1E3*b-g.A())):a=NaN,isNaN(a)||this.wd.xb(a)),this.hd.xb()}};
g.k.IP=function(a){if(this.u.Qe&&this.C){var b=a==this.C.u,c=a.Tr();c&&(!c.C||c.D)&&this.gd("sbu",a.jb({a:""+ +b}))}this.sh()};
g.k.KM=function(a){if(this.C){a=py(a==this.C.u?this.D:this.B);var b=void 0;a&&(b=vu(a));TD(this,!0,"fmt.unplayable",b)}};
g.k.ZN=function(a){TD(this,!0,"fmt.unparseable",a)};
g.k.oM=function(a){this.V("needkeyinfo",a)};
g.k.aO=function(a){this.D.u.C=a;this.C&&dE(this,this.C.u,a)};
g.k.YN=function(a){TD(this,!1,"qoe.avsync",a)};
g.k.cO=function(a,b){this.F.isManifestless&&jE(this,b,a==this.B)};
g.k.dO=function(a,b){if(this.F.isManifestless){var c=this.F,d=b.eb,e=a==this.B,f;for(f in c.u){var h=Xv(c.u[f].info.mimeType)||c.u[f].info.isVideo();if(e==h){h=c.u[f].index;var l=tz(h,d);0<=l&&h.segments.splice(l,1)}}}};
g.k.eO=function(a,b){this.F.isManifestless&&(jE(this,b,a==this.B),b&&b.u&&0>a.da&&(this.gd("ssinfo",(a===this.D?"a":"v")+"."+b.eb),a.da=b.eb))};
g.k.bO=function(a){this.V("localmediachange",new KD(this.u.C,a,{isBackground:this.u.Xg}))};
g.k.seek=function(a){if(this.la())return Em();if(this.B.N||this.D.N)return this.u.Gz?Dm():Em("seeking to head");UD(this);this.ac=(0,g.N)();OD(this,a);this.C&&this.C.u&&this.C.B&&(this.C.u.isLocked()||this.C.B.isLocked())&&this.V("reattachrequired");this.I=this.N.seek(a);a=this.Z;a.B=null;a.C=!1;this.ra.xb();return Dm(this.I)};
g.k.getCurrentTime=function(){return this.I};
g.k.aa=function(){this.Z.unsubscribe("ctmp",this.gd,this);SD(this);Ey(this.D);Ey(this.B);g.P.prototype.aa.call(this)};
g.k.jb=function(){var a=py(this.D),b=py(this.B);a={lct:this.I.toFixed(3),lsk:this.N.C,lmf:dD(this.K),lbw:gz(this.ba).toFixed(3),lhd:fz(this.ba).toFixed(3),lst:(1E9*(this.ba.C.u()||0)).toFixed(3),laa:a?nu(a):"",lva:b?nu(b):"",lar:this.D.B?nu(this.D.B):"",lvr:this.B.B?nu(this.B.B):""};this.C&&!qB(this.C)&&this.C.u&&this.C.B&&(a.lab=gy(this.C.u.Ue()),a.lvb=gy(this.C.B.Ue()));return a};
g.k.gd=function(a,b,c){this.V("ctmp",a,b,void 0===c?!1:c)};
g.k.nA=function(a,b){var c=a/b;isNaN(this.ea)&&(this.ea=c-Math.min(c,this.u.Bf),this.Z.D=this.ea,this.V("timestamp",this.ea),this.F.isManifestless&&(this.F.B=this.ea));return(c-this.ea)*b};
var $D=2/24;var B1;var ZBa=g.Vc,$Ba=ZBa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!$Ba||2>$Ba.length)B1=void 0;else{var C1=ZBa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);B1=C1&&6==C1.length?Number(C1[5].replace("_",".")):0}var WF=B1,UX=0<=WF;UX&&0<=g.Vc.search("Safari")&&g.Vc.search("Version");var d0=16/9,aCa=[.25,.5,.75,1,1.25,1.5,1.75,2],bCa=aCa.concat([3,4,5,6,7,8,9,10,15]);g.u(mE,g.B);
mE.prototype.initialize=function(a,b){for(var c=this,d=g.q(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.q(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.zd)for(var h=g.q(Object.keys(f.zd)),l=h.next();!l.done;l=h.next())if(l=l.value,QC[l])for(var m=g.q(QC[l]),n=m.next();!n.done;n=m.next())n=n.value,this.B[n]=this.B[n]||new HC(l,n,f.zd[l],this.experiments),this.D[l]=this.D[l]||{},this.D[l][f.mimeType]=!0}ck()&&(this.B["com.youtube.fairplay"]=new HC("fairplay","com.youtube.fairplay","",
this.experiments),this.D.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0});this.u=uha(b,this.useCobaltWidevine,g.Xu(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.B[p]})};
mE.prototype.ca=function(a){return g.R(this.experiments,a)};g.k=oE.prototype;g.k.te=function(){return this.La};
g.k.yp=function(){return null};
g.k.uB=function(){var a=this.yp();return a?(a=g.Xp(a.u),Number(a.expire)):NaN};
g.k.py=function(){};
g.k.getHeight=function(){return this.La.Ka().height};g.u(tE,oE);tE.prototype.uB=function(){return this.expiration};
tE.prototype.yp=function(){if(!this.u||this.u.la()){var a=this.B;Yla(a);var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={};a:if(a.u)var d=a.u;else{d="";for(var e=g.q(a.C),f=e.next();!f.done;f=e.next())if(f=f.value,f.u){if(f.u.getIsDefault()){d=f.u.getId();break a}d||(d=f.u.getId())}}e=g.q(a.C);for(f=e.next();!f.done;f=e.next())f=f.value,f.u&&f.u.getId()!==d||(c[f.itag]=f);d=g.q(a.B);for(e=d.next();!e.done;e=d.next())e=e.value,(f=c[e.B])&&b.push(Xla(a,f,e));d=g.q(a.B);for(e=d.next();!e.done;e=d.next()){e=
e.value;var h=c[e.B];h&&(f=a,h="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+h.bitrate)+',CODECS="'+(e.codecs+","+h.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(rE(h,e)+'",CLOSED-CAPTIONS=NONE'),1<e.fps&&(h+=",FRAME-RATE="+e.fps),e.C&&(h+=",VIDEO-RANGE="+e.C),b.push(h),b.push(qE(f,e.url,"")))}a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(b.join("\n"));this.u=new lB(a)}return this.u};g.u(vE,oE);vE.prototype.yp=function(){return new lB(this.u.nd())};
vE.prototype.py=function(){this.u=pv(this.u)};g.u(wE,oE);wE.prototype.yp=function(){return new lB(this.u)};g.k=g.xE.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.u};
g.k.nd=function(){return this.url};
g.k.toString=function(){return this.languageCode+": "+g.yE(this)+" - "+this.vssId};
g.k.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var zE={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},CE={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var D1={},cCa=(D1.ALWAYS=1,D1.BY_REQUEST=3,D1.UNKNOWN=void 0,D1),E1={},dCa=(E1.COLOR_PRIMARIES_BT709="bt709",E1.COLOR_PRIMARIES_BT2020="bt2020",E1.COLOR_PRIMARIES_UNKNOWN=null,E1.COLOR_PRIMARIES_UNSPECIFIED=null,E1),F1={},ima=(F1.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",F1.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",F1.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",F1.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",F1.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,F1.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
null,F1),G1={},H1=(G1.FAIRPLAY="fairplay",G1.PLAYREADY="playready",G1.WIDEVINE="widevine",G1.CLEARKEY=null,G1.FLASHACCESS=null,G1.UNKNOWN=null,G1.WIDEVINE_CLASSIC=null,G1),I1={},eCa=(I1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",I1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",I1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",I1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",I1),J1={},fCa=(J1.UNKNOWN=0,J1.RECTANGULAR=1,J1.EQUIRECTANGULAR=2,J1.EQUIRECTANGULAR_THREED_TOP_BOTTOM=
3,J1.MESH=4,J1),K1={},gCa=(K1.SPATIAL_AUDIO_TYPE_NONE=0,K1.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,K1.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,K1.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,K1),L1={},hCa=(L1.STEREO_LAYOUT_UNKNOWN=0,L1.STEREO_LAYOUT_LEFT_RIGHT=1,L1.STEREO_LAYOUT_TOP_BOTTOM=2,L1),M1={},iCa=(M1.FORMAT_STREAM_TYPE_UNKNOWN=0,M1.FORMAT_STREAM_TYPE_OTF=3,M1);g.u(LE,g.P);LE.prototype.pl=function(a,b){for(var c=ME(this,b);0<=c;){var d=this.levels[c];if(d.Dc(Math.floor(a/(d.columns*d.rows)))&&(d=d.pl(a)))return d;c--}return this.levels[0].pl(a)};
LE.prototype.aa=function(){this.u&&(this.u=this.u.onload=null);g.P.prototype.aa.call(this)};g.k=g.PE.prototype;g.k.ge=function(){return this.width};
g.k.getHeight=function(){return this.height};
g.k.yB=ba(2);g.k.kw=function(){return this.C};
g.k.isDefault=function(){return-1!==this.D.indexOf("default")};
g.k.Dc=function(a){return this.loaded.has(a)};
g.k.nd=function(a){var b=this.F;b=b.replace("$N",this.D);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.signature&&(b=g.Ld(b,{sigh:this.signature}));return jv(b)};
g.k.pl=function(a){a>=this.vx()&&this.Ap();var b=Math.floor(a/(this.columns*this.rows)),c=this.columns*this.rows,d=a%c;a=d%this.columns;d=Math.floor(d/this.columns);var e=this.Ap()+1-c*b;if(e<this.columns){var f=e;c=1}else f=this.columns,c=e<c?Math.ceil(e/this.columns):this.rows;return{url:this.nd(b),column:a,columns:f,row:d,rows:c,Ht:this.width*f,Gt:this.height*c}};
g.k.At=function(a){var b=this.kw()-1;return g.be(0===this.u?Math.round(a*this.C/this.videoLength):Math.round(1E3*a/this.u),0,b)};
g.k.Ap=function(){return this.C-1};
g.k.vx=function(){return this.C?0:-1};
g.k.iD=function(){};g.u(QE,LE);QE.prototype.B=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var h=this.F(f-1,e,d[f],b);(this.K||180>h.getHeight())&&c.push(h)}return c};
QE.prototype.F=function(a,b,c,d){return new g.PE(a,b,c,d)};g.u(SE,g.PE);g.k=SE.prototype;g.k.kw=function(){return this.B.Qm()};
g.k.At=function(a){var b=this.rows*this.columns*this.I,c=this.B,d=c.Ob();a=c.eh(a);return a>d-b?-1:a};
g.k.Ap=function(){return this.B.Ob()};
g.k.vx=function(){return this.B.dh()};
g.k.iD=function(a){this.B=a};g.u(TE,QE);TE.prototype.B=function(a,b){return QE.prototype.B.call(this,"$N|"+a,b)};
TE.prototype.F=function(a,b,c){return new SE(a,b,c,this.isLive)};g.u(g.UE,g.P);g.k=g.UE.prototype;g.k.Oe=function(a,b,c){c&&(this.errorCode=null,this.errorDetail="",this.Yh=this.errorReason=null);b?(FB(a),this.setData(a),DF(this)&&eF(this)):(a=a||{},this.ca("embeds_wexit_list_ajax_migration")&&FF(this,a),aF(this,a),XE(this,a),this.V("dataupdated"))};
g.k.setData=function(a){a=a||{};var b=a.errordetail;null!=b&&(this.errorDetail=b);var c=a.errorcode;null!=c?this.errorCode=c:"fail"==a.status&&(this.errorCode="150");var d=a.reason;null!=d&&(this.errorReason=d);var e=a.subreason;null!=e&&(this.Yh=e);this.clientPlaybackNonce||(this.clientPlaybackNonce=a.cpn||this.gw());this.li=S(this.Oa.li,a.livemonitor);FF(this,a);var f=a.raw_player_response;if(!f){var h=a.player_response;h&&(f=JSON.parse(h))}f&&(this.playerResponse=f);if(this.playerResponse){var l=
this.playerResponse.annotations;if(l)for(var m=g.q(l),n=m.next();!n.done;n=m.next()){var p=n.value.playerAnnotationsUrlsRenderer;if(p){p.adsOnly&&(this.Wq=!0);p.allowInPlaceSwitch&&(this.gv=!0);var r=p.loadPolicy;r&&(this.annotationsLoadPolicy=cCa[r]);var t=p.invideoUrl;t&&(this.rg=jv(t));this.Js=!0;break}}var w=this.playerResponse.attestation;w&&IE(this,w);var x=this.playerResponse.heartbeatParams;if(x){var y=x.heartbeatToken;y&&(this.drmSessionId=x.drmSessionId||"",this.heartbeatToken=y,this.WB=
Number(x.intervalMilliseconds),this.XB=Number(x.maxRetries),this.YB=!!x.softFailOnError,this.gC=!!x.useInnertubeHeartbeatsForDrm,this.Jq=!0)}var D=this.playerResponse.messages;D&&lma(this,D);var F=this.playerResponse.multicamera;if(F){var G=F.playerLegacyMulticameraRenderer;if(G){var O=G.metadataList;O&&(this.ID=O,this.Tk=Wp(O))}}var K=this.playerResponse.overlay;if(K){var Ja=K.playerControlsOverlayRenderer;if(Ja){var va=Ja.controlBgHtml;null!=va?(this.bj=va,this.Kc=!0):(this.bj="",this.Kc=!1);if(Ja.mutedAutoplay){var Va=
Ja.mutedAutoplay.playerMutedAutoplayOverlayRenderer;if(Va&&Va.endScreen){var Jb=Va.endScreen.playerMutedAutoplayEndScreenRenderer;Jb&&Jb.text&&(this.KD=g.U(Jb.text))}}else this.mutedAutoplay=!1}}var bb=this.playerResponse.playabilityStatus;if(bb){var Yd=bb.backgroundability;Yd&&Yd.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var Xc=bb.offlineability;Xc&&Xc.offlineabilityRenderer.offlineable&&(this.offlineable=!0);var Fi=bb.contextParams;Fi&&(this.contextParams=Fi);var Gi=bb.pictureInPicture;
Gi&&Gi.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);bb.playableInEmbed&&(this.allowEmbed=!0);var Eh=bb.ypcClickwrap;if(Eh){var Hi=Eh.playerLegacyDesktopYpcClickwrapRenderer,ef=Eh.ypcRentalActivationRenderer;if(Hi)this.Hq=Hi.durationMessage||"",this.ao=!0;else if(ef){var Gha=ef.durationMessage;this.Hq=Gha?g.U(Gha):"";this.ao=!0}}var Sl=bb.errorScreen;if(Sl){if(Sl.playerLegacyDesktopYpcTrailerRenderer){var qe=Sl.playerLegacyDesktopYpcTrailerRenderer;this.Ou=qe.trailerVideoId||"";var Hha=
Sl.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var Iy=Hha&&Hha.ypcTrailerRenderer}else if(Sl.playerLegacyDesktopYpcOfferRenderer)qe=Sl.playerLegacyDesktopYpcOfferRenderer;else if(Sl.ypcTrailerRenderer){Iy=Sl.ypcTrailerRenderer;var Iha=Iy.fullVideoMessage;this.Iq=Iha?g.U(Iha):""}qe&&(this.Ju=qe.itemTitle||"",qe.itemUrl&&(this.Ku=qe.itemUrl),qe.itemBuyUrl&&(this.Hu=qe.itemBuyUrl),this.Iu=qe.itemThumbnail||"",this.Mu=qe.offerHeadline||"",this.Kq=qe.offerDescription||"",this.Nu=qe.offerId||"",this.Lu=
qe.offerButtonText||"",this.kz=qe.offerButtonFormattedText||null,this.Lq=qe.overlayDurationMsec||NaN,this.Iq=qe.fullVideoMessage||"",this.om=!0);if(Iy){var Jha=Iy.unserializedPlayerResponse;if(Jha)this.bo={raw_player_response:Jha};else{var Kha=Iy.playerVars;this.bo=Kha?Vp(Kha):null}this.om=!0}}}var Fh=this.playerResponse.playbackTracking;if(Fh){var Lha=a,Mha=GE(Fh.googleRemarketingUrl);Mha&&(this.googleRemarketingUrl=Mha);var Nha=GE(Fh.youtubeRemarketingUrl);Nha&&(this.youtubeRemarketingUrl=Nha);
var Oha=GE(Fh.ptrackingUrl);if(Oha){var AG=HE(Oha),Pha=AG.oid;Pha&&(this.SE=Pha);var Qha=AG.pltype;Qha&&(this.TE=Qha);var Rha=AG.ptchn;Rha&&(this.RE=Rha);var Sha=AG.ptk;Sha&&(this.St=encodeURIComponent(Sha))}var Tha=GE(Fh.ppvRemarketingUrl);Tha&&(this.ppvRemarketingUrl=Tha);var Uha=GE(Fh.qoeUrl);if(Uha){for(var Jy=g.Xp(Uha),Vha=g.q(Object.keys(Jy)),lV=Vha.next();!lV.done;lV=Vha.next()){var Wha=lV.value,mV=Jy[Wha];Jy[Wha]=Array.isArray(mV)?mV.join(","):mV}var Xha=Jy.cat;Xha&&(this.Tp=Xha);var Yha=
Jy.live;Yha&&(this.hx=Yha)}var Ky=GE(Fh.remarketingUrl);if(Ky){this.remarketingUrl=Ky;var Zha=HE(Ky);Zha.foc_id&&(this.Rc.focEnabled=!0);var $ha=Zha.data;$ha&&(this.Rc.rmktEnabled=!0,$ha.engaged&&(this.Rc.engaged="1"));this.Rc.baseUrl=zd(Ky)+vd(g.xd(5,Ky))}var aia=GE(Fh.videostatsPlaybackUrl);if(aia){var Jd=HE(aia),bia=Jd.adformat;bia&&(Lha.adformat=bia);var cia=Jd.aqi;cia&&(Lha.ad_query_id=cia);var dia=Jd.autoplay;dia&&(this.Bk="1"==dia);var eia=Jd.autonav;eia&&(this.Cl="1"==eia);var fia=Jd.delay;
fia&&(this.Wg=g.rd(fia));var gia=Jd.ei;gia&&(this.eventId=gia);"adunit"===Jd.el&&(this.Bk=!0);var hia=Jd.feature;hia&&(this.Wp=hia);var iia=Jd.list;iia&&(this.playlistId=iia);var jia=Jd.of;jia&&(this.Ox=jia);var kia=Jd.osid;kia&&(this.osid=kia);var lia=Jd.referrer;lia&&(this.referrer=lia);var mia=Jd.sdetail;mia&&(this.au=mia);var nia=Jd.ssrt;nia&&(this.kq="1"==nia);var nV=Jd.subscribed;nV&&(this.subscribed="1"==nV,this.Rc.subscribed=nV);var oia=Jd.uga;oia&&(this.userGenderAge=oia);var pia=Jd.upt;
pia&&(this.zu=pia);var qia=Jd.vm;qia&&(this.videoMetadata=qia)}var ria=GE(Fh.videostatsWatchtimeUrl);if(ria){var sia=HE(ria).ald;sia&&(this.Vq=sia)}var Ly=this.ca("use_player_params_for_passing_desktop_conversion_urls");if(Fh.promotedPlaybackTracking){var Kd=Fh.promotedPlaybackTracking;Kd.startUrls&&(Ly||(this.Vt=Kd.startUrls[0]),this.Wt=Kd.startUrls);Kd.firstQuartileUrls&&(Ly||(this.Yx=Kd.firstQuartileUrls[0]),this.Zx=Kd.firstQuartileUrls);Kd.secondQuartileUrls&&(Ly||(this.ay=Kd.secondQuartileUrls[0]),
this.by=Kd.secondQuartileUrls);Kd.thirdQuartileUrls&&(Ly||(this.dy=Kd.thirdQuartileUrls[0]),this.ey=Kd.thirdQuartileUrls);Kd.completeUrls&&(Ly||(this.Wx=Kd.completeUrls[0]),this.Xx=Kd.completeUrls);Kd.engagedViewUrls&&(1<Kd.engagedViewUrls.length&&g.lr(new Iq("There are more than one engaged_view_urls.")),this.In=Kd.engagedViewUrls[0])}}var tia=this.playerResponse.playerAds;if(tia)for(var NHa=a,uia=g.q(tia),oV=uia.next();!oV.done;oV=uia.next()){var via=oV.value;if(via){var wia=via.playerLegacyDesktopWatchAdsRenderer;
if(wia){var Ss=wia.playerAdParams;if(Ss){"1"==Ss.autoplay&&(this.Bk=!0);this.adSafetyReason=Ss.encodedAdSafetyReason||null;void 0!==Ss.showContentThumbnail&&(this.lq=!!Ss.showContentThumbnail);NHa.enabled_engage_types=Ss.enabledEngageTypes;break}}}}var re=this.playerResponse.playerConfig;if(re){var My=re.manifestlessWindowedLiveConfig;if(My){var xia=Number(My.minDvrSequence),yia=Number(My.maxDvrSequence),zia=Number(My.minDvrMediaTimeMs),Aia=Number(My.maxDvrMediaTimeMs);xia&&(this.Rd=xia);zia&&(this.tj=
zia/1E3);yia&&(this.hg=yia);Aia&&(this.Jl=Aia/1E3)}var pV=re.daiConfig;if(pV){pV.enableDai&&(this.Jc=!0);var Bia=pV.enableServerStitchedDai;Bia&&(this.enableServerStitchedDai=Bia)}var BG=re.audioConfig;if(BG){var Cia=BG.loudnessDb;null!=Cia&&(this.Yp=Cia);BG.audioMuted&&(this.Wk=!0);BG.muteOnStart&&(this.Wk=!0)}var Dia=re.playbackEndConfig;if(Dia){var Eia=Dia.endSeconds;Eia&&this.mutedAutoplay&&(this.endSeconds=Eia)}var CG=re.fairPlayConfig;if(CG){var Fia=CG.certificate;Fia&&(this.Zg=AB(Fia));var Gia=
Number(CG.keyRotationPeriodMs);0<Gia&&(this.Dr=Gia);var Hia=Number(CG.keyPrefetchMarginMs);0<Hia&&(this.Cr=Hia)}var DG=re.playbackStartConfig;if(DG){this.Tx=Number(DG.startSeconds);var Iia=DG.liveUtcStartSeconds;Iia&&(this.liveUtcStartSeconds=Number(Iia));var qV=DG.startPosition;if(qV){var Jia=qV.utcTimeMillis;Jia&&(this.liveUtcStartSeconds=.001*Number(Jia));var Kia=qV.streamTimeMillis;Kia&&(this.pu=.001*Number(Kia))}}else{var rV=re.skippableSegmentsConfig;if(rV){var Lia=rV.introSkipDurationMs;Lia&&
(this.Nw=Number(Lia)/1E3);var Mia=rV.outroSkipDurationMs;Mia&&(this.Nx=Number(Mia)/1E3)}}var sV=re.skippableIntroConfig;if(sV){var Nia=Number(sV.startMs),Oia=Number(sV.endMs);isNaN(Nia)||isNaN(Oia)||(this.Bl=Nia,this.mk=Oia)}var Pia=re.streamSelectionConfig;Pia&&(this.kj=Number(Pia.maxBitrate));var Qia=re.visualizerConfig;Qia&&Qia.isVisualizerEligible&&(this.isVisualizerEligible=!0);var Ria=re.vrConfig;Ria&&(this.Fl="1"==Ria.partialSpherical);var Ny=re.webDrmConfig;if(Ny){Ny.skipWidevine&&(this.TF=
!0);var Sia=Ny.widevineServiceCert;Sia&&(this.Zn=AB(Sia));Ny.useCobaltWidevine&&(this.useCobaltWidevine=!0);Ny.startWithNoQualityConstraint&&(this.Eo=!0)}var Tia=re.mediaCommonConfig;if(Tia){var EG=Tia.dynamicReadaheadConfig;EG&&(this.maxReadAheadMediaTimeMs=EG.maxReadAheadMediaTimeMs||NaN,this.minReadAheadMediaTimeMs=EG.minReadAheadMediaTimeMs||NaN,this.readAheadGrowthRateMs=EG.readAheadGrowthRateMs||NaN)}}var bk=this.playerResponse.streamingData;if(bk){var Uia=bk.adaptiveFormats;if(Uia){for(var Via=
[],Wia=g.q(Uia),Gh=Wia.next();!Gh.done;Gh=Wia.next()){var Db=Gh.value,tV=Db.indexRange,uV=Db.initRange,sc={itag:Db.itag,url:Db.url,index:tV?tV.start+"-"+tV.end:"0-0",bitrate:Db.bitrate,init:uV?uV.start+"-"+uV.end:"0-0",type:Db.mimeType,clen:Db.contentLength,lmt:Db.lastModified,xtags:Db.xtags},FG=Db.audioTrack;if(FG){var Xia=FG.displayName;Xia&&(sc.name=Xia,sc.audio_track_id=FG.id,FG.audioIsDefault&&(sc.isDefault="1"))}var Oy=Db.captionTrack;Oy&&(sc.caption_display_name=Oy.displayName,sc.caption_vss_id=
Oy.vssId,sc.caption_language_code=Oy.languageCode,sc.caption_kind=Oy.kind);var Yia=Db.cipher||Db.signatureCipher;if(Yia){var vV=Vp(Yia);sc.sp=vV.sp;sc.s=vV.s;sc.url=vV.url}else sc.url=Db.url;var Zia=Db.width,$ia=Db.height;null!=Zia&&null!=$ia&&(sc.size=Zia+"x"+$ia);var aja=Db.fps;aja&&(sc.fps=aja);var bja=Db.type;bja&&(sc.stream_type=iCa[bja]);var cja=Db.projectionType;cja&&(sc.projection_type=fCa[cja]);var dja=Db.stereoLayout;dja&&(sc.stereo_layout=hCa[dja]);var eja=Db.spatialAudioType;eja&&(sc.spatial_audio_type=
gCa[eja]);var fja=Db.drmFamilies;if(fja){for(var gja=[],hja=g.q(fja),wV=hja.next();!wV.done;wV=hja.next())gja.push(H1[wV.value]);sc.drm_families=gja.join(",")}var ija=Db.qualityLabel;ija&&(sc.quality_label=ija);var jja=Db.targetDurationSec;jja&&(sc.target_duration_sec=jja);var kja=Db.maxDvrDurationSec;kja&&(sc.max_dvr_duration_sec=kja);var lja=Db.audioSampleRate;lja&&(sc.audio_sample_rate=lja);var mja=Db.audioChannels;mja&&(sc.audio_channels=mja);var nja=FE(Db);nja&&(sc.eotf=nja);var oja=Db.colorInfo;
if(oja){var pja=oja.primaries;if(pja){var qja=dCa[pja];qja&&(sc.primaries=qja)}}var rja=Db.loudnessDb;Db.itag&&null!=rja&&this.ca("html5_enable_per_format_loudness")&&(this.Rx[Db.itag.toString()]=rja);Via.push(g.Hd(sc))}this.adaptiveFormats=Via.join(",")}var xV=bk.formats;if(xV){var Py=[],sja=g.q(xV);for(Gh=sja.next();!Gh.done;Gh=sja.next()){var yV=Gh.value;Py.push(yV.itag+"/"+yV.width+"x"+yV.height)}this.ew=Py.join(",");Py=[];var tja=g.q(xV);for(Gh=tja.next();!Gh.done;Gh=tja.next()){var Ts=Gh.value,
Qy={itag:Ts.itag,type:Ts.mimeType,quality:Ts.quality},uja=Ts.url;uja&&(Qy.url=uja);var vja=Ts.cipher||Ts.signatureCipher;if(vja){var zV=Vp(vja);Qy.sp=zV.sp;Qy.s=zV.s;Qy.url=zV.url}Py.push(g.Hd(Qy))}this.Eq=Py.join(",")}var AV=bk.hlsFormats;if(AV){var wja=re||null,GG={};if(wja){var BV=wja.audioPairingConfig;if(BV&&BV.pairs)for(var xja=g.q(BV.pairs),CV=xja.next();!CV.done;CV=xja.next()){var yja=CV.value,DV=yja.videoItag;GG[DV]||(GG[DV]=[]);GG[DV].push(yja.audioItag)}}for(var zja={},Aja=g.q(AV),Ko=Aja.next();!Ko.done;Ko=
Aja.next()){var Bja=Ko.value;zja[Bja.itag]=Bja.bitrate}var Cja=[],Dja=g.q(AV);for(Ko=Dja.next();!Ko.done;Ko=Dja.next()){var ff=Ko.value,Ii={itag:ff.itag,type:ff.mimeType,url:ff.url,bitrate:ff.bitrate,width:ff.width,height:ff.height,fps:ff.fps},HG=ff.audioTrack;if(HG){var Eja=HG.displayName;Eja&&(Ii.name=Eja,Ii.audio_track_id=HG.id,HG.audioIsDefault&&(Ii.is_default="1"))}if(ff.drmFamilies){for(var Fja=[],Gja=g.q(ff.drmFamilies),EV=Gja.next();!EV.done;EV=Gja.next())Fja.push(H1[EV.value]);Ii.drm_families=
Fja.join(",")}var IG=GG[ff.itag];if(IG&&IG.length){Ii.audio_itag=IG.join(",");var Hja=zja[IG[0]];Hja&&(Ii.bitrate+=Hja)}var Ija=FE(ff);Ija&&(Ii.eotf=Ija);ff.audioChannels&&(Ii.audio_channels=ff.audioChannels);Cja.push(g.Hd(Ii))}this.hlsFormats=Cja.join(",")}var FV=bk.licenseInfos;if(FV&&0<FV.length){for(var Jja={},Kja=g.q(FV),GV=Kja.next();!GV.done;GV=Kja.next()){var Lja=GV.value,Mja=Lja.drmFamily,Nja=Lja.url;Mja&&Nja&&(Jja[H1[Mja]]=Nja)}this.zd=Jja}var Oja=bk.drmParams;Oja&&(this.drmParams=Oja);
var Pja=bk.dashManifestUrl;Pja&&(this.If=g.Ld(Pja,{cpn:this.clientPlaybackNonce}));var Qja=bk.hlsManifestUrl;Qja&&(this.hlsvp=Qja);var Rja=bk.probeUrl;Rja&&(this.probeUrl=jv(g.Ld(Rja,{cpn:this.clientPlaybackNonce})))}var Sja=this.playerResponse.trackingParams;Sja&&(this.Ag=Sja);var ic=this.playerResponse.videoDetails;if(ic){var Ji=a,HV=ic.videoId;HV&&(this.videoId=HV,Ji.video_id||(Ji.video_id=HV));if(!this.ca("web_player_uid_killswitch")){var Tja=ic.channelId;Tja&&(this.Rc.uid=Tja.substr(2))}var IV=
ic.title;IV&&(this.title=IV,Ji.title||(Ji.title=IV));var JV=ic.lengthSeconds;JV&&(this.lengthSeconds=Number(JV),Ji.length_seconds||(Ji.length_seconds=JV));var Uja=ic.keywords;Uja&&(this.keywords=VE(Uja));var KV=ic.channelId;KV&&(this.Ng=KV,Ji.ucid||(Ji.ucid=KV));var Vja=ic.viewCount;Vja&&(this.rawViewCount=Number(Vja));var LV=ic.author;LV&&(this.author=LV,Ji.author||(Ji.author=LV));var Wja=ic.shortDescription;Wja&&(this.shortDescription=Wja);var Xja=ic.isCrawlable;Xja&&(this.isListed=Xja);var Yja=
ic.musicVideoType;Yja&&(this.musicVideoType=Yja);var MV=ic.isLive;null!=MV&&(this.isLivePlayback=MV);if(MV||ic.isUpcoming)this.isPremiere=!ic.isLiveContent;var Zja=ic.thumbnail;Zja&&(this.Hh=EE(Zja));var $ja=re||null,NV=a;ic.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);ic.isUpcoming&&(this.isUpcoming=!0);if(ic.isPostLiveDvr)this.rf=!0;else{var OV=!1;if(this.li)this.allowLiveDvr=XF(!0),this.isLivePlayback=!0;else if(ic.isLive){NV.livestream="1";this.allowLiveDvr=XF(!!ic.isLiveDvrEnabled);
this.Fg=27;ic.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var aka=ic.latencyClass;aka&&(this.latencyClass=eCa[aka]||"UNKNOWN");this.Go=!0;var bka=ic.liveChunkReadahead;bka&&(this.liveChunkReadahead=bka);var Ry=$ja&&$ja.livePlayerConfig;if(Ry){Ry.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);Ry.hasSubfragmentedWebm&&(this.Vm=!0);Ry.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var cka=Ry.liveExperimentalContentId;cka&&(this.liveExperimentalContentId=Number(cka))}OV=
!0}else ic.isUpcoming&&(OV=!0);OV&&(this.isLivePlayback=!0,NV.adformat&&"8"!==NV.adformat.split("_")[1]||(this.ca("live_fresca_v2")?this.me.push("heartbeat"):(this.Jr=!0,this.me.push("fresca"))),this.Ar=this.Jq=!0)}var dka=ic.isPrivate;dka&&(this.isPrivate=S(this.isPrivate,dka))}if(bb){var eka=ic||null,fka=!1,Us=bb.errorScreen;fka=Us&&(Us.playerLegacyDesktopYpcOfferRenderer||Us.playerLegacyDesktopYpcTrailerRenderer||Us.ypcTrailerRenderer)?!0:eka&&eka.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(bb.status);
if(!fka){this.errorCode="150";var JG=Us&&Us.playerErrorMessageRenderer;if(JG){this.playerErrorMessageRenderer=JG;var gka=JG.reason;gka&&(this.errorReason=g.U(gka));var PV=JG.subreason;PV&&(this.Yh=g.U(PV),this.Hr=PV)}else this.errorReason=bb.reason||null;var QV=bb.status;if("LOGIN_REQUIRED"===QV)this.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===QV)this.errorDetail="2";else if("AGE_CHECK_REQUIRED"===QV){var hka=bb.errorScreen,ika=hka&&hka.playerKavRenderer;this.errorDetail=ika&&ika.kavUrl?"4":
"3"}else this.errorDetail=bb.isBlockedInRestrictedMode?"5":"0"}}var jka=this.playerResponse.interstitialPods;jka&&kma(this,jka);this.rg&&this.eventId&&(this.rg=$p(this.rg,{ei:this.eventId}));var RV=this.playerResponse.captions;RV&&RV.playerCaptionsTracklistRenderer&&jma(this,RV.playerCaptionsTracklistRenderer);(this.clipConfig=this.playerResponse.clipConfig)&&null!=this.clipConfig.startTimeMs&&(this.Tx=.001*Number(this.clipConfig.startTimeMs));(this.accountLinkingConfig=this.playerResponse.accountLinkingConfig)&&
this.accountLinkingConfig.alsParam&&(this.sm=this.accountLinkingConfig.alsParam);this.ca("web_player_include_innertube_commands")&&this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&KE(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}aF(this,a);a.queue_info&&(this.queueInfo=a.queue_info);var kka=a.hlsdvr;null!=kka&&(this.allowLiveDvr=XF("1"==
kka));this.adQueryId=a.ad_query_id||null;this.adSafetyReason||(this.adSafetyReason=a.encoded_ad_safety_reason||null);this.jA=a.agcid||null;this.Yu=a.ad_id||null;this.dv=a.ad_sys||null;this.Qv=a.encoded_ad_playback_context||null;this.Wk=S(this.Wk,a.infringe||a.muted);this.authKey=a.authkey;this.kd=a.authuser;this.rA=a.autonav_watch_endpoint||null;this.mutedAutoplay=S(this.mutedAutoplay,a&&a.playmuted)&&this.ca("embeds_enable_muted_autoplay");this.Go=S(this.Go,a.enable_cardio);this.Ar=S(this.Ar,a.enable_cardio_before_playback);
this.endSeconds=CB(this.endSeconds,this.Nx||a.end||a.endSeconds);this.Ag=DB(this.Ag,a.itct);this.Tw=S(this.Tw,a.noiba);this.Gs=S(this.Gs,a.is_live_destination);this.isLivePlayback=S(this.isLivePlayback,a.live_playback);this.rf=S(this.rf,a.post_live_playback);this.isMdxPlayback=S(this.isMdxPlayback,a.mdx);var KG=a.mdx_control_mode;KG&&(this.mdxControlMode="number"===typeof KG?KG:g.rd(KG));this.Rw=S(this.Rw,a.is_inline_playback_no_ad);this.Ci=CB(this.Ci,a.reload_count);this.reloadReason=DB(this.reloadReason,
a.reload_reason);this.lq=S(this.lq,a.show_content_thumbnail);this.Zw=S(this.Zw,a.utpsa);this.Hy=S(this.Hy,a.third_party_remapped_ad);this.cycToken=a.cyc||null;this.Ky=a.tkn||null;var lka=BE(a);0<Object.keys(lka).length&&(this.Hh=lka);this.Wf=DB(this.Wf,a.vvt);this.mdxEnvironment=DB(this.mdxEnvironment,a.mdx_environment);this.pM=a.osig;this.eventId||(this.eventId=a.eventid);this.osid||(this.osid=a.osid);this.playlistId=DB(this.playlistId,a.list);a.index&&this.ca("embeds_wexit_list_ajax_migration")&&
(this.playlistIndex=void 0===this.playlistIndex?CB(0,a.index):CB(this.playlistIndex,a.index));this.fF=a.pyv_view_beacon_url;this.iF=a.pyv_quartile25_beacon_url;this.jF=a.pyv_quartile50_beacon_url;this.kF=a.pyv_quartile75_beacon_url;this.hF=a.pyv_quartile100_beacon_url;var mka=a.remarketing_url;mka&&(this.remarketingUrl=mka);var nka=a.ppv_remarketing_url;nka&&(this.ppvRemarketingUrl=nka);var oka=a.session_data;!this.AF&&oka&&(this.AF=Tp(oka).feature);this.Pw=1==CB(this.Pw?1:0,a.is_fling);this.vnd=
CB(this.vnd,a.vnd);this.Mm=DB(this.Mm,a.force_ads_url);this.Tf=DB(this.Tf,a.ctrl);this.Le=DB(this.Le,a.ytr);this.Xi=a.ytrcc;this.CF=a.ytrexp;this.DF=a.ytrext;this.Up=DB(this.Up,a.adformat);this.gz=DB(this.gz,a.attrib);this.slotPosition=CB(this.slotPosition,a.slot_pos);this.breakType=a.break_type;this.kq=S(this.kq,a.ssrt);this.videoId=FB(a)||this.videoId;this.Nh=DB(this.Nh,a.vss_credentials_token);this.qg=DB(this.qg,a.vss_credentials_token_type);this.nm=S(this.nm,a.audio_only);this.iz=S(this.iz,a.aac_high);
this.Dk=S(this.Dk,a.prefer_low_quality_audio);this.Tp=DB(this.Tp,a.qoe_cat);this.Jm=S(this.Jm,a.download_media);this.Xg=S(this.Xg,a.download_media_in_bg);this.ni=S(this.ni,a.prefer_gapless);a:{var SV=this.playerResponse;if(SV&&SV.adPlacements)for(var pka=g.q(SV.adPlacements),TV=pka.next();!TV.done;TV=pka.next()){var LG=TV.value.adPlacementRenderer;if(null!=LG&&"AD_PLACEMENT_KIND_START"==(LG.config&&LG.config.adPlacementConfig&&LG.config.adPlacementConfig.kind)){var qka=!0;break a}}qka=!1}qka&&(this.adModule=
!0,this.me.push("ad"));var rka=a.adaptive_fmts;rka&&(this.adaptiveFormats=rka);var ska=a.allow_embed;ska&&(this.allowEmbed="1"==ska);var tka=a.backgroundable;tka&&(this.backgroundable="1"==tka);var uka=a.autonav;uka&&(this.Cl="1"==uka);var vka=a.autoplay;vka&&(this.Bk="1"==vka);var wka=a.iv_load_policy;wka&&(this.annotationsLoadPolicy=BB(this.annotationsLoadPolicy,wka,WB));var xka=a.cc_lang_pref;xka&&(this.captionsLanguagePreference=DB(xka,this.captionsLanguagePreference));var yka=a.cc_load_policy;
yka&&(this.Si=BB(this.Si,yka,WB));var zka=a.cached_load;zka&&(this.ov=S(this.ov,zka));"0"==a.dash&&(this.UA=!0);var Aka=a.dashmpd;Aka&&(this.If=g.Ld(Aka,{cpn:this.clientPlaybackNonce}));var Bka=a.delay;Bka&&(this.Wg=g.rd(Bka));var Cka=this.Nx||a.end;void 0!=Cka&&(this.clipEnd=CB(this.clipEnd,Cka));var Dka=a.fmt_list;Dka&&(this.ew=Dka);a.fresca_preroll&&this.me.push("fresca");a.heartbeat_preroll&&this.me.push("heartbeat");this.Xm=-Math.floor(10*Math.random());this.pp=-Math.floor(40*Math.random());
var Eka=a.is_listed;Eka&&(this.isListed=S(this.isListed,Eka));var Fka=a.is_private;Fka&&(this.isPrivate=S(this.isPrivate,Fka));var Gka=a.pipable;Gka&&(this.pipable=S(this.pipable,Gka));this.Cy=(this.ev=this.pipable&&this.Oa.Ks)&&(!this.Oa.showMiniplayerButton||this.ca("web_player_pip"));var Hka=a.paid_content_overlay_duration_ms;Hka&&(this.paidContentOverlayDurationMs=g.rd(Hka));var Ika=a.paid_content_overlay_text;Ika&&(this.paidContentOverlayText=Ika);var Jka=a.url_encoded_fmt_stream_map;Jka&&(this.Eq=
Jka);var Kka=a.hls_formats;Kka&&(this.hlsFormats=Kka);var Lka=a.hlsvp;Lka&&(this.hlsvp=Lka);var MG=a.length_seconds;MG&&(this.lengthSeconds="string"===typeof MG?g.rd(MG):MG);var NG=a.live_start_walltime;NG&&(this.Ps="number"===typeof NG?NG:g.rd(NG));var OG=a.live_manifest_duration;OG&&(this.fn="number"===typeof OG?OG:g.rd(OG));var Mka=a.player_params;Mka&&(this.playerParams=Mka);var Nka=a.partnerid;Nka&&(this.Fg=CB(this.Fg,Nka));var Oka=a.probe_url;Oka&&(this.probeUrl=jv(g.Ld(Oka,{cpn:this.clientPlaybackNonce})));
var Pka=a.profile_picture;Pka&&(this.bf=DB(Pka,this.bf));var UV=a.pyv_billable_url;UV&&gv(UV)&&(this.In=UV);var VV=a.pyv_conv_url;VV&&gv(VV)&&(this.gF=VV);WE(this,a);0<this.startSeconds||(this.lk=this.startSeconds=CB(this.startSeconds,this.Tx||this.Nw||a.start||a.startSeconds));var Qka=a.live_utc_start;null!=Qka&&(this.liveUtcStartSeconds=Number(Qka));var Rka=a.utc_start_millis;Rka&&(this.liveUtcStartSeconds=.001*Number(Rka));var Ska=a.stream_time_start_millis;Ska&&(this.pu=.001*Number(Ska));var Tka=
this.Nw||a.start;void 0==Tka||"1"==a.resume||this.isLivePlayback||(this.clipStart=CB(this.clipStart,Tka));var Uka=a.url_encoded_third_party_media;Uka&&(this.Qn=Wp(Uka));var WV=a.ypc_offer_button_formatted_text;if(WV){var Vka=JSON.parse(WV);this.kz=null!=Vka?Vka:null;this.NG=WV}var Wka=a.ypc_offer_button_text;Wka&&(this.Lu=Wka);var Xka=a.ypc_offer_description;Xka&&(this.Kq=Xka);var Yka=a.ypc_offer_headline;Yka&&(this.Mu=Yka);var Zka=a.ypc_full_video_message;Zka&&(this.Iq=Zka);var $ka=a.ypc_offer_id;
$ka&&(this.Nu=$ka);var ala=a.ypc_buy_url;ala&&(this.Hu=ala);var bla=a.ypc_item_thumbnail;bla&&(this.Iu=bla);var dla=a.ypc_item_title;dla&&(this.Ju=dla);var ela=a.ypc_item_url;ela&&(this.Ku=ela);var fla=a.ypc_vid;fla&&(this.Ou=fla);a.ypc_overlay_timeout&&(this.Lq=Number(a.ypc_overlay_timeout));var gla=a.ypc_trailer_player_vars;gla&&(this.bo=Vp(gla));var hla=a.ypc_original_itct;hla&&(this.DR=hla);this.Ng=DB(this.Ng,a.ucid);a.baseUrl&&(this.Rc.baseUrl=a.baseUrl);a.uid&&(this.Rc.uid=a.uid);a.oeid&&(this.Rc.oeid=
a.oeid);a.ieid&&(this.Rc.ieid=a.ieid);a.ppe&&(this.Rc.ppe=a.ppe);a.engaged&&(this.Rc.engaged=a.engaged);a.subscribed&&(this.Rc.subscribed=a.subscribed);this.Rc.focEnabled=S(this.Rc.focEnabled,a.focEnabled);this.Rc.rmktEnabled=S(this.Rc.rmktEnabled,a.rmktEnabled);this.ou=a.storyboard_spec||null;this.Qs=a.live_storyboard_spec||null;this.tC=a.iv_endscreen_url||null;this.Js=S(this.Js,a.iv3_module);this.Jr=S(this.Jr,a.fresca_module);this.Jq=S(this.Jq,a.ypc_license_checker_module);this.om=S(this.om,a.ypc_module);
this.ao=S(this.ao,a.ypc_clickwrap_module);this.om&&this.me.push("ypc");this.ao&&this.me.push("ypc_clickwrap");this.YE={video_id:a.video_id,eventid:a.eventid,cbrand:a.cbrand,cbr:a.cbr,cbrver:a.cbrver,c:a.c,cver:a.cver,ctheme:a.ctheme,cplayer:a.cplayer,cmodel:a.cmodel,cnetwork:a.cnetwork,cos:a.cos,cosver:a.cosver,cplatform:a.cplatform,user_age:a.user_age,user_display_image:a.user_display_image,user_display_name:a.user_display_name,user_gender:a.user_gender,csi_page_type:a.csi_page_type,csi_service_name:a.csi_service_name,
enablecsi:a.enablecsi,enabled_engage_types:a.enabled_engage_types};XE(this,a);qF(this)?fF(this)&&(this.isLivePlayback&&this.If?this.Vk=!0:this.Zg&&(this.kp=!0)):rF(this)?this.Vk=!0:!kF(this,this.adaptiveFormats)&&this.If&&(this.Vk=!0);var XV=a.adpings;XV&&(this.bv=XV?Vp(XV):null);var ila=a.feature;ila&&(this.Wp=ila);var jla=a.referrer;jla&&(this.referrer=jla);this.clientScreenNonce=DB(this.clientScreenNonce,a.csn);this.iu=CB(this.iu,a.root_ve_type);this.Ms=CB(this.Ms,a.kids_age_up_mode);void 0!=a.kids_app_info&&
(this.kidsAppInfo=a.kids_app_info);this.Dq=S(this.Dq,a.upg_content_filter_mode);var kla=a.unplugged_location_info;kla&&(this.Zd=kla);var lla=a.unplugged_partner_opt_out;lla&&(this.Tn=DB("",lla));this.vr=S(this.vr,a.disable_watch_next);this.hp=DB(this.hp,a.internal_ip_override);this.Uw=!!a.is_yto_interstitial;(this.interstitials.length||this.Uw)&&this.me.push("yto");var mla=a.sj;mla&&(this.sj=mla);a.nq&&(this.nq=a.nq)};
g.k.T=function(){return this.Oa};
g.k.ca=function(a){return g.R(this.Oa.experiments,a)};
g.k.gw=function(){return is()};
g.k.je=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.dE=function(){this.la()||(this.ma.C||this.ma.unsubscribe("refresh",this.dE,this),this.FA(-1))};
g.k.FA=function(a){if(!this.isLivePlayback||!this.Vc||"fairplay"!=this.Vc.flavor){var b=Qz(this.ma,this.ax);if(0<b.length&&(this.V("cuepointupdated",b,a),this.ax+=b.length,mF(this)&&UF(this))){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.V("ctmp","cuepoint","segNum."+a+";event."+c.event+";startSecs."+c.startSecs)}}};
g.k.Zq=function(a){var b=this;if(this.la())return Br();this.Bj=this.Gg=this.Ia=null;var c=this.Oa.deviceParams.c;this.ca("disable_rqs")||(this.Cj=/^rq/.test(this.clientPlaybackNonce)||/^r/.test(this.clientPlaybackNonce)&&/UNPLUGGED/.test(c)||UF(this));return uma(this,a).then(void 0,function(){return vma(b,a)}).then(void 0,function(){return wma(b)}).then(void 0,function(){return yma(b)})};
g.k.xe=function(){var a={};this.La&&(a.fmt=wu(this.La),this.Qc&&wu(this.Qc)!=wu(this.La)&&(a.afmt=wu(this.Qc)));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Wk&&(a.infringe=1);this.lj&&(a.splay=1);var b=AF(this);b&&(a.live=b);this.Bk&&(a.autoplay=1);this.au&&(a.sdetail=this.au);this.Fg&&(a.partnerid=this.Fg);this.osid&&(a.osid=this.osid);return a};
g.k.eg=function(){var a=g.mC(this.Oa)||this.ca("web_l3_storyboard");if(!this.Pg)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Pg=new QE(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.ma&&(c=Ob(this.ma.u).index)&&(this.Pg=new TE(b.spec,this.ma.isLive,c,a))}else this.ou?this.Pg=new QE(this.ou,this.lengthSeconds,void 0,!1,a):this.Qs&&this.ma&&(b=Ob(this.ma.u).index)&&
(this.Pg=new TE(this.Qs,this.ma.isLive,b,a));return this.Pg};
g.k.getStoryboardFormat=function(){if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.ou||this.Qs};
g.k.Ad=function(){return this.ma&&!isNaN(this.ma.Ad())?this.ma.Ad():mF(this)?0:this.lengthSeconds};
g.k.uc=function(){return this.ma&&!isNaN(this.ma.uc())?this.ma.uc():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.ma&&this.La){var b=this.ma.u[this.La.id];if(!b)return null;var c=b.index.eh(a);b=b.index.Ce(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.isValid=function(){return!this.la()&&!(!this.videoId&&!this.Qn)};
g.k.Dc=function(){return DF(this)&&!this.Vk&&!this.kp};
g.k.Gd=function(a){if(30==this.Fg)return(a=this.Hh["default.jpg"])?a:this.videoId?g.Ld("//docs.google.com/vt",{id:this.videoId,authuser:this.kd,authkey:this.authKey}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.Hh[a];return b||this.Oa.P||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:hC(this.Oa,this.videoId,a)};
g.k.Bg=function(){return this.isLivePlayback||this.rf||this.jp||!(!this.liveUtcStartSeconds||!this.fn)};
g.k.isOtf=function(){return!!this.ma&&(this.ma.isOtf||!this.rf&&!this.isLivePlayback&&this.ma.C)};
g.k.getAvailableAudioTracks=function(){return this.Ia?0<this.Ia.getAvailableAudioTracks().length?this.Ia.getAvailableAudioTracks():this.ys||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.Qc&&!Wv(this.Qc))return g.jb(this.getAvailableAudioTracks(),function(d){return d.id==a.Qc.id})||this.Bo;
if(this.ys){if(!this.gq)for(var b=g.q(this.ys),c=b.next();!c.done;c=b.next())if(c=c.value,c.u.getIsDefault()){this.gq=c;break}return this.gq||this.Bo}return this.Bo};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getPlaylistId=function(){return null};
g.k.Ka=function(){return this};
g.k.fk=function(){return this.Oa.getVideoUrl(this.videoId)};
g.k.mj=function(){return!!this.ma&&this.ma.mj()};
g.k.nj=function(){return!!this.ma&&this.ma.nj()};
g.k.ij=function(){return!!this.ma&&this.ma.ij()};
g.k.Ym=function(){return!!this.ma&&this.ma.Ym()};
g.k.isAd=function(){return!!this.adFormat};
g.k.lf=function(){return this.oauthToken||this.Oa.td};
g.k.jC=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.k.RF=function(){return this.Js};
g.k.zy=function(){return this.Jr};
g.k.Ay=function(){return this.Jq||this.ie};
g.k.jq=function(){return this.om||this.ie};
g.k.fv=function(){return gF(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){if(!(this.Vc&&this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webDrmConfig))return!1;var a="playready"===this.Vc.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForPlayready,b="fairplay"===this.Vc.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForFairplay;return!!("widevine"===this.Vc.flavor&&this.playerResponse.playerConfig.webDrmConfig.useInnertubeDrmService||a||b)};g.ZF.prototype.toString=function(){return this.type+this.id};g.u(g.$F,g.P);g.k=g.$F.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.gi=function(a){return this.loop||!!a||0<=this.index-1};
g.k.Ka=function(a,b,c){a=void 0!==a?a:this.index;a=this.items&&a in this.items?this.items[this.order[a]]:null;var d=null;a&&(b&&(a.autoplay="1"),c&&(a.autonav="1"),d=new g.UE(this.Oa,a),g.C(this,d),d.startSeconds=this.startSeconds||d.clipStart||0,this.listId&&(d.playlistId=this.listId.toString()));return d};
g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.Ns++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.Ns++}this.V("shuffle")};
g.k.Gd=function(a){a=a||"hqdefault.jpg";var b=this.Hh[a];if(b||this.Oa.P||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.dG.length)return hC(this.Oa,this.dG[0],a)};
g.k.getLength=function(){return this.length};
g.k.loadPlaylist=function(a,b){var c=this;this.VH&&g.oq(g.Ld(a,b),{format:"JSON",onSuccess:function(d,e){eG(c,e)},
onError:function(){return c.V("error")}})};
g.k.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
g.k.onReady=function(a){this.Vp=a;this.loaded&&g.Fo(this.Vp,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.fk=function(){return this.Oa.getVideoUrl(this.Ka().videoId,this.getPlaylistId())};
g.k.aa=function(){this.Vp=null;g.fg(this.items);g.P.prototype.aa.call(this)};gG.prototype.B=function(a,b){var c,d,e,f=null===(d=null===(c=b.context)||void 0===c?void 0:c.request)||void 0===d?void 0:d.consistencyTokenJars,h=null===(e=a.responseContext)||void 0===e?void 0:e.consistencyTokenJar;f&&h&&this.replace(f,h)};
gG.prototype.replace=function(a,b){for(var c=g.q(a),d=c.next();!d.done;d=c.next())delete this.u[d.value.encryptedTokenJarContents];fG(this,b)};hG.prototype.B=function(a){var b;a=null===(b=a.responseContext)||void 0===b?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.u=void 0)};var jG={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"};var Mma=/[&\?]action_proxy=1/,Lma=/[&\?]token=([\w-]*)/,Nma=/[&\?]video_id=([\w-]*)/,Oma=/[&\?]index=([\d-]*)/,Pma=/[&\?]m_pos_ms=([\d-]*)/,Qma=/[&\?]vvt=([\w-]*)/,Rma=/[&\?]mt=([\d-]*)/,Ima="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),xG="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),
vG={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},wG={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},yG={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};
nG.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return tG(this,a,b);var d=1===this.B;d&&this.u.app.N.tick("a_bid_s");var e=Fma();if(null!==e)return d&&this.u.app.N.tick("a_bid_f"),tG(this,a,b,e);e=Gma();d&&Jm(e,function(){c.u.app.N.tick("a_bid_f")});
return e.then(function(f){return tG(c,a,b,f)})};
nG.prototype.reset=function(){this.D=this.B=1};g.k=PG.prototype;g.k.Lo=function(a){a:{var b=g.q(this.C.u.u.values());for(var c=b.next();!c.done;c=b.next()){c=g.q(c.value.values());for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.slot.slotId===a&&"scheduled"===d.u){b=!0;break a}}b=!1}b?this.B.Lo(a):this.u().Lo(a)};
g.k.wo=function(){a:{var a=WP(this.C.u,"slot_type_above_feed_1");a=g.q(a.values());for(var b=a.next();!b.done;b=a.next())if(VP(b.value)){a=!0;break a}a=!1}a?this.B.wo():this.u().wo()};
g.k.Fr=function(a){this.u().Fr(a)};
g.k.kt=function(){this.u().kt()};
g.k.jt=function(){this.u().jt()};
g.k.tp=function(){this.u().tp()};g.u(QG,g.B);g.u(WG,$a);var Bpa=new Map([[0,"trigger_category_layout_exit_normal"],[1,"trigger_category_layout_exit_skip"],[2,"trigger_category_layout_exit_mute"],[3,"trigger_category_slot_expiration"],[4,"trigger_category_slot_fulfillment"],[5,"trigger_category_slot_entry"],[6,"trigger_category_layout_exit_user_input_submitted"]]);g.u(gH,g.B);gH.prototype.si=function(a,b,c,d,e,f){var h=this;VQ(this.ya.get())&&!e&&Wma(d.filter(VG),a,f);var l=TG(this.Ca.get(),1);RG(this.kb.get(),"opportunity_type_player_response_received",function(){return UG(h.fc.get(),c,d,a,b,e,l)});
nM(this.ya.get())&&Mra(this.Zu)};
gH.prototype.Kl=function(){};g.u(iH,g.tD);iH.prototype.deactivate=function(){this.B=!0};oH.prototype.showCompanion=function(a,b){b.contentVideoId||(b.contentVideoId=a);this.u.va("updateKevlarOrC3Companion",b)};pH.prototype.ip=function(){return!1};
pH.prototype.ea=function(){return function(){return null}};var rH=null;g.u(qH,g.P);qH.prototype.Po=function(a){return this.u.hasOwnProperty(a)?this.u[a].Po():{}};
g.Ia("ytads.bulleit.getVideoMetadata",function(a){return sH().Po(a)},void 0);
g.Ia("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=sH();c=$ma(c);null!==c&&d.V(c,{queryId:a,viewabilityString:b})},void 0);g.u(vH,pH);g.k=vH.prototype;g.k.qf=function(){return!0};
g.k.De=function(){return!1};
g.k.isSkippable=function(){return null!=this.ra};
g.k.getVideoUrl=function(){return this.Z};
g.k.ip=function(){return!0};g.u(yH,pH);yH.prototype.qf=function(){return!0};
yH.prototype.De=function(){return!0};g.u(FH,pH);FH.prototype.qf=function(){return!0};
FH.prototype.De=function(){return!1};
FH.prototype.ip=function(){return!0};
FH.prototype.ea=function(){return function(){return g.te("video-ads")}};GH.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.u.u};var Fqa={OR:"FINAL",QR:"AD_BREAK_LENGTH",RR:"AD_CPN",SR:"AH",TR:"AD_MT",UR:"ASR",WR:"AW",DS:"NM",ES:"NX",FS:"NY",HS:"CONN",JS:"CPN",SS:"DV_VIEWABILITY",ZS:"ERRORCODE",cT:"ERROR_MSG",eT:"EI",oT:"GOOGLE_VIEWABILITY",ET:"IAS_VIEWABILITY",PT:"LACT",TT:"LIVE_TARGETING_CONTEXT",fU:"I_X",gU:"I_Y",iU:"MT",kU:"MIDROLL_POS",lU:"MIDROLL_POS_MS",mU:"MOAT_INIT",nU:"MOAT_VIEWABILITY",MU:"P_H",NU:"PV_H",OU:"PV_W",PU:"P_W",RU:"TRIGGER_TYPE",iV:"SDKV",rV:"SLOT_POS",BV:"SURVEY_LOCAL_TIME_EPOCH_S",AV:"SURVEY_ELAPSED_MS",
GH:"VIS",SV:"VIEWABILITY",TV:"VED",UV:"VOL",VV:"WT",ZV:"YT_ERROR_CODE"};var lna=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];QH.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.on(a.baseUrl,jna(b,c,d)),f;if(a.headers)for(var h=g.q(a.headers),l=h.next();!l.done;l=h.next())switch(l.value.headerType){case "USER_AUTH":var m=this.lf();m&&(f||(f={}),f.Authorization="Bearer "+m);break;case "PLUS_PAGE_ID":var n=this.B();n&&(f||(f={}),f["X-Goog-PageId"]=n)}g.at(e,void 0,d,f)}catch(p){}};g.u(RH,QH);RH.prototype.lf=function(){return this.u?this.u.lf():""};
RH.prototype.B=function(){return this.u?this.u.T().pageId:""};SH.prototype.send=function(a,b,c){try{var d=a.match(wd);if("https"===d[1])var e=a;else d[1]="https",e=ud("https",d[2],d[3],d[4],d[5],d[6],d[7]);var f=nn(e);a=[];cq(e)&&(a.push({headerType:"USER_AUTH"}),a.push({headerType:"PLUS_PAGE_ID"}));this.u.send({baseUrl:e,scrubReferrer:f,headers:a},b,c)}catch(h){}};g.u(TH,g.B);g.u($H,g.B);g.u(yI,g.P);g.k=yI.prototype;g.k.Po=function(){return{}};
g.k.my=function(){};
g.k.Qb=function(a){this.Ug();this.V(a)};
g.k.Ug=function(){BI(this,this.Z,3);this.Z=[]};
g.k.getDuration=function(){return this.J.getDuration(2,!1)};
g.k.hk=function(){var a=this.Fa;aI(a)||!nI(a,"impression")&&!nI(a,"start")||nI(a,"abandon")||nI(a,"complete")||nI(a,"skip")||(cI(a)?mI(a,"pause"):gI(a,"pause"))};
g.k.gj=function(){this.W||this.F||this.Ic()};
g.k.Ae=function(){hI(this.Fa,this.getDuration())};
g.k.Pd=function(){var a=this.Fa;!nI(a,"impression")||nI(a,"skip")||nI(a,"complete")||mI(a,"abandon")};
g.k.ik=function(){var a=this.Fa;cI(a)?gI(a,"skip"):!nI(a,"impression")||nI(a,"abandon")||nI(a,"complete")||gI(a,"skip")};
g.k.Ic=function(){if(!this.F){var a=zI(this);this.Fa.C.AD_CPN=a;a=this.Fa;if(cI(a)){var b=a.u.getCurrentTime(2,!1);kI(a,"impression",b,0)}else gI(a,"impression");gI(a,"start");aI(a)||a.u.isFullscreen()&&mI(a,"fullscreen");this.F=!0}};
g.k.Bd=function(a){a=a||"";var b="",c="",d="";UH(this.J)&&(b=g.lI(this.J,2).state,this.J.app.F&&(c=this.J.app.F.jg(),null!=this.J.app.F.qh()&&(d=this.J.app.F.qh())));var e=this.Fa;e.C=PH(e.C,NH(3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));gI(e,"error")};
g.k.nf=function(){};
g.k.lF=function(){this.V("adactiveviewmeasurable")};
g.k.mF=function(){this.V("adfullyviewableaudiblehalfdurationimpression")};
g.k.nF=function(){this.V("adoverlaymeasurableimpression")};
g.k.oF=function(){this.V("adoverlayunviewableimpression")};
g.k.pF=function(){this.V("adoverlayviewableendofsessionimpression")};
g.k.qF=function(){this.V("adoverlayviewableimmediateimpression")};
g.k.rF=function(){this.V("adviewableimpression")};
g.k.dispose=function(){this.la()||(this.Ug(),this.B.unsubscribe("adactiveviewmeasurable",this.lF,this),this.B.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.mF,this),this.B.unsubscribe("adoverlaymeasurableimpression",this.nF,this),this.B.unsubscribe("adoverlayunviewableimpression",this.oF,this),this.B.unsubscribe("adoverlayviewableendofsessionimpression",this.pF,this),this.B.unsubscribe("adoverlayviewableimmediateimpression",this.qF,this),this.B.unsubscribe("adviewableimpression",
this.rF,this),delete this.B.u[this.ad.K],g.P.prototype.dispose.call(this))};
g.k.cB=function(){return""};g.u(EI,yI);EI.prototype.aa=function(){this.D&&(this.J.removeEventListener("videodatachange",this.D),this.D=null);this.u&&(this.J.removeEventListener("onAdStart",this.u),this.u=null);yI.prototype.aa.call(this)};g.u(GI,pH);GI.prototype.qf=function(){return!1};
GI.prototype.De=function(){return!0};g.u(HI,sI);g.u(II,EI);II.prototype.Ld=function(){var a=this,b=this.J.getVideoData(2),c=this.I.renderer;FI(this)||(b&&(c&&c.adVideoId||b.bf&&JI(this,b))?this.Lk():(this.C=function(d,e,f){e&&2==f&&JI(a,e)&&e.bf&&(a.C&&(a.J.removeEventListener("videodatachange",a.C),a.C=null),a.Lk())},this.J.addEventListener("videodatachange",this.C)))};
II.prototype.Lk=function(){CI(this,[this.I])};
II.prototype.nf=function(a){pI(this.Fa,a)};
II.prototype.aa=function(){this.C&&(this.J.removeEventListener("videodatachange",this.C),this.C=null);EI.prototype.aa.call(this)};g.u(KI,pH);KI.prototype.qf=function(){return!0};
KI.prototype.De=function(){return!1};g.u(LI,sI);g.u(MI,yI);g.k=MI.prototype;g.k.Ld=function(){0<this.u&&this.Ic()};
g.k.Ic=function(){var a=this;this.Ua=new g.H(function(){a.Ae();for(var b=g.q(a.C.u.completionCommands||[]),c=b.next();!c.done;c=b.next())a.D.executeCommand(c.value,a.macros);a.Qb("adended")},this.u,this);
g.C(this,this.Ua);this.Ua.start();CI(this,[new LI(this.C.u,this.macros)]);yI.prototype.Ic.call(this)};
g.k.Pd=function(){yI.prototype.Pd.call(this);this.Qb("adabandoned")};
g.k.Ae=function(){yI.prototype.Ae.call(this)};
g.k.Qb=function(a){this.Ua&&this.Ua.stop();yI.prototype.Qb.call(this,a)};g.u(NI,sI);g.u(OI,yI);OI.prototype.Ld=function(){this.Ic()};
OI.prototype.Ic=function(){yI.prototype.Ic.call(this);if(g.R(this.J.T().experiments,"self_podding_force_opt_in")){var a=this.u.u.forceSelfPodOptInCommand;a&&this.C.executeCommand(a,this.macros)}else CI(this,[new NI(this.u.u,this.macros)])};
OI.prototype.Pd=function(){yI.prototype.Pd.call(this);this.Qb("adabandoned")};
OI.prototype.Bd=function(a){yI.prototype.Bd.call(this,a);this.Qb("aderror")};g.u(PI,pH);PI.prototype.qf=function(){return!0};
PI.prototype.De=function(){return!1};g.u(QI,pH);QI.prototype.qf=function(){return!0};
QI.prototype.De=function(){return!1};g.u(RI,pH);RI.prototype.qf=function(){return!1};
RI.prototype.De=function(){return!0};g.u(SI,pH);SI.prototype.qf=function(){return!0};
SI.prototype.De=function(){return!0};g.u(TI,pH);TI.prototype.qf=function(){return!0};
TI.prototype.De=function(){return!1};g.u(UI,pH);UI.prototype.qf=function(){return!1};
UI.prototype.De=function(){return!0};g.u(VI,pH);VI.prototype.qf=function(){return!0};
VI.prototype.De=function(){return!1};g.u(WI,pH);WI.prototype.qf=function(){return!0};
WI.prototype.De=function(){return!1};XI.prototype.create=function(a,b,c){return a instanceof vH?this.ba.create(a,b):a instanceof SI?this.K.create(a,b):a instanceof UI?this.P.create(a,b,c):a instanceof FH?this.W.create(a,b):a instanceof KI?this.B.create(a,b):a instanceof TI?this.N.create(a,b):a instanceof GI?this.u.create(a,b,c):a instanceof WI?this.Z.create(a,b):a instanceof VI?this.X.create(a,b):a instanceof yH?this.C.create(a,b):a instanceof QI?this.F.create(a,b):a instanceof PI?this.D.create(a,b):a instanceof RI?this.I.create(a,b):
null};g.u(YI,yI);g.k=YI.prototype;g.k.Pd=function(){yI.prototype.Pd.call(this);this.Qb("adabandoned")};
g.k.hk=function(){yI.prototype.hk.call(this);this.V("adpause",2)};
g.k.gj=function(){yI.prototype.gj.call(this);this.V("adplay",1)};
g.k.Ic=function(){yI.prototype.Ic.call(this);this.u.stop();this.C.R(this.J,g.wD("bltplayback"),this.TL);var a=new g.tD(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});g.GM(this.J,[a],2);this.V("adplay",1)};
g.k.Ae=function(){yI.prototype.Ae.call(this);this.Qb("adended")};
g.k.Bd=function(a){yI.prototype.Bd.call(this,a);this.Qb("aderror")};
g.k.Ld=function(){YH(this.J,!1);var a=this.D.B||{};a.autoplay="1";this.J.cueVideoByPlayerVars(a,2);this.u.start();this.J.playVideo(2);this.J.va("onAdIntroStateChange",1)};
g.k.Qb=function(a){this.u.stop();YH(this.J,!0);"adabandoned"!=a&&this.J.va("onAdComplete");this.J.va("onAdEnd");this.V(a);this.J.va("onAdIntroStateChange",0)};
g.k.TL=function(a){"bltcompletion"==a.getId()&&(g.cX(this.J,"bltplayback",2),hI(this.Fa,this.getDuration()))};g.u(ZI,sI);g.u($I,yI);g.k=$I.prototype;
g.k.Ld=function(){if(this.I)for(var a=g.q(this.I.listeners),b=a.next();!b.done;b=a.next()){b=b.value;b.B={slotId:pQ(b.Sa.get(),"slot_type_in_player"),Xa:"slot_type_in_player",feedPosition:1,Wb:void 0,oe:[],cf:[],rb:"surface",xa:new AP([])};var c=b.C(),d=b.B;aJ(c.Bb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",d);c=g.q(c.B);for(var e=c.next();!e.done;e=c.next())e.value.lg(d);d=b.C();b=b.B;d=g.q(d.B);for(c=d.next();!c.done;c=d.next())c.value.Ah(b)}0>=this.K&&(g.M(Error("durationMs was specified incorrectly with a value of: "+this.K)),
this.Ae());this.Ic();this.J.addEventListener("progresssync",this.P)};
g.k.Pd=function(){yI.prototype.Pd.call(this);this.Qb("adabandonedreset")};
g.k.Ic=function(){var a=this.J.T();yI.prototype.Ic.call(this);this.u=Math.floor(this.J.getCurrentTime());this.D=this.u+this.K/1E3;g.$B(a)?this.J.va("onAdMessageChange",{renderer:this.C.u,startTimeSecs:this.u}):CI(this,[new ZI(this.C.u)]);a=(a=this.J.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.rs(),c=g.R(this.J.T().experiments,"use_video_ad_break_offset_ms_int64")?this.C.u.videoAdBreakOffsetMsInt64:this.C.u.videoAdBreakOffsetMs;b&&g.Lq("adNotify",{clientScreenNonce:b,adMediaTimeSec:this.D,
timeToAdBreakSec:Math.ceil(this.D-this.u),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(c/1E3)});if(this.I)for(this.N=!0,a=g.q(this.I.listeners),b=a.next();!b.done;b=a.next())if(b=b.value,b.B)if(b.u)fH("Received AdNotify started event before another one exited");else{b.u=b.B;c=b.C();b=b.u;aJ(c.Bb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);c=g.q(c.B);for(var d=c.next();!d.done;d=c.next())d.value.Ee(b)}else fH("Received AdNotify started event without start requested event");g.T(g.lI(this.J,1),
512)&&(a=(a=this.J.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.rs(),c=g.R(this.J.T().experiments,"use_video_ad_break_offset_ms_int64")?this.C.u.videoAdBreakOffsetMsInt64:this.C.u.videoAdBreakOffsetMs,b&&g.Lq("adNotifyFailure",{clientScreenNonce:b,adMediaTimeSec:this.D,timeToAdBreakSec:Math.ceil(this.D-this.u),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(c/1E3)}),this.Ae())};
g.k.Ae=function(){yI.prototype.Ae.call(this);this.Qb("adended")};
g.k.Bd=function(a){yI.prototype.Bd.call(this,a);this.Qb("aderror")};
g.k.Qb=function(a){this.J.removeEventListener("progresssync",this.P);this.Ug();this.V(a);bJ(this)};
g.k.dispose=function(){this.J.removeEventListener("progresssync",this.P);bJ(this);yI.prototype.dispose.call(this)};
g.k.Ug=function(){g.$B(this.J.T())?this.J.va("onAdMessageChange",{renderer:null,startTimeSecs:this.u}):yI.prototype.Ug.call(this)};g.u(cJ,sI);g.u(dJ,yI);dJ.prototype.Ld=function(){CI(this,[new cJ(this.ad.u,this.macros)])};
dJ.prototype.nf=function(a){pI(this.Fa,a)};g.u(eJ,sI);g.u(fJ,yI);fJ.prototype.Ld=function(){var a=new eJ(this.u.u,this.macros);CI(this,[a])};g.u(gJ,sI);g.u(hJ,yI);hJ.prototype.Ld=function(){this.Ic()};
hJ.prototype.Ic=function(){CI(this,[new gJ(this.u.u,this.macros)]);yI.prototype.Ic.call(this)};
hJ.prototype.Bd=function(a){yI.prototype.Bd.call(this,a);this.Qb("aderror")};g.u(iJ,sI);oJ.prototype.sendAdsPing=function(a){this.F.send(a,sJ(this),{})};g.u(uJ,sI);g.u(vJ,EI);vJ.prototype.Ld=function(){FI(this)||this.Lk()};
vJ.prototype.Lk=function(){CI(this,[this.C])};
vJ.prototype.nf=function(a){pI(this.Fa,a)};wJ.prototype.get=function(){return this.value};
g.u(xJ,wJ);xJ.prototype.u=function(){return"metadata_type_action_companion_ad_renderer"};
g.u(yJ,wJ);yJ.prototype.u=function(){return"metadata_type_ad_next_params"};
g.u(zJ,wJ);zJ.prototype.u=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.u(AJ,wJ);AJ.prototype.u=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.u(BJ,wJ);BJ.prototype.u=function(){return"metadata_type_image_companion_ad_renderer"};
g.u(CJ,wJ);CJ.prototype.u=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.u(DJ,wJ);DJ.prototype.u=function(){return"metadata_type_ad_info_ad_metadata"};
g.u(EJ,wJ);EJ.prototype.u=function(){return"metadata_ad_video_is_listed"};
g.u(FJ,wJ);FJ.prototype.u=function(){return"metadata_type_ad_placement_config"};
g.u(GJ,wJ);GJ.prototype.u=function(){return"metadata_type_ad_pod_info"};
g.u(HJ,wJ);HJ.prototype.u=function(){return"metadata_type_ad_video_id"};
g.u(IJ,wJ);IJ.prototype.u=function(){return"metadata_type_content_cpn"};
g.u(JJ,wJ);JJ.prototype.u=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.u(KJ,wJ);KJ.prototype.u=function(){return"metadata_type_valid_instream_survey_ad_renderer"};
g.u(LJ,wJ);LJ.prototype.u=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.u(MJ,wJ);MJ.prototype.u=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.u(NJ,wJ);NJ.prototype.u=function(){return"metadata_type_linked_in_player_layout_id"};
g.u(OJ,wJ);OJ.prototype.u=function(){return"metadata_type_player_bytes_callback"};
g.u(PJ,wJ);PJ.prototype.u=function(){return"metadata_type_player_bytes_callback_ref"};
g.u(QJ,wJ);QJ.prototype.u=function(){return"metadata_type_sub_layouts"};
g.u(RJ,wJ);RJ.prototype.u=function(){return"metadata_type_cue_point"};
g.u(SJ,wJ);SJ.prototype.u=function(){return"metadata_type_video_length_seconds"};
g.u(TJ,wJ);TJ.prototype.u=function(){return"metadata_type_player_vars"};
g.u(UJ,wJ);UJ.prototype.u=function(){return"metadata_type_sodar_extension_data"};
g.u(VJ,wJ);VJ.prototype.u=function(){return"metadata_type_layout_enter_ms"};
g.u(WJ,wJ);WJ.prototype.u=function(){return"metadata_type_layout_exit_ms"};
g.u(XJ,wJ);XJ.prototype.u=function(){return"metadata_type_sub_layout_index"};
g.u(YJ,wJ);YJ.prototype.u=function(){return"metadata_type_dai"};
g.u(ZJ,wJ);ZJ.prototype.u=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.u($J,wJ);$J.prototype.u=function(){return"metadata_type_drift_recovery_ms"};
g.u(aK,wJ);aK.prototype.u=function(){return"metadata_type_fulfilled_layout"};
g.u(bK,wJ);bK.prototype.u=function(){return"metadata_type_ad_break_request_data"};
g.u(cK,wJ);cK.prototype.u=function(){return"metadata_type_ad_break_response_data"};
g.u(dK,wJ);dK.prototype.u=function(){return"metadata_type_remote_slots_data"};
g.u(eK,wJ);eK.prototype.u=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.u(fK,wJ);fK.prototype.u=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.u(gK,wJ);gK.prototype.u=function(){return"metadata_type_instream_video_ad_commands"};g.u(iK,g.P);iK.prototype.getProgressState=function(){return this.C};
iK.prototype.start=function(){this.D=Date.now();hK(this,{current:this.u/1E3,duration:this.B/1E3});this.Ua.start()};
iK.prototype.stop=function(){this.Ua.stop()};g.u(jK,sI);g.u(kK,yI);g.k=kK.prototype;g.k.Ld=function(){this.Ic()};
g.k.Ic=function(){var a=this.D.u;g.$B(this.J.T())?(a=yna(this.I,a),this.J.va("onAdInfoChange",a),this.K=Date.now(),this.u&&this.u.start()):CI(this,[new jK(a)]);yI.prototype.Ic.call(this)};
g.k.getDuration=function(){return this.D.B};
g.k.hk=function(){yI.prototype.hk.call(this);this.u&&this.u.stop()};
g.k.gj=function(){yI.prototype.gj.call(this);this.u&&this.u.start()};
g.k.Pd=function(){yI.prototype.Pd.call(this);this.Qb("adabandoned")};
g.k.ik=function(){yI.prototype.ik.call(this);this.Qb("adended")};
g.k.Bd=function(a){yI.prototype.Bd.call(this,a);this.Qb("aderror")};
g.k.Qb=function(a){this.Ug();this.V(a)};
g.k.nf=function(a){switch(a){case "skip-button":this.ik();break;case "survey-submit":this.Qb("adended")}};
g.k.Ug=function(){g.$B(this.J.T())?(this.u&&this.u.stop(),this.J.va("onAdInfoChange",null)):yI.prototype.Ug.call(this)};g.u(lK,sI);g.u(mK,yI);mK.prototype.Ld=function(){this.Ic()};
mK.prototype.Ic=function(){CI(this,[new lK(this.u.u,this.macros)]);yI.prototype.Ic.call(this)};
mK.prototype.Pd=function(){yI.prototype.Pd.call(this);this.Qb("adabandoned")};
mK.prototype.Bd=function(a){yI.prototype.Bd.call(this,a);this.Qb("aderror")};g.u(nK,sI);g.u(oK,yI);g.k=oK.prototype;g.k.Ld=function(){0<this.u&&this.Ic()};
g.k.Ic=function(){this.Ua=new g.H(this.Ae,this.u,this);g.C(this,this.Ua);this.Ua.start();CI(this,[new nK(this.C.u)]);yI.prototype.Ic.call(this)};
g.k.Ae=function(){yI.prototype.Ae.call(this);this.Qb("adended");for(var a=g.q(this.C.u.completeCommands||[]),b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.k.Pd=function(){yI.prototype.Pd.call(this);this.Qb("adabandoned")};
g.k.Bd=function(a){yI.prototype.Bd.call(this,a);this.Qb("aderror")};
g.k.Qb=function(a){this.Ua&&this.Ua.stop();yI.prototype.Qb.call(this,a)};g.u(tK,sI);g.u(uK,sI);g.u(vK,sI);g.u(wK,sI);g.u(xK,sI);g.u(yK,sI);g.u(zK,yI);g.k=zK.prototype;g.k.Po=function(){return{currentTime:this.J.getCurrentTime(2,!1),duration:this.u.B,isPlaying:VH(this.J),isVpaid:!1,isYouTube:!0,volume:this.J.isMuted()?0:this.J.getVolume()/100}};
g.k.Ld=function(){if(this.u.W)DI(this),this.Qb("aderror");else{var a=this.u.u.legacyInfoCardVastExtension,b=this.u.C;a&&b&&this.J.T().K.add(b,{vo:a});try{var c=this.u.u.sodarExtensionData;c&&c.siub&&c.bgub&&c.scs&&c.bgp&&Te(c.siub,c.scs,c.bgub,c.bgp)}catch(d){g.kr(d)}YH(this.J,!1);a=wH(this.u);b=this.J.T();g.R(this.J.T().experiments,"disable_force_iv_load_policy_on_bulleit")||(a.iv_load_policy=b.u||g.$B(b)||g.mC(b)?3:1);c=this.J.getVideoData(1);c.Tf&&(a.ctrl=c.Tf);c.Le&&(a.ytr=c.Le);c.Xi&&(a.ytrcc=
c.Xi);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.qg&&(a.vss_credentials_token_type=c.qg),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));this.ha&&this.V("adunstarted",-1);!WQ(this.K)&&g.$B(b)&&(b=GK(this),b=una(this.da,b,this.u.u.adNextParams||""),b.attributionInfo=nJ(this.u.D,this.u.C||""),this.J.va("onAdInfoChange",b));this.daiEnabled?this.D.start():(this.J.cueVideoByPlayerVars(a,2),this.D.start(),this.J.playVideo(2))}};
g.k.hk=function(){yI.prototype.hk.call(this);this.V("adpause",2)};
g.k.gj=function(){yI.prototype.gj.call(this);this.V("adplay",1)};
g.k.Ic=function(){yI.prototype.Ic.call(this);this.D.stop();this.ba.R(this.J,g.wD("bltplayback"),this.UL);var a=new g.tD(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});g.GM(this.J,[a],2);a=DK(this);this.C.ra=a;if(!WQ(this.K)){a=[];var b=this.J.T(),c=this.J.getVideoData(2);if(nC(b)||g.$B(b)){var d;(d=c&&c.isListed?{channelId:c.Ng,channelThumbnailUrl:c.bf||"",channelTitle:c.author,videoTitle:c.title,channelVideoCount:0,showAdInfoIcon:!1,whyThisAdInfo:null,muteAdInfo:null}:
null)&&this.J.va("onAdMetadataAvailable",d)}g.$B(b)||(!g.mC(b)||(g.R(this.J.T().experiments,"enable_upg_processed_dvr_dai")?this.daiEnabled:this.C.u.getVideoData(1).Bg())||(c&&c.videoId&&c.isListed&&c.videoId==this.u.C&&(b=c.title,d=c.author,c=c.bf,b&&d&&c?c=[new uK(b),new tK(c),new vK(d)]:(g.lr(new Iq("Channel metadata contains null for:",b?d?"channel icon thumbnail.":"channel name.":"video title.")),c=[]),CI(this,c)),a.push(nJ(this.u.D,this.u.C||"")),c=this.u.I,null==c?c=null:(b={},c.urlEndpoint&&
(b.url=c.urlEndpoint.url,b.target="TARGET_NEW_WINDOW"),c=new yK({navigationEndpoint:{urlEndpoint:b}})),c&&a.push(c),this.u.isSkippable()&&!xH(this.u)&&(c=GK(this),(c=c.skipOrPreviewRenderer&&c.skipOrPreviewRenderer.skipAdRenderer)||(c=EK(this)),a.push(new xK(c)))),c=GK(this),a.push(new wK(c)),CI(this,a))}this.J.isMuted()&&(a=this.Fa,c=this.J.isMuted(),cI(a)||gI(a,c?"mute":"unmute"));this.V("adplay",1);if(null!==this.I){a=null!==this.C.u.getVideoData(1)?this.C.u.getVideoData(1).clientPlaybackNonce:
"";c=AK(this);b=this.u;d=zna(this);for(var e=g.q(this.I.listeners),f=e.next();!f.done;f=e.next()){f=f.value;var h=c,l=b,m=d;if(f.u)fH(f.u.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event.");else{var n=pQ(f.Sa.get(),"slot_type_player_bytes");f.B={slotId:n,Xa:"slot_type_player_bytes",feedPosition:1,Wb:void 0,oe:[],cf:[],rb:"surface",xa:new AP([])};var p=[],r=l.C||"";r&&p.push(new HJ(r));(r=(r=l.u)&&r.playerOverlay&&r.playerOverlay.instreamAdPlayerOverlayRenderer)&&
p.push(new JJ(r));l.u.adNextParams&&p.push(new yJ(l.u.adNextParams||""));(r=l.I)&&p.push(new zJ(r));(r=TG(f.Ca.get(),2))?(p.push(new DJ({channelId:r.Ng,channelThumbnailUrl:r.bf,channelTitle:r.author,videoTitle:r.title})),p.push(new EJ(r.isListed))):fH("Expected meaningful PlaybackData on ad started.");p.push(new GJ(l.D));p.push(new SJ(l.B));p.push(new IJ(a));p.push(new PJ({current:this}));r=l.za;null!=r.kind&&p.push(new FJ(r));(l=l.X)&&p.push(new dK(l));void 0!==m&&p.push(new eK(m));f.u={layoutId:h,
layoutType:"layout_type_media",Yd:new Map,uf:[],vf:[],tf:[],wf:[],rb:"surface",xa:new AP(p),Ye:lpa(EP(f.Ya.get()),n,"slot_type_player_bytes",1,"surface",void 0,h,"layout_type_media","surface")};opa(f.C(),f.B,f.u);qpa(f.C(),f.B,f.u)}}this.P=!0}this.J.va("onAdStart",DK(this));a=this.ea;c=this.u.C||"";(b=a.B.Tb())&&b.getVideoData().videoId===c?a.u=Cqa(b.I):a.u=null;a=g.q(this.u.u.impressionCommands||[]);for(c=a.next();!c.done;c=a.next())this.C.executeCommand(c.value,this.macros)};
g.k.UL=function(a){"bltcompletion"==a.getId()&&(g.cX(this.J,"bltplayback",2),hI(this.Fa,this.getDuration()),CK(this,"adended"))};
g.k.Ae=function(){yI.prototype.Ae.call(this);this.Qb("adended");for(var a=g.q(this.u.u.completeCommands||[]),b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)};
g.k.Pd=function(){yI.prototype.Pd.call(this);this.Qb("adabandoned")};
g.k.hy=function(){var a=this.Fa;aI(a)||mI(a,"clickthrough")};
g.k.IE=function(){this.ik()};
g.k.ik=function(){yI.prototype.ik.call(this);this.Qb("adended")};
g.k.Bd=function(a){yI.prototype.Bd.call(this,a);this.Qb("aderror")};
g.k.Qb=function(a){this.D.stop();WQ(this.K)||this.Ug();YH(this.J,!0);"adabandoned"!=a&&this.J.va("onAdComplete");CK(this,a);this.J.va("onAdEnd",DK(this));this.V(a)};
g.k.Ug=function(){var a=this.J.T();g.$B(a)&&(g.mC(a)||g.R(a.experiments,"enable_topsoil_wta_for_halftime")||g.$B(a))?this.J.va("onAdInfoChange",null):yI.prototype.Ug.call(this)};
g.k.my=function(){this.sC&&this.J.playVideo()};
g.k.sC=function(){return 2==this.J.getPlayerState(2)};
g.k.nf=function(a){if(!WQ(this.K)){var b=this.Fa;if(UH(b.u))switch(a){case "ad-title":b.u.sendVideoStatsEngageEvent(14,void 0,2);break;case "ad-channel-thumbnail":case "advertiser-name":b.u.sendVideoStatsEngageEvent(15,void 0,2);break;case "visit-advertiser":b.u.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.N||this.my();break;case "ad-info-icon-button":(this.N=this.sC())||this.J.pauseVideo();
break;case "ad-channel-thumbnail":case "advertiser-name":a=this.J.T().protocol+"://"+g.fC(this.J.T())+"/channel/"+this.u.ba;g.sK(a);break;case "ad-title":this.J.pauseVideo();g.sK(this.J.getVideoUrl());break;case "visit-advertiser":this.J.pauseVideo();if(g.mC(this.J.T())&&(a=this.u.I)){b=this.Fa;var c=a.loggingUrls||null;if(c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.baseUrl){var e=d.headers||[];b.I.send(d.baseUrl,jI(b),{},e)}}a.urlEndpoint&&a.urlEndpoint.url&&g.sK(a.urlEndpoint.url)}a=
this.Fa;aI(a)||mI(a,"clickthrough");break;case "skip-button":this.ik()}}};
g.k.cB=function(a,b){if(this.u.W)return DI(this),this.Qb("aderror"),"";if(!Number.isFinite(a))return g.kr(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.kr(Error("Start time is not earlier than end time")),"";var c=1E3*this.u.B,d=wH(this.u);d=rAa(this.J.app,d,c,a,b);a+c>b&&sAa(this.J.app,d,b-a);return d};
g.k.dispose=function(){VH(this.J)&&!this.daiEnabled&&this.J.stopVideo(2);CK(this,"adabandoned");yI.prototype.dispose.call(this)};HK.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.u[b];c?b=c:(c={Fm:null,AC:-Infinity},b=this.u[b]=c);c=a.startSecs+a.u/1E3;if(!(c<b.AC)){b.AC=c;if(b.Fm){if(c<b.Fm.end){a:{c=b.Fm;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.durationSecs;a=a<c.start?null:c.end<=a?null:a}null!==a&&(b.Fm.end=a,this.B.cE(a));return}if(this.C)b.Fm=
null;else return}if(a=Bna(a,this.D))c=a.FJ,b.Fm=a.hI,this.B.nE(c)}};
HK.prototype.updateTime=function(){};g.u(KK,pH);g.u(LK,KK);LK.prototype.qf=function(){return!1};
LK.prototype.De=function(){return!0};
LK.prototype.B=function(){var a=new nH;a.imageCompanionAdRenderer=this.u;return a};TK.prototype.reset=function(){return new TK(this.J)};var jCa=UX&&4>WF?.1:0,Vra=new $K;g.k=$K.prototype;g.k.Mq=null;g.k.getDuration=function(){return this.duration||0};
g.k.getCurrentTime=function(){return this.currentTime||0};
g.k.Ch=function(){this.src&&(jk&&0<this.readyState&&(this.currentTime=Math.max(jCa,0)),this.removeAttribute("src"),this.load(),this.Mq&&this.Mq.B&&(this.Mq&&this.Mq.dispose(),this.Mq=null))};
g.k.XH=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};var N1={},O1=(N1.BUFFERING="buffering-mode",N1.CUED="cued-mode",N1.ENDED="ended-mode",N1.PAUSED="paused-mode",N1.PLAYING="playing-mode",N1.SEEKING="seeking-mode",N1.UNSTARTED="unstarted-mode",N1);var kCa,P1,Jna;
kCa={iS:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",lS:"AUTHENTICATION_MALFORMED",mS:"AUTHENTICATION_MISSING",qS:"BAD_REQUEST",vS:"CAST_SESSION_DEVICE_MISMATCHED",wS:"CAST_SESSION_VIDEO_MISMATCHED",xS:"CAST_TOKEN_EXPIRED",yS:"CAST_TOKEN_FAILED",zS:"CAST_TOKEN_MALFORMED",AS:"CGI_PARAMS_MALFORMED",BS:"CGI_PARAMS_MISSING",OS:"DEVICE_FALLBACK",aT:"GENERIC_WITH_LINK_AND_CPN",bT:"LICENSE",dT:"VIDEO_UNAVAILABLE",hT:"FORMAT_UNAVAILABLE",jT:"GEO_FAILURE",AT:"HTML5_AUDIO_RENDERER_ERROR",BT:"GENERIC_WITHOUT_LINK",
CT:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",DT:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",KT:"INVALID_DRM_MESSAGE",YU:"PURCHASE_NOT_FOUND",ZU:"PURCHASE_REFUNDED",cV:"RENTAL_EXPIRED",eV:"RETRYABLE_ERROR",kV:"SERVER_ERROR",wV:"STOPPED_BY_ANOTHER_PLAYBACK",xV:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",yV:"STREAMING_NOT_ALLOWED",zV:"STREAM_LICENSE_NOT_FOUND",JV:"TOO_MANY_REQUESTS",KV:"TOO_MANY_REQUESTS_WITH_LINK",LV:"TOO_MANY_STREAMS_PER_ENTITLEMENT",MV:"TOO_MANY_STREAMS_PER_USER",PV:"UNSUPPORTED_DEVICE",
QV:"VIDEO_FORBIDDEN",RV:"VIDEO_NOT_FOUND"};P1={};
g.HX=(P1.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.",P1.DEVICE_FALLBACK="Sorry, this video is not available on this device.",P1.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",P1.LICENSE="Sorry, there was an error licensing this video.",P1.VIDEO_UNAVAILABLE=
"Video unavailable",P1.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",P1.GEO_FAILURE="This video isn't available in your country.",P1.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",P1.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",P1.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",P1.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",
P1.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",P1.PURCHASE_NOT_FOUND="This video requires payment.",P1.PURCHASE_REFUNDED="This video's purchase has been refunded.",P1.RENTAL_EXPIRED="This video's rental has expired.",P1.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",P1.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",P1.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",
P1.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",P1.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",P1.SERVER_ERROR="There was an internal server error. Please try again later.",P1.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",P1.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",P1.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",
P1.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",P1.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",P1.TOO_MANY_REQUESTS="Please log in to watch this video.",P1.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",P1.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",P1.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",
P1.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",P1.VIDEO_FORBIDDEN="Access to this video is forbidden.",P1.VIDEO_NOT_FOUND="This video can not be found.",P1);
Jna={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.k=g.bL.prototype;g.k.getData=function(){return this.stateData};
g.k.Gb=function(){return g.T(this,8)&&!g.T(this,512)&&!g.T(this,64)&&!g.T(this,2)};
g.k.isCued=function(){return g.T(this,64)&&!g.T(this,8)&&!g.T(this,4)};
g.k.isError=function(){return g.T(this,128)};
g.k.isSuspended=function(){return g.T(this,512)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};g.u(mL,g.P);g.k=mL.prototype;g.k.ji=function(){var a=this.u;return a.B instanceof vH||a.B instanceof FH||a.B instanceof zH||a.B instanceof yH};
g.k.Fp=function(){return this.u.B.De()};
g.k.Ep=function(){return this.u.u};
g.k.Gp=function(){return IH(this.u)};
g.k.zx=function(){return HH(this.u)};
g.k.Dw=function(a){this.daiEnabled&&!g.R(this.J.T().experiments,"html5_dai_debug_logging_killswitch")&&fH("AdPlacementCoordinator handled cue range enter",void 0,void 0,{adCpn:(this.J.getVideoData(2)||{}).clientPlaybackNonce,contentCpn:(this.J.getVideoData(1)||{}).clientPlaybackNonce});if(!jH(a)){this.W&&(this.ea=this.J.isAtLiveHead(),this.ba=Math.ceil(g.A()/1E3));var b=new MK(this.Zc);a=NK(a);PK(b,a)}this.tn()};
g.k.Zm=function(){return this.Es()||this.Is()||this.F instanceof KK||this.F instanceof RI};
g.k.Es=function(){return this.F instanceof GI};
g.k.Qw=function(){return this.F instanceof LK};
g.k.Is=function(){return this.F instanceof UI};
g.k.nC=function(){return!this.Zm()};
g.k.Sw=function(){return this.nk()||this.Hp()};
g.k.Hp=function(){return this.F instanceof FH};
g.k.nk=function(){return this.F instanceof vH};
g.k.tn=function(){this.daiEnabled&&!g.R(this.J.T().experiments,"html5_dai_debug_logging_killswitch")&&fH("AdPlacementCoordinator started",void 0,void 0,{adCpn:(this.J.getVideoData(2)||{}).clientPlaybackNonce,contentCpn:(this.J.getVideoData(1)||{}).clientPlaybackNonce});uM(this.Zc,this);if(!this.u.I.hasOwnProperty("ad_placement_start")){for(var a=g.q(this.u.X),b=a.next();!b.done;b=a.next())oL(b.value);this.u.I.ad_placement_start=!0}WK(this.K);this.XE()};
g.k.XE=function(){this.F?this.Ld(this.F):this.Yj()};
g.k.Rl=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;JM(this.Zc,0);this.Yj(a,b)};
g.k.SD=function(){this.Rl()};
g.k.sM=function(){gI(this.B.Fa,"active_view_measurable")};
g.k.tM=function(){var a=this.B.Fa;aI(a)||qI(a)||gI(a,"active_view_fully_viewable_audible_half_duration")};
g.k.wM=function(){};
g.k.xM=function(){};
g.k.yM=function(){};
g.k.zM=function(){};
g.k.CM=function(){var a=this.B.Fa;aI(a)||qI(a)||gI(a,"active_view_viewable")};
g.k.pB=function(){return this.nk()?[this.Yr()]:[]};
g.k.Vb=function(a){this.daiEnabled&&!g.R(this.J.T().experiments,"html5_dai_debug_logging_killswitch")&&fH("AdPlacementCoordinator ended because no mapped ad is found",void 0,void 0,{adCpn:(this.J.getVideoData(2)||{}).clientPlaybackNonce,contentCpn:(this.J.getVideoData(1)||{}).clientPlaybackNonce,hasAdCoordinator:!!this.B,seenPreviousState:this.X,oldState:lL(a.xj.state),state:lL(a.state.state)});if(null!==this.B){this.X||(a=new g.vI(a.state,new g.bL),this.X=!0);var b=a.state;if(g.xI(a,2))YK(this.K),
this.B.Ae();else{var c=a;(g.R(this.J.T().experiments,"html5_bulleit_handle_gained_playing_state")?c.state.Gb()&&!c.xj.Gb():c.state.Gb())?(ZK(this.K),this.B.gj()):b.isError()?this.B.Bd(b.getData().errorCode):g.xI(a,4)&&(this.Z||this.B.hk())}if(null!==this.B){if(g.xI(a,16)&&(b=this.B.Fa,!(aI(b)||.5>b.u.getCurrentTime(2,!1)&&!g.R(b.u.T().experiments,"html5_dai_pseudogapless_seek_killswitch")))){c=b.B;if(c.ip()){var d=g.R(b.P.u.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock");
Hl(c.K,d)}b.B.N.seek=!0}0>wI(a,4)&&!(0>wI(a,2))&&(b=this.B.Fa,aI(b)||(cI(b)?mI(b,"resume"):gI(b,"resume")));!g.R(this.J.T().experiments,"html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.xI(a,512)&&!g.iL(a.state)&&XK(this.K)}}};
g.k.Pa=function(){this.daiEnabled&&(g.R(this.J.T().experiments,"html5_dai_debug_logging_killswitch")||fH("AdPlacementCoordinator handled video data change",void 0,void 0,{adCpn:(this.J.getVideoData(2)||{}).clientPlaybackNonce,contentCpn:(this.J.getVideoData(1)||{}).clientPlaybackNonce}),nL(this))};
g.k.wD=function(){};
g.k.resume=function(){this.B&&this.B.my()};
g.k.Ax=function(){this.B&&this.B.Qb("adended")};
g.k.Ft=function(){this.Ax()};
g.k.vD=function(a){var b=this.Zc;b.D&&g.R(b.u.T().experiments,"html5_bulleit_dai_publish_ad_ux_killswitch")||b.u.va("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.B.nf(a)};
g.k.mB=function(){return 0};
g.k.oB=function(){return 1};
g.k.wu=function(a){this.daiEnabled&&this.u.N&&this.u.u.start<=a&&a<sL(this)&&ura(this.J,a,this.u.u.end)};
g.k.Ld=function(a){g.eg(this.B);this.B=a=this.Pj.create(a,OH(MH(this.u)),this.u.u.u);a.subscribe("adabandoned",g.Wa(this.Rl,!0),this);a.subscribe("adabandonedreset",g.Wa(this.Rl,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.sM,this);a.subscribe("adended",this.Rl,this);a.subscribe("aderror",this.SD,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.tM,this);a.subscribe("adoverlaymeasurableimpression",this.wM,this);a.subscribe("adoverlayunviewableimpression",this.xM,this);
a.subscribe("adoverlayviewableendofsessionimpression",this.yM,this);a.subscribe("adoverlayviewableimmediateimpression",this.zM,this);a.subscribe("adpause",this.Ew,this);a.subscribe("adplay",this.Ew,this);a.subscribe("adunstarted",this.Ew,this);a.subscribe("onAdUxUpdate",this.vD,this);a.subscribe("adviewableimpression",this.CM,this);AI(a);pL(this,!1)};
g.k.Yj=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.Z=!0;g.eg(this.B);if(a)var c=!1;else this.daiEnabled?(c=this.J.getCurrentTime(2,!0),c=1>=Math.abs(c-this.u.u.end/1E3)):c=!0;if(c&&!this.u.I.hasOwnProperty("ad_placement_end")){c=g.q(this.u.W);for(var d=c.next();!d.done;d=c.next())oL(d.value);this.u.I.ad_placement_end=!0}c=this.u.F;null!==c&&(SK(this.Vg,{cueIdentifier:this.u.C&&this.u.C.identifier,driftRecoveryMs:c,WE:this.u.u.start,DC:sL(this)}),this.u.F=null);b||this.daiEnabled?zM(this.Zc,
!0):this.W&&this.zx()&&this.nk()?zM(this.Zc,!1,Nna(this)):zM(this.Zc,!1);pL(this,!0)};
g.k.Ew=function(a){JM(this.Zc,a)};
g.k.Yr=function(){return this.F};
g.k.isLiveStream=function(){return this.W};
g.k.reset=function(){return new mL(this.Zc,this.J,this.K.reset(),this.u,this.Vg,this.Hm,this.Pj,this.daiEnabled)};
g.k.aa=function(){g.eg(this.B);this.B=null;g.P.prototype.aa.call(this)};uL.prototype.create=function(a){return(a.B instanceof zH?this.D:a.B instanceof KK?this.C:""===a.K?this.u:this.B)(a)};var Q1={},Ona=(Q1[0]=[],Q1[1]=[],Q1);vL.prototype.clickCommand=function(a){var b=g.rs();if(!a.clickTrackingParams||!b)return!1;Ks(this.client,b,g.ls(a.clickTrackingParams),void 0);return!0};
vL.prototype.B=function(){for(var a=g.q(this.u),b=a.next();!b.done;b=a.next())b=b.value,b();this.u=[]};g.u(yL,g.P);g.k=yL.prototype;g.k.Ep=function(){return this.u.u};
g.k.Gp=function(){return IH(this.u)};
g.k.zx=function(){return HH(this.u)};
g.k.ji=function(){return!1};
g.k.Sw=function(){return!1};
g.k.Zm=function(){return!1};
g.k.Es=function(){return!1};
g.k.Qw=function(){return!1};
g.k.Is=function(){return!1};
g.k.Fp=function(){return!1};
g.k.onAdUxClicked=function(){};
g.k.Dw=function(a){var b=this;if(1!==this.u.D&&2!==this.u.D){var c=[];this.Gp()||(c=NK(a));this.u.D=1;Jm(this.I.fetch(this.u.K,{zo:this.u.C||void 0,ld:this.u.u}).then(function(d){if(!b.la()){var e=c;g.R(b.C.T().experiments,"enable_client_deferred_full_screen_filtering_for_mweb_phones")&&b.C.isFullscreen();var f=null;if(g.R(b.C.T().experiments,"get_midroll_info_use_client_rpc"))f=d;else{var h=null;try{(h=JSON.parse(d.response))&&(f=h)}catch(l){d.response&&(d=d.response,d.startsWith("GIF89")||(l.params=
d.substr(0,256),g.Eo(l)))}}f=Rna(b,f);d=b.D;d.B&&f.isEmpty&&RK("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",d.u);if(!f.oC&&(b.u.D=2,PK(new MK(b.B),e),!f.isEmpty&&(SG(b.F,f.Rg),g.R(b.C.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")&&b.Gp())))for(e=g.q(f.Rg),f=e.next();!f.done;f=e.next())f=f.value,f.renderer&&f.renderer.invideoOverlayAdRenderer&&fH("Detected deferred preroll overlay.",void 0,void 0,{kind:f.config&&f.config.adPlacementConfig&&f.config.adPlacementConfig.kind||"unknown"})}},function(){PK(new MK(b.B),
c);
var d=b.D;d.B&&RK("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.u)}),function(){2!==b.u.D&&(b.u.D=0);
b.Gp()&&iM(b.B)})}};
g.k.tn=function(){};
g.k.wu=function(){};g.u(zL,KK);zL.prototype.qf=function(){return!1};
zL.prototype.De=function(){return!0};
zL.prototype.B=function(){var a=this.u,b=new Yma;b.url=a.iframeUrl||null;b.width=a.iframeWidth||0;b.height=a.iframeHeight||0;b.impressionTrackingUrls=AL(a.impressionCommands||[]);b.clickTrackingUrls=AL(a.onClickCommands||[]);b.adInfoRenderer=a.adInfoRenderer||null;a=new nH;a.iframeCompanionRenderer=b;return a};g.u(BL,EI);g.k=BL.prototype;g.k.Dw=function(a){if(!jH(a)){var b=new MK(this.X);a=NK(a);PK(b,a)}this.tn()};
g.k.tn=function(){AI(this)};
g.k.Ld=function(){var a=this;uM(this.X,this);this.ea=this.J.getVideoData(1);this.N=this.C.B();if(!(this.C instanceof LK&&FI(this))&&(this.Lk(),this.C instanceof zL)){this.K=function(b){var c;if(c=b.data)try{c=cq(b.source.document.location.origin)}catch(e){c=!1}if(c)if(c=a.C.u,"companion-setup-complete"==b.data)try{b.source.postMessage(JSON.stringify(c),"*");var d=b.source.frameElement;d.parentNode.style.cssText="";d.width=String(c.iframeWidth);d.height=String(c.iframeHeight)}catch(e){g.Eo(e)}else"pause-video"==
b.data&&a.J.pauseVideo()};
try{window.addEventListener("message",this.K)}catch(b){g.M(b)}}};
g.k.Lk=function(){null!=this.N&&(this.N.macros=Object.assign({},this.macros),this.ka.showCompanion(this.ea.videoId,this.N))};
g.k.onAdUxClicked=function(a){pI(this.Fa,a)};
g.k.Ep=function(){return this.I.u};
g.k.Gp=function(){return IH(this.I)};
g.k.zx=function(){return HH(this.I)};
g.k.Zm=function(){return!0};
g.k.Es=function(){return!1};
g.k.Qw=function(){return this.C instanceof LK};
g.k.Is=function(){return!1};
g.k.ji=function(){return!1};
g.k.Sw=function(){return!1};
g.k.Fp=function(){return this.I.B.De()};
g.k.wu=function(){};
g.k.aa=function(){if(this.K)try{window.removeEventListener("message",this.K),this.K=null}catch(a){g.M(a)}EI.prototype.aa.call(this)};var Sna=Object.freeze([KI,PI,FH,VI,WI,vH]);g.u(DL,mL);g.k=DL.prototype;g.k.pB=function(){for(var a=this.D.B,b=g.q(a),c=b.next();!c.done;c=b.next());return a};
g.k.nC=function(){return(0>=this.I?this.D.B:this.D.B.slice(this.I)).some(function(a){return a.qf()})};
g.k.Hp=function(){return this.N instanceof FH||this.N instanceof VI};
g.k.nk=function(){return this.N instanceof vH||this.N instanceof PI};
g.k.XE=function(){this.daiEnabled?UH(this.J)&&nL(this):EL(this)};
g.k.Ld=function(a){var b=CL(a);this.N&&b&&this.P!==b&&(b?AM(this.Zc):DM(this.Zc),this.P=b);this.N=a;(g.R(this.J.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_action")&&vM(this.Zc)||g.R(this.J.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_image")&&wM(this.Zc)||g.R(this.J.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_shopping")&&xM(this.Zc))&&sM(this.Zc,this);this.daiEnabled&&(this.I=this.D.B.findIndex(function(c){return c===
a}));
mL.prototype.Ld.call(this,a)};
g.k.Yj=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.C&&(g.eg(this.C),this.C=null);mL.prototype.Yj.call(this,a,b)};
g.k.Ft=function(){this.I=this.D.B.length;this.C&&this.C.Qb("adended");this.B&&this.B.Qb("adended");this.Yj()};
g.k.wD=function(){EL(this)};
g.k.Ax=function(){this.Rl()};
g.k.Vb=function(a){mL.prototype.Vb.call(this,a);a=a.state;g.T(a,2)&&this.C?this.C.Ae():a.Gb()?(null==this.C&&(a=this.D.D)&&(this.C=this.Pj.create(a,OH(MH(this.u)),this.u.u.u),this.C.subscribe("onAdUxUpdate",this.vD,this),AI(this.C)),this.C&&this.C.gj()):a.isError()&&this.C&&this.C.Bd(a.getData().errorCode)};
g.k.Rl=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(JM(this.Zc,0),a?this.Yj(a,b):EL(this))};
g.k.SD=function(){1==this.D.C?this.Yj():this.Rl()};
g.k.onAdUxClicked=function(a){mL.prototype.onAdUxClicked.call(this,a);this.C&&this.C.nf(a)};
g.k.Yr=function(){var a=0>=this.I?this.D.B:this.D.B.slice(this.I);return 0<a.length?a[0]:null};
g.k.aa=function(){g.eg(this.C);this.C=null;mL.prototype.aa.call(this)};
g.k.ji=function(){return this.P};
g.k.Fp=function(){return this.D.B.every(function(a){return a.De()})};
g.k.reset=function(){return new DL(this.Zc,this.J,this.K.reset(),this.u,this.Vg,this.Hm,this.Pj,this.daiEnabled)};
g.k.mB=function(){return this.I};
g.k.oB=function(){return this.D.B.length};g.u(FL,zH);g.u(GL,zH);HL.prototype.create=function(a,b){function c(y){return new vH(y,d.C,b,d.u,d.B)}
var d=this,e=a.instreamVideoAdRenderer,f=a.invideoOverlayAdRenderer,h=a.videowallIframeCompanionAdRenderer,l=a.imageCompanionAdRenderer,m=a.instreamSurveyAdRenderer,n=a.sandwichedLinearAdRenderer,p=a.shoppingCompanionCarouselRenderer,r=a.actionCompanionAdRenderer,t=a.linearAdSequenceRenderer,w=a.adsEngagementPanelRenderer,x=a.adChoiceInterstitialRenderer;return null!=e&&e.playerVars?c(e):null!=f?new SI(f):null!=h&&h.iframeUrl?new zL(h):null!=l?new LK(l):null!=m?new FH(m):null!=n?new GL(n,c,this.u):
null!=p?new UI(p):null!=r?new GI(r):null!=t?new FL(t,c):null!=w?new RI(w):null!=x?new yH(x):null};JL.prototype.create=function(a,b,c,d){d=void 0===d?null:d;var e=[];c=void 0===c?0:c;if(d){d=g.q(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var h=b,l=new hH(h.C,h.B,h.daiEnabled,h.D),m=h.Te;m&&(l.Te=new qt(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.u));h.u&&(l.u=h.u);l.visible=h.visible;h=l;h.Te=f;e.push(KL(this,a[0],c,h));c++}}else for(a=g.q(a),d=a.next();!d.done;d=a.next())e.push(KL(this,d.value,c,b)),c++;return e};g.u(LL,g.B);g.u(NL,g.B);NL.prototype.addEventListener=function(a,b){this.u=b};
NL.prototype.removeEventListener=function(){this.u=null};
g.u(OL,g.B);OL.prototype.addEventListener=function(a,b,c){this.u.addEventListener(a,b,c)};
OL.prototype.removeEventListener=function(a,b){this.u.removeEventListener(a,b)};g.u(PL,g.B);var QL=null,SL=null,UL=null,WL=null;g.Ia("yt.www.ads.eventcache.getLastCompanionData",function(){return QL},void 0);
g.Ia("yt.www.ads.eventcache.getLastPlaShelfData",function(){return SL},void 0);
g.Ia("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return UL},void 0);
g.Ia("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return WL},void 0);var eM={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.u(bM,g.B);bM.prototype.aa=function(){this.Mc.clear();g.B.prototype.aa.call(this)};
bM.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.la();a.loggingUrls&&fM(this,"loggingUrls",a.loggingUrls,b,c);a=g.q(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;eM.hasOwnProperty(d)||fM(this,d,e,b,c)}};g.u(hM,g.P);g.k=hM.prototype;
g.k.aa=function(){this.Aa=!0;g.Yr(this.K);this.W&&this.u.getVideoData(1).unsubscribe("cuepointupdated",this.Jx,this);if(WH(this.u)){var a=jM(this.u);a.removeEventListener("updateKevlarOrC3Companion",RL);a.removeEventListener("onPlaShelfInfoCardsReady",TL);a.removeEventListener("updateEngagementPanelAction",VL);a.removeEventListener("changeEngagementPanelVisibility",XL);window.removeEventListener("yt-navigate-start",YL);WL=UL=QL=null}a=g.q(this.F.values());for(var b=a.next();!b.done;b=a.next())CM(this,
b.value);zM(this,!1);this.I.clear();this.ha=[];this.Z.clear();g.eg(this.C);this.C=null;g.eg(this.P);this.P=new Map;g.eg(this.X);this.X=new Map;this.F.clear();g.P.prototype.aa.call(this)};
g.k.Mt=function(a){if(a instanceof iH&&!a.B&&(!kH(a)||a.contains(1E3*this.u.getCurrentTime(1)||0)))if(g.T(g.lI(this.u,1),32))this.Z.add(a);else{var b=this.F.get(a);b&&(((this.D?0:g.R(this.u.T().experiments,"enable_eviction_protection_for_bulleit"))?b.Zm()&&this.C?this.C.Fp():!b.Zm()&&this.B?this.B.Fp():1:1)?b.Dw(a):a.deactivate())}};
g.k.qN=function(a){a instanceof iH&&(a.B&&(a.B=!1),this.Z["delete"](a))};
g.k.Jx=function(a){Fna(this.yb,a);if(null==this.W)g.M(Error("Dynamically inserted ad was requested, but no cuepoint AdPlacementRenderer was present to fulfill the request."));else if(this.D){a=g.q(a);for(var b=a.next();!b.done;b=a.next())this.Ja.reduce(b.value)}else 0!=(this.u.getCurrentTime(1)||0)&&(a=a.filter(function(c){return"start"==c.event}),mM(this,[this.W],a))};
g.k.nE=function(a){mM(this,[this.W],[a])};
g.k.cE=function(a){var b=1E3*a;this.B&&this.B.wu(b);for(var c=g.q(this.F.values()),d=c.next();!d.done;d=c.next())d.value.wu(b);g.Fb(this.Na.u,1E3*a)};
g.k.wi=function(a){switch(a){case "control_play":this.B&&(a=this.B,a.nk()?a.J.Tb().playVideo():a.Hp()&&a.B.gj());break;case "control_pause":this.B&&(a=this.B,a.nk()?a.J.Tb().pauseVideo():a.Hp()&&a.B.hk())}};
g.k.SL=function(a){this.B&&this.B.Vb(a)};
g.k.PM=function(a){0>wI(a,16)&&(this.Z.forEach(this.Mt,this),this.Z.clear())};
g.k.KP=function(){this.B&&this.B.Pa();if(this.D)for(var a=1E3*this.u.getCurrentTime(1),b=g.q(this.F.keys()),c=b.next();!c.done;c=b.next())if(c=c.value,c.start<=a&&a<c.end){this.Mt(c);break}};
g.k.PP=function(){var a=null;this.D&&(a=this.u.getCurrentTime(1),this.Ja.updateTime(a));if(UH(this.u)&&this.B){var b=this.u.getCurrentTime(2,!1),c=this.B;if(c.B){var d=c.B;d.F&&fI(d.Fa,b,d.getDuration());if(null!==a&&(b=c.u.F,!(null===b||g.R(c.J.T().experiments,"html5_dai_drift_recovery_killswitch")||(d=c.u.u.start,1E3*a<d+b)))){c.u.F=null;var e=sL(c),f=Math.min(a+oG(c.J),e/1E3),h=c.u.C&&c.u.C.identifier;a<f?(c.J.seekTo(f,void 0,void 0,1),c=c.Vg,a*=1E3,f*=1E3,c.B&&QK({driftRecoveryInfo:{contentCpn:c.u,
cueIdentifier:h||void 0,driftRecoveryMs:b.toString(),breakDurationMs:Math.round(e-d).toString(),driftFromHeadMs:Math.round(1E3*oG(c.C)).toString(),appliedDriftRecoveryMs:Math.round(a-d).toString(),destinationMs:Math.round(f-d).toString()}})):SK(c.Vg,{cueIdentifier:h,driftRecoveryMs:b,WE:d,DC:e})}}}};
g.k.qM=function(){this.Za=!0;if(this.B){var a=this.B;a.B&&a.B.Pd()}};
g.k.AM=function(a){if(this.B)this.B.onAdUxClicked(a);if(this.C)this.C.onAdUxClicked(a)};
g.k.RP=function(){if(2==this.u.getPresentingPlayerType()&&this.B){var a=this.B.B,b=a.Fa;a=a.J.isMuted();cI(b)||gI(b,a?"mute":"unmute")}};
g.k.DN=function(a){if(this.B){var b=this.B.B.Fa;aI(b)||mI(b,a?"fullscreen":"end_fullscreen")}};
g.k.nR=function(){for(var a=[],b=g.q(this.I),c=b.next();!c.done;c=b.next())c=c.value,jH(c)||a.push(c);b=this.u.app;1!==b.getPresentingPlayerType()||bX(b,"cuerangemarkersupdated",a)};
g.k.By=function(){var a=this.u.getVideoData(2);return a?a.isListed&&!this.ba:!1};
g.k.kt=function(){this.B&&this.B.ji()&&this.B.wD()};
g.k.jt=function(){this.B&&this.B.ji()&&this.B.Ax()};
g.k.tp=function(){this.B&&this.B.ji()&&this.B.Ft()};
g.k.Fr=function(a){if(a=this.P.get(a)){a:{var b="instreamVideoAdRenderer instreamSurveyAdRenderer sandwichedLinearAdRenderer parallelChoiceAdPlacementRenderer linearAdSequenceRenderer adChoiceInterstitialRenderer".split(" ");var c=a.renderer;if(c&&b&&Array.isArray(b)&&0!==b.length)for(var d=0;d<b.length;d++)if(c.hasOwnProperty(b[d])){b=!0;break a}b=!1}b?(a=mM(this,[a]))&&0!==a.length&&(a=a[0],tM(this,a),a.tn()):g.M(Error("Attempted to fill instream slot with a non-instream renderer."))}};
g.k.Lo=function(a){(a=this.P.get(a))&&(a=mM(this,[a]))&&0!=a.length&&a[0].tn()};
g.k.wo=function(){yM(this)};
g.k.Gc=function(a){if(this.B){var b=this.B;b.B&&(b=b.B,b.F&&fI(b.Fa,a,b.getDuration()))}};
g.k.seekTo=function(a){UH(this.u)&&this.B.nk()&&this.u.Tb().seekTo(a)};
g.k.resume=function(){this.B&&this.B.resume()};
g.k.executeCommand=function(a,b,c){this.Rb.executeCommand(a,b,boa(this,void 0===c?null:c))};
g.k.jC=function(){return this.D};
g.k.lB=function(){return this.Ga};g.u(KM,g.Wr);KM.prototype.N=function(a){if(Array.isArray(a)){a=g.q(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof mH&&this.C(b)}};g.u(LM,sI);g.u(MM,KM);
MM.prototype.C=function(a){var b=a.content;switch(b.componentType){case "shopping-companion":switch(a.actionType){case 1:case 2:a=this.u.getVideoData(1);this.u.va("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,macros:b.macros,onLayoutVisibleCallback:b.B,interactionLoggingClientData:b.u});break;case 3:this.u.va("updateKevlarOrC3Companion",{})}break;case "action-companion":switch(a.actionType){case 1:case 2:a=this.u.getVideoData(1);this.u.va("updateKevlarOrC3Companion",{contentVideoId:a&&
a.videoId,actionCompanionAdRenderer:b.renderer,macros:b.macros,onLayoutVisibleCallback:b.B,interactionLoggingClientData:b.u});break;case 3:b.renderer&&b.renderer.controlFlowExperimentEnabled&&(b=this.u.getVideoData(1),this.u.va("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.u.va("updateKevlarOrC3Companion",{})}break;case "image-companion":switch(a.actionType){case 1:case 2:a=this.u.getVideoData(1);this.u.va("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,
macros:b.macros,onLayoutVisibleCallback:b.B,interactionLoggingClientData:b.u});break;case 3:this.u.va("updateKevlarOrC3Companion",{})}break;case "ads-engagement-panel":switch(b=b.renderer,a.actionType){case 1:case 2:this.u.va("updateEngagementPanelAction",b.addAction);this.u.va("changeEngagementPanelVisibility",b.expandAction);break;case 3:this.u.va("changeEngagementPanelVisibility",b.hideAction),this.u.va("updateEngagementPanelAction",b.removeAction)}}};g.u(NM,g.B);NM.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.Ma().appendChild(a.Ma())};
g.u(OM,NM);OM.prototype.Ma=function(){return this.B};g.u(PM,g.B);var RM=1;g.u(g.TM,g.B);g.k=g.TM.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.G;var c=a.L,d=a.ia;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.G);g.rC&&(a.U||(a.U={}),a.U.focusable="false")}else e=g.Fe(a.G);if(c){if(c=UM(this,e,"class",c))VM(this,e,"class",c),this.Aa[c]=e}else if(d){c=g.q(d);for(var f=c.next();!f.done;f=c.next())this.Aa[f.value]=e;VM(this,e,"class",d.join(" "))}d=a.Y;c=a.S;if(d)d=UM(this,e,"child",d),void 0!==d&&e.appendChild(g.Ge(d));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=UM(this,e,"child",f),null!=f&&e.appendChild(g.Ge(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.qb&&(h=SM(),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.Ie(e,f,d++))}if(d=a.U)for(c=e,f=g.q(Object.keys(d)),h=f.next();!h.done;h=f.next()){h=h.value;var l=d[h];VM(this,c,h,"string"===
typeof l?UM(this,c,h,l):l)}return e};
g.k.ga=function(a){return this.Aa[a]};
g.k.fa=function(a,b){"number"===typeof b?g.Ie(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.Je(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.wa(c,a[c])};
g.k.wa=function(a,b){var c=this.Rb["{{"+a+"}}"];c&&VM(this,c[0],c[1],b)};
g.k.aa=function(){this.Aa={};this.Rb={};this.detach();g.B.prototype.aa.call(this)};g.u(g.V,g.TM);g.k=g.V.prototype;g.k.pc=function(a,b){this.wa(b||"content",a)};
g.k.show=function(){this.Wa||(g.E(this.element,"display",""),this.Wa=!0)};
g.k.hide=function(){this.Wa&&(g.E(this.element,"display","none"),this.Wa=!1)};
g.k.zb=function(a){this.N=a};
g.k.ua=function(a,b,c){return this.R(this.element,a,b,c)};
g.k.R=function(a,b,c,d){c=(0,g.z)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.Eb=function(a){var b=this;this.listeners.forEach(function(c,d){if(c===a){var e=b.listeners.splice(d,1)[0];e.target.removeEventListener(e.type,e.listener)}})};
g.k.focus=function(){Qe(this.element);this.element.focus()};
g.k.aa=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.TM.prototype.aa.call(this)};g.u(g.XM,g.V);g.XM.prototype.subscribe=function(a,b,c){return this.ba.subscribe(a,b,c)};
g.XM.prototype.unsubscribe=function(a,b,c){return this.ba.unsubscribe(a,b,c)};
g.XM.prototype.yk=function(a){return this.ba.yk(a)};
g.XM.prototype.V=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return this.ba.V.apply(this.ba,[a].concat(g.la(c)))};var lCa=new WeakSet;g.u(W,g.XM);g.k=W.prototype;g.k.bind=function(a){if(!this.Ga&&a.renderer){var b=Object.assign({},eoa(this.api,this.Ea),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.k.init=function(a,b,c){this.Ga=a;this.element.setAttribute("id",this.Ga);this.nb&&g.I(this.element,this.nb);this.W=b&&b.adRendererCommands;this.macros=c;this.K=b.trackingParams||null;null!=this.K&&bN(this,this.element,this.K)};
g.k.clear=function(){};
g.k.hide=function(){g.XM.prototype.hide.call(this);null!=this.K&&eN(this,this.element,!1)};
g.k.show=function(){g.XM.prototype.show.call(this);if(!this.ob){this.ob=!0;var a=this.W&&this.W.impressionCommand;a&&this.Ea.executeCommand(a,this.macros,null)}null!=this.K&&eN(this,this.element,!0)};
g.k.onClick=function(a){if(this.K&&!lCa.has(a)){var b=this.element;g.cN(this.api,b)&&this.Wa&&g.gX(this.api,b,this.u);lCa.add(a)}(a=this.W&&this.W.clickCommand)&&this.Ea.executeCommand(a,this.macros,this.sB())};
g.k.sB=function(){return null};
g.k.ZL=function(a){var b=this.Z;b.K=!0;b.B=a.touches.length;b.u.isActive()&&(b.u.stop(),b.F=!0);a=a.touches;b.I=QM(b,a)||1!=a.length;var c=a.item(0);b.I||!c?(b.N=Infinity,b.P=Infinity):(b.N=c.clientX,b.P=c.clientY);for(c=b.C.length=0;c<a.length;c++){var d=a.item(c);b.C.push(d.identifier)}};
g.k.YL=function(a){var b=this.Z;a=a.changedTouches.item(0);var c;if(c=Td()){c=g.Vc;var d="";Wc("Windows")?(d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0"):Td()?(d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".")):Wc("Macintosh")?(d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10"):Ac(g.Vc,"KaiOS")?(d=/(?:KaiOS)\/(\S+)/i,d=(c=d.exec(c))&&c[1]):Wc("Android")?(d=/Android\s+([^\);]+)(\)|;)/,d=(c=d.exec(c))&&c[1]):Wc("CrOS")&&(d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
d=(c=d.exec(c))&&c[1]);c=!(0<=g.Dc(d||"",8))}if(c||a&&Math.pow(a.clientX-b.N,2)+Math.pow(a.clientY-b.P,2)>Math.pow(5,2))b.D=!0};
g.k.XL=function(a){if(this.Z){var b=this.Z,c=a.changedTouches;c&&b.K&&1==b.B&&!b.D&&!b.F&&!b.I&&QM(b,c)&&(b.W=a,b.u.start());b.B=a.touches.length;0===b.B&&(b.K=!1,b.D=!1,b.C.length=0);b.F=!1}};
g.k.aa=function(){this.clear(null);this.Eb(this.Qa);for(var a=g.q(this.ea),b=a.next();!b.done;b=a.next())this.Eb(b.value);g.XM.prototype.aa.call(this)};g.u(hN,W);hN.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&gN(a)||"";g.rc(b)?(g.R(this.api.T().experiments,"web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.Eo(Error("Found AdImage without valid image URL")):(this.B?g.E(this.element,"backgroundImage","url("+b+")"):ve(this.element,{src:b}),ve(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
hN.prototype.clear=function(){this.hide()};g.u(IN,W);
IN.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.B=b;if(null==b.text&&null==b.icon)g.Eo(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.I(this.element,a);null!=b.text&&(a=g.U(b.text),g.rc(a)||(this.element.setAttribute("aria-label",a),this.D=new g.XM({G:"span",L:"ytp-ad-button-text",Y:a}),g.C(this,this.D),this.D.fa(this.element)));null!=b.icon&&(b=HN(b.icon),null!=
b&&(this.C=new g.XM({G:"span",L:"ytp-ad-button-icon",S:[b]}),g.C(this,this.C)),this.F?g.Ie(this.element,this.C.element,0):this.C.fa(this.element))}};
IN.prototype.clear=function(){this.hide()};
IN.prototype.onClick=function(a){var b=this;W.prototype.onClick.call(this,a);hoa(this).forEach(function(c){return b.Ea.executeCommand(c,b.macros)});
this.api.onAdUxClicked(this.componentType,this.layoutId)};var Yoa={seekableStart:0,seekableEnd:1,current:0};g.u(JN,W);JN.prototype.clear=function(){this.dispose()};g.u(MN,JN);g.k=MN.prototype;g.k.init=function(a,b,c){JN.prototype.init.call(this,a,b,c);g.E(this.D,"stroke-dasharray","0 "+this.C);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){LN(this);JN.prototype.hide.call(this)};
g.k.show=function(){KN(this);JN.prototype.show.call(this)};
g.k.Yl=function(){this.hide()};
g.k.Ek=function(){if(this.B){var a=this.B.getProgressState();null!=a&&null!=a.current&&(a=a.current/a.seekableEnd*this.C,this.I&&(a=this.C-a),g.E(this.D,"stroke-dasharray",a+" "+this.C))}};g.u(NN,W);NN.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.B=b;this.isTemplated()||g.Ne(this.element,YM(this.B));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?gN(a):"",c=(c=this.api.getVideoData(1))&&c.lq,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}this.show()};
NN.prototype.isTemplated=function(){return this.B.isTemplated||!1};
NN.prototype.clear=function(){this.hide()};(function(a,b){function c(f){var h=g.q(f);f=h.next().value;h=ka(h);return a.apply(f,h)}
function d(f){f=g.q(f);f.next();f=ka(f);return b(e,f)}
b=void 0===b?Kda:b;var e=g.Ua(a);return function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];l=this||g.v;var m=BBa.get(l);m||(m={},BBa.set(l,m));return Wd(m,[this].concat(g.la(h)),c,d)}})(function(a){var b=g.Fe("DIV");
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.Fe("DIV");g.Dg(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.Je(b);return a});g.u(g.PN,g.B);g.k=g.PN.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.Bu(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.u&&this.u()):this.element.Wa||(QN(this,!0),this.state=1,a?this.delay.start(a):this.Bu()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Wa&&(QN(this,!0),this.state=4,this.delay.start(this.D)))};
g.k.Bu=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:QN(this,!1);this.state=3;this.delay.start(this.C);break;case 3:this.state=null;this.u&&this.u();break;case 4:this.element.hide();QN(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.B&&this.B()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.Bu()};
g.k.aa=function(){this.element.la()||this.element.element.removeAttribute("aria-hidden");g.B.prototype.aa.call(this)};g.u(RN,JN);g.k=RN.prototype;
g.k.init=function(a,b,c){JN.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.M(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.za&&g.I(this.C.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.da=null==a||0===a?this.B.xD():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.D.init(rI("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.lq&&b.thumbnail?this.I.init(rI("ad-image"),b.thumbnail,c):this.P.hide()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.C.hide();this.D.hide();this.I.hide();LN(this);JN.prototype.hide.call(this)};
g.k.show=function(){KN(this);this.C.show();this.D.show();this.I.show();JN.prototype.show.call(this)};
g.k.Yl=function(){this.hide()};
g.k.Ek=function(){if(null!=this.B){var a=this.B.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.ka&&a>=this.da?(g.R(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")||this.X.hide(),this.ka=!0,this.V("c")):this.D&&this.D.isTemplated()&&(a=Math.max(0,Math.ceil((this.da-a)/1E3)),a!=this.ra&&(ON(this.D,{TIME_REMAINING:String(a)}),this.ra=a)))}};g.u(TN,g.B);g.k=TN.prototype;g.k.aa=function(){this.reset();g.B.prototype.aa.call(this)};
g.k.reset=function(){g.Yr(this.F);this.I=!1;this.u&&this.u.stop();this.D.stop();this.B&&(this.B=!1,this.K.play())};
g.k.start=function(){this.reset();this.F.R(this.C,"mouseover",this.dM,this);this.F.R(this.C,"mouseout",this.cM,this);this.u?this.u.start():(this.I=this.B=!0,g.E(this.C,{opacity:this.P}))};
g.k.dM=function(){this.B&&(this.B=!1,this.K.play());this.D.stop();this.u&&this.u.stop()};
g.k.cM=function(){this.I?this.D.start():this.u&&this.u.start()};
g.k.pA=function(){this.B||(this.B=!0,this.N.play(),this.I=!0)};g.u(UN,JN);g.k=UN.prototype;
g.k.init=function(a,b,c){JN.prototype.init.call(this,a,b,c);this.P=b;this.da=ioa(this);!b||g.Wb(b)?g.M(Error("SkipButtonRenderer was not specified or empty.")):!b.message||g.Wb(b.message)?g.M(Error("SkipButtonRenderer.message was not specified or empty.")):(a={iconType:"SKIP_NEXT"},b=HN(a),null==b?g.M(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.I=new g.XM({G:"button",ia:["ytp-ad-skip-button","ytp-button"],S:[{G:"span",L:"ytp-ad-skip-button-icon",
S:[b]}]}),g.C(this,this.I),this.I.fa(this.D.element),this.C=new NN(this.api,this.Ea,this.layoutId,this.u,"ytp-ad-skip-button-text"),this.C.init(rI("ad-text"),this.P.message,c),g.C(this,this.C),g.Ie(this.I.element,this.C.element,0)),g.R(this.api.T().experiments,"bulleit_use_touch_events_for_skip")&&fN(this))};
g.k.clear=function(){this.X.reset();this.hide()};
g.k.hide=function(){this.D.hide();this.C&&this.C.hide();LN(this);JN.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.I&&(a&&g.ip(a),JN.prototype.onClick.call(this,a),this.V("d"),!this.da))this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.sB=function(){return"skip"};
g.k.show=function(){this.X.start();this.D.show();this.C&&this.C.show();KN(this);JN.prototype.show.call(this)};
g.k.Yl=function(){this.V("e")};
g.k.Ek=function(){};g.u(VN,g.P);g.k=VN.prototype;g.k.xD=function(){return this.B};
g.k.start=function(){this.C||(this.C=!0,this.Ua.start())};
g.k.stop=function(){this.C&&(this.C=!1,this.Ua.stop())};
g.k.VL=function(){this.u+=100;var a=!1;this.u>this.B&&(this.u=this.B,this.Ua.stop(),a=!0);this.D={seekableStart:0,seekableEnd:this.B/1E3,current:this.u/1E3};this.F&&this.F.Gc(this.D.current);this.V("b");a&&this.V("a")};
g.k.getProgressState=function(){return this.D};g.u(WN,W);g.k=WN.prototype;
g.k.init=function(a,b,c){W.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.M(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<e.length&&g.rc(g.pd(e[0].url))&&(e[0].url=d.bf);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.rc(g.pd(e[0].url))&&(e[0].url=d.Gd());e=b.headline;null!=e&&g.rc(g.pd(e.text))&&(e.text=d.author)}this.P.init(rI("ad-image"),b.image,c);this.ha.init(rI("ad-text"),b.headline,c);this.da.init(rI("ad-text"),b.description,c);this.X.init(rI("ad-image"),b.backgroundImage,c);this.B=new IN(this.api,this.Ea,this.layoutId,this.u,["ytp-ad-action-interstitial-action-button"]);g.C(this,this.B);
this.B.fa(this.Na);this.B.init(rI("button"),b.actionButton.buttonRenderer,c);this.ka=b.navigationEndpoint;this.api.T().u||(this.I.R(this.Ja,"click",this.Xv,this),this.I.R(this.za,"click",this.Xv,this),this.I.R(this.ra,"click",this.Xv,this));this.C=new VN(a);g.C(this,this.C);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.C&&(this.F=new UN(this.api,this.Ea,this.layoutId,this.u,this.C),g.C(this,this.F),this.F.fa(this.element),this.F.init(rI("skip-button"),a,c)):b.nonskippableOverlayRenderer&&
(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.C&&(this.D=new RN(this.api,this.Ea,this.layoutId,this.u,this.C,!1),g.C(this,this.D),this.D.fa(this.element),this.D.init(rI("ad-preview"),a,c));(b=b.countdownRenderer)&&b.timedPieCountdownRenderer&&this.C&&(c=new MN(this.api,this.Ea,this.layoutId,this.u,this.C),g.C(this,c),c.fa(this.element),c.init(rI("timed-pie-countdown"),b.timedPieCountdownRenderer,this.macros));this.show();this.element.focus()}else g.M(Error("AdActionInterstitialRenderer has no navigation endpoint."));
else g.M(Error("AdActionInterstitialRenderer has no button."));else g.M(Error("AdActionInterstitialRenderer has no background AdImage."));else g.M(Error("AdActionInterstitialRenderer has no description AdText."));else g.M(Error("AdActionInterstitialRenderer has no headline AdText."));else g.M(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.Yr(this.I);this.hide()};
g.k.show=function(){XN(!0);this.B&&this.B.show();this.F&&this.F.show();this.D&&this.D.show();W.prototype.show.call(this)};
g.k.hide=function(){XN(!1);this.B&&this.B.hide();this.F&&this.F.hide();this.D&&this.D.hide();W.prototype.hide.call(this)};
g.k.Xv=function(){this.ka&&this.Ea.executeCommand(this.ka,this.macros)};g.u(YN,W);
YN.prototype.init=function(a,b,c){var d=this;W.prototype.init.call(this,a,b,c);if(b.text)if(b.adChoiceButtons&&2==b.adChoiceButtons.length){a=0;for(var e=[],f=g.q(b.adChoiceButtons),h=f.next();!h.done;h=f.next()){var l=(h=h.value)&&h.buttonRenderer;if(!l){g.M(Error("AdChoiceInterstitialRenderer only supports button renderers of type button_renderer"));return}l=l.text;if(!l){g.M(Error("AdChoiceInterstitialRenderer's ButtonRenderer is missing a text field"));return}e.push(h.buttonRenderer);h=g.U(l);
a=Math.max(a,h.length)}f=b.durationMilliseconds||0;if("number"!==typeof f||0>f)g.M(Error("timeoutSeconds was specified incorrectly in AdChoiceInterstitialRenderer with a value of: "+f));else if(b.completeCommands)if(b.adDurationRemaining&&b.adDurationRemaining.timedPieCountdownRenderer){koa(this,b.text);var m=loa(b.defaultButtonChoiceIndex);moa(this,e,a,m)?(ooa(this,b.completeCommands,c,f),b&&b.adDurationRemaining&&b.adDurationRemaining.timedPieCountdownRenderer&&poa(this,b.adDurationRemaining.timedPieCountdownRenderer,
c),b&&b.background&&(c=this.ga("ytp-ad-choice-interstitial"),joa(c,b.background)),noa(this,a),this.show(),g.R(this.api.T().experiments,"self_podding_default_button_focused")&&g.um(function(){0===m?d.B&&d.B.focus():d.D&&d.D.focus()})):g.M(Error("AdChoiceInterstitialRenderer failed to initialize buttons."))}else g.M(Error("AdChoiceInterstitialRenderer requires a timed_pie_countdown_renderer."));
else g.M(Error("timeoutSeconds was specified yet no completeCommands were specified"))}else g.M(Error("AdChoiceInterstitialRenderer should have two choices."));else g.M(Error("AdChoiceInterstitialRenderer has no title."))};
YN.prototype.clear=function(){this.hide()};g.u($N,W);g.k=$N.prototype;g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.text?(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a?g.M(Error("durationMilliseconds was specified incorrectly in AdTextInterstitialRenderer with a value of: "+a)):(this.B.init(rI("ad-text"),b.text,c),this.show())):g.M(Error("AdTextInterstitialRenderer has no message AdText."))};
g.k.clear=function(){this.hide()};
g.k.show=function(){aO(!0);W.prototype.show.call(this)};
g.k.hide=function(){aO(!1);W.prototype.hide.call(this)};
g.k.onClick=function(){};g.u(bO,g.B);bO.prototype.aa=function(){this.B&&g.dp(this.B);this.u.clear();cO=null;g.B.prototype.aa.call(this)};
bO.prototype.register=function(a,b){b&&this.u.set(a,b)};
var cO=null;g.u(gO,W);
gO.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.M(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new IN(this.api,this.Ea,this.layoutId,this.u),g.C(this,this.button),this.button.init(rI("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.U(a)),this.button.fa(this.element),this.I&&!g.zn(this.button.element,"ytp-ad-clickable")&&g.I(this.button.element,"ytp-ad-clickable"),
a&&(this.C=new g.XM({G:"div",L:"ytp-ad-hover-text-container"}),this.F&&(b=new g.XM({G:"div",L:"ytp-ad-hover-text-callout"}),b.fa(this.C.element),g.C(this,b)),g.C(this,this.C),this.C.fa(this.element),b=fO(a),g.Ie(this.C.element,b,0)),this.show())};
gO.prototype.hide=function(){this.button&&this.button.hide();this.C&&this.C.hide();W.prototype.hide.call(this)};
gO.prototype.show=function(){this.button&&this.button.show();W.prototype.show.call(this)};g.u(hO,W);g.k=hO.prototype;g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.M(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.Eo(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.Eo(Error("AdFeedbackRenderer.title was not set.")),uoa(this,b)):g.M(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){mp(this.F);mp(this.P);this.D.length=0;this.hide()};
g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();W.prototype.hide.call(this);this.I&&this.I.focus()};
g.k.show=function(){this.B&&this.B.show();this.C&&this.C.show();this.I=document.activeElement;W.prototype.show.call(this);this.F.focus()};
g.k.BD=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.V("f");this.hide()};
g.k.HP=function(){this.hide()};
iO.prototype.Ma=function(){return this.u.element};
iO.prototype.isChecked=function(){return this.C.checked};g.u(jO,W);g.k=jO.prototype;g.k.hide=function(){W.prototype.hide.call(this);this.D&&this.D.focus()};
g.k.show=function(){this.D=document.activeElement;W.prototype.show.call(this);this.F.focus()};
g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.C=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.M(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.M(Error("ConfirmDialogRenderer.cancelLabel was not set.")):voa(this,b):g.M(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.Yr(this.B);this.hide()};
g.k.Hx=function(){this.hide()};
g.k.Bx=function(){var a=this.C.cancelEndpoint;a&&this.Ea.executeCommand(a,this.macros);this.hide()};
g.k.Ix=function(){var a=this.C.confirmNavigationEndpoint||this.C.confirmEndpoint;a&&this.Ea.executeCommand(a,this.macros);this.hide()};g.u(kO,jO);kO.prototype.Hx=function(a){jO.prototype.Hx.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
kO.prototype.Bx=function(a){jO.prototype.Bx.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
kO.prototype.Ix=function(a){jO.prototype.Ix.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.V("g")};g.u(lO,W);g.k=lO.prototype;
g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.I=b;if(null==b.dialogMessage&&null==b.title)g.M(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.Eo(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.B=new IN(this.api,this.Ea,this.layoutId,this.u,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.C(this,this.B),
this.B.init(rI("button"),a,this.macros),this.B.fa(this.element);b.title&&(a=g.U(b.title),this.wa("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=fO(a[c]);if(!g.rc(d.textContent)){var e=g.Ee("LI");e.appendChild(d);this.da.appendChild(e)}}else g.Fg(this.da,!1);b.dialogMessage&&(a=fO(b.dialogMessage,!0),this.ra.appendChild(a));b.confirmLabel&&(a=g.U(b.confirmLabel),this.wa("confirmLabel",a));b.muteAdRenderer&&(b=(b=b.muteAdRenderer)&&b.buttonRenderer||null)&&(a=b.navigationEndpoint&&
b.navigationEndpoint.adFeedbackEndpoint||null,c=b.navigationEndpoint&&b.navigationEndpoint.confirmDialogEndpoint||null,null==a&&null==c?g.Eo(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?xoa(this,a):c&&yoa(this,c),this.D=new IN(this.api,this.Ea,this.layoutId,this.u,["ytp-ad-info-dialog-mute-button"],"button",!0),g.C(this,this.D),this.D.init(rI("button"),b,this.macros),this.D.ua("click",this.lO,this),this.D.fa(this.za)));
zoa(this)}};
g.k.clear=function(){mp(this.P);this.hide()};
g.k.hide=function(){this.C?this.C.hide():this.F&&this.F.hide();this.B&&this.B.hide();this.D&&this.D.hide();W.prototype.hide.call(this);this.X&&this.X.focus()};
g.k.show=function(){this.B&&this.B.show();this.D&&this.D.show();this.ha||(woa(this),this.ha=!0);this.X=document.activeElement;W.prototype.show.call(this);this.P.focus()};
g.k.CD=function(){this.I&&this.I.confirmServiceEndpoint&&this.Ea.executeCommand(this.I.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.V("i");this.hide()};
g.k.lO=function(){var a=this.C?this.C:this.F;a&&!a.Wa&&(this.hide(),a.show())};g.u(mO,gO);mO.prototype.init=function(a,b,c){gO.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(Boa(this,a,c),this.show())};
mO.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();gO.prototype.hide.call(this)};
mO.prototype.show=function(){this.button&&this.button.show();gO.prototype.show.call(this)};
mO.prototype.clear=function(){this.hide()};var wO=new g.he(320,63);var FO={iconType:"CLOSE"},JO=new g.he(320,63);g.u(EO,W);g.k=EO.prototype;
g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.F=b;this.P=g.ub(this.F.onClickCommands||[]);this.ra=this.F.onErrorCommand||null;if(a=this.F.contentSupportedRenderer)a=this.F.contentSupportedRenderer,b=this.F.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.I=g.te("ytp-ad-overlay-ad-info-button-container",this.D.element),HO(this,b),a=Hoa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.I=g.te("ytp-ad-overlay-ad-info-button-container",this.C.element),
HO(this,b),a=Ioa(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.I=g.te("ytp-ad-overlay-ad-info-button-container",this.B.element),HO(this,b),a=Joa(this,a.imageOverlayAdContentRenderer)):(g.M(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),KO(this,!0))};
g.k.gO=function(){this.api.app.visibility.u&&this.clear()};
g.k.clear=function(){KO(this,!1);this.ka.reset();this.X=0;this.D.hide();eN(this,this.D.element,!1);this.C.hide();eN(this,this.C.element,!1);this.B.hide();eN(this,this.B.element,!1);this.hide();this.dispose()};
g.k.yP=function(){this.Ja&&this.Ea.executeCommand(this.Ja,this.macros);this.api.pauseVideo()};
g.k.Cx=function(){var a=this;Goa(this).forEach(function(b){return a.Ea.executeCommand(b,a.macros)});
if(DO(this.api))this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId);else this.clear()};
g.k.aM=function(){this.za=2==this.api.getPlayerState(1);this.api.pauseVideo()};
g.k.uM=function(){this.za||2!=this.api.getPlayerState(1)||this.api.playVideo()};
g.k.jO=function(){this.za||2!=this.api.getPlayerState(1)||this.api.playVideo();DO(this.api)?this.api.V("muteadaccepted","invideo-overlay",void 0):this.clear()};
g.k.vM=function(a){a.target===this.I&&g.te("ytp-ad-button",this.Na.element).click()};g.u(LO,JN);g.k=LO.prototype;g.k.init=function(a,b,c){JN.prototype.init.call(this,a,b,c);a=b.durationMs;"number"===typeof a&&0>=a&&g.M(Error("durationMs was specified incorrectly in AdMessageRenderer with a value of: "+a));a=b.durationMs;this.I=null==a||0===a?0:a+1E3*this.B.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.C.init(rI("ad-text"),d,c);this.C.fa(this.D.element);this.P.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){Koa(this,!1);JN.prototype.hide.call(this);this.D.hide();this.C.hide();LN(this)};
g.k.show=function(){Koa(this,!0);JN.prototype.show.call(this);KN(this);this.D.show();this.C.show()};
g.k.Yl=function(){this.hide()};
g.k.Ek=function(){if(null!=this.B){var a=this.B.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.X&&a>=this.I?(this.P.hide(),this.X=!0):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.I-a)/1E3)),a!=this.da&&(ON(this.C,{TIME_REMAINING:String(a)}),this.da=a)))}};g.u(MO,JN);g.k=MO.prototype;
g.k.init=function(a,b,c){JN.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.Wb(a)?null:a){this.I=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.Xu(this.api.T().experiments,"preskip_button_style_ads_backend")&&YB(this.api.T());this.C=new RN(this.api,this.Ea,this.layoutId,this.u,this.B,d);this.C.init(rI("preskip-component"),a,c);SN(this.C);g.C(this,this.C);this.C.fa(this.element);
g.R(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")&&this.C.subscribe("c",this.DO,this)}else b.skipOffsetMilliseconds&&(this.I=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Wb(b)?null:b;null==b?g.M(Error("SkipButtonRenderer was not set in player response.")):(this.D=new UN(this.api,this.Ea,this.layoutId,this.u,this.B),this.D.init(rI("skip-button"),b,c),g.C(this,this.D),this.D.fa(this.element),this.show())};
g.k.show=function(){this.P&&this.D?this.D.show():this.C&&this.C.show();KN(this);JN.prototype.show.call(this)};
g.k.Yl=function(){};
g.k.clear=function(){this.C&&this.C.clear();this.D&&this.D.clear();LN(this);JN.prototype.hide.call(this)};
g.k.hide=function(){this.C&&this.C.hide();this.D&&this.D.hide();LN(this);JN.prototype.hide.call(this)};
g.k.DO=function(){NO(this,!0)};
g.k.Ek=function(){g.R(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")?this.C||1E3*this.B.getProgressState().current>=this.I&&NO(this,!0):1E3*this.B.getProgressState().current>=this.I&&NO(this,!0)};g.u(OO,W);OO.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.skipAd&&(a=b.skipAd,a.skipAdRenderer&&(b=new MO(this.api,this.Ea,this.layoutId,this.u,this.B),b.fa(this.C),b.init(rI("skip-button"),a.skipAdRenderer,this.macros),g.C(this,b)));this.show()};g.u(RO,JN);g.k=RO.prototype;g.k.init=function(a,b,c){JN.prototype.init.call(this,a,b,c);if(b.templatedCountdown){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.Eo(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.C=new NN(this.api,this.Ea,this.layoutId,this.u);this.C.init(rI("ad-text"),a,{});this.C.fa(this.element);g.C(this,this.C)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){LN(this);JN.prototype.hide.call(this)};
g.k.Yl=function(){this.hide()};
g.k.Ek=function(){if(null!=this.B){var a=this.B.getProgressState();if(null!=a&&null!=a.current&&this.C){a=(void 0!==this.D?this.D:this.B instanceof VN?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.PO(a);ON(this.C,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.k.show=function(){KN(this);JN.prototype.show.call(this)};g.u(SO,NN);SO.prototype.onClick=function(a){NN.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.u(TO,JN);g.k=TO.prototype;
g.k.init=function(a,b,c){JN.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<d.length&&g.rc(g.pd(d[0].url))&&(d[0].url=a.bf)}else g.lr(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.D.init(rI("ad-image"),b.image,c);this.P.init(rI("ad-text"),
b.headline,c);this.I.init(rI("ad-text"),b.description,c);this.C.init(rI("button"),b.actionButton.buttonRenderer,c);this.X=b.actionButton.buttonRenderer.navigationEndpoint;this.show();this.da=b.startMs||0;KN(this)}else g.kr(Error("FlyoutCtaRenderer has no valid action button."));else g.kr(Error("FlyoutCtaRenderer has no description AdText."));else g.kr(Error("FlyoutCtaRenderer has no headline AdText."));else g.lr(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){JN.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Me(this.C.element,a.target)&&this.X&&this.Ea.executeCommand(this.X,this.macros)};
g.k.Ek=function(){if(this.B){var a=this.B.getProgressState();a&&a.current&&1E3*a.current>=this.da&&(LN(this),g.Bn(this.element,"ytp-flyout-cta-inactive"))}};
g.k.Yl=function(){this.clear()};
g.k.clear=function(){this.hide()};
g.k.show=function(){this.C&&this.C.show();JN.prototype.show.call(this)};
g.k.hide=function(){this.C&&this.C.hide();JN.prototype.hide.call(this)};g.u(UO,W);g.k=UO.prototype;
g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.C=b;if(null==b.defaultText&&null==b.defaultIcon)g.M(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.M(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.I(this.D,a)}a={};b.defaultText?
(c=g.U(b.defaultText),g.rc(c)||(a.buttonText=c,this.B.setAttribute("aria-label",c))):g.Fg(this.ha,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.B.hasAttribute("aria-label")||this.X.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=HN(b.defaultIcon),this.wa("untoggledIconTemplateSpec",c),b.toggledIcon?(this.P=!0,c=HN(b.toggledIcon),this.wa("toggledIconTemplateSpec",c)):(g.Fg(this.I,!0),g.Fg(this.F,!1)),g.Fg(this.B,!1)):g.Fg(this.X,!1);g.Wb(a)||this.update(a);b.isToggled&&(g.I(this.D,
"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));VO(this);this.da=this.R(this.element,"change",this.zD);g.R(this.api.T().experiments,"bulleit_use_touch_events_for_magpie")&&fN(this,this.da);this.show()}};
g.k.onClick=function(a){0<this.ea.length&&(this.toggleButton(!this.isToggled()),this.zD());W.prototype.onClick.call(this,a)};
g.k.zD=function(){var a=this;g.J(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());Loa(this,this.isToggled()).forEach(function(b){return a.Ea.executeCommand(b,a.macros)});
if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);VO(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.J(this.D,"ytp-ad-toggle-button-toggled",a);this.B.checked=a;VO(this)};
g.k.isToggled=function(){return this.B.checked};g.u(WO,W);g.k=WO.prototype;g.k.init=function(a,b,c){var d=this;W.prototype.init.call(this,a,b,c);this.B=b;this.B.rectangle&&(Moa(this,c),g.R(this.api.T().experiments,"bulleit_use_touch_events_for_magpie")&&fN(this,this.I),this.F.show(100),this.show(),(this.B&&this.B.impressionCommands||[]).forEach(function(e){return d.Ea.executeCommand(e,d.macros)}))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.D.hide();this.C.hide();W.prototype.hide.call(this)};
g.k.show=function(){this.D.show();this.C.show();W.prototype.show.call(this)};
g.k.AD=function(){var a=this.element,b=!g.zn(a,"ytp-ad-instream-user-sentiment-selected");g.J(a,"ytp-ad-instream-user-sentiment-selected",b);this.B.postMessageAction&&this.api.va("onYtShowToast",this.B.postMessageAction);this.F.hide()};
g.k.onClick=function(a){0<this.ea.length&&this.AD();W.prototype.onClick.call(this,a)};g.u(XO,IN);XO.prototype.init=function(a,b,c){IN.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.U(b.text),a=!g.rc(a));a?null==b.navigationEndpoint?g.Eo(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.Eo(Error("Button style was not a link-style type in renderer,")):(g.R(this.api.T().experiments,"bulleit_use_touch_events_for_visit_advertiser")&&fN(this),this.show()):g.Eo(Error("No visit advertiser text was present in the renderer."))};g.u(YO,W);YO.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);a=b.text;g.rc(YM(a))?g.Eo(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.B&&(b=this.api.T(),b=a.text+" "+(b&&b.u?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new NN(this.api,this.Ea,this.layoutId,this.u),a.init(rI("simple-ad-badge"),b,c),a.fa(this.element),g.C(this,a)),this.show())};
YO.prototype.clear=function(){this.hide()};ZO.prototype.getLength=function(){return this.u-this.B};g.u(bP,g.XM);bP.prototype.D=function(){var a=this.B.getProgressState();a=aP(new ZO(a.seekableStart,a.seekableEnd),a.current,0);this.I.style.width=100*a+"%"};
bP.prototype.F=function(){g.aC(this.C.T())||(2==this.C.getPresentingPlayerType()?-1===this.u&&(this.show(),this.u=this.B.subscribe("b",this.D,this),this.D()):-1!==this.u&&(this.hide(),this.B.yk(this.u),this.u=-1))};g.u(cP,W);
cP.prototype.init=function(a,b,c,d){W.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new MO(this.api,this.Ea,this.layoutId,this.u,this.B),c.fa(this.F),c.init(rI("skip-button"),a.skipAdRenderer,this.macros),g.C(this,c)):a.adPreviewRenderer&&(c=new RN(this.api,this.Ea,this.layoutId,this.u,this.B,!1),c.fa(this.F),c.init(rI("ad-preview"),a.adPreviewRenderer,this.macros),SN(c),g.C(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=
new WO(this.api,this.Ea,this.layoutId,this.u),c.fa(this.P),c.init(rI("instream-user-sentiment"),a,this.macros),g.C(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new TO(this.api,this.Ea,this.layoutId,this.u,this.B),g.C(this,c),c.fa(this.I),c.init(rI("flyout-cta"),a.flyoutCtaRenderer,this.macros)));d=d&&d.C;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}),c=new YO(this.api,this.Ea,this.layoutId,this.u,!0),g.C(this,
c),c.fa(this.C),c.init(rI("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 RO(this.api,this.Ea,this.layoutId,this.u,this.B,d),g.C(this,d),d.fa(this.C),d.init(rI("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new mO(this.api,this.Ea,this.layoutId,this.u,this.element),
g.C(this,a),a.fa(this.C),a.init(rI("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=Noa(this)&&this.D?this.D:this.C))&&(a=new XO(this.api,this.Ea,this.layoutId,this.u),g.C(this,a),a.fa(d),a.init(rI("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.T())&&!QB(b)&&"3"==b.controlsType&&(b=new bP(this.api,this.B),b.fa(this.X),g.C(this,b));g.R(this.api.T().experiments,"enable_updated_html5_player_focus_style")&&
g.I(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
cP.prototype.clear=function(){this.hide()};g.u(dP,W);
dP.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.D=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new IN(this.api,this.Ea,this.layoutId,this.u,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.fa(this.C),a.init(rI("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.B=new UO(this.api,this.Ea,this.layoutId,this.u,["ytp-ad-survey-answer-toggle-button"]),this.B.fa(this.C),
g.C(this,this.B),this.B.init(rI("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
dP.prototype.clear=function(){this.hide()};g.u(eP,W);eP.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.B=new UO(this.api,this.Ea,this.layoutId,this.u,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.B.fa(this.C),this.B.init(rI("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.u(fP,IN);fP.prototype.init=function(a,b,c){IN.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.U(b.text),a=!g.rc(b));a||g.Eo(Error("No submit text was present in the renderer."))};
fP.prototype.onClick=function(a){this.V("l");IN.prototype.onClick.call(this,a)};g.u(gP,W);
gP.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.C=c;if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new MO(this.api,this.Ea,this.layoutId,this.u,this.F),c.fa(this.P),c.init(rI("skip-button"),a,this.C),g.C(this,c),this.B=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new RN(this.api,this.Ea,this.layoutId,this.u,this.F,!1),c.fa(this.P),c.init(rI("ad-preview"),a,this.C),SN(c),g.C(this,c),this.B=c);null==this.B&&g.M(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new fP(this.api,this.Ea,this.layoutId,this.u),c.fa(this.X),c.init(rI("survey-submit"),a,this.C),g.C(this,c),this.D=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new YO(this.api,this.Ea,this.layoutId,this.u,!0),c.fa(this.I),c.init(rI("simple-ad-badge"),a,this.C),g.C(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new RO(this.api,this.Ea,this.layoutId,this.u,this.F,void 0),c.fa(this.I),c.init(rI("ad-duration-remaining"),
a,this.C),g.C(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new mO(this.api,this.Ea,this.layoutId,this.u,this.element),g.C(this,a),a.fa(this.I),a.init(rI("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
gP.prototype.clear=function(){this.hide()};g.u(hP,W);hP.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);Roa(this)};
hP.prototype.show=function(){this.F=g.A();W.prototype.show.call(this)};
hP.prototype.BF=function(){};g.u(iP,hP);g.k=iP.prototype;g.k.init=function(a,b,c){var d=this;hP.prototype.init.call(this,a,b,c);b.questionText&&g.Ne(this.da,g.U(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&Ooa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.P=new Set(this.D.map(function(e){return e.B.B}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&Soa(this,a,c);b.surveyAdQuestionCommon?Qoa(this,b.surveyAdQuestionCommon):g.M(Error("SurveyAdQuestionCommon was not sent.MultiSelectQuestionRenderer: "+JSON.stringify(b)));b.submitEndpoints&&(this.ha=b.submitEndpoints);this.R(this.element,"change",this.bM);this.show()};
g.k.BF=function(){jP(this,!1);this.I.D.subscribe("l",this.wP,this)};
g.k.bM=function(a){a.target==this.C.B.B?Toa(this):this.P.has(a.target)&&(this.C.B.toggleButton(!1),jP(this,!0))};
g.k.wP=function(){var a=this,b=this.D.reduce(function(d,e){var f=e.D;e.B&&e.B.isToggled()&&f&&d.push(f);return d},[]).join("&"),c=this.ha.map(function(d){if(!d.loggingUrls)return d;
d=g.$b(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=Md(e.baseUrl,b));return e});
return d});
c&&c.forEach(function(d){return a.Ea.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.u(kP,hP);kP.prototype.init=function(a,b,c){var d=this;hP.prototype.init.call(this,a,b,c);b.questionText&&g.Ne(this.da,g.U(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&Ooa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?Qoa(this,b.surveyAdQuestionCommon):g.M(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
kP.prototype.clear=function(){g.R(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.u(lP,W);
lP.prototype.init=function(a,b,c){var d=this;W.prototype.init.call(this,a,b,c);b.questions.forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new kP(d.api,d.Ea,d.layoutId,d.u);f.fa(d.B);f.init(rI("survey-question-single-select"),e,c);d.C.push(f);g.C(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new iP(d.api,d.Ea,d.layoutId,d.u),f.fa(d.B),f.init(rI("survey-question-multi-select"),e,
c),d.C.push(f),g.C(d,f))});
this.show()};
lP.prototype.clear=function(){g.R(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.u(mP,W);
mP.prototype.init=function(a,b,c){var d=this;W.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.M(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){Woa(this.F,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);Woa(this.P,
b.brandImage);g.Ne(this.X,g.U(b.text));this.B=new IN(this.api,this.Ea,this.layoutId,this.u,["ytp-ad-survey-interstitial-action-button"]);g.C(this,this.B);this.B.fa(this.I);this.B.init(rI("button"),b.ctaButton.buttonRenderer,c);this.B.show();var e=b.timeoutCommands;this.D=new VN(1E3*a);this.D.subscribe("a",function(){d.C.hide();e.forEach(function(f){return d.Ea.executeCommand(f,c)});
d.Ea.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)});
g.C(this,this.D);this.R(this.element,"click",function(f){return Voa(d,f,b)});
this.C.show(100);b.impressionCommands&&b.impressionCommands.forEach(function(f){return d.Ea.executeCommand(f,c)})}else g.M(Error("SurveyTextInterstitialRenderer has no landscape background image."));
else g.M(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.M(Error("SurveyTextInterstitialRenderer has no button."));else g.M(Error("SurveyTextInterstitialRenderer has no text."));else g.M(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
mP.prototype.clear=function(){this.hide()};
mP.prototype.show=function(){Xoa(!0);W.prototype.show.call(this)};
mP.prototype.hide=function(){Xoa(!1);W.prototype.hide.call(this)};g.u(nP,g.P);g.k=nP.prototype;g.k.xD=function(){return 1E3*this.u.getDuration(this.C,!1)};
g.k.stop=function(){this.D&&this.B.Eb(this.D)};
g.k.yD=function(){var a=this.u.getProgressState(this.C);this.F={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:g.R(this.u.T().experiments,"halftime_ux_killswitch")?a.current:this.u.getCurrentTime(this.C,!1)};this.V("b")};
g.k.getProgressState=function(){return this.F};
g.k.WL=function(a){g.xI(a,2)&&this.V("a")};var mCa="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.u(pP,KM);
pP.prototype.C=function(a){var b=a.id,c=a.content;if(c){var d=c.componentType;if(!mCa.includes(d))switch(a.actionType){case 1:a=this.K();var e=this.D,f=c.layoutId,h=c.u;h=void 0===h?{}:h;switch(d){case "invideo-overlay":a=new EO(e,a,f,h);break;case "persisting-overlay":a=new OO(e,a,f,h,new nP(e));break;case "player-overlay":a=new cP(e,a,f,h,new nP(e));break;case "survey":a=new lP(e,a,f,h);break;case "ad-action-interstitial":a=new WN(e,a,f,h);break;case "ad-text-interstitial":a=new $N(e,a,f,h);break;
case "survey-interstitial":a=new mP(e,a,f,h);break;case "ad-choice-interstitial":a=new YN(e,a,f,h);break;case "ad-message":a=new LO(e,a,f,h,new nP(e,1));break;default:a=null}if(!a){g.Eo(Error("No UI component returned from ComponentFactory for type: "+d));break}Sb(this.B,b)?g.Eo(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);this.F.append(a.Za);break;case 2:b=Zoa(this,a);if(null==b)break;b.bind(c);break;case 3:c=Zoa(this,a),null!=c&&(g.eg(c),Sb(this.B,b)?(c=this.B,b in c&&
delete c[b]):g.Eo(Error("Ad UI component does not exist: "+b)))}}};
pP.prototype.aa=function(){g.fg(Object.values(this.B));this.B={};KM.prototype.aa.call(this)};var nCa={dV:"replaceUrlMacros",LT:"isExternalShelfAllowedFor"};qP.prototype.ai=function(){return"adLifecycleCommand"};
qP.prototype.handle=function(a){var b=this;switch(a.action){case "START_LINEAR_AD":g.um(function(){b.controller.kt()});
break;case "END_LINEAR_AD":g.um(function(){b.controller.jt()});
break;case "END_LINEAR_AD_PLACEMENT":g.um(function(){b.controller.tp()});
break;case "FILL_INSTREAM_SLOT":g.um(function(){a.elementId&&b.controller.Fr(a.elementId)});
break;case "FILL_ABOVE_FEED_SLOT":g.um(function(){a.elementId&&b.controller.Lo(a.elementId)});
break;case "CLEAR_ABOVE_FEED_SLOT":g.um(function(){b.controller.wo()})}};
qP.prototype.hj=function(a){this.handle(a)};rP.prototype.ai=function(){return"adPlayerControlsCommand"};
rP.prototype.handle=function(a){var b=this.yo();switch(a.action){case "AD_PLAYER_CONTROLS_ACTION_SEEK_TO_END":var c=UH(b.u)&&b.B.nk()?b.u.getDuration(2):0;if(0>=c)break;b.seekTo(g.be(c-(Number(a.seekOffsetMilliseconds)||0)/1E3,0,c));break;case "AD_PLAYER_CONTROLS_ACTION_RESUME":b.resume()}};
rP.prototype.hj=function(a){this.handle(a)};sP.prototype.ai=function(){return"clearCueRangesCommand"};
sP.prototype.handle=function(){var a=this.yo();g.um(function(){OK(a,Array.from(a.I))})};
sP.prototype.hj=function(a){this.handle(a)};tP.prototype.ai=function(){return"muteAdEndpoint"};
tP.prototype.handle=function(a){apa(this,a)};
tP.prototype.hj=function(a,b){apa(this,a,b)};uP.prototype.ai=function(){return"pingingEndpoint"};
uP.prototype.handle=function(){};
uP.prototype.hj=function(a){this.handle(a)};vP.prototype.ai=function(){return"urlEndpoint"};
vP.prototype.handle=function(a,b){var c=g.on(a.url,b);g.sK(c)};
vP.prototype.hj=function(){fH("Trying to handle UrlEndpoint with no macro in controlflow")};wP.prototype.ai=function(){return"adPingingEndpoint"};
wP.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.jo.send(a,b,c)};
wP.prototype.hj=function(a,b){Bqa(this.Da.get(),a,b)};xP.prototype.ai=function(){return"changeEngagementPanelVisibilityAction"};
xP.prototype.handle=function(a){this.J.va("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
xP.prototype.hj=function(a){this.handle(a)};yP.prototype.ai=function(){return"loggingUrls"};
yP.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.Bh.send(d.baseUrl,b,c,d.headers)};
yP.prototype.hj=function(a,b){for(var c=g.q(a),d=c.next();!d.done;d=c.next())d=d.value,Bqa(this.Da.get(),d.baseUrl,b,d.headers)};g.u(cpa,g.B);var spa=new Map([[0,"normal"],[1,"skipped"],[2,"muted"],[6,"user_input_submitted"]]);var jpa=new Map([["opportunity_type_ad_break_service_response_received","OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED"],["opportunity_type_live_stream_break_signal","OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL"],["opportunity_type_player_bytes_media_layout_entered","OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED"],["opportunity_type_player_response_received","OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED"],["opportunity_type_throttled_ad_break_request_slot_reentry","OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY"]]),
fpa=new Map([["slot_type_in_player","SLOT_TYPE_IN_PLAYER"],["slot_type_above_feed","SLOT_TYPE_ABOVE_FEED"],["slot_type_below_player","SLOT_TYPE_BELOW_PLAYER"],["slot_type_player_bytes","SLOT_TYPE_PLAYER_BYTES"],["slot_type_forecasting","SLOT_TYPE_FORECASTING"],["slot_type_ad_break_request","SLOT_TYPE_AD_BREAK_REQUEST"]]),hpa=new Map([["layout_type_media_break","LAYOUT_TYPE_MEDIA_BREAK"],["layout_type_media_layout_player_overlay","LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"],["layout_type_companion_with_action_button",
"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"],["layout_type_companion_with_image","LAYOUT_TYPE_COMPANION_WITH_IMAGE"],["layout_type_companion_with_shopping","LAYOUT_TYPE_COMPANION_WITH_SHOPPING"],["layout_type_media","LAYOUT_TYPE_MEDIA"],["layout_type_composite_player_bytes","LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"],["layout_type_forecasting","LAYOUT_TYPE_FORECASTING"],["layout_type_in_video_text_overlay","LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY"],["layout_type_in_video_enhanced_text_overlay","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"],
["layout_type_in_video_image_overlay","LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"],["layout_type_ad_break_response","LAYOUT_TYPE_AD_BREAK_RESPONSE"],["layout_type_throttled_ad_break_response","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"],["layout_type_survey","LAYOUT_TYPE_SURVEY"],["layout_type_sliding_text_player_overlay","LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY"],["layout_type_video_interstitial_buttoned_left","LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]]),CP=new Map([["trigger_type_on_new_playback_after_content_video_id",
"TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID"],["trigger_type_on_different_slot_id_enter_requested","TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED"],["trigger_type_slot_id_entered","TRIGGER_TYPE_SLOT_ID_ENTERED"],["trigger_type_slot_id_exited","TRIGGER_TYPE_SLOT_ID_EXITED"],["trigger_type_slot_id_exited","TRIGGER_TYPE_SLOT_ID_EXITED"],["trigger_type_slot_id_scheduled","TRIGGER_TYPE_SLOT_ID_SCHEDULED"],["trigger_type_slot_id_fulfilled_empty","TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY"],["trigger_type_slot_id_fulfilled_non_empty",
"TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY"],["trigger_type_layout_id_entered","TRIGGER_TYPE_LAYOUT_ID_ENTERED"],["trigger_type_on_different_layout_id_entered","TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED"],["trigger_type_layout_id_exited","TRIGGER_TYPE_LAYOUT_ID_EXITED"],["trigger_type_on_layout_self_exit_requested","TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED"],["trigger_type_on_element_self_enter_requested","TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED"],["trigger_type_before_content_video_id_started",
"TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED"],["trigger_type_after_content_video_id_ended","TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED"],["trigger_type_media_time_range","TRIGGER_TYPE_MEDIA_TIME_RANGE"],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED","TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED"],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED","TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED"],["trigger_type_close_requested","TRIGGER_TYPE_CLOSE_REQUESTED"],["trigger_type_time_relative_to_layout_enter","TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER"],
["trigger_type_not_in_media_time_range","TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE"],["trigger_type_survey_submitted","TRIGGER_TYPE_SURVEY_SUBMITTED"],["trigger_type_skip_requested","TRIGGER_TYPE_SKIP_REQUESTED"],["trigger_type_on_opportunity_received","TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED"],["trigger_type_layout_id_active_and_slot_id_has_exited","TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED"],["trigger_type_playback_minimized","TRIGGER_TYPE_PLAYBACK_MINIMIZED"]]),tqa=new Map([[5,"TRIGGER_CATEGORY_SLOT_ENTRY"],
[4,"TRIGGER_CATEGORY_SLOT_FULFILLMENT"],[3,"TRIGGER_CATEGORY_SLOT_EXPIRATION"],[0,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL"],[1,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"],[2,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"],[6,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED"]]),gpa=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"]]),
dpa=new Map([["normal",{cq:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",tq:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{cq:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",tq:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],["muted",{cq:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",tq:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{cq:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",tq:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",
{cq:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",tq:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}]]);g.u(HP,g.B);g.k=HP.prototype;g.k.Dg=function(a,b){tQ(this.Bb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.q(this.B),d=c.next();!d.done;d=c.next())d.value.Dg(a,b)};
g.k.Ee=function(a){if(LP(this.u,a)){aJ(this.Bb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.u.Ee(a);for(var b=g.q(this.B),c=b.next();!c.done;c=b.next())c.value.Ee(a);mpa(this,a)}};
g.k.Fe=function(a){if(LP(this.u,a)){aJ(this.Bb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.u.Fe(a);for(var b=g.q(this.B),c=b.next();!c.done;c=b.next())c.value.Fe(a);LP(this.u,a)&&MP(this.u,a).F&&JP(this,a,!1)}};
g.k.Kd=function(a,b){if(LP(this.u,a)){NP(this.Bb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.q(this.B),d=c.next();!d.done;d=c.next())d.value.Kd(a,b)}};
g.k.Ud=function(a,b,c){if(LP(this.u,a)){NP(this.Bb,epa(c),a,b);this.u.Ud(a,b);for(var d=g.q(this.B),e=d.next();!e.done;e=d.next())e.value.Ud(a,b,c);(c=YP(this.u,a))&&b.layoutId===c.layoutId&&zpa(this,a,!1)}};
g.k.aa=function(){var a=Apa(this.u);a=g.q(a);for(var b=a.next();!b.done;b=a.next())JP(this,b.value,!1);g.B.prototype.aa.call(this)};aQ.prototype.isActive=function(){switch(this.u){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};
aQ.prototype.Yw=function(){switch(this.D){case "fill_requested":return!0;default:return!1}};
aQ.prototype.Xw=function(){switch(this.u){case "exit_requested":return!0;default:return!1}};
aQ.prototype.Vw=function(){switch(this.u){case "rendering_stop_requested":return!0;default:return!1}};g.u(OP,$a);g.u(bQ,g.B);g.k=bQ.prototype;g.k.lg=function(a){a=MP(this,a);"not_scheduled"!==a.u&&ZP(a.slot,a.u,"onSlotScheduled");a.u="scheduled"};
g.k.Mo=function(a){a=MP(this,a);a.D="fill_requested";a.I.Mo()};
g.k.Ee=function(a){a=MP(this,a);"enter_requested"!==a.u&&ZP(a.slot,a.u,"onSlotEntered");a.u="entered"};
g.k.ym=function(a){MP(this,a).ym=!0};
g.k.Yw=function(a){return MP(this,a).Yw()};
g.k.Xw=function(a){return MP(this,a).Xw()};
g.k.Vw=function(a){return MP(this,a).Vw()};
g.k.Fe=function(a){a=MP(this,a);"exit_requested"!==a.u&&ZP(a.slot,a.u,"onSlotExited");a.u="scheduled"};
g.k.Ud=function(a,b){var c=MP(this,a);null!=c.layout&&c.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==c.u&&ZP(c.slot,c.u,"onLayoutExited"),c.u="entered")};g.u(Epa,g.B);g.u(eQ,g.B);eQ.prototype.get=function(){this.la()&&fH("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.u});this.u||(this.u=this.B());return this.u};g.u(sQ,g.B);g.u(wQ,g.B);wQ.prototype.lt=function(){};
wQ.prototype.kx=function(a){var b=this,c=this.u.get(a);c&&(this.u["delete"](a),this.vb.get().removeCueRange(a),RG(this.kb.get(),"opportunity_type_throttled_ad_break_request_slot_reentry",function(){var d=b.ab.get();d=pQ(d.Sa.get(),"slot_type_ad_break_request");return[Object.assign(Object.assign({},c),{slotId:d,Wb:c.Wb?pqa(c.slotId,d,c.Wb):void 0,oe:qqa(c.slotId,d,c.oe),cf:qqa(c.slotId,d,c.cf)})]},c.slotId))};
wQ.prototype.si=function(){for(var a=g.q(this.u.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.vb.get().removeCueRange(b);this.u.clear()};
wQ.prototype.Kl=function(){};g.u(xQ,g.B);g.k=xQ.prototype;g.k.lg=function(){};
g.k.Bi=function(){};
g.k.Ee=function(){};
g.k.Ah=function(){};
g.k.Fe=function(){};
g.k.zi=function(){};
g.k.Ai=function(){};
g.k.zh=function(a,b){this.B.has(a)||this.B.set(a,new Set);this.B.get(a).add(b)};
g.k.xi=function(a,b){this.u.has(a)&&this.u.get(a)===b&&fH("Unscheduled a Layout that is currently entered.",a,b);if(this.B.has(a)){var c=this.B.get(a);c.has(b)?(c["delete"](b),0===c.size&&this.B["delete"](a)):fH("Trying to unscheduled a Layout that was not scheduled.",a,b)}else fH("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Kd=function(a,b){this.u.set(a,b)};
g.k.Ud=function(a){this.u["delete"](a)};
g.k.Dg=function(){};JQ.prototype.clone=function(a){var b=this;return new JQ(function(){return b.triggerId},a)};KQ.prototype.clone=function(a){var b=this;return new KQ(function(){return b.triggerId},a)};LQ.prototype.clone=function(a){var b=this;return new LQ(function(){return b.triggerId},a)};MQ.prototype.clone=function(a){var b=this;return new MQ(function(){return b.triggerId},a)};NQ.prototype.clone=function(a){var b=this;return new NQ(function(){return b.triggerId},a)};g.u(QQ,g.B);QQ.prototype.logEvent=function(a){tQ(this,a)};g.u(SQ,g.B);SQ.prototype.addListener=function(a){this.listeners.push(a)};
SQ.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
SQ.prototype.B=function(){g.R(this.ya.get().J.T().experiments,"html5_mark_internal_abandon_in_pacf")&&this.u&&vqa(this,this.u)};g.u(TQ,g.B);TQ.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?2:f;h=void 0===h?1:h;this.u.has(a)?fH("Tried to register duplicate cuerange",void 0,void 0,{CueRangeID:a}):(a=new wqa(a,b,c,d,f),this.u.set(a.id,{ld:a,listener:e}),g.GM(this.J,[a],h))};
TQ.prototype.removeCueRange=function(a){var b=this.u.get(a);b?(g.HM(this.J.app,[b.ld],1),this.u["delete"](a)):fH("Requested to remove unknown cuerange",void 0,void 0,{CueRangeID:a})};
TQ.prototype.C=function(a){this.u.has(a.id)&&this.u.get(a.id).listener.lt(a.id)};
TQ.prototype.D=function(a){this.u.has(a.id)&&this.u.get(a.id).listener.kx(a.id)};
g.u(wqa,g.tD);XQ.prototype.C=function(a){var b;null===(b=this.u.get(a.queryId))||void 0===b?void 0:b.QC()};
XQ.prototype.B=function(a){var b;null===(b=this.u.get(a.queryId))||void 0===b?void 0:b.PC()};
XQ.prototype.D=function(a){var b;null===(b=this.u.get(a.queryId))||void 0===b?void 0:b.RC()};g.u(ZQ,QH);ZQ.prototype.lf=function(){return this.u()};
ZQ.prototype.B=function(){return this.C()};g.u(g.dR,g.Wr);g.dR.prototype.R=function(a,b,c){return g.Wr.prototype.R.call(this,a,b,c)};g.u(eR,g.B);g.k=eR.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.LP=function(a,b){var c=this.Zq(b);this.u=c;this.listeners.forEach(function(e){e.uE(c)});
var d=TG(this,1);d.clientPlaybackNonce!==this.contentCpn&&(this.contentCpn=d.clientPlaybackNonce,this.listeners.forEach(function(){}))};
g.k.Zq=function(a){var b,c,d,e,f=a.author,h=a.clientPlaybackNonce,l=a.isListed,m=a.Yb,n=a.title,p=a.Tf,r=a.Le,t=a.isMdxPlayback,w=a.qg,x=a.mdxEnvironment,y=a.videoId||"",D=a.bf||"",F=a.Ng||"";a=a.Xi||void 0;m=this.Cc.get().u.get(m)||{layoutId:null,slotId:null};var G=this.J.getVideoData(1),O=G.Bg(),K=G.getPlayerResponse();G=1E3*this.J.getDuration(1);K=(null===(c=null===(b=null===K||void 0===K?void 0:K.playerConfig)||void 0===b?void 0:b.daiConfig)||void 0===c?void 0:c.enableDai)||(null===(e=null===
(d=null===K||void 0===K?void 0:K.playerConfig)||void 0===d?void 0:d.daiConfig)||void 0===e?void 0:e.enableServerStitchedDai)||!1;return Object.assign(Object.assign({},m),{videoId:y,author:f,clientPlaybackNonce:h,JA:G,daiEnabled:K,isListed:l,Bg:O,bf:D,title:n,Ng:F,Tf:p,Le:r,Xi:a,isMdxPlayback:t,qg:w,mdxEnvironment:x})};
g.k.aa=function(){this.listeners.length=0;this.u=null;g.B.prototype.aa.call(this)};g.u(fR,g.B);g.k=fR.prototype;g.k.si=function(){var a=this;this.u=fb(function(){a.J.la()||g.dX(a.J,"ad",1)})};
g.k.Kl=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.pauseVideo=function(){this.J.pauseVideo()};
g.k.getVolume=function(){return this.J.getVolume()};
g.k.isMuted=function(){return this.J.isMuted()};
g.k.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType()};
g.k.getPlayerState=function(a){return this.J.getPlayerState(a)};
g.k.isFullscreen=function(){return this.J.isFullscreen()};
g.k.LO=function(){if(2===this.J.getPresentingPlayerType())for(var a=XP(this,2,!1),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.vn(a)};
g.k.CO=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.yn(a)};
g.k.rK=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.jn(a)};
g.k.sK=function(){for(var a=g.q(this.listeners),b=a.next();!b.done;b=a.next())b.value.kn()};
g.k.yi=function(){for(var a=this.J.app.visibility.u,b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.yi(a)};
g.k.Ra=function(){for(var a=g.pG(this.J).getPlayerSize(),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.un(a)};g.u(Iqa,g.B);gR.prototype.executeCommand=function(a,b){cM(this.u(),a,b)};iR.prototype.Mo=function(){var a=this;Lqa(this.B,function(){var b=AO(a.slot.xa,"metadata_type_ad_break_request_data");return a.Pc.get().fetch({BG:b.getAdBreakUrl,RA:new g.tD(b.wF,b.vF),zo:AO(a.slot.xa,"metadata_type_cue_point")})},function(b){b=b.Rg;
(!b.length||2<=b.length)&&fH("Unexpected ad placement renderers length",a.slot,null,{length:b.length})})};
iR.prototype.u=function(){Mqa(this.B)};jR.prototype.Mo=function(){var a=this;Lqa(this.B,function(){var b=AO(a.slot.xa,"metadata_type_ad_break_request_data");return a.Pc.get().fetch({BG:b.getAdBreakUrl,RA:new g.tD(b.wF,b.vF)})})};
jR.prototype.u=function(){Mqa(this.B)};vQ.prototype.Mo=function(){npa(this.callback,this.slot,AO(this.slot.xa,"metadata_type_fulfilled_layout"))};
vQ.prototype.u=function(){KP(this.callback,this.slot,new WG("Got CancelSlotFulfilling request for "+this.slot.Xa+" in DirectFulfillmentAdapter."))};g.u(kR,Nqa);kR.prototype.u=function(a,b){if(uQ(b,{Se:["metadata_type_ad_break_request_data","metadata_type_cue_point"],Xa:"slot_type_ad_break_request"}))return new iR(a,b,this.Pc,this.wb,this.Ya,this.ya);if(uQ(b,{Se:["metadata_type_ad_break_request_data"],Xa:"slot_type_ad_break_request"}))return new jR(a,b,this.Pc,this.wb,this.Ya,this.ya);throw new WG("Unsupported slot with type: "+b.Xa+" and client metadata: "+BP(b.xa)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.u(lR,Nqa);lR.prototype.u=function(a,b){throw new WG("Unsupported slot with type: "+b.Xa+" and client metadata: "+BP(b.xa)+" in DefaultFulfillmentAdapterFactory.");};g.k=Oqa.prototype;g.k.dg=function(){return this.slot};
g.k.yg=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)QP(this.callback,this.slot,a,new OP("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=AO(a.xa,"metadata_type_ad_break_response_data");"slot_type_ad_break_request"===this.slot.Xa?(this.callback.Kd(this.slot,a),Tma(this.u,this.slot,b)):fH("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.k.Ok=function(a,b){a.layoutId!==this.layout.layoutId?QP(this.callback,this.slot,a,new OP("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Ud(this.slot,a,b)};nR.prototype.u=function(a,b,c,d){if(mR(d,{Se:["metadata_type_ad_break_response_data"],nh:["layout_type_ad_break_response","layout_type_throttled_ad_break_response"]}))return new Oqa(a,c,d,this.B);throw new OP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+BP(d.xa)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.k=Pqa.prototype;g.k.dg=function(){return this.slot};
g.k.yg=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?QP(this.callback,this.slot,a,new OP("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Kd(this.slot,a),tO(this.Fa,"impression"),NR(this.u,a.layoutId))};
g.k.Ok=function(a,b){a.layoutId!==this.layout.layoutId?QP(this.callback,this.slot,a,new OP("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Ud(this.slot,a,b)};oR.prototype.u=function(a,b,c,d){if(mR(d,Qqa()))return new Pqa(a,c,d,this.Da,this.B);throw new OP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+BP(d.xa)+" in ForecastingLayoutRenderingAdapterFactory.");};g.u(pR,g.P);g.k=pR.prototype;g.k.dg=function(){return this.slot};
g.k.yg=function(){return this.layout};
g.k.init=function(){this.B.get().addListener(this)};
g.k.release=function(){this.B.get().removeListener(this);this.dispose()};
g.k.Zo=function(){};
g.k.Cw=function(){};
g.k.Bw=function(){};
g.k.qs=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?QP(this.callback,this.slot,a,new OP("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(a=this.B.get(),fra(a,this.Ij,1))};
g.k.Ok=function(a,b){if(a.layoutId!==this.layout.layoutId)QP(this.callback,this.slot,a,new OP("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var c=this.B.get();fra(c,this.Ij,3);this.Ij=[];this.callback.Ud(this.slot,a,b)}};
g.k.aa=function(){this.B.get().removeListener(this);g.P.prototype.aa.call(this)};g.u(tR,pR);g.k=tR.prototype;g.k.init=function(){pR.prototype.init.call(this);qR(this.Fa,this.dg(),this.yg(),this.callback,"metadata_type_action_companion_ad_renderer",function(a,b,c,d,e){return new HI(a,b,c,d,e)},this.Ij)};
g.k.nf=function(a){sR(this.ko,a,this.pd.get().u,this.Da.get(),this.Yg,this.Qk,this.dg(),this.yg())};
g.k.Kd=function(a,b){b.layoutId===this.layout.layoutId?tO(this.Fa,"impression"):rR(this.Qk,b)&&(null===this.Yg?this.Yg=aR(this.Da.get()):fH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Ud=function(){};
g.k.lg=function(){};
g.k.Bi=function(){};
g.k.Ah=function(){};
g.k.Ee=function(){};
g.k.Fe=function(){};
g.k.zi=function(){};
g.k.Ai=function(){};
g.k.zh=function(){};
g.k.xi=function(){};
g.k.Dg=function(){};
g.k.aa=function(){this.Nd().B["delete"](this);pR.prototype.aa.call(this)};g.u(uR,pR);uR.prototype.init=function(){pR.prototype.init.call(this);var a=AO(this.layout.xa,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Ye};this.Ij.push(new wK(a,this.layout.layoutId,AO(this.layout.xa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b))};
uR.prototype.startRendering=function(a){pR.prototype.startRendering.call(this,a);this.callback.Kd(this.slot,a)};
uR.prototype.nf=function(a){a:{var b=this.pd.get();var c=this.C;b=g.q(b.u.values());for(var d=b.next();!d.done;d=b.next())if(d.value.layoutId===c){c=!0;break a}c=!1}if(c)switch(a){case "visit-advertiser":this.Da.get().J.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.u||(a=this.oa.get(),2===a.J.getPlayerState(2)&&a.J.playVideo());break;case "ad-info-icon-button":(this.u=2===this.oa.get().J.getPlayerState(2))||
this.oa.get().pauseVideo();break;case "visit-advertiser":this.oa.get().pauseVideo();AO(this.layout.xa,"metadata_type_player_bytes_callback").hy();break;case "skip-button":a=AO(this.layout.xa,"metadata_type_player_bytes_callback"),a.X&&a.IE()}};
uR.prototype.aa=function(){pR.prototype.aa.call(this)};wR.prototype.u=function(a,b,c,d){if(a=vR(a,c,d,this.Mb,this.oa,this.Da,this.pd))return a;throw new OP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+BP(d.xa)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.u(zR,g.B);g.k=zR.prototype;g.k.dg=function(){return this.slot};
g.k.yg=function(){return this.layout};
g.k.init=function(){AO(this.layout.xa,"metadata_type_player_bytes_callback_ref").current=this;IP(this.Nd(),this);this.oa.get().addListener(this);var a=AO(this.layout.xa,"metadata_type_video_length_seconds");zqa(this.bb.get(),this.layout.layoutId,a,this);bR(this.Da.get(),this)};
g.k.release=function(){AO(this.layout.xa,"metadata_type_player_bytes_callback_ref").current=null;this.Nd().B["delete"](this);this.oa.get().removeListener(this);Aqa(this.bb.get(),this.layout.layoutId);cR(this.Da.get(),this);this.u.dispose()};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)QP(this.callback,this.slot,a,new OP("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else if(uI(this.bd.get(),1)){var b=this.oa.get().J;g.BM(b.app,2);Wqa(this,!1);WK(this.Hc.get());b=AO(a.xa,"metadata_type_ad_video_id");var c=AO(a.xa,"metadata_type_legacy_info_card_vast_extension");c&&this.fd.get().J.T().K.add(b,{vo:c});(b=AO(a.xa,"metadata_type_sodar_extension_data"))&&
Jqa(this.Xc.get(),b);Hqa(this.oa.get(),!1);b=this.kc.get();IM(b.J.app,-1);b=this.Tc.get();a=AO(a.xa,"metadata_type_player_vars");b.J.cueVideoByPlayerVars(a,2);this.u.start();this.Tc.get().J.playVideo(2)}else yR(this,"ui_unstable",new OP("Failed to render media layout because ad ui unstable."))};
g.k.Kd=function(a,b){var c;if(b.layoutId===this.layout.layoutId){tO(this.Fa,"impression");tO(this.Fa,"start");this.oa.get().isMuted()&&sO(this.Fa,"mute");this.oa.get().isFullscreen()&&sO(this.Fa,"fullscreen");this.u.stop();var d="adcompletioncuerange:"+this.layout.layoutId;this.vb.get().addCueRange(d,0x7ffffffffffff,0x8000000000000,!1,this,1,2);(this.adCpn=(null===(c=TG(this.Ca.get(),2))||void 0===c?void 0:c.clientPlaybackNonce)||"")||fH("Media layout confirmed started, but ad CPN not set.");ZK(this.Hc.get());
d=this.kc.get();IM(d.J.app,1);this.kc.get().u("onAdStart",this.adCpn);d=AO(this.layout.xa,"metadata_type_instream_video_ad_commands").impressionCommands||[];var e=this.Xb.get(),f=this.layout.layoutId;aM(e.u(),d,f)}};
g.k.hy=function(){sO(this.Fa,"clickthrough")};
g.k.Ok=function(a){a.layoutId!==this.layout.layoutId?QP(this.callback,this.slot,a,new OP("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.u.stop(),Hqa(this.oa.get(),!0),g.FM(this.oa.get().J,2))};
g.k.lt=function(a){a!=="adcompletioncuerange:"+this.layout.layoutId?fH("Received CueRangeEnter signal for unknown layout.",this.slot,this.layout,{cueRangeId:a}):(this.vb.get().removeCueRange(a),a=AO(this.layout.xa,"metadata_type_video_length_seconds"),Vqa(this,a,!0),tO(this.Fa,"complete"),NR(this.F,this.layout.layoutId))};
g.k.Ud=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(YK(this.Hc.get()),Wqa(this,!0),"abandoned"!==c&&this.kc.get().u("onAdComplete"),this.kc.get().u("onAdEnd",this.adCpn),a=this.kc.get(),IM(a.J.app,0),c){case "abandoned":tO(this.Fa,"abandon");c=AO(this.layout.xa,"metadata_type_instream_video_ad_commands").onAbandonCommands||[];a=this.Xb.get();b=this.layout.layoutId;aM(a.u(),c,b);break;case "normal":tO(this.Fa,"complete");c=AO(this.layout.xa,"metadata_type_instream_video_ad_commands").completeCommands||
[];a=this.Xb.get();b=this.layout.layoutId;aM(a.u(),c,b);break;case "skipped":tO(this.Fa,"skip");break;case "error":tO(this.Fa,"error")}};
g.k.Qo=function(){return this.layout.layoutId};
g.k.hw=function(){return this.D};
g.k.kx=function(){};
g.k.vn=function(a){Vqa(this,a)};
g.k.yn=function(a){var b,c;this.C||(a=new g.vI(a.state,new g.bL),this.C=!0);var d=this.B&&2!==this.oa.get().getPresentingPlayerType();g.xI(a,2)||d?this.callback.Ud(this.slot,this.layout,"normal"):Tqa(a)?this.B?(d=this.kc.get(),IM(d.J.app,1)):(this.B=!0,this.callback.Kd(this.slot,this.layout)):a.state.isError()?yR(this,null===(b=a.state.getData())||void 0===b?void 0:b.errorCode,new OP("There was a player error during this media layout.",{playerErrorCode:null===(c=a.state.getData())||void 0===c?void 0:
c.errorCode})):g.xI(a,4)&&!g.xI(a,2)&&(sO(this.Fa,"pause"),d=this.kc.get(),IM(d.J.app,2));0>wI(a,4)&&!(0>wI(a,2))&&sO(this.Fa,"resume")};
g.k.QC=function(){tO(this.Fa,"active_view_measurable")};
g.k.PC=function(){tO(this.Fa,"active_view_fully_viewable_audible_half_duration")};
g.k.RC=function(){tO(this.Fa,"active_view_viewable")};
g.k.aa=function(){this.release();g.B.prototype.aa.call(this)};
g.k.jn=function(a){2===this.oa.get().getPresentingPlayerType()&&(a?sO(this.Fa,"fullscreen"):sO(this.Fa,"end_fullscreen"))};
g.k.kn=function(){2===this.oa.get().getPresentingPlayerType()&&sO(this.Fa,this.oa.get().isMuted()?"mute":"unmute")};
g.k.yi=function(){};
g.k.un=function(){};
g.k.lg=function(){};
g.k.Bi=function(){};
g.k.Ah=function(){};
g.k.Ee=function(){};
g.k.Fe=function(){};
g.k.zi=function(){};
g.k.Ai=function(){};
g.k.zh=function(){};
g.k.xi=function(){};
g.k.Dg=function(){};AR.prototype.u=function(a,b,c,d){b=this.Nd;var e=this.B,f=this.Da,h=this.bb,l=this.Xc,m=this.Tc,n=this.Ca,p=this.oa,r=this.vb,t=this.Hc,w=this.kc,x=this.bd,y=this.Xb,D=this.fd;a=mR(d,Uqa())?new zR(a,c,d,b,e,f,h,l,m,n,p,r,t,w,x,y,D):void 0;if(a)return a;throw new OP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+BP(d.xa)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.u(BR,g.B);g.k=BR.prototype;g.k.Kd=function(a,b){var c=this;if(Xqa(this)&&"layout_type_media"===b.layoutType)if(zP(b,this.u)){var d=TG(this.Ca.get(),2),e=this.B(b,d);e?RG(this.kb.get(),"opportunity_type_player_bytes_media_layout_entered",function(){return[rqa(c.ab.get(),e.contentCpn,e.Wy,function(f){return c.C(f.slotId,"core",e,FP(c.Ya.get(),f))})]}):fH("Expected MediaLayout to carry valid opportunity on entered",a,b)}else fH("Received MediaLayout entered, missing metadata for opportunity",a,b,{Actual:BP(b.xa),
Expected:this.u})};
g.k.lg=function(){};
g.k.Bi=function(){};
g.k.Ee=function(){};
g.k.Ah=function(){};
g.k.Fe=function(){};
g.k.zi=function(){};
g.k.Ai=function(){};
g.k.zh=function(){};
g.k.xi=function(){};
g.k.Dg=function(){};
g.k.Ud=function(){};var nS=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=Yqa.prototype;g.k.init=function(){};
g.k.dg=function(){return this.slot};
g.k.Uv=function(){this.callback.Ee(this.slot)};
g.k.Zv=function(){this.callback.Fe(this.slot)};
g.k.release=function(){};DR.prototype.u=function(a,b){return new Yqa(a,b)};g.k=Zqa.prototype;g.k.init=function(){};
g.k.dg=function(){return this.slot};
g.k.Uv=function(){var a=this.oa.get();g.I(a.J.getRootNode(),"ad-showing");this.callback.Ee(this.slot)};
g.k.Zv=function(){this.callback.Fe(this.slot);var a=this.oa.get();g.Bn(a.J.getRootNode(),"ad-showing")};
g.k.release=function(){};g.k=$qa.prototype;g.k.init=function(){aH(this.slot)&&(this.u=!0)};
g.k.dg=function(){return this.slot};
g.k.Uv=function(){var a=this.oa.get();g.I(a.J.getRootNode(),"ad-showing");a=this.oa.get();g.I(a.J.getRootNode(),"ad-interrupting");this.callback.Ee(this.slot)};
g.k.Zv=function(){ara(this);var a=this.oa.get();g.Bn(a.J.getRootNode(),"ad-showing");a=this.oa.get();g.Bn(a.J.getRootNode(),"ad-interrupting");this.callback.Fe(this.slot)};
g.k.release=function(){ara(this)};ER.prototype.u=function(a,b){if(zG(b,["metadata_type_dai"],"slot_type_player_bytes"))return new Zqa(a,b,this.oa);if(zG(b,[],"slot_type_player_bytes"))return new $qa(a,b,this.oa);throw new WG("Unsupported slot with type "+b.Xa+" and client metadata: "+(BP(b.xa)+" in PlayerBytesSlotAdapterFactory."));};g.u(GR,g.B);GR.prototype.Zo=function(a){for(var b=[],c=g.q(this.gb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof kQ&&2===d.category&&e.B===a&&b.push(d)}b.length&&TP(this.qx(),b)};g.u(HR,GR);g.k=HR.prototype;g.k.nf=function(a,b){if(b)if("survey-submit"===a){for(var c=[],d=g.q(this.gb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof lQ&&f.B===b&&c.push(e)}c.length?TP(this.qx(),c):fH("Survey is submitted but no registered triggers can be activated.")}else if("skip-button"===a){c=[];d=g.q(this.gb.values());for(e=d.next();!e.done;e=d.next())e=e.value,f=e.trigger,f instanceof kQ&&1===e.category&&f.B===b&&c.push(e);c.length&&TP(this.qx(),c)}};
g.k.Zo=function(a){GR.prototype.Zo.call(this,a)};
g.k.Jg=function(a,b,c,d){if(this.gb.has(b.triggerId))throw new WG("Tried to register duplicate trigger for slot.");if(!(b instanceof lQ||b instanceof kQ))throw new WG("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.gb.set(b.triggerId,new FR(a,b,c,d))};
g.k.Mg=function(a){this.gb["delete"](a.triggerId)};
g.k.Cw=function(){};
g.k.Bw=function(){};
g.k.qs=function(){};g.u(IR,g.B);g.k=IR.prototype;
g.k.Jg=function(a,b,c,d){if(this.gb.has(b.triggerId))throw new WG("Tried to register duplicate trigger for slot.");if(!(b instanceof JQ||b instanceof KQ||b instanceof LQ||b instanceof MQ||b instanceof NQ||b instanceof BQ||b instanceof bH||b instanceof iQ||b instanceof AQ||b instanceof FQ))throw new WG("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new FR(a,b,c,d);this.gb.set(b.triggerId,a);b instanceof NQ&&this.F.has(b.u)&&TP(this.u(),
[a]);b instanceof JQ&&this.C.has(b.u)&&TP(this.u(),[a]);b instanceof bH&&this.B.has(b.B)&&TP(this.u(),[a])};
g.k.Mg=function(a){this.gb["delete"](a.triggerId)};
g.k.lg=function(a){this.F.add(a.slotId);for(var b=[],c=g.q(this.gb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof NQ&&a.slotId===d.trigger.u&&b.push(d);0<b.length&&TP(this.u(),b)};
g.k.Bi=function(a){this.F["delete"](a.slotId)};
g.k.Ah=function(a){for(var b=[],c=g.q(this.gb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof BQ&&e.Xa===a.Xa&&e.C!==a.slotId&&b.push(d)}0<b.length&&TP(this.u(),b)};
g.k.Ee=function(a){this.C.add(a.slotId);for(var b=[],c=g.q(this.gb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof JQ&&a.slotId===d.trigger.u&&b.push(d);0<b.length&&TP(this.u(),b)};
g.k.Fe=function(a){this.C["delete"](a.slotId);this.D.add(a.slotId);for(var b=[],c=g.q(this.gb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof KQ)a.slotId===d.trigger.u&&b.push(d);else if(d.trigger instanceof FQ){var e=d.trigger;a.slotId===e.slotId&&this.B.has(e.layoutId)&&b.push(d)}0<b.length&&TP(this.u(),b)};
g.k.zi=function(a){for(var b=[],c=g.q(this.gb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof LQ&&a.slotId===d.trigger.u&&b.push(d);0<b.length&&TP(this.u(),b)};
g.k.Ai=function(a){for(var b=[],c=g.q(this.gb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof MQ&&a.slotId===d.trigger.u&&b.push(d);0<b.length&&TP(this.u(),b)};
g.k.zh=function(a,b){this.I.add(b.layoutId)};
g.k.xi=function(a,b){this.I["delete"](b.layoutId)};
g.k.Kd=function(a,b){this.B.add(b.layoutId);for(var c=[],d=g.q(this.gb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof bH)b.layoutId===e.trigger.B&&c.push(e);else if(e.trigger instanceof AQ){var f=e.trigger;a.Xa===f.Xa&&b.layoutType===f.layoutType&&b.layoutId!==f.C&&c.push(e)}else e.trigger instanceof FQ&&(f=e.trigger,b.layoutId===f.layoutId&&this.D.has(f.slotId)&&c.push(e));0<c.length&&TP(this.u(),c)};
g.k.Ud=function(a,b){this.B["delete"](b.layoutId);for(var c=[],d=g.q(this.gb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof iQ&&b.layoutId===e.trigger.C&&c.push(e);0<c.length&&TP(this.u(),c)};
g.k.Dg=function(){};
g.k.si=function(){this.D.clear()};
g.k.Kl=function(){};g.u(JR,g.B);JR.prototype.Jg=function(a,b,c,d){if(this.gb.has(b.triggerId))throw new WG("Tried to register duplicate trigger for slot.");if(!(b instanceof $G||b instanceof HQ))throw new WG("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.gb.set(b.triggerId,new FR(a,b,c,d))};
JR.prototype.Mg=function(a){this.gb["delete"](a.triggerId)};
JR.prototype.si=function(a){var b=[];b.push.apply(b,g.la(cra(this.gb,a)));b.push.apply(b,g.la(bra(this.gb,a,!1)));b.length&&TP(this.u(),b)};
JR.prototype.Kl=function(a){var b=[];b.push.apply(b,g.la(bra(this.gb,a,!0)));b.length&&TP(this.u(),b)};g.u(KR,g.B);g.k=KR.prototype;
g.k.Jg=function(a,b,c,d){if(this.gb.has(b.triggerId))throw new WG("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof cH)LR(this,a,b,c,d,e,b.B.start,b.B.end,b.D,b.visible);else if(b instanceof GQ)LR(this,a,b,c,d,e,b.B.start,b.B.end,b.C,!1);else if(b instanceof EQ)LR(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.B,b.visible);else throw new WG("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");
};
g.k.Mg=function(a){var b=this.gb.get(a.triggerId);b&&(this.vb.get().removeCueRange(b.Dm),this.B["delete"](b.Dm));this.gb["delete"](a.triggerId)};
g.k.lt=function(a){if(!this.B.has(a)&&(a=dra(this,a))&&(a=this.gb.get(a)))if(g.T(YQ(this.oa.get()),32))this.u.add(a.Dm);else{var b=null===a||void 0===a?void 0:a.bundle.trigger;if(b instanceof cH||b instanceof EQ)b instanceof cH&&b.F&&this.B.add(a.Dm),TP(this.C(),[a.bundle])}};
g.k.kx=function(a){if(a=dra(this,a))if(a=this.gb.get(a))this.u["delete"](a.Dm),a.bundle.trigger instanceof GQ&&TP(this.C(),[a.bundle])};
g.k.yn=function(a){if(0>wI(a,16)){a=g.q(this.u);for(var b=a.next();!b.done;b=a.next())this.lt(b.value);this.u.clear()}};
g.k.vn=function(){};
g.k.jn=function(){};
g.k.yi=function(){};
g.k.un=function(){};
g.k.kn=function(){};g.u(MR,g.B);g.k=MR.prototype;g.k.Jg=function(a,b,c,d){if(this.gb.has(b.triggerId))throw new WG("Tried to register duplicate trigger for slot.");if(!(b instanceof mQ||b instanceof IQ))throw new WG("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.gb.set(b.triggerId,new FR(a,b,c,d))};
g.k.Mg=function(a){this.gb["delete"](a.triggerId)};
g.k.kt=function(){};
g.k.jt=function(){};
g.k.tp=function(){};
g.k.Kd=function(a,b){"slot_type_above_feed"===a.Xa&&(null!=this.u?fH("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.u=b.layoutId)};
g.k.Ud=function(a){"slot_type_above_feed"===a.Xa&&(this.u=null)};
g.k.lg=function(){};
g.k.Bi=function(){};
g.k.Ah=function(){};
g.k.Ee=function(a){"slot_type_above_feed"===a.Xa&&(null!=this.B?fH("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.B=a.slotId)};
g.k.Fe=function(a){"slot_type_above_feed"===a.Xa&&(null===this.B?fH("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.B=null)};
g.k.zi=function(){};
g.k.Ai=function(){};
g.k.zh=function(){};
g.k.xi=function(){};
g.k.Dg=function(){};
g.k.wo=function(){null!=this.u&&NR(this,this.u)};
g.k.Lo=function(a){if(null===this.B){for(var b=[],c=g.q(this.gb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof IQ&&d.trigger.slotId===a&&b.push(d);b.length&&TP(this.C(),b)}};
g.k.Fr=function(){};g.u(OR,g.B);g.k=OR.prototype;g.k.Dg=function(a,b){for(var c=[],d=g.q(this.gb.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&&TP(this.u(),c)};
g.k.Jg=function(a,b,c,d){if(this.gb.has(b.triggerId))throw new WG("Tried to register duplicate trigger for slot.");if(!(b instanceof mqa))throw new WG("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.gb.set(b.triggerId,new FR(a,b,c,d))};
g.k.Mg=function(a){this.gb["delete"](a.triggerId)};
g.k.lg=function(){};
g.k.Bi=function(){};
g.k.Ah=function(){};
g.k.Ee=function(){};
g.k.Fe=function(){};
g.k.zi=function(){};
g.k.Ai=function(){};
g.k.zh=function(){};
g.k.xi=function(){};
g.k.Kd=function(){};
g.k.Ud=function(){};g.u(PR,g.B);PR.prototype.init=function(){};
PR.prototype.release=function(){};
PR.prototype.aa=function(){this.Ed.get().removeListener(this);g.B.prototype.aa.call(this)};QR.prototype.fetch=function(a){var b=this,c=a.RA;return this.Xu.fetch(a.BG,{zo:void 0===a.zo?void 0:a.zo,ld:c}).then(function(d){var e=null,f=null;if(g.R(b.ya.get().J.T().experiments,"get_midroll_info_use_client_rpc"))f=d;else try{(e=JSON.parse(d.response))&&(f=e)}catch(h){d.response&&(d=d.response,d.startsWith("GIF89")||(h.params=d.substr(0,256),g.lr(h)))}return era(f,c)})};g.u(RR,g.B);g.k=RR.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){SR(this,function(c){c.nf(a,b)})};
g.k.qK=function(a){SR(this,function(b){b.Cw(a)})};
g.k.pK=function(a){SR(this,function(b){b.Bw(a)})};
g.k.BM=function(a){SR(this,function(b){b.qs(a)})};UR.prototype.u=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.J.va(a,c)};WR.prototype.addListener=function(a){this.listeners.push(a)};
WR.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=hra.prototype;g.k.dg=function(){return this.slot};
g.k.yg=function(){return this.layout};
g.k.init=function(){this.Ca.get().addListener(this);this.Fd.get().addListener(this);this.oa.get().addListener(this);this.B.forEach(function(c){c.init()});
var a=AO(this.layout.xa,"metadata_type_layout_enter_ms"),b=AO(this.layout.xa,"metadata_type_layout_exit_ms");a=kra(this.Fd.get(),a,b);null!==a&&vra(this.Rf.get(),a,b)};
g.k.release=function(){this.u=null;this.B.forEach(function(a){a.release()});
this.Ca.get().removeListener(this);this.Fd.get().removeListener(this);this.oa.get().removeListener(this)};
g.k.startRendering=function(){var a;if(this.u)fH("Failed to restart rendering",this.slot,this.layout);else{var b=null===(a=this.Ca.get().u)||void 0===a?void 0:a.layoutId;jra(this,b);this.callback.Kd(this.slot,this.layout);tO(this.Fa,"ad_placement_start")}};
g.k.Ok=function(a,b){var c,d;null===(d=null===(c=this.u)||void 0===c?void 0:c.Sh)||void 0===d?void 0:d.Ok(b);this.u=null;null!==this.driftRecoveryMs&&(YR(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(lra(this)-AO(this.layout.xa,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*oG(this.oa.get().J)).toString()}),this.driftRecoveryMs=null);this.callback.Ud(this.slot,this.layout,b);if("normal"!==b)var e=!1;else{e=XP(this.oa.get(),2,!0);var f=
AO(this.layout.xa,"metadata_type_layout_exit_ms")/1E3;e=1>=Math.abs(e-f)}e&&tO(this.Fa,"ad_placement_end")};
g.k.uE=function(a){a=a.layoutId;var b,c;this.u&&(null===(b=this.u.Sh)||void 0===b?void 0:b.layout.layoutId)!==a&&(null===(c=this.u.Sh)||void 0===c?void 0:c.Ok("normal"),jra(this,a))};
g.k.mE=function(){};
g.k.bE=function(a){var b=AO(this.layout.xa,"metadata_type_layout_enter_ms"),c=AO(this.layout.xa,"metadata_type_layout_exit_ms");a*=1E3;b<=a&&a<c&&vra(this.Rf.get(),a,c)};
g.k.vn=function(){var a=XP(this.oa.get(),2,!0);if(this.u){var b=AO(this.layout.xa,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=lra(this),e=oG(this.oa.get().J),f=Math.min(a+e,d/1E3);f<=a?YR(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(YR(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString(),
appliedDriftRecoveryMs:Math.round(1E3*a-b).toString(),destinationMs:Math.round(1E3*f-b).toString()}),this.oa.get().J.seekTo(f,void 0,void 0,1))}}};
g.k.yn=function(){};
g.k.jn=function(){};
g.k.yi=function(){};
g.k.un=function(){};
g.k.kn=function(){};g.k=mra.prototype;
g.k.init=function(){AO(this.layout.xa,"metadata_type_player_bytes_callback_ref").current=this;var a=AO(this.layout.xa,"metadata_type_video_length_seconds"),b=AO(this.layout.xa,"metadata_type_player_vars"),c=AO(this.layout.xa,"metadata_type_layout_enter_ms"),d=AO(this.layout.xa,"metadata_type_layout_exit_ms"),e=1E3*a;if(d-c){var f=this.Rf.get();if(b=rAa(f.J.app,b,e,c,d)){f=this.Cc.get();var h=this.slot.slotId,l=this.layout.layoutId;b?(f.u.has(b)&&fH("Unexpected remap of timeline playback"),f.u.set(b,
{slotId:h,layoutId:l})):fH("Invalid timeline playback ID");c+e>d&&(c=d-c,d=this.Rf.get(),sAa(d.J.app,b,c))}else fH("Unexpected failure to add to playback timeline",this.slot,this.layout,Object.assign(Object.assign({},ZR(this.layout)),{compositeLayout:ora(AO(this.slot.xa,"metadata_type_fulfilled_layout"))}))}else fH("Expected non-zero layout duration",this.slot,this.layout,Object.assign(Object.assign({},ZR(this.layout)),{compositeLayout:ora(AO(this.slot.xa,"metadata_type_fulfilled_layout"))}));this.oa.get().addListener(this);
zqa(this.bb.get(),this.layout.layoutId,a,this);opa(this.callback,this.slot,this.layout)};
g.k.release=function(){this.oa.get().removeListener(this);Aqa(this.bb.get(),this.layout.layoutId)};
g.k.startRendering=function(){if(this.u)fH("Expected the layout not to be entered before start rendering",this.slot,this.layout);else{this.u={ex:null,MF:!1};var a=AO(this.layout.xa,"metadata_type_sodar_extension_data");if(a)try{Jqa(this.Xc.get(),a)}catch(b){fH("Unexpected error when loading Sodar",this.slot,this.layout,{error:b})}qpa(this.callback,this.slot,this.layout)}};
g.k.Ok=function(a){this.u?(this.u=null,BK(this.callback,this.slot,this.layout,a)):fH("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.vn=function(a){if(this.u){if(this.Fa.u.has("impression")){var b=YQ(this.oa.get());nra(this,b,a,this.u.ex)}this.u.ex=a}};
g.k.yn=function(a){if(this.u){this.u.MF||(this.u.MF=!0,a=new g.vI(a.state,new g.bL));var b=XP(this.oa.get(),2,!1);Tqa(a)&&xR(b,0,null)&&tO(this.Fa,"impression");if(this.Fa.u.has("impression")&&(g.xI(a,4)&&!g.xI(a,2)&&sO(this.Fa,"pause"),0>wI(a,4)&&!(0>wI(a,2))&&sO(this.Fa,"resume"),g.xI(a,16)&&.5<=XP(this.oa.get(),2,!1)&&sO(this.Fa,"seek"),g.xI(a,2))){var c=AO(this.layout.xa,"metadata_type_video_length_seconds"),d=1>=Math.abs(c-b);nra(this,a.state,d?c:b,this.u.ex);d&&tO(this.Fa,"complete")}}};
g.k.jn=function(a){this.Fa.u.has("impression")&&sO(this.Fa,a?"fullscreen":"end_fullscreen")};
g.k.yi=function(){};
g.k.un=function(){};
g.k.IE=function(){};
g.k.kn=function(){};
g.k.hy=function(){this.Fa.u.has("impression")&&sO(this.Fa,"clickthrough")};
g.k.QC=function(){sO(this.Fa,"active_view_measurable")};
g.k.PC=function(){this.Fa.u.has("impression")&&!this.Fa.u.has("seek")&&sO(this.Fa,"active_view_fully_viewable_audible_half_duration")};
g.k.RC=function(){this.Fa.u.has("impression")&&!this.Fa.u.has("seek")&&sO(this.Fa,"active_view_viewable")};$R.prototype.u=function(a,b,c,d){if(c.xa.u.has("metadata_type_dai")){a:{var e=AO(d.xa,"metadata_type_sub_layouts"),f=AO(d.xa,"metadata_type_ad_placement_config");if(mR(d,{Se:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],nh:["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=AO(l.xa,"metadata_type_sub_layout_index");if(!mR(l,{Se:["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"],nh:["layout_type_media"]})||void 0===m){a=null;break a}m=new nO(l.Yd,this.Da,f,l.layoutId,m);h.push(new mra(b,c,l,this.Rf,m,this.oa,this.Cc,this.bb,this.Xc))}b=new nO(d.Yd,this.Da,f,d.layoutId);a=new hra(a,c,d,this.Ca,this.Rf,this.Fd,this.oa,b,this.Da,h)}else a=null}if(a)return a}else{h=this.Nd;b=this.B;f=this.Da;e=this.bb;l=this.Xc;m=this.Tc;var n=this.Ca,p=this.oa,
r=this.vb,t=this.Hc,w=this.kc,x=this.bd,y=this.Xb,D=this.fd;a=mR(d,Uqa())?new zR(a,c,d,h,b,f,e,l,m,n,p,r,t,w,x,y,D):void 0;if(a)return a}throw new OP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+BP(d.xa)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.u(aS,g.B);g.k=aS.prototype;g.k.mE=function(a){this.u&&pra(this,this.u,a)};
g.k.bE=function(){};
g.k.si=function(a){this.u&&this.u.contentCpn!==a&&(fH("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.u.contentCpn}),this.u=null)};
g.k.Kl=function(a){this.u&&this.u.contentCpn!==a&&fH("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.u.contentCpn});this.u=null};
g.k.aa=function(){g.B.prototype.aa.call(this);this.u=null};g.u(bS,g.B);
bS.prototype.Jg=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new WG("Tried to re-register the trigger.");a=new FR(a,b,c,d);if(a.trigger instanceof oqa)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof lqa)this.C.set(a.trigger.triggerId,a);else throw new WG("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.u&&TP(this.D(),[a])};
bS.prototype.Mg=function(a){this.B["delete"](a.triggerId);this.C["delete"](a.triggerId)};
bS.prototype.uE=function(a){a=a.slotId;if(this.u!==a){var b=[];null!=this.u&&b.push.apply(b,g.la(qra(this.C,this.u)));null!=a&&b.push.apply(b,g.la(qra(this.B,a)));this.u=a;b.length&&TP(this.D(),b)}};g.u(cS,g.B);g.k=cS.prototype;g.k.si=function(){this.D=new HK(this,xqa(this.ya.get()));this.C=new IK;rra(this)};
g.k.Kl=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.nE=function(a){this.u.push(a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.mE(a)};
g.k.cE=function(a){g.Fb(this.C.u,1E3*a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.bE(a)};
g.k.Kx=function(a){var b=TG(this.Ca.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;if(b){this.Da.get();var f={cuepointTrigger:{event:sra(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.u,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}};g.Lq("adsClientStateChange",f)}this.B.add(e);this.D.reduce(e)}};
g.k.aa=function(){this.J.getVideoData(1).unsubscribe("cuepointupdated",this.Kx,this);this.listeners.length=0;this.B.clear();this.u.length=0;g.B.prototype.aa.call(this)};g.u(dS,g.B);g.k=dS.prototype;g.k.Jg=function(a,b,c,d){if(this.gb.has(b.triggerId))throw new WG("Tried to register duplicate trigger for slot.");if(!(b instanceof jQ))throw new WG("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.gb.set(b.triggerId,new FR(a,b,c,d));a=this.u.has(b.layoutId)?this.u.get(b.layoutId):new Set;a.add(b);this.u.set(b.layoutId,a)};
g.k.Mg=function(a){this.gb["delete"](a.triggerId);if(!(a instanceof jQ))throw new WG("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.B.get(a.triggerId);b&&(b.dispose(),this.B["delete"](a.triggerId));if(b=this.u.get(a.layoutId))b["delete"](a),0===b.size&&this.u["delete"](a.layoutId)};
g.k.lg=function(){};
g.k.Bi=function(){};
g.k.Ah=function(){};
g.k.Ee=function(){};
g.k.Fe=function(){};
g.k.zi=function(){};
g.k.Ai=function(){};
g.k.zh=function(){};
g.k.xi=function(){};
g.k.Dg=function(){};
g.k.Kd=function(a,b){var c=this;if(this.u.has(b.layoutId)){var d=this.u.get(b.layoutId),e={};d=g.q(d);for(var f=d.next();!f.done;e={co:e.co},f=d.next())e.co=f.value,f=new g.H(function(h){return function(){var l=c.gb.get(h.co.triggerId);TP(c.C(),[l])}}(e),e.co.durationMs),f.start(),this.B.set(e.co.triggerId,f)}};
g.k.Ud=function(){};eS.prototype.addListener=function(a){this.listeners.add(a)};
eS.prototype.removeListener=function(a){this.listeners["delete"](a)};g.u(fS,pR);g.k=fS.prototype;g.k.init=function(){pR.prototype.init.call(this);qR(this.Fa,this.dg(),this.yg(),this.callback,"metadata_type_image_companion_ad_renderer",function(a,b,c,d,e){return new LM(a,b,c,d,e)},this.Ij)};
g.k.nf=function(a){sR(this.ko,a,this.pd.get().u,this.Da.get(),this.Yg,this.Qk,this.dg(),this.yg())};
g.k.Kd=function(a,b){b.layoutId===this.layout.layoutId?tO(this.Fa,"impression"):rR(this.Qk,b)&&(null===this.Yg?this.Yg=aR(this.Da.get()):fH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Ud=function(){};
g.k.lg=function(){};
g.k.Bi=function(){};
g.k.Ah=function(){};
g.k.Ee=function(){};
g.k.Fe=function(){};
g.k.zi=function(){};
g.k.Ai=function(){};
g.k.zh=function(){};
g.k.xi=function(){};
g.k.Dg=function(){};
g.k.aa=function(){this.Nd().B["delete"](this);pR.prototype.aa.call(this)};g.u(gS,pR);g.k=gS.prototype;g.k.init=function(){pR.prototype.init.call(this);qR(this.Fa,this.dg(),this.yg(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(a,b,c,d,e){return new uJ(a,b,c,d,e)},this.Ij)};
g.k.nf=function(a){sR(this.ko,a,this.pd.get().u,this.Da.get(),this.Yg,this.Qk,this.dg(),this.yg())};
g.k.Kd=function(a,b){b.layoutId===this.layout.layoutId?tO(this.Fa,"impression"):rR(this.Qk,b)&&(null===this.Yg?this.Yg=aR(this.Da.get()):fH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Ud=function(){};
g.k.lg=function(){};
g.k.Bi=function(){};
g.k.Ah=function(){};
g.k.Ee=function(){};
g.k.Fe=function(){};
g.k.zi=function(){};
g.k.Ai=function(){};
g.k.zh=function(){};
g.k.xi=function(){};
g.k.Dg=function(){};
g.k.aa=function(){this.Nd().B["delete"](this);pR.prototype.aa.call(this)};zra.prototype.u=function(a,b,c,d){if(mR(d,Rqa()))return new tR(a,c,d,this.Mb,this.Da,this.Nd,this.bb,this.pd);if(mR(d,xra()))return new fS(a,c,d,this.Mb,this.Da,this.Nd,this.bb,this.pd);if(mR(d,yra()))return new gS(a,c,d,this.Mb,this.Da,this.Nd,this.bb,this.pd);throw new OP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+BP(d.xa)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.u(hS,pR);g.k=hS.prototype;g.k.vn=function(){};
g.k.yn=function(){};
g.k.jn=function(){};
g.k.yi=function(a){a&&lS(this.u,this.layout)};
g.k.un=function(a){if(yqa(this.ya.get())){var b=CO(this.layout);if(this.C=zO(a,Gqa(this.oa.get())))b.onErrorCommand&&this.Xb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),lS(this.u,this.layout)}else xO(a)&&lS(this.u,this.layout)};
g.k.kn=function(){};
g.k.Qo=function(){return this.yg().layoutId};
g.k.hw=function(){return this.C};
g.k.nf=function(a){"in_video_overlay_close_button"===a&&lS(this.u,this.layout)};
g.k.qs=function(a){"invideo-overlay"===a&&lS(this.u,this.layout)};
g.k.startRendering=function(a){pR.prototype.startRendering.call(this,a);this.callback.Kd(this.slot,a)};
g.k.init=function(){pR.prototype.init.call(this);bR(this.Da.get(),this);this.oa.get().addListener(this);this.Ij.push(new eJ(CO(this.layout),qO(this.Fa),this.layout.layoutId,{adsClientData:this.layout.Ye}))};
g.k.release=function(){pR.prototype.release.call(this);this.oa.get().removeListener(this);cR(this.Da.get(),this)};g.u(iS,pR);g.k=iS.prototype;g.k.init=function(){pR.prototype.init.call(this);bR(this.Da.get(),this);this.oa.get().addListener(this);this.Ij.push(new eJ(CO(this.layout),qO(this.Fa),this.layout.layoutId,{adsClientData:this.layout.Ye}))};
g.k.startRendering=function(a){pR.prototype.startRendering.call(this,a);this.callback.Kd(this.slot,a)};
g.k.nf=function(a){"in_video_overlay_close_button"===a&&lS(this.u,this.layout)};
g.k.Cw=function(a){if("invideo-overlay"===a){a=wra(this.D,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.qs=function(a){"invideo-overlay"===a&&lS(this.u,this.layout)};
g.k.Bw=function(a){if("invideo-overlay"===a){a=wra(this.D,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.vn=function(){};
g.k.yn=function(){};
g.k.jn=function(){};
g.k.yi=function(a){a&&lS(this.u,this.layout)};
g.k.un=function(a){var b=CO(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer;if(yqa(this.ya.get())){if(this.C=zO(a,Gqa(this.oa.get()),Bra(c)))b.onErrorCommand&&this.Xb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),lS(this.u,this.layout)}else xO(a,Bra(c))&&lS(this.u,this.layout)};
g.k.kn=function(){};
g.k.Qo=function(){return this.yg().layoutId};
g.k.hw=function(){return this.C};
g.k.release=function(){pR.prototype.release.call(this);this.oa.get().removeListener(this);cR(this.Da.get(),this)};jS.prototype.u=function(a,b,c,d){if(b=vR(a,c,d,this.Mb,this.oa,this.Da,this.pd))return b;b=["metadata_type_invideo_overlay_ad_renderer"];for(var e=g.q(oO()),f=e.next();!f.done;f=e.next())b.push(f.value);if(mR(d,{Se:b,nh:["layout_type_in_video_image_overlay"]}))return new iS(c,d,this.Da,this.bb,this.Mb,a,this.B,this.C,this.oa,this.Xb,this.ya);if(mR(d,Ara()))return new hS(c,d,this.Da,this.bb,this.Mb,a,this.B,this.oa,this.Xb,this.ya);throw new OP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+
BP(d.xa)+" in WebDesktopMainAndEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.u(kS,g.B);kS.prototype.Jg=function(a,b,c,d){if(this.gb.has(b.triggerId))throw new WG("Tried to register duplicate trigger for slot.");if(!(b instanceof kqa))throw new WG("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.gb.set(b.triggerId,new FR(a,b,c,d))};
kS.prototype.Mg=function(a){this.gb["delete"](a.triggerId)};g.u(mS,g.B);mS.prototype.init=function(){};
mS.prototype.release=function(){};
mS.prototype.aa=function(){this.oi.get().removeListener(this);g.B.prototype.aa.call(this)};g.u(Cra,g.B);g.u(Dra,g.B);g.u(Era,g.B);g.u(Fra,g.B);g.u(oS,uR);oS.prototype.startRendering=function(a){uR.prototype.startRendering.call(this,a);AO(this.layout.xa,"metadata_ad_video_is_listed")&&(a=AO(this.layout.xa,"metadata_type_ad_info_ad_metadata"),this.tm.get().J.va("onAdMetadataAvailable",a))};Gra.prototype.u=function(a,b,c,d){b=Sqa();b.Se.push("metadata_type_ad_info_ad_metadata");if(mR(d,b))return new oS(a,c,d,this.Mb,this.oa,this.Da,this.pd,this.tm);throw new OP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+BP(d.xa)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.u(Hra,g.B);Ira.prototype.u=function(a,b,c,d){if(a=vR(a,c,d,this.Mb,this.oa,this.Da,this.pd))return a;throw new OP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+BP(d.xa)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.u(Jra,g.B);g.u(Lra,g.B);g.u(g.pS,g.P);g.k=g.pS.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.ee=function(){};
g.k.Eh=function(){return!0};
g.k.aa=function(){this.loaded&&this.unload();g.P.prototype.aa.call(this)};
g.k.jb=function(){return{}};
g.k.getOptions=function(){return[]};g.u(qS,g.pS);g.k=qS.prototype;g.k.create=function(){this.load();this.created=!0};
g.k.load=function(){g.pS.prototype.load.call(this);this.player.getRootNode().classList.add("ad-created");var a=this.B.u.le.ag,b=this.F(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;f=Ora(f,a,e);c=c&&c.clientPlaybackNonce||"";var h=1E3*this.player.getDuration(1);nM(a)?(this.u=new hM(this,this.player,this.D,b,this.B.u.le),oM(this.u,f.Zk),uqa(this.B.u.yj,c,h,f.An,f.An.concat(f.Zk),e,d),iM(this.u)):(uqa(this.B.u.yj,c,h,f.An,f.An.concat(f.Zk),e,d),this.u=new hM(this,this.player,this.D,b,this.B.u.le),oM(this.u,f.Zk))};
g.k.destroy=function(){var a=this.player.getVideoData(1);vqa(this.B.u.yj,a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.pS.prototype.unload.call(this);this.player.getRootNode().classList.remove("ad-created");if(null!==this.u){var a=this.u;this.u=null;a.dispose()}null!=this.C&&(a=this.C,this.C=null,a.dispose());this.D.reset()};
g.k.Eh=function(){return!1};
g.k.By=function(){return null===this.u?!1:this.u.By()};
g.k.wi=function(a){null!==this.u&&this.u.wi(a)};
g.k.getAdState=function(){return this.u?this.u.ka:-1};
g.k.getOptions=function(){return Object.values(nCa)};
g.k.ee=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":var c=b;if(c.url){var d=KH(this.player);Object.assign(d,c.u);this.u&&!d.AD_CPN&&(d.AD_CPN=this.u.ra);c=g.on(c.url,d)}else c=null;return c;case "isExternalShelfAllowedFor":a:if(b.playerResponse){c=b.playerResponse.adPlacements||[];for(d=0;d<c.length;d++){var e=c[d];if(e.adPlacementRenderer&&e.adPlacementRenderer.renderer&&e.adPlacementRenderer.renderer.plaShelfRenderer){c=!1;break a}}c=!0}else c=!1;return c;default:return null}};var rS,sS,tS,uS,vS;wS.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.C,d=0;d<b&&16>this.B;)a[d++]^=c[this.B++];for(var e=b-(b-d)%16;d<e;)Qra(this),a[d++]^=c[0],a[d++]^=c[1],a[d++]^=c[2],a[d++]^=c[3],a[d++]^=c[4],a[d++]^=c[5],a[d++]^=c[6],a[d++]^=c[7],a[d++]^=c[8],a[d++]^=c[9],a[d++]^=c[10],a[d++]^=c[11],a[d++]^=c[12],a[d++]^=c[13],a[d++]^=c[14],a[d++]^=c[15];if(d<b)for(Qra(this),this.B=0;d<b;)a[d++]^=c[this.B++];return a};g.u(g.xS,g.B);g.k=g.xS.prototype;g.k.fu=function(){};
g.k.gm=ba(5);g.k.vt=function(){return this.C};
g.k.ln=function(a){var b="";a&&(Rra(this,a),b=a.u);this.ze()&&""==b||(b&&this.ze()!=b&&this.ku(b),Oza||a&&a.B||this.load(),this.K||(this.addEventListener("volumechange",this.HA),this.K=!0))};
g.k.qt=function(){var a=this.Ma();a=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new jB(a);a=new mB(a);this.ln(a.qp);return a};
g.k.playVideo=function(){this.ki()&&this.seekTo(0);!this.ze()&&this.C&&(g.M(Error("playVideo without src")),this.ku(this.C.u),this.C.B||this.load());var a=this.play();!a&&Qza&&UX&&7<=WF&&g.lp(this,"playing",(0,g.z)(function(){g.Fo((0,g.z)(this.kB,this,this.getCurrentTime(),0),500)},this));
return a};
g.k.kB=function(a,b){this.xk()||this.getCurrentTime()>a||10<b||(this.play(),g.Fo((0,g.z)(this.kB,this,this.getCurrentTime(),b+1),500))};
g.k.seekTo=function(a){0<this.jg()&&(Rza&&UX&&4>WF&&(a=Math.max(.1,a)),this.ju(a))};
g.k.stopVideo=function(){this.ze()&&(Pza&&jk&&0<this.getCurrentTime()&&this.seekTo(0),this.du(),this.load(),Rra(this,null))};
g.k.jb=function(){try{var a=this.nn();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:gy(this.ul(),",",3),vbu:gy(this.kf()),vpa:""+ +this.xk(),vsk:""+ +this.wp(),ven:""+ +this.ki(),vpr:""+this.getPlaybackRate(),vrs:""+this.jg(),vns:""+this.Wr(),vec:""+this.qh(),vemsg:this.mn(),vvol:""+this.getVolume(),vdom:""+ +this.Ow(),vsrc:""+ +!!this.ze(),vw:a.width,vh:a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.F.ua(a,b,!1,this);this.Tv(a)};
g.k.removeEventListener=function(a,b){this.F.Eb(a,b,!1,this)};
g.k.dispatchEvent=function(a){return this.F.dispatchEvent(a)};
g.k.Pv=function(){this.I=!1};
g.k.Nv=function(){this.I=!0;this.Mn(!0)};
g.k.HA=function(){this.I&&!this.Vr()&&this.Mn(!0)};
g.k.aa=function(){this.K&&this.removeEventListener("volumechange",this.HA);g.B.prototype.aa.call(this)};
var Oza=!1,Pza=!0,Qza=!0,Rza=!0;g.u(CS,g.Ll);CS.prototype.preventDefault=function(){g.Ll.prototype.preventDefault.call(this);this.B&&this.B.preventDefault()};
CS.prototype.stopPropagation=function(){g.Ll.prototype.stopPropagation.call(this);this.B&&this.B.stopPropagation()};g.u(g.DS,g.xS);g.k=g.DS.prototype;g.k.wk=function(){return!0};
g.k.isView=function(){return!1};
g.k.fu=function(){return!1};
g.k.Ma=function(){return this.u};
g.k.ze=function(){return this.u.src};
g.k.ku=function(a){var b=this.getPlaybackRate();this.u.src=a;this.setPlaybackRate(b)};
g.k.du=function(){this.u.removeAttribute("src")};
g.k.getPlaybackRate=function(){try{return 0<=this.u.playbackRate?this.u.playbackRate:1}catch(a){return 1}};
g.k.setPlaybackRate=function(a){this.getPlaybackRate()!=a&&(this.u.playbackRate=a);return a};
g.k.rl=function(){return this.u.loop};
g.k.setLoop=function(a){this.u.loop=a};
g.k.canPlayType=function(a,b){return this.u.canPlayType(a,b)};
g.k.xk=function(){return this.u.paused};
g.k.wp=function(){return this.u.seeking};
g.k.ki=function(){return this.u.ended};
g.k.Vr=function(){return this.u.muted};
g.k.Mn=function(a){hB();this.u.muted=a};
g.k.ul=function(){return this.u.played||fy([],[])};
g.k.kf=function(){try{var a=this.u.buffered}catch(b){}return a||fy([],[])};
g.k.To=function(){return this.u.seekable||fy([],[])};
g.k.getStartDate=function(){return this.u.getStartDate?this.u.getStartDate():null};
g.k.getCurrentTime=function(){return this.u.currentTime};
g.k.ju=function(a){this.u.currentTime=a};
g.k.getDuration=function(){return this.u.duration};
g.k.load=function(){var a=this.u.playbackRate;this.u.load&&this.u.load();this.u.playbackRate=a};
g.k.pause=function(){this.u.pause()};
g.k.play=function(){var a=this.u.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.k.jg=function(){return this.u.readyState};
g.k.Wr=function(){return this.u.networkState};
g.k.qh=function(){return this.u.error?this.u.error.code:null};
g.k.mn=function(){return this.u.error?this.u.error.message:""};
g.k.getVideoPlaybackQuality=function(){var a={};if(this.u){if(this.u.getVideoPlaybackQuality)return this.u.getVideoPlaybackQuality();this.u.webkitDecodedFrameCount&&(a.totalVideoFrames=this.u.webkitDecodedFrameCount,a.droppedVideoFrames=this.u.webkitDroppedFrameCount)}return a};
g.k.Ll=function(){return!!this.u.webkitCurrentPlaybackTargetIsWireless};
g.k.nx=function(){return!!this.u.webkitShowPlaybackTargetPicker()};
g.k.togglePictureInPicture=function(){fB()?this.u!=window.document.pictureInPictureElement?this.u.requestPictureInPicture():window.document.exitPictureInPicture():gB()&&this.u.webkitSetPresentationMode("picture-in-picture"==this.u.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.dk=function(){var a=this.u;return new g.fe(a.offsetLeft,a.offsetTop)};
g.k.setPosition=function(a){return g.wg(this.u,a)};
g.k.nn=function(){return g.Eg(this.u)};
g.k.setSize=function(a){return g.Dg(this.u,a)};
g.k.getVolume=function(){return this.u.volume};
g.k.setVolume=function(a){hB();this.u.volume=a};
g.k.Tv=function(a){if(!this.B[a]){var b=(0,g.z)(this.ZJ,this);this.u.addEventListener(a,b);this.B[a]=b}};
g.k.ZJ=function(a){this.dispatchEvent(new CS(this,a.type,a))};
g.k.setAttribute=function(a,b){this.u.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.u.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.u.hasAttribute(a)};
g.k.lo=ba(7);g.k.uq=ba(9);g.k.gm=ba(4);g.k.xo=ba(11);g.k.Io=function(){return Ur(this.u)};
g.k.Uo=function(a){return g.sg(this.u,a)};
g.k.Ow=function(){return g.Me(document.body,this.u)};
g.k.aa=function(){for(var a in this.B)this.u.removeEventListener(a,this.B[a]);g.xS.prototype.aa.call(this)};g.u(g.ES,g.xS);g.k=g.ES.prototype;g.k.isView=function(){return!0};
g.k.fu=function(){var a=this.u.getCurrentTime();if(a<this.B)try{var b=this.u.kf(),c=jy(b,a);return!(this.B<c)}catch(d){}return!1};
g.k.ul=function(){return my(this.u.ul(),this.B,this.D)};
g.k.kf=function(){return my(this.u.kf(),this.B,this.D)};
g.k.To=function(){return my(this.u.To(),this.B,this.D)};
g.k.getCurrentTime=function(){return this.u.getCurrentTime()-this.B};
g.k.ju=function(a){this.u.ju(a+this.B)};
g.k.getDuration=function(){return isFinite(this.D)&&!this.N?this.D-this.B:this.u.getDuration()-this.B};
g.k.play=function(){if(this.fu()){this.u.getCurrentTime();try{this.u.ju(this.B)}catch(a){}}return this.u.play()};
g.k.jb=function(){var a=g.xS.prototype.jb.call(this);a.view=this.B+"-"+this.D;return a};
g.k.addEventListener=function(a,b){this.u.addEventListener(a,b)};
g.k.removeEventListener=function(a,b){this.u.removeEventListener(a,b)};
g.k.vt=function(){return this.u.vt()};
g.k.ln=function(a){this.u.ln(a)};
g.k.qt=function(){return this.u.qt()};
g.k.playVideo=function(){return this.u.playVideo()};
g.k.Pv=function(){this.u.Pv()};
g.k.Nv=function(){this.u.Nv()};
g.k.wk=function(){return this.u.wk()};
g.k.Ma=function(){return this.u.Ma()};
g.k.ze=function(){return this.u.ze()};
g.k.ku=function(a){this.u.ku(a)};
g.k.du=function(){this.u.du()};
g.k.getPlaybackRate=function(){return this.u.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.u.setPlaybackRate(a)};
g.k.rl=function(){return this.u.rl()};
g.k.setLoop=function(a){this.u.setLoop(a)};
g.k.canPlayType=function(a,b){return this.u.canPlayType(a,b)};
g.k.xk=function(){return this.u.xk()};
g.k.wp=function(){return this.u.wp()};
g.k.ki=function(){return this.u.ki()};
g.k.Vr=function(){return this.u.Vr()};
g.k.Mn=function(a){this.u.Mn(a)};
g.k.getStartDate=function(){return this.u.getStartDate()};
g.k.load=function(){this.u.load()};
g.k.pause=function(){this.u.pause()};
g.k.jg=function(){return this.u.jg()};
g.k.Wr=function(){return this.u.Wr()};
g.k.qh=function(){return this.u.qh()};
g.k.mn=function(){return this.u.mn()};
g.k.getVideoPlaybackQuality=function(){return this.u.getVideoPlaybackQuality()};
g.k.Ll=function(){return this.u.Ll()};
g.k.nx=function(){return this.u.nx()};
g.k.togglePictureInPicture=function(){this.u.togglePictureInPicture()};
g.k.dk=function(){return this.u.dk()};
g.k.setPosition=function(a){return this.u.setPosition(a)};
g.k.nn=function(){return this.u.nn()};
g.k.setSize=function(a){return this.u.setSize(a)};
g.k.getVolume=function(){return this.u.getVolume()};
g.k.setVolume=function(a){this.u.setVolume(a)};
g.k.setAttribute=function(a,b){this.u.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.u.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.u.hasAttribute(a)};
g.k.lo=ba(6);g.k.uq=ba(8);g.k.gm=ba(3);g.k.xo=ba(10);g.k.Io=function(){return this.u.Io()};
g.k.Uo=function(a){return this.u.Uo(a)};
g.k.Ow=function(){return this.u.Ow()};
g.k.stopVideo=function(){this.u.stopVideo()};
g.k.Tv=function(a){this.u.Tv(a)};Pa(FS);var k0=g.v.ytPlayerUtilsVideoTagPoolInstance||FS.getInstance();g.Ia("ytPlayerUtilsVideoTagPoolInstance",k0,void 0);g.k=FS.prototype;g.k.fB=function(a){if(!(this.u.length>=a)){a-=this.u.length;for(var b=0;b<a;b++)Wra(this)}};
g.k.TI=function(a,b){if(this.u.length)return this.u.pop();var c=Wra(this,a,b);a||g.rb(this.u,c);return c};
g.k.uQ=function(a){a&&g.nb(this.B,a)&&(a.Ch(),mp(a),g.rb(this.B,a),g.rb(this.C,a))};
g.k.zJ=function(a){return this.u.length>=(a||1)};
g.k.MH=function(){for(var a=this.C.length-1;0<=a;a--)GS(this,this.C[a]);this.u.length==this.B.length&&4<=this.u.length||(4>this.B.length?this.fB(4):(this.u=[],g.Gb(this.B,function(b){GS(this,b)},this)))};
FS.prototype.fillPool=FS.prototype.fB;FS.prototype.getTag=FS.prototype.TI;FS.prototype.releaseTag=FS.prototype.uQ;FS.prototype.hasTags=FS.prototype.zJ;FS.prototype.activateTags=FS.prototype.MH;g.wT=eb(function(){var a="";try{var b=g.Fe("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});HS.prototype.isFinished=function(){return this.u};
HS.prototype.start=function(){this.started=!0};
HS.prototype.reset=function(){this.u=this.started=!1};IS.prototype.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
IS.prototype.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
IS.prototype.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
IS.prototype.findIndex=function(a){return g.kb(this.keys,function(b){return g.Eb(a,b)})};JS.prototype.la=function(){return this.F};
JS.prototype.dispose=function(){this.F=!0;g.LS(this);this.B=null};var tr=new rr,MS=0;g.u(OS,g.P);g.u(PS,OS);PS.prototype.I=function(a,b){if(a&&b){var c=1*Number(Pd(a,"cpi"))+1;isNaN(c)||0>=c||c<this.C?(this.D.stop(),this.B.stop(),this.C=-1,this.u={}):(c>this.C&&(this.C=c,g.Wb(this.u)||(this.u={},this.D.stop(),this.B.stop())),this.u[b]=a,this.B.xb())}};
PS.prototype.F=function(){for(var a=g.q(Object.keys(this.u)),b=a.next();!b.done;b=a.next())b=b.value,this.V("rotated_need_key_info_ready",new Jx(fsa(this.u[b],this.C,b),"fairplay",!0));this.u={}};var R1={},nsa=(R1.DRM_TRACK_TYPE_AUDIO="AUDIO",R1.DRM_TRACK_TYPE_SD="SD",R1.DRM_TRACK_TYPE_HD="HD",R1.DRM_TRACK_TYPE_UHD1="UHD1",R1);g.u(jsa,g.B);g.u(RS,g.P);g.k=RS.prototype;g.k.error=function(a,b,c,d){this.la()||this.V("licenseerror",a,b,c,d);b&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.ba&&this.K?!1:!a&&this.requestNumber===b.requestNumber};
g.k.aa=function(){g.P.prototype.aa.call(this)};
g.k.jb=function(){var a={requestedKeyIds:this.Z,cryptoPeriodIndex:this.cryptoPeriodIndex};this.D&&(a.keyStatuses=this.u);return a};
g.k.te=function(){var a=this.I.join();if(SS(this)){var b=[],c;for(c in this.u)"usable"!==this.u[c].status&&b.push(this.u[c].type);a+="/UKS."+b}return a+="/"+this.cryptoPeriodIndex};
g.k.nd=function(){return this.url};
var S1={},Esa=(S1.widevine="DRM_SYSTEM_WIDEVINE",S1.fairplay="DRM_SYSTEM_FAIRPLAY",S1.playready="DRM_SYSTEM_PLAYREADY",S1);g.u(US,g.B);g.k=US.prototype;g.k.jK=function(a){if(this.F){var b=a.messageType||"license-request";this.F(new Uint8Array(a.message),b)}};
g.k.kK=function(){this.K&&this.K(this.u.keyStatuses)};
g.k.xE=function(a){this.F&&this.F(a.message,"license-request")};
g.k.wE=function(a){if(this.C){if(this.B){var b=this.B.error.code;a=this.B.error.u}else b=a.errorCode,a=a.systemCode;this.C("t.prefixedKeyError;c."+b+";sc."+a)}};
g.k.vE=function(){this.I&&this.I()};
g.k.update=function(a){var b=this;if(this.u)return this.u.update(a).then(null,Do(function(c){Msa(b,"t.update",c)}));
this.B?this.B.update(a):this.element.addKey?this.element.addKey(this.N.u,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.N.u,a,this.initData,this.sessionId);return Cr()};
g.k.aa=function(){this.u&&this.u.close();this.element=null;g.B.prototype.aa.call(this)};g.u(VS,g.B);g.k=VS.prototype;g.k.createSession=function(a,b){var c=a.initData;if(this.u.keySystemAccess){b&&b("createsession");var d=this.B.createSession();NC(this.u)&&(c=Psa(c,this.u.Zg));b&&b("genreq");c=d.generateRequest(a.contentType,c);var e=new US(null,null,null,d,null);c.then(function(){b&&b("genreqsuccess")},Do(function(f){Msa(e,"t.generateRequest",f)}));
return e}if(JC(this.u))return Rsa(this,c);if(MC(this.u))return Qsa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.u.u,c):this.element.webkitGenerateKeyRequest(this.u.u,c);return this.D=new US(this.element,this.u,c,null,null)};
g.k.nK=function(a){var b=XS(this,a);b&&b.xE(a)};
g.k.mK=function(a){var b=XS(this,a);b&&b.wE(a)};
g.k.lK=function(a){var b=XS(this,a);b&&b.vE(a)};
g.k.aa=function(){g.B.prototype.aa.call(this);delete this.element};g.u(YS,g.B);
YS.prototype.init=function(){return g.Ue(this,function b(){var c=this,d,e;return g.Aa(b,function(f){if(1==f.u)return g.E(c.u,{position:"absolute",width:"1px",height:"1px",display:"block"}),c.u.src=c.C.D,document.body.appendChild(c.u),c.F.R(c.u,"encrypted",c.I),d=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.ra(f,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",d),2);e=f.B;
c.C.keySystemAccess=e;c.B=new VS(c.u,c.C);g.C(c,c.B);WS(c.B);f.u=0})})};
YS.prototype.I=function(a){if(!this.la()){var b=new Uint8Array(a.initData);a=new Jx(b,a.initDataType);var c=esa(b).replace("skd://","https://"),d={},e=this.B.createSession(a,function(){});
e&&(g.C(this,e),this.D.push(e),qsa(e,function(f){Ksa(f,e.u,c,d,"fairplay")},function(){},function(){},function(){}))}};
YS.prototype.aa=function(){this.D=[];this.u&&this.u.parentNode&&this.u.parentNode.removeChild(this.u);g.B.prototype.aa.call(this)};g.u(ZS,OS);ZS.prototype.F=function(a){var b=(0,g.N)(),c;if(!(c=this.D)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c))for(var d=g.q(this.C.values),e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}c=!1}c=!c}c?c=0:(c=a.u,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.u.push({time:b+c,info:a});this.B.xb(c)};g.u(aT,g.P);g.k=aT.prototype;g.k.oK=function(a){$S(this,"onecpt");a.initData&&Vsa(this,new Uint8Array(a.initData),a.initDataType)};
g.k.nO=function(a){$S(this,"onndky");Vsa(this,a.initData,a.contentType)};
g.k.kA=function(a){this.D.push(a);cT(this)};
g.k.createSession=function(a){this.C.get(a.initData);this.Z=!0;var b=new RS(this.videoData,this.B,a,this.drmSessionId);this.C.set(a.initData,b);b.subscribe("ctmp",this.VD,this);b.subscribe("hdentitled",this.hE,this);b.subscribe("keystatuseschange",this.cD,this);b.subscribe("licenseerror",this.iE,this);b.subscribe("newlicense",this.qE,this);b.subscribe("newsession",this.sE,this);b.subscribe("sessionready",this.GE,this);b.subscribe("fairplay_next_need_key_info",this.eE,this);tsa(b,this.I)};
g.k.qE=function(a){this.la()||($S(this,"onnelcswhb"),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.V("heartbeatparams",a)))};
g.k.sE=function(){this.la()||($S(this,"newlcssn"),this.D.shift(),this.Z=!1,cT(this))};
g.k.GE=function(){if(JC(this.u)&&($S(this,"onsnrdy"),this.Aa--,0===this.Aa)){var a=this.X;a.element.msSetMediaKeys(a.C)}};
g.k.cD=function(a){this.la()||(!this.ka&&this.videoData.ca("html5_log_drm_metrics_on_key_statuses")&&(ata(this),this.ka=!0),$S(this,"onksch"),Zsa(this,Gsa(a,this.da)),this.V("keystatuseschange",a))};
g.k.hE=function(){this.la()||this.ea||!LC(this.u)||($S(this,"onhdet"),this.ra=Xva,this.V("hdproberequired"),this.V("qualitychange"))};
g.k.VD=function(a,b){this.la()||this.V("ctmp",a,b)};
g.k.eE=function(a,b){this.la()||this.V("fairplay_next_need_key_info",a,b)};
g.k.iE=function(a,b,c,d){this.la()||(this.videoData.ca("html5_log_drm_metrics_on_error")&&ata(this),this.V("licenseerror",a,b,c,d))};
g.k.aa=function(){this.u.keySystemAccess&&this.element.setMediaKeys(null);this.element=null;this.D=[];for(var a=g.q(this.C.values),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.VD,this),b.unsubscribe("hdentitled",this.hE,this),b.unsubscribe("keystatuseschange",this.cD,this),b.unsubscribe("licenseerror",this.iE,this),b.unsubscribe("newlicense",this.qE,this),b.unsubscribe("newsession",this.sE,this),b.unsubscribe("sessionready",this.GE,this),b.unsubscribe("fairplay_next_need_key_info",
this.eE,this),b.dispose();a=this.C;a.keys=[];a.values=[];g.P.prototype.aa.call(this)};
g.k.jb=function(){for(var a={systemInfo:this.u.jb(),sessions:[]},b=g.q(this.C.values),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.jb());return a};
g.k.te=function(){return 0>=this.C.values.length?"no session":this.C.values[0].te()+(this.F?"/KR":"")};g.u(eT,g.P);
eT.prototype.handleError=function(a,b){var c=this;eta(this,a);if(!fta(this,a)&&!ita(this,a,b))if(gta(a)&&this.videoData.Ia&&this.videoData.Ia.B)fT(this,a.errorCode,a.details),iT(this,"highrepfallback","1",{Ey:!0}),!this.videoData.ca("html5_hr_logging_killswitch")&&/^hr/.test(this.videoData.clientPlaybackNonce)&&btoa&&iT(this,"afmts",btoa(this.videoData.adaptiveFormats),{Ey:!0}),zma(this.videoData),this.V("highrepfallback");else if(a.u){var d=this.u?this.u.K.F:null;if(gta(a)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";
else if(!this.Oa.I&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.V("playererror",a.errorCode,e,g.UA(a.details),f)}else d=/^pp/.test(this.videoData.clientPlaybackNonce),fT(this,a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(d="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.N)(),(new lD(d,"manifest",function(h){c.W=!0;iT(c,"pathprobe",h)},function(h){fT(c,h.errorCode,h.details)})).send())};
eT.prototype.aa=function(){this.B=this.u=null;g.P.prototype.aa.call(this)};g.u(kT,g.P);kT.prototype.setPlaybackRate=function(a){this.playbackRate=a};
kT.prototype.ca=function(a){return g.R(this.u.experiments,a)};g.u(lT,g.B);lT.prototype.Vb=function(a){Dta(this);this.playerState=a.state;0<=this.B&&g.xI(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
lT.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(oCa)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
lT.prototype.send=function(){if(!(this.C||0>this.u)){Dta(this);var a=g.mT(this.provider)-this.u,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.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=AF(this.provider.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"===d?c="LIVE_STREAM_MODE_LIVE":"dvr"===d&&(c="LIVE_STREAM_MODE_DVR");d=Eta(this.provider);var e=0>this.B?a:this.B-this.u;a=this.provider.u.Ja+36E5<(0,g.N)();b={started:0<=this.B,stateAtSend:b,
joinLatencySecs:e,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.xF(this.provider.videoData),isGapless:this.provider.videoData.ni};!a&&this.provider.ca("html5_health_to_gel")&&g.Lq("html5PlayerHealthEvent",b);this.provider.ca("html5_health_to_qoe")&&(b.muted=a,this.I(g.UA(b)));this.C=!0;
this.dispose()}};
lT.prototype.aa=function(){this.C||this.send();g.B.prototype.aa.call(this)};
var oCa=/\bnet\b/;g.u(qT,g.B);g.k=qT.prototype;g.k.mJ=function(){var a=g.mT(this.provider);sT(this,a)};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.la()&&(a=0<=a?a:g.mT(this.provider),-1<["PL","B","S"].indexOf(this.Bc)&&(!g.Wb(this.u)||a>=this.C+30)&&(g.pT(this,a,"vps",[this.Bc]),this.C=a),!g.Wb(this.u)))if(7E3===this.sequenceNumber&&g.lr(Error("Sent over 7000 pings")),7E3<=this.sequenceNumber)this.u={};else{tT(this,a);var b=a,c=this.provider.I(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.za,h=e&&!this.Na;if(d>c.totalVideoFrames||5E3<f)this.onError("html5.badframedropcount",
"df."+d+";tf."+c.totalVideoFrames);else(0<f||h)&&g.pT(this,b,"df",[f]);this.za=d;this.Na=e;!g.R(this.provider.u.experiments,"disable_webgl_reporting")&&0<this.I&&(g.pT(this,a,"glf",[this.I]),this.I=0);a={event:"streamingstats"};this.provider.videoData.La&&(a.fmt=wu(this.provider.videoData.La),(b=this.provider.videoData.Qc)&&wu(b)!==a.fmt&&(a.afmt=wu(b)));a.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.K&&(a.addocid=this.K);a.ei=this.provider.videoData.eventId;
a.el=MF(this.provider.videoData);a.docid=this.provider.videoData.videoId;a.content_v=NF(this.provider.videoData);a.ns=this.provider.u.X;a.fexp=this.provider.u.experiments.experimentIds.toString();a.cl=(339548151).toString();this.provider.videoData.adFormat&&(a.adformat=this.provider.videoData.adFormat);(b=AF(this.provider.videoData))&&(a.live=b);uF(this.provider.videoData)&&(a.drm=1);bq()&&this.provider.videoData.Nh&&(a.ctt=this.provider.videoData.Nh,a.cttype=this.provider.videoData.qg,this.provider.videoData.mdxEnvironment&&
(a.mdx_environment=this.provider.videoData.mdxEnvironment));a.seq=this.sequenceNumber++;g.bc(a,this.provider.u.deviceParams);b=g.Ld("//"+this.provider.u.Oi+"/api/stats/qoe",a);a=c="";d=g.q(Object.keys(this.u));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.u[e]?g.lr(new Iq("Stats report key has invalid value",e)):(e="&"+e+"="+this.u[e].join(","),100<e.length?a+=e:c+=e);b+=c;a=a.replace(/ /g,"%20");e=this.provider.videoData.lf();c=g.R(this.provider.u.experiments,"qoe_with_networkless");d=
g.R(this.provider.u.experiments,"qoe_send_then_write");f=this.provider.ca("web_player_vss_pageid_header")?this.provider.u.pageId:void 0;(e=nT(b,f,this.provider.u.sendVisitorIdHeader?this.provider.videoData.visitorData:void 0,e))?(e.method="POST",e.postBody=a,oT(b,e,{token:this.provider.videoData.Nh,Oy:this.provider.videoData.qg,mdxEnvironment:this.provider.videoData.mdxEnvironment},void 0,c,d)):c?d?ir(b):hr(b):bt(b,void 0,a);this.u={}}};
g.k.OF=function(){if(this.provider.videoData.Vc){var a=this.provider.videoData.Vc;vT(this,"drm-"+a.flavor);vT(this,"eme-"+(a.keySystemAccess?"final":JC(a)?"ms":NC(a)?"ytfp":MC(a)?"safarifp":"nonfinal"))}};
g.k.onError=function(a,b){var c=g.mT(this.provider);Jta(this,c,a,b);tT(this,c);uT(this)};
g.k.Vb=function(a){var b=a.state,c=g.mT(this.provider);a=this.getPlayerState(a.state);if(a!==this.Bc){if(!(c<this.C)){if("PL"===this.Bc)this.playTimeSecs+=c-this.C;else if("B"===this.Bc&&this.W){this.W=!1;var d=g.Q(this.provider.u.experiments,"html5_disable_last_state_change")?this.C:this.ha;this.rebufferTimeSecs+=c-d;!this.ea&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.provider.K(),this.u.qoealert=["1"],this.ea=!0)}"B"!==a||"PL"!==this.Bc&&"PB"!==this.Bc||(this.W=!0);this.C=c}"B"===
a&&"PL"===this.Bc||this.provider.videoData.Cj?tT(this,c):sT(this,c);"PL"===a&&this.Za.xb();g.pT(this,c,"vps",[a]);this.Bc=a;this.C=this.ha=c;this.P=!0}a=b.getData();g.T(b,128)&&a&&Jta(this,c,a.errorCode,a.uF);(g.T(b,2)||g.T(b,128))&&this.reportStats(c);b.Gb()&&!this.D&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.D=!0);uT(this)};
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=pCa[jL(a)];g.$B(this.provider.u)&&"B"===b&&3===this.provider.getVisibilityState()&&(b="SU");"B"===b&&g.T(a,4)&&(b="PB");return b};
g.k.aa=function(){g.B.prototype.aa.call(this);window.clearInterval(this.ra)};
var Lta=g.Oa,T1={},pCa=(T1[5]="N",T1[-1]="N",T1[3]="B",T1[0]="EN",T1[2]="PA",T1[1]="PL",T1);yT.prototype.Gm=function(){this.C.startTime=this.B;this.C.endTime=this.u;this.segments.length&&g.gb(this.segments).isEmpty()?this.segments[this.segments.length-1]=this.C:this.segments.length&&this.C.isEmpty()||this.segments.push(this.C);this.F+=this.u-this.B;this.C=xT(this.provider);this.B=this.u};
yT.prototype.update=function(){if(this.K){var a=this.provider.B()||0,b=g.mT(this.provider);if(a!==this.u||Rta(this,a,b)){var c;if(!(c=a<this.u||a-this.u>b-this.lastUpdateTime+2||Rta(this,a,b))){var d=this.provider.xe();c=d.volume;var e=c!==this.P;d=d.muted;d!==this.N?(this.N=d,c=!0):(!e||0<=this.D||(this.P=c,this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(this.Gm(),this.B=a);this.lastUpdateTime=b;this.u=a}}};zT.prototype.send=function(a){if(!this.za){var b=CT(this);b=g.Ld(this.uri,b);if(this.ea)this.W&&(a=AT(this)||{},a.method="POST",a.dc={atr:this.W},this.N?this.P?ir(b,a):hr(b,a):g.oq(b,a));else{var c=AT(this,a);oT(b,c,{token:this.I,Oy:this.Z,mdxEnvironment:this.mdxEnvironment},a,this.N,this.P)}this.za=!0}};
zT.prototype.u=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var U1={},Tta=(U1.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,U1.LIVING_ROOM_APP_MODE_MAIN=1,U1.LIVING_ROOM_APP_MODE_KIDS=2,U1.LIVING_ROOM_APP_MODE_MUSIC=3,U1.LIVING_ROOM_APP_MODE_UNPLUGGED=4,U1.LIVING_ROOM_APP_MODE_GAMING=5,U1);var Vta={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},Wta={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Uta={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"};var Yta=new Set("embed_config endscreen_ad_tracking home_group_info ic_track player_request watch_next_request".split(" "));g.u(HT,g.B);g.k=HT.prototype;g.k.Gm=function(){this.u.Gm()};
g.k.Vd=function(){this.u.update();if(this.provider.videoData.Dc()&&this.provider.videoData.Wg&&this.C&&!this.X&&Nta(this.u)>=this.provider.videoData.Wg){if(this.C&&this.provider.videoData.Wg){var a=IT(this,"delayplay");a.Za=!0;a.send();this.X=!0}bua(this)}};
g.k.Vb=function(a){this.la()||(g.T(a.state,2)?(this.currentPlayerState="paused",g.xI(a,2)&&this.C&&MT(this).send()):g.T(a.state,8)?(this.currentPlayerState="playing",this.C&&isNaN(this.B)&&JT(this,!1)):this.currentPlayerState="paused",this.D&&g.T(a.state,128)&&(LT(this,"error-100"),g.Ho(this.D)))};
g.k.aa=function(){g.B.prototype.aa.call(this);g.Ho(this.B);this.B=NaN;Pta(this.u);g.Ho(this.D)};
g.k.jb=function(){return CT(IT(this,"playback"))};g.u(NT,g.B);NT.prototype.Vb=function(a){if(g.xI(a,1024)||g.xI(a,2048)||g.xI(a,512)||g.xI(a,4)){if(this.B){var b=this.B;0<=b.B||(b.u=-1,b.delay.stop())}this.qoe&&(b=this.qoe,b.D||(b.B=-1))}this.provider.videoData.enableServerStitchedDai?this.currentVideoId&&(b=this.C.get(this.currentVideoId))&&b.Vb(a):this.u&&this.u.Vb(a);this.qoe&&this.qoe.Vb(a);this.B&&this.B.Vb(a)};
NT.prototype.Vd=function(){this.u&&this.u.Vd()};
NT.prototype.onError=function(a,b){if(this.qoe)this.qoe.onError(a,b);if(this.B)this.B.onError(a)};
NT.prototype.jb=function(){return this.provider.videoData.enableServerStitchedDai?this.C.get(this.currentVideoId).jb():this.u?this.u.jb():{}};PT.prototype.reset=function(){zA(this.timerName)};
PT.prototype.tick=function(a,b){CA(a,b,this.timerName)};
PT.prototype.info=function(a,b){BA(a,b,this.timerName)};oua.prototype.isEmpty=function(){return this.endTime===this.startTime};pua.prototype.ca=function(a){return g.R(this.u.experiments,a)};
var qua={other:1,none:2,wifi:3,cellular:7};sua.prototype.wc=function(){return this.Ia.wc()};g.u(wua,g.P);g.u(ZT,g.B);ZT.prototype.Vb=function(a){this.playerState=a.state};
ZT.prototype.B=function(){var a=this;if(this.D&&!this.playerState.isError()){var b=this.D,c=b.getCurrentTime(),d=8===this.playerState.state&&c>this.u,e=Kna(this.playerState),f=this.visibility.isBackground()||this.playerState.isSuspended();$T(this,this.da,e&&!f,d,"qoe.slowseek",function(){},"timeout");
e=e&&isFinite(this.u)&&0<this.u&&Sra(b,this.u);var h=!c||10<Math.abs(c-this.u);$T(this,this.ha,e&&h&&!f,d,"qoe.slowseek",function(){b.seekTo(a.u)},"set_cmt");
h=e&&iy(b.kf(),this.u);var l=!this.C||!this.C.u.ea;e=function(){b.seekTo(a.u+.001)};
$T(this,this.ba,h&&l&&!f,d,"qoe.slowseek",e,"jiggle_cmt");l=function(){return a.V("newmediaelementrequired")};
$T(this,this.ea,h&&!f,d,"qoe.slowseek",l,"new_elem");d=ID(this.playerState);h=g.iL(this.playerState);var m=d&&h&&iy(b.kf(),c+5);$T(this,this.P,m&&!f,d&&!h,"qoe.longrebuffer",e,"jiggle_cmt");$T(this,this.W,m&&!f,d&&!h,"qoe.longrebuffer",l,"new_elem_nnr");if(this.C){var n=this.C.getCurrentTime();e=b.ul();e=mga(e,n);c=!this.C.N.C&&c===e;$T(this,this.ka,d&&h&&c&&!f,d&&!h&&!c,"qoe.longrebuffer",function(){b.seekTo(n)},"seek_to_loader")}$T(this,this.X,d&&h&&!f,d&&!h,"qoe.longrebuffer",function(){},"timeout");
f=this.playerState.isSuspended();f=this.Z()&&!f;$T(this,this.N,f,!f,"qoe.start15s",function(){return a.V("releaseadsprerolllock")},"ads_preroll_timeout");
this.I.start()}};
ZT.prototype.jb=function(a){a=a.jb();this.u&&(a.stt=this.u.toFixed(3));this.C&&Object.assign(a,this.C.jb());this.D&&Object.assign(a,this.D.jb());return a};
WT.prototype.reset=function(){this.u=this.B=this.C=this.startTimestamp=0;this.D=!1};
WT.prototype.jb=function(){var a={},b=(0,g.N)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.B&&(a.wtd=(b-this.B).toFixed());this.u&&(a.wssd=(b-this.u).toFixed());return a};g.u(bU,g.P);g.k=bU.prototype;g.k.Dh=function(a){cU(this);this.videoData=a;this.W=this.B=null;this.K=this.Na=this.D=0;this.ra=!0;this.P.dispose();a=this.P=new ZT(this.X,(0,g.z)(this.V,this),this.visibility,this.Za);var b=this.u;(a.D=b)&&a.I.xb();this.P.C=this.F};
g.k.Vb=function(a){this.P.Vb(a);this.ca("html5_exponential_memory_for_sticky")&&(a.state.Gb()?this.ea.xb():this.ea.stop());var b;if(b=this.u)b=8===a.xj.state&&ID(a.state)&&g.iL(a.state)&&this.policy.D;if(b){a=this.u.getCurrentTime();b=this.u.kf();var c=this.ca("manifestless_post_live_ufph")||this.ca("manifestless_post_live")?hy(b,Math.max(a-3.5,0)):hy(b,a-3.5);0<=c&&a>b.end(c)-1.1&&c+1<b.length&&11>b.start(c+1)-b.end(c)&&(c=b.start(c+1)+.2,.2>Math.abs(this.Qa-c)||(this.V("ctmp","seekover","b."+gy(b,
"_")+";cmt."+a),this.Qa=c,this.seekTo(c,{ep:!0})))}};
g.k.getCurrentTime=function(){return!isNaN(this.C)&&isFinite(this.C)?this.C:this.u&&Jua(this)?this.u.getCurrentTime()+this.D:this.K||0};
g.k.isAtLiveHead=function(a){if(!this.B)return!1;void 0===a&&(a=this.getCurrentTime());return VT(this.B,a)};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b,d=void 0===c.oG?!1:c.oG,e=void 0===c.pG?0:c.pG,f=void 0===c.ep?!1:c.ep;c=void 0===c.Py?0:c.Py;var h=a,l=!isFinite(h)||(this.B?VT(this.B,h):h>=this.Ad())||!g.GF(this.videoData);l||this.V("ctmp","seeknotallowed",h+";"+this.Ad());if(!l)return this.I&&(this.I=null,Hua(this)),Dm(this.getCurrentTime());if(a===this.C&&this.ba)return this.N;this.ba&&cU(this);this.N||(this.N=new dw);a&&!isFinite(a)&&eU(this,!1);h=a;(jU(this)&&!(this.u&&0<this.u.jg()&&0<yS(this.u))||
mF(this.videoData)&&this.uc()===this.Ad(!1)?0:isFinite(h)||!mF(this.videoData))&&(a=Iua(this,a,f));a&&!isFinite(a)&&eU(this,!1);this.K=a;this.Ja=c;this.C=a;this.B&&(f=this.B,c=a,yua(f,c,!1),zua(f,c));this.V("seekto",a,!d);this.N&&(d?e&&this.Aa.start(e):(this.ba=!0,Dua(this)));return this.N};
g.k.Ad=function(a){if(!this.videoData.isLivePlayback)return this.videoData.Ad();if(mF(this.videoData)&&this.videoData.jp&&this.videoData.ma)return this.videoData.ma.Ad();if(this.wc()){if(!a&&this.B)return UT(this.B);a=this.videoData.Ad();this.policy.B&&this.u&&(a=Math.max(a,Ura(this.u)));return a+this.D}this.u?ck()?(a=this.u.getStartDate().getTime(),a=isNaN(a)?0:Math.max((g.A()-a)/1E3-30,0)):a=yS(this.u)+this.D||this.D:a=this.D;return a};
g.k.uc=function(){return this.videoData?this.videoData.uc()+this.D:this.D};
g.k.aa=function(){fU(this,null);this.P.dispose();g.P.prototype.aa.call(this)};
g.k.wc=function(){return!!this.videoData.Ia&&this.videoData.Ia.wc()};
g.k.IQ=function(a,b){b=void 0===b?!1:b;this.seekTo(a+this.lc(),{ep:b})};
g.k.jb=function(){var a={};this.F&&Object.assign(a,this.F.jb());this.u&&Object.assign(a,this.u.jb());return a};
g.k.Nn=function(a){this.D=a};
g.k.iL=function(a){this.Na=a};
g.k.getStreamTimeOffset=function(){return mF(this.videoData)?this.Na:this.videoData.ma?this.videoData.ma.getStreamTimeOffset():0};
g.k.lc=function(){return this.D};
g.k.ue=function(a){return this.videoData.ma.ue(a-this.D)};
g.k.SN=function(a){this.W&&(this.W.u=a.audio.index)};
g.k.ca=function(a){return this.X&&g.R(this.X.experiments,a)};g.u(kU,g.P);g.k=kU.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:Lua()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.setMinimized=function(a){this.u!==a&&(this.u=a,this.Eg())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Eg())};
g.k.setImmersivePreview=function(a){this.C!==a&&(this.C=a,this.Eg())};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return Lua()};
g.k.Eg=function(){this.V("visibilitychange");var a=this.getVisibilityState(this.B,this.isFullscreen(),this.u,this.isInline(),this.pictureInPicture,this.C);a!==this.F&&this.V("visibilitystatechange");this.F=a};
g.k.aa=function(){Oua(this.D);g.P.prototype.aa.call(this)};g.u(lU,g.B);lU.prototype.start=function(){this.B.start()};
lU.prototype.stop=function(){this.B.stop()};
lU.prototype.clear=function(){for(var a=g.q(Object.keys(this.u)),b=a.next();!b.done;b=a.next())this.u[b.value].clear()};
lU.prototype.D=function(){for(var a=g.q(Object.keys(this.C)),b=a.next();!b.done;b=a.next())b=b.value,this.u[b].update(this.C[b]());this.B.start()};
mU.prototype.update=function(a){this.B?(this.buffer.add(a-this.u||0),this.u=a):this.buffer.add(a)};
mU.prototype.clear=function(){this.buffer.clear();this.u=0};var qCa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},rCa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},sCa=/^(\d*)_((\d*)_?(\d*))$/;var V1={},Wua=(V1.WEB_UNPLUGGED="^unplugged/",V1.WEB_UNPLUGGED_ONBOARDING="^unplugged/",V1.WEB_UNPLUGGED_OPS="^unplugged/",V1.WEB_UNPLUGGED_PUBLIC="^unplugged/",V1.WEB_CREATOR="^creator/",V1.WEB_KIDS="^kids/",V1.WEB_EXPERIMENTS="^experiments/",V1.WEB_MUSIC="^music/",V1.WEB_REMIX="^music/",V1.WEB_MUSIC_EMBEDDED_PLAYER="^music/",V1.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",V1);g.u(vU,uU);vU.prototype.B=function(){return LBa};
vU.prototype.C=function(a){return a.subscribeEndpoint};
vU.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};g.u(wU,uU);wU.prototype.B=function(){return MBa};
wU.prototype.C=function(a){return a.unsubscribeEndpoint};
wU.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};g.u(xU,uU);xU.prototype.B=function(){return JBa};
xU.prototype.C=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
xU.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.u(yU,uU);yU.prototype.B=function(){return KBa};
yU.prototype.C=function(a){return a.playlistEditEndpoint};
yU.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};zU.prototype.fetch=function(a,b){var c=new Request(a,b);return Dm(fetch(c).then(function(d){return Zua(d)})["catch"](function(d){g.lr(d)}))};var AU;CU.prototype.reset=function(){bva(this);this.update(this.C)};
CU.prototype.update=function(a){var b=0,c=a.length;this.D+=c;this.B&&64<=this.B+c&&(this.I.set(a.subarray(0,64-this.B),this.B),b=64-this.B,this.B=0,ava(this,this.I,0));for(;b+64<=c;b+=64)ava(this,a,b);b<c&&(a=a.subarray(b),this.I.set(a,this.B),this.B+=a.length)};
var $ua=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,
4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];EU.prototype.encrypt=function(a){return g.Ue(this,function c(){var d=this,e;return g.Aa(c,function(f){if(1==f.u)return g.ra(f,fva(d.u.u,a,d.iv),2);e=f.B;return f["return"](e)})})};
EU.prototype.decrypt=function(a,b){return g.Ue(this,function d(){var e=this,f;return g.Aa(d,function(h){if(1==h.u)return g.ra(h,fva(e.u.u,a,b),2);f=h.B;return h["return"](f)})})};var W1={},jva=(W1.f="video",W1["1"]="video",W1.h="video",W1.H="video",W1["9"]="video",W1["("]="video",W1["9h"]="video",W1["(h"]="video",W1.o="audio",W1.O="audio",W1.a="audio",W1.ah="audio",W1.A="audio",W1.m="audio",W1.M="audio",W1.mac3="audio",W1.MAC3="audio",W1.meac3="audio",W1.MEAC3="audio",W1.so="audio",W1.sa="audio",W1["8"]="unknown",W1["*"]="unknown",W1.w="unknown",W1["3"]="unknown",W1["6"]="unknown",W1[""]="unknown",W1);ova.prototype.decrypt=function(a){return g.Ue(this,function c(){var d=this,e,f,h,l;return g.Aa(c,function(m){switch(m.u){case 1:if(d.u.length&&!d.u[0].isEncrypted)return m["return"]();d.B=!0;e=new Uint8Array(16);return g.ra(m,qva(a),2);case 2:f=m.B;case 3:if(!d.u.length||!d.u[0].isEncrypted){m.Jd(4);break}h=d.u.shift();return g.ra(m,f(h.buffer,e),5);case 5:l=m.B;for(var n=0;n<e.length;n++)if(255===e[n])e[n]=0;else{e[n]+=1;break}d.C(h.streamId,l);m.Jd(3);break;case 4:pva(d),d.B=!1,m.u=0}})})};g.u(LU,g.P);
LU.prototype.feed=function(a,b){b.getLength();g.Ua(this);switch(a){case 10:var c=IU(new FU(b),1);switch(c){case 5:this.V("FIRST_BYTE_RECEIVED");break;case 0:this.iv=(new iva(b)).u.iv;g.Ua(this);break;case 16:var d=new nva(b),e=d.B,f=d.C;this.V("STREAM_STARTED",{id:f,startTimeMs:e.startTimeMs,endTimeMs:e.endTimeMs,numBytes:d.u,isAudio:this.C[f]});g.Ua(this);break;default:g.Ua(this)}this.B=c;break;case 11:switch(this.B){case 0:sva(this,b);break;case 2:c=Gu(b);this.queue.decrypt(c);g.Ua(this);break;
default:g.Ua(this)}this.B=null;break;case 20:c=new kva(b);d=c.B;e=c.isAudio;this.u[c.u]=d;this.C[d]=e;g.Ua(this);break;case 21:rva(this,b,!1);break;case 12:rva(this,b,!0);break;case 22:c=Iu(b,0);c=this.u[c]||null;g.Ua(this);c&&this.V("STREAM_ENDED",{id:c});break;default:g.Ua(this)}};tva.prototype.lm=function(){var a=new MU;PU(a,2,this.encryptedOnesiePlayerRequest);PU(a,5,this.encryptedClientKey);PU(a,6,this.iv);PU(a,7,this.hmac);var b=this.serializeResponseAsJson?1:0;OU(a,80);OU(a,b);return RU(a)};SU.prototype.lm=function(){var a=new MU;QU(a,1,this.name);QU(a,2,this.value);return RU(a)};uva.prototype.lm=function(){var a=new MU;QU(a,1,this.url);for(var b=g.q(this.httpHeaders),c=b.next();!c.done;c=b.next())PU(a,2,c.value.lm());QU(a,3,this.postBody);return RU(a)};vva.prototype.lm=function(){var a=new MU;PU(a,3,this.Rv.lm());return RU(a)};TU.prototype.feed=function(a){Bu(this.u,a);this.B()};
TU.prototype.B=function(){var a=g.q(wva(this.u,0));var b=a.next().value;var c=a.next().value;c=g.q(wva(this.u,c));a=c.next().value;c=c.next().value;!(0>b||0>a)&&c+a<=this.u.totalLength&&(c=this.u.split(c).im.split(a),a=c.ws,c=c.im,this.C(b,a),this.u=c,this.B())};UU.prototype.fetch=function(){return g.Ue(this,function b(){var c=this,d,e,f,h,l,m,n,p,r,t,w,x,y;return g.Aa(b,function(D){switch(D.u){case 1:return d=c,c.D.start(),c.u.tick("ogpd"),sa(D,2),g.ra(D,Bva(c),4);case 4:e=D.B;ta(D,3);break;case 2:return f=ua(D),f instanceof TA?VU(c,f):(h=new TA("onesie.request",!1),VU(c,h)),D["return"](c.B);case 3:c.u.tick("osor");l=Wu(c.videoData.T());m=e.lm();g.ak()&&(m=new Uint8Array(m.buffer.slice(0,m.length)));n={method:"POST",body:m,headers:{"Content-Type":"text/plain"}};
p=function(){zva(d)};
r=function(){zva(d);var F,G=d.xhr;G.Ml()?F=new TA("onesie.net",!1,{msg:G.Ml()}):400<=G.status?F=new TA("onesie.net.badstatus",!1):G.us()?d.F||(F=new TA("onesie.response.noplayerresponse",!1)):F=new TA(204===G.status?"onesie.net.nocontent":"onesie.net.connect",!1);F?VU(d,F):d.u.tick("orf")};
t=g.Oa;w=xva(c.videoData);if(!w)return x={url:"0"},y=new TA("onesie.unavailable.hotconfig",!1,x),VU(c,y),D["return"](c.B);c.u.tick("ocs");c.xhr=new Yw(w,p,r,t,l,n);return D["return"](c.B)}})})};
UU.prototype.I=function(){VU(this,new TA("onesie.request",!1,{timeout:"1"}))};g.u($U,g.P);g.k=$U.prototype;g.k.aa=function(){this.FF();this.Qe.stop();window.clearInterval(this.wd);Oua(this.hd);this.ba.unsubscribe("visibilitystatechange",this.hd);eV(this);bV(this);g.tp(this.Ja);fW(this);delete this.X;g.eg(this.u);g.eg(this.N);this.ra=null;this.Za=!1;this.Rb=0;g.P.prototype.aa.call(this)};
g.k.Dh=function(a,b,c){c=void 0===c?!0:c;this.ha.length=0;this.ob=null;this.ka.reset();this.Aa.reset();this.xc=!1;this.Oi=0;this.Df=!0;this.Lc=null;this.B&&this.B.stopVideo();cV(this);eV(this);bV(this);g.tp(this.Ja);this.za.clear();g.eg(this.u);g.eg(this.N);if(2==this.Lb||this.F.Sq)a.qC=!0;var d=this.F.B;var e=this.F.C,f;(f=a.Up)||(f=(f=a.gz)&&qCa.hasOwnProperty(f)&&rCa.hasOwnProperty(f)?rCa[f]+"_"+qCa[f]:void 0);if(f){var h=f.match(sCa);if(h&&5===h.length){if(h=f.match(sCa)){var l=Number(h[3]),m=
[7,8,10,5,6];h=!(1===Number(h[1])&&8===l)&&0<=m.indexOf(l)}else h=!1;d=d||e||h?f:null}else d=null}else d=null;d&&(a.adFormat=d);2==this.Lb&&(a.Bk=!0);if(this.ba.isFullscreen()||this.F.B)d=g.Xs("yt-player-autonavstate"),a.autonavState=d||(this.F.B?2:this.u.autonavState);this.Cf=c;this.u=a;this.u.subscribe("dataupdated",this.MP,this);this.u.subscribe("dataloaded",this.Dv,this);this.u.subscribe("dataloaderror",this.handleError,this);this.u.subscribe("ctmp",this.sb,this);Sva(this,a);Mva(this,b);Nva(this);
this.Za=!1;this.Rb=0;jV(this,"newdata");YV(this,new g.bL);this.K.Dh(this.u);EF(a)&&(a=this.u.errorDetail,b=this.u.Fo,this.Td("auth",unescape(b.reason),a,a,b.subreason||void 0));1==this.Lb&&this.Qe.start()};
g.k.getVideoData=function(){return this.u};
g.k.T=function(){return this.F};
g.k.Dv=function(){if(this.u.Dc()){var a=this.N;0<g.Q(a.Oa.experiments,"html5_player_min_build_cl")&&339548151<g.Q(a.Oa.experiments,"html5_player_min_build_cl")&&hta(a,"oldplayer");Uva(this)}else this.u.Vk||this.u.kp?this.Na&&g.$B(this.F)&&this.u.isLivePlayback||(this.u.Vk?sma(this.u):(a=this.I,a.qoe&&(a=a.qoe,vT(a,"protected"),a.provider.videoData.Vc?a.OF():a.provider.videoData.subscribe("dataloaded",a.OF,a)),qma(this.u))):!this.u.qd&&this.Cf&&Qva(this)};
g.k.xO=function(a){var b=this;if(!this.la()&&!a.videoData.la()&&(this.X=a,Eua(this.K,this.X),!this.u.isLivePlayback||0<this.u.lk&&!mF(this.u)||(this.seekTo(oW(this)),aW(this,"playbackData")),this.u.Ia.wc()&&(!g.R(this.F.experiments,"hoffle_save")&&!g.R(this.F.experiments,"hoffle_cfl_lock_format")||!this.F.C||this.u.lengthSeconds>g.Q(this.F.experiments,"hoffle_max_video_duration_secs")||0!==this.u.startSeconds||!this.u.offlineable||!this.u.ma||this.u.ma.isOtf||this.u.ma.isLive||this.u.ma.rf||nw(this.u.videoId)||
(g.R(this.F.experiments,"hoffle_cfl_lock_format")?(this.sb("dlac","cfl"),this.u.FC=!0):(sF(this.u,!0),tma(this.u,new KD(this.u.videoId,2,{Cn:!0,Fs:!0,videoDuration:this.u.lengthSeconds})),this.sb("dlac","w"))),this.D?g.lr(Error("Duplicated Loader")):$va(this)),lW(this),mW(this,"html5_nonblocking_media_capabilities"))){var c=Date.now();(a=sta(this.da,a))&&a.then(function(){b.sb("mclatency",(Date.now()-c).toString())})}};
g.k.yO=function(a){this.la()||(a=VA(a),this.ba.isBackground()?(tW(this,"vp_none_avail"),this.ob=null,this.ka.reset()):(this.ka.u=!0,this.Td(a.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",g.UA(a.details))))};
g.k.sendAbandonmentPing=function(){g.T(this.getPlayerState(),128)||(this.V("internalAbandon"),this.qy(!0),eV(this),g.tp(this.Ja))};
g.k.Td=function(a,b,c,d,e){var f,h;g.Tb(kCa,b)?f=b:b?h=b:f="GENERIC_WITHOUT_LINK";c=(c||"")+(";a6s."+parseInt(g.L("DCLKSTAT",0),10));a={errorCode:a,errorDetail:d,errorMessage:h||g.HX[f]||"",Vv:f,Yh:e||"",uF:c};jV(this,"dataloaderror");YV(this,cL(this.C,128,a));g.tp(this.Ja);bV(this);this.Ch()};
g.k.getPlayerState=function(){return this.C};
g.k.getPlayerType=function(){return this.Lb};
g.k.getPreferredQuality=function(){if(this.X){var a=this.X;a=a.videoData.Du.compose(a.videoData.uA);a=DC(a)}else a="auto";return a};
g.k.isGapless=function(){return!!this.B&&this.B.isView()};
g.k.playVideo=function(){var a=this,b,c,d,e;return Ba(new za(new wa(function(f){if(1==f.u){var h;(h=g.T(a.C,128))||(h=a.N,h.I?(h.I=!1,gT(h),h=!0):h=!1);if(h)return f["return"]();a.B&&(h=a.I,h.B&&Cta(h.B),h.qoe&&Kta(h.qoe));ZV(a);g.T(a.C,64)&&YV(a,dL(a.C,8));return a.Aa.isFinished()&&a.B?a.X||!a.ob?f.Jd(2):g.ra(f,a.ob,2):f["return"]()}if(!a.u.Ia)return b=a.u.isLivePlayback&&!g.yB(a.F.D,!0)?"html5.unsupportedlive":uF(a.u)?"fmt.unplayable":"fmt.noneavailable",g.lr(Error("selectableFormats")),a.Td(b,
"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),f["return"]();if(a.ba.B&&a.u.Ia.wc())return hV(a),f["return"]();if(a.u.isLivePlayback){c=a.getCurrentTime()<a.uc()-15;d=g.GF(a.u)&&g.T(a.C,4);e=!mW(a,"html5_dompaused_unpause_killswitch")&&g.T(a.C,1024);e||!c&&!d||(d?(a.seekTo(Infinity),aW(a,"unpauseLiveOnly")):(a.seekTo(a.uc()),aW(a,"outOfWindow")));!a.isAtLiveHead(void 0,!0)&&iU(a.K)&&(a.seekTo(Infinity),aW(a,"peggedToLive"));if(h=g.T(a.C,256)&&a.u.vg)h=a.K,h=h.ba&&!isFinite(h.C);if(h)return YV(a,
fL(a.C,8,4)),f["return"]()}g.T(a.C,4)&&g.T(a.C,16)&&YV(a,fL(a.C,9,4));if(iV(a))return!mW(a,"html5_ignore_airplay_events_on_new_video_killswitch")&&a.B&&a.B.Ll()&&(a.td=(0,g.N)()),a.F.Qr?g.Fo((0,g.z)(a.Sx,a),0):a.Sx(),f["return"]();a.Sx();f.u=0})))};
g.k.LH=function(){var a=this.u;a.ma.dispose();a.ma=void 0;kF(a,a.adaptiveFormats);aV(this,!0);this.V("localmediachange",new KD(this.u.videoId,4,{Cn:!0}))};
g.k.BQ=function(){hW(this);var a=this.u.ma&&Jz(this.u.ma),b=this.B&&this.B.isView();a||b?(this.D&&(a=this.D,a.u.ea=!1,a.C&&gE(a)),aV(this)):(YV(this,dL(this.C,16)),iV(this),g.hL(this.C)&&this.playVideo())};
g.k.BN=function(){cV(this);bV(this);qW(this);this.playVideo()};
g.k.nl=function(){if(!this.X)return[];var a=nta(this.da,this.X,jW(this,!0));return this.X.Ia.nl(a)};
g.k.getUserPlaybackQualityPreference=function(){return this.u.Ia&&!this.u.Ia.wc()?DC(this.u.Du):kx()};
g.k.getAvailableAudioTracks=function(){return this.u.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){return this.u.getAudioTrack()};
g.k.QP=function(){var a=this.I;a.provider.u.ac||3===a.provider.getVisibilityState()||(a.provider.u.ac=!0);g.OT(a);if(a.B){var b=a.B;b.F&&0>b.u&&3!==b.provider.getVisibilityState()&&Cta(b)}a.qoe&&(a=a.qoe,a.ka&&0>a.B&&a.provider.u.ac&&Kta(a));g.Q(this.F.experiments,"html5_background_quality_cap")&&this.D&&ZU(this);this.F.Qq&&!this.u.backgroundable&&this.B&&!this.ba.B&&(this.ba.isBackground()&&this.B.vt()?(this.sb("bgmobile","suspend"),this.Ch(!0)):this.ba.isBackground()||iV(this)&&this.sb("bgmobile",
"resume"))};
g.k.oO=function(a,b){this.rE(new Jx(b,a))};
g.k.rE=function(a){this.yb.set(a.initData,a);this.P&&(Wsa(this.P,a),mW(this,"html5_eme_loader_sync")||this.yb.remove(a.initData))};
g.k.lE=function(){g.ar&&this.Ga&&this.Ga.u&&this.P&&(Ysa(this.P,this.Ga.u),this.Ga=null)};
g.k.JP=function(a){this.u.CG=BC("auto",a,!1,"u");ZU(this)};
g.k.TN=function(a){var b=this;cW(this,a.reason,a.video.info,a.audio.info);mW(this,"html5_probe_media_capabilities")&&mW(this,"html5_dynamic_av1_hybrid_threshold")&&a.video.info&&Vv(a.video.info)&&tta(this.da,this.X).then(function(c){c&&b.D&&iD(b.D.K,b.F)})};
g.k.RN=function(a){Vva(this,a.reason,a.audio.info)};
g.k.UN=function(a){this.V("localmediachange",a)};
g.k.SM=function(){this.D&&iD(this.D.K,this.F)};
g.k.handleError=function(a){this.N.handleError(a,g.T(this.C,4)||g.T(this.C,512))};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.T(this.C,64)||g.T(this.C,2))&&!a)if(g.T(this.C,8))YV(this,fL(this.C,4,8));else return;g.T(this.C,128)||(a?YV(this,dL(this.C,256)):YV(this,fL(this.C,4,8)));this.B&&this.B.pause();g.GF(this.u)&&this.D&&iW(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.D&&(iW(this,!1),RD(this.D))};
g.k.Ch=function(a){a=void 0===a?!1:a;this.B&&(this.B.stopVideo(),cV(this),bV(this),g.T(this.C,128)||(a?YV(this,eL(eL(dL(this.C,4),8),16)):YV(this,cL(this.C))),this.u.videoId&&this.F.K.remove(this.u.videoId))};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;g.T(this.C,2)&&iV(this);if(this.ac){var c=this.ac;isFinite(a)&&a<hU(c.u.K)?c.isLiveNow=!1:c.isLiveNow=!0}this.K.seekTo(a,b)};
g.k.getCurrentTime=function(){return this.K.getCurrentTime()};
g.k.getPlaylistSequenceForTime=function(a){return this.u.getPlaylistSequenceForTime(a-this.lc())};
g.k.ue=function(){if(this.u.ma)return this.u.ma.ue(this.getCurrentTime()-this.lc());if((!mW(this,"html5_disable_limit_ingestion_tvos")||ck())&&this.B){var a=this.B.getStartDate();if(a&&(a=a.getTime(),!isNaN(a)))return a/1E3+this.getCurrentTime()}return NaN};
g.k.getDuration=function(){return this.u.lengthSeconds?this.u.lengthSeconds+this.lc():oW(this)?oW(this):0};
g.k.RI=function(){var a=new qla;if(this.D){var b=this.F.schedule;a.B=b.K;a.D=b.X;a.bandwidthEstimate=hz(b);a.u="d."+fz(b).toFixed(2)+";st."+(1E9*(b.C.u()||0)).toFixed(2)+";bw."+b.u.u().toFixed(0)+";abw."+b.N.u().toFixed(0)+";v50."+dz(b.D,.5).toFixed(2)+";v92."+dz(b.D,.92).toFixed(2)+";v96."+dz(b.D,.96).toFixed(2)+";v98."+dz(b.D,.98).toFixed(2);b=this.D;if(b.C&&!qB(b.C)&&(a.Yk=Dy(b.B,b.I),a.C=Dy(b.D,b.I),b.u.za)){var c=Cy(b.B),d=Cy(b.D),e=gy(b.C.B.Ue(),"_",5),f=gy(b.C.u.Ue(),"_",5);a.u=(a.u||"")+(";lvq."+
c+";laq."+d+";lvb."+e+";lab."+f)}a.bandwidthEstimate=mz(b.X)}else this.B&&(a.Yk=zS(this.B));a.F=this.AB();return a};
g.k.jb=function(a){var b={};if(void 0===a?0:a){g.Xa(b,this.I.jb());this.B&&(g.Xa(b,this.B.jb()),g.Xa(b,this.tw()));this.D&&g.Xa(b,this.D.jb());this.P&&(b.drm=this.P.jb());b.state=this.C.state.toString(16);g.T(this.C,128)&&(b.debug_error=this.C.getData());$V(this)&&(b.prerolls=this.ha.join(","));this.u.kj&&(b.ismb=this.u.kj);"UNKNOWN"!=this.u.latencyClass&&(b.latency_class=this.u.latencyClass);this.u.isLowLatencyLiveStream&&(b.lowlatency="1");this.u.isLivePlayback&&(this.u.ma&&Yz(this.u.ma)&&(b.segduration=
Yz(this.u.ma)),a=this.K,b.lat=a.W?kD(a.W.D):0,b.liveutcstart=this.u.liveUtcStartSeconds);b.relative_loudness=this.u.Yp.toFixed(3);if(a=g.bW(this))b.optimal_format=a.Ka().qualityLabel;b.user_qual=kx()}b.debug_videoId=this.u.videoId;return b};
g.k.addCueRange=function(a){var b=this.ea;a=[a];b.B();BD(b.u,a);b.D=NaN;b.B();this.u.enableServerStitchedDai&&this.D&&Qla(this.D)};
g.k.removeCueRange=function(a){DD(this.ea,[a])};
g.k.MP=function(){jV(this)};
g.k.togglePictureInPicture=function(){this.B&&this.B.togglePictureInPicture()};
g.k.OP=function(a){this.Rh.stop();var b=a.target.ze();if(this.B&&this.B.ze()&&this.B.ze()==b){jwa(this,a.type);switch(a.type){case "error":var c=BS(this.B)||"";if("capability.changed"==c){hV(this);return}if(0<this.B.qh()&&hT(this.N,c,{msg:this.B.mn()}))return;if(this.ba.isBackground()&&4==this.B.qh()){this.Ch();tW(this,"unplayable");return}break;case "durationchange":c=this.B.getDuration();(!this.W||isFinite(c)&&0<c)&&1!=c&&this.u.lengthSeconds!=c&&(this.u.lengthSeconds=c,jV(this));break;case "ratechange":this.D&&
this.D.setPlaybackRate(this.B.getPlaybackRate());c=this.ea;c.started=!0;c.B();var d=this.I;c=this.getPlaybackRate();if(d.qoe){d=d.qoe;var e=g.mT(d.provider);c&&c!==d.Ja&&(g.pT(d,e,"rate",[c]),d.Ja=c);d.reportStats(e)}break;case "loadedmetadata":kwa(this),this.V("onLoadedMetadata");case "loadstart":window.clearInterval(this.wd);this.Cv()||(this.wd=Go((0,g.z)(this.Cv,this),100));break;case "progress":case "suspend":sW(this);this.V("onLoadProgress",this,this.B?g.GF(this.u)?1:HF(this.u)?this.isAtLiveHead()||
iU(this.K)?1:Kua(this.K):AS(this.B):0);break;case "playing":if(mW(this,"html5_force_manifestless_seeking_state")&&mF(this.u)&&this.D&&this.D.N.C){this.sb("mflForceSeek","reason.play");return}this.Z.tick("plev");ewa(this);MA("plev","video_to_ad");this.Ph&&(this.Ph=!1,this.isAtLiveHead()||(this.seekTo(Infinity),aW(this,"onPlaying")));break;case "timeupdate":ewa(this);c=this.B&&!this.B.getCurrentTime();d=this.B&&0==this.B.jg();if(c&&(!this.xc||d))return;this.xc=this.xc||!!this.B.getCurrentTime();this.Cv();
sW(this);if(!this.B||this.B.ze()!=b)return;this.V("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.B.ul().length&&0==this.B.kf().length&&0<this.B.getCurrentTime()&&5>this.B.getCurrentTime()&&this.D)return;break;case "resize":kwa(this);this.u.La&&"auto"==this.u.La.Ka().quality&&this.V("internalvideoformatchange",this.u,!1);break;case "pause":if(this.Ji&&g.T(this.C,8)&&!g.T(this.C,1024)&&0==this.getCurrentTime()&&g.sC){tW(this,"safari_autoplay_disabled");return}}if(this.B&&
this.B.ze()==b){this.V("videoelementevent",a);b=this.C;if(!g.T(b,128)){c=this.Ub;e=this.B;var f=this.F.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.ki()||1<h&&1.1>Math.abs(h-e.getDuration());h="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.T(b,4)&&!QT(c,h);if("pause"===a.type&&e.ki()||l&&h)0<e.Wr()&&e.ze()&&(d=14);else switch(a.type){case "error":BS(e)&&(d|=128);break;case "pause":g.T(b,256)?(d^=256)||(d=
64):g.T(b,32)||g.T(b,2)||g.T(b,4)||(d=4,g.T(b,1)&&g.T(b,8)&&(d|=1));break;case "playing":d=(d|8)&-3077;f&&g.R(f,"html5_playing_clears_unstarted_killswitch")||(d&=-65);QT(c,e.getCurrentTime())&&(d&=-2);g.T(b,1)&&RT(c,e.getCurrentTime(),(0,g.N)(),zS(e))&&(d|=1);break;case "seeking":d|=16;g.T(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.T(b,2)||(d|=1);RT(c,e.getCurrentTime(),(0,g.N)(),zS(e));break;case "timeupdate":f=g.T(b,16),l=g.T(b,4),(g.T(b,8)||f)&&!l&&QT(c,e.getCurrentTime())&&
(d=8),RT(c,e.getCurrentTime(),(0,g.N)(),zS(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,(e=BS(d))?(f="GENERIC_WITHOUT_LINK",l=d.jb(),l.mediaElem="1",/AUDIO_RENDERER/.test(d.mn())&&(f="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.HX[f]||"",Vv:f,uF:g.UA(l)}):d=null);b=cL(b,c,d)}!g.T(this.C,1)&&g.T(b,1)&&vW(this,"evt_"+a.type);YV(this,b)}}};
g.k.AP=function(){this.sb("misstimeupdate","");dwa(this)&&!g.T(this.C,2)&&YU(this,!0,!1)};
g.k.FM=function(a){a="available"==a.B.availability;a!=this.Ef&&(this.Ef=a,this.V("airplayavailabilitychange"))};
g.k.GM=function(){var a=(0,g.N)();if(isNaN(this.td)||!(2E3>a-this.td)){var b=this.B.Ll();this.td=a;b!=this.ba.B&&(a=this.ba,a.B!==b&&(a.B=b,a.Eg()),dV(this));this.V("airplayactivechange")}};
g.k.Cv=function(){var a=this.B;a&&this.xc&&!this.u.vg&&!JA("vfp",this.Z.timerName)&&2<=a.jg()&&!a.ki()&&0<ky(a.kf())&&this.Z.tick("vfp");return(a=this.B)&&!this.u.vg&&0<a.getDuration()&&(!JA("pbp",this.Z.timerName)&&a.xk()&&2<=a.jg()&&0<ky(a.kf())&&this.Z.tick("pbp"),a=a.getCurrentTime(),QT(this.Ub,a))?(gwa(this),!0):!1};
g.k.lJ=function(){if(this.B&&!g.T(this.C,128)){this.u.Cj&&g.Q(this.F.experiments,"html5_log_rebuffer_events")&&jwa(this,"pfx");var a=this.getCurrentTime(),b=zS(this.B),c=g.T(this.C,8),d=QT(this.Ub,a),e=RT(this.Ub,a,(0,g.N)(),b);c&&d?YV(this,eL(this.C,1)):c&&e?(c=this.getDuration(),d=this.u.isLivePlayback,(mW(this,"html5_set_ended_in_pfx_live")||!d)&&c&&1.1>Math.abs(c-a)?(this.sb("setended","ct."+a+";bh."+b+";dur."+c+";live."+ +d),d&&mW(this,"html5_set_ended_in_pfx_live_cfl")||(this.B.rl()?this.seekTo(0):
YU(this))):(g.iL(this.C)||vW(this,"progress_fix"),YV(this,dL(this.C,1)))):(c&&!d&&!e&&0<a&&(c=(Date.now()-this.Oi)/1E3,d=this.getDuration().toFixed(2),a>d-1&&this.sb("misspg","t:"+a.toFixed(2)+";d:"+d+";r:"+c.toFixed(2)+";bh:"+b.toFixed(2))),g.T(this.C,4)&&g.iL(this.C)&&5<zS(this.B)&&YV(this,eL(this.C,1)));sW(this)}};
g.k.DI=function(){return this.D?mz(this.D.X):hz(this.F.schedule)};
g.k.MI=function(){return this.F.schedule.K};
g.k.AB=function(){return this.isAtLiveHead()&&this.C.Gb()?this.EB():NaN};
g.k.EB=function(){if(!this.u.isLivePlayback||!this.u.ma||!this.D)return NaN;var a=mF(this.u)?this.D.ob.u()||0:this.u.ma.N;return g.A()/1E3-this.ue()-a};
g.k.dJ=function(){this.u.isLivePlayback||this.V("connectionissue")};
g.k.Sx=function(){var a=this;this.B&&(this.Lc=this.B.playVideo());if(this.Lc){var b=this.Lc;b.then(void 0,function(c){if(!(g.T(a.C,4)||g.T(a.C,256)||a.Lc!=b||c&&"AbortError"==c.name&&c.message&&c.message.includes("load"))){var d="promise";c&&c.name&&(d+=";m."+c.name);try{YV(a,dL(a.C,2048))}catch(e){}tW(a,d);a.Ji=!0}})}};
g.k.JN=function(a,b,c,d){a:{var e=this.N;d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"===a&&this.P&&1<this.P.C.keys.length&&96>e.K)a="drm.sessionlimitexhausted",b=!1;else if(e.videoData.ca("html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"===a&&2>e.N&&(e.N++,e.V("removedrmplaybackmanager"),1<e.videoData.Hn.length&&(e.videoData.Vc=e.videoData.Hn[1]),hT(e,a,{detail:c})))break a;if(b)if(e.videoData.La&&Ov(e.videoData.La.Ka()))jta(e,a);else{if(e.V("playererror",a,d,c),e.videoData.ca("html5_exile_on_drm_fatal")&&
bta(e,{detail:c}))break a}else fT(e,a,{detail:c});"drm.sessionlimitexhausted"===a&&(iT(e,"retrydrm","s"),e.K++,e.V("reattachvideosourcerequired"))}};
g.k.LN=function(){var a=this,b=g.Q(this.F.experiments,"html5_license_constraint_delay"),c=nk();b&&c?(b=new g.H(function(){lW(a);jV(a)},b),g.C(this,b),b.start()):(lW(this),jV(this))};
g.k.KN=function(){var a=this;g.ar&&(this.Ga=Tga(this.u.ma))&&(this.Ga.u?g.um(function(){a.lE()}):Pla(this.D,this.Ga))};
g.k.FN=function(a){this.V("heartbeatparams",a)};
g.k.HN=function(a){this.sb("keystatuses",Hsa(a));var b="auto";this.u.La&&(b=this.u.La.Ka().quality);!Isa(a,b,!1)||Jsa(a,"AUDIO")&&Jsa(a,"SD")?this.u.La&&Ov(this.u.La.Ka())&&(!a.W||Isa(a,b,!0))&&jta(this.N):this.Oh?this.V("drmoutputrestricted"):(this.Oh=!0,this.sb("retrydrm","o"),kW(this),Pva(this))};
g.k.PN=function(){if(!this.u.vg&&this.B&&!this.ba.isBackground()){var a="0";0<this.B.jg()&&5<=zS(this.B)&&this.u.Ia&&this.u.Ia.wc()&&(YV(this,dL(this.C,1)),vW(this,"load_soft_timeout"),this.V("playbackstalledatstart"),a="1");hwa(this);if(mW(this,"html5_new_video_qoe_restart_info_killswitch"))a={restartmsg:a},$V(this)&&(a.prerolls=this.ha.join(",")),this.D&&g.Xa(a,this.D.jb()),this.B&&g.Xa(a,this.B.jb());else{var b=this.u.Ia;a={restartmsg:a,mfmt:bF(this.u)?"0":"1",mdrm:b&&b.videoInfos&&b.videoInfos.length&&
b.videoInfos[0].zd&&!this.P?"1":"0",mfmtinfo:this.u.La?"0":"1",prerolls:$V(this)?this.ha.join(","):"0"};this.P&&(a.drmp=$sa(this.P));b=[this.D,this.B].filter(function(d){return!!d});
b=g.q(b);for(var c=b.next();!c.done;c=b.next())g.Xa(a,c.value.jb())}this.I.onError("qoe.start15s",g.UA(a));this.V("loadsofttimeout")}};
g.k.sP=function(){g.T(this.C,128)||this.W&&pB(this.W)||(this.I.onError("qoe.restart",g.UA({detail:"bufferattach"})),this.Nj++,aV(this))};
g.k.qy=function(a){var b=this;a=void 0===a?!1:a;if(!this.Za){JA("att_s","player_att")||JA("att_s","player_att")||CA("att_s",void 0,"player_att");var c=new $ra(this.u,mW(this,"web_player_inline_botguard"));if("c1a"in c.u&&!NS(c)&&(MA("att_wb","player_att"),2==this.Rb&&.01>Math.random()&&g.lr(Error("Botguard not available after 2 attempts")),!a&&5>this.Rb)){this.Bf.xb();this.Rb++;return}if("c1b"in c.u){var d=lua(this.I);d&&csa(c).then(function(e){e&&!b.Za&&d?(MA("att_f","player_att"),d(e),b.Za=!0):
MA("att_e","player_att")},function(){MA("att_e","player_att")})}else(a=asa(c))?(MA("att_f","player_att"),kua(this.I,a),this.Za=!0):MA("att_e","player_att")}};
g.k.uc=function(){return this.K.uc()};
g.k.lc=function(){return this.K?this.K.lc():0};
g.k.getStreamTimeOffset=function(){return this.K?this.K.getStreamTimeOffset():0};
g.k.setPlaybackRate=function(a){var b=this.u.Ia&&this.u.Ia.videoInfos&&32<this.u.Ia.videoInfos[0].Ka().fps&&g.$B(this.F);this.ud!=a&&b&&(this.da.setPlaybackRate(a),kW(this));this.ud=a;this.B&&this.B.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.ud};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.u.La&&(a=this.u.La.Ka().quality,"auto"==a&&this.B)){var b=oI(this);b&&0<b.videoHeight&&(a=Kv(b.videoWidth,b.videoHeight))}return a};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.I;c.u?(c=IT(c.u,"engage"),c.K=a,c.send(b)):b&&b()};
g.k.isAtLiveHead=function(a,b){return this.u.isLivePlayback&&(this.Df||(void 0===b?0:b))?this.K.isAtLiveHead(a):!1};
g.k.tw=function(){return this.B?this.B.getVideoPlaybackQuality():{}};
g.k.setLoop=function(a){this.Qg=a;this.B&&this.B.setLoop(a)};
g.k.rl=function(){return this.B?this.B.rl():this.Qg};
g.k.RJ=function(a){var b=mW(this,"html5_unrewrite_timestamps");this.sb("timestamp","enabled."+b+";t."+a.toString())};
g.k.sb=function(a,b,c){var d=this.I;d.qoe&&rT(d.qoe,a,b,void 0===c?!1:c)};
g.k.VC=function(a,b){this.I.onError(a,g.UA(b))};
g.k.FF=function(){if(g.hL(this.C)){if(ex){var a="";for(var b in jx)if(jx.hasOwnProperty(b)){var c=jx[b];if(0===c.u)c=null;else{for(var d=c.u.toString()+"."+Math.round(c.C).toString(),e=0;e<bx.length;++e)if(0<c.B[e])d+="."+bx[e].toString()+"_"+Math.round(c.B[e]).toString();else break;c=d}c&&(a+=b+"."+c+";")}jx=new dx}else a="";a&&(b=this.I,b.qoe&&rT(b.qoe,"profile",a,void 0))}this.Qe.start()};g.Ia("yt.pubsub.publish",g.Po,void 0);g.u(yW,uU);yW.prototype.B=function(){return IBa};
yW.prototype.C=function(a){return a.feedbackEndpoint};
yW.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};g.u(zW,uU);zW.prototype.B=function(){return HBa};
zW.prototype.C=function(a){return a.webPlayerShareEntityServiceEndpoint};
zW.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};Kq.prototype.logEvent=function(a,b){switch(a){case "QUOTA_EXCEEDED":vwa(this);break;case "TRANSACTION_ENDED":.02>=Math.random()&&this.u("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":var c=Object.assign(Object.assign({},b),{hasWindowUnloaded:this.B});this.u("idbTransactionAborted",c)}};var X1={},tCa=(X1["api.invalidparam"]=2,X1.auth=150,X1["drm.auth"]=150,X1["heartbeat.net"]=150,X1["heartbeat.servererror"]=150,X1["heartbeat.stop"]=150,X1["html5.unsupportedads"]=5,X1["fmt.noneavailable"]=5,X1["fmt.decode"]=5,X1["fmt.unplayable"]=5,X1["html5.missingapi"]=5,X1["html5.unsupportedlive"]=5,X1["drm.unavailable"]=5,X1);DW.prototype.getLocalMediaInfoById=function(a){return g.Ue(this,function c(){return g.Aa(c,function(d){return d["return"](Ofa(a))})})};
DW.prototype.getAllLocalMediaInfo=function(){return g.Ue(this,function b(){return g.Aa(b,function(c){return c["return"](Pfa())})})};
DW.prototype.u=function(a){if(a.Cn&&2===a.status)mw(a.videoId,2);else if(4===a.status){var b=a.videoId;mw(b,4);tw(b,!1)}a.Fs&&Hfa(a.videoId,a.videoDuration,g.Q(this.api.T().experiments,"hoffle_cache_size_secs"));g.R(this.api.T().experiments,"hoffle_api")&&this.api.va("localmediachange",{videoId:a.videoId,status:a.status,isBackground:a.isBackground});CW(this)};g.u(GW,g.B);g.k=GW.prototype;
g.k.handleExternalCall=function(a,b,c){var d=this.F[a],e=this.K[a],f=d;if(e)if(c&&bv(c,PBa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.T();d.Lj&&!this.W.has(a)&&(this.W.add(a),g.Lq("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.lr(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.F[a]?!0:!!(this.K[a]&&b&&bv(b,PBa))};
g.k.getBandwidthEstimate=function(){return hz(this.app.T().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.Z(this.app);b&&(a={gpu:(0,g.wT)(),d:a},b.handleError(new TA("feedback",!1,a)))};
g.k.getApiInterface=function(){return this.N.slice()};
g.k.getInternalApiInterface=function(){return g.Qb(this.B)};
g.k.RH=function(a,b){if("string"===typeof b){var c=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];g.Na(b).apply(window,e)};
this.I[b]=c}else c=b;this.app.ra.subscribe(a,c)};
g.k.wQ=function(a,b){if("string"===typeof b){var c=this.I[b],d=this.I;b in d&&delete d[b];b=c}this.app.ra.unsubscribe(a,b)};
g.k.getPlayerState=function(){return kAa(this.app)};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e)};
g.k.seekTo=function(a,b,c){this.u&&K0(this.app,!0,this.playerType);P0(this.app,a,b,c,this.playerType)};
g.k.seekToStreamTime=function(a,b,c){this.u&&K0(this.app,!0,this.playerType);var d=this.app,e=this.playerType;b=void 0===b?!0:b;var f=void 0===f?!1:f;var h=g.Z(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.lc()&&(l=h.getStreamTimeOffset());P0(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.Z(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.Z(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&P0(this.app,Infinity,a,b,this.playerType)};
g.k.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.k.getMediaReferenceTime=function(){var a=this.app.ue(this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.k.getDuration=function(){return this.app.getDuration(this.playerType)};
g.k.getVolume=function(){return this.app.Z.volume};
g.k.setVolume=function(a){Dwa(this,a)};
g.k.isMuted=function(){return this.app.Z.muted};
g.k.mute=function(){Ewa(this)};
g.k.unMute=function(){Fwa(this)};
g.k.playVideo=function(){this.u&&K0(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Jc()){var b=sX(this.app.D);if(!Nra(b)){b.wi("control_play");return}}3===a?g.RW(this.app.D).wi("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Jc()){var b=sX(this.app.D);if(!Nra(b)){b.wi("control_pause");return}}3===a?g.RW(this.app.D).wi("control_pause"):this.app.pauseVideo(a)};
g.k.stopVideo=function(){var a=this.app;a.u.za&&a.B.V("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getPlaybackRate=function(){return g.Z(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.k.getAvailablePlaybackRates=function(){var a=this.app.T();if(a.Rb){var b=a.B||a.ca("web_player_admin_origin_killswitch")?a.Qe[0]:window.location.origin;a="https://admin.youtube.com"===b||"https://viacon.corp.google.com"===b||a.Nj?bCa:aCa}else a=[1];return a};
g.k.getPlaybackQuality=function(a){return(a=g.Z(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.Z(this.app,this.playerType);return a?(a=g.Pc(a.nl(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.k.getVideoBytesTotal=function(){return 1};
g.k.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.k.getVideoStartBytes=function(){return 0};
g.k.setSize=function(){this.app.template.resize()};
g.k.channelSubscribed=function(){this.va("SUBSCRIBE",s0(this.app).Ng)};
g.k.channelUnsubscribed=function(){this.va("UNSUBSCRIBE",s0(this.app).Ng)};
g.k.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.Z(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.Z(this.app).getPlaylistSequenceForTime(a)};
g.k.forceFrescaUpdate=function(){var a=ZW(this.app.D);a&&a.zI()};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.updateFullerscreenEduButtonVisibility=function(a){var b=HAa(this.app);b&&(b.B=a,b.na())};
g.k.updateFullerscreenEduButtonSubtleModeState=function(a){var b=HAa(this.app);b&&(g.J(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.D&&(b.element.setAttribute("title","Scroll for details"),g.dg(b,g.cY(b.F.Jb(),b.element)),b.D=!0))};
g.k.confirmYpcRental=function(){var a=g.Z(this.app,this.playerType);a&&eW(a,"ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.T().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.T().Mj=a};
g.k.setLivingRoomAppMode=function(a){this.app.T().livingRoomAppMode=BB("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,cC)};
g.k.setEnablePrivacyFilter=function(a){this.app.T().enablePrivacyFilter=void 0===a?!1:a};
g.k.isPictureInPictureAllowed=function(){return s0(this.app).ev};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.loadModule=function(a){"captions"===a&&(a=g.nX(this.app.D))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.nX(this.app.D))&&a.loaded&&a.kR()};
g.k.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(AW(a,b,c),this.playerType),this.u&&K0(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(AW(a,b,c),this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=wwa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.u&&K0(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=wwa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.T();if(a.P)return"";var b=s0(this.app),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.k.getDebugText=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.T();return a.P?"":a.getVideoEmbedCode(s0(this.app).videoId,this.app.template.getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return yAa(this.app,a,b,c)};
g.k.removeCueRange=function(a){a:{for(var b=this.app,c=ED(b.C.ea)||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()===a){b.C.removeCueRange(e);bX(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.u&&K0(this.app,!0,this.playerType)};
g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.k.nextVideo=function(){this.app.nextVideo();this.u&&K0(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.u&&K0(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.u&&K0(this.app,!0,this.playerType)};
g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.k.OI=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.getLength();c++){var d=a.Ka(c);d&&b.push(d.videoId)}return b};
g.k.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
g.k.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.D;return"captions"===a?(a=g.nX(d))&&a.ee(b,c):null};
g.k.getOption=function(a,b,c){var d=g.Z(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.T().B?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.D;if("captions"===a)return(b=g.nX(b))&&b.getOptions();if(!a)return a=[],g.nX(b)&&a.push("captions"),a};
g.k.gs=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.Z(this.app,a)){a=a.getVideoData();if(a.isPrivate)return{};b.video_id=a.videoId;b.author=a.author;b.title=a.title;if(a.La&&a.La.video){b.video_quality=a.La.video.quality;a=a.La.video;var c=[];32<a.fps&&c.push("hfr");Ov(a)&&c.push("hdr");"bt2020"===a.primaries&&c.push("wcg");b.video_quality_features=c}}if(a=this.getPlaylistId())b.list=a;return b};
g.k.showVideoInfo=function(){bAa(this.app,!0)};
g.k.hideVideoInfo=function(){bAa(this.app,!1)};
g.k.isVideoInfoVisible=function(){return this.app.isVideoInfoVisible()};
g.k.getAdState=function(){return this.app.getAdState()};
g.k.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.Z(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.T(a,128)&&5===tCa[b.errorCode])};
g.k.getSphericalProperties=function(){var a=g.UW(this.app.D);return a?2===this.playerType?{}:a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.UW(this.app.D);b&&b.setSphericalProperties(a,!0)}};
g.k.supportsGaplessAudio=function(){return this.app.T().supportsGaplessAudio()};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.destroy=function(){this.app.dispose()};
g.k.sendAbandonmentPing=function(){var a=g.Z(this.app);a&&a.sendAbandonmentPing()};
g.k.deleteLocalMediaById=function(a){return yw(a)};
g.k.deleteAllLocalMedia=function(){return pw()};
g.k.cancelPendingLocalMediaById=function(a){return this.app.cancelPendingLocalMediaById(a)};
g.k.fetchLocalMedia=function(){this.app.fetchLocalMedia()};
g.k.fetchLocalMediaById=function(a){this.app.fetchLocalMediaById(a)};
g.k.getLocalPlayerResponse=function(a){return this.app.getLocalPlayerResponse(a)};
g.k.getLocalMediaInfoById=function(a){return this.app.getLocalMediaInfoById(a)};
g.k.getAllLocalMediaInfo=function(){return this.app.getAllLocalMediaInfo()};
g.k.setAutonavState=function(a){Q0(this.app,a)};
g.k.setAutonav=function(a){this.setAutonavState(a?2:1)};
g.k.setLoopRange=function(a){this.app.setLoopRange(a)};
g.k.getLoopRange=function(){return this.app.getLoopRange()};
g.k.setImmersivePreview=function(a){this.app.setImmersivePreview(a)};
g.k.setIsExternalPlaylist=function(a){this.app.setIsExternalPlaylist(a)};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.addInfoCardXml=function(a,b,c){this.app.T().K.add(a,{kr:b,Bq:c})};
g.k.updateLastActiveTime=function(){vp()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setAccountLinkState=function(a){this.app.setAccountLinkState(a)};
g.k.updateAccountLinkingConfig=function(a){this.app.updateAccountLinkingConfig(a)};
g.k.setUserEngagement=function(a){this.app.T().Ph!==a&&(this.app.T().Ph=a,(a=g.Z(this.app,this.playerType))&&lW(a))};
g.k.updateSubtitlesUserSettings=function(a){g.nX(this.app.D).yG(a,!0)};
g.k.setFauxFullscreen=function(a){Sr();q0(this.app,a?2:0)};
g.k.setUseFastSizingOnWatch=function(a){this.app.template.setUseFastSizingOnWatch(a)};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType();2===a&&this.app.Jc()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.Z(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.eg();if(!c)return null;c=c.levels[b];return c?(c=c.pl(a))?{column:c.column,columns:c.columns,height:c.Gt,row:c.row,rows:c.rows,url:c.url,width:c.Ht}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.eg();if(!c)return-1;c=c.levels[b];if(!c)return-1;a-=this.lc();return c.At(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.eg();return b?(b=b.levels[a])?{index:a,intervalMs:b.u,maxFrameIndex:b.Ap(),minFrameIndex:b.vx()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.eg();return a?a.levels.length:0};
g.k.uI=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.Z(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().Bo};
g.k.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&g.RW(this.app.D).wi("control_set_audio_track",a);var b=g.Z(this.app,this.playerType);if(b&&!b.la()&&!g.T(b.C,128))if(b.u.Ia.wc())b.D.setAudioTrack(a);else{a:{var c=b.u;if(c.Qc&&!Wv(c.Qc)||a==c.gq||!c.Bj||0>=c.Bj.length)c=!1;else{for(var d=g.q(c.Bj),e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof tE)){c=!1;break a}var f=a.u.getId();e.B&&(e.B.u=f,e.u=null)}c.gq=a;c=!0}}c&&(b.V("internalaudioformatchange",b.u,!0),iV(b)&&b.sb("hlsaudio",
a.id))}};
g.k.vI=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.Z(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.Z(this.app,this.playerType);return a&&a.getVideoData().La?DC(a.X?nta(a.da,a.X,jW(a)):WC):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.Z(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.nX(this.app.D);return a?a.UI():null};
g.k.resetSubtitlesUserSettings=function(){g.nX(this.app.D).CQ()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setGlobalCrop=function(a){this.app.template.setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.app.T();a=this.app.visibility.u&&!g.R(a.experiments,"kevlar_miniplayer_disable_vis");return this.app.getVisibilityState(this.Ll(),this.isFullscreen()||QB(this.app.T()),a,this.isInline(),this.app.visibility.pictureInPicture,this.app.visibility.C)};
g.k.isMutedByMutedAutoplay=function(){return this.app.Za};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.template.setInternalSize(new g.he(a,b))};
g.k.lc=function(){var a=g.Z(this.app,void 0);return a?a.lc():0};
g.k.Ll=function(){var a=g.Z(this.app,this.playerType);return!!a&&a.ba.B};
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.ca("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.Ka().videoId||(a.index=b.index)):v0(this.app,{list:a.list,index:a.index,playlist_length:d.length});eG(this.app.getPlaylist(),a);this.va("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.Z(this.app,this.playerType||1);c&&c.getVideoData().Oe(a,b)};
g.k.updateEnvironmentData=function(a){this.app.T().Oe(a,!1)};
g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.setCardsVisible=function(a,b,c){var d=g.WW(this.app.D);d&&d.vp()&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.V("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.template.getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.Z(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.setPlaybackQualityRange=function(a,b){var c=g.Z(this.app,this.playerType);if(c){var d=BC(a,b||a,!0,"m");c.u.Du=d;if(c.X){var e=c.da,f=c.X;if(f.Ia.wc()){var h=g.Lv[kx()];f=f.Ia.videoInfos[0].Ka().yc;if(!(h>f&&0!==f&&d.u===f)){g.Ws("yt-player-quality",DC(d),2592E3);if(e.ca("html5_exponential_memory_for_sticky")){d=e.u.Ub;h=1;var l=void 0===l?!1:l;$A(d,"sticky-lifetime");d.u["sticky-lifetime"]&&d.B["sticky-lifetime"]||(d.u["sticky-lifetime"]=0,d.B["sticky-lifetime"]=0);l&&.0625<aB(d,"sticky-lifetime")&&
(h=2*d.B["sticky-lifetime"]);d.u["sticky-lifetime"]+=1*Math.pow(2,d.C/h);d.B["sticky-lifetime"]=h;d.I.start()}e.ca("html5_perf_cap_override_sticky")&&g.Ys("yt-player-performance-cap")}}}lW(c)}};
g.k.onAdUxClicked=function(a,b){this.V("aduxclicked",a,b)};
g.k.V=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.app.T().C&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.ra.V.apply(this.app.ra,[a].concat(g.la(c)));this.app.da.V.apply(this.app.da,[a].concat(g.la(c)))};
g.k.va=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.app.ra.V.apply(this.app.ra,[a].concat(g.la(c)));this.app.da.V.apply(this.app.da,[a].concat(g.la(c)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.ca=function(a){return g.R(this.app.T().experiments,a)};
g.k.aa=function(){if(this.element){var a=this.element,b;for(b in this.B)this.B.hasOwnProperty(b)&&(a[b]=null);this.element=null}this.D={};this.I={};g.B.prototype.aa.call(this)};g.u(LW,GW);g.k=LW.prototype;g.k.addCueRange=function(a,b,c,d,e){return yAa(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return kAa(this.app,a)};
g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.seekBy=function(a,b,c){P0(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){P0(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.gs=function(a){a=void 0===a?this.playerType:a;var b=GW.prototype.gs.call(this,a)||{};if(a=g.Z(this.app,a))a=a.getVideoData(),b.backgroundable=a.backgroundable,b.eventId=a.eventId,b.cpn=a.clientPlaybackNonce,b.isLive=a.isLivePlayback,b.isWindowedLive=a.jp,b.isManifestless=mF(a),b.allowLiveDvr=a.allowLiveDvr,b.isListed=a.isListed,b.itct=a.Ag,b.ypcOriginalItct=a.DR,b.ypcPreview=a.ypcPreview,b.paidContentOverlayText=yF(a),b.paidContentOverlayDurationMs=zF(a),null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=
a.liveUtcStartSeconds),a.ma&&Kz(a.ma)&&(b.usingLocalMedia="true");return b};
g.k.getCurrentTime=function(a,b){return a?this.app.getCurrentTime(a,b):GW.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){return a?this.app.getDuration(a,b):GW.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return g.RW(this.app.D).getProgressState();var b=this.app.getVideoData(),c=(g.Z(this.app,a)||g.Z(this.app)).getPlayerType(),d=this.getCurrentTime(a);a=this.getDuration(a);var e=this.app.ue(c),f=this.app.isAtLiveHead(c);var h=this.app;var l=g.Z(h,void 0);if(l){l=r0(h,l);var m=NaN;l.B&&(m=Tra(l.B));m=0<=m?m:l.getCurrentTime();h=F0(h,m,l)}else h=0;l=this.app.uc(c);m=this.app;(c=g.Z(m,c))?(c=kX(m,c),c=F0(m,uW(c),c)):c=0;return{allowSeeking:this.app.je(),
clipEnd:b.clipEnd,clipStart:b.clipStart,current:d,displayedStart:-1,duration:a,ingestionTime:e,isAtLiveHead:f,loaded:h,seekableStart:l,seekableEnd:c}};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.getCurrentBroadcastId=function(){var a=ZW(this.app.D);return a?a.qB():null};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.JW(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,h)};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.JW(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,h)};
g.k.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.k.showControls=function(){var a=g.JW(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.JW(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.template.getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.toggleFullscreen=function(){var a=this.app.T();if(a.externalFullscreen)return this.isFullscreen()?Ur(window.document.documentElement):Rr(window.document.documentElement);if(Sr()||this.ca("embeds_enable_mobile_custom_controls"))return this.isFullscreen()?Ur(Tr()):"3"!==a.controlsType&&Sr()?Rr(this.app.template.element):(a=this.app.F.Ma())?Rr(a):Promise.reject(Error("Media element missing"));this.va("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=sX(this.app.D);a&&a.created&&a.destroy();(a=g.Z(this.app))&&a.stopVideo();(a=this.app.D.Ec.get("endscreen"))&&a.GJ()&&g.QW(this.app.B,!0)};
g.k.stopVideo=function(){var a=this.app.T();!g.R(a.experiments,"disable_new_pause_state3")&&iC(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():GW.prototype.stopVideo.call(this)};
g.k.getVideoStats=function(){return g.Z(this.app,this.playerType).jb(!0)};
g.k.toggleSubtitles=function(){var a=g.nX(this.app.D);a&&a.bR()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.UW(this.app.D);b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.UW(this.app.D);return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){Dwa(this,a,b)};
g.k.mute=function(a){Ewa(this,a)};
g.k.unMute=function(a){Fwa(this,a)};
g.k.mutedAutoplay=function(){this.ca("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.WW(this.app.D);b&&!b.loaded&&b.load()}GW.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.WW(this.app.D);b&&b.loaded&&b.unload()}GW.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.D;switch(a){case "ad":return(a=sX(d))&&a.ee&&a.ee(b,c);case "kids":return(a=tX(d))&&a.ee(b,c);case "remote":return(a=g.RW(d))&&a.ee(b,c);case "unplugged":return(a=uX(d))&&a.ee(b,c);case "annotations_module":return(a=g.WW(d))&&a.ee(b,c);case "creatorendscreen":return(a=vX(d))&&a.ee(b,c)}return GW.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.D;switch(a){case "ad":return(b=sX(b))&&b.getOptions&&b.getOptions();case "remote":return(b=g.RW(b))&&b.getOptions();case "annotations_module":return(b=g.WW(b))&&b.getOptions();case "creatorendscreen":return(b=vX(b))&&b.getOptions();case "unplugged":return(b=uX(b))&&b.getOptions();case "kids":return(b=tX(b))&&b.getOptions()}if(!a){a=GW.prototype.getOptions.call(this);if(!a)return a;sX(b)&&a.push("ad");g.RW(b)&&a.push("remote");g.WW(b)&&a.push("annotations_module");
vX(b)&&a.push("creatorendscreen");uX(b)&&a.push("unplugged");tX(b)&&a.push("kids");return a}return GW.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.template.getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.JW(this);a&&a.Fj()};
g.k.setCenterCrop=function(a){this.app.template.setCenterCrop(a)};
var Hwa="BASE_URL BASE_YT_URL adformat allow_embed authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_cardio enable_faster_speeds enablecastapi end fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pipable playsinline plid post_live_playback postid ps public rel start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),
Iwa="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enable_cardio enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_fast_sizing_on_watch_default use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");g.u(MW,LW);g.k=MW.prototype;g.k.getRootNode=function(){return g.pG(this).element};
g.k.T=function(){return this.app.T()};
g.k.wl=function(){return this.P};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){return(a=g.Z(this.app,a))&&a.getVideoData()};
g.k.eg=function(a){return this.app.eg(a)};
g.k.isWidescreen=function(){return this.app.isWidescreen()};
g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){g.RW(this.app.D).wi("control_play");return}if(2===this.getPresentingPlayerType()){var b=sX(this.app.D),c;if(c=b){if(null===b.u)var d=0;else{var e=b.u;d=UH(e.u)&&!!e.B&&e.B.Hp()}c=d}if(c)return}}catch(f){g.kr(f)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.Z(this.app,a).stopVideo()};
g.k.Ch=function(a){g.Z(this.app,a).Ch()};
g.k.addEventListener=function(a,b){this.app.da.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.da.unsubscribe(a,b)};
g.k.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.k.nl=function(){var a={},b=g.Z(this.app).nl();b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));return this.app.getVideoUrl(d.videoId,f?void 0:this.getPlaylistId()||void 0,h,b,c)};
g.k.setCardsVisible=function(a,b,c){var d=g.WW(g.NW(this));d&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.V("changeProductsInVideoVisibility",a)};
g.k.ci=function(a,b){var c=g.JW(this);if(c)return c.ci(a,b);c=this.app.template.getPlayerSize();return new g.ig(0,0,c.width,c.height)};
g.k.je=function(){if(this.T().Z)return!1;var a=g.Z(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.GF(b)||2===this.getPresentingPlayerType()&&!this.app.Jc()||$V(a)&&3!==this.getPresentingPlayerType()?!1:!0};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.be(a,0,100);IW(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){IW(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){IW(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.k.getBandwidthEstimate=function(){return hz(this.T().schedule)};
g.k.Tb=function(){return g.Z(this.app)};
g.k.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.Jc=function(){return this.app.Jc()};
g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};g.qX={};g.u(mX,g.B);g.k=mX.prototype;g.k.jq=function(){return this.J.getVideoData().jq()};
g.k.Ay=function(){return this.J.getVideoData().Ay()};
g.k.NA=function(){var a=this.Ec.get("heartbeat");pX(this,"heartbeat",this.NA,!1,!0);!a&&this.Ec.has("heartbeat")&&this.J.V("offlineslatestatechange")};
g.k.RF=function(){var a=this.J.T();if(VB(a))return!1;var b=this.J.getVideoData();return b.pC||"3"===a.controlsType?!1:a.K.isEmpty()&&"annotation-editor"!==a.playerStyle&&"live-dashboard"!==a.playerStyle?!!b.rg||!!g.KF(b)||!!g.LF(b):!0};
g.k.Kv=function(){pX(this,"annotations_module",this.Kv,!0);var a=this.Ec.get("annotations_module");if(a)for(var b in this.C)if(this.C.hasOwnProperty(b)){var c=b;a.subscribe(c,this.C[c])}};
g.k.zy=function(){return this.J.getVideoData().zy()};
g.k.MA=function(){if(!this.Ec.get("ad"))try{oX(this)?pX(this,"ad",this.MA,!1,!0):g.dX(this.J,"ad")}catch(a){g.dX(this.J,"ad"),g.kr(a)}};
g.k.aa=function(){g.B.prototype.aa.call(this);rX(this,1,!0)};g.u(xX,g.P);g.k=xX.prototype;g.k.gM=function(a){a=hp(a);if(!ge(a,this.D)){var b=2;this.I&&(b|=8);this.D=a;wX(this,b,!0)}};
g.k.hM=function(){this.I&&wX(this,8,!0);wX(this,2,!1)};
g.k.It=function(a){var b=hp(a);ge(b,this.D)||(this.D=b,(a=g.ep(a))&&this.ir(a)&&(wX(this,4,!0),this.u.Eb(this.C),this.C=this.u.R(this.target,"mouseover",this.Fx),this.K=this.u.R(this.target,"mouseout",this.Fx)))};
g.k.Fx=function(a){a=gp(a);a&&this.ir(a)||(this.D=new g.fe(NaN,NaN),cxa(this))};
g.k.MJ=function(){wX(this,1,!0)};
g.k.wI=function(a){a=g.ep(a);a instanceof Element&&!(0<a.tabIndex)||wX(this,1,!0)};
g.k.ED=function(){this.I=!0;this.u.Eb(this.F);this.F=this.u.R(document,"mouseup",this.iM)};
g.k.iM=function(){this.I=!1;wX(this,8,!1);this.u.Eb(this.F);this.F=this.u.R(this.target,"mousedown",this.ED)};
g.k.hG=function(a){if(a=(a=a.changedTouches)&&a[0])this.ba=a.identifier,this.u.Eb(this.N),this.N=this.u.R(this.target,"touchend",this.cR,void 0,!0),wX(this,1024,!0)};
g.k.cR=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.ba){var d=c;break}}d&&(this.u.Eb(this.N),this.N=this.u.R(this.target,"touchstart",this.hG,void 0,!0),wX(this,1024,!1))};
g.k.Fj=function(){wX(this,2,!0)};
g.k.resize=function(){g.eB&&cxa(this)};
g.k.toString=function(){return g.P.prototype.toString.call(this)};g.u(g.yX,g.V);
g.yX.prototype.na=function(){var a=this.api.getVideoData(),b=this.api.T();if(a.Kc&&(a.bj||b.pfpChazalUi))var c=b.pfpChazalUi?[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},S:[{G:"path",L:"ytp-dni-large-play-button-bg",U:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{G:"path",U:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{G:"path",L:"ytp-dni-large-play-button-bg",U:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{G:"path",U:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];else b.I?(g.J(this.element,"ytp-touch-device",b.u),c=[b.I?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},S:[{G:"path",L:"ytp-large-play-button-bg",U:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{G:"path",U:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{G:"path",L:"ytp-large-play-button-bg",
U:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{G:"path",U:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{G:"path",L:"ytp-large-play-button-bg",
U:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#f00"}},{G:"path",U:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.wa("largePlayButtonChildren",c);a.Kc&&(a.bj||b.pfpChazalUi)&&(a=a.bj?a.bj:"#1f1f1f",this.ga("ytp-dni-large-play-button-bg").setAttribute("fill",
a))};g.u(zX,g.V);g.k=zX.prototype;g.k.show=function(){var a=this;this.Wa||(this.C.R(this.api,"videodatachange",function(){a.u.xb()}),this.C.R(this.api,"videoplayerreset",function(){a.u.xb()}));
g.V.prototype.show.call(this)};
g.k.hide=function(){this.C&&g.Yr(this.C);g.V.prototype.hide.call(this)};
g.k.Ra=function(){this.u.xb()};
g.k.qL=function(a){var b=this.api.T();g.R(b.experiments,"disable_new_pause_state3")&&iC(b)&&(a=a.state.isCued()&&!a.xj.isCued()||g.SW(this.api)&&g.T(a.state,2),g.E(this.element,"transition-delay",a?"2s":""));this.u.xb()};
g.k.aQ=function(){this.u.xb()};
g.k.pL=function(){this.B.stop();this.hide();this.u.xb()};
g.k.na=function(){var a=g.lI(this.api);if(3===this.api.getPresentingPlayerType()&&(a.Gb()||g.T(a,4)))var b=!0;else(b=g.NW(this.api).Ec.get("ypc"))&&b.Rt?b=!0:(b=this.api.T(),b=g.T(a,2)&&PW(this.api)&&b.Lc?!0:!1);b?(b=!0,this.D.hide()):(this.D.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!g.R(this.api.T().experiments,"disable_new_pause_state3"),b=!(!g.T(a,2)||PW(this.api)||b&&g.N0(this.api.app))||g.T(a,1024)?!0:!1));b?(this.B.show(),a=this.api.getVideoData(),this.oR(this.api.getPlaylist(),
a)):(this.B.hide(),g.T(a,1)||this.B.stop())};
g.k.oR=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=g.q(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof g.UE&&!c.videoId)){var d=g.pG(this.api).getPlayerSize();var e=g.jC(),f=d.width*e;e*=d.height;if(1280<f||720<e)if(d=c.Gd("maxresdefault.jpg"))break;if(640<f||480<e)if(d=c.Gd("maxresdefault.jpg"))break;if(320<f||180<e)if(d=c.Gd("sddefault.jpg")||c.Gd("hqdefault.jpg")||c.Gd("mqdefault.jpg"))break;if(d=c.Gd("default.jpg"))break}this.F.style.backgroundImage=
d?"url("+d+")":""};g.u(g.FX,g.V);g.FX.prototype.resize=function(){};
g.FX.prototype.B=function(a){var b=this;gxa(this);var c=a.Vv,d=this.api.T();"GENERIC_WITHOUT_LINK"!==c||d.I?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.pc(IX(this,"TOO_MANY_REQUESTS_WITH_LINK",d.fk(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.I?this.pc(g.GX(a.errorMessage)):this.pc(IX(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK","//www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//support.google.com/youtube/?p=player_error1",a&&(c=g.Ld(c,
{hl:a})),this.pc(IX(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.za&&!d.B&&fxa(this,function(e){if(g.AX(e,b.api,!iC(b.api.T()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.va("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var exa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.u(KX,g.Wr);KX.prototype.Pa=function(){var a=this;this.Nf();var b=this.J.getVideoData();if(b.isValid()){var c=[];this.J.T().P||c.push({src:b.Gd("mqdefault.jpg")||"",sizes:"320x180"});this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:c});c=b=null;g.SW(this.J)&&(this.u["delete"]("nexttrack"),this.u["delete"]("previoustrack"),b=function(){a.J.nextVideo()},c=function(){a.J.previousVideo()});
JX(this,"nexttrack",b);JX(this,"previoustrack",c)}};
KX.prototype.Nf=function(){var a=g.lI(this.J);a=a.isError()?"none":g.hL(a)?"playing":"paused";this.mediaSession.playbackState=a};
KX.prototype.aa=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.q(this.u),b=a.next();!b.done;b=a.next())JX(this,b.value,null);g.Wr.prototype.aa.call(this)};g.u(LX,g.V);LX.prototype.Pa=function(a,b){hxa(this,b);this.Bc&&ixa(this,this.Bc)};
LX.prototype.Vb=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&hxa(this,b);this.u&&ixa(this,a.state);this.Bc=a.state};
LX.prototype.tc=function(){this.B.show()};
LX.prototype.fb=function(){this.B.hide()};g.u(NX,g.V);NX.prototype.hide=function(){this.u.stop();this.message.style.display="none";g.V.prototype.hide.call(this)};
NX.prototype.B=function(a){MX(this,a.state)};
NX.prototype.C=function(){MX(this,g.lI(this.api))};
NX.prototype.D=function(){this.message.style.display="block"};g.u(g.OX,g.XM);g.k=g.OX.prototype;g.k.show=function(){var a=this.af();g.XM.prototype.show.call(this);this.X&&(this.K.R(window,"blur",this.fb),this.K.R(document,"click",this.uN));a||this.V("show",!0)};
g.k.hide=function(){var a=this.af();g.XM.prototype.hide.call(this);jxa(this);a&&this.V("show",!1)};
g.k.tc=function(a,b){this.u=a;this.W.show();b?(this.P||(this.P=this.K.R(this.J,"appresize",this.lA)),this.lA()):this.P&&(this.K.Eb(this.P),this.P=void 0)};
g.k.lA=function(){var a=g.JW(this.J);this.u&&a.En(this.element,this.u)};
g.k.fb=function(){var a=this.af();jxa(this);this.W.hide();a&&this.V("show",!1)};
g.k.uN=function(a){var b=fp(a);b&&(g.Me(this.element,b)||this.u&&g.Me(this.u,b)||!g.QO(a))||this.fb()};
g.k.af=function(){return this.Wa&&4!==this.W.state};g.u(QX,g.OX);QX.prototype.Op=function(a){this.C&&(a?(kxa(this),this.tc()):(this.seen&&lxa(this),this.fb()))};
QX.prototype.Nf=function(a){this.api.isMutedByMutedAutoplay()&&g.xI(a,2)&&this.fb()};
QX.prototype.onClick=function(){this.api.unMute();lxa(this)};g.u(g.SX,g.Wr);g.k=g.SX.prototype;g.k.init=function(){var a=g.lI(this.api);this.Md(a);this.Hj();this.Ra()};
g.k.Pa=function(a,b){if(this.bx!==b.videoId){this.bx=b.videoId;var c=this.Ac;c.Z=b&&0<b.Tk.length?5E3:3E3;wX(c,512,!0);this.Hj()}};
g.k.AO=function(){this.Pa("newdata",this.api.getVideoData())};
g.k.Kk=function(){var a=g.XW(this.api)&&g.YW(this.api);$W(this.api);return this.sr||a||$W(this.api)||this.Hw};
g.k.pg=function(){var a=!this.Kk();g.J(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.ir=function(a){try{if(!g.Me(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!Qe(a);)a=a===this.api.getRootNode()?null:g.Le(a);return!!a};
g.k.yh=function(a){var b=this.api.getRootNode();g.J(b,"ytp-autohide",a);g.J(b,"ytp-autohide-active",!0);this.qA.start(a?250:100);a&&(this.vu=!1,g.Bn(b,"ytp-touch-mode"));this.Jv=!a;b=this.api;a=!a;b.va("onVideoAreaChange");b.va(a?"onShowControls":"onHideControls")};
g.k.RM=function(){var a=this.api.getRootNode();g.J(a,"ytp-autohide-active",!1)};
g.k.hP=function(){this.Sy=!0};
g.k.gP=function(a){if(g.R(this.api.T().experiments,"player_doubletap_to_seek")||g.R(this.api.T().experiments,"embeds_enable_mobile_dtts"))this.Sy=!1,this.Ty&&this.Eb(this.Ty),0===this.Jp&&VX(this,a)?(this.xs(),this.wr.start(),this.Ty=this.R(g.pG(this.api),"touchmove",this.hP,void 0,!0)):this.wr.stop();nxa(this)&&VX(this,a)&&RX(this);var b=this.yu.af();if(IB&&oxa(this,a))b&&g.ip(a);else if(this.Ac.B||TX(this,fp(a))||this.yu.af()||(g.lI(this.api).isCued(),g.ip(a)),this.vu=!0,g.I(this.api.getRootNode(),
"ytp-touch-mode"),this.Ac.Fj(),g.R(this.api.T().experiments,"player_doubletap_to_seek")||g.R(this.api.T().experiments,"embeds_enable_mobile_dtts"))if(b=g.lI(this.api),!(!this.api.je()||g.T(b,2)&&PW(this.api)||g.T(b,64))){b=Date.now()-this.yC;this.Jp+=1;if(350>=b){this.Do=!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.Jp-1);0<d&&d<b?(this.Zp(-1,d,c,e),this.api.seekBy(-10*
this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.Zp(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.ip(a)}this.yC=Date.now();this.IF.start()}};
g.k.cP=function(a){oxa(this,a)||(nxa(this)||!VX(this,a)||this.wr.isActive()||(RX(this),g.ip(a)),this.Do&&(this.Do=!1))};
g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.Lq("embedsRequestStorageAccessResult",{resolved:!0});rx(!0);Fp();window.location.reload()},function(){g.Lq("embedsRequestStorageAccessResult",{resolved:!1});
a.Rn()})};
g.k.xs=function(){};
g.k.fm=function(){};
g.k.Zp=function(){};
g.k.Rn=function(){var a=g.lI(this.api);g.T(a,2)&&PW(this.api)||(g.hL(a)?this.api.pauseVideo():(this.api.app.pe=!0,this.api.playVideo(),this.Em&&document.activeElement===this.Em.D.element&&this.api.getRootNode().focus()))};
g.k.dP=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!TX(this,fp(a)))if(a=this.api.T(),(g.R(this.api.T().experiments,"player_doubletap_to_seek")||g.R(this.api.T().experiments,"embeds_enable_mobile_dtts"))&&this.Do)this.Do=!1;else if(a.ka&&3!==c)try{this.api.toggleFullscreen()["catch"](function(d){b.Yo(d)})}catch(d){this.Yo(d)}};
g.k.Yo=function(a){String(a).includes("fullscreen error")?g.lr(a):g.kr(a)};
g.k.eP=function(a){pxa(this,.3,a.scale);g.ip(a)};
g.k.fP=function(a){pxa(this,.1,a.scale)};
g.k.Ra=function(){var a=g.pG(this.api).getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Ac.resize();g.J(b,"ytp-fullscreen",this.api.isFullscreen());g.J(b,"ytp-large-width-mode",c);g.J(b,"ytp-small-mode",this.Lf());g.J(b,"ytp-tiny-mode",this.Lf()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height));g.J(b,"ytp-big-mode",this.Hd());this.md&&this.md.resize(a)};
g.k.Nf=function(a){this.Md(a.state);this.Hj()};
g.k.lw=function(){var a=!!this.bx&&!g.OW(this.api),b=2===this.api.getPresentingPlayerType(),c=this.api.T(),d=this.api.getVideoData(1).Kc&&c.pfpChazalUi;if(b){if(cBa&&g.R(c.experiments,"enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=sX(g.NW(this.api));return a&&b.By()&&!d}return a&&(c.Ki||this.api.isFullscreen()||c.ce)&&!d};
g.k.Hj=function(){var a=this.lw();this.hi!==a&&(this.hi=a,g.J(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Md=function(a){var b;(b=a.isCued())||(b=((b=g.Z(this.api.app,void 0))?$V(b):!0)&&3!==this.api.getPresentingPlayerType());b!==this.isCued&&(this.isCued=b,this.Vy&&this.Eb(this.Vy),this.Vy=this.R(g.pG(this.api),"touchstart",this.gP,void 0,b));var c=a.Gb()&&!g.T(a,32)||aX(this.api);wX(this.Ac,128,!c);c=3===this.api.getPresentingPlayerType();wX(this.Ac,256,c);c=this.api.getRootNode();if(g.T(a,2))var d=[O1.ENDED];else d=[],g.T(a,8)?d.push(O1.PLAYING):g.T(a,4)&&d.push(O1.PAUSED),g.T(a,1)&&!g.T(a,32)&&
d.push(O1.BUFFERING),g.T(a,32)&&d.push(O1.SEEKING),g.T(a,64)&&d.push(O1.UNSTARTED);g.Eb(this.Wu,d)||(g.Cn(c,this.Wu),this.Wu=d,g.An(c,d));d=this.api.T();var e=g.T(a,2);g.J(c,"ytp-hide-controls",("3"===d.controlsType?!e:"1"!==d.controlsType)||b);g.J(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.Hw);g.T(a,128)&&!g.LB(d)?(this.md||(this.md=new g.FX(this.api),g.C(this,this.md),g.oP(this.api,this.md.element,4)),this.md.B(a.getData()),this.md.show()):this.md&&(this.md.dispose(),this.md=null)};
g.k.cj=function(){return g.XW(this.api)&&g.YW(this.api)?(this.api.setCardsVisible(!1,!1),!0):g.OW(this.api)?(g.QW(this.api,!0),!0):!1};
g.k.Op=function(a){this.Hw=a;this.pg()};
g.k.Hd=function(){return!1};
g.k.Lf=function(){return!this.Hd()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.k.kh=function(){return this.vu};
g.k.wl=function(){return null};
g.k.ci=function(){var a=g.pG(this.api).getPlayerSize();return new g.ig(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.En=function(){};
g.k.showControls=function(a){void 0!==a&&XH(g.pG(this.api),a)};
g.k.Fj=function(){};
g.k.GB=function(){return null};g.u(WX,g.V);WX.prototype.onClick=function(){this.J.va("BACK_CLICKED")};g.u(g.XX,g.V);g.XX.prototype.show=function(){g.V.prototype.show.call(this);this.u.xb()};
g.XX.prototype.hide=function(){this.B.stop();g.V.prototype.hide.call(this)};
g.XX.prototype.fm=function(a){a?g.T(g.lI(this.J),64)||YX(this,BN(),"Play"):(a=this.J.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?YX(this,FN(),"Stop live playback"):YX(this,zN(),"Pause"))};g.u($X,g.V);g.k=$X.prototype;g.k.sG=function(){g.XW(this.J)&&g.YW(this.J)&&this.af()&&this.fb()};
g.k.YQ=function(){this.fb();g.Po("iv-teaser-clicked",null!=this.u);this.J.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.k.mL=function(){g.Po("iv-teaser-mouseover");this.u&&this.u.stop()};
g.k.xP=function(a){this.u||!a||g.YW(this.J)||this.B&&this.B.isActive()||(this.tc(a),g.Po("iv-teaser-shown"))};
g.k.tc=function(a){this.wa("text",a.teaserText);this.element.setAttribute("dir",g.Jn(a.teaserText));this.D.show();this.B=new g.H(function(){g.I(this.J.getRootNode(),"ytp-cards-teaser-shown");this.ez()},0,this);
this.B.start();aY(this.Uh,!1);this.u=new g.H(this.fb,580+a.durationMs,this);this.u.start();this.F.push(this.ua("mouseover",this.lD,this));this.F.push(this.ua("mouseout",this.kD,this))};
g.k.ez=function(){if(g.LB(this.J.T())&&this.Wa){var a=this.Uh.element.offsetLeft,b=g.te("ytp-cards-button-icon"),c=this.J.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Uh.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.aI=function(){g.LB(this.J.T())&&this.W.Lf()&&this.Wa&&this.P.start()};
g.k.lD=function(){this.I.stop();this.u&&this.u.isActive()&&this.K.start()};
g.k.kD=function(){this.K.stop();this.u&&!this.u.isActive()&&this.I.start()};
g.k.iO=function(){this.u&&this.u.stop()};
g.k.hO=function(){this.fb()};
g.k.fb=function(){!this.u||this.C&&this.C.isActive()||(g.Po("iv-teaser-hidden"),this.D.hide(),g.Bn(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.C=new g.H(function(){for(var a=g.q(this.F),b=a.next();!b.done;b=a.next())this.Eb(b.value);this.F=[];this.u&&(this.u.dispose(),this.u=null);aY(this.Uh,!0)},330,this),this.C.start())};
g.k.af=function(){return this.Wa&&4!==this.D.state};
g.k.aa=function(){var a=this.J.getRootNode();a&&g.Bn(a,"ytp-cards-teaser-shown");g.fg(this.B,this.C,this.u);g.V.prototype.aa.call(this)};g.u(bY,g.V);g.k=bY.prototype;g.k.tc=function(){this.B.show();g.Po("iv-button-shown")};
g.k.fb=function(){g.Po("iv-button-hidden");this.B.hide()};
g.k.af=function(){return this.Wa&&4!==this.B.state};
g.k.aa=function(){this.u&&this.u();g.V.prototype.aa.call(this)};
g.k.GN=function(){g.Po("iv-button-mouseover")};
g.k.onClicked=function(a){g.XW(this.J);var b=g.zn(this.J.getRootNode(),"ytp-cards-teaser-shown");g.Po("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.J.setCardsVisible(!g.YW(this.J),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};var Y1={},dY=(Y1.BUTTON="ytp-button",Y1.TITLE_NOTIFICATIONS="ytp-title-notifications",Y1.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",Y1.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",Y1.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",Y1);g.u(eY,g.V);eY.prototype.onClick=function(){g.gX(this.api,this.element);var a=!this.u;this.wa("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.wa("pressed",a);rxa(this,a)};g.u(g.gY,g.V);g.gY.prototype.B=function(){g.I(this.element,"ytp-sb-subscribed")};
g.gY.prototype.C=function(){g.Bn(this.element,"ytp-sb-subscribed")};g.u(hY,g.V);g.k=hY.prototype;g.k.ly=function(){wxa(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.bw=function(){if(uxa(this)&&!this.isExpanded()){this.wa("flyoutUnfocusable","false");this.wa("channelTitleFocusable","0");this.C&&this.C.stop();this.subscribeButton&&(this.subscribeButton.show(),g.dN(this.api,this.subscribeButton.element,!0));var a=this.api.getVideoData();this.B&&a.On&&a.subscribed&&(this.B.show(),g.dN(this.api,this.B.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.Gv=function(){this.wa("flyoutUnfocusable","true");this.wa("channelTitleFocusable","-1");this.C&&this.C.start()};
g.k.na=function(){var a=this.api.getVideoData(),b=this.api.T(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Ui&&!!a.bf:g.LB(b)&&(c=!!a.videoId&&!!a.Ui&&!!a.bf);b=g.xC(this.api.T())+a.Ui;g.LB(this.api.T())&&(b=g.Ld(b,g.GT({},"emb_ch_name_ex")));var d=a.Ui,e=a.bf,f=a.author;d=void 0===d?"":d;e=void 0===e?"":e;f=void 0===f?"":f;c?(d=g.xC(this.api.T())+d,this.u.style.backgroundImage="url("+e+")",this.wa("channelLink",d),this.wa("channelLogoLabel",g.jJ("Photo image of $CHANNEL_NAME",
{CHANNEL_NAME:f})),g.I(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Bn(this.api.getRootNode(),"ytp-title-enable-channel-logo");g.dN(this.api,this.u,c&&this.N);this.subscribeButton&&(this.subscribeButton.channelId=a.Ng);this.wa("expandedTitle",a.Jo);this.wa("channelTitleLink",b);this.wa("expandedSubtitle",a.expandedSubtitle)};g.u(g.jY,g.XM);g.jY.prototype.wa=function(a,b){g.XM.prototype.wa.call(this,a,b);this.V("size-change")};g.u(mY,g.XM);mY.prototype.ZD=function(){this.V("size-change")};
mY.prototype.focus=function(){this.content.focus()};
mY.prototype.UM=function(){this.V("back")};g.u(g.nY,mY);g.nY.prototype.Nb=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{var c=g.Ab(this.items,a,xxa);if(0<=c)return;c=~c;g.xb(this.items,c,0,a);g.Ie(this.menuItems.element,a.element,c)}a.subscribe("size-change",this.Mx,this);this.menuItems.V("size-change")};
g.nY.prototype.Wd=function(a){a.unsubscribe("size-change",this.Mx,this);this.la()||(g.rb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.V("size-change"))};
g.nY.prototype.Mx=function(){this.menuItems.V("size-change")};
g.nY.prototype.focus=function(){for(var a=0,b=0;b<this.items.length;b++)if("true"===this.items[b].element.getAttribute("aria-checked")){a=b;break}this.items[a].focus()};g.u(pY,g.jY);pY.prototype.u=function(a){g.jp(a)||39!==g.kp(a)||(this.element.click(),g.ip(a))};g.u(g.rY,g.jY);g.rY.prototype.onClick=function(){this.setValue(!this.checked);this.V("select",this.checked)};
g.rY.prototype.getValue=function(){return this.checked};
g.rY.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.u(sY,g.nY);g.k=sY.prototype;g.k.pN=function(){DX(this.Bm.element)};
g.k.bQ=function(){uY(this,this.J.getDebugText(!0))&&YX(this.Kb,jN())};
g.k.cQ=function(){uY(this,this.J.getVideoEmbedCode())&&YX(this.Kb,rN());g.gX(this.J,this.bh.element);xW("EMBED",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.dQ=function(){uY(this,this.J.getVideoUrl(!0,!0))&&YX(this.Kb,vN());g.gX(this.J,this.getVideoUrl.element);xW("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.eQ=function(){uY(this,this.J.getVideoUrl(!1,!0))&&YX(this.Kb,vN());g.gX(this.J,this.fh.element);xW("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.kE=function(a){this.ph.setValue(a)};
g.k.fQ=function(){var a=this.ph.getValue();jAa(this.J.app,a);this.Ta.fb();g.gX(this.J,this.ph.element)};
g.k.XO=function(a){this.J.reportPlaybackIssue();if(g.AX(a,this.J,!iC(this.J.T()))){a=this.J;var b=a.app.getFeedbackProductData();a.va("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Ta.fb()};
g.k.oP=function(){this.J.showVideoInfo();this.Ta.fb()};
g.k.Pa=function(a,b){this.Dh(b)};
g.k.Dh=function(a){var b=this.J.T(),c=2===this.J.getPresentingPlayerType(),d=!c||a.isListed;d=!b.P&&!!a.videoId&&d;"play"!==b.playerStyle?b="https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.La&&(b.fmt=wu(a.La)),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.Fg&&(b.partnerid=a.Fg),b=g.Ld("//support.google.com/googleplay/",b));g.WM(this.bh,d&&a.allowEmbed);g.WM(this.getVideoUrl,d);g.WM(this.fh,d&&
!a.isLivePlayback);this.bq.pc(b,"href");g.WM(this.ph,!a.isLivePlayback&&!c)};
g.k.zb=function(a){g.nY.prototype.zb.call(this,a);g.dN(this.J,this.bh.element,a);g.dN(this.J,this.getVideoUrl.element,a);g.dN(this.J,this.fh.element,a);g.dN(this.J,this.ph.element,a)};g.u(g.vY,g.OX);g.k=g.vY.prototype;g.k.show=function(){g.OX.prototype.show.call(this);this.Vn()};
g.k.hide=function(){g.OX.prototype.hide.call(this);1<this.B.length&&g.yY(this)};
g.k.Vn=function(){Axa(this);this.Wa&&(zxa(this),g.Dg(this.element,this.size))};
g.k.Sf=function(){var a=this.B.pop(),b=wY(this);xY(this,a,b,!0)};
g.k.uL=function(a){if(!g.jp(a))switch(g.kp(a)){case 27:this.fb();g.ip(a);break;case 37:1<this.B.length&&this.Sf();g.ip(a);break;case 39:g.ip(a)}};
g.k.focus=function(){wY(this).focus()};
g.k.aa=function(){g.OX.prototype.aa.call(this);this.F&&this.F.dispose();this.C&&this.C.dispose()};g.u(g.zY,g.vY);g.k=g.zY.prototype;g.k.show=function(){this.D||(this.D=new sY(this.J,this.Z,this,this.Kb),g.C(this,this.D),g.tY(this,this.D));this.D.kE(this.J.app.I.rl());g.vY.prototype.show.call(this);g.dN(this.J,this.element,!0);this.D.zb(!0)};
g.k.hide=function(){Cxa(this);g.vY.prototype.hide.call(this);g.dN(this.J,this.element,!1);this.D&&this.D.zb(!1)};
g.k.mN=function(a){var b=fp(a);if(!(this.Wa||b&&(Se(b,"a")||Se(b,null,"ytp-no-contextmenu",void 0)))){g.ip(a);Dxa(this);b=this.J.getVideoData();g.J(this.element,"ytp-dni",b.Kc);this.element.style.left="";this.element.style.top="";a=hp(a);a.x++;a.y++;this.tc();var c=document.body;b=new gg(0,Infinity,Infinity,0);var d=ne(c);for(var e=d.u.body,f=d.u.documentElement,h=xe(d.u);c=gba(c);)if(!(g.ye&&0==c.clientWidth||g.Ae&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=ug(c,"overflow")){var l=g.yg(c),
m=new g.fe(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,l.y);b.right=Math.min(b.right,l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=h.scrollLeft;h=h.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,h);d=d.u;d=we(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,h+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.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.left||h.x>=d.right)&&(f&=-2),132==(f&132)&&(h.y<d.top||h.y>=d.bottom)&&(f&=-5),h.x<d.left&&f&1&&(h.x=d.left),f&16&&(c=h.x,h.x<d.left&&(h.x=d.left),h.x+e.width>d.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.y<d.top&&f&4&&(h.y=d.top),f&32&&(c=h.y,h.y<d.top&&(h.y=d.top),h.y+e.height>d.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.ig(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.wg(this.element,new g.fe(d.left,d.top));g.Yr(this.I);this.I.R(document,"contextmenu",this.vN);this.I.R(this.J,"fullscreentoggled",this.nL);this.I.R(this.J,"pageTransition",this.oL)}};
g.k.vN=function(a){if(!g.jp(a)){var b=fp(a);g.Me(this.element,b)||this.fb();this.J.T().disableNativeContextMenu&&g.ip(a)}};
g.k.nL=function(){this.fb();Dxa(this)};
g.k.oL=function(){this.fb()};g.u(AY,g.V);AY.prototype.onClick=function(){return g.Ue(this,function b(){var c=this,d,e,f,h;return g.Aa(b,function(l){if(1==l.u)return d=c.api.T(),e=c.api.getVideoData(),f=c.api.getPlaylistId(),h=d.getVideoUrl(e.videoId,f,void 0,!0),g.ra(l,Gxa(c,h),2);l.B&&Exa(c);g.gX(c.api,c.element);l.u=0})})};
AY.prototype.na=function(){var a=this.api.getVideoData();this.wa("icon",{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{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.wa("title-attr","Copy link");var b=g.pG(this.api).getPlayerSize().width;this.visible=!!a.videoId&&
240<=b&&a.oq;g.J(this.element,"ytp-copylink-button-visible",this.visible);g.WM(this,this.visible);CY(this.tooltip);g.dN(this.api,this.element,this.visible&&this.N)};
AY.prototype.zb=function(a){g.V.prototype.zb.call(this,a);g.dN(this.api,this.element,this.visible&&a)};
AY.prototype.aa=function(){g.V.prototype.aa.call(this);g.Bn(this.element,"ytp-copylink-button-visible")};g.u(DY,g.V);DY.prototype.show=function(){g.V.prototype.show.call(this);this.u.xb()};
DY.prototype.hide=function(){this.B.stop();g.V.prototype.hide.call(this)};
DY.prototype.Zp=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&g.gX(this.J,e);this.u.wg();this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*g.pG(this.J).getPlayerSize().height;e=g.pG(this.J).getPlayerSize();e=e.width/3-3*e.height;var h=this.ga("ytp-doubletap-static-circle");h.style.width=f+"px";h.style.height=f+"px";1===a?(h.style.left="",h.style.right=e+"px"):-1===a&&(h.style.right="",h.style.left=e+"px");var l=2.5*f;f=l/2;h=this.ga("ytp-doubletap-ripple");h.style.width=
l+"px";h.style.height=l+"px";1===a?(a=g.pG(this.J).getPlayerSize().width-b+Math.abs(e),h.style.left="",h.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,h.style.right="",h.style.left=a-f+"px");h.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.ga("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");Hxa(this,d)};var uCa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(uCa).reduce(function(a,b){a[uCa[b]]=b;return a},{});
var vCa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(vCa).reduce(function(a,b){a[vCa[b]]=b;return a},{});
var wCa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(wCa).reduce(function(a,b){a[wCa[b]]=b;return a},{});var Z1,xCa;Z1=[{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"}];xCa=[{option:0,text:EY(0)},{option:.25,text:EY(.25)},{option:.5,text:EY(.5)},{option:.75,text:EY(.75)},{option:1,text:EY(1)}];
g.HY=[{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:Z1},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:EY(.5)},{option:-1,text:EY(.75)},{option:0,text:EY(1)},{option:1,text:EY(1.5)},{option:2,text:EY(2)},
{option:3,text:EY(3)},{option:4,text:EY(4)}]},{option:"background",text:"Background color",options:Z1},{option:"backgroundOpacity",text:"Background opacity",options:xCa},{option:"windowColor",text:"Window color",options:Z1},{option:"windowOpacity",text:"Window opacity",options:xCa},{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:EY(.25)},{option:.5,text:EY(.5)},{option:.75,text:EY(.75)},{option:1,text:EY(1)}]}];g.u(g.GY,g.Wr);g.k=g.GY.prototype;
g.k.SB=function(a){var b=!1,c=g.kp(a),d=fp(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.T();g.jp(a)?(e=!1,h=!0):l.ud&&(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);ZX(this.Kb,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);ZX(this.Kb,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.je()&&(this.api.seekTo(0),
h=f=!0);break;case 35:this.api.je()&&(this.api.seekTo(Infinity),h=f=!0)}}b&&this.vy(!0);(b||h)&&this.Ac.Fj();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.ip(a);l.C&&(a={keyCode:g.kp(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.jp(a),fullscreen:this.api.isFullscreen()},this.api.va("onKeyPress",a))};
g.k.TB=function(a){this.handleGlobalKeyUp(g.kp(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.UW(g.NW(this.api));c&&(c=c.Nk)&&c.Wa&&(c.QB(a),b=!0);9===a&&(this.vy(!0),b=!0);return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){e=!1;c=this.api.T();if(c.ud)return e;var h=g.UW(g.NW(this.api));if(h&&(h=h.Nk)&&h.Wa)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:e=h.PB(a)}c.I||e||(e=f||String.fromCharCode(a).toLowerCase(),this.u+=e,0==="awesome".indexOf(this.u)?(e=!0,7===this.u.length&&(f=this.api.getRootNode(),h=!g.zn(f,"ytp-color-party"),g.J(f,"ytp-color-party",h))):(this.u=e,e=0==="awesome".indexOf(this.u)));if(!e){f=(f=this.api.getVideoData())?f.Ba:
[];switch(a){case 80:b&&!c.Z&&(YX(this.Kb,CN(),"Previous"),this.api.previousVideo(),e=!0);break;case 78:b&&!c.Z&&(YX(this.Kb,xN(),"Next"),this.api.nextVideo(),e=!0);break;case 74:this.api.je()&&(YX(this.Kb,{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{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()),e=!0);break;case 76:this.api.je()&&(YX(this.Kb,{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{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()),e=!0);break;case 37:this.api.je()&&(d&&c.ca("web_player_seek_chapters_by_shortcut")?(b=1E3*this.api.getCurrentTime(),b=FY(f,b)-1,-1!==b&&(this.api.seekTo(f[b].startTime/1E3),e=!0)):(c.ca("web_player_seek_chapters_by_shortcut")&&this.B?Ixa(this.B,-1):YX(this.Kb,{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{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()),e=!0));break;case 39:this.api.je()&&(d&&c.ca("web_player_seek_chapters_by_shortcut")?(b=1E3*this.api.getCurrentTime(),b=FY(f,b)+1,b=b<f.length?b:-1,-1!==b&&(this.api.seekTo(f[b].startTime/1E3),e=!0)):(c.ca("web_player_seek_chapters_by_shortcut")&&null!=this.B?Ixa(this.B,1):YX(this.Kb,{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{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()),e=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),ZX(this.Kb,this.api.getVolume(),!1)):(this.api.mute(),ZX(this.Kb,0,!0));e=!0;break;case 32:case 75:c.Z||(e=!g.hL(g.lI(this.api)),this.Kb.fm(e),e?this.api.playVideo():this.api.pauseVideo(),e=!0);break;case 190:b?c.Rb&&(e=this.api.getPlaybackRate(),this.api.setPlaybackRate(e+.25,!0),qxa(this.Kb,!1),e=!0):this.api.je()&&(Kxa(this,1),e=!0);break;case 188:b?c.Rb&&(e=this.api.getPlaybackRate(),this.api.setPlaybackRate(e-
.25,!0),qxa(this.Kb,!0),e=!0):this.api.je()&&(Kxa(this,-1),e=!0);break;case 70:dxa(this.api)&&(this.api.toggleFullscreen(),e=!0);break;case 27:this.D()&&(e=!0)}if("3"!==c.controlsType)switch(a){case 67:g.nX(g.NW(this.api))&&(c=this.api.getOption("captions","track"),this.api.toggleSubtitles(),YX(this.Kb,qN(),!c||c&&!c.displayName?"Subtitles/closed captions on":"Subtitles/closed captions off"),e=!0);break;case 79:IY(this,"textOpacity");break;case 87:IY(this,"windowOpacity");break;case 187:case 61:IY(this,
"fontSizeIncrement",!1,!0);break;case 189:case 173:IY(this,"fontSizeIncrement",!0,!0)}var l;48<=a&&57>=a?l=a-48:96<=a&&105>=a&&(l=a-96);null!=l&&this.api.je()&&(a=this.api.getProgressState(),this.api.seekTo(l/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),e=!0);e&&this.Ac.Fj()}return e};
g.k.vy=function(a){g.J(this.api.getRootNode(),"ytp-probably-keyboard-focus",a);g.J(this.contextMenu.element,"ytp-probably-keyboard-focus",a)};
g.k.aa=function(){this.C.wg();g.Wr.prototype.aa.call(this)};g.u(JY,g.V);JY.prototype.na=function(){var a=g.LB(this.J.T())&&g.SW(this.J)&&g.T(g.lI(this.J),128),b=this.J.getPlayerSize();this.visible=this.u.Lf()&&!a&&240<=b.width;g.J(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&CY(this.tooltip);g.dN(this.J,this.element,this.visible&&this.N)};
JY.prototype.zb=function(a){g.V.prototype.zb.call(this,a);g.dN(this.J,this.element,this.visible&&a)};
JY.prototype.aa=function(){g.V.prototype.aa.call(this);g.Bn(this.element,"ytp-overflow-button-visible")};g.u(KY,g.OX);g.k=KY.prototype;g.k.tL=function(a){a=fp(a);g.Me(this.element,a)&&(g.Me(this.B,a)||g.Me(this.closeButton,a)||PX(this))};
g.k.fb=function(){g.OX.prototype.fb.call(this);this.tooltip.Th(this.element)};
g.k.show=function(){this.Wa&&this.J.V("OVERFLOW_PANEL_OPENED");g.OX.prototype.show.call(this);Lxa(this,!0)};
g.k.hide=function(){g.OX.prototype.hide.call(this);Lxa(this,!1)};
g.k.sL=function(a){!a&&this.af()&&PX(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.Wa){b.focus();break}};g.u(MY,g.V);MY.prototype.zc=function(a){this.element.setAttribute("aria-checked",String(a))};
MY.prototype.onClick=function(a){g.AX(a,this.api)&&this.api.playVideoAt(this.index)};g.u(NY,g.OX);g.k=NY.prototype;g.k.show=function(){g.OX.prototype.show.call(this);this.C.R(this.api,"videodatachange",this.xx);this.C.R(this.api,"onPlaylistUpdate",this.xx);this.xx()};
g.k.hide=function(){g.OX.prototype.hide.call(this);g.Yr(this.C);this.updatePlaylist(null)};
g.k.xx=function(){this.updatePlaylist(this.api.getPlaylist())};
g.k.gu=function(){var a=this.playlist,b=a.Ns;if(b===this.D)this.selected.zc(!1),this.selected=this.B[a.index];else{for(var c=g.q(this.B),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.getLength();this.B=[];for(d=0;d<c;d++){var e=new MY(this.api,a,d);this.B.push(e);e.fa(this.items)}this.selected=this.B[a.index];this.D=b}this.selected&&this.selected.zc(!0)};
g.k.BP=function(a){var b=this.api.getVideoUrl(!0);g.BX(b,this.api,a)};
g.k.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.gu,this),this.playlist=a,this.D=null,a){a.subscribe("shuffle",this.gu,this);var b=a.author,c=b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.getLength())};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.jJ(c,d),playlisturl:this.api.getVideoUrl(!0)});this.gu()}else this.Wa&&this.hide();
else this.playlist&&this.gu()};
g.k.focus=function(){this.selected.focus()};
g.k.aa=function(){this.hide();g.OX.prototype.aa.call(this)};g.u(OY,g.V);
OY.prototype.na=function(){var a=g.LB(this.api.T());g.J(this.element,"ytp-playlist-menu-button-tiny",400>g.pG(this.api).getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.jJ("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.jJ("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Wa||(this.show(),CY(this.tooltip)),this.visible=!0):this.Wa&&
(this.hide(),CY(this.tooltip))};
OY.prototype.zb=function(a){g.V.prototype.zb.call(this,a);g.dN(this.api,this.element,this.visible&&a)};
OY.prototype.u=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.na,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.na,this);this.na()};g.u(PY,g.V);g.k=PY.prototype;
g.k.Ov=function(a){if(!this.C){if(a){this.tooltipRenderer=a;var b,c,d,e,f,h,l,m;a=this.tooltipRenderer.text;var n=!1;(null===(b=null===a||void 0===a?void 0:a.runs)||void 0===b?0:b.length)&&a.runs[0].text&&(this.update({title:a.runs[0].text.toString()}),n=!0);g.Fg(this.title,n);b=this.tooltipRenderer.detailsText;a=!1;(null===(c=null===b||void 0===b?void 0:b.runs)||void 0===c?0:c.length)&&b.runs[0].text&&(this.update({details:b.runs[0].text.toString()}),a=!0);g.Fg(this.details,a);c=this.tooltipRenderer.acceptButton;
b=!1;(null===(f=null===(e=null===(d=null===c||void 0===c?void 0:c.buttonRenderer)||void 0===d?void 0:d.text)||void 0===e?void 0:e.runs)||void 0===f?0:f.length)&&c.buttonRenderer.text.runs[0].text&&(this.update({acceptButtonText:c.buttonRenderer.text.runs[0].text.toString()}),b=!0);g.Fg(this.acceptButton,b);d=this.tooltipRenderer.dismissButton;e=!1;(null===(m=null===(l=null===(h=null===d||void 0===d?void 0:d.buttonRenderer)||void 0===h?void 0:h.text)||void 0===l?void 0:l.runs)||void 0===m?0:m.length)&&
d.buttonRenderer.text.runs[0].text&&(this.update({dismissButtonText:d.buttonRenderer.text.runs[0].text.toString()}),e=!0);g.Fg(this.dismissButton,e)}this.u=Mxa(this);this.B=!1;g.WM(this,!0);(h=!this.u)||(h=this.u,l=window.getComputedStyle(h),h="none"===l.display||"hidden"===l.visibility||"true"===h.getAttribute("aria-hidden"));h||this.J.app.visibility.u?g.WM(this,!1):(h=g.Eg(this.u),h.width&&h.height?(this.F.En(this.element,this.u),l=g.pG(this.J).getPlayerSize().height-g.Eg(this.element).height-h.height-
12,this.element.style.top=l+"px",l=this.ga("ytp-promotooltip-pointer"),m=g.Cg(this.u,this.J.getRootNode()),d=Number(this.element.style.left.replace(/[^\d\.]/g,"")),e=this.J.isFullscreen()?18:12,l.style.left=m.x-d+h.width/2-e+"px"):g.WM(this,!1));this.D||(this.D=!0,QY(this,0))}};
g.k.oN=function(){g.WM(this,!1);this.B=!0};
g.k.rM=function(){this.C=!0;QY(this,1);g.WM(this,!1)};
g.k.tN=function(){this.C=!0;QY(this,2);g.WM(this,!1)};
g.k.Ra=function(){this.B||(this.u||(this.u=Mxa(this)),this.Ov())};g.u(RY,g.V);RY.prototype.u=function(a){g.WM(this,g.T(a.state,2))};
RY.prototype.onClick=function(){g.lI(this.J);this.J.playVideo()};g.u(g.SY,g.V);g.SY.prototype.onClick=function(){var a=this.api.T(),b=this.api.getVideoData(this.api.getPresentingPlayerType()),c=this.api.getPlaylistId();a=a.getVideoUrl(b.videoId,c,void 0,!0);navigator.share?navigator.share({title:b.title,url:a}):(this.u.cj(),PX(this.C,this.element,!1));g.gX(this.api,this.element)};
g.SY.prototype.na=function(){var a=this.api.T(),b=this.api.getVideoData();this.u.Lf();var c=g.LB(a)&&g.SW(this.api)&&g.T(g.lI(this.api),128);this.wa("icon",{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});a=a.disableSharing&&2!==this.api.getPresentingPlayerType()||
!b.showShareButton||b.oq||c;c=g.pG(this.api).getPlayerSize().width;this.visible=!!b.videoId&&c>=this.B&&!a;g.J(this.element,"ytp-share-button-visible",this.visible);g.WM(this,this.visible);CY(this.tooltip);g.dN(this.api,this.element,this.visible&&this.N)};
g.SY.prototype.zb=function(a){g.V.prototype.zb.call(this,a);g.dN(this.api,this.element,this.visible&&a)};
g.SY.prototype.aa=function(){g.V.prototype.aa.call(this);g.Bn(this.element,"ytp-share-button-visible")};g.u(g.TY,g.OX);g.k=g.TY.prototype;g.k.AL=function(a){a=fp(a);g.Me(this.F,a)||g.Me(this.closeButton,a)||PX(this)};
g.k.fb=function(){g.OX.prototype.fb.call(this);this.tooltip.Th(this.element)};
g.k.show=function(){var a=this.Wa;g.OX.prototype.show.call(this);this.na();a||this.api.va("onSharePanelOpened")};
g.k.na=function(){var a=this;g.I(this.element,"ytp-share-panel-loading");g.Bn(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId(),d=c&&this.D.checked,e=this.api.T();g.R(e.experiments,"web_player_innertube_share_panel")?tU(qG(this.api.app),b.getSharePanelCommand,{includeListId:d}).then(function(f){Oxa(a,f)}):(g.J(this.element,"ytp-share-panel-has-playlist",!!c),b={action_get_share_info:1,
video_id:b.videoId},e.kd&&(b.authuser=e.kd),e.pageId&&(b.pageid=e.pageId),g.LB(e)&&g.GT(b,"emb_share"),d&&(b.list=c),g.oq(e.N+"share_ajax",{method:"GET",onError:function(){Qxa(a)},
onSuccess:function(f,h){h?Oxa(a,h):Qxa(a)},
Og:b,withCredentials:!0}));c=this.api.getVideoUrl(!0,!0,!1,!1);this.wa("link",c);this.wa("linkText",c);this.wa("shareLinkWithUrl",g.jJ("Share link $URL",{URL:c}));DX(this.C)};
g.k.zL=function(a){!a&&this.af()&&PX(this)};
g.k.focus=function(){this.C.focus()};
g.k.aa=function(){g.OX.prototype.aa.call(this);Pxa(this)};g.u(WY,g.V);g.k=WY.prototype;g.k.aa=function(){Txa(this);g.V.prototype.aa.call(this)};
g.k.VM=function(a){a.target!==this.dismissButton.element&&(Sxa(this,!1),this.J.va("innertubeCommand",this.onClickCommand))};
g.k.WM=function(){this.dismissed=!0;Sxa(this,!0);this.Lh()};
g.k.EO=function(a){this.X=a;this.Lh()};
g.k.Pa=function(a,b){var c,d=!!b.videoId&&this.videoId!==b.videoId;d&&(this.videoId=b.videoId,this.dismissed=!1,this.u=!0);if(d||!b.videoId)this.D=this.C=!1;d=b.shoppingOverlayRenderer;this.B=this.I=this.X=this.enabled=!1;if(d){this.enabled=!0;var e,f;this.C||(this.C=!!d.trackingParams)&&g.aN(this.J,this.badge.element,d.trackingParams||null);this.D||(this.D=!(null===(e=d.dismissButton)||void 0===e||!e.trackingParams))&&g.aN(this.J,this.dismissButton.element,(null===(f=d.dismissButton)||void 0===f?
void 0:f.trackingParams)||null);this.text=g.U(d.text);if(e=null===(c=d.dismissButton)||void 0===c?void 0:c.a11yLabel)this.ha=g.U(e);this.onClickCommand=d.onClickCommand;Txa(this);d.timing?(f=d.timing,d=[],e=f.visible,f=f.expanded,e&&d.push(new g.tD(1E3*e.startSec,1E3*e.endSec,{priority:7,namespace:"shopping_overlay_visible"})),f&&d.push(new g.tD(1E3*f.startSec,1E3*f.endSec,{priority:7,namespace:"shopping_overlay_expanded"})),g.GM(this.J,d)):this.I=this.B=!0}d=this.text||"";g.Ne(g.te("ytp-shopping-overlay-badge-title",
this.element),d);this.badge.element.setAttribute("aria-label",d);this.dismissButton.element.setAttribute("aria-label",this.ha?this.ha:"");VY(this);this.Lh()};
g.k.lR=function(a){this.ra=a;this.Lh()};
g.k.Lh=function(){XY(this)?this.K.show():this.K.hide();Rxa(this)};
g.k.Eg=function(a){(this.B=a)?(UY(this),VY(this,!1)):this.ea.start();this.Lh()};
g.k.QQ=function(){if(this.expanded){this.W.show();var a=this.F.element.scrollWidth}else a=this.F.element.scrollWidth,this.W.hide();this.ka=34+a;g.J(this.badge.element,"ytp-shopping-overlay-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.ka)+"px";this.P.start()};
g.k.rI=function(){this.badge.element.style.width=(this.expanded?this.ka:34)+"px";this.Z.start()};
g.k.BL=function(){this.enabled=!1;this.Lh()};
g.k.aN=function(a){this.da=1===a;this.Lh()};g.u(YY,g.OX);YY.prototype.show=function(){g.OX.prototype.show.call(this);this.B.start()};
YY.prototype.hide=function(){g.OX.prototype.hide.call(this);this.B.stop()};g.u(ZY,g.V);ZY.prototype.onClick=function(){var a=g.Z(this.J.app);a&&a.B&&a.B.nx()};
ZY.prototype.na=function(){var a=g.Z(this.J.app);g.WM(this,!!a&&a.Ef);this.wa("icon",this.J.Ll()?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,U:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{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 yq;g.u($Y,g.V);g.k=$Y.prototype;
g.k.Bp=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&g.eX(this.J)&&400<=g.pG(this.J).getPlayerSize().width)this.B||(this.B=!0,g.WM(this,this.B),this.u.push(this.R(this.J,"videodatachange",this.Bp)),this.u.push(this.R(this.J,"videoplayerreset",this.Bp)),this.u.push(this.R(this.J,"onPlaylistUpdate",this.Bp)),this.u.push(this.R(this.J,"autonavchange",this.jD)),a=this.J.getVideoData(),this.jD(a.autonavState));else{this.B=!1;g.WM(this,this.B);a=g.q(this.u);for(var b=a.next();!b.done;b=
a.next())this.Eb(b.value)}};
g.k.jD=function(a){this.isChecked=1!==a||!g.Or(g.Mr.getInstance(),140);Uxa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;var a=this.J,b=this.isChecked?2:1;EAa(a.app,b);b&&Q0(a.app,b);Uxa(this)};
g.k.getValue=function(){return this.isChecked};
g.k.setValue=function(a){this.isChecked=a;this.ga("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.u(g.bZ,g.V);g.bZ.prototype.aa=function(){this.u=null;g.V.prototype.aa.call(this)};g.u(cZ,g.V);cZ.prototype.X=function(a){var b=g.Eg(this.I).width,c=g.Eg(this.W).width,d=this.K.Hd()?3:1;a=a.width-b-c-40*d-52;0<a&&(this.D.style.maxWidth=a+"px")};
cZ.prototype.onClick=function(){this.J.va("innertubeCommand",this.C)};
cZ.prototype.updateVideoData=function(a,b){var c=b.jQ;this.C=null===c||void 0===c?void 0:c.command;this.u.disabled=null==this.C;g.J(this.u,"ytp-chapter-container-disabled",this.u.disabled);this.Gc()};
cZ.prototype.Gc=function(){var a="",b=this.P.Ba;if(1<b.length){a=1E3*this.J.getProgressState().current;var c=FY(b,a);a=b[c].title;null==a&&(a="");if(c!==this.currentIndex||this.B)this.J.va("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.B=!1}else this.B=!0;a!==this.F&&(this.update({title:a}),this.F=a);a?this.show():this.hide()};g.u(g.dZ,g.V);g.dZ.prototype.Vb=function(a){g.T(a.state,32)?eZ(this,this.api.eg()):this.Wa&&(g.T(a.state,16)||g.T(a.state,1))||this.u.hide()};
g.dZ.prototype.Vd=function(){var a=g.lI(this.api);(g.T(a,32)||g.T(a,16))&&fZ(this)};
g.dZ.prototype.C=function(){this.B=NaN;fZ(this)};
g.dZ.prototype.hide=function(){this.Pg&&eZ(this,null);g.V.prototype.hide.call(this)};g.u(gZ,g.V);gZ.prototype.onClick=function(){g.gX(this.u,this.element);this.u.va("onFullerscreenEduClicked")};
gZ.prototype.na=function(){this.u.isFullscreen()?this.B?this.C.hide():this.C.show():this.hide();g.dN(this.u,this.element,this.u.isFullscreen()&&!this.B)};g.u(g.hZ,g.V);g.k=g.hZ.prototype;g.k.onClick=function(){var a=this;if(this.J.T().ka||this.J.T().ca("embeds_enable_mobile_custom_controls"))try{this.J.toggleFullscreen()["catch"](function(b){a.Yo(b)})}catch(b){this.Yo(b)}else PX(this.message,this.element,!0)};
g.k.Yo=function(a){String(a).includes("fullscreen error")?g.lr(a):g.kr(a);this.Lx()};
g.k.Lx=function(){this.disable();this.message.tc(this.element,!0)};
g.k.zj=function(){Tr()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.YH=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=.9*window.screen.width,b=.9*window.screen.height,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.Lx()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=Xo(["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.OX(this.J,{G:"div",ia:["ytp-popup","ytp-generic-popup"],U:{role:"alert",tabindex:"0"},S:[b[0],{G:"a",U:{href:"https://support.google.com/youtube/answer/6276924",
target:this.J.T().F},Y:b[2]},b[4]]},100,!0);this.message.hide();g.C(this,this.message);this.message.subscribe("show",function(c){a.C.Ho(a.message,c)});
g.oP(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.u)();this.u=null}};
g.k.na=function(){g.WM(this,dxa(this.J))};
g.k.mD=function(a){if(a){var b={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"g",L:"ytp-fullscreen-button-corner-2",S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-0",S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{G:"g",
L:"ytp-fullscreen-button-corner-1",S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.EX(this.J,"Exit full screen","f");document.activeElement===this.element&&this.J.getRootNode().focus()}else b={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"g",L:"ytp-fullscreen-button-corner-0",S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-1",S:[{G:"path",
qb:!0,L:"ytp-svg-fill",U:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-2",S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",S:[{G:"path",qb:!0,L:"ytp-svg-fill",U:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.EX(this.J,"Full screen","f");this.wa("icon",b);this.wa("title",this.message?null:a);CY(this.C.Jb())};
g.k.aa=function(){this.message||((0,this.u)(),this.u=null);g.V.prototype.aa.call(this)};g.u(iZ,g.V);iZ.prototype.onClick=function(){this.J.va("onCollapseMiniplayer");g.gX(this.J,this.element)};
iZ.prototype.na=function(){this.visible=!this.J.isFullscreen();g.WM(this,this.visible);g.dN(this.J,this.element,this.visible&&this.N)};
iZ.prototype.zb=function(a){g.V.prototype.zb.call(this,a);g.dN(this.J,this.element,this.visible&&a)};g.u(jZ,g.V);jZ.prototype.Pa=function(a){this.na("newdata"===a)};
jZ.prototype.na=function(a){var b=this.J.getVideoData(),c=b.Tk,d=g.lI(this.J);d=(g.hL(d)||g.T(d,4))&&0<c.length;g.WM(this,d);a&&(this.u=!0);if(d){this.u&&this.B.xb();a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id===b.videoId){a=c[e].title;d=g.jJ("Viewing $CAMERA_INDEX of $CAMERA_COUNT",{CAMERA_INDEX:String(e+1),CAMERA_COUNT:String(c.length)})+"\n";break}this.update({text:d+a,preview:b.Gd("default.jpg")});CY(this.tooltip)}else this.B.stop()};
jZ.prototype.C=function(){BY(this.tooltip,this.element,"More cameras available");this.u=!1};g.u(kZ,g.OX);g.k=kZ.prototype;g.k.show=function(){var a=this.Wa;g.OX.prototype.show.call(this);a||(this.C.R(this.api,"presentingplayerstatechange",this.na),this.C.R(this.api,"videodatachange",this.na),this.na())};
g.k.hide=function(){this.C&&(g.Yr(this.C),g.OX.prototype.hide.call(this))};
g.k.na=function(){var a=this,b=this.api.getVideoData(),c=b.Tk,d,e={};for(d=0;d<c.length;e={Qu:e.Qu},d++){var f=this.B[d];f||(f=new g.V({G:"button",ia:["ytp-multicam-menu-item","ytp-button"],U:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},S:[{G:"div",L:"ytp-multicam-menu-item-title",Y:"{{cameraName}}"}]}),e.Qu=d,f.ua("click",function(n){return function(){var p=n.Qu,r=a.api.getVideoData(),t=a.api;p=r.Tk[p];r=g.Z(t.app,1).getVideoData();var w=t.getCurrentTime();p.id===r.videoId?g.Z(t.app)!==
g.Z(t.app,1)&&(g.BM(t.app,1),r.isLivePlayback||t.seekTo(w)):(g.BM(t.app,4),t.app.loadVideoByPlayerVars({videoId:p.id,title:r.title,start:r.isLivePlayback?null:w,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:r.ID}}}},4))}}(e)),f.fa(this.items),this.B[d]=f);
var h=c[d],l=h.id;if(l!==f.element.getAttribute("data-id")){var m=h.thumbnail_url;!m&&l&&(m=hC(this.api.T(),l,"default.jpg"));f.element.style.backgroundImage=m?"url("+m+")":""}f.update({cameraName:h.title,videoId:l,selected:l===b.videoId?!0:null})}for(;d<this.B.length;)this.B.pop().dispose();d=g.lI(this.api);b=c.length||!b.Dc();g.hL(d)||g.T(d,4)||b||!this.af()||PX(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.Tk,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.B[c].focus();break}};
g.k.aa=function(){g.fg(this.B);g.OX.prototype.aa.call(this)};g.u(lZ,g.B);lZ.prototype.u=function(){var a=(0,g.N)()-this.startTime;a=a<this.duration?a/this.duration:1;this.B(g.Ln(yCa,a));1>a&&this.delay.start()};
var yCa=new g.Kn(0,0,.4,0,.2,1,1,1),$xa=/[0-9.-]+|[^0-9.-]+/g;g.u(nZ,g.V);g.k=nZ.prototype;g.k.nD=function(a){this.visible=300<=a.width;g.WM(this,this.visible);g.dN(this.J,this.element,this.visible&&this.N)};
g.k.kO=function(){this.J.T().W?this.J.isMuted()?this.J.unMute():this.J.mute():PX(this.message,this.element,!0);g.gX(this.J,this.element)};
g.k.rL=function(a){this.setVolume(a.volume,a.muted)};
g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.J.T(),f=0===d?1:50<a?1:0;if(this.F!==f){var h=this.X;isNaN(h)?cya(this,f):mZ(this.ba,function(m){cya(c,h+(c.F-h)*m)},250);
this.F=f}d=0===d?1:0;if(this.D!==d){var l=this.P;isNaN(l)?dya(this,d):mZ(this.W,function(m){dya(c,l+(c.D-l)*m)},250);
this.D=d}e.W&&(e=g.EX(this.J,"Mute","m"),d=g.EX(this.J,"Unmute","m"),e=b?d:e,this.wa("title",e),this.wa("label",e),CY(this.tooltip))};
g.k.zb=function(a){g.V.prototype.zb.call(this,a);g.dN(this.J,this.element,this.visible&&a)};
var aya=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],bya=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.u(oZ,g.V);oZ.prototype.onClick=function(){this.J.togglePictureInPicture()};g.u(g.pZ,g.V);g.pZ.prototype.B=function(a){eya(this,a.state)};
g.pZ.prototype.Pa=function(){g.J(this.element,"ytp-play-button-playlist",g.SW(this.J))};
g.pZ.prototype.Rn=function(){g.hL(g.lI(this.J))?this.J.pauseVideo():this.J.playVideo()};g.u(g.sZ,g.V);g.k=g.sZ.prototype;g.k.Pa=function(){gya(this);this.D&&(this.Eb(this.D),this.D=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.Pa,this),this.D=this.R(this.J,"progresssync",this.vL);this.C=hya(this);rZ(this);this.wx(g.pG(this.J).getPlayerSize())};
g.k.wx=function(a){a=void 0===a?g.pG(this.J).getPlayerSize():a;var b=g.SW(this.J)||this.u&&g.eX(this.J)||iya(this);g.WM(this,b&&(this.u||400<=a.width))};
g.k.onClick=function(a){var b=!0;this.I?b=g.AX(a,this.J):g.ip(a);b&&(this.u&&5===this.J.getPresentingPlayerType()?this.J.V("ytoprerollinternstitialnext"):this.u?this.J.nextVideo(!0):this.C?this.J.seekTo(0):this.J.previousVideo(!0))};
g.k.vL=function(){var a=hya(this);a!==this.C&&(this.C=a,rZ(this))};
g.k.aa=function(){this.B&&(this.B(),this.B=null);gya(this);g.V.prototype.aa.call(this)};g.u(tZ,g.V);tZ.prototype.Ma=function(a){return"PLAY_PROGRESS"===a?this.F:"LOAD_PROGRESS"===a?this.D:this.B};jya.prototype.update=function(a,b,c,d){this.width=b;this.B=c;this.F=d;this.u=b-c-d;this.position=g.be(a,c,c+this.u);this.D=this.position-c;this.C=this.D/this.u};g.u(kya,g.V);g.u(g.wZ,g.XM);g.k=g.wZ.prototype;g.k.Ra=function(){g.yZ(this);oya(this,this.ra)};
g.k.Gc=function(){zZ(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.cu()};
g.k.xL=function(a){if(!g.jp(a)){var b=!1;switch(g.kp(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.ip(a)}};
g.k.oD=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.jJ=function(){this.oD("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();this.Ub=c&&a.allowLiveDvr;yya(this,this.api.je());b&&(c?(c=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=c,EZ(this),AZ(this,this.I,this.ha)):this.cu(),g.s_(this.tooltip));if(a){c=a.watchNextResponse;if(c=!a.isLivePlayback&&c){c=this.api.getVideoData().multiMarkersPlayerBarRenderer;var d=this.api.getVideoData().Av;c=null!=c||null!=d&&0<d.length}if(c)if(c=this.api.getVideoData().multiMarkersPlayerBarRenderer){var e;this.Ja=
null===(e=c.visibleOnLoad)||void 0===e?void 0:e.key;e=c.markersMap;null==this.Ja&&(this.Ja=e[0].key);e=g.q(e);for(c=e.next();!c.done;c=e.next())c=c.value,c.key&&c.value&&(this.Lb[c.key]=c.value);e=this.Ja;var f,h;if(c=null===(f=this.Lb[e])||void 0===f?void 0:f.chapters)pya(this,c),this.api.getVideoData().Ba=this.Ba;if(f=null===(h=this.Lb[e])||void 0===h?void 0:h.markers){var l;mya(this);h=g.q(f);for(f=h.next();!f.done;f=h.next())if(e=f.value,f=new kya,e=e.markerRenderer)f.title=(null===(l=e.title)||
void 0===l?void 0:l.simpleText)||"",f.timeRangeStartMillis=e.timeRangeStartMillis||NaN,f.thumbnailUrl=e.thumbnailUrl||"",f.onActiveCommand=(null===e||void 0===e?void 0:e.onActiveCommand)||void 0,this.ra.push(f),g.C(this,f),f.fa(this.ce,this.ce.children.length);oya(this,this.ra)}}else{if(l=this.api.getVideoData().Av)pya(this,l),this.api.getVideoData().Ba=this.Ba}else lya(this),mya(this)}zZ(this)};
g.k.wL=function(a){this.F&&!g.T(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.F.cancel()};
g.k.uG=function(a){(this.K=a)?(this.wa("clipstarticon",wN()),this.wa("clipendicon",wN()),this.wa("clipstarttitle",null),this.wa("clipendtitle",null)):(this.wa("clipstarticon",oN()),this.wa("clipendicon",nN()),this.wa("clipstarttitle","Watch entire video"),this.wa("clipendtitle","Watch entire video"));EZ(this);AZ(this,this.I,this.ha)};
g.k.HO=function(a,b,c){var d=g.yg(this.element),e=xZ(this).u,f=c?c.getAttribute("data-tooltip"):void 0,h=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;h&&(a=aP(this.u,Number(c.getAttribute("data-position")),0)*e+g.yg(this.Oc).x);this.Na.x=a-d.x;this.Na.y=b-d.y;a=xZ(this);d=DZ(this,a);b=f||g.PO(this.Ub?d-this.u.u:d);c=a.position+this.ud;d-=this.api.lc();if(this.api.eg()){if(1<this.Ba.length)for(e=CZ(this,this.Na.x,!0),h=0;h<this.Ba.length;)g.J(this.Ba[h].u,
"ytp-exp-chapter-hover-effect",h===e),h++;h=this.tooltip.scale;l=(isNaN(l)?0:l)-45*h;e=FY(this.Ba,1E3*d);(e=this.Ba[e].title)||(l+=16*h);.6===this.tooltip.scale&&(l=e?110:126);h=FY(this.Ba,1E3*d);this.da=sya(this,d,h)?h:sya(this,d,h+1)?h+1:-1;g.J(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.da&&1<this.Ba.length);h=320*this.tooltip.scale;var m=e.length*(this.B?8.55:5.7);h=m<=h?m:h;m=h<160*this.tooltip.scale;var n=3;!m&&h/2>a.position&&(n=1);!m&&h/2>this.C-a.position&&(n=2);Rya(this.tooltip,
c,d,b,!!f,l,e,n)}else Rya(this.tooltip,c,d,b,!!f,l);g.J(this.api.getRootNode(),"ytp-progress-bar-hover",!g.T(g.lI(this.api),64));rya(this)};
g.k.GO=function(){g.s_(this.tooltip);g.Bn(this.api.getRootNode(),"ytp-progress-bar-hover")};
g.k.FO=function(a,b){this.D&&(this.D.dispose(),this.D=null);this.wd=b;1<this.Ba.length&&0<this.Pb&&-1!==this.da?this.api.seekTo(this.Ba[this.da].startTime/1E3,!1):this.api.seekTo(DZ(this,xZ(this)),!1);g.I(this.element,"ytp-drag");(this.ac=g.hL(g.lI(this.api)))&&this.api.pauseVideo()};
g.k.IO=function(){var a=this;this.nb=0;g.Bn(this.element,"ytp-pull-ui");g.Bn(this.element,"ytp-pulling");this.D&&(this.D.dispose(),this.D=null);if(0<this.P){var b=(0,g.N)();this.D=new g.qn(function(){var c=a.P,d=xZ(a).position,e=1-Math.pow(1-((0,g.N)()-b)/200,3);d+=e*(a.I*a.C-d);if(0>e||1<e)e=1;tya(a,(1-e)*c,d,a.I);1>e&&a.D.start()});
this.D.start()}if(g.T(g.lI(this.api),32)||3===this.api.getPresentingPlayerType())1<this.Ba.length&&0<this.Pb&&-1!==this.da?this.api.seekTo(this.Ba[this.da].startTime/1E3):this.api.seekTo(DZ(this,xZ(this))),g.Bn(this.element,"ytp-drag"),this.ac&&!g.T(g.lI(this.api),2)&&this.api.playVideo()};
g.k.JO=function(a,b){var c=this,d=!1,e=!1,f=xZ(this);3600<=this.u.getLength()&&1===this.Ba.length&&(tya(this,this.wd-b-10,f.position,f.C),e=!0,d=this.P>.1*(this.B?60:40),f=xZ(this));g.J(this.element,"ytp-pull-ui",e);d&&g.I(this.element,"ytp-pulling");d=0;f.B&&0>=f.position&&1===this.Ba.length?d=-1:f.F&&f.position>=f.width&&1===this.Ba.length&&(d=1);if(this.nb!==d&&1===this.Ba.length&&(this.nb=d,this.D&&(this.D.dispose(),this.D=null),d)){var h=(0,g.N)();this.D=new g.qn(function(){var l=c.C*(c.ea-1);
c.W=g.be(c.W+c.nb*((0,g.N)()-h)*.3,0,l);BZ(c);c.api.seekTo(DZ(c,xZ(c)),!1);0<c.W&&c.W<l&&c.D.start()});
this.D.start()}this.api.seekTo(DZ(this,f),!1)};
g.k.setPosition=function(a,b,c){this.ud=a;this.C=b;this.B=c;BZ(this);1===this.Ba.length&&(this.Ba[0].width=b||0)};
g.k.XD=function(){this.K||(this.wa("clipstarticon",mN()),this.wa("clipendicon",mN()),g.I(this.element,"ytp-clip-hover"))};
g.k.WD=function(){this.K||(this.wa("clipstarticon",oN()),this.wa("clipendicon",nN()),g.Bn(this.element,"ytp-clip-hover"))};
g.k.cu=function(){this.clipStart=0;this.clipEnd=Infinity;EZ(this);AZ(this,this.I,this.ha)};
g.k.vG=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Z[c]){var d=g.Fe("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Z[c]=b;this.Qa[c]=d;yn(d,b.style);uya(this,c);g.R(this.api.T().experiments,"disable_ad_markers_on_content_progress_bar")||this.Ba[0].C.appendChild(d)}}else xya(this,b)};
g.k.xQ=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())xya(this,b.value)};
g.k.aa=function(){yya(this,!1);g.XM.prototype.aa.call(this)};g.u(HZ,g.V);HZ.prototype.isActive=function(){return!!this.J.getOption("remote","casting")};
HZ.prototype.na=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=1<this.J.getOption("remote","receivers").length);g.WM(this,a&&400<=g.pG(this.J).getPlayerSize().width);var b=1;a&&this.isActive()&&(b=2);if(this.u!==b){this.u=b;switch(b){case 1:this.wa("icon",{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,U:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
fill:"#fff"}}]});break;case 2:this.wa("icon",g.iN())}g.J(this.element,"ytp-remote-button-active",this.isActive())}};
HZ.prototype.B=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var a=this.Ta,b=this.element;if(a.af())a.fb();else{a.initialize();a:{var c=g.q(a.Uc.items);for(var d=c.next();!d.done;d=c.next())if(d=d.value,0===d.priority){c=d;break a}c=null}c&&(c.open(),a.tc(b));a.tc(b)}}};g.u(IZ,g.V);IZ.prototype.u=function(a){a=this.B&&400<=a.width;g.WM(this,a);g.dN(this.J,this.element,a)};
IZ.prototype.C=function(){if(this.Ta.Wa)this.Ta.fb();else{var a=g.nX(g.NW(this.J));a&&!a.loaded&&(a.ee("tracklist",{includeAsr:!0}).length||a.load());g.gX(this.J,this.element);this.Ta.tc(this.element)}};
IZ.prototype.updateBadge=function(){var a=(a=g.Z(this.J.app))?!!(a.u.La&&a.u.La.video&&Ov(a.u.La.video)):!1;var b=this.J.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.VW(this.J),e=c&&!!g.UW(g.NW(this.J));b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.J(this.element,"ytp-hdr-quality-badge",a);g.J(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.J(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.J(this.element,"ytp-5k-quality-badge",
!a&&"hd2880"===c);g.J(this.element,"ytp-8k-quality-badge",!a&&"highres"===c);g.J(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.J(this.element,"ytp-3d-badge",!a&&e&&d)};g.u(KZ,g.rY);KZ.prototype.Dc=function(){var a=g.WW(g.NW(this.J));return void 0!==a&&a.loaded};
KZ.prototype.na=function(){void 0!==g.WW(g.NW(this.J))&&3!==this.J.getPresentingPlayerType()?this.u||(this.Ta.Nb(this),this.u=!0):this.u&&(this.Ta.Wd(this),this.u=!1);this.setValue(this.Dc())};
KZ.prototype.B=function(a){this.Dc();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.V("annotationvisibility",a)};
KZ.prototype.aa=function(){this.u&&this.Ta.Wd(this);g.rY.prototype.aa.call(this)};g.u(g.LZ,g.jY);g.k=g.LZ.prototype;g.k.open=function(){g.tY(this.Ta,this.C)};
g.k.zc=function(a){Aya(this);this.options[a].element.setAttribute("aria-checked","true");this.pc(this.rh(a));this.B=a};
g.k.lv=function(a,b,c){var d=this;b=new g.jY({G:"div",ia:["ytp-menuitem"],U:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},S:[{G:"div",ia:["ytp-menuitem-label"],Y:"{{label}}"}]},b,this.rh(a,!0));b.ua("click",function(){d.Be(a)});
return b};
g.k.enable=function(a){this.F?a||(this.F=!1,this.sn(!1)):a&&(this.F=!0,this.sn(!0))};
g.k.sn=function(a){a?this.Ta.Nb(this):this.Ta.Wd(this)};
g.k.Be=function(a){this.V("select",a)};
g.k.rh=function(a){return a.toString()};
g.k.yL=function(a){g.jp(a)||39!==g.kp(a)||(this.open(),g.ip(a))};
g.k.aa=function(){this.F&&this.Ta.Wd(this);g.jY.prototype.aa.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.u(NZ,g.LZ);NZ.prototype.na=function(){var a=this.J.getAvailableAudioTracks();1<a.length?(g.MZ(this,g.Pc(a,this.D)),this.tracks=g.Hb(a,this.D,this),this.u.pc(a.length?" ("+a.length+")":""),this.V("size-change"),this.zc(this.D(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)};
NZ.prototype.Be=function(a){g.LZ.prototype.Be.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Ta.Sf()};
NZ.prototype.D=function(a){return a.toString()};g.u(OZ,g.rY);OZ.prototype.C=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&g.eX(this.J))this.B||(this.Ta.Nb(this),this.B=!0,this.u.push(this.R(this.J,"videodatachange",this.C)),this.u.push(this.R(this.J,"videoplayerreset",this.C)),this.u.push(this.R(this.J,"onPlaylistUpdate",this.C)),this.u.push(this.R(this.J,"autonavchange",this.D)),a=this.J.getVideoData(),this.D(a.autonavState));else if(this.B){this.Ta.Wd(this);this.B=!1;a=g.q(this.u);for(var b=a.next();!b.done;b=a.next())this.Eb(b.value)}};
OZ.prototype.D=function(a){this.setValue(1!==a)};
OZ.prototype.F=function(a){var b=this.J;a=a?2:1;EAa(b.app,a);a&&Q0(b.app,a)};
OZ.prototype.aa=function(){this.B&&this.Ta.Wd(this);g.rY.prototype.aa.call(this)};g.u(PZ,g.OX);PZ.prototype.tc=function(){g.OX.prototype.tc.call(this);this.dialog.focus()};g.u(QZ,g.jY);QZ.prototype.zb=function(a){this.B&&g.dN(this.J,this.element,this.u&&a)};
QZ.prototype.D=function(){var a,b,c=null===(b=null===(a=this.J.getVideoData())||void 0===a?void 0:a.accountLinkingConfig)||void 0===b?void 0:b.linked;if(c&&!this.u){var d,e,f,h,l,m;c=null===(d=this.J.getVideoData())||void 0===d?void 0:d.accountLinkingConfig;g.iY(this,RZ(null===(e=null===c||void 0===c?void 0:c.menuData)||void 0===e?void 0:e.connectedMenuLabel));this.C=new PZ(this.J,RZ(null===(f=null===c||void 0===c?void 0:c.menuData)||void 0===f?void 0:f.connectedDialogTitle),RZ(null===(h=null===c||
void 0===c?void 0:c.menuData)||void 0===h?void 0:h.connectedDialogMessage),RZ(null===(l=null===c||void 0===c?void 0:c.menuData)||void 0===l?void 0:l.confirmButtonText));g.C(this,this.C);d=(null===(m=null===c||void 0===c?void 0:c.menuData)||void 0===m?void 0:m.trackingParams)||null;if(this.B=!!d)g.$M(this.J,this.element,this,!0),g.aN(this.J,this.element,d);this.Ta.Nb(this);this.u=!0}else!c&&this.u&&(this.Ta.Wd(this),this.u=!1)};
QZ.prototype.onClick=function(){this.B&&g.gX(this.J,this.element);this.Ta.fb();this.C&&this.C.tc()};g.u(SZ,g.LZ);g.k=SZ.prototype;g.k.Dp=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&(this.D=this.J.nl(),a=this.J.getAvailableQualityLevels(),g.Lwa(this.J)&&g.Mwa(this.J)&&a.unshift("missing-qualities"),Qwa(this.J)&&a.unshift("inline-survey"),g.MZ(this,a),a.length)){this.pD();this.enable(!0);return}this.enable(!1)};
g.k.pD=function(){var a=this.J.getPreferredQuality();this.options[a]&&(this.u=this.J.getPlaybackQuality(),this.zc(a),"auto"===a&&this.pc(this.rh(a)))};
g.k.Be=function(a){"missing-qualities"!==a&&(g.LZ.prototype.Be.call(this,a),this.J.setPlaybackQuality(a),this.Ta.fb(),this.Dp())};
g.k.lv=function(a,b,c){var d=this;if("inline-survey"!==a)return g.LZ.prototype.lv.call(this,a,b,c);a=[{G:"span",Y:"Looks good?"}];c={};for(var e=g.q([!0,!1]),f=e.next();!f.done;c={Nq:c.Nq},f=e.next())c.Nq=f.value,f=new g.V({G:"span",L:"ytp-menuitem-inline-survey-response",S:[c.Nq?g.uN():sN()],U:{tabindex:"0",role:"button"}}),f.ua("click",function(h){return function(){var l=g.Z(d.J.app);l&&(l.sb("iqsr",h.Nq?"0":"1"),l.getVideoData().eC=!0);d.Ta.fb();d.Dp()}}(c)),a.push(f);
return new g.jY({G:"div",L:"ytp-menuitem",U:{"aria-disabled":"true"},S:[{G:"div",ia:["ytp-menuitem-label"],S:a}]},b)};
g.k.rh=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{G:"a",U:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.T().F},Y:"Missing options?"};if("inline-survey"===a)return"";var c=[Bya(this,a)],d=this.J.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),c.push(Bya(this,this.u,["ytp-menu-label-secondary"])));return{G:"div",S:c}};g.u(TZ,g.V);g.k=TZ.prototype;g.k.init=function(){this.dm(this.u);this.wa("minvalue",this.minimumValue);this.wa("maxvalue",this.maximumValue)};
g.k.EL=function(a){if(!g.jp(a)){switch(g.kp(a)){case 37:case 40:var b=-this.I;break;case 39:case 38:b=this.I;break;default:return}this.dm(this.u+b);g.ip(a)}};
g.k.CL=function(a){var b=this.u;b+=0>(a.deltaX||-a.deltaY)?-this.F:this.F;this.dm(b);g.ip(a)};
g.k.DL=function(a){a=(a-g.yg(this.B).x)/this.K*this.range+this.minimumValue;this.dm(a)};
g.k.dm=function(a,b){b=void 0===b?"":b;var c=g.be(a,this.minimumValue,this.maximumValue);""===b&&(b=c.toString());this.wa("valuenow",c);this.wa("valuetext",b);this.W.style.left=(c-this.minimumValue)/this.range*(this.K-this.P)+"px";this.u=c};
g.k.focus=function(){this.Z.focus()};g.u(VZ,TZ);VZ.prototype.X=function(){this.J.setPlaybackRate(this.u,!0)};
VZ.prototype.dm=function(a){TZ.prototype.dm.call(this,a,WZ(this,a).toString());this.C&&(UZ(this),this.ba())};
VZ.prototype.ea=function(){var a=this.J.getPlaybackRate();WZ(this,this.u)!==a&&(this.dm(a),UZ(this))};g.u(XZ,g.XM);XZ.prototype.focus=function(){this.u.focus()};g.u(Cya,mY);g.u(YZ,g.LZ);g.k=YZ.prototype;g.k.rh=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.na=function(){var a=this.J.getPresentingPlayerType();this.enable(2!==a&&3!==a);Fya(this)};
g.k.sn=function(a){g.LZ.prototype.sn.call(this,a);a?(this.K=this.R(this.J,"onPlaybackRateChange",this.FL),Fya(this),Dya(this,this.J.getPlaybackRate())):(this.Eb(this.K),this.K=null)};
g.k.FL=function(a){var b=this.J.getPlaybackRate();this.I.includes(b)||Eya(this,b);Dya(this,a)};
g.k.Be=function(a){g.LZ.prototype.Be.call(this,a);a===this.u?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);this.Ta.Sf()};g.u($Z,g.LZ);g.k=$Z.prototype;g.k.zc=function(a){g.LZ.prototype.zc.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.rh=function(a){return this.getOption(a).text||""};
g.k.Be=function(a){g.LZ.prototype.Be.call(this,a);this.V("settingChange",this.setting,this.settings[a].option)};g.u(a_,g.nY);a_.prototype.Xd=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.uk[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.zc(e),c.D.element.setAttribute("aria-checked",String(!d)),c.u.element.setAttribute("aria-checked",String(d)))}}};
a_.prototype.Of=function(a,b){this.V("settingChange",a,b)};g.u(b_,g.LZ);b_.prototype.getKey=function(a){return a.languageCode};
b_.prototype.rh=function(a){return this.languages[a].languageName||""};
b_.prototype.Be=function(a){this.V("select",a);g.yY(this.Ta)};g.u(c_,g.LZ);g.k=c_.prototype;g.k.getKey=function(a){return g.Wb(a)?"__off__":a.displayName};
g.k.rh=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.Be=function(a){"__translate__"===a?this.u.open():"__contribute__"===a?(this.J.pauseVideo(),this.J.isFullscreen()&&this.J.toggleFullscreen(),a=g.FT(this.J.T(),this.J.getVideoData()),g.sK(a)):(this.J.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.LZ.prototype.Be.call(this,a),this.Ta.Sf())};
g.k.na=function(){var a=this.J.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.J.getVideoData();b=b&&b.jr;var c={};if(a||b){if(a){var d=this.J.getOption("captions","track");c=this.J.getOption("captions","tracklist",{includeAsr:!0});var e=this.J.getOption("captions","translationLanguages");this.tracks=g.Hb(c,this.getKey,this);var f=g.Pc(c,this.getKey);if(e.length&&!g.Wb(d)){var h=d.translationLanguage;if(h&&h.languageName){var l=h.languageName;h=e.findIndex(function(m){return m.languageName===
l});
taa(e,h)}Hya(this.u,e);f.push("__translate__")}e=this.getKey(d)}else this.tracks={},f=[],e="__off__";f.unshift("__off__");this.tracks.__off__={};b&&f.unshift("__contribute__");this.tracks[e]||(this.tracks[e]=d,f.push(e));g.MZ(this,f);this.zc(e);d&&d.translationLanguage?this.u.zc(this.u.getKey(d.translationLanguage)):Aya(this.u);a&&this.D.Xd(this.J.getSubtitlesUserSettings());this.K.pc(c&&c.length?" ("+c.length+")":"");this.V("size-change");this.enable(!0)}else this.enable(!1)};
g.k.JL=function(a){var b=this.J.getOption("captions","track");b=g.Zb(b);b.translationLanguage=this.u.languages[a];this.J.setOption("captions","track",b)};
g.k.Of=function(a,b){if("reset"===a)this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}Iya(this,!0);this.I.start();this.D.Xd(this.J.getSubtitlesUserSettings())};
g.k.nP=function(a){a||this.I.wg()};
g.k.aa=function(){this.I.wg();g.LZ.prototype.aa.call(this)};g.u(d_,g.vY);g.k=d_.prototype;g.k.initialize=function(){if(!this.Dd){this.Dd=!0;this.fx=new QZ(this.J,this);g.C(this,this.fx);var a=new SZ(this.J,this);g.C(this,a);a=new c_(this.J,this);g.C(this,a);a=new KZ(this.J,this);g.C(this,a);this.J.T().Rb&&(a=new YZ(this.J,this),g.C(this,a));this.J.T().ob&&!g.R(this.J.T().experiments,"web_player_move_autonav_toggle")&&(a=new OZ(this.J,this),g.C(this,a));a=new NZ(this.J,this);g.C(this,a);JZ(this.settingsButton,this.Uc.items.length)}};
g.k.Nb=function(a){this.initialize();this.Uc.Nb(a);JZ(this.settingsButton,this.Uc.items.length)};
g.k.Wd=function(a){this.Wa&&1>=this.Uc.items.length&&this.hide();this.Uc.Wd(a);JZ(this.settingsButton,this.Uc.items.length)};
g.k.tc=function(a){this.initialize();0<this.Uc.items.length&&g.vY.prototype.tc.call(this,a)};
g.k.show=function(){g.vY.prototype.show.call(this);g.I(this.J.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.vY.prototype.hide.call(this);g.Bn(this.J.getRootNode(),"ytp-settings-shown")};
g.k.Eg=function(a){var b;g.dN(this.J,this.element,a);null===(b=this.fx)||void 0===b?void 0:b.zb(a)};g.u(e_,g.V);e_.prototype.onClick=function(){var a=this.J.app;a.B.va("SIZE_CLICKED",!a.td)};
e_.prototype.na=function(){g.WM(this,this.J.app.Ef&&!this.J.isFullscreen()&&3!==this.J.getPresentingPlayerType());if(this.Wa){var a=this.J.isWidescreen();if(this.isWidescreen!==a){var b=a?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,U:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",qb:!0,U:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",
fill:"#fff","fill-rule":"evenodd"}}]};null==this.isWidescreen?this.wa("icon",b):Zxa(this.transition,this.element,b);this.isWidescreen=a;b=g.EX(this.J,"Default view","t");var c=g.EX(this.J,"Theater mode","t");this.wa("title",a?b:c);CY(this.tooltip)}}};g.u(f_,g.V);f_.prototype.onClick=function(){this.J.toggleSubtitles()};
f_.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName};
f_.prototype.na=function(){var a=null!=g.nX(g.NW(this.J));g.WM(this,a&&300<=g.pG(this.J).getPlayerSize().width);a&&this.wa("pressed",this.isEnabled())};g.u(g.g_,g.V);g.k=g.g_.prototype;
g.k.Gc=function(){var a=g.pG(this.api).getPlayerSize().width,b=a>=this.K&&(!this.B||!g.T(g.lI(this.api),64));g.WM(this,b);g.J(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=g.PO(g.R(this.api.T().experiments,"halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1));this.C!==c&&(this.wa("currenttime",c),this.C=c);b=g.PO(g.R(this.api.T().experiments,"halftime_ux_killswitch")?a.duration:this.api.getDuration(b,
!1));this.D!==b&&(this.wa("duration",b),this.D=b)}this.B&&(a=a.isAtLiveHead,this.I!==a||this.F!==this.isPremiere)&&(this.I=a,this.F=this.isPremiere,this.Gc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.pc(this.isPremiere?"Premiere":"Live"),a?this.u&&(this.u(),this.u=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.u=g.cY(this.tooltip,this.liveBadge.element)))};
g.k.Pa=function(a,b,c){this.updateVideoData(g.R(this.api.T().experiments,"enable_topsoil_wta_for_halftime")&&2===c?this.api.getVideoData(1):b);this.Gc()};
g.k.updateVideoData=function(a){this.B=a.isLivePlayback&&!a.li;this.isPremiere=a.isPremiere;g.J(this.element,"ytp-live",this.B)};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.k.aa=function(){this.u&&this.u();g.V.prototype.aa.call(this)};g.u(j_,g.V);g.k=j_.prototype;g.k.zj=function(){var a=this.B.Hd();this.F!==a&&(this.F=a,i_(this,this.api.getVolume(),this.api.isMuted()))};
g.k.sD=function(a){g.WM(this,350<=a.width)};
g.k.OL=function(a){if(!g.jp(a)){var b=g.kp(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.be(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.ip(a))}};
g.k.ML=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.be(b/10,-10,10));g.ip(a)};
g.k.rP=function(){h_(this,this.u,!0,this.D,this.B.kh());this.X=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.NL=function(a){var b=this.F?78:52,c=this.F?18:12;a-=g.yg(this.W).x;this.api.setVolume(100*g.be((a-c/2)/(b-c),0,1))};
g.k.qP=function(){h_(this,this.u,!1,this.D,this.B.kh());0===this.volume&&(this.api.mute(),this.api.setVolume(this.X))};
g.k.PL=function(a){i_(this,a.volume,a.muted)};
g.k.GA=function(){h_(this,this.u,this.C,this.D,this.B.kh())};
g.k.aa=function(){g.V.prototype.aa.call(this);g.Bn(this.K,"ytp-volume-slider-active")};g.u(g.k_,g.V);g.k_.prototype.Pa=function(){var a=this.api.getVideoData(1).Kc,b=this.api.T();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.WM(this,this.visible);g.dN(this.api,this.element,this.visible&&this.N);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.wa("url",a))};
g.k_.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.QO(a),!1,!0,!0);g.LB(this.api.T())&&(b=g.Ld(b,g.GT({},"emb_logo")));g.BX(b,this.api,a);g.gX(this.api,this.element)};
g.k_.prototype.zb=function(a){g.V.prototype.zb.call(this,a);g.dN(this.api,this.element,this.visible&&a)};g.u(m_,g.Wr);g.k=m_.prototype;g.k.Vd=function(){this.Oc.Gc();this.Ih.Gc()};
g.k.yh=function(){this.yx();this.Ac.B?this.Vd():g.s_(this.Oc.tooltip)};
g.k.Mp=function(){this.Vd();this.Cd.start()};
g.k.yx=function(){var a=!this.J.T().u&&300>g.zya(this.Oc)&&g.lI(this.J).Gb()&&!!window.requestAnimationFrame,b=!a;this.Ac.B||(a=b=!1);b?this.K||(this.K=this.R(this.J,"progresssync",this.Vd)):this.K&&(this.Eb(this.K),this.K=null);a?this.Cd.isActive()||this.Cd.start():this.Cd.stop()};
g.k.Ra=function(){var a=this.B.Hd(),b=g.pG(this.J).getPlayerSize(),c=n_(this),d=Math.max(b.width-2*c,100);if(this.ka!==b.width||this.ha!==a){this.ka=b.width;this.ha=a;var e=Mya(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";this.Oc.setPosition(c,e,a);this.B.Jb().ba=e}c=this.u;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-o_(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.Bt=e;c.Vn();this.yx();!this.J.T().ca("html5_player_bottom_linear_gradient")&&g.R(this.J.T().experiments,
"html5_player_dynamic_bottom_gradient")&&g.aZ(this.ea,b.height)};
g.k.Pa=function(){var a=this.J.getVideoData();this.W.style.background=a.Kc?a.bj:"";g.WM(this.X,a.Cy)};
g.k.Ma=function(){return this.C.element};var $1={},p_=($1.CHANNEL_NAME="ytp-title-channel-name",$1.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",$1.LINK="ytp-title-link",$1.SESSIONLINK="yt-uix-sessionlink",$1.SUBTEXT="ytp-title-subtext",$1.TEXT="ytp-title-text",$1.TITLE="ytp-title",$1);g.u(q_,g.V);q_.prototype.onClick=function(a){g.gX(this.api,this.element);var b=this.api.getVideoUrl(!g.QO(a),!1,!0);g.LB(this.api.T())&&(b=g.Ld(b,g.GT({},"emb_title")));g.BX(b,this.api,a)};
q_.prototype.na=function(){var a=this.api.getVideoData(),b=this.api.T();this.wa("title",a.title);Nya(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.Ui&&c.bf?(this.wa("channelLink",c.Ui),this.wa("channelName",c.author)):Nya(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.ce;g.J(this.link,p_.FULLERSCREEN_LINK,c);b.P||!a.videoId||c?this.u&&(this.wa("url",null),this.Eb(this.u),this.u=null):(this.wa("url",this.api.getVideoUrl(!0)),
this.u||(this.u=this.R(this.link,"click",this.onClick)))};g.u(g.r_,g.V);g.k=g.r_.prototype;g.k.gE=function(a,b){if(a<=this.C&&this.C<=b){var c=this.C;this.C=NaN;Pya(this,c)}};
g.k.NJ=function(){OE(this.u,this.C,160*this.scale)};
g.k.vi=function(){switch(this.type){case 2:var a=this.B;a.removeEventListener("mouseout",this.W);a.addEventListener("mouseover",this.D);a.removeEventListener("blur",this.W);a.addEventListener("focus",this.D);Sya(this);break;case 3:Sya(this);break;case 1:this.u&&(this.u.unsubscribe("l",this.gE,this),this.u=null),this.api.removeEventListener("videoready",this.X),this.Z.stop()}this.type=null;this.K&&this.I.hide()};
g.k.Th=function(a){for(var b=0;b<arguments.length;++b);if(this.B)for(b=0;b<arguments.length;b++)g.Me(arguments[b],this.B)&&this.vi()};
g.k.aa=function(){null!=this.type&&this.vi();this.u&&this.u.dispose();g.V.prototype.aa.call(this)};g.u(g.t_,g.V);g.k=g.t_.prototype;g.k.Ct=function(){var a=this.J.getPlayerSize(),b=this.J.T(),c=this.J.getVideoData(),d=g.LB(b)&&g.SW(this.J)&&g.T(g.lI(this.J),128);this.visible=b.Mk&&240<=a.width&&!c.isAd()&&c.Mk&&!d;g.WM(this,this.visible);this.icon&&Vya(this,this.icon);g.dN(this.J,this.element,this.visible&&this.N)};
g.k.OE=function(){this.u=!0;this.B=!1;this.na(1);this.J.T().u&&BY(this.tooltip,this.element);this.J.T().C&&this.J.va("WATCH_LATER_VIDEO_ADDED")};
g.k.tD=function(){return this.J.getVideoData().videoId};
g.k.onClick=function(){var a=this;g.gX(this.J,this.element);var b=this.J.T(),c=this.tD();b.kd?Tya(this,c):this.J.app.Na?this.J.requestStorageAccess(function(){g.Lq("embedsItpWatchLaterResult",{accepted:!0});Fp();Uya(a,c)},function(){g.Lq("embedsItpWatchLaterResult",{accepted:!1});
u_(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):Uya(this,c)};
g.k.TP=function(a,b){this.B=!1;var c="An error occurred. Please try again later.";b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);u_(this,c)};
g.k.PE=function(){this.B=this.u=!1;this.na(2);this.J.T().C&&this.J.va("WATCH_LATER_VIDEO_REMOVED")};
g.k.QL=function(){this.B=this.u=!1;this.na(2)};
g.k.na=function(a,b){var c=this.J.T();Vya(this,a);if(b)this.update({title:b,image:null});else if(c.userDisplayName){var d={USER_NAME:c.userDisplayName};this.update({title:this.u?g.jJ("Added as $USER_NAME",d):g.jJ("Watch later as $USER_NAME",d),image:wC(c)})}else this.update({title:"Watch later",image:null});CY(this.tooltip)};
g.k.zb=function(a){g.V.prototype.zb.call(this,a);g.dN(this.J,this.element,this.visible&&a)};g.u(v_,g.SX);g.k=v_.prototype;g.k.Jb=function(){return this.tooltip};
g.k.GB=function(){return this.df};
g.k.ll=function(a,b){b?this.Xh=a:this.Xh=null;this.pg()};
g.k.Ho=function(a,b){if(b)this.Ak.push(a);else for(var c=this.Ak.length;0<=c;c--)if(this.Ak[c]===a){this.Ak.splice(c,1);break}wX(this.Ac,64,0<this.Ak.length)};
g.k.Kk=function(){g.XW(this.api)&&g.YW(this.api);$W(this.api);return!!this.Xh||Wya(this)||g.SX.prototype.Kk.call(this)};
g.k.pg=function(){var a=!this.Kk(),b=a&&g.XW(this.api)&&!g.T(g.lI(this.api),2),c=this.an&&g.SW(this.api)&&g.T(g.lI(this.api),128);a||c?(this.Qy.show(),this.Ry.show()):(this.Qy.hide(),this.Ry.hide(),this.tooltip.Th(this.mg.element));b?this.Uh.tc():this.Uh.fb();this.df&&Lya(this.df,!a);g.SX.prototype.pg.call(this)};
g.k.En=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Eg(a),h=d||this.df&&g.Me(this.df.Ma(),b),l=d=null;null!=c&&h||(d=g.Eg(b),l=g.Cg(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;if(h){var m=this.df;b=n_(m);d=Mya(m);l=g.pG(this.api).getPlayerSize().height;c=g.be(c,b,b+d-f.width);m=l-o_(m)-f.height}else g.Me(this.mg.element,b)?(m=g.pG(this.api).getPlayerSize().width,c=g.be(c,12,m-f.width-12),m=this.Hd()?this.Fv:this.Ev,"gvn"===this.api.T().playerStyle&&
(m+=20),this.an&&(m-=this.Hd()?26:18)):(b=g.pG(this.api).getPlayerSize(),c=g.be(c,12,b.width-f.width-12),l.y>(b.height-d.height)/2?m=l.y-f.height-12:m=l.y+d.height+12);a.style.top=m+(e||0)+"px";a.style.left=c+"px"};
g.k.yh=function(a){a&&(this.tooltip.Th(this.mg.element),this.df&&this.tooltip.Th(this.df.Ma()));g.SX.prototype.yh.call(this,a)};
g.k.ci=function(a,b){var c=g.pG(this.api).getPlayerSize();c=new g.ig(0,0,c.width,c.height);if(a||this.Ac.B&&!this.Kk()){if(this.api.T().Ki||b){var d=this.Hd()?this.Fv:this.Ev;c.top+=d;c.height-=d}this.df&&(c.height-=o_(this.df))}return c};
g.k.zj=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.Lr.element,b),b.parentElement.insertBefore(this.Kr.element,b.nextSibling))):g.M(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.Lr.detach(),this.Kr.detach());this.Ra();this.Hj()};
g.k.Hd=function(){var a=this.api.T();a=a.ca("embeds_enable_mobile_custom_controls")&&a.u;return this.api.isFullscreen()&&!a||!1};
g.k.showControls=function(a){this.sr=!a;this.pg()};
g.k.Ra=function(){var a=this.Hd();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.J(this.contextMenu.element,"ytp-big-mode",a);this.pg();if(this.Lf()&&this.Qf)this.Xf&&LY(this.Qf,this.Xf),this.shareButton&&LY(this.Qf,this.shareButton),this.Yi&&LY(this.Qf,this.Yi);else{if(this.Qf){a=this.Qf;for(var b=g.q(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.Xf&&!g.Me(this.yf.element,this.Xf.element)&&this.Xf.fa(this.yf.element);this.shareButton&&!g.Me(this.yf.element,
this.shareButton.element)&&this.shareButton.fa(this.yf.element);this.Yi&&!g.Me(this.yf.element,this.Yi.element)&&this.Yi.fa(this.yf.element)}this.Hj();g.SX.prototype.Ra.call(this)};
g.k.lw=function(){if(Wya(this)&&!g.SW(this.api))return!1;var a=this.api.getVideoData();return!g.LB(this.api.T())||2===this.api.getPresentingPlayerType()||!this.ug||((a=this.ug||a.ug)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.SX.prototype.lw.call(this):!1};
g.k.Hj=function(){g.SX.prototype.Hj.call(this);g.dN(this.api,this.title.element,!!this.hi);this.Dn&&this.Dn.zb(!!this.hi);this.channelAvatar.zb(!!this.hi);this.overflowButton&&this.overflowButton.zb(this.Lf()&&!!this.hi);this.shareButton&&this.shareButton.zb(!this.Lf()&&!!this.hi);this.Xf&&this.Xf.zb(!this.Lf()&&!!this.hi);this.Yi&&this.Yi.zb(!this.Lf()&&!!this.hi);if(!this.hi){this.tooltip.Th(this.mg.element);for(var a=0;a<this.zq.length;a++){var b=this.zq[a];b.af()&&b.fb()}}};
g.k.Md=function(a){this.df&&Lya(this.df,this.Kk());this.pg();g.SX.prototype.Md.call(this,a)};
g.k.rO=function(){aX(this.api)&&wX(this.Ac,128,!1)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){return this.oj?this.oj.handleGlobalKeyDown(a,b,c,d,e,f,h):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.oj?this.oj.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.cj=function(){return this.contextMenu.Wa?(this.contextMenu.fb(),!0):this.Ak.length?(this.Ak[this.Ak.length-1].fb(),!0):this.Xh?(this.Xh.fb(),!0):g.SX.prototype.cj.call(this)};
g.k.wy=function(a,b){this.yy=b;this.Ho(a,b);this.AG()};
g.k.AG=function(){var a=this.yy||this.contextMenu.af();this.jv!==a&&(this.jv=a,this.api.va("onAutonavPauseRequest",this.jv))};
g.k.xI=function(){w_(this,this.api.getRootNode(),!0).focus()};
g.k.yI=function(){w_(this,this.api.getRootNode(),!1).focus()};
g.k.wl=function(){return this.df&&this.df.u};
g.k.Fj=function(){this.Ac.Fj()};
g.k.xs=function(){this.Kb.hide()};
g.k.fm=function(a){this.Kb.fm(!g.hL(a))};
g.k.Zp=function(a,b,c,d){this.xr.Zp(a,b,c,d)};
g.k.nN=function(){if(g.R(this.api.T().experiments,"web_player_nitrate_promo_tooltip")){var a=this.api.getVideoData();a&&a.tooltipRenderer&&(this.Sp||(this.Sp=new PY(a.tooltipRenderer,this,this.api),g.C(this,this.Sp),g.oP(this.api,this.Sp.element,8)),this.Sp.Ov(a.tooltipRenderer))}};g.u(g.x_,g.pS);g.x_.prototype.Eh=function(){return!1};
g.x_.prototype.create=function(){var a=this.player.T();nC(a)&&a.u?this.chrome=new g.SX(this.player):this.chrome=new v_(this.player);g.C(this,this.chrome);this.chrome.init();g.dX(this.player,"ux")};g.u(z_,g.B);g.k=z_.prototype;
g.k.gB=function(){return g.Ue(this,function b(){var c=this,d,e,f,h,l,m,n,p,r;return g.Aa(b,function(t){if(1==t.u){d=c;if(c.la())return t["return"](Promise.reject(Error(c.status.error||"disposed")));c.timeout.start();return g.ra(t,c.F,2)}e=c.u.B;if(e.ki())return y_(c,"ended_in_finishTransition"),t["return"](Promise.reject(Error(c.status.error||"")));if(!c.D||!nB(c.D))return y_(c,"next_mse_closed"),t["return"](Promise.reject(Error(c.status.error||"")));if(c.B.W!==c.D)return y_(c,"next_mse_mismatch"),
t["return"](Promise.reject(Error(c.status.error||"")));f=dza(c);h=f.OD;l=f.SA;m=f.ND;fW(c.u,!1,!0);n=cza(e,h,m,!c.B.getVideoData().isAd());gW(c.B,n);c.N&&(c.B.seekTo(c.B.getCurrentTime()+.001,{ep:!0,Py:3}),n.play()||Cr());p=e.jb();p.cpn=c.u.getVideoData().clientPlaybackNonce;p.st=""+h;p.et=""+m;c.B.sb("gapless",g.UA(p));c.u.sb("gaplessTo",c.B.getVideoData().clientPlaybackNonce);r=c.u.getPlayerType()===c.B.getPlayerType();lwa(c.u,l,!1,r,c.B.getVideoData().clientPlaybackNonce);lwa(c.B,c.B.getCurrentTime(),
!0,r,c.u.getVideoData().clientPlaybackNonce);g.um(function(){!d.B.getVideoData().vg&&g.hL(d.B.getPlayerState())&&gwa(d.B)});
A_(c,6);c.dispose();return t["return"](Promise.resolve())})})};
g.k.isFinished=function(){return 6===this.status.status};
g.k.getStatus=function(){return this.status};
g.k.Uk=function(){var a=this.u.getVideoData(),b=this.B.getVideoData();if(a.Ia){var c;if(c=a.ma){c=a.ma;for(var d=!1,e=!1,f=g.q(Object.values(c.u)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.Dc()&&(d=!0),h.info.video&&h.index.Dc()&&(e=!0);c.u["0"]&&(e=!0);c=!(d&&e)}if(!c)if(this.u.B){h=Zya(this.policy,this.u,this.B,this.ff);f=dza(this);c=f.jI;e=f.OD;d=f.SA;f=f.ND;if(!this.K){var l=1E3*gU(this.B.K),m=gU(this.u.K);m=1E3*(d-c-m);h&&"in-the-past"===h&&(m=0);a=a.isAd();var n=this.B.I;
n.qoe&&(n=n.qoe,n.F={DQ:Number(rT(n,"glrem","nst."+l.toFixed()+";rem."+m.toFixed()+";ca."+ +a)),PD:l,vQ:m,isAd:a});this.K=!0}h?y_(this,"cannot_apply"+h+";transitionTimeMs."+this.ff):2===this.status.status?bza(this):(a=this.u.W)&&pB(a)&&(!nB(a)&&g.ak()?y_(this,"mse_closed"):b.ma&&Jz(b.ma)&&a.B&&!a.B.Sr()?y_(this,"encr_upgrade"):(b=this.u.B,b.ki()?y_(this,"elem_ended"):0>e?y_(this,"next_player_future"):(this.I=d,this.C=sB(a,c,d,!0),this.D=sB(a,e,f,!1),a=this.B.getVideoData().clientPlaybackNonce,this.u.sb("gaplessPrep",
"cpn."+a),rW(this.u,this.C),gW(this.u,cza(b,c,d,!this.u.getVideoData().isAd())),A_(this,2),bza(this))))}else y_(this,"no-elem")}};
g.k.zn=function(a){var b=aza(this).PF,c=a===b;b=c?this.C.u:this.C.B;c=c?this.D.u:this.D.B;if(b.isActive()&&!c.isActive()){var d=this.I;iy(a.Ue(),d-.01)&&(A_(this,4),b.setActive(!1),this.B.sb("sbh","1"),c.setActive(!0));a=this.D.B;this.D.u.isActive()&&a.isActive()&&A_(this,5)}};
g.k.oE=function(){4<=this.status.status&&6>this.status.status&&y_(this,"player-reload-after-handoff")};
g.k.aa=function(){$ya(this);this.u.unsubscribe("newelementrequired",this.oE,this);if(this.C){var a=this.C.B;this.C.u.u.unsubscribe("updateend",this.zn,this);a.u.unsubscribe("updateend",this.zn,this)}g.B.prototype.aa.call(this)};
g.k.Vb=function(a){g.xI(a,128)&&y_(this,"player-error-event")};
(function(a,b){if(ex&&b){var c={},d;for(d in b)b.hasOwnProperty(d)&&(c.Su=a.prototype[d],c.Uu=b[d],a.prototype[d]=function(e){return function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];l=fx();h=e.Su.apply(this,h);gx(e.Uu,fx()-l);return h}}(c)),c={Su:c.Su,
Uu:c.Uu}}})(z_,{gB:"gtft"});g.u(B_,g.B);B_.prototype.clearQueue=function(){this.D&&this.D.reject("Queue cleared");C_(this)};
B_.prototype.aa=function(){C_(this);g.B.prototype.aa.call(this)};g.u(E_,g.B);g.k=E_.prototype;
g.k.jL=function(a){var b,c,d,e;a=this.C.get(a);if((null===a||void 0===a?0:a.cpn)&&(null===(c=null===(b=null===a||void 0===a?void 0:a.playerResponse)||void 0===b?void 0:b.videoDetails)||void 0===c?0:c.videoId)){for(var f,h,l=0;l<this.B.length;l++)this.B[l].cpn===a.cpn&&(0===l||this.B[l-1].Qi!==a.Qi?(f=this.u.getVideoData().clientPlaybackNonce,h=this.u.getVideoData().videoId,wW(this.u,"","",a.cpn,a.playerResponse.videoDetails.videoId,!1)):(h=this.B[l-1],f=h.cpn,h=null===(e=null===(d=h.playerResponse)||
void 0===d?void 0:d.videoDetails)||void 0===e?void 0:e.videoId));f&&h&&wW(this.u,a.cpn,a.playerResponse.videoDetails.videoId,f,h,!0)}};
g.k.kL=function(a){var b,c,d,e;a=this.C.get(a);if((null===a||void 0===a?0:a.cpn)&&(null===(c=null===(b=null===a||void 0===a?void 0:a.playerResponse)||void 0===b?void 0:b.videoDetails)||void 0===c?0:c.videoId)){for(var f,h,l=!1,m=0;m<this.B.length;m++)this.B[m].cpn===a.cpn&&(m===this.B.length-1||this.B[m+1].Qi!==a.Qi?(f=this.u.getVideoData().clientPlaybackNonce,h=this.u.getVideoData().videoId,l=!0):(h=this.B[m+1],f=h.cpn,h=null===(e=null===(d=h.playerResponse)||void 0===d?void 0:d.videoDetails)||void 0===
e?void 0:e.videoId));f&&h&&(wW(this.u,a.cpn,a.playerResponse.videoDetails.videoId,f,h,!1),l&&wW(this.u,"","",a.cpn,a.playerResponse.videoDetails.videoId,!0))}g.R(this.K.experiments,"web_player_halftime_dai")&&this.isLiveNow&&a&&a.Zf&&!a.Zf.target&&this.u.getCurrentTime()<hU(this.u.K)&&D_(this,Infinity)};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)D_(this,a);else{b=this.api.Tb();var d=b===this.F?this.I:null;J_(this,!1);this.W=a;null!=c&&this.N.start(c);b&&(this.I=d||b.getPlayerState(),nW(b),this.F=b)}};
g.k.aa=function(){J_(this,!1);iX(this);g.B.prototype.aa.call(this)};
g.k.gw=function(){return is()};
var iza=0;g.u(K_,g.B);g.k=K_.prototype;g.k.lL=function(a){if(this.B===this.api.Tb()){var b=this.I.get(a);b?vza(this,b.target,b.ff,a):L_(this,"e.unexpectedCueRangeTriggered")}else if(b=this.u.find(function(e){return e.Zf.ld===a})){var c=b.Zf,d=c.target;
c=c.ff;d?vza(this,d,c,a):uza(this,b.Fc,c,a)}};
g.k.OO=function(){var a=this.N;O_(this);a&&(N_(this,a)||L_(this,"e.unexpectedPresentingPlayer"),this.api.Tb().addCueRange(a.Zf.ld))};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)oza(this,a);else{b=this.api.Tb();var d=b===this.D?this.K:null;Q_(this,!1);this.X=a;null!=c&&this.W.start(c);b&&(this.K=d||b.getPlayerState(),nW(b),this.D=b)}};
g.k.Nf=function(a){g.xI(a,128)&&yza(this)};
g.k.isManifestless=function(){return mF(this.B.getVideoData())};
g.k.aa=function(){Q_(this,!1);jX(this);g.B.prototype.aa.call(this)};
var pza=0;var Aza="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_EMBEDDED_PLAYER WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.u(V_,g.B);V_.prototype.get=function(a){T_(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
V_.prototype.set=function(a,b,c){this.remove(a,!0);T_(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.N)()+c);for(this.data.push(a);this.data.length>this.C;)(c=this.data.shift())&&W_(this,c,!0);U_(this)};
V_.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(W_(this,c,b),g.sb(this.data,function(d){return d.key===a}),U_(this))};
V_.prototype.aa=function(){var a=this;g.B.prototype.aa.call(this);this.data.forEach(function(b){W_(a,b,!0)});
this.data=[]};g.u(X_,g.B);X_.prototype.aa=function(){g.B.prototype.aa.call(this);this.B=null;this.u&&this.u.disconnect()};var Dza=eb(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}}),Y_=!1;var a2;a2={};g.Z_=(a2.STOP_EVENT_PROPAGATION="html5-stop-propagation",a2.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",a2.IV_DRAWER_OPEN="ytp-iv-drawer-open",a2.MAIN_VIDEO="html5-main-video",a2.VIDEO_CONTAINER="html5-video-container",a2.HOUSE_BRAND="house-brand",a2);g.u($_,g.V);g.k=$_.prototype;g.k.Cp=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];g.An(this.element,b)};
g.k.resize=function(){if(this.u){var a=this.getPlayerSize();if(!a.isEmpty()){var b=this.B;b=!g.ie(a,new g.he(b.width,b.height));var c=Kza(this);b&&(this.B.width=a.width,this.B.height=a.height);a=this.app.T();(c||b||a.za)&&this.app.B.V("resize",this.getPlayerSize())}}};
g.k.updateVideoData=function(a){if(this.u){var b=this.app.T();jk&&(this.u.setAttribute("x-webkit-airplay","allow"),a.title?this.u.setAttribute("title",a.title):this.u.removeAttribute("title"));tF(a)?this.u.setAttribute("disableremoteplayback",""):this.u.removeAttribute("disableremoteplayback");this.u.setAttribute("controlslist","nodownload");b.Ls&&a.videoId&&(this.u.poster=a.Gd("default.jpg"));g.R(b.experiments,"html5_send_origin_for_progressive")&&a.Ia&&!a.Ia.wc()&&this.u.setAttribute("crossorigin",
"anonymous")}b=g.BF(a,"yt:bgcolor");this.C.style.backgroundColor=b?b:"";this.ba=EB(g.BF(a,"yt:stretch"));this.ea=EB(g.BF(a,"yt:crop"),!0);g.J(this.element,"ytp-dni",a.Kc);this.resize()};
g.k.setGlobalCrop=function(a){this.X=EB(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.ka=a;this.resize()};
g.k.getPlayerSize=function(){var a=this.app.T(),b=this.app.B.isFullscreen();if(b&&Yj())return new g.he(window.outerWidth,window.outerHeight);if(b||a.fo){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.F&&this.F.media===a||(this.F=window.matchMedia(a));var c=this.F&&this.F.matches}if(c)return new g.he(window.innerWidth,window.innerHeight)}else{if(!isNaN(this.D.width)&&!isNaN(this.D.height))return this.D.clone();if(this.P&&this.ha&&!this.app.isWidescreen())for(a=
0;a<this.P.length;a++)if(b=this.P[a],b.query.matches)return new g.he(b.size.width,b.size.height)}return new g.he(this.element.clientWidth,this.element.clientHeight)};
g.k.getVideoAspectRatio=function(){return isNaN(this.ba)?Iza(this):this.ba};
g.k.getVideoContentRect=function(a){var b=this.getPlayerSize();a=Jza(this,b,this.getVideoAspectRatio(),a);return new g.ig((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.Op=function(){a0(this)};
g.k.setUseFastSizingOnWatch=function(a){this.ha!==a&&(this.ha=a,this.resize())};
g.k.setInternalSize=function(a){g.ie(this.D,a)||(this.D=a,this.resize())};
g.k.aa=function(){this.W&&g.Oo(this.W);Hza(this);g.V.prototype.aa.call(this)};Lza.prototype.click=function(a,b){this.elements.has(a);this.u.has(a);var c=g.rs();c&&a.visualElement&&g.Qs(c,a.visualElement,b)};g.u(e0,g.V);
e0.prototype.setValue=function(a,b){for(var c=0;c+2<this.D.length&&this.D[c+1]<b;)c++;var d=Math.min(1,(b-this.D[c])/(this.D[c+1]-this.D[c]));if(this.B)this.B.fillStyle=this.F[c],this.B.fillRect(a*this.u,0,this.u,this.heightPx),this.B.fillStyle=this.F[c+1],this.B.fillRect(a*this.u,this.heightPx*(1-d),this.u,this.heightPx);else{var e=this.element.children[a],f=window.devicePixelRatio||1;d=Math.min(this.heightPx,Math.round(this.heightPx*d*f)/f)||0;e.style.height=d+"px";e.style.backgroundColor=this.F[c+
1];e.style.borderTop="solid "+(this.heightPx-d)+"px "+this.F[c]}};g.u(g0,g.V);g.k=g0.prototype;g.k.show=function(){g.V.prototype.show.call(this);this.na()};
g.k.hide=function(){g.V.prototype.hide.call(this);this.delay.stop()};
g.k.stop=function(){this.delay.stop()};
g.k.start=function(){this.delay.isActive()||this.na()};
g.k.na=function(){var a=(0,g.N)(),b=this.F.getStatsForNerds();f0(this.u,b.bandwidth_samples);f0(this.D,b.network_activity_samples);f0(this.C,b.live_latency_samples);f0(this.B,b.buffer_health_samples);this.update(b);a=25<(0,g.N)()-a?5E3:500;this.delay.start(a)};g.u(i0,g.B);i0.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Ua(a),e=b2[d];if(e){try{e.dispose()}catch(h){g.M(h)}b2[d]=null}var f=new i0(a,b,c);g.dg(f,function(){b2[d]=null;f.Ff&&f.Ff()});
return b2[d]=f}catch(h){throw g.M(h),h.stack;}};
g.k=i0.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.k.isVideoInfoVisible=function(){return!(!this.ba||!this.ba.Wa)};
g.k.setIsExternalPlaylist=function(a){this.X=S(!1,a)};
g.k.LM=function(){j0(this)||g.B0(this,5)};
g.k.zO=function(a){j0(this)||(AAa(this),g.hL(a.getPlayerState())&&this.playVideo())};
g.k.canPlayType=function(a){return cB(a)};
g.k.T=function(){return this.u};
g.k.getVideoData=function(){return this.I.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.Z(this,a);return a?TF(a.getVideoData())?1:(a=a.B)?AS(a):0:0};
g.k.xe=function(){var a={},b=g.nX(this.D);b&&g.Xa(a,b.WJ());a.fs=this.B.isFullscreen();a.volume=Math.round(this.B.getVolume());a.muted=this.B.isMuted()?1:0;a.mos=a.muted;if(g.R(this.u.experiments,"html5_enable_embedded_player_visibility_signals")&&this.u.B&&(this.ce&&(b=this.ce,b=null==b.B?null:Math.round(100*b.B)/100,null!=b&&(a.inview=b)),b=this.template.getPlayerSize(),0<b.height&&0<b.width)){b=[Math.round(b.height),Math.round(b.width)];var c=g.jC();1<c&&b.push(c);a.size=b.join(":")}!this.ca("web_player_clips_vss_killswitch")&&
this.I===this.C&&this.P&&(a.clipid=this.P.postId);return a};
g.k.setLoopRange=function(a){var b=!1;!!this.P!==!!a?b=!0:this.P&&a&&(b=this.P.startTimeMs!==a.startTimeMs||this.P.endTimeMs!==a.endTimeMs||this.P.postId!==a.postId);b&&(FD(this.C.ea,"applooprange"),a?(b=new g.tD(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.C.addCueRange(b)):s0(this).clipConfig=void 0,this.P=a,this.B.va("onLoopRangeChange",a),this.I===this.C&&(this.P&&!E0(this,this.C.getCurrentTime())&&this.ny(),g.OT(this.I.I)))};
g.k.getLoopRange=function(){return this.P};
g.k.ny=function(){this.C.seekTo(.001*this.P.startTimeMs)};
g.k.setPlaybackRate=function(a,b){if(!isNaN(a)){var c=$za(this,a);this.C.getPlaybackRate()!==c&&(this.C.setPlaybackRate(c),b&&!this.u.B&&g.Ws("yt-player-playback-rate",c),this.B.va("onPlaybackRateChange",c))}};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return g.RW(this.D).getCurrentTime();var c=g.Z(this,a);return c?b?(c=r0(this,c),F0(this,c.getCurrentTime(),c)):c.getCurrentTime():0};
g.k.getDuration=function(a,b){var c=g.Z(this,a);return c?void 0===b||b?(c=kX(this,c),F0(this,c.getDuration(),c)):c.getDuration():0};
g.k.uc=function(a){a=g.Z(this,a);if(!a)return 0;a=kX(this,a);return F0(this,a.uc(),a)};
g.k.ue=function(a){var b=g.Z(this,a);return b?this.Jc(b)?(b=kX(this,b),b.ue()-b.getCurrentTime()+this.getCurrentTime(a)):b.ue():0};
g.k.getDebugText=function(a){var b=this.C.jb(a);if(this.I&&this.I!==this.C&&(b=IAa(b,this.I.jb(a),"ad"),a)){var c=b;var d={};var e=oe(document,"movie_player");e&&(d.bounds=e.getBoundingClientRect(),d["class"]=e.className);e={};var f=g.te("video-ads");f?(GAa(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.te("videoAdUiSkipContainer"),l=g.te("ytp-ad-skip-button-container"),m=h||l;m?(GAa(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.F&&(b["0sz"]=0===je(this.F.nn()),b.op=this.F.Uo("opacity"),c=this.F.dk().y+this.F.nn().height,b.yof=0>=c,b.dis=this.F.Uo("display"));(a=a?(0,g.wT)():null)&&(b.gpu=a);b.cgr=!0;b.debug_playbackQuality=this.B.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;(a=ZW(this.D))&&(b=IAa(b,a.jb(),"fresca"));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=g.Z(this).jb(!0).debug_error;b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(){return 1===this.ea?1:j0(this)?3:g.Z(this).getPlayerType()};
g.k.getAppState=function(){return this.ea};
g.k.NP=function(a){switch(a.type){case "loadedmetadata":JA("fvb",this.N.timerName)||this.N.tick("fvb");MA("fvb","video_to_ad");this.Rb.start();break;case "loadstart":JA("gv",this.N.timerName)||this.N.tick("gv");MA("gv","video_to_ad");break;case "progress":case "timeupdate":!JA("l2s",this.N.timerName)&&2<=ky(a.target.kf())&&this.N.tick("l2s");break;case "playing":g.rC&&this.Rb.start();if(g.$B(this.u))a=!1;else{var b=g.UW(this.D);a="none"===this.F.Uo("display")||0===je(this.F.nn());var c=b0(this.template),
d=this.I.getVideoData(),e=nC(this.u)||g.UB(this.u);d=cF(d);b=!c||b||e||d||this.u.xc;a=a&&!b}a&&(this.I.sb("hidden","1",!0),this.getVideoData().Ci||(this.ca("html5_new_elem_on_hidden")?(this.getVideoData().Ci=1,this.pE(null),this.I.playVideo()):DAa(this,"hidden",!0)))}};
g.k.ON=function(a,b){this.B.va("onLoadProgress",b)};
g.k.vP=function(){this.B.V("playbackstalledatstart")};
g.k.Qp=function(a,b){var c=r0(this,a);b=F0(this,c.getCurrentTime(),c);this.B.va("onVideoProgress",b)};
g.k.wN=function(){this.B.va("onDompaused")};
g.k.KO=function(){this.B.V("progresssync")};
g.k.OM=function(a){if(1===this.getPresentingPlayerType()){g.xI(a,1)&&!g.T(a.state,64)&&s0(this).isLivePlayback&&this.C.isAtLiveHead()&&1<this.B.getPlaybackRate()&&this.setPlaybackRate(1,!0);g.xI(a,2)&&dAa(this);if(g.T(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.B.va("onError",tCa[b.errorCode]||5);this.B.va("onDetailedError",{errorCode:b.errorCode,errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.Vv});
6048E5<(0,g.N)()-this.u.Ja&&this.B.va("onReloadRequired")}b={};if(a.state.Gb()&&!g.iL(a.state)&&!JA("pbresume","ad_to_video")&&JA("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);IA(b,"ad_to_video");CA("pbresume",void 0,"ad_to_video")}this.B.V("applicationplayerstatechange",a)}};
g.k.NE=function(a){3!==this.getPresentingPlayerType()&&this.B.V("presentingplayerstatechange",a)};
g.k.Nf=function(a){o0(this,jL(a.state));g.T(a.state,1024)&&this.B.isMutedByMutedAutoplay()&&(IW(this,{muted:!1,volume:this.Z.volume},!1),C0(this,!1))};
g.k.BO=function(a){a.state.Gb()&&!g.iL(a.state)&&(Zwa(this.D),g.Yr(this.wd))};
g.k.JM=function(a,b,c){"newdata"===a&&lAa(this);(a=c.clipConfig)&&null!=a.startTimeMs&&null!=a.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(a.startTimeMs)),endTimeMs:Math.floor(Number(a.endTimeMs)),postId:a.postId})};
g.k.dK=function(){this.B.va("onPlaybackAudioChange",this.B.getAudioTrack().u.name)};
g.k.iK=function(a){var b=this.I.getVideoData();a===b&&this.B.va("onPlaybackQualityChange",a.La.Ka().quality)};
g.k.Pa=function(a,b,c){b.getPlayerType();b===this.C&&(this.u.td=c.oauthToken);if(this.u.C&&this.K){if(c.np&&SF(c)){var d=c.np;c.np=null}else d=null;d&&this.K.u(d)}this.getVideoData().enableServerStitchedDai&&!this.W&&(this.W=new E_(this.B,this.u,this.C));if("newdata"===a)rX(this.D,2),this.B.V("videoplayerreset",b);else{if(!this.F)return;"dataloaded"===a&&(this.I===this.C?(c.Oa.Oe(c.YE),this.C.getPlayerState().isError()||(d=j0(this),s0(this).Dc(),d&&g.B0(this,6),fAa(this),d||(d=sX(this.D))&&!d.created&&
oX(this.D)&&d.create())):fAa(this));1===b.getPlayerType()&&(this.u.W&&FAa(this),this.getVideoData().isLivePlayback&&!this.u.zs&&this.C.Td("html5.unsupportedlive","DEVICE_FALLBACK",void 0,void 0),c.Dc()&&(c.In||c.Vt||c.Wt||c.Rc.focEnabled||c.Rc.rmktEnabled||this.getVideoData().bv)&&(d=this.getVideoData(),I0(this,"part2viewed",1,0x8000000000000),I0(this,"engagedview",Math.max(1,1E3*d.Wg),0x8000000000000),d.isLivePlayback||(d=1E3*d.lengthSeconds,I0(this,"videoplaytime25",.25*d,d),I0(this,"videoplaytime50",
.5*d,d),I0(this,"videoplaytime75",.75*d,d),I0(this,"videoplaytime100",d,0x8000000000000),I0(this,"conversionview",d,0x8000000000000))));this.B.V("videodatachange",a,c,b.getPlayerType())}this.B.va("onVideoDataChange",{type:a,playertype:b.getPlayerType()});b===this.C&&this.P&&!E0(this,this.C.getCurrentTime())&&this.ny();a=c.clientScreenNonce;c=c.iu;a&&c?(b=this.Aa,a!==g.rs()&&(vs(a,c),Nza(b))):Nza(this.Aa)};
g.k.xt=function(){v0(this,null);this.B.va("onPlaylistUpdate")};
g.k.TD=function(a){var b=a.getId(),c=s0(this);if("part2viewed"===b)c.fF&&g.at(c.fF),c.Vt&&R0(this,c.Vt),c.Wt&&S0(this,c.Wt);else if("conversionview"===b){var d=this.C.I;d.u&&eua(d.u)}else"engagedview"===b&&g.at(c.In);if(c.gF){d=c.gF;var e={label:a.getId()};if(g.R(this.u.experiments,"send_pyv_ad_mt_and_abandon_pings")){var f=1E3*this.getCurrentTime();e.ad_mt=Math.round(Math.max(0,f)).toString()}d=g.Zp(d,e);g.at(d)}switch(b){case "videoplaytime25":c.Yx&&R0(this,c.Yx);c.Zx&&S0(this,c.Zx);c.iF&&g.at(c.iF);
break;case "videoplaytime50":c.ay&&R0(this,c.ay);c.by&&S0(this,c.by);c.jF&&g.at(c.jF);break;case "videoplaytime75":c.dy&&R0(this,c.dy);c.ey&&S0(this,c.ey);c.kF&&g.at(c.kF);break;case "videoplaytime100":c.Wx&&R0(this,c.Wx),c.Xx&&S0(this,c.Xx),c.hF&&g.at(c.hF)}(b=this.getVideoData().bv)&&qAa(b,a.getId())&&qAa(b,a.getId()+"gaia");this.C.removeCueRange(a)};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.Z(this,a);if(!c)return!1;var d=kX(this,c);c=r0(this,c);return d!==c?d.isAtLiveHead(F0(this,c.getCurrentTime(),c),!0):d.isAtLiveHead(void 0,b)};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.Z(this,d))2===this.ea&&z0(this),this.Jc(d)?this.W?this.W.seekTo(a,b,c):this.ka.seekTo(a,b,c):d.seekTo(a,{oG:!b,pG:c})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.hK=function(){this.B.va("SEEK_COMPLETE")};
g.k.lP=function(a,b){var c=a.getVideoData();if(1===this.ea||2===this.ea)c.startSeconds=b;2===this.ea?z0(this):(this.B.va("SEEK_TO",b),!this.ca("hoffle_api")&&this.K&&EW(this.K,c.videoId))};
g.k.DM=function(){this.B.V("airplayactivechange")};
g.k.EM=function(){this.B.V("airplayavailabilitychange")};
g.k.YM=function(){this.B.V("beginseeking")};
g.k.zN=function(){this.B.V("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.Z(this,a))?kX(this,a).getVideoData().getStoryboardFormat():null};
g.k.eg=function(a){return(a=g.Z(this,a))?kX(this,a).getVideoData().eg():null};
g.k.Jc=function(a){if(a=a||this.I){a=a.getVideoData();if(this.W)a:{var b=this.W;if(a===b.u.getVideoData()&&b.B.length)a=!0;else{b=g.q(b.B);for(var c=b.next();!c.done;c=b.next())if(a.Yb===c.value.Yb){a=!0;break a}a=!1}}else a:if(b=this.ka,a===b.B.getVideoData()&&b.u.length)a=!0;else{b=g.q(b.u);for(c=b.next();!c.done;c=b.next())if(a.Yb===c.value.Yb){a=!0;break a}a=!1}if(a)return!0}return!1};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Jc();a=new g.UE(this.u,a);d&&(a.Yb=d);!g.R(this.u.experiments,"html5_report_dai_ad_playback_killswitch")&&2===b&&this.C&&jua(this.C.I,a.clientPlaybackNonce,a.Up||"",a.breakType||0);tAa(this,a,b,c)};
g.k.clearQueue=function(){this.Qa.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){var f=new g.UE(this.u,a);if(!this.ca("web_player_load_video_context_killswitch")&&e){for(;f.sj.length&&f.sj[0].isExpired();)delete f.sj[0];for(var h=g.q(f.sj),l=h.next();!l.done;l=h.next())e.B(l.value)&&g.Eo(new Iq("Recursive call to loadVideo detected with contexts: ",f.sj.join(", ")));f.sj.push(e)}c||(a&&aG(a)?(iC(this.u)&&!this.X&&(a.fetch=0),v0(this,a)):this.playlist&&v0(this,null),a&&this.setIsExternalPlaylist(a.external_list),iC(this.u)&&!this.X&&
w0(this));return S_(this,f,b,d)};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;e=void 0===e?"":e;d=FB(a);d=J0(b,d,e);this.yb.get(d)||this.I&&this.I.ka.started&&d===J0(this.I.getPlayerType(),this.I.getVideoData().videoId,this.I.getVideoData().Yb)||(a=new g.UE(this.u,a),e&&(a.Yb=e),vAa(this,a,b,c))};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.D;a=a.J.T().showMiniplayerUiWhenMinimized?a.Ec.get("miniplayer"):void 0;a&&(this.visibility.u?a.load():a.unload());this.B.V("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.k.iP=function(){"picture-in-picture"===this.F.Ma().webkitPresentationMode?p0(this,!0):p0(this,!1)};
g.k.togglePictureInPicture=function(){var a=g.Z(this);a&&a.togglePictureInPicture()};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;if(a&&aG(a)){this.Ja=!0;v0(this,a);var d=this.playlist.Ka();if(d&&d.isValid())L0(this,d,b);else this.playlist.onReady(function(){y0(c)})}else b||(b=this.getPresentingPlayerType()),1===b&&this.xt(),L0(this,new g.UE(this.u,a),b)};
g.k.cuePlaylist=function(a,b,c,d){this.Ja=!0;wAa(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.Ja=!1;wAa(this,a,b,c,d)};
g.k.nextVideo=function(a,b){var c=this,d=this.C.getVideoData().suggestions;if(g.eX(this.B)&&d){d=d.map(function(f){return g.qZ(c.u,f)})[0];
var e=b?d.Sv:d.sd;g.M0(this,d.Ka().videoId,e,d.getPlaylistId(),b,d.rA||void 0)}else this.X?this.B.va("onPlaylistNext"):3===this.getPresentingPlayerType()?g.RW(this.D).nextVideo():this.playlist&&(iC(this.u)&&!this.B.isFullscreen()?H0(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&dG(this.playlist,bG(this.playlist)),this.playlist.loaded?(d=b&&g.R(this.u.experiments,"html5_player_autonav_logging"),S_(this,this.playlist.Ka(void 0,b,d),1)):this.Ja=!1))};
g.k.previousVideo=function(a){this.X?this.B.va("onPlaylistPrevious"):3===this.getPresentingPlayerType()?g.RW(this.D).Ut():this.playlist&&(iC(this.u)&&!this.B.isFullscreen()?H0(this,"yt.www.watch.lists.prev"):(this.playlist.gi(a)&&dG(this.playlist,cG(this.playlist)),this.playlist.loaded?S_(this,this.playlist.Ka(),1):this.Ja=!1))};
g.k.playVideoAt=function(a){this.X?this.B.va("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?S_(this,this.playlist.Ka(a),1):this.Ja=!1,dG(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.HM=function(a){this.B.va("onCueRangeEnter",a.getId())};
g.k.IM=function(a){this.B.va("onCueRangeExit",a.getId())};
g.k.MM=function(){function a(){var d=g.rs(b.Df||(b.visibility.u?3:0));if(d){var e={cpn:b.getVideoData().clientPlaybackNonce,csn:d};if(g.R(b.u.experiments,"web_playback_associated_ve")&&null!=b.getVideoData().Ag){var f=g.ls(b.getVideoData().Ag);g.Js(d,f,void 0);e.playbackVe=f.getAsJson()}g.R(b.u.experiments,"kevlar_playback_associated_queue")&&b.getVideoData().queueInfo&&(e.queueInfo=b.getVideoData().queueInfo);d={};b.ca("web_playback_associated_log_ctt")&&null!==b.getVideoData().Nh&&(d.Cm={token:b.getVideoData().Nh,
videoId:b.getVideoData().videoId});g.Lq("playbackAssociated",e,d)}}
var b=this;this.getPresentingPlayerType();this.Ga||(this.Ga=Fs(OA,this.aE,this));nua(this.N,this.I.getVideoData(),iAa(this));u0(this)&&this.u.B&&"embedded"===MF(s0(this))&&this.Bf&&.01>Math.random()&&g.Lq("autoplayTriggered",{intentional:this.pe});this.Bf=!1;g.R(this.u.experiments,"screen_manager_wait_for_csn")?Pna(a):a();FA("player_att",["att_f","att_e"]);if(this.ca("web_player_inline_botguard")){var c=this.getVideoData().botguardData;c&&(this.ca("web_player_botguard_inline_skip_config_killswitch")&&
(ro("BG_I",c.interpreterScript),ro("BG_IU",c.interpreterUrl),ro("BG_P",c.program)),g.kC(this.u)?pp(function(){A0(b)}):A0(this))}};
g.k.fK=function(){this.B.V("internalAbandon");this.ca("html5_ad_module_cleanup_killswitch")||G0(this)};
g.k.aE=function(a){a=a.u;if(!isNaN(a)&&0<a&&this.C){var b=this.C.I;b.qoe&&0<a&&(b.qoe.u.aft=[a.toString()])}};
g.k.fO=function(){var a=this.F;a={volume:g.be(Math.floor(100*a.getVolume()),0,100),muted:a.Vr()};a.muted||C0(this,!1);this.Z=g.Zb(a);this.B.va("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.B.va("onMutedAutoplayStarts"))};
g.k.CN=function(){var a=O0(this);q0(this,a?1:0);CAa(this,!!a)};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.aP=function(){0!==this.visibility.fullscreen&&1!==this.visibility.fullscreen||q0(this,O0(this)?1:0);this.u.Oh&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.F&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.F.Io()};
g.k.NN=function(a){3!==this.getPresentingPlayerType()&&this.B.V("liveviewshift",a)};
g.k.playVideo=function(a){if(a=g.Z(this,a))2===this.ea?z0(this):(null!=this.ba&&this.ba.Wa&&this.ba.start(),g.T(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.k.pauseVideo=function(a){(a=g.Z(this,a))&&a.pauseVideo()};
g.k.stopVideo=function(){var a=this.C.getVideoData(),b=new g.UE(this.u,{video_id:a.lz||a.videoId,oauth_token:a.oauthToken});b.Hh=g.Zb(a.Hh);this.cancelPlayback(6);L0(this,b,1);null!=this.ba&&this.ba.stop()};
g.k.cancelPlayback=function(a,b){Es(this.Ga);this.Ga=0;var c=g.Z(this,b);if(c&&1!==this.ea&&2!==this.ea){c===this.I&&rX(this.D,a);var d=c.getVideoData();if(this.K&&SF(d)&&d.videoId)if(this.ca("hoffle_api")){var e=this.K;d=d.videoId;if(2===jw(d)){var f=BW(e,d);f&&f!==e.player&&SF(f.getVideoData())&&(f.D&&kE(f.D),sF(f.getVideoData(),!1),mw(d,3),CW(e))}}else EW(this.K,d.videoId);1===b&&(g.R(this.u.experiments,"html5_stop_video_in_cancel_playback")&&c.stopVideo(),G0(this));c.Ch();bX(this,"cuerangesremoved",
ED(c.ea)||[]);c.ea.reset();this.Qa&&c.isGapless()&&(fW(c,!0),gW(c,this.F))}};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.Z(this,b))&&this.u.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.updatePlaylist=function(){iC(this.u)?w0(this):g.R(this.u.experiments,"embeds_wexit_list_ajax_migration")&&g.RB(this.u)&&x0(this);this.B.va("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.Ef=a;this.td=b;this.B.V("sizestylechange",a,b);this.template.resize()};
g.k.isWidescreen=function(){return this.td};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return g.RW(this.D).getAdState();if(!this.Jc()){var a=sX(this.D);if(a)return a.getAdState()}return-1};
g.k.ZO=function(a){var b=this.template.getVideoContentRect();jg(this.Af,b)||(this.Af=b,this.I&&lW(this.I),this.C&&this.C!==this.I&&lW(this.C),1===this.visibility.fullscreen&&this.ob&&CAa(this,!0));this.ud&&g.ie(this.ud,a)||(this.B.V("appresize",a),this.ud=a)};
g.k.je=function(){return this.B.je()};
g.k.pP=function(){2===this.getPresentingPlayerType()&&this.ka.isManifestless()&&!this.ca("web_player_manifestless_ad_signature_expiration_killswitch")?yza(this.ka):DAa(this,"signature",void 0,!0)};
g.k.pE=function(){m0(this);l0(this)};
g.k.YO=function(a){rW(a,this.F.qt())};
g.k.gK=function(a){this.K&&this.K.u(a)};
g.k.lN=function(){this.B.va("CONNECTION_ISSUE")};
g.k.eK=function(a){this.B.V("heartbeatparams",a)};
g.k.setBlackout=function(a){this.u.xc=a;this.I&&(g.OT(this.I.I),this.u.W&&FAa(this))};
g.k.setAccountLinkState=function(a){var b=g.Z(this);b&&(b.getVideoData().sm=a,g.OT(b.I))};
g.k.updateAccountLinkingConfig=function(a){var b=g.Z(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.B.V("videodatachange","dataupdated",c,b.getPlayerType())}};
g.k.qO=function(){var a=g.Z(this);if(a){var b=!aX(this.B);g.iwa(a,b)}};
g.k.QN=function(){this.B.va("onLoadedMetadata")};
g.k.yN=function(){this.B.va("onDrmOutputRestricted")};
g.k.aa=function(){this.D.dispose();this.ka.dispose();this.W&&this.W.dispose();this.C.dispose();m0(this);g.fg(g.Pb(this.ae),this.playlist);Es(this.Ga);this.Ga=0;g.B.prototype.aa.call(this)};
g.k.ca=function(a){return g.R(this.u.experiments,a)};
g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.k.setScreenLayer=function(a){this.Df=a};
g.k.cancelPendingLocalMediaById=function(a){return this.K&&this.ca("hoffle_api")?EW(this.K,a):Promise.reject()};
g.k.fetchLocalMedia=function(){if(this.K&&this.ca("hoffle_api")){var a=this.K,b=a.api.Tb();b&&(b=b.getVideoData(),SF(b)||(mw(b.videoId,2),a.api.Ch(),sF(b,!0),Awa(a,b),a.api.playVideo()))}};
g.k.fetchLocalMediaById=function(a){if(this.K&&this.ca("hoffle_api")){var b=this.K;jw(a)||(0===lw(2).length?Bwa(b,a):mw(a,3))}};
g.k.getLocalPlayerResponse=function(a){return this.K&&this.ca("hoffle_api")?ywa(this.K,a):Promise.reject()};
g.k.getLocalMediaInfoById=function(a){return this.K&&this.ca("hoffle_api")?this.K.getLocalMediaInfoById(a):Promise.reject()};
g.k.getAllLocalMediaInfo=function(){return this.K&&this.ca("hoffle_api")?this.K.getAllLocalMediaInfo():Promise.reject()};
g.k.getStatsForNerds=function(){var a=this.B,b=g.Z(this),c=a.getVideoData(),d=a.app.F,e=d.Ma(),f=b.tw(),h=b.za,l=8*pU(h,"bandwidth")/1024,m=pU(h,"networkactivity")/1024,n=pU(h,"bufferhealth");if(b.P){var p=b.u.useInnertubeDrmService()?"IT/":"";p+=b.P.u.te()+"/"+DC(jW(b));p+="/"+b.P.te()}else p="";var r=b.getPlayerState().state.toString(16),t=d.getCurrentTime().toFixed(2),w=gy(d.kf(),",",3);var x="";c.jC()&&(c.enableServerStitchedDai&&(x+="SS"),x+="DAI, ");c.fetchType&&(x+="vd:"+("gvi"===c.fetchType?
"g":"o")+", ");x+="s:"+r+" t:"+t+" b:"+w+" ";d.wp()&&(x+="S");d.xk()&&(x+="P");d.ki()&&(x+="E");d=b.I;d=d.qoe?d.qoe.da:void 0;d&&(x+=" l:"+d.toFixed());d=g.jC();r=g.VW(a).DJ;t=c.Ia&&!c.Ia.wc()?"display:none":"";if((w=c.clientPlaybackNonce)&&16==w.length){for(var y=0,D="",F=0;10>F;F++)if(y=(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(w.charAt(F)),4==F%5){for(var G="",O=0;6>O;O++)G="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+G,y>>=5;D+=G}w=D.substr(0,4)+" "+
D.substr(4,4)+" "+D.substr(8,4)}else w="";l={video_id_and_cpn:c.videoId+" / "+w,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:x,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+(1<d?"*"+d.toFixed(2):"");n="-";f.totalVideoFrames&&(n=(f.droppedVideoFrames||
0)+" dropped of "+f.totalVideoFrames);l.dims_and_frames=m+" / "+n;a=a.getVolume();f=QF(c);a=Math.round(a)+"% / "+Math.round(a*f)+"%";f=c.Yp.toFixed(1);isFinite(Number(f))&&(a+=" (content loudness "+f+"dB)");l.volume=a;l.resolution=e.videoWidth+"x"+e.videoHeight;if(a=c.La)if(e=a.video)f=e.fps,1<f&&(l.resolution+="@"+f),(f=g.bW(b))&&f.video&&(l.resolution+=" / "+f.video.width+"x"+f.video.height,1<f.video.fps&&(l.resolution+="@"+f.video.fps)),l.codecs=Cza(a),!c.Qc||a.audio&&a.video?a.audio&&a.audio.itag&&
(l.codecs+=" / "+a.audio.itag+"A"):l.codecs+=" / "+Cza(c.Qc),e.u||e.primaries?(a=e.u||"unknown","smpte2084"===a?a+=" (PQ)":"arib-std-b67"===a&&(a+=" (HLG)"),l.color=a+" / "+(e.primaries||"unknown"),l.color_style=""):l.color_style="display:none";e=c.isLivePlayback;a=c.rf;l.live_mode_style=e||a?"":"display:none";l.live_latency_style=e?"":"display:none";if(a)l.live_mode="Post-Live"+(mF(c)?" Manifestless":"");else if(e){a=pU(h,"livelatency");l.live_latency_secs=a.toFixed(2)+"s";e=mF(c)?"Manifestless, ":
"";c.jp&&(e+="Windowed, ");f="Uncertain";if(0<=a&&120>a)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=oU(h,"bandwidth");l.network_activity_samples=oU(h,"networkactivity");l.live_latency_samples=oU(h,"livelatency");l.buffer_health_samples=oU(h,"bufferhealth");gF(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20201028_1_RC0",l.release_style=""):l.release_style="display:none";return l};
g.k.getVideoUrl=function(a,b,c,d,e){return this.P&&this.P.postId?(a=this.u.getVideoUrl(a),a=Qd(a,"v"),a.replace("/watch","/clip/"+this.P.postId)):this.u.getVideoUrl(a,b,c,d,e)};
var b2={};g.Ia("yt.player.Application.create",i0.create,void 0);g.Ia("yt.player.Application.createAlternate",i0.create,void 0);var zCa=g.Na("ytcsi.tick");zCa&&zCa("pe");g.qX.ad=qS;var KAa=/#(.)(.)(.)/,JAa=/^#(?:[0-9a-f]{3}){1,2}$/i;var MAa=g.ye&&LAa();g.Ya(g.V0,g.B);var ACa=[];g.k=g.V0.prototype;g.k.ua=function(a,b,c,d){Array.isArray(b)||(b&&(ACa[0]=b.toString()),b=ACa);for(var e=0;e<b.length;e++){var f=Vl(a,b[e],c||this.handleEvent,d||!1,this.B||this);if(!f)break;this.u[f.key]=f}return this};
g.k.gx=function(a,b,c,d){return NAa(this,a,b,c,d)};
g.k.Eb=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Eb(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Sa(d)?!!d.capture:!!d,e=e||this.B||this,c=Wl(c),d=!!d,b=Ol(a)?a.Ro(b,c,d,e):a?(a=Yl(a))?a.Ro(b,c,d,e):null:null,b&&(dm(b),delete this.u[b.key])};
g.k.aa=function(){g.V0.jd.aa.call(this);g.OAa(this)};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};W0.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
W0.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(W0.BYTES_PER_ELEMENT=4,W0.prototype.BYTES_PER_ELEMENT=4,W0.prototype.set=W0.prototype.set,W0.prototype.toString=W0.prototype.toString,g.Ia("Float32Array",W0,void 0));X0.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
X0.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{X0.BYTES_PER_ELEMENT=8}catch(a){}X0.prototype.BYTES_PER_ELEMENT=8;X0.prototype.set=X0.prototype.set;X0.prototype.toString=X0.prototype.toString;g.Ia("Float64Array",X0,void 0)};})(_yt_player);
