var _yt_player={};(function(g){var window=this;var ba,ca,aaa,ia,ha,ka,na,oa,ta,daa,eaa,Ca,Fa,Ia,E,Ka,La,naa,oaa,Ma,Na,Oa,Pa,paa,Ua,Xa,Za,$a,raa,ab,saa,gb,lb,qb,tb,wb,Ab,xb,Cb,taa,yb,uaa,Eb,Gb,Jb,Mb,vaa,Tb,Ob,Ub,Vb,Yb,Zb,ac,fc,hc,gc,ic,jc,kc,lc,xaa,mc,rc,sc,tc,uc,vc,xc,yc,zc,Bc,Cc,Fc,Gc,Ec,Ic,Jc,Faa,Pc,Gaa,Oc,Sc,Tc,Wc,Zc,Maa,Naa,bd,rd,vd,wd,yd,Fd,Kd,Pd,Rd,Sd,Td,Paa,fd,Taa,ge,he,fe,be,ke,me,je,ne,oe,pe,qe,re,se,te,we,K,xe,Vaa,ye,Uaa,ze,Waa,Ae,De,Ce,Ee,Fe,He,Ge,Je,Ke,Le,Oe,Pe,Qe,Re,Se,Te,Ue,Ve,Be,Ie,We,af,cf,df,cba,gf,hf,kf,lf,nf,of,jf,sf,dba,pf,
vf,Cf,Bf,fba,rf,Ff,Gf,Hf,If,gba,Jf,Kf,Mf,hba,Nf,Of,iba,Uf,Vf,Wf,Zf,ag,bg,cg,eg,jba,lba,mba,kg,hg,ig,Xf,dg,oba,ng,lg,mg,pg,nba,og,kba,sg,vg,pba,qba,rba,sba,yg,Ag,Cg,Dg,Jg,Kg,Lg,Mg,Og,Qg,Sg,Ug,Vg,Xg,Zg,wba,fh,gh,hh,ih,kh,lh,mh,qh,vh,wh,Ah,th,xba,Kh,Lh,Mh,yba,zba,Oh,Ph,Qh,Rh,Sh,Th,Uh,Vh,Wh,Xh,Aba,Bba,Cba,$h,ai,bi,di,fi,ji,li,mi,ni,Eba,oi,Fba,pi,ri,qi,si,ti,vi,ui,wi,xi,yi,Gba,zi,Ai,Bi,Ci,Di,Fi,Hi,Ei,Ji,Ii,Ki,Li,Mi,Ni,Oi,Ri,Si,Ti,Yi,aj,gj,cj,hj,Lba,Kba,ij,jj,kj,lj,Nba,Mba,mj,nj,oj,pj,qj,Oba,uj,Pba,vj,
wj,xj,yj,zj,Aj,Bj,Cj,Dj,Ej,Fj,Gj,Qba,Ij,Vba,Lj,Sba,Tba,Rba,Uba,Mj,Pj,Xba,Oj,Hj,Jj,Yba,Qj,Zba,$ba,aca,fca,Rj,gca,Sj,Vj,Wj,Yj,Zj,hca,jca,bk,ica,kca,ck,lca,mca,ak,dk,nca,qca,pca,rca,ek,fk,gk,sca,hk,ik,jk,tca,lk,kk,nk,mk,vca,rk,sk,tk,uk,wca,xca,wk,yk,xk,zk,Ak,Bk,Ck,zca,Gk,yca,ok,Fk,Ek,Cca,Jk,Hk,Dk,Dca,Lk,Kk,Aca,Eca,Fca,Mk,Bca,Gca,Hca,Nk,Ica,Ok,Qk,Rk,Pk,Sk,Jca,Kca,Lca,Sca,Tk,Oca,Nca,Mca,Pca,Qca,Rca,Vk,Uk,al,bl,cl,Tca,dl,Uca,el,Vca,Yk,il,hl,Wca,kl,ll,nl,ada,Xca,rl,sl,ul,tl,vl,wl,xl,cda,dda,eda,gda,fda,
yl,zl,hda,Dl,mda,El,Fl,Al,Hl,Il,oda,pda,Jl,Ll,Nl,qda,Pl,Rl,Sl,Ql,Tl,Ul,rda,Wl,$l,fm,gm,uda,am,cm,vda,jm,km,im,mm,em,lm,sda,pm,om,sm,tm,rm,um,vm,wda,wm,zm,Am,Bm,Cm,Dm,yda,zda,Fm,Ada,Gm,Hm,Em,Bda,Im,Jm,Km,Lm,Mm,Cda,Eda,Qm,Rm,Fda,Gda,Nm,Dda,Om,Tm,Um,Sm,Ida,Wm,Vm,Kda,Ym,Xm,Zm,$m,bn,cn,an,en,Nda,fn,hn,jn,kn,ln,gn,mn,nn,on,rn,sn,vn,yn,tn,An,Cn,Dn,En,Fn,Gn,Hn,In,Jn,Kn,Nn,Pn,On,Qn,Rn,Sn,Vn,Oda,Un,Xn,Wn,$n,ao,co,eo,fo,go,Pda,Qda,ho,ko,mo,lo,Vda,oo,jo,po,Wda,ro,qo,Xda,so,uo,wo,vo,xo,yo,zo,Yda,Zda,Ao,Bo,Co,
Do,Eo,Fo,Io,Jo,Ko,Lo,Mo,No,Oo,Po,Qo,Ro,Q,Uo,Xo,Yo,$da,R,bp,dea,dp,jp,kp,mp,ap,ip,gp,jea,kea,lea,mea,np,op,pp,qp,sp,tp,rp,nea,wp,xp,yp,zp,Ap,Bp,Cp,Dp,Fp,Ep,Hp,Ip,oea,pea,Jp,Mp,Kp,Lp,Np,Op,rea,sea,Pp,Qp,tea,Rp,Zp,vea,aq,bq,cq,dq,eq,xea,fq,lq,mq,gq,nq,oq,Bea,hq,Aea,iq,jq,kq,zea,tq,uq,vq,zq,Gea,Hea,Aq,Jea,Kea,Cq,Nea,Eq,Iea,Fq,Gq,Hq,Iq,Oea,Jq,Kq,Lq,Pea,Nq,Oq,Pq,Qq,Qea,Rq,Rea,Mq,Sq,Tq,Uq,Sea,Tea,Uea,Vea,Vq,Wea,Yq,br,er,fr,vp,up,Xea,Yea,Zea,gr,$ea,hr,afa,bfa,cfa,dfa,efa,ffa,gfa,hfa,ifa,ir,jr,lr,kr,nr,jfa,
kfa,lfa,mfa,pr,ofa,rr,ur,qfa,xr,zr,wr,Ar,Br,Cr,Dr,Er,Fr,Gr,Hr,Ir,Kr,Mr,Lr,ufa,vfa,Qr,yfa,Pr,Or,Rr,Sr,Tr,Ur,Wr,qq,zfa,fs,gs,hs,is,Xr,Dfa,js,ks,sq,ns,ps,Eea,qs,rs,ts,pq,Fea,os,us,vs,ws,xs,ys,zs,As,Gfa,Hfa,Ffa,Ifa,ms,Jfa,Is,Lfa,Js,Vr,Ks,Ls,Ms,Ns,Mfa,Os,as,ls,Hs,Ps,Qs,Rs,Gs,rq,$r,Ts,es,Us,Vs,Yr,bs,Fs,Efa,Ws,ds,Xs,Ys,Ofa,Zs,Pfa,$s,at,bt,dt,et,ft,Sfa,gt,ht,it,jt,kt,lt,mt,nt,ot,pt,qt,rt,tt,ut,vt,xt,Vfa,Xfa,Zfa,wt,$fa,aga,cga,zt,Bt,At,Ct,Dt,dga,fga,gga,Ft,Gt,hga,Ot,Nt,Pt,Qt,iga,Vt,Wt,Yt,Xt,Zt,$t,au,bu,cu,
jga,hu,du,gu,ku,lu,mu,nu,iu,qu,ru,ju,uu,lga,vu,wu,xu,yu,zu,tu,mga,Au,nga,Bu,Cu,Du,oga,Eu,Fu,pga,Gu,Hu,Iu,Ju,Ku,Lu,qga,Nu,Ou,rga,Qu,Ru,sga,Vu,Wu,Xu,Yu,Zu,$u,av,tga,bv,cv,dv,fv,ev,uga,gv,hv,iv,jv,vga,kv,lv,xga,wga,mv,nv,ov,pv,qv,rv,tv,qr,uv,vv,wv,xv,yv,zv,Av,Bv,Cv,Dv,Cs,Wq,dr,Bs,Es,Jv,sr,cr,Iv,$q,Xq,Zq,ar,Lv,tr,Hv,Ds,Ov,Pv,Rv,yga,Sv,Tv,Uv,Vv,Wv,Xv,Yv,Zv,$v,aw,bw,cw,dw,zga,ew,fw,gw,hw,iw,jw,Aga,kw,lw,mw,nw,ow,pw,rw,tw,Cga,uw,Dga,Bga,Fga,vw,Gga,xw,qw,Ega,Kga,Jga,Iga,ww,yw,zw,Aw,Cw,Dw,Ew,Fw,Gw,Hw,Iw,Jw,
Kw,Lw,Mw,Sw,Tw,Uw,Rw,Vw,Ww,Lga,Mga,Zw,Xw,cx,Yw,dx,ax,ex,bx,Oga,Pga,fx,gx,hx,Qga,kx,lx,jx,mx,Tga,Uga,nx,ox,px,qx,Vga,Wga,rx,sx,tx,vx,Xga,ux,yx,wx,Yga,Zga,$ga,zx,Ax,Bx,Cx,Dx,Ex,Fx,Gx,Hx,Jx,Kx,Ix,Lx,Mx,Nx,Ox,dha,cha,Qx,Px,Tx,eha,Ux,Vx,fha,bha,Wx,Zx,hha,gha,$x,Yx,cy,jha,dy,kha,ey,ay,fy,gy,hy,mha,nha,iy,jy,oha,ky,Sx,pha,ly,my,Rx,qha,ny,oy,py,qy,rha,ry,sy,ty,vy,wy,uy,uha,sha,zy,Cy,Dy,By,Ay,yy,Ey,Gy,Hy,Jy,Ly,Iy,My,Ny,xha,Py,Oy,Qy,yha,zha,Aha,Ry,Sy,Ty,Uy,Vy,Wy,Xy,Yy,Bha,Zy,Dha,ez,$y,az,bz,lz,fz,hz,gz,oz,
jz,iz,mz,kz,Fha,dz,cz,Gha,pz,Cha,qz,rz,sz,Iha,tz,wz,xz,zz,yz,Az,Bz,Cz,Kha,Jha,Lha,Ez,Mha,Nha,Fz,Gz,Dz,Oha,Hz,Iz,Pha,Jz,Qha,Rha,Sha,Tha,Kz,Lz,Mz,Oz,Pz,Qz,Nz,Sz,Uha,Vha,Rz,Tz,Uz,Vz,Wz,Xz,Wha,Yz,aA,cA,bA,dA,eA,fA,hA,gA,jA,iA,kA,Xha,oA,pA,qA,rA,sA,tA,uA,vA,wA,xA,yA,AA,BA,zA,CA,DA,EA,Yha,FA,Zha,IA,JA,GA,HA,LA,PA,MA,NA,KA,OA,$ha,QA,RA,SA,TA,VA,UA,aia,XA,WA,cia,dia,bia,YA,eia,fia,gia,hia,ZA,jia,kia,lia,Bq,bB,cB,dB,eB,fB,gB,hB,iB,kB,lB,mB,rB,qB,vB,wB,oB,xB,yB,zB,AB,nB,pB,sB,CB,sia,DB,tia,EB,uia,via,FB,xia,
GB,HB,IB,JB,KB,yia,LB,zia,Aia,MB,Bia,Cia,NB,OB,Dia,Fia,Gia,PB,Hia,RB,TB,Lia,QB,Mia,UB,wia,VB,Oia,Pia,WB,Qia,Ria,YB,aC,Sia,cC,bC,dC,Tia,Eha,eC,fC,iC,jC,kC,lC,mC,Via,nC,oC,pC,qC,gC,Xia,Yia,tC,Zia,uC,vC,wC,sC,xC,rC,yC,$ia,nz,bja,Ky,aja,zC,AC,BC,CC,DC,EC,cja,FC,GC,IC,JC,HC,RC,dja,UC,KC,VC,XC,QC,PC,OC,ZC,YC,$C,aD,cD,eD,fD,eja,gD,hD,iD,mD,oD,jD,qD,nD,tD,sD,kD,rD,uD,wD,dD,pD,vD,yD,xD,lD,bD,WC,MC,AD,fja,HD,MD,ND,OD,gja,RD,SD,TD,UD,VD,XD,YD,ZD,$D,aE,cE,eE,gE,fE,hE,bE,dE,kE,jE,lE,hja,mE,nE,yE,zE,AE,CE,DE,EE,
FE,HE,IE,JE,KE,LE,NE,OE,PE,QE,SE,UE,jja,cF,eF,fF,gF,iF,kja,lja,mja,oF,nja,oja,mF,qF,sF,uF,vF,wF,xF,yF,zF,pja,CF,FF,EF,GF,HF,IF,JF,LF,KF,MF,tja,PF,QF,SF,RF,TF,YF,$F,aG,cG,uja,dG,eG,fG,wja,mG,nG,oG,vG,AG,yG,CG,BG,DG,Aja,EG,SG,TG,RG,cH,bH,Cja,jH,lH,kH,Dja,Eja,wH,Fja,Gja,yH,xH,zH,Ija,AH,BH,Jja,Kja,DH,Mja,FH,Lja,KH,MH,Oja,NH,PH,UH,Pja,Qja,VH,XH,YH,Rja,bI,dI,Sja,eI,fI,Tja,kI,lI,jI,mI,oI,pI,qI,rI,nI,sI,Uja,vI,wI,Wja,xI,Vja,uI,yI,zI,AI,CI,Xja,BI,DI,EI,FI,GI,II,JI,CH,KI,LI,MI,TI,XI,ZI,Yja,$I,Zja,aJ,bJ,$ja,
cJ,fJ,aka,gJ,bka,hJ,cka,dka,eka,fka,eJ,dJ,iJ,lJ,mJ,jJ,pJ,oJ,qJ,rJ,sJ,tJ,uJ,vJ,wJ,xJ,yJ,zJ,AJ,BJ,CJ,EJ,GJ,ika,HJ,IJ,JJ,KJ,LJ,MJ,OJ,V,NJ,QJ,PJ,SJ,TJ,UJ,kka,XJ,ZJ,$J,aK,bK,lka,cK,dK,eK,fK,gK,hK,iK,jK,kK,mK,pK,lK,nK,tK,uK,rK,oK,vK,wK,qK,sK,xK,mka,yK,zK,nka,BK,CK,AK,DK,EK,FK,GK,qka,HK,IK,JK,KK,LK,MK,NK,OK,PK,QK,rka,TK,UK,WK,VK,ska,XK,YK,ZK,tka,aL,$K,bL,cL,dL,eL,jL,lL,uka,gL,mL,oL,nL,kL,rL,vka,sL,fL,hL,iL,qL,pL,tL,uL,vL,wL,xL,yL,wka,zL,AL,BL,CL,DL,FL,HL,IL,JL,GL,zka,LL,ML,NL,OL,Aka,Bka,QL,Cka,SL,RL,UL,
VL,XL,YL,ZL,$L,aM,cM,bM,dM,eM,Dka,fM,gM,hM,iM,jM,Eka,Fka,Jka,Kka,Gka,Hka,Ika,lM,nM,oM,Lka,pM,qM,rM,Nka,Mka,sM,Oka,tM,wM,Qka,xM,yM,Rka,zM,AM,BM,CM,Ska,Tka,uM,Pka,EM,GM,HM,IM,FM,LM,MM,Uka,Wka,Yka,Xka,Zka,OM,PM,RM,QM,SM,$ka,ala,TM,VM,WM,XM,YM,ZM,$M,aN,UM,bN,cN,bla,fN,gN,eN,jN,ila,qN,qla,pN,oN,hla,kN,yN,zN,AN,FN,EN,GN,HN,IN,JN,KN,LN,MN,ON,QN,eO,fO,hO,iO,jO,kO,lO,nO,oO,pO,$N,cO,uO,wla,ZN,wO,yO,zO,yla,zla,Ala,Bla,AO,Cla,BO,CO,SO,TO,WO,YO,XO,$O,ZO,VO,aP,UO,bP,cP,dP,Dla,eP,hP,Fla,kP,sP,tP,Gla,uP,vP,xP,wP,
Hla,Ila,yP,zP,CP,QP,TP,KP,UP,GP,WP,PP,IP,OP,LP,Kla,Lla,YP,NP,RP,HP,SP,ZP,AP,DP,BP,Rla,Sla,eQ,fQ,Zla,gQ,iQ,jQ,mQ,oQ,pQ,rQ,sQ,tQ,uQ,kQ,$la,Ula,Vla,Wla,Tla,xQ,yQ,bma,gO,cQ,Xla,AQ,DQ,FQ,GQ,HQ,cma,IQ,JQ,ema,LQ,MQ,NQ,OQ,PQ,QQ,RQ,SQ,TQ,WQ,fma,XQ,gma,UQ,ZQ,$Q,aR,bR,hma,cR,eR,fR,gR,hR,iR,kR,lR,nR,pR,qR,jma,rR,sR,uR,BQ,wR,zR,yR,AR,BR,CR,DR,ER,lma,FR,xR,GR,HR,mma,JR,IR,KR,LR,MR,NR,OR,RR,SR,QR,PR,TR,UR,VR,WR,XR,aS,bS,cS,dS,nma,oma,pma,qma,ZR,eS,fS,gS,hS,rma,sma,tma,iS,kS,lS,mS,nS,oS,pS,qS,rS,jS,uma,vma,wma,sS,
tS,uS,vS,wS,xS,yS,AS,BS,CS,zS,DS,ES,FS,GS,HS,IS,JS,KS,LS,NS,MS,OS,PS,QS,RS,SS,zma,Ama,Bma,Cma,TS,US,yma,WS,VS,YS,XS,$S,ZS,aT,bT,cT,eT,dT,hT,Dma,kT,lT,mT,gT,nT,oT,fT,pT,qT,rT,sT,jT,iT,tT,uT,Ema,vT,wT,xT,yT,Fma,Gma,DT,ET,CT,GT,zT,Hma,AT,BT,Ima,FT,Jma,HT,IT,Kma,JT,Lma,KT,Mma,LT,MT,NT,OT,Nma,Oma,Pma,PT,QT,TT,WT,XT,ZT,aU,bU,eU,dU,fU,gU,Rma,iU,jU,hU,lU,$T,Qma,mU,nU,RT,kU,oU,ST,VT,pU,Sma,Tma,Uma,Vma,Wma,qU,rU,sU,tU,uU,Xma,Yma,vU,xU,wU,yU,$ma,ana,bna,zU,BU,CU,EU,DU,cna,dna,FU,ena,GU,HU,IU,JU,LU,fna,KU,MU,
gna,NU,VQ,YQ,OU,PU,QU,RU,SU,TU,hna,WU,XU,dV,ina,ZU,fV,hV,jV,iV,UU,aV,qV,oV,pV,kna,kV,wV,vV,uV,BV,DV,EV,FV,rV,GV,sV,$U,CV,nna,xV,IV,nV,JV,tV,lV,VU,MV,ona,NV,bV,lna,OV,LV,cV,PV,mV,mna,AV,pna,YU,KV,QV,zV,yV,RV,SV,VV,bW,fW,xW,qna,AW,BW,DW,EW,GW,HW,JW,KW,MW,PW,RW,sna,TW,VW,WW,YW,ZW,$W,aX,dX,kX,lX,tna,mX,nX,oX,pX,qX,rX,vX,wna,xna,una,vna,yna,xX,yX,zX,CX,DX,FX,JX,IX,HX,LX,zna,MX,Ana,NX,Ena,OX,PX,QX,Fna,Gna,RX,Hna,SX,VX,UX,TX,WX,XX,YX,ZX,$X,aY,cY,eY,iY,jY,Ina,kY,lY,mY,Jna,nY,oY,pY,qY,rY,sY,tY,uY,Kna,vY,wY,
Lna,xY,yY,zY,Mna,AY,Ona,Nna,Pna,CY,Qna,EY,DY,JY,GY,FY,KY,Rna,LY,Sna,MY,NY,Tna,Una,Vna,RY,SY,TY,Wna,UY,WY,Xna,OY,VY,QY,PY,$Y,aZ,Yna,XY,Zna,ZY,$na,aoa,boa,doa,coa,ioa,foa,hoa,bZ,cZ,joa,koa,dZ,eZ,fZ,loa,gZ,iZ,hZ,jZ,noa,moa,ooa,poa,qoa,roa,mZ,nZ,oZ,soa,toa,pZ,voa,qZ,uoa,rZ,woa,sZ,tZ,xoa,yoa,Aoa,zoa,Boa,uZ,vZ,Coa,Doa,Eoa,Foa,Hoa,xZ,yZ,zZ,wZ,Goa,AZ,CZ,tX,sX,YY,DZ,EZ,Joa,FZ,fY,Loa,uX,Moa,JZ,kZ,Noa,HZ,hY,gY,MZ,BZ,GX,NZ,OZ,PZ,Qoa,QZ,Roa,Toa,Soa,Uoa,Voa,SZ,WZ,dY,RZ,XZ,Woa,YZ,Yoa,Xoa,ZZ,a_,Zoa,b_,$oa,c_,d_,
bpa,cpa,apa,e_,epa,g_,h_,i_,j_,k_,m_,n_,p_,q_,fpa,gpa,o_,r_,t_,s_,u_,hpa,ipa,w_,v_,x_,jpa,y_,z_,kpa,A_,B_,lpa,C_,E_,D_,G_,mpa,K_,npa,qpa,P_,O_,rpa,S_,T_,U_,V_,W_,X_,tpa,spa,upa,Y_,vpa,wpa,Z_,ypa,a0,xpa,c0,zpa,d0,Apa,b0,e0,f0,Bpa,g0,h0,i0,Cpa,Dpa,j0,k0,l0,m0,Epa,n0,p0,o0,q0,Fpa,r0,s0,t0,Gpa,Jpa,u0,Hpa,Ipa,v0,Lpa,Mpa,Npa,x0,y0,Rpa,Qpa,A0,Spa,Tpa,Upa,z0,B0,Xpa,Vpa,Zpa,F0,$pa,D0,G0,C0,H0,E0,Wpa,aqa,bqa,Ypa,I0,L0,M0,N0,cqa,O0,P0,Q0,R0,dqa,S0,eqa,T0,U0,V0,W0,X0,Y0,Z0,$0,a1,b1,d1,c1,e1,f1,g1,fqa,gqa,h1,
j1,hqa,jqa,iqa,k1,m1,F_,lqa,kqa,l1,mqa,w0,oqa,o1,qqa,n1,p1,q1,nqa,r1,s1,t1,sqa,rqa,xqa,x1,y1,GZ,u1,z1,Koa,bY,yqa,zqa,A1,Aqa,C1,uqa,vqa,Bqa,F1,v1,Dqa,J1,wqa,K1,XV,Fqa,Gqa,E1,D1,M1,Iqa,I1,LZ,O1,Jqa,Cqa,N1,Q1,S1,R1,T1,Kqa,W1,Lqa,L1,Hqa,Mqa,mW,Ooa,RJ,Nqa,H1,Oqa,Y1,oW,IZ,KZ,Pqa,P1,Qqa,Rqa,Z1,Sqa,tqa,Eqa,fa,ea,baa,$w,v,ya,caa;ba=function(a){return function(){return g.aa[a].apply(this,arguments)}};
ca=function(){ca=function(){};
ea.Symbol||(ea.Symbol=aaa)};
aaa=function(a){return"jscomp_symbol_"+(a||"")+baa++};
ia=function(){ca();var a=ea.Symbol.iterator;a||(a=ea.Symbol.iterator=ea.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&fa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ha(this)}});
ia=function(){}};
ha=function(a){var b=0;return ka(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})};
ka=function(a){ia();a={next:a};a[ea.Symbol.iterator]=function(){return this};
return a};
g.la=function(a){ia();var b=a[window.Symbol.iterator];return b?b.call(a):ha(a)};
g.p=function(a,b){function c(){}
c.prototype=b.prototype;a.Z=b.prototype;a.prototype=new c;a.prototype.constructor=a;for(var d in b)if("prototype"!=d)if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(a,d,e)}else a[d]=b[d]};
g.ma=function(a){if(!(a instanceof Array)){a=g.la(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};
na=function(a,b){if(b){for(var c=ea,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];f in c||(c[f]={});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})}};
oa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.t=function(a){return void 0!==a};
g.u=function(a){return"string"==typeof a};
g.pa=function(a){return"boolean"==typeof a};
g.qa=function(a){return"number"==typeof a};
g.ra=function(a,b,c){a=a.split(".");c=c||v;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&g.t(b)?c[d]=b:c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}};
g.x=function(a,b){for(var c=a.split("."),d=b||v,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d};
g.y=function(){};
g.sa=function(a){a.dd=void 0;a.getInstance=function(){return a.dd?a.dd:a.dd=new a}};
ta=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b};
g.ua=function(a){return"array"==ta(a)};
g.va=function(a){var b=ta(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.wa=function(a){return"function"==ta(a)};
g.xa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.za=function(a){return a[ya]||(a[ya]=++caa)};
daa=function(a,b,c){return a.call.apply(a.bind,arguments)};
eaa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}};
g.A=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.A=daa:g.A=eaa;return g.A.apply(null,arguments)};
g.Aa=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}};
g.Ba=function(a,b){for(var c in b)a[c]=b[c]};
Ca=function(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return null!=b&&d in b?b[d]:a}));
return a};
g.D=function(a,b){function c(){}
c.prototype=b.prototype;a.Z=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.S2=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};
Fa=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Fa);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
g.Ha=function(a,b){return 0==a.lastIndexOf(b,0)};
Ia=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
E=function(a){return/^[\s\xa0]*$/.test(a)};
g.Ja=function(a){return(0,window.encodeURIComponent)(String(a))};
Ka=function(a){return(0,window.decodeURIComponent)(a.replace(/\+/g," "))};
La=function(a){if(!faa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(gaa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(haa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(iaa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(jaa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(kaa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(laa,"&#0;"));return a};
naa=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var c=v.document.createElement("div");return a.replace(maa,function(a,e){var d=b[a];if(d)return d;if("#"==e.charAt(0)){var k=Number("0"+e.substr(1));(0,window.isNaN)(k)||(d=String.fromCharCode(k))}d||(c.innerHTML=a+" ",d=c.firstChild.nodeValue.slice(0,-1));return b[a]=d})};
oaa=function(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if("#"==c.charAt(0)){var b=Number("0"+c.substr(1));if(!(0,window.isNaN)(b))return String.fromCharCode(b)}return a}})};
Ma=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a};
Na=function(a,b){return-1!=a.indexOf(b)};
Oa=function(a,b){return Na(a.toLowerCase(),b.toLowerCase())};
Pa=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
g.Ra=function(a,b,c){a=g.t(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return Qa("0",Math.max(0,b-c))+a};
g.F=function(a){return null==a?"":String(a)};
paa=function(a){return Array.prototype.join.call(arguments,"")};
g.Sa=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^(0,g.G)()).toString(36)};
g.Va=function(a,b){for(var c=0,d=Ta(String(a)).split("."),e=Ta(String(b)).split("."),f=Math.max(d.length,e.length),k=0;0==c&&k<f;k++){var l=d[k]||"",m=e[k]||"";do{l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];m=/(\d*)(\D*)(.*)/.exec(m)||["","","",""];if(0==l[0].length&&0==m[0].length)break;c=Ua(0==l[1].length?0:(0,window.parseInt)(l[1],10),0==m[1].length?0:(0,window.parseInt)(m[1],10))||Ua(0==l[2].length,0==m[2].length)||Ua(l[2],m[2]);l=l[3];m=m[3]}while(0==c)}return c};
Ua=function(a,b){return a<b?-1:a>b?1:0};
g.Wa=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
Xa=function(){return"goog_"+qaa++};
Za=function(a){var b=Number(a);return 0==b&&E(a)?window.NaN:b};
$a=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};
raa=function(a){var b=g.u(void 0)?Pa(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};
ab=function(a){(0,window.isFinite)(a)&&(a=String(a));return g.u(a)?/^\s*-?0x/i.test(a)?(0,window.parseInt)(a,16):(0,window.parseInt)(a,10):window.NaN};
g.bb=function(a){return a[a.length-1]};
saa=function(a,b){var c=0;(0,g.H)(a,function(a,e,f){b.call(void 0,a,e,f)&&++c},void 0);
return c};
g.eb=function(a,b,c){b=g.cb(a,b,c);return 0>b?null:g.u(a)?a.charAt(b):a[b]};
g.cb=function(a,b,c){for(var d=a.length,e=g.u(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
gb=function(a,b){var c=g.fb(a,b,void 0);return 0>c?null:g.u(a)?a.charAt(c):a[c]};
g.fb=function(a,b,c){for(var d=g.u(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;return-1};
g.jb=function(a,b){return 0<=(0,g.ib)(a,b)};
g.kb=function(a){return 0==a.length};
lb=function(a){if(!g.ua(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.nb=function(a,b){g.jb(a,b)||a.push(b)};
g.pb=function(a,b){var c=(0,g.ib)(a,b),d;(d=0<=c)&&g.ob(a,c);return d};
g.ob=function(a,b){Array.prototype.splice.call(a,b,1)};
qb=function(a,b){var c=g.cb(a,b,void 0);0<=c&&g.ob(a,c)};
g.rb=function(a){return Array.prototype.concat.apply([],arguments)};
g.sb=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[]};
tb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.va(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var k=0;k<f;k++)a[e+k]=d[k]}else a.push(d)}};
g.vb=function(a,b,c,d){Array.prototype.splice.apply(a,g.ub(arguments,1))};
g.ub=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
wb=function(a,b,c){function d(a){return g.xa(a)?"o"+g.za(a):(typeof a).charAt(0)+a}
b=b||a;c=c||d;for(var e={},f=0,k=0;k<a.length;){var l=a[k++],m=c(l);Object.prototype.hasOwnProperty.call(e,m)||(e[m]=!0,b[f++]=l)}b.length=f};
g.zb=function(a,b,c){return xb(a,c||yb,!1,b)};
Ab=function(a,b){return xb(a,b,!0,void 0,void 0)};
xb=function(a,b,c,d,e){for(var f=0,k=a.length,l;f<k;){var m=f+k>>1,n;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?f=m+1:(k=m,l=!n)}return l?f:~f};
g.Bb=function(a,b){a.sort(b||yb)};
Cb=function(a,b,c){var d=c||yb;g.Bb(a,function(a,c){return d(b(a),b(c))})};
taa=function(a,b){Cb(a,function(a){return a[b]},void 0)};
g.Db=function(a,b){if(!g.va(a)||!g.va(b)||a.length!=b.length)return!1;for(var c=a.length,d=uaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
yb=function(a,b){return a>b?1:a<b?-1:0};
uaa=function(a,b){return a===b};
Eb=function(a,b,c){c=g.zb(a,b,c);0>c&&g.vb(a,-(c+1),0,b)};
g.Fb=function(a,b,c){var d={};(0,g.H)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
Gb=function(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b};
g.Hb=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(g.ua(d))for(var e=0;e<d.length;e+=8192){var f=g.ub(d,e,e+8192);f=g.Hb.apply(null,f);for(var k=0;k<f.length;k++)b.push(f[k])}else b.push(d)}return b};
Jb=function(a){return Na(g.Ib,a)};
g.Kb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Lb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Mb=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1};
g.Nb=function(a){var b=0,c;for(c in a)b++;return b};
vaa=function(a,b){return Ob(a,b)};
g.Pb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Rb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Sb=function(a,b){var c=g.va(b),d=c?b:arguments;for(c=c?0:1;c<d.length&&(a=a[d[c]],g.t(a));c++);return a};
Tb=function(a,b){return null!==a&&b in a};
Ob=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};
Yb=function(a,b){b in a&&delete a[b]};
Zb=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.$b=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
ac=function(a){var b=ta(a);if("object"==b||"array"==b){if(g.wa(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=ac(a[c]);return b}return a};
g.dc=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<bc.length;f++)c=bc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
g.ec=function(a){var b=arguments.length;if(1==b&&g.ua(arguments[0]))return g.ec.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c};
fc=function(a){var b=arguments.length;if(1==b&&g.ua(arguments[0]))return fc.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};
hc=function(){return Jb("Safari")&&!(gc()||Jb("Coast")||Jb("Opera")||Jb("Edge")||Jb("Silk")||Jb("Android"))};
gc=function(){return(Jb("Chrome")||Jb("CriOS"))&&!Jb("Edge")};
ic=function(){return Jb("iPhone")&&!Jb("iPod")&&!Jb("iPad")};
jc=function(){return ic()||Jb("iPad")||Jb("iPod")};
kc=function(a){kc[" "](a);return a};
lc=function(a,b){try{return kc(a[b]),!0}catch(c){}return!1};
xaa=function(a,b){var c=waa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
mc=function(){var a=v.document;return a?a.documentMode:void 0};
g.oc=function(a){return xaa(a,function(){return 0<=g.Va(nc,a)})};
g.pc=function(a){return Number(yaa)>=a};
rc=function(){this.g="";this.o=qc};
sc=function(a){return a instanceof rc&&a.constructor===rc&&a.o===qc?a.g:"type_error:Const"};
tc=function(a){var b=new rc;b.g=a;return b};
uc=function(a,b){return b?a.replace(zaa,""):a};
vc=function(a,b){for(var c=0,d=0,e=!1,f=uc(a,b).split(Aaa),k=0;k<f.length;k++){var l=f[k];Baa.test(uc(l,void 0))?(c++,d++):Caa.test(l)?e=!0:Daa.test(uc(l,void 0))?d++:Eaa.test(l)&&(e=!0)}return 0==d?e?1:0:.4<c/d?-1:1};
xc=function(){this.g="";this.o=wc};
yc=function(a){if(a instanceof xc&&a.constructor===xc&&a.o===wc)return a.g;ta(a);return"type_error:TrustedResourceUrl"};
zc=function(a){var b=new xc;b.g=a;return b};
Bc=function(){this.g="";this.o=Ac};
Cc=function(a){if(a instanceof Bc&&a.constructor===Bc&&a.o===Ac)return a.g;ta(a);return"type_error:SafeUrl"};
Fc=function(a){if(a instanceof Bc)return a;a=a.Bg?a.Ze():String(a);Dc.test(a)||(a="about:invalid#zClosurez");return Ec(a)};
Gc=function(a){if(a instanceof Bc)return a;a=a.Bg?a.Ze():String(a);Dc.test(a)||(a="about:invalid#zClosurez");return Ec(a)};
Ec=function(a){var b=new Bc;b.g=a;return b};
Ic=function(){this.g="";this.o=Hc};
Jc=function(a){var b=new Ic;b.g=a;return b};
Faa=function(a){return a.replace(Kc,function(a,c,d,e){var b="";d=d.replace(/^(['"])(.*)\1$/,function(a,c,d){b=c;return d});
a=Fc(d).Ze();return c+b+a+b+e})};
g.Mc=function(){this.g="";this.A=Lc;this.o=null};
g.Nc=function(a){if(a instanceof g.Mc&&a.constructor===g.Mc&&a.A===Lc)return a.g;ta(a);return"type_error:SafeHtml"};
Pc=function(a){if(a instanceof g.Mc)return a;var b=null;a.Kr&&(b=a.ej());a=La(a.Bg?a.Ze():String(a));return Oc(a,b)};
Gaa=function(a){function b(a){g.ua(a)?(0,g.H)(a,b):(a=Pc(a),d+=g.Nc(a),a=a.ej(),0==c?c=a:0!=a&&c!=a&&(c=null))}
var c=0,d="";(0,g.H)(arguments,b);return Oc(d,c)};
Oc=function(a,b){var c=new g.Mc;c.g=a;c.o=b;return c};
Sc=function(a,b,c){var d=null,e="";if(b)for(B in b){if(!Qc.test(B))throw Error('Invalid attribute name "'+B+'".');var f=b[B];if(null!=f){var k=a;var l=B;var m=f;if(m instanceof rc)m=sc(m);else if("style"==l.toLowerCase()){f=void 0;k=m;if(!g.xa(k))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof k+" given: "+k);if(!(k instanceof Ic)){m="";for(f in k){if(!/^[-_a-zA-Z0-9]+$/.test(f))throw Error("Name allows only [-_a-zA-Z0-9], got: "+f);var n=k[f];
if(null!=n){if(n instanceof rc)n=sc(n);else{n=String(n);var q=n.replace(Haa,"$1").replace(Kc,"url");if(Iaa.test(q)){for(var r=q=!0,w=0;w<n.length;w++){var z=n.charAt(w);"'"==z&&r?q=!q:'"'==z&&q&&(r=!r)}n=q&&r?Faa(n):"zClosurez"}else n="zClosurez"}m+=f+":"+n+";"}}k=m?Jc(m):Jaa}k instanceof Ic&&k.constructor===Ic&&k.o===Hc?f=k.g:(ta(k),f="type_error:SafeStyle");m=f}else{if(/^on/i.test(l))throw Error('Attribute "'+l+'" requires goog.string.Const value, "'+m+'" given.');if(l.toLowerCase()in Kaa)if(m instanceof
xc)m=yc(m);else if(m instanceof Bc)m=Cc(m);else if(g.u(m))m=Fc(m).Ze();else throw Error('Attribute "'+l+'" on tag "'+k+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+m+'" given.');}m.Bg&&(m=m.Ze());l=l+'="'+La(String(m))+'"';e+=" "+l}}var B="<"+a+e;null!=c?g.ua(c)||(c=[c]):c=[];!0===Laa[a.toLowerCase()]?B+=">":(d=Gaa(c),B+=">"+g.Nc(d)+"</"+a+">",d=d.ej());(a=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(a)?d=0:d=null);return Oc(B,d)};
Tc=function(a,b,c){var d={},e;for(e in a)d[e]=a[e];for(e in b)d[e]=b[e];for(e in c){var f=e.toLowerCase();if(f in a)throw Error('Cannot override "'+f+'" attribute, got "'+e+'" with value "'+c[e]+'"');f in b&&delete d[f];d[e]=c[e]}return d};
g.Uc=function(a,b){var c=b instanceof Bc?b:Gc(b);a.href=Cc(c)};
g.Vc=function(a,b){a.src=yc(b)};
Wc=function(a,b){sc(a);sc(a);return Oc(b,null)};
g.Xc=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Yc=function(a,b){var c=a%b;return 0>c*b?c+b:c};
Zc=function(a,b,c){return a+c*(b-a)};
Maa=function(a){return $c(arguments,function(a,c){return a+c},0)};
Naa=function(a){return Maa.apply(null,arguments)/arguments.length};
g.ad=function(a,b){this.x=g.t(a)?a:0;this.y=g.t(b)?b:0};
bd=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.cd=function(a,b){return new g.ad(a.x-b.x,a.y-b.y)};
g.dd=function(a,b){this.width=a;this.height=b};
g.ed=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
g.id=function(a){return a?new fd(g.gd(a)):hd||(hd=new fd)};
g.jd=function(a){return g.u(a)?window.document.getElementById(a):a};
g.ld=function(a,b){var c=b||window.document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.kd(window.document,"*",a,b)};
g.I=function(a,b){var c=b||window.document;if(c.getElementsByClassName)c=c.getElementsByClassName(a)[0];else{c=window.document;var d=b||c;c=d.querySelectorAll&&d.querySelector&&a?d.querySelector(""+(a?"."+a:"")):g.kd(c,"*",a,b)[0]||null}return c||null};
g.kd=function(a,b,c,d){a=d||a;var e=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(e||c))return a.querySelectorAll(e+(c?"."+c:""));if(c&&a.getElementsByClassName){d=a.getElementsByClassName(c);if(e){a={};for(var f=b=0,k;k=d[f];f++)e==k.nodeName&&(a[b++]=k);a.length=b;return a}return d}d=a.getElementsByTagName(e||"*");if(c){a={};for(f=b=0;k=d[f];f++)e=k.className,"function"==typeof e.split&&g.jb(e.split(/\s+/),c)&&(a[b++]=k);a.length=b;return a}return d};
g.od=function(a,b){g.Kb(b,function(b,d){b&&b.Bg&&(b=b.Ze());"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:md.hasOwnProperty(d)?a.setAttribute(md[d],b):g.Ha(d,"aria-")||g.Ha(d,"data-")?a.setAttribute(d,b):a[d]=b})};
g.qd=function(a){a=a.document;a=g.pd(a)?a.documentElement:a.body;return new g.dd(a.clientWidth,a.clientHeight)};
g.td=function(a){var b=rd(a);a=a.parentWindow||a.defaultView;return g.sd&&g.oc("10")&&a.pageYOffset!=b.scrollTop?new g.ad(b.scrollLeft,b.scrollTop):new g.ad(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
rd=function(a){return a.scrollingElement?a.scrollingElement:!g.ud&&g.pd(a)?a.documentElement:a.body||a.documentElement};
vd=function(a){return a?a.parentWindow||a.defaultView:window};
g.xd=function(a,b,c){return wd(window.document,arguments)};
wd=function(a,b){var c=String(b[0]),d=b[1];if(!Oaa&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',La(d.name),'"');if(d.type){c.push(' type="',La(d.type),'"');var e={};g.dc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(g.u(d)?c.className=d:g.ua(d)?c.className=d.join(" "):g.od(c,d));2<b.length&&yd(a,c,b,2);return c};
yd=function(a,b,c,d){function e(c){c&&b.appendChild(g.u(c)?a.createTextNode(c):c)}
for(;d<c.length;d++){var f=c[d];!g.va(f)||g.xa(f)&&0<f.nodeType?e(f):(0,g.H)(Paa(f)?g.sb(f):f,e)}};
g.zd=function(a){return window.document.createElement(String(a))};
g.Ad=function(a){return window.document.createTextNode(String(a))};
g.pd=function(a){return"CSS1Compat"==a.compatMode};
g.Bd=function(a,b){a.appendChild(b)};
g.Cd=function(a,b){yd(g.gd(a),a,arguments,1)};
g.Dd=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.Ed=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)};
Fd=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.Gd=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
g.Hd=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};
g.Jd=function(a){return Qaa&&void 0!=a.children?a.children:(0,g.Id)(a.childNodes,function(a){return 1==a.nodeType})};
g.Ld=function(a){return g.t(a.firstElementChild)?a.firstElementChild:Kd(a.firstChild)};
Kd=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a};
g.Nd=function(a){var b;if(Raa&&!(g.sd&&g.oc("9")&&!g.oc("10")&&v.SVGElement&&a instanceof v.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.xa(b)&&1==b.nodeType?b:null};
g.Od=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};
g.gd=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
Pd=function(a){try{return a.contentWindow||(a.contentDocument?vd(a.contentDocument):null)}catch(b){}return null};
g.Qd=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.Dd(a);var c=g.gd(a);a.appendChild(c.createTextNode(String(b)))}};
Rd=function(a){if("outerHTML"in a)return a.outerHTML;var b=g.gd(a).createElement("DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML};
g.Ud=function(a){var b;if((b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!Sd(a)||Td(a)):Sd(a)&&Td(a))&&g.sd){var c;!g.wa(a.getBoundingClientRect)||g.sd&&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};
Sd=function(a){return g.sd&&!g.oc("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")};
Td=function(a){a=a.tabIndex;return g.qa(a)&&0<=a&&32768>a};
Paa=function(a){if(a&&"number"==typeof a.length){if(g.xa(a))return"function"==typeof a.item||"string"==typeof a.item;if(g.wa(a))return"function"==typeof a.item}return!1};
g.Wd=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return g.Vd(a,function(a){return(!e||a.nodeName==e)&&(!c||g.u(a.className)&&g.jb(a.className.split(/\s+/),c))},!0,d)};
g.Xd=function(a,b){return g.Wd(a,null,b,void 0)};
g.Vd=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};
g.Yd=function(){var a=window.document;try{return a&&a.activeElement}catch(b){}return null};
fd=function(a){this.g=a||v.document||window.document};
g.Zd=function(a){a=a.g;return a.parentWindow||a.defaultView};
g.$d=function(a){Saa();return zc(a)};
g.ae=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 b};
Taa=function(a){return(0,g.J)(a,function(a){a=a.toString(16);return 1<a.length?a:"0"+a}).join("")};
g.ee=function(a,b){g.va(a);be();for(var c=b?ce:de,d=[],e=0;e<a.length;e+=3){var f=a[e],k=e+1<a.length,l=k?a[e+1]:0,m=e+2<a.length,n=m?a[e+2]:0,q=f>>2;f=(f&3)<<4|l>>4;l=(l&15)<<2|n>>6;n&=63;m||(n=64,k||(l=64));d.push(c[q],c[f],c[l],c[n])}return d.join("")};
ge=function(a){var b=[];fe(a,function(a){b.push(a)});
return b};
he=function(a){!g.sd||g.oc("10");var b=new window.Uint8Array(Math.ceil(3*a.length/4)),c=0;fe(a,function(a){b[c++]=a});
return b.subarray(0,c)};
fe=function(a,b){function c(b){for(;d<a.length;){var c=a.charAt(d++),e=ie[c];if(null!=e)return e;if(!E(c))throw Error("Unknown base64 encoding at char: "+c);}return b}
be();for(var d=0;;){var e=c(-1),f=c(0),k=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=k&&(b(f<<4&240|k>>2),64!=l&&b(k<<6&192|l))}};
be=function(){if(!de){de={};ie={};ce={};for(var a=0;65>a;a++)de[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),ie[de[a]]=a,ce[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(ie["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}};
ke=function(a,b,c){this.o=null;this.D=this.F=this.g=this.A=this.B=0;this.C=!1;a&&je(this,a,b,c)};
me=function(a,b,c){if(le.length){var d=le.pop();a&&je(d,a,b,c);return d}return new ke(a,b,c)};
je=function(a,b,c,d){b=b.constructor===window.Uint8Array?b:b.constructor===window.ArrayBuffer?new window.Uint8Array(b):b.constructor===Array?new window.Uint8Array(b):b.constructor===String?he(b):new window.Uint8Array(0);a.o=b;a.B=g.t(c)?c:0;a.A=g.t(d)?a.B+d:a.o.length;a.g=a.B};
ne=function(a){var b=a.o;var c=b[a.g+0];var d=c&127;if(128>c)return a.g+=1,d;c=b[a.g+1];d|=(c&127)<<7;if(128>c)return a.g+=2,d;c=b[a.g+2];d|=(c&127)<<14;if(128>c)return a.g+=3,d;c=b[a.g+3];d|=(c&127)<<21;if(128>c)return a.g+=4,d;c=b[a.g+4];d|=(c&15)<<28;if(128>c)return a.g+=5,d>>>0;a.g+=10;return d};
oe=function(a,b,c){this.g=me(a,b,c);this.o=this.A=-1;this.B=!1};
pe=function(a){var b=a.g;if(b.g==b.A||a.getError())return!1;b=ne(a.g);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.B=!0,!1;a.A=b>>>3;a.o=c;return!0};
qe=function(a){switch(a.o){case 0:if(0!=a.o)qe(a);else{for(a=a.g;a.o[a.g]&128;)a.g++;a.g++}break;case 1:1!=a.o?qe(a):(a=a.g,a.g+=8);break;case 2:if(2!=a.o)qe(a);else{var b=ne(a.g);a=a.g;a.g+=b}break;case 5:5!=a.o?qe(a):(a=a.g,a.g+=4);break;case 3:b=[a.A];do{if(!pe(a)){a.B=!0;break}if(3==a.o)b.push(a.A);else if(4==a.o&&a.A!=b.pop()){a.B=!0;break}}while(0<b.length)}};
re=function(a){var b=ne(a.g);a=a.g;var c=a.o,d=a.g;b=d+b;for(var e=[],f="";d<b;){var k=c[d++];if(128>k)e.push(k);else if(192>k)continue;else if(224>k){var l=c[d++];e.push((k&31)<<6|l&63)}else if(240>k){l=c[d++];var m=c[d++];e.push((k&15)<<12|(l&63)<<6|m&63)}else if(248>k){l=c[d++];m=c[d++];var n=c[d++];m=(k&7)<<18|(l&63)<<12|(m&63)<<6|n&63;m-=65536;e.push((m>>10&1023)+55296,(m&1023)+56320)}8192<=e.length&&(f+=String.fromCharCode.apply(null,e),e.length=0)}f+=String.fromCharCode.apply(null,e);a.g=d;
return f};
se=function(a){var b=ne(a.g);a=a.g;if(0>b||a.g+b>a.o.length)a.C=!0,b=new window.Uint8Array(0);else{var c=a.o.subarray(a.g,a.g+b);a.g+=b;b=c}return b};
te=function(){};
we=function(a,b,c,d){a.g=null;b||(b=[]);a.F=void 0;a.B=-1;a.o=b;a:{if(a.o.length){b=a.o.length-1;var e=a.o[b];if(e&&"object"==typeof e&&!g.ua(e)&&!(ue&&e instanceof window.Uint8Array)){a.C=b-a.B;a.A=e;break a}}a.C=Number.MAX_VALUE}a.D={};if(c)for(b=0;b<c.length;b++)e=c[b],e<a.C?(e+=a.B,a.o[e]=a.o[e]||ve):a.A[e]=a.A[e]||ve;d&&d.length&&(0,g.H)(d,g.Aa(Uaa,a))};
K=function(a,b){if(b<a.C){var c=b+a.B;var d=a.o[c];return d===ve?a.o[c]=[]:d}d=a.A[b];return d===ve?a.A[b]=[]:d};
xe=function(a,b){if(b<a.C){var c=b+a.B;var d=a.o[c];return d===ve?a.o[c]=[]:d}d=a.A[b];return d===ve?a.A[b]=[]:d};
Vaa=function(a){if(null==a||a instanceof window.Uint8Array)return a;if(g.u(a))return he(a);ta(a);return null};
ye=function(a,b,c){b<a.C?a.o[b+a.B]=c:a.A[b]=c};
Uaa=function(a,b){var c,d;(0,g.H)(b,function(b){var e=K(a,b);null!=e&&(c=b,d=e,ye(a,b,void 0))});
return c?(ye(a,c,d),c):0};
ze=function(a,b,c){a.g||(a.g={});if(!a.g[c]){var d=K(a,c);d&&(a.g[c]=new b(d))}return a.g[c]};
Waa=function(a){Ae(a,Be,1);var b=a.g[1];b==ve&&(b=a.g[1]=[]);return b};
Ae=function(a,b,c){a.g||(a.g={});if(!a.g[c]){for(var d=xe(a,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a.g[c]=e}};
De=function(a){if(a.g)for(var b in a.g){var c=a.g[b];if(g.ua(c))for(var d=0;d<c.length;d++)c[d]&&Ce(c[d]);else c&&Ce(c)}};
Ce=function(a){De(a);return a.o};
Ee=function(a){var b;if(g.ua(a)){for(var c=Array(a.length),d=0;d<a.length;d++)null!=(b=a[d])&&(c[d]="object"==typeof b?Ee(b):b);return c}if(ue&&a instanceof window.Uint8Array)return new window.Uint8Array(a);c={};for(d in a)null!=(b=a[d])&&(c[d]="object"==typeof b?Ee(b):b);return c};
Fe=function(a){we(this,a,null,null)};
He=function(a){return ze(a,Ge,1)};
Ge=function(a){we(this,a,null,null)};
Je=function(a){return ze(a,Ie,5)};
Ke=function(a){we(this,a,null,null)};
Le=function(a){we(this,a,null,Xaa)};
Oe=function(a){we(this,a,null,Yaa)};
Pe=function(a){we(this,a,null,null)};
Qe=function(a){we(this,a,null,null)};
Re=function(a){we(this,a,null,null)};
Se=function(a){we(this,a,null,Zaa)};
Te=function(a){we(this,a,null,null)};
Ue=function(a){we(this,a,null,null)};
Ve=function(a){we(this,a,$aa,null)};
Be=function(a){we(this,a,null,null)};
Ie=function(a){we(this,a,null,aba)};
We=function(a){for(var b=[],c=a=vd(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};
g.L=function(){this.bb=this.bb;this.Va=this.Va};
g.M=function(a,b){g.Xe(a,g.Aa(g.Ye,b))};
g.Xe=function(a,b){a.bb?g.t(void 0)?b.call(void 0):b():(a.Va||(a.Va=[]),a.Va.push(g.t(void 0)?(0,g.A)(b,void 0):b))};
g.Ye=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.Ze=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.va(d)?g.Ze.apply(null,d):g.Ye(d)}};
g.$e=function(a,b){this.type=a;this.currentTarget=this.target=b;this.o=!1;this.eC=!0};
af=function(a){a.stopPropagation()};
cf=function(a){return g.ud?"webkit"+a:g.bf?"o"+a.toLowerCase():a.toLowerCase()};
df=function(a,b){g.$e.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.C=this.B=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.g=this.state=null;a&&this.init(a,b)};
g.ff=function(a){return!(!a||!a[g.ef])};
cba=function(a,b,c,d,e){this.listener=a;this.g=null;this.src=b;this.type=c;this.capture=!!d;this.Of=e;this.key=++bba;this.Nj=this.Km=!1};
gf=function(a){a.Nj=!0;a.listener=null;a.g=null;a.src=null;a.Of=null};
hf=function(a){this.src=a;this.listeners={};this.g=0};
kf=function(a,b,c,d,e,f){var k=b.toString();b=a.listeners[k];b||(b=a.listeners[k]=[],a.g++);var l=jf(b,c,e,f);-1<l?(a=b[l],d||(a.Km=!1)):(a=new cba(c,a.src,k,!!e,f),a.Km=d,b.push(a));return a};
lf=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=g.pb(a.listeners[c],b);d&&(gf(b),0==a.listeners[c].length&&(delete a.listeners[c],a.g--));return d};
g.mf=function(a){var b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,gf(d[e]);delete a.listeners[c];a.g--}};
nf=function(a,b,c,d,e){a=a.listeners[b.toString()];b=-1;a&&(b=jf(a,c,d,e));return-1<b?a[b]:null};
of=function(a,b){var c=g.t(b),d=c?b.toString():"",e=g.t(void 0);return Mb(a.listeners,function(a){for(var b=0;b<a.length;++b)if(!(c&&a[b].type!=d||e&&void 0!=a[b].capture))return!0;return!1})};
jf=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Nj&&f.listener==b&&f.capture==!!c&&f.Of==d)return e}return-1};
g.qf=function(a,b,c,d,e){if(d&&d.once)return pf(a,b,c,d,e);if(g.ua(b)){for(var f=0;f<b.length;f++)g.qf(a,b[f],c,d,e);return null}c=rf(c);return g.ff(a)?a.U(b,c,g.xa(d)?!!d.capture:!!d,e):sf(a,b,c,!1,d,e)};
sf=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=g.xa(e)?!!e.capture:!!e,l=g.tf(a);l||(a[uf]=l=new hf(a));c=kf(l,b,c,d,k,f);if(c.g)return c;d=dba();c.g=d;d.src=a;d.listener=c;if(a.addEventListener)eba||(e=k),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(vf(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");wf++;return c};
dba=function(){var a=fba,b=xf?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};
pf=function(a,b,c,d,e){if(g.ua(b)){for(var f=0;f<b.length;f++)pf(a,b[f],c,d,e);return null}c=rf(c);return g.ff(a)?kf(a.Be,String(b),c,!0,g.xa(d)?!!d.capture:!!d,e):sf(a,b,c,!0,d,e)};
g.yf=function(a,b,c,d,e){if(g.ua(b))for(var f=0;f<b.length;f++)g.yf(a,b[f],c,d,e);else d=g.xa(d)?!!d.capture:!!d,c=rf(c),g.ff(a)?a.Ca(b,c,d,e):a&&(a=g.tf(a))&&(b=nf(a,b,c,d,e))&&g.zf(b)};
g.zf=function(a){if(g.qa(a)||!a||a.Nj)return!1;var b=a.src;if(g.ff(b))return lf(b.Be,a);var c=a.type,d=a.g;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent&&b.detachEvent(vf(c),d);wf--;(c=g.tf(b))?(lf(c,a),0==c.g&&(c.src=null,b[uf]=null)):gf(a);return!0};
vf=function(a){return a in Af?Af[a]:Af[a]="on"+a};
Cf=function(a,b,c,d){var e=!0;if(a=g.tf(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.Nj&&(f=Bf(f,d),e=e&&!1!==f)}return e};
Bf=function(a,b){var c=a.listener,d=a.Of||a.src;a.Km&&g.zf(a);return c.call(d,b)};
fba=function(a,b){if(a.Nj)return!0;if(!xf){var c=b||g.x("window.event"),d=new df(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);for(var k=a.type,l=c.length-1;!d.o&&0<=l;l--)d.currentTarget=c[l],f=Cf(c[l],k,!0,d),e=e&&f;for(l=0;!d.o&&l<c.length;l++)d.currentTarget=c[l],f=Cf(c[l],k,!1,d),e=e&&f}return e}return Bf(a,new df(b,this))};
g.tf=function(a){a=a[uf];return a instanceof hf?a:null};
rf=function(a){if(g.wa(a))return a;a[Df]||(a[Df]=function(b){return a.handleEvent(b)});
return a[Df]};
g.Ef=function(){g.L.call(this);this.Be=new hf(this);this.Gc=this;this.Na=null};
Ff=function(a,b,c,d){b=a.Be.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var k=b[f];if(k&&!k.Nj&&k.capture==c){var l=k.listener,m=k.Of||k.src;k.Km&&lf(a.Be,k);e=!1!==l.call(m,d)&&e}}return e&&0!=d.eC};
Gf=function(a,b,c){this.C=c;this.A=a;this.B=b;this.o=0;this.g=null};
Hf=function(a,b){a.B(b);a.o<a.C&&(a.o++,b.next=a.g,a.g=b)};
If=function(a){return function(){return a}};
gba=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Jf=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
Kf=function(a){v.setTimeout(function(){throw a;},0)};
Mf=function(a,b){var c=a;b&&(c=(0,g.A)(a,b));!g.wa(v.setImmediate)||v.Window&&v.Window.prototype&&!Jb("Edge")&&v.Window.prototype.setImmediate==v.setImmediate?(Lf||(Lf=hba()),Lf(c)):v.setImmediate(c)};
hba=function(){var a=v.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Jb("Presto")&&(a=function(){var a=window.document.createElement("IFRAME");a.style.display="none";a.src="";window.document.documentElement.appendChild(a);var b=a.contentWindow;a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host;a=(0,g.A)(function(a){if(("*"==d||
a.origin==d)&&a.data==c)this.port1.onmessage()},this);
b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});
if("undefined"!==typeof a&&!Jb("Trident")&&!Jb("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(g.t(c.next)){c=c.next;var a=c.hw;c.hw=null;a()}};
return function(a){d.next={hw:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof window.document&&"onreadystatechange"in window.document.createElement("SCRIPT")?function(a){var b=window.document.createElement("SCRIPT");
b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};
window.document.documentElement.appendChild(b)}:function(a){v.setTimeout(a,0)}};
Nf=function(){this.o=this.g=null};
Of=function(){this.next=this.scope=this.g=null};
g.Tf=function(a,b){Pf||iba();Qf||(Pf(),Qf=!0);var c=Rf,d=Sf.get();d.set(a,b);c.o?c.o.next=d:c.g=d;c.o=d};
iba=function(){if(-1!=String(v.Promise).indexOf("[native code]")){var a=v.Promise.resolve(void 0);Pf=function(){a.then(Uf)}}else Pf=function(){Mf(Uf)}};
Uf=function(){for(var a;a=Rf.remove();){try{a.g.call(a.scope)}catch(b){Kf(b)}Hf(Sf,a)}Qf=!1};
Vf=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0};
Wf=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
g.Yf=function(a,b){this.g=0;this.F=void 0;this.B=this.o=this.A=null;this.C=this.D=!1;if(a!=g.y)try{var c=this;a.call(b,function(a){Xf(c,2,a)},function(a){Xf(c,3,a)})}catch(d){Xf(this,3,d)}};
Zf=function(){this.next=this.context=this.o=this.B=this.g=null;this.A=!1};
ag=function(a,b,c){var d=$f.get();d.B=a;d.o=b;d.context=c;return d};
bg=function(a){if(a instanceof g.Yf)return a;var b=new g.Yf(g.y);Xf(b,2,a);return b};
cg=function(a){return new g.Yf(function(b,c){c(a)})};
eg=function(a,b,c){dg(a,b,c,null)||g.Tf(g.Aa(b,a))};
jba=function(a){return new g.Yf(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],eg(e,b,c)})};
g.gg=function(a){return new g.Yf(function(b,c){var d=a.length,e=[];if(d)for(var f=function(a,c){d--;e[a]=c;0==d&&b(e)},k=function(a){c(a)},l=0,m;l<a.length;l++)m=a[l],eg(m,g.Aa(f,l),k);
else b(e)})};
lba=function(){var a,b,c=new g.Yf(function(c,e){a=c;b=e});
return new kba(c,a,b)};
mba=function(a,b){var c=ag(b,b,void 0);c.A=!0;hg(a,c)};
g.jg=function(a,b){return ig(a,null,b,void 0)};
kg=function(a,b){if(0==a.g)if(a.A){var c=a.A;if(c.o){for(var d=0,e=null,f=null,k=c.o;k&&(k.A||(d++,k.g==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.g&&1==d?kg(c,b):(f?(d=f,d.next==c.B&&(c.B=d),d.next=d.next.next):lg(c),mg(c,e,3,b)))}a.A=null}else Xf(a,3,b)};
hg=function(a,b){a.o||2!=a.g&&3!=a.g||ng(a);a.B?a.B.next=b:a.o=b;a.B=b};
ig=function(a,b,c,d){var e=ag(null,null,null);e.g=new g.Yf(function(a,k){e.B=b?function(c){try{var e=b.call(d,c);a(e)}catch(n){k(n)}}:a;
e.o=c?function(b){try{var e=c.call(d,b);!g.t(e)&&b instanceof og?k(b):a(e)}catch(n){k(n)}}:k});
e.g.A=a;hg(a,e);return e.g};
Xf=function(a,b,c){0==a.g&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.g=1,dg(c,a.I,a.J,a)||(a.F=c,a.g=b,a.A=null,ng(a),3!=b||c instanceof og||nba(a,c)))};
dg=function(a,b,c,d){if(a instanceof g.Yf)return hg(a,ag(b||g.y,c||null,d)),!0;if(Wf(a))return a.then(b,c,d),!0;if(g.xa(a))try{var e=a.then;if(g.wa(e))return oba(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
oba=function(a,b,c,d,e){function f(a){l||(l=!0,d.call(e,a))}
function k(a){l||(l=!0,c.call(e,a))}
var l=!1;try{b.call(a,k,f)}catch(m){f(m)}};
ng=function(a){a.D||(a.D=!0,g.Tf(a.G,a))};
lg=function(a){var b=null;a.o&&(b=a.o,a.o=b.next,b.next=null);a.o||(a.B=null);return b};
mg=function(a,b,c,d){if(3==c&&b.o&&!b.A)for(;a&&a.C;a=a.A)a.C=!1;if(b.g)b.g.A=null,pg(b,c,d);else try{b.A?b.B.call(b.context):pg(b,c,d)}catch(e){qg.call(null,e)}Hf($f,b)};
pg=function(a,b,c){2==b?a.B.call(a.context,c):a.o&&a.o.call(a.context,c)};
nba=function(a,b){a.C=!0;g.Tf(function(){a.C&&qg.call(null,b)})};
og=function(a){Fa.call(this,a)};
kba=function(a,b,c){this.g=a;this.resolve=b;this.reject=c};
g.rg=function(a,b){g.Ef.call(this);this.o=a||1;this.g=b||v;this.A=(0,g.A)(this.eI,this);this.B=(0,g.G)()};
sg=function(a,b){a.o=b;a.Ge&&a.enabled?(a.stop(),a.start()):a.Ge&&a.stop()};
g.tg=function(a,b,c){if(g.wa(a))c&&(a=(0,g.A)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.A)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:v.setTimeout(a,b||0)};
g.ug=function(a){v.clearTimeout(a)};
vg=function(){return Math.round((0,g.G)()/1E3)};
pba=function(a){var b=window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing.domLoading?Math.round(window.performance.timing.domLoading/1E3):null;return null!=b?b:null!=a?a:vg()};
qba=function(){this.o=-1};
rba=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))};
g.xg=function(a){try{return v.JSON.parse(a)}catch(d){var b=d}a=String(a);if(rba(a))try{var c=eval("("+a+")");b&&wg("Invalid JSON: "+a,b);return c}catch(d){}throw Error("Invalid JSON string: "+a);};
g.zg=function(a){var b=[];yg(new sba,a,b);return b.join("")};
sba=function(){};
yg=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(g.ua(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),yg(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),Ag(d,c),c.push(":"),yg(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Ag(b,c);break;case "number":c.push((0,window.isFinite)(b)&&
!(0,window.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);}}};
Ag=function(a,b){b.push('"',a.replace(tba,function(a){var b=Bg[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),Bg[a]=b);return b}),'"')};
Cg=function(a){this.g=a||{cookie:""}};
Dg=function(a){a=(a.g.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Ta(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}};
g.Eg=function(a,b,c,d,e,f,k){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);k&&(l+="#"+k);return l};
g.Fg=function(a){return a.match(uba)};
g.Gg=function(a){return a?(0,window.decodeURI)(a):a};
g.Hg=function(a){return g.Gg(g.Fg(a)[3]||null)};
g.Ig=function(a){return Number(g.Fg(a)[4]||null)||null};
Jg=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 k=c[d].substring(0,e);f=c[d].substring(e+1)}else k=c[d];b(k,f?Ka(f):"")}};
Kg=function(a,b){if(!b)return a;var c=a.indexOf("#");0>c&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);c=[a.substr(0,d),e,a.substr(c)];d=c[1];c[1]=b?d?d+"&"+b:b:d;return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
Lg=function(a,b,c){if(g.ua(b))for(var d=0;d<b.length;d++)Lg(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.Ja(b)))};
Mg=function(a,b){for(var c=[],d=b||0;d<a.length;d+=2)Lg(a[d],a[d+1],c);return c.join("&")};
g.Ng=function(a){var b=[],c;for(c in a)Lg(c,a[c],b);return b.join("&")};
Og=function(a,b){var c=2==arguments.length?Mg(arguments[1],0):Mg(arguments,1);return Kg(a,c)};
g.Pg=function(a,b){var c=g.Ng(b);return Kg(a,c)};
Qg=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};
Sg=function(a,b){var c=a.search(Rg),d=Qg(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 Ka(a.substr(d,e-d))};
g.Tg=function(a,b){for(var c=a.search(Rg),d=0,e,f=[];0<=(e=Qg(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(vba,"$1")};
Ug=function(a,b,c){a=g.Tg(a,b);c=null!=c?"="+g.Ja(c):"";return Kg(a,b+c)};
Vg=function(){this.g={};return this};
Xg=function(a,b){a.g.eb=Zb(a.g,"eb",0)|b};
g.Yg=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
Zg=function(a,b,c){b instanceof g.ad?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,g.qa(c)&&(a.top+=c,a.bottom+=c));return a};
g.$g=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
g.ah=function(a){return new g.Yg(a.top,a.left+a.width,a.top+a.height,a.left)};
g.bh=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1};
g.ch=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top),f=Math.min(a.top+a.height,b.top+b.height);if(e<=f)return a.left=c,a.top=e,a.width=d-c,a.height=f-e,!0}return!1};
g.dh=function(a){return new g.dd(a.width,a.height)};
g.eh=function(a){return new g.ad(a.left,a.top)};
wba=function(){this.g={};this.o=0};
fh=function(a,b){this.C=a;this.A=!0;this.g=b};
gh=function(a,b){fh.call(this,String(a),b);this.B=a;this.g=!!b};
hh=function(a,b){fh.call(this,a,b)};
ih=function(a){if(a.match(/^-?[0-9]+\.-?[0-9]+\.-?[0-9]+\.-?[0-9]+$/)){a=a.split(".");var b=Number(a[0]),c=Number(a[1]);return new hh("",new g.$g(c,b,Number(a[3])-c,Number(a[2])-b))}return new hh("",new g.$g(0,0,0,0))};
kh=function(){jh||(jh=new wba);return jh};
lh=function(a,b){a.g[b.C]=b};
g.nh=function(a,b,c){if(g.u(b))(b=mh(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=mh(c,d);f&&(c.style[f]=e)}};
mh=function(a,b){var c=oh[b];if(!c){var d=$a(b);c=d;void 0===a.style[d]&&(d=(g.ud?"Webkit":g.ph?"Moz":g.sd?"ms":g.bf?"O":null)+raa(d),void 0!==a.style[d]&&(c=d));oh[b]=c}return c};
qh=function(a,b){var c=a.style[$a(b)];return"undefined"!==typeof c?c:a.style[mh(a,b)]||""};
g.rh=function(a,b){var c=g.gd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
g.sh=function(a,b){return g.rh(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.uh=function(a,b,c){if(b instanceof g.ad){var d=b.x;b=b.y}else d=b,b=c;a.style.left=th(d,!1);a.style.top=th(b,!1)};
vh=function(a){return new g.ad(a.offsetLeft,a.offsetTop)};
wh=function(a){try{var b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}g.sd&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b};
g.xh=function(a){if(g.sd&&!g.pc(8))return a.offsetParent;var b=g.gd(a),c=g.sh(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=g.sh(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.zh=function(a){for(var b=new g.Yg(0,window.Infinity,window.Infinity,0),c=g.id(a),d=c.g.body,e=c.g.documentElement,f=rd(c.g);a=g.xh(a);)if(!(g.sd&&0==a.clientWidth||g.ud&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=g.sh(a,"overflow")){var k=g.yh(a),l=new g.ad(a.clientLeft,a.clientTop);k.x+=l.x;k.y+=l.y;b.top=Math.max(b.top,k.y);b.right=Math.min(b.right,k.x+a.clientWidth);b.bottom=Math.min(b.bottom,k.y+a.clientHeight);b.left=Math.max(b.left,k.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,
d);b.top=Math.max(b.top,f);c=g.qd(g.Zd(c)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null};
g.yh=function(a){var b=g.gd(a),c=new g.ad(0,0);var d=b?g.gd(b):window.document;d=!g.sd||g.pc(9)||g.pd(g.id(d).g)?d.documentElement:d.body;if(a==d)return c;a=wh(a);b=g.td(g.id(b).g);c.x=a.left+b.x;c.y=a.top+b.y;return c};
g.Bh=function(a,b){var c=new g.ad(0,0),d=vd(g.gd(a));if(!lc(d,"parent"))return c;var e=a;do{var f=d==b?g.yh(e):Ah(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.Dh=function(a,b){var c=g.Ch(a),d=g.Ch(b);return new g.ad(c.x-d.x,c.y-d.y)};
Ah=function(a){a=wh(a);return new g.ad(a.left,a.top)};
g.Ch=function(a){if(1==a.nodeType)return Ah(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.ad(a.clientX,a.clientY)};
g.Fh=function(a,b,c){if(b instanceof g.dd)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");g.Eh(a,b);a.style.height=th(c,!0)};
th=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Eh=function(a,b){a.style.width=th(b,!0)};
g.Gh=function(a){var b=xba;if("none"!=g.sh(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};
xba=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.ud&&!b&&!c;return g.t(b)&&!d||!a.getBoundingClientRect?new g.dd(b,c):(a=wh(a),new g.dd(a.right-a.left,a.bottom-a.top))};
g.Hh=function(a){var b=g.yh(a);a=g.Gh(a);return new g.$g(b.x,b.y,a.width,a.height)};
g.Ih=function(a,b){var c=a.style;"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity="+100*Number(b)+")")};
g.O=function(a,b){a.style.display=b?"":"none"};
g.Jh=function(a){return"none"!=a.style.display};
Kh=function(a){var b=new g.$g(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new g.$g(0,0,0,0);if(!a||0==a.length)return c;for(var d=0;d<a.length;d++)if(!g.ch(b,a[d]))return c;return b};
Lh=function(a,b){var c=a.getBoundingClientRect(),d=g.Bh(a,b);return new g.$g(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))};
Mh=function(a,b,c){if(b&&c){a:{var d=Math.max(b.left,c.left);var e=Math.min(b.left+b.width,c.left+c.width);if(d<=e){var f=Math.max(b.top,c.top),k=Math.min(b.top+b.height,c.top+c.height);if(f<=k){d=new g.$g(d,f,e-d,k-f);break a}}d=null}e=d?d.height*d.width:0;f=d?b.height*b.width:0;d=d&&f?Math.round(e/f*100):0;lh(a,new fh("vp",d));d&&0<d?(e=g.ah(b),f=g.ah(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;lh(a,new gh(512,e));d&&0<d?(e=g.ah(b),f=g.ah(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;lh(a,new gh(1024,
e));d&&0<d?(e=g.ah(b),f=g.ah(c),e=e.left>=f.left&&e.left<f.right):e=!1;lh(a,new gh(2048,e));d&&0<d?(b=g.ah(b),c=g.ah(c),c=b.right<=c.right&&b.right>c.left):c=!1;lh(a,new gh(4096,c))}};
yba=function(a,b){var c=0;g.Sb(vd(),"ima","video","client","tagged")&&(c=1);var d=null;a&&(d=a());if(d){var e=d;d=kh();d.g={};var f=new gh(32,!0);f.A=!1;lh(d,f);f=vd().document;f=f.webkitVisibilityState||f.mozVisibilityState||f.visibilityState||f.msVisibilityState||"";lh(d,new gh(64,"hidden"!=f.toLowerCase().substring(f.length-6)?!0:!1));try{var k=vd().top;try{var l=!!k.location.href||""===k.location.href}catch(r){l=!1}if(l){var m=We(e);var n=m&&0!=m.length?"1":"0"}else n="2"}catch(r){n="2"}lh(d,
new gh(256,"2"==n));lh(d,new gh(128,"1"==n));m=l=vd().top;"2"==n&&(m=vd());k=Lh(e,m);lh(d,new hh("er",k));try{var q=m.document&&!m.document.body?null:g.qd(m||window)}catch(r){q=null}q?(m=g.td(g.id(m.document).g),lh(d,new gh(16384,!!m)),q=m?new g.$g(m.x,m.y,q.width,q.height):null):q=null;lh(d,new hh("vi",q));if(q&&"1"==n){n=We(e);e=[];for(m=0;m<n.length;m++)(f=Lh(n[m],l))&&e.push(f);e.push(q);q=Kh(e)}Mh(d,k,q);d.o&&(n=vg()-d.o,lh(d,new fh("ts",n)));d.o=vg()}else d=kh(),d.g={},d.o=vg(),lh(d,new gh(32,
!1));this.A=d;this.g=new Vg;this.g.set("ve",4);c&&Xg(this.g,1);g.Sb(vd(),"ima","video","client","crossdomainTag")&&Xg(this.g,4);g.Sb(vd(),"ima","video","client","sdkTag")&&Xg(this.g,8);g.Sb(vd(),"ima","video","client","jsTag")&&Xg(this.g,2);b&&Zb(b,"fullscreen",!1)&&Xg(this.g,16);this.o=d=null;if(c&&(c=g.Sb(vd(),"ima","video","client"),c.getEData)){this.o=c.getEData();if(c=g.Sb(vd(),"ima","video","client","getLastSnapshotFromTop"))if(n=c())this.o.extendWithDataFromTopIframe(n.tagstamp,n.playstamp,
n.lactstamp),c=this.A,d=n.er,n=n.vi,d&&n&&(d=ih(d).getValue(),n=ih(n).getValue(),e=null,Zb(c.g,"er",null)&&(e=Zb(c.g,"er",null).getValue(),e.top+=d.top,e.left+=d.left,lh(c,new hh("er",e))),Zb(c.g,"vi",null)&&(q=Zb(c.g,"vi",null).getValue(),q.top+=d.top,q.left+=d.left,l=[],l.push(q),l.push(d),l.push(n),d=Kh(l),Mh(c,e,d),lh(c,new hh("vi",n))));a:{if(this.o){if(this.o.getTagLoadTimestamp){d=this.o.getTagLoadTimestamp();break a}if(this.o.getTimeSinceTagLoadSeconds){d=this.o.getTimeSinceTagLoadSeconds();
break a}}d=null}}this.g.set("td",vg()-pba(d))};
zba=function(a,b){try{var c=new yba(a,b),d=[],e=Number(c.g.get("eb"));c.g.remove("eb");var f,k=c.g,l=[],m;for(m in k.g)l.push(m+k.g[m]);(f=l.join("_"))&&d.push(f);if(c.o){var n=c.o.serialize();n&&d.push(n)}var q,r=c.A;f=e;k=[];f||(f=0);for(var w in r.g){var z=r.g[w];if(z instanceof gh)z.getValue()&&(f|=z.B);else{var B,C=r.g[w];(B=C.A?C.o():"")&&k.push(w+B)}}k.push("eb"+String(f));(q=k.join("_"))&&d.push(q);c.g.set("eb",e);return d.join("_")}catch(N){return"tle;"+Ma(N.name,12)+";"+Ma(N.message,40)}};
g.Nh=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return a?(0,window.parseInt)(a[1],10):0};
Oh=function(a){return!!window.document.currentScript&&(-1!=window.document.currentScript.src.indexOf("?"+a)||-1!=window.document.currentScript.src.indexOf("&"+a))};
Ph=function(a,b,c){this.type=a;this.label=b;this.be=c};
Qh=function(a,b){return new Ph(a,1,b)};
Rh=function(a){new Ph(a,2,void 0)};
Sh=function(a,b){return new Ph(a,3,b)};
Th=function(a){return Qh("m",a)};
Uh=function(a){return Sh("m",a)};
Vh=function(a,b,c,d){if(d)c=a+("&"+b+"="+c);else{var e="&"+b+"=",f=a.indexOf(e);0>f?c=a+e+c:(f+=e.length,e=a.indexOf("&",f),c=0<=e?a.substring(0,f)+c+a.substring(e):a.substring(0,f)+c)}return 2E3<c.length?g.t(void 0)?Vh(a,b,void 0,d):a:c};
Wh=function(a){try{return!!a&&null!=a.location.href&&lc(a,"foo")}catch(b){return!1}};
Xh=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
Aba=function(a){var b=0;Xh(a,function(){b++});
return b};
Bba=function(){var a=v;try{for(var b=null;b!=a;b=a,a=a.parent)switch(a.location.protocol){case "https:":return!0;case "file:":return!1;case "http:":return!1}}catch(c){}return!0};
Cba=function(){var a=Yh;if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec((0,window.decodeURIComponent)(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""};
$h=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,Zh?d:d?d.capture||!1:!1):a.attachEvent&&a.attachEvent("on"+b,c)};
ai=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,Zh?void 0:!1):a.detachEvent&&a.detachEvent("on"+b,c)};
bi=function(a){a=a||v;var b=a.context;if(!b)try{b=a.parent.context}catch(c){}try{if(b&&"pageViewId"in b&&"canonicalUrl"in b)return b}catch(c){}return null};
di=function(a,b,c){a.google_image_requests||(a.google_image_requests=[]);var d=a.document.createElement("img");if(c){var e=function(a){c(a);ai(d,"load",e);ai(d,"error",e)};
$h(d,"load",e);$h(d,"error",e)}d.src=b;a.google_image_requests.push(d)};
fi=function(a){a.u_tz=-(new Date).getTimezoneOffset();var b=void 0===b?ei:b;try{var c=b.history.length}catch(d){c=0}a.u_his=c;if(c=!!ei.navigator)c="unknown"!==typeof ei.navigator.javaEnabled;a.u_java=c&&!!ei.navigator.javaEnabled&&ei.navigator.javaEnabled();ei.screen&&(a.u_h=ei.screen.height,a.u_w=ei.screen.width,a.u_ah=ei.screen.availHeight,a.u_aw=ei.screen.availWidth,a.u_cd=ei.screen.colorDepth);ei.navigator&&ei.navigator.plugins&&(a.u_nplug=ei.navigator.plugins.length);ei.navigator&&ei.navigator.mimeTypes&&
(a.u_nmime=ei.navigator.mimeTypes.length)};
ji=function(){if(gi&&!Wh(hi)){var a="."+ii.domain;try{for(;2<a.split(".").length&&!Wh(hi);)ii.domain=a=a.substr(a.indexOf(".")+1),hi=window.parent}catch(b){}Wh(hi)||(hi=window)}return hi};
li=function(){var a=window.event||ki;if(!a)return null;var b;(b=a.which?1<<Dba[a.which-1]:a.button)&&a.shiftKey&&(b|=8);b&&a.altKey&&(b|=16);b&&a.ctrlKey&&(b|=32);return b};
mi=function(a,b,c){b=b||ei;a&&null!==b&&b!==b.top&&(b=b.top);try{return b.document&&!b.document.body?new g.dd(-1,-1):(void 0===c?0:c)?(new g.dd(b.innerWidth,b.innerHeight)).round():g.qd(b||window).round()}catch(d){return new g.dd(-12245933,-12245933)}};
ni=function(){this.g=!0};
Eba=function(){this.A=this.B=this.g=this.o=this.C=0};
oi=function(a,b,c){c=void 0===c?{}:c;this.error=a;this.context=b.context;this.line=b.line||-1;this.msg=b.message||"";this.file=b.file||"";this.id=b.id||"jserror";this.meta=c};
Fba=function(a,b){this.g=a;this.o=b};
pi=function(a,b,c){this.url=a;this.nu=b;this.Jy=!!c;this.depth=g.qa(void 0)?void 0:null};
ri=function(a){a=a?a:qi();for(var b=new pi(v.location.href,v,!1),c=a.length-1,d=c;0<=d;--d){var e=a[d];if(e.url&&!e.Jy){b=e;break}}d=null;e=a.length&&a[c].url;0!=b.depth&&e&&(d=a[c]);return new Fba(b,d)};
qi=function(){var a=v,b=[],c=null;do{var d=a;if(Wh(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new pi(e||"",d));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);a=0;for(d=b.length-1;a<=d;++a)b[a].depth=d-a;d=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.Jy=!0);return b};
si=function(a,b,c,d,e){this.D=c||4E3;this.A=a||"&";this.F=b||",$";this.B=g.t(d)?d:"trn";this.I=e||null;this.C=!1;this.o={};this.G=0;this.g=[]};
ti=function(a,b){var c={};c[a]=b;return[c]};
vi=function(a,b,c,d,e){var f=[];Xh(a,function(a,l){var k=ui(a,b,c,d,e);k&&f.push(l+"="+k)});
return f.join(b)};
ui=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=[],k=0;k<a.length;k++)f.push(ui(a[k],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?(0,window.encodeURIComponent)(vi(a,b,c,d,e+1)):"...";return(0,window.encodeURIComponent)(String(a))};
wi=function(a,b,c,d){a.g.push(b);a.o[b]=ti(c,d)};
xi=function(a,b,c){var d=a.G++;b=ti(b,c);a.g.push(d);a.o[d]=b};
yi=function(a,b,c,d){b=b+"//"+c+d;var e=Gba(a)-d.length-0;if(0>e)return"";a.g.sort(function(a,b){return a-b});
d=null;c="";for(var f=0;f<a.g.length;f++)for(var k=a.g[f],l=a.o[k],m=0;m<l.length;m++){if(!e){d=null==d?k:d;break}var n=vi(l[m],a.A,a.F);if(n){n=c+n;if(e>=n.length){e-=n.length;b+=n;c=a.A;break}else a.C&&(c=e,n[c-1]==a.A&&--c,b+=n.substr(0,c),c=a.A,e=0);d=null==d?k:d}}f="";a.B&&null!=d&&(f=c+a.B+"="+(a.I||d));return b+f+""};
Gba=function(a){if(!a.B)return a.D;var b=1,c;for(c in a.o)b=c.length>b?c.length:b;return a.D-a.B.length-b-a.A.length-1};
zi=function(a,b,c,d){if(Math.random()<(d||a.g))try{if(c instanceof si)var e=c;else e=new si,Xh(c,function(a,b){xi(e,b,a)});
var f=yi(e,a.B,a.o,a.A+b+"&");f&&di(v,f)}catch(k){}};
Ai=function(a,b,c,d,e){this.label=a;this.type=b;this.value=c;this.duration=void 0===d?0:d;this.uniqueId=this.label+"_"+this.type+"_"+Math.random();this.slotId=e};
Bi=function(a,b){this.events=[];this.g=b||v;var c=null;b&&(b.google_js_reporting_queue=b.google_js_reporting_queue||[],this.events=b.google_js_reporting_queue,c=b.google_measure_js_timing);a:{try{var d=(this.g||v).top.location.hash;if(d){var e=d.match(/\bdeid=([\d,]+)/);var f=e&&e[1]||"";break a}}catch(k){}f=""}f=f.indexOf&&0<=f.indexOf("1337");this.o=(this.o=null!=c?c:Math.random()<a)||f;c=this.g.performance;this.D=!!(c&&c.mark&&c.clearMarks&&f)};
Ci=function(){var a=v.performance;return a&&a.now?a.now():(0,g.G)()};
Di=function(a,b,c,d){this.B=a;this.D=b;this.A=c;this.C=this.o;this.g=void 0===d?null:d};
Fi=function(a,b,c,d,e){try{if(a.g&&a.g.o){var f=a.g.start(b.toString(),3);var k=c();a.g.end(f)}else k=c()}catch(m){c=a.A;try{a.g&&f&&a.g.ww(f);var l=Ei(m);c=(e||a.C).call(a,b,l,void 0,d)}catch(n){a.o(217,n)}if(!c)throw m;}return k};
Hi=function(a,b,c,d){var e=Gi;return function(f){for(var k=[],l=0;l<arguments.length;++l)k[l-0]=arguments[l];return Fi(e,a,function(){return b.apply(c,k)},d,void 0)}};
Ei=function(a){return new Ii(Ji(a),a.fileName,a.lineNumber)};
Ji=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};
Ii=function(a,b,c){oi.call(this,Error(a),{message:a,file:void 0===b?"":b,line:void 0===c?-1:c})};
Ki=function(a,b){return Fi(Gi,a,b,void 0,Hba)};
Li=function(a,b,c,d){return Hi(a,b,c,d)};
Mi=function(a,b){Gi.o(a,b,void 0,void 0)};
Ni=function(a,b,c,d){c=Hi(d,c,void 0,void 0);$h(a,b,c,{capture:!1});return c};
Oi=function(){return{visible:1,hidden:2,prerender:3,preview:4}[ii.webkitVisibilityState||ii.mozVisibilityState||ii.visibilityState||""]||0};
Ri=function(){var a=ei&&ei.document;Pi.e=-1;Pi.i=6;Pi.n=7;Pi.t=8;if(!Qi){var b=[];Xh(Pi,function(a,c){b[a+1]=c});
var c=b.join(""),d=a&&a[c];Qi=d&&function(b,c){return d.call(a,b,c)}}return Qi};
Si=function(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")};
Ti=function(a){return(a=a.exec(g.Ib))?a[1]:""};
g.Ui=function(a){return 0<=g.Va(Iba,a)};
Yi=function(){return g.sd&&9>nc||g.ph||Vi&&g.Wi&&g.Ui("6.0.1")?!1:0<=g.Va(Xi,"11")};
aj=function(a){a=void 0===a?!1:a;var b=Zi&&0<=g.Va($i,9),c=g.Wi&&g.oc(601);return!a&&(b||c)};
gj=function(a){var b=0<=bj?cj()-bj:-1,c=dj?cj()-ej:-1,d=0<=fj?cj()-fj:-1;if(79463068==a)return 500;if(947190538==a){a=[4E3];var e=[250,1E3]}else if(947190541==a)a=[4E3],e=[100,1E3];else{if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];e=[250,500,1E3]}var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var k=e[b];break}void 0===k&&(k=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:k};
cj=function(){return(new Date).getTime()-Jba};
hj=function(){var a=g.xd("DIV");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a};
Lba=function(a){return ij(a,function(a,c){return!(!lc(c,"style")||!c.style||"none"!==qh(c,"display"))},function(a){return a},!1)?!0:Kba(a)};
Kba=function(a){var b=!g.sd||g.oc(8);return ij(a,function(a,d){var c=lc(d,"style")&&d.style&&qh(d,"visibility");return{hidden:"hidden"===c,visible:b&&"visible"===c}},function(a){return a.hidden||a.visible},{hidden:!1,
visible:!1}).hidden};
ij=function(a,b,c,d){if(!a)return d;d=jj(a,b,c,d);if(!d.done)try{var e=g.gd(a),f=e&&vd(e);return ij(f&&f.frameElement,b,c,d.value)}catch(k){}return d.value};
jj=function(a,b,c,d){if(!a)return{value:d,done:!1};d=b(d,a);var e=c(d,a);return!e&&lc(a,"parentElement")?jj(g.Nd(a),b,c,d):{done:e,value:d}};
kj=function(a){return new g.Yg(a.top,a.right,a.bottom,a.left)};
lj=function(a){return null!=a&&0<=a&&1>=a};
Nba=function(){var a=this.g=new Eba,b=(0,g.G)();a.C=b;a=vd();mj(this,a,window.document);b=Mba();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)mj(this,c,c.document);mj(this,a.top,a.top.document)}}catch(d){}};
Mba=function(){var a=window.document.documentElement;try{if(!Wh(vd().top))return"2";var b=[],c=vd(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"}};
mj=function(a,b,c){Ni(c,"mousedown",function(){var b=a.g;1E5<b.o||(b.o+=1)},301);
Ni(b,"scroll",function(){var b=a.g;1E5<b.g||(b.g+=1)},302);
Ni(c,"touchmove",function(){var b=a.g;1E5<b.g||(b.g+=1)},303);
Ni(c,"mousemove",function(){var b=a.g;1E5<b.B||(b.B+=1)},304);
Ni(c,"keydown",function(){var b=a.g;1E5<b.A||(b.A+=1)},305)};
nj=function(){this.g=0;this.B=!1;this.o=-1;this.C=0;this.Ke=!1};
oj=function(){nj.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.A=-1};
pj=function(a){return lj(a.volume)&&.1<=a.volume};
qj=function(){var a={};this.o=(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.cm=[128,128],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.g={};for(var b in this.o)0<this.o[b][1]&&(this.g[b]=0);this.A=0};
Oba=function(a){return uj(a,g.Rb(a.o))};
uj=function(a,b){var c=0,d;for(d in a.g)g.jb(b,d)&&1==a.g[d]&&(c+=a.o[d][1],a.g[d]=2);return c};
Pba=function(a){var b=0,c;for(c in a.g){var d=a.g[c];if(1==d||2==d)b+=a.o[c][1]}return b};
vj=function(){this.g=[]};
wj=function(a){this.g=this.o=0;this.A=a};
xj=function(){this.bb=[0,0,0,0,0];this.A=[0,0,0,0,0];this.fa=[0,0,0,0,0];this.L=this.ka=0;this.Va=this.C=-1;this.Ka=1E3};
yj=function(a,b,c){for(;0<=b&&4>=b;b++)a[b]+=c};
zj=function(a){var b=-1;1<=a?b=0:.75<=a?b=1:.5<=a?b=2:.3<=a?b=3:0<a&&(b=4);return b};
Aj=function(){xj.call(this);this.sa=this.V=this.ba=this.aa=this.Y=this.o=0;this.D=-1;this.F=this.J=this.I=this.G=this.da=this.pa=this.N=0;this.ea=[0,0,0,0,0];this.B=this.g=-1;this.O=this.ha=0;this.Ka=2E3;this.ra=new wj(32);this.Fa=new wj(32);this.Aa=new wj(32)};
Bj=function(a,b,c){var d=a.sa;dj||c||-1==a.D||(d+=b-a.D);return d};
Cj=function(a,b){this.A=null;this.F=a;this.I=b||1;this.o="u"};
Dj=function(a,b){var c=b.right-b.left,d=b.bottom-b.top,e=Math.floor(c/2),f=Math.floor(d/2);switch(a.I){case 4:return a.F?(e=Math.floor(.3*c),f=Math.floor(.3*d),[new g.ad(e,f),new g.ad(c-e,f),new g.ad(e,d-f),new g.ad(c-e,d-f)]):[new g.ad(e,0),new g.ad(0,f),new g.ad(e,d-1),new g.ad(c-1,f)];case 3:return[new g.ad(c-1,0),new g.ad(e,f),new g.ad(0,d-1)];default:return[new g.ad(e,f)]}};
Ej=function(a,b){try{var c=b||a.A.getBoundingClientRect()}catch(e){c=new g.Yg(0,0,0,0)}var d=Dj(a,c);(0,g.H)(d,function(a){a.x+=c.left;a.y+=c.top});
return d};
Fj=function(a,b){Cj.call(this,a,b);this.g=[];this.G=!1;this.B=-1;this.C=this.D=0};
Gj=function(a,b,c){this.snapshot=a;this.o=b;this.g=c};
Qba=function(a){if(a.A&&a.G){var b=Ej(a);(0,g.H)(b,function(a,b){this.g[b]&&Hj(this.g[b],a)},a)}};
Ij=function(a){(0,g.H)(a.g,function(a){a.remove()});
a.g=[];a.o="d"};
Vba=function(a){var b=(0,g.G)(),c=a.D?b-a.D:0,d=-1,e=(0,g.J)(a.g,function(a){return Jj(a,b)});
4==a.g.length?d=a.F?Rba(e):Sba(e):3==a.g.length?d=Tba(e):1==a.g.length&&(d=[-1,0,1,2,3,5][Jj(a.g[0],b)+1]);a.C=d==a.B?a.C+c:0;c=new Gj(d,a.B,c);a.B=d;a.D=b;Uba(a,d);Qba(a);return c};
Lj=function(a){var b=Gb(g.Nb(Kj));(0,g.H)(a,function(a){0<=a&&++b[a]});
return b};
Sba=function(a){a=Lj(a);return 4==a[4]?6:3<=a[4]?5:0<a[4]?4:4==a[2]?2:4==a[1]?1:4==a[0]?0:3};
Tba=function(a){var b=Lj(a);return 4==a[0]&&4==a[2]?6:4==a[1]?5:0<b[4]?4:3==b[2]?2:3==b[1]?1:3==b[0]?0:3};
Rba=function(a){a=Lj(a);return 3<=a[4]?5:2==a[4]?8:0<a[4]?7:4==a[2]?2:4==a[1]?1:4==a[0]?0:3};
Uba=function(a,b){if(0==b&&Mj(a))a.o="n";else switch(b){case -1:a.o="d";break;case 0:a.o="l";break;case 1:a.o="f";break;case 2:a.o="c";break;case 3:case 4:case 5:case 6:a.o="r"}};
Mj=function(a){return"n"==a.o?!0:"l"==a.o&&3E3<=a.C};
Pj=function(a,b,c,d){this.g=null;this.D=a;this.ya="e"==a?String(c)+"~"+String(d):"";this.o=[];this.A=-1;this.C=0;this.B=Gb(g.Nb(Wba));this.J=Gb(g.Nb(Kj));"e"==this.D&&(Nj[this.ya]=(0,g.A)(this.I,this));g.sd?(a=b.createElement("div"),a.innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="opacity:0;-ms-filter:\'progid:DXImageTransform.Microsoft.Alpha(opacity=0)\';filter:alpha(opacity=0)"><param name="movie" value="'+Oj(this,!0)+'"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"></param></object>',
a=a.firstChild,a.id=String(Math.random())):a=Xba(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.g=a};
Xba=function(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}
var d=Oj(a),e=b.createElement("object");e.type="application/x-shockwave-flash";e.data=d;c(e,"movie",d);c(e,"allowscriptaccess","always");c(e,"wmode","opaque");e.style.visibility="hidden";e.style.opacity=0;return e};
Oj=function(a,b){var c=Og("//pagead2.googlesyndication.com/osd/hbe.swf","id",a.ya);b&&(c=Og(c,"delay","1"));return c};
Hj=function(a,b){a.g&&!bd(b,vh(a.g))&&g.uh(a.g,b)};
Jj=function(a,b){if("e"==a.D){var c=null;try{c=a.g.it()}catch(f){}null===c?(c=0,0<a.A&&(c=2)):c=c?3:4;++a.J[c+1];a.A=c}else{var d=Number(b);c=null;try{c=a.g.fc()}catch(f){}var e=c;Yba(a,e,d);c=a.o[a.o.length-1];if(null===e){if(e=d=0,0<a.A||g.qa(c.Wo))e=d=2}else null===c.Wo||c.timeMs>=d?(d=10<=e?4:0,e=0):e>c.Wo?(c=(e-c.Wo)/(d-c.timeMs)*1E3,d=10<=c?4:3,c=0==c?1:1>c?3:4>c?4:23>c?6:26>c?8:9,6==a.C&&6==c&&(c=7),e=c):e=d=1;6==a.C&&(--a.B[6],4==e||8==e?++a.B[5]:++a.B[7]);++a.B[e];a.A=d;a.C=e}return a.A};
Yba=function(a,b,c){var d=c-1E3,e=a.o.length;(0,g.H)(a.o,function(a,b){a.timeMs<=d&&(e=Math.min(e,b+1))});
var f=a.o.length-e;0<f&&a.o.splice(e,f);a.o.unshift({Wo:b,timeMs:c})};
Qj=function(a,b){Cj.call(this,a,b);this.g=[];this.D=!1;this.C=0;this.B=-1};
Zba=function(a,b){var c=b.getBoundingClientRect();var d="DIV"==b.tagName||"INS"==b.tagName,e=g.gd(b),f=!0,k=a.g;if(d){var l=hj();c=Dj(a,c);Fd(b,l,0);(0,g.H)(c,function(a){var b=new Rj(e);k.push(b);var c;if(c=f)if(b.g){b.g.style.position="absolute";Sj(b,a);a=!0;try{l.appendChild(b.g)}catch(r){a=!1}c=a}else c=!1;f=c})}else c=Ej(a,c),(0,g.H)(c,function(a){var c=new Rj(e);
k.push(c);var d;if(d=f)if(c.g&&b.parentNode){c.g.style.position="fixed";Sj(c,a);a=!0;try{g.Ed(c.g,b)}catch(r){a=!1}d=a}else d=!1;f=d});
f?(a.A=b,a.D=!d):((0,g.H)(k,function(a){a.remove()}),a.g=[]);
return f};
$ba=function(a){if(a.A&&a.D){var b=Ej(a);(0,g.H)(b,function(a,b){this.g[b]&&Sj(this.g[b],a)},a)}};
aca=function(a){(0,g.H)(a.g,function(a){a.remove()});
a.g=[]};
fca=function(a){var b=(0,g.G)(),c=a.C?b-a.C:0,d=saa(a.g,function(a){return a.isVisible(b)});
d=4==a.g.length?a.F?bca[d]:cca[d]:3==a.g.length?dca[d]:1==a.g.length?eca[d]:-1;c=new Gj(d,a.B,c);a.B=d;a.C=b;$ba(a);return c};
Rj=function(a){this.g=null;this.A=this.o=0;gca(this,a)};
gca=function(a,b){var c=b.createElement("iframe");c.srcdoc="";c.frameBorder=0;c.style.width="1px";c.style.height="1px";c.style.opacity="0";c.style.zIndex=-999999;a.g=c;var d=Hi(245,a.B,a,void 0);c.addEventListener("load",Li(244,function(){c.contentWindow.requestAnimationFrame(d)}))};
Sj=function(a,b){a.g&&!bd(b,vh(a.g))&&g.uh(a.g,b)};
Vj=function(){};
Wj=function(){this.F=!1;this.I=void 0;this.o=!Wh(ei.top);var a=qi();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.Hg(a[a.length-1].url)||"":"";this.A=this.G=this.D=this.g=null;this.L=0;this.B=!1;this.C=null;this.J=0;this.Fb="geo";this.gx=new ni};
Yj=function(a,b,c){this.position=Xj.clone();this.Qc=0;this.hs=this.yn();this.ds=-2;this.AT=(0,g.G)();this.OC=-1;this.oh=b;this.Xh=-1!=b;this.mp=null;this.opacity=-1;this.aC=c;this.Wt=this.ks=g.y;this.Kf=this.element=a;this.Ii=this.Vc=null;this.xl=1;this.du=this.nh=this.pn=!1;this.Dq=1;this.Nl=!0;this.kf=!1;this.XG=Wj.getInstance().L++;this.domain=null;this.Wr=0;this.qc=this.Rq();this.MC=-1;this.rr=0;this.np=new g.Yg(0,0,0,0);this.gx=new ni};
Zj=function(a,b){return null===a||null===b?Xj.clone():new g.Yg(Math.max(a.top,b.top),Math.min(a.right,b.right),Math.min(a.bottom,b.bottom),Math.max(a.left,b.left))};
hca=function(a,b,c,d,e){if(a.Xh){var f=ei.innerWidth,k=ei.innerHeight,l=new g.Yg(Math.round(ei.mozInnerScreenY),Math.round(ei.mozInnerScreenX+f),Math.round(ei.mozInnerScreenY+k),Math.round(ei.mozInnerScreenX));c=new g.Yg(ei.screenY+d,ei.screenX+c.width,ei.screenY+c.height,ei.screenX);e||(d=new g.Yg(l.top-c.top,l.right-c.left,l.bottom-c.top,l.left-c.left),d.top>a.position.top?a.position=d:(a.position.right=a.position.left+f,a.position.bottom=a.position.top+k),a.Qc=f*k);a.og(l,c,b,e,!0,!0)}};
jca=function(a,b,c){if(a.Xh){var d=Ri();if(d){c||ak(a,ei,!0);if(a.Ke()||a.du){var e=ica(a,d);d=!0}else{e=Math.floor((a.position.left+a.position.right)/2);var f=Math.floor((a.position.top+a.position.bottom)/2),k=g.td(window.document);e=d(e-k.x,f-k.y)?.5:0;d=!1}a.og(a.position,e,b,c,!0,d)}}};
bk=function(a,b,c){if(c(b))return b;for(;;){var d=Math.floor((a+b)/2);if(d==a||d==b)return a;c(d)?a=d:b=d}};
ica=function(a,b){var c=g.td(window.document),d=a.Dq,e=Math.floor(a.position.left-c.x)+1,f=Math.floor(a.position.top-c.y)+1,k=Math.floor(a.position.right-c.x)-d,l=Math.floor(a.position.bottom-c.y)-d;c=(l-f)*(k-e);if(f>l||e>k)return 0;d=!!b(e,f);var m=!!b(k,l);if(d&&m)return 1;var n=!!b(k,f),q=!!b(e,l);if(d)l=bk(f,l,function(a){return!!b(e,a)}),k=bk(e,k,function(a){return!!b(a,f)});
else if(n)l=bk(f,l,function(a){return!!b(k,a)}),e=bk(k,e,function(a){return!!b(a,f)});
else if(q)f=bk(l,f,function(a){return!!b(e,a)}),k=bk(e,k,function(a){return!!b(a,l)});
else if(m)f=bk(l,f,function(a){return!!b(k,a)}),e=bk(k,e,function(a){return!!b(a,l)});
else{var r=Math.floor((e+k)/2),w=Math.floor((f+l)/2);if(!b(r,w))return 0;f=bk(w,f,function(a){return!!b(r,a)});
l=bk(w,l,function(a){return!!b(r,a)});
e=bk(r,e,function(a){return!!b(a,w)});
k=bk(r,k,function(a){return!!b(a,w)})}return(l-f)*(k-e)/c};
kca=function(a,b,c,d,e){a.Xh&&(d||ak(a,ei,e),a.og(a.position,c,b,d,!1,!0))};
ck=function(a,b,c){if(a.Xh){var d=c?a.qc.g:a.Wr,e;if(e=a.np){e=a.np;var f=new g.Yg(0,0,0,0);e=!(e==f||e&&f&&e.top==f.top&&e.right==f.right&&e.bottom==f.bottom&&e.left==f.left)}e&&(d=Zg(a.np.clone(),a.position.left,a.position.top));a.og(a.position,d,b,c,!0,!0)}};
lca=function(a,b){a.Fb=b.create(ei,a.gx,function(){return a.Wt(a)});
a.Kf||Mi(300,Error("Could not observe; element does not exist."))};
mca=function(a,b,c){if(a.Xh&&a.Fb){var d=ji(),e=Wj.getInstance();ak(a,d,e.o);d=a.Fb.o();e=d.o()||d.A();a.og(a.position,d.g(),b,c,!0,e)}};
ak=function(a,b,c,d){if(d)a.position=d;else{b=c?b:b.top;try{var e=Xj.clone(),f=new g.ad(0,0);if(a.Kf){var k=1==a.aC;!c&&k&&Lba(a.Kf)||(e=a.Kf.getBoundingClientRect());f=g.Bh(a.Kf,b)}c=f;var l=c.x,m=c.y;a.position=new g.Yg(Math.round(m),Math.round(l+(e.right-e.left)),Math.round(m+(e.bottom-e.top)),Math.round(l))}catch(n){a.position=Xj.clone()}}a.Qc=(a.position.bottom-a.position.top)*(a.position.right-a.position.left)};
dk=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
nca=function(a){a.Fb||a.Vc&&Ij(a.Vc)};
qca=function(a,b){var c=!1,d=a.Kf;b.document&&b.document.body&&12==a.aC&&(d=b.document.body);if(null===d)return!1;Ki(152,function(){var e=new b.IntersectionObserver(function(c){try{ek(b,c,a)}catch(k){try{e.unobserve(d),Mi("osd_adblock::nioc",k)}catch(l){}}},oca);
e.observe(d);pca(d);c=!0});
return c};
pca=function(a){if(a&&(a=a.style)){var b=a.opacity;a.opacity=.98;a.opacity=.99;a.opacity=b}};
rca=function(a,b){var c=!1;Ki(151,function(){var d=bi(b).c3(function(c){try{ek(b,c,a)}catch(f){try{d(),Mi("osd_adblock::aioc",f)}catch(k){}}});
c=!0});
return c};
ek=function(a,b,c){if(!b||!b.length||0>=b.length)b=null;else{for(var d=b[0],e=1;e<b.length;e++)b[e].time>d.time&&(d=b[e]);b=d}if(d=b)b=kj(d.boundingClientRect),e=kj(d.intersectionRect),c.qc.g=g.Xc(d.intersectionRect.width*d.intersectionRect.height/(d.boundingClientRect.width*d.boundingClientRect.height),0,1),c.Wr=c.qc.g,ak(c,a,!0,b),a=Zj(b,e),c.np=0>=c.Qc||a.top>=a.bottom||a.left>=a.right?new g.Yg(0,0,0,0):Zg(a,-b.left,-b.top)};
fk=function(a,b,c,d){d&&(a.Wt=d);switch(c){case "nio":return qca(a,b);case "aio":return rca(a,b);case "swf":return a.Ml();case "raf":return a.Kt();case "geo":case "xde":case "iem":return!0}return!1};
gk=function(a,b,c,d){Yj.call(this,b,c,d);this.da=0;this.B={};this.o=new qj;this.ez={};this.Mc="";this.Fi=null;this.Oj="";this.SC=!1;this.A=[];this.Ra=this.cD=this.dD=this.D=!1;this.zf=void 0;this.C=-1;this.pa=void 0;this.ea=!1;this.O=this.V=0;this.Y=1;this.ba=-1;this.Va=this.Ka=!1;this.Jh=this.ub=0;this.bb=!1;this.Ta=this.Ya=-1;this.aa=this.L=this.g=0;this.Ab=this.ha=-1;this.ib=0;this.Na=[0,0,0,0,0];this.G=this.sa=this.fa=0;this.I=-1;this.Aa=0;this.N=!1;this.ka=null;this.Fa=this.bD=!1;this.ra=g.y;
this.J=[this.yn()];this.ob=!1;this.du=!0;this.Dq=2;b=Wj.getInstance();ak(this,a,b.o);this.F={};this.F.pause="p";this.F.resume="r";this.F.skip="s";this.F.mute="m";this.F.unmute="um";this.F.exitfullscreen="ef"};
sca=function(a,b,c){a.bD=!0;a.B={};a.B.firstquartile=!1;a.B.midpoint=!1;a.B.thirdquartile=!1;a.B.complete=!1;a.B.pause=!1;a.B.skip=!1;a.B.viewable_impression=!1;a.da=0;c||(a.de().D=b)};
hk=function(a){return g.t(a)?Number(a)?dk(a,3):0:a};
ik=function(a,b){if(-1==a.oh)return 0;var c=b-a.oh||1,d=1E4;g.t(a.C)&&-1!=a.C&&(d=Math.max(d,a.C/3));return c>d?1:c};
jk=function(a,b,c){return 15E3<=b?!0:a.Ka?(void 0===c?0:c)?!0:-1!=a.C?b>=a.C/2:-1!=a.ba?b>=a.ba:!1:!1};
tca=function(a){var b={},c=Wj.getInstance();b.insideIframe=c.o;b.unmeasurable=a.nh;b.position=a.position;b.coverage=a.qc.g;b.documentSize=c.A;b.viewportSize=c.g;return b};
lk=function(a,b){kk(a.A,b,function(){return{XT:0,Sn:void 0}});
a.A[b]={viewableArea:dk(a.qc.g,2),instantaneousState:a.o.A}};
kk=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
nk=function(a,b){var c=a.ez[b];if(null!=c)return c;g.jb(uca,b)?c=!0:(c=a.B[b],g.t(c)?(a.B[b]=!0,c=!c):c=!1);c=mk(a,c,c);"fully_viewable_audible_half_duration_impression"==b&&(c.std="csm",c.ic=uj(a.o,["gdr"]));return c};
mk=function(a,b,c){if(a.nh)return{"if":0};var d=a.position.clone();d.round();var e=(0,g.J)(a.A,function(a){return 100*a.XT|0}),f=Wj.getInstance(),k=a.de(),l={};
a.ob&&(l.avms="raf");l["if"]=f.o?1:void 0;l.sdk=a.zf?a.zf:void 0;l.t=a.AT;l.p=[d.top,d.left,d.bottom,d.right];l.tos=k.bb;l.mtos=k.A;l.ps=void 0;l.pt=e;l.vht=Bj(k,cj(),!!a.D);l.mut=k.pa;l.a=hk(a.qc.volume);l.mv=hk(k.B);l.fs=a.kf?1:0;l.ft=k.ha;l.at=k.da;l.as=.1<=k.g?1:0;l.atos=k.ea;l.uac=a.ub;l.vpt=k.o;"nio"==f.Fb&&(l.nio=1,l.avms="nio");l.gmm="4";l.gdr=jk(a,k.o,!0)?1:0;a.du&&(l.efpf=a.Dq);a.Vc&&(l.swf=a.Vc.getStatus(),l.px=a.xl,l.avms="swf");0<a.Aa&&(l.nnut=a.Aa);l.tcm=a.Y;l.nmt=a.sa;l.bt=a.G;l.pst=
a.I;l.vpaid=a.pa;l.dur=a.C;l.vmtime=a.V;l.is=a.o.A;1<=a.A.length&&(l.i0=a.A[0].Sn);2<=a.A.length&&(l.i1=a.A[1].Sn);3<=a.A.length&&(l.i2=a.A[2].Sn);4<=a.A.length&&(l.i3=a.A[3].Sn);l.cs=Pba(a.o);b&&(l.ic=Oba(a.o),l.dvpt=k.Y,l.dvs=k.ba,l.dfvs=k.V,l.davs=k.J,l.dafvs=k.F,c&&(k.Y=0,k.ba=0,k.V=0,k.J=0,k.F=0),a.Dg()&&(l.dtos=k.aa,l.dav=k.I,l.dtoss=a.da+1,c&&(k.aa=0,k.I=0,a.da++)),l.dat=k.G,l.dft=k.O,c&&(k.G=0,k.O=0));f.A&&(l.ps=[f.A.width,f.A.height]);f.g&&(l.bs=[f.g.width,f.g.height]);f.D&&(l.scs=[f.D.width,
f.D.height]);l.dom=f.domain;a.pn&&(l.fmf="1",l.px=a.xl);a.Jh&&(l.vds=a.Jh);a.g&&(l.vmer=a.g);a.L&&(l.vmmk=a.L);a.aa&&(l.vmiec=a.aa);a.Fb&&(l.avms=a.Fb.A(),g.dc(l,a.Fb.g()));"exc"==f.Fb&&(l.femt=a.ha,l.femvt=a.Ab,l.emc=a.ib,l.emb=a.Na,l.emuc=a.fa,l.avms="exc");ok(pk)?(l.c=dk(a.qc.g,2),l.ss=dk(vca(a),2)):l.tth=cj()-qk;l.mc=dk(k.Va,2);l.nc=dk(k.C,2);l.mv=hk(k.B);l.nv=hk(k.g);l.lte=dk(a.ds,2);b=a.J[a.J.length-1];l.qmtos=b.A;l.qnc=dk(b.C,2);l.qmv=hk(b.B);l.qnv=hk(b.g);l.qas=.1<=b.g?1:0;l.qi=a.Mc;null!==
a.ka&&(l.nvat=a.ka?1:0);l.avms||(l.avms="geo");l.psm=k.ra.g;l.psv=k.ra.getValue();l.psfv=k.Fa.getValue();l.psa=k.Aa.getValue();return l};
vca=function(a){if(a.kf)return 1;var b=ei.screen.width*ei.screen.height;return 0>=b?-1:Math.min(a.Qc*a.qc.g/b,1)};
rk=function(a,b){this.o=a||0;this.g=b||""};
sk=function(a,b){a.o&&(b[4]=a.o);a.g&&(b[12]=a.g)};
tk=function(a){var b=[];g.Kb(a,function(a,d){var c=(0,window.encodeURIComponent)(d),f=a;g.u(f)&&(f=(0,window.encodeURIComponent)(f));b.push(c+"="+f)});
b.push("24="+(new Date).getTime());return b.join("\n")};
uk=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,Wh(a)&&(c=a,b=d);return{nu:c,level:b}};
wca=function(){this.S={}};
xca=function(a){var b=[],c=[];g.Kb(a,function(a,e){if(!(e in Object.prototype)&&"undefined"!=typeof a){g.ua(a)&&(a=a.join(","));var d=[e,"=",a].join("");switch(e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":case "aio":case "nio":case "swf":case "iem":b.unshift(d);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(d);break;default:b.push(d)}}});
return b.concat(c)};
g.vk=function(a,b,c){g.L.call(this);this.B=null!=c?(0,g.A)(a,c):a;this.A=b;this.o=(0,g.A)(this.GR,this);this.g=[]};
wk=function(a){a.gi=g.tg(a.o,a.A);a.B.apply(null,a.g)};
yk=function(){return!xk()&&(Jb("iPod")||Jb("iPhone")||Jb("Android")||Jb("IEMobile"))};
xk=function(){return Jb("iPad")||Jb("Android")&&!Jb("Mobile")||Jb("Silk")};
zk=function(){this.g=this.B=null;this.A=0;this.o=null};
Ak=function(){this.g=[];this.A=[];this.done=!1;this.o={YG:0,Ov:0,Ct:0,Tw:0,Mr:-1};this.L=this.D=this.I=this.F=this.J=null;this.N=!1;this.C=null;this.ya="";this.an=null;this.G=0;this.B=xk()||yk();this.O=0};
Bk=function(){var a=Wj.getInstance().Fb;return"nio"==a||"aio"==a};
Ck=function(){var a=pk;if(!a.N){a.N=!0;var b=v.requestAnimationFrame||v.webkitRequestAnimationFrame||v.mozRequestAnimationFrame||v.oRequestAnimationFrame||v.msRequestAnimationFrame;if(!a.J&&!Bk()){if(b){var c=Li(136,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.gr.apply(a,[].concat(g.ma(c)))});
var d=function(){b(function(){ei.setTimeout(c,0)})}}else d=function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];
return a.gr.apply(a,[].concat(g.ma(c)))};
a.F=new g.vk(Hi(137,d,void 0,void 0),100);a.J=Ni(ei,"scroll",function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.F.ij.apply(a.F,[].concat(g.ma(c)))},138)}if(!a.I&&!Bk()){if(b){var e=Li(139,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];
return a.Wy.apply(a,[].concat(g.ma(c)))});
d=function(){b(function(){ei.setTimeout(e,0)})}}else d=function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];
return a.Wy.apply(a,[].concat(g.ma(c)))};
a.D=new g.vk(Hi(140,d,void 0,void 0),100);a.I=Ni(ei,"resize",function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.D.ij.apply(a.D,[].concat(g.ma(c)))},141)}yca(a,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];
return a.Ux.apply(a,[].concat(g.ma(c)))});
a.Ux()}};
zca=function(a){var b=a.B,c=Wj.getInstance();b&&!c.B&&"exc"!=c.Fb&&(c.g=mi(!0,ei,b));b=new zk;switch(c.Fb){case "xde":var d=a.G;Dk(a,!1);a=Wj.getInstance();var e=a.G,f=e.height-d;0>=f&&(f=e.height,d=0);a.g=new g.dd(e.width,f);f=new zk;f.B=a.g;f.g=e;f.A=d;return f;case "geo":a:{c=c.g;b=new zk;b.B=c;if(null!=c&&-1!=c.width&&-1!=c.height&&-12245933!=c.width&&-12245933!=c.height){var k=Wj.getInstance();if(k.B)d=k.C;else try{e=a.B;a=ei||ei;a=a.top;f=c||mi(!0,a,void 0===e?!1:e);var l=g.td(g.id(a.document).g);
if(-1==f.width||-12245933==f.width){var m=f.width;var n=new g.Yg(m,m,m,m)}else n=new g.Yg(l.y,l.x+f.width,l.y+f.height,l.x);d=n}catch(q){a=b;break a}b.o=d}a=b}return a;default:return b}};
Gk=function(a,b,c,d){if(!a.done)if(Ek(a),0==b.length)c||Fk(a);else{a.an=null;var e=zca(a),f=Wj.getInstance();try{var k=cj();if(null!=Vj.getInstance().g)for(d=0;d<b.length;d++)mca(b[d],k,c);else switch(f.Fb){case "exc":for(d=0;d<b.length;d++)ck(b[d],k,c);break;case "nis":for(e=0;e<b.length;e++)g.t(d)?b[e].gp(d):b[e].Vy(k);break;case "gsv":for(e=0;e<b.length;e++)g.t(d)?b[e].Nx(d):b[e].Uy(k);break;case "aio":case "nio":for(d=0;d<b.length;d++)ck(b[d],k,c);break;case "xde":if(e.g)for(d=0;d<b.length;d++)hca(b[d],
k,e.g,e.A,c);break;case "iem":for(d=0;d<b.length;d++)jca(b[d],k,c);break;case "swf":(0,g.H)(b,function(a){if(c){if(a.Vc){var b=a.Vc;3<=b.B&&(b.B=3);a.qc.g=0}}else if(a.Vc&&"d"!=a.Vc.getStatus()){b=Vba(a.Vc);var d=[0,0,0,0,0,.01,.5,1,.01,.3],e=d[b.snapshot+1];a.qc.g=d[b.o+1];a.og(a.position,e,a.oh+b.g,!1,!0,!1);a.Dg()&&1!=a.af()&&!a.Nl&&a.Vc&&Ij(a.Vc);(b=2==b.snapshot||Mj(a.Vc))||(b=a.Vc,b="f"==b.o&&3E3<=b.C);b&&(a.Wt(a),a.Nl=!1,a.Vc&&Ij(a.Vc))}});
break;case "raf":(0,g.H)(b,function(a){if(c)a.Ii&&(a.Ii.B=3,a.qc.g=0);else if(a.Ii){var b=fca(a.Ii),d=[0,0,0,0,0,.01,.5,1,.01,.3],e=d[b.snapshot+1];a.qc.g=d[b.o+1];a.og(a.position,e,a.oh+b.g,!1,!0,!1);a.Dg()&&1!=a.af()&&!a.Nl&&a.Ii&&aca(a.Ii)}});
break;case "geo":if(e.o)for(d=0;d<b.length;d++)kca(b[d],k,e.o,c,f.o)}a.o.Ct+=cj()-k;++a.o.Tw;Aca(a)}finally{c?(0,g.H)(b,function(a){a.qc.g=0}):Fk(a)}}};
yca=function(a,b){var c;ii.mozVisibilityState?c="mozvisibilitychange":ii.webkitVisibilityState?c="webkitvisibilitychange":ii.visibilityState&&(c="visibilitychange");c&&(a.L=a.L||Ni(ii,c,b,142))};
ok=function(a){if(Bca(a))return!0;var b=Oi();a=1===b;b=0===b;return Wj.getInstance(),a||b};
Fk=function(a){ei&&(a.C=ei.setTimeout(Li(143,function(){Gk(a,Hk(a),!1)}),gj(Wj.getInstance().I)))};
Ek=function(a){window.clearTimeout(a.C);a.C=null};
Cca=function(a,b){return null!=b&&(0,g.Ik)(a.g,function(a){return a.element==b})};
Jk=function(a){return g.eb(pk.g,function(b){return b.Mc==a})};
Hk=function(a){return 0==a.g.length?a.A:0==a.A.length?a.g:g.rb(a.A,a.g)};
Dk=function(a,b){var c=a.B,d=Wj.getInstance();d.g=d.B?d.C?(new g.dd(d.C.Gb(),d.C.getHeight())).round():new g.dd(0,0):mi(!0,ei,c);if(!b){d.G=ei&&ei.outerWidth?new g.dd(ei.outerWidth,ei.outerHeight):new g.dd(-12245933,-12245933);var e=void 0===e?ei:e;null!==e&&e!==e.top&&(e=e.top);var f=c=0,k=Wj.getInstance().g;try{var l=e.document,m=l.body,n=l.documentElement;if("CSS1Compat"==l.compatMode&&n.scrollHeight)c=n.scrollHeight!=k.height?n.scrollHeight:n.offsetHeight,f=n.scrollWidth!=k.width?n.scrollWidth:
n.offsetWidth;else{var q=n.scrollHeight,r=n.scrollWidth,w=n.offsetHeight,z=n.offsetWidth;n.clientHeight!=w&&(q=m.scrollHeight,r=m.scrollWidth,w=m.offsetHeight,z=m.offsetWidth);q>k.height?q>w?(c=q,f=r):(c=w,f=z):q<w?(c=q,f=r):(c=w,f=z)}var B=new g.dd(f,c)}catch(C){B=new g.dd(-12245933,-12245933)}d.A=B}};
Dca=function(a,b,c){if(a=Kk(a,"swf",b,c))Wj.getInstance().Fb="swf",Wj.getInstance().Fb="swf",(0,g.H)(b,function(a){a.Vc||c(a)});
return a};
Lk=function(){var a=Kk(ei,"raf",Hk(pk));a&&(Wj.getInstance().Fb="raf");return a};
Kk=function(a,b,c,d){var e=!1;(0,g.H)(c,function(c){fk(c,a,b,d)&&(e=!0)});
return e};
Aca=function(a){if("osd"==a.ya)for(var b=a.A,c=0;c<b.length;c++){var d=a;if(!d.an){var e=d,f=d,k=ei,l=k.document,m=0<=bj?cj()-bj:-1,n=cj();-1==f.o.Mr&&(m=n);var q={},r=Hk(f);try{if(0<r.length){var w=Wj.getInstance(),z=w.g;z&&(q.bs=[z.width,z.height]);var B=w.G;B&&(q.bos=[B.width,B.height]);var C=w.A;C&&(q.ps=[C.width,C.height]);k.screen&&(q.ss=[k.screen.width,k.screen.height])}else q.url=(0,window.encodeURIComponent)(k.location.href.substring(0,1024)),l.referrer&&(q.referrer=(0,window.encodeURIComponent)(l.referrer.substring(0,
512)));q.tt=m;q.pt=bj;switch(Wj.getInstance().Fb){case "xde":q.xde=1;break;case "iem":q.iem=1;break;case "aio":q.aio=1;break;case "nio":q.nio=1}q.deb=[1,f.o.YG,f.o.Ov,f.o.Ct,f.o.Tw,f.o.Mr].join("-");q.tvt=Mk(f,n);if(null!==k&&k!==k.top){0<r.length&&(q.iframe_loc=(0,window.encodeURIComponent)(k.location.href.substring(0,512)));var N=mi(!1,k,f.B);q.is=[N.width,N.height]}}catch(da){q.error=1}e.an=q}b[c].A(g.$b(d.an),"goog_update_data","u")}};
Eca=function(a){var b=pk,c=[];(0,g.H)(a,function(a){Cca(b,a.element)||(b.g.push(a),c.push(a))})};
Fca=function(a){var b=pk,c=[];(0,g.H)(a,function(a){null==g.eb(b.g,function(b){return b.element==a.element&&b.Oj==a.Oj})&&(b.g.push(a),c.push(a))})};
Mk=function(a,b){var c=a.O;dj&&(c+=b-ej);return c};
Bca=function(a){return(0,g.Ik)(Hk(a),function(a){return a.kf})};
Gca=function(a){var b=[];g.Kb(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(g.ua(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});
return b.join("&")};
Hca=function(){var a=g.Ib;return a?(0,g.Ik)("AppleTV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;OMI/".split(";"),function(b){return Oa(a,b)})?!0:Oa(a,"Presto")&&Oa(a,"Linux")&&!Oa(a,"X11")&&!Oa(a,"Android")&&!Oa(a,"Mobi"):!1};
Nk=function(){return Oa(g.Ib,"CrKey")||Oa(g.Ib,"PlayStation")||Oa(g.Ib,"Roku")||Hca()||Oa(g.Ib,"Xbox")};
Ica=function(a){if(!a)return"";var b=a.document,c=[];c.push("url="+(0,window.encodeURIComponent)(a.location.href.substring(0,512)));b&&b.referrer&&c.push("referrer="+(0,window.encodeURIComponent)(b.referrer.substring(0,512)));return c.join("&")};
Ok=function(a){return function(b){return!g.t(b[a])&&g.t(0)?0:b[a]}};
Qk=function(){var a=[0,2,4];return function(b){b=b.tos;if(g.ua(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 g.t(a)?Pk(c,a):c}}};
Rk=function(a,b){return function(c){c=c[a];if(g.ua(c))return Pk(c,b)}};
Pk=function(a,b){return(0,g.Id)(a,function(a,d){return g.jb(b,d)})};
Sk=function(){this.A=new rk(0,"");this.I=4;this.g=[];this.o=[];this.G=!1;this.J=this.B=0;this.D=this.C="";this.N=0;this.F=new g.dd(0,0);this.L=new g.Yg(0,0,0,0)};
Jca=function(){var a=0,b=ei;try{if(b&&b.Goog_AdSense_getAdAdapterInstance)return b}catch(c){}for(;b&&5>a;){try{if(b.google_osd_static_frame)return b}catch(c){}try{if(b.aswift_0&&b.aswift_0.google_osd_static_frame)return b.aswift_0}catch(c){}a++;b=b!=b.parent?b.parent:null}return null};
Kca=function(a,b,c,d,e,f){d=void 0===d?!1:d;e=void 0===e?"":e;f=void 0===f?!1:f;var k={};sk(b,k);k[0]="goog_request_monitoring";k[6]=a;k[27]=ei.document.domain;k[16]=d;e&&e.length&&(k[19]=e);f&&(k[28]=f);try{var l=tk(k);c.postMessage(l,"*")}catch(m){}};
Lca=function(a,b,c,d,e,f){d=void 0===d?!1:d;e=void 0===e?"":e;f=void 0===f?function(){return null}:f;
var k=void 0===k?!1:k;10<a.J?(ei.clearInterval(a.B),f()):(++a.J,ei.postMessage&&c.ed()?(a=Jca())&&Kca(b,c,a,d,e,k):(ei.clearInterval(a.B),f()))};
Sca=function(a){a.A.ed()||Tk(a);Ni(v,"message",function(b){if(null!=b&&b.data&&g.u(b.data)){var c=b.data;if(g.u(c)){var d={};c=c.split("\n");for(var e=0;e<c.length;e++){var f=c[e].indexOf("=");if(!(0>=f)){var k=Number(c[e].substr(0,f));f=c[e].substr(f+1);switch(k){case 5:case 8:case 11:case 15:case 16:case 18:case 26:f="true"==f;break;case 4:case 7:case 6:case 14:case 20:case 21:case 22:case 23:case 24:case 25:f=Number(f);break;case 3:case 19:if(g.wa(window.decodeURIComponent))try{f=(0,window.decodeURIComponent)(f)}catch(m){throw Error("Error: URI malformed: "+
f);}break;case 17:f=(0,g.J)((0,window.decodeURIComponent)(f).split(","),Number)}d[k]=f}}d=d[0]?d:null}else d=null;if(d&&a.A.match(new rk(d[4],d[12]))&&(ei.clearInterval(a.B),a.o.length||a.g.length))switch(c=d[0],e=100*d[25],g.qa(e)&&!(0,window.isNaN)(e)&&Mca(a,e),e=!1,(0,window.isNaN)(d[22])||(0,window.isNaN)(d[23])||(e=!0,a.F=new g.dd(d[22],d[23])),k=d[7],g.qa(k)&&(e=!0,a.N=k,d[9]&&(k=d[9].split("-"),4==k.length&&(a.L=new g.Yg(Za(k[0]),Za(k[3]),Za(k[2]),Za(k[1]))))),e&&Nca(a,a.F,a.L),d[3]&&(a.C=
d[3]),e=!!d[5],k=!!d[11],c){case "goog_acknowledge_monitoring":Oca(a,!!d[8]);break;case "goog_get_mode":d={};sk(a.A,d);d[0]="goog_provide_mode";d[6]=a.I;d[19]=a.D;d[16]=a.G;try{var l=tk(d);b.source.postMessage(l,b.origin)}catch(m){}break;case "goog_image_request":Pca(a,e,k,a.C);case "goog_update_data":b=!!d[15]&&"goog_update_data"==c,e&&Qca(a,b,a.C),k&&Rca(a,a.C)}}},118);
a.B=ei.setInterval(Li(197,function(){Lca(a,a.I,a.A,a.G,a.D,function(){Tk(a)})}),500)};
Tk=function(a){(0,g.H)(a.g,function(a){Wj.getInstance().B=!1;Uk(a)})};
Oca=function(a,b){(0,g.H)(a.g,function(a){var c=Wj.getInstance();b?(c.B=!1,Uk(a)):Ck()})};
Nca=function(a,b,c){(0,g.H)(a.g,function(){var a=Wj.getInstance();a.g=b;a.C=c})};
Mca=function(a,b){(0,g.H)(a.o,function(a){a.g(b)})};
Pca=function(a,b,c,d){(0,g.H)(a.o,function(a){a.o(b,c,d)})};
Qca=function(a,b,c){(0,g.H)(a.o,function(a){a.B(b,c)})};
Rca=function(a,b){(0,g.H)(a.o,function(a){a.A(b)})};
Vk=function(){this.o=this.F=!1;this.I="h";var a={};this.J=(a.start=this.bJ,a.firstquartile=this.NI,a.midpoint=this.TI,a.thirdquartile=this.cJ,a.complete=this.JI,a.pause=this.XI,a.resume=this.ZI,a.skip=this.aJ,a.viewable_impression=this.eJ,a.mute=this.VI,a.unmute=this.dJ,a.fullscreen=this.OI,a.exitfullscreen=this.MI,a.fully_viewable_audible_half_duration_impression=this.QI,a.measurable_impression=this.SI,a.abandon=this.II,a.engagedview=this.LI,a.impression=this.RI,a.creativeview=this.KI,a.progress=
this.YI,a);a={};this.L=(a.overlay_resize=this.WI,a.abandon=this.nr,a.close=this.nr,a.collapse=this.nr,a.overlay_unmeasurable_impression=function(a){return nk(a,"overlay_unmeasurable_impression")},a.overlay_viewable_immediate_impression=function(a){return nk(a,"overlay_viewable_immediate_impression")},a.overlay_unviewable_impression=function(a){return nk(a,"overlay_unviewable_impression")},a.overlay_viewable_end_of_session_impression=function(a){return nk(a,"overlay_viewable_end_of_session_impression")},
a);
Wj.getInstance().J=3};
Uk=function(a){var b;if(b=null!=ei.IntersectionObserver)if(b=Kk(ei,"nio",Hk(pk)))Wj.getInstance().Fb="nio";if(b)Ck();else if(aj()&&Lk())Ck();else{if(g.ph&&g.qa(ei.screenX)&&g.qa(ei.mozInnerScreenX)&&g.qa(ei.outerWidth)){b=pk;var c=ei.navigator.userAgent;var d=c.indexOf("Firefox/");if(0<=d){d=Math.floor(c.substr(d+8))||-1;var e=c.indexOf("Mac OS X 10."),f=-1;0<=e&&(f=Number(c.substr(e+12,1))||-1);var k=0<f?-1:c.indexOf("Windows NT ");e=-1;0<=k&&(e={"6.0":0,"6.1":1,"6.2":2}[c.substr(k+11,3)]||-1);c=
148;5<=f?c=4<=d?108:3<=d?127:108:0<=e&&(16==d||17==d||18==d)&&(c=[[146,146,146],[148,147,148],[131,130,136]][e][d-16])}else c=null;null!==c&&(b.G=c,Wj.getInstance().Fb="xde");b=!0}else b=!1;b?Ck():(g.sd&&g.oc(8)&&g.wa(Ri())?(Wj.getInstance().Fb="iem",b=!0):b=!1,b?Ck():Yi()&&Dca(ei,pk.g,(0,g.A)(a.Vx,a))?Ck():(Ek(pk),Xk="i",pk.done=!0))}};
al=function(a,b){if(!a.SC){var c=nk(a,"start");c=Yk(c,Zk);var d=$k||ei,e=[];e.push("v=603v");e.push("r="+b);var f=0;"swf"==Wj.getInstance().Fb&&(f=1);e.push("efm="+f);e.push(c);e.push(Ica(d));di(ei,("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf&"+e.join("&")).substring(0,2E3),void 0);a.SC=!0}};
bl=function(a,b,c,d){Gk(pk,[a],!ok(pk),d);lk(a,c);b=nk(a,b);4!=c&&kk(a.J,c,a.yn);return b};
cl=function(a,b,c){var d=a.de();d.sa=Bj(d,cj(),!!a.D);Gk(pk,[a],!ok(pk),c);a.D=!0;return nk(a,b)};
Tca=function(a,b,c){if(!b.bD){"i"!=Xk&&(pk.done=!1);var d=Vj.getInstance();null!=d.g&&lca(b,null!=d.g?d.g:null);fk(b,ei,Wj.getInstance().Fb,function(b){return a.Vx(b)});
d=g.t(c)?c.opt_nativeTime:void 0;fj=d=g.qa(d)?d:cj();b.Xh=!0;var e=ok(pk);sca(b,d,e);Gk(pk,[b],!e,c)}};
dl=function(a,b){if(g.u(b)){if(1==a)var c=pk.g;else if(2==a)c=pk.A;else return;var d=g.cb(c,function(c){return c.af()!=a?!1:c.Mc==b});
0<=d&&(nca(c[d]),g.ob(c,d))}};
Uca=function(a,b,c,d){var e=g.eb(pk.g,function(a){return a.element==c});
null!==e&&e.Mc!=b&&(dl(1,e.Mc),e=null);e||(e=el(a,c),e.Mc=b,e.zf=a.I,d&&(e.Fi=d));return e};
el=function(a,b){var c=new gk(ei,b,-1,7);c.ks=(0,g.A)(a.Hn,a);Wj.getInstance().I=79463069;Fca([c]);Ck();return c};
Vca=function(a,b){var c=Ub(fl,function(b){return b==a}),d={};
c=(d.sv="603",d.cb="j",d.e=gl[c],d);d=nk(b,a);g.dc(c,d);b.ez[a]=d;return 2==b.af()?xca(c).join("&"):Yk(c,Zk)};
Yk=function(a,b,c,d,e){var f={};if(g.t(a))if(null!=b)for(var k in b){var l=b[k];k in Object.prototype||null!=l&&(g.wa(l)?f[k]=l(a):f[k]=a[l])}else g.dc(f,a);g.t(c)&&g.dc(f,c);a=Gca(f);0<a.length&&g.t(d)&&g.t(e)&&(e=e(a),a+="&"+d+"="+e);return a};
il=function(a,b){var c={sv:"603",cb:"j"};c.nas=pk.g.length;c.msg=a;if(g.t(b)){var d=hl(b);d&&(c.e=gl[d])}return c};
hl=function(a){var b=a.toLowerCase();return Ub(fl,function(a){return a==b})};
Wca=function(a,b){b.L=0;for(var c in jl)null==a[c]&&(b.L|=jl[c]);kl(a,"currentTime");kl(a,"duration")};
kl=function(a,b){var c=a[b];g.t(c)&&(a[b]=Math.floor(1E3*c))};
ll=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
nl=function(a){return!!(1<<a&ml)};
ada=function(){try{Xca()}catch(d){}var a="a=1&b="+ml+"&",b=[],c=99;(0,g.H)(Yca,function(a,c){var d=!1;try{d=a(ei)}catch(k){}b[c/32>>>0]|=d<<c%32});
(0,g.H)(b,function(b,e){a+=String.fromCharCode(c+e)+"="+(b>>>0).toString(16)+"&"});
c=105;(0,g.H)(Zca,function(b){var d="false";try{d=b(ei)}catch(f){}a+=String.fromCharCode(c++)+"="+d+"&"});
(0,g.H)($ca,function(b){var d="";try{var f=b(ei);d=g.ee(g.ae(f),!0)}catch(k){}a+=String.fromCharCode(c++)+"="+d+"&"});
return a.slice(0,-1)};
Xca=function(){if(!ol){var a=function(){pl=!0;ei.document.removeEventListener("webdriver-evaluate",a,!0)};
ei.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){ql=!0;ei.document.removeEventListener("webdriver-evaluate-response",b,!0)};
ei.document.addEventListener("webdriver-evaluate-response",b,!0);ol=!0}};
rl=function(){this.o=64;this.g=Array(4);this.C=Array(this.o);this.B=this.A=0;this.reset()};
sl=function(a,b,c){c||(c=0);var d=Array(16);if(g.u(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.g[0];c=a.g[1];e=a.g[2];var f=a.g[3];var k=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^
b))+d[3]+3250441966&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+
(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(k<<5&4294967295|
k>>>27);k=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=e+(k<<20&4294967295|
k>>>12);k=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[7]+1735328473&4294967295;e=f+(k<<14&4294967295|
k>>>18);k=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^
b^c)+d[7]+4139469664&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[12]+3873151461&4294967295;
f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[12]+1700485571&4294967295;b=c+
(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[13]+1309151649&4294967295;
c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.g[0]=a.g[0]+b&4294967295;a.g[1]=a.g[1]+(e+(k<<21&4294967295|k>>>11))&4294967295;a.g[2]=a.g[2]+e&4294967295;a.g[3]=a.g[3]+f&4294967295};
ul=function(a){var b=a||qi();a=b.length-1;var c=ri(b);b=c.g;var d=c.o;c=[];d?(b&&c.push(tl(a,[d.url,2],0,[b.url,0],b.depth)),c.push(tl(a,[d.url,2],0))):b.url&&(c.push(tl(a,void 0,void 0,[b.url,0],b.depth)),(d=(d=bda.exec(b.url))&&d[0]||"")&&c.push(tl(a,[d,1],b.depth)));c.push(tl(a));return c};
tl=function(a,b,c,d,e){a=[a];if(g.t(b)&&g.t(c)){for(var f=0;f<c;f++)a.push("");a.push(b)}if(g.t(d)&&g.t(e)){b=e-a.length+1;for(f=0;f<b;f++)a.push("");a.push(d)}return a};
vl=function(){var a=ul();return(0,g.J)(a,function(a){return ui(a)})};
wl=function(){Vk.call(this);this.A=void 0;this.B=this.G=this.C=null;this.g=!1;this.D={};var a=vj.getInstance();g.jb(a.g,509445015)&&"exc"!=Wj.getInstance().Fb&&(this.g=!0,this.G=new Nba)};
xl=function(a,b,c,d){d=new gk(ei,null,d,7);d.zf=c;d.ks=function(b){a.Hn(b)};
Eca([d]);d.Mc=b;return d};
cda=function(a,b,c){var d=Jk(b);d||(d=xl(a,b,"m",c.opt_nativeTime||-1));return d};
dda=function(a,b,c){var d=Jk(b);d||(d=xl(a,b,"n",c.opt_nativeTime||-1),d.N=Wj.getInstance().F);return d};
eda=function(a,b){var c=Jk(b);c||(c=xl(a,b,"h",-1));return c};
gda=function(a,b,c){var d=g.eb(pk.g,function(a){return a.element?yl(a.element,c)==b&&a.Oj==c:!1});
null!==d&&d.Mc!=b&&(dl(1,d.Mc),d=void 0);if(d)return d;d=fda(c);if(d=g.eb(d,function(a){return yl(a,c)==b}))return d=el(a,d),d.zf="as",d.Mc=b,d.Oj=c,d};
fda=function(a){var b=ei.document,c=g.Hb((0,g.J)(["embed","object"],function(a){return g.sb(b.getElementsByTagName(a))})),d="metricID"+a;
return c=(0,g.Id)(c,function(a){if(!a||!g.xa(a)||1!=a.nodeType||!g.wa(a.getBoundingClientRect))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a[d]&&g.wa(a[d])?!0:!1})};
yl=function(a,b){var c="metricID"+b;if(!a||!a[c]||!g.wa(a[c]))return null;try{var d=a[c]()}catch(e){return null}return d.queryID};
zl=function(a,b,c){var d=Wj.getInstance();switch(b.zf){case "b":var e=g.x("ytads.bulleit.triggerExternalActivityEvent");break;case "h":var f=vj.getInstance();if("exc"==d.Fb)e=g.x("ima.bridge.triggerExternalActivityEvent");else if(b.Fi&&g.jb(f.g,495644004)){var k=a.D[b.Fi];k?e=function(a,b,c){k.o(a,b,c)}:Mi("lidar::missingPlayerCallback",Error())}else e=g.x("ima.common.triggerExternalActivityEvent");
break;case "m":e=g.x("ima.common.triggerExternalActivityEvent");break;case "n":e=g.x("ima.bridge.triggerExternalActivityEvent");break;case "as":var l="triggerExternalActivityEvent"+b.Oj;b.element&&g.wa(b.element[l])&&(e=function(a,c,d){b.element[l](d)});
break;default:return b.Jh|=4,!1}if(g.wa(e)){a=Vca(c,b);try{return e(b.Mc,a,c),!0}catch(m){b.Jh|=2}}else b.Jh|=1;return!1};
hda=function(a){return g.Lb(g.$b(a||{}),function(a,c){return"qmtos"==c||"qnc"==c||"qmv"==c||"qnv"==c?!1:!0})};
Dl=function(a,b,c){var d={};d.viewability=c?Yk(b,Zk):Yk(hda(b),Zk);c=ml=(new Date).getTime();var e=nl(5);c=(pl?!e:e)?c|2:c&-3;e=nl(2);c=(ql?!e:e)?c|8:c&-9;c={s1:(c>>>0).toString(16)};a.C||(a.C=ada());d.moatInit=a.C;d.moatViewability=Yk(b,ida,c,"h",Al("kArwaWEsTs"));d.integralAdsViewability=Yk(b,jda,{},"h",Al("b96YPMzfnx"));d.doubleVerifyViewability=Yk(b,kda,{},"h",Al("yb8Wev6QDg"));d.googleViewability=Yk(b,lda);return d};
mda=function(a,b,c){a=Wj.getInstance();if(a.F!=b){a.F=b;var d=(0,g.Ik)(pk.g,function(a){return a.Fa});
(0,g.H)(pk.g,function(a){b||d||(a.oh=c);a.N=b;a.Fa=!1})}};
El=function(a,b){var c=vj.getInstance(),d;if(b.Fi&&g.jb(c.g,495644004)){var e=a.D[b.Fi];e?d=function(a,b){e.A(a,b)}:Mi("lidar::missingPlayerCallback",Error())}else d=g.x("ima.common.triggerViewabilityMeasurementUpdate");
g.wa(d)&&(c=tca(b),c.nativeVolume=a.A,a.g&&(c.userActivity=a.B),d(b.Mc,c))};
Fl=function(a){var b=a.B,c={};a.g&&b&&(b.o&&0<b.o&&(c.pnc=b.o),b.g&&0<b.g&&(c.pns=b.g),b.B&&0<b.B&&(c.pnmm=b.B),b.A&&0<b.A&&(c.pnk=b.A),c.ptlt=b.C);return c};
Al=function(a){return function(b){var c=new rl;c.update(b+a);return Taa(c.digest()).slice(-8)}};
Hl=function(a,b,c){var d=wl.getInstance(),e={};g.dc(e,{opt_adElement:void 0,opt_fullscreen:void 0},c||{});if(e.opt_bounds)a=Dl(d,il("ol",a),!1);else{b:{if(hl(a)){if(Gl){e=il("ue",a);break b}b=d.An(b,e);if(!b){e=il("nf",a);break b}if(!d.F){d.F=!0;try{var f=cj(),k=Wj.getInstance();bj=f;$k=uk(ei).nu;Dk(pk,!1);var l=Wj.getInstance();ei.screen&&(l.D=new g.dd(ei.screen.width,ei.screen.height));if("nis"!=k.Fb&&"gsv"!=k.Fb)if(ei.document.body&&ei.document.body.getBoundingClientRect)if(pk.o.Ov=0,pk.o.Mr=cj()-
f,Vj.getInstance(),!k.o&&aj()&&Lk())Ck();else if(k.o&&"exc"!=k.Fb)if(k.B){var m=Sk.getInstance();g.jb(m.g,d)||m.g.push(d);Sca(m)}else Uk(d);else Ck();else Gl=!0}catch(q){throw pk.reset(),q;}}"i"==Xk&&(b.nh=!0,d.Et(b));f=e.opt_fullscreen;g.t(f)&&(b.kf=!!f);Nk()?f=!1:(f=Wj.getInstance().Fb,f=ei&&ei.g||"nis"===f||"gsv"===f?!1:0===Oi());if(k=f)al(b,"pvu"),Ek(pk),Xk="pvu",pk.done=!0;f=a.toLowerCase();!k&&g.jb(nda,f)&&(Tca(d,b,e),d.Rx(b));(k=b.F[f])&&b.o.Da(k);switch(b.af()){case 1:var n=d.J[f];break;case 2:n=
d.L[f]}if(n&&(e=n.call(d,b,e),g.t(e))){n=il(void 0,f);g.dc(n,e);e=n;break b}}e=void 0}e&&g.dc(e,Fl(d));a=Dl(d,e,"firstquartile"==a||"midpoint"==a||"thirdquartile"==a||"complete"==a||"skip"==a||"abandon"==a?!0:!1)}return a};
Il=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));a=a.substring(0,a.indexOf("://"));if("http"!==a&&"https"!==a&&"chrome-extension"!==a&&"file"!==a&&"android-app"!==a&&"chrome-search"!==a)throw Error("Invalid URI scheme in origin");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};
oda=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;q=n=0}
function b(a){for(var b=k,c=0;64>c;c+=4)b[c/4]=a[c]<<24|a[c+1]<<16|a[c+2]<<8|a[c+3];for(c=16;80>c;c++)a=b[c-3]^b[c-8]^b[c-14]^b[c-16],b[c]=(a<<1|a>>>31)&4294967295;a=e[0];var d=e[1],f=e[2],l=e[3],m=e[4];for(c=0;80>c;c++){if(40>c)if(20>c){var n=l^d&(f^l);var q=1518500249}else n=d^f^l,q=1859775393;else 60>c?(n=d&f|l&(d|f),q=2400959708):(n=d^f^l,q=3395469782);n=((a<<5|a>>>27)&4294967295)+n+m+q+b[c]&4294967295;m=l;l=f;f=(d<<30|d>>>2)&4294967295;d=a;a=n}e[0]=e[0]+a&4294967295;e[1]=e[1]+d&4294967295;e[2]=
e[2]+f&4294967295;e[3]=e[3]+l&4294967295;e[4]=e[4]+m&4294967295}
function c(a,c){if("string"===typeof a){a=(0,window.unescape)((0,window.encodeURIComponent)(a));for(var d=[],e=0,k=a.length;e<k;++e)d.push(a.charCodeAt(e));a=d}c||(c=a.length);d=0;if(0==n)for(;d+64<c;)b(a.slice(d,d+64)),d+=64,q+=64;for(;d<c;)if(f[n++]=a[d++],q++,64==n)for(n=0,b(f);d+64<c;)b(a.slice(d,d+64)),d+=64,q+=64}
function d(){var a=[],d=8*q;56>n?c(l,56-n):c(l,64-(n-56));for(var k=63;56<=k;k--)f[k]=d&255,d>>>=8;b(f);for(k=d=0;5>k;k++)for(var m=24;0<=m;m-=8)a[d++]=e[k]>>m&255;return a}
for(var e=[],f=[],k=[],l=[128],m=1;64>m;++m)l[m]=0;var n,q;a();return{reset:a,update:c,digest:d,DH:function(){for(var a=d(),b="",c=0;c<a.length;c++)b+="0123456789ABCDEF".charAt(Math.floor(a[c]/16))+"0123456789ABCDEF".charAt(a[c]%16);return b}}};
pda=function(a,b,c){var d=[],e=[];if(1==(g.ua(c)?2:1))return e=[b,a],(0,g.H)(d,function(a){e.push(a)}),Jl(e.join(" "));
var f=[],k=[];(0,g.H)(c,function(a){k.push(a.key);f.push(a.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.kb(f)?[c,b,a]:[f.join(":"),c,b,a];(0,g.H)(d,function(a){e.push(a)});
a=Jl(e.join(" "));a=[c,a];g.kb(k)||a.push(k.join(""));return a.join("_")};
Jl=function(a){var b=oda();b.update(a);return b.DH().toLowerCase()};
g.Kl=function(){var a=[],b=Il(String(v.location.href)),c=v.__OVERRIDE_SID;null==c&&(c=(new Cg(window.document)).get("SID"));if(c&&(b=(c=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:"))?v.__SAPISID:v.__APISID,null==b&&(b=(new Cg(window.document)).get(c?"SAPISID":"APISID")),b)){c=c?"SAPISIDHASH":"APISIDHASH";var d=String(v.location.href);return d&&b&&c?[c,pda(Il(d),b,a||null)].join(" "):null}return null};
Ll=function(){};
Nl=function(a){if(a instanceof Ll)return a;if("function"==typeof a.Yd)return a.Yd(!1);if(g.va(a)){var b=0,c=new Ll;c.next=function(){for(;;){if(b>=a.length)throw Ml;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
g.Ol=function(a,b,c){if(g.va(a))try{(0,g.H)(a,b,c)}catch(d){if(d!==Ml)throw d;}else{a=Nl(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==Ml)throw d;}}};
qda=function(a){if(g.va(a))return g.sb(a);a=Nl(a);var b=[];g.Ol(a,function(a){b.push(a)});
return b};
Pl=function(a,b){this.o={};this.g=[];this.Ih=this.Ma=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){a instanceof Pl?(c=a.Db(),d=a.sb()):(c=g.Rb(a),d=g.Pb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};
Rl=function(a,b){return Ql(a.o,b)};
Sl=function(a){var b,c;if(a.Ma!=a.g.length){for(b=c=0;c<a.g.length;){var d=a.g[c];Ql(a.o,d)&&(a.g[b++]=d);c++}a.g.length=b}if(a.Ma!=a.g.length){var e={};for(b=c=0;c<a.g.length;)d=a.g[c],Ql(e,d)||(a.g[b++]=d,e[d]=1),c++;a.g.length=b}};
Ql=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Tl=function(a){if(a.sb&&"function"==typeof a.sb)return a.sb();if(g.u(a))return a.split("");if(g.va(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return g.Pb(a)};
Ul=function(a){if(a.Db&&"function"==typeof a.Db)return a.Db();if(!a.sb||"function"!=typeof a.sb){if(g.va(a)||g.u(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.Rb(a)}};
rda=function(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(g.va(a)||g.u(a))(0,g.H)(a,b,void 0);else for(var c=Ul(a),d=Tl(a),e=d.length,f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],a)};
g.Vl=function(a,b){this.o=this.G=this.B="";this.C=null;this.I=this.A="";this.D=!1;var c;a instanceof g.Vl?(this.D=g.t(b)?b:a.D,Wl(this,a.B),this.G=a.G,g.Xl(this,a.o),g.Yl(this,a.C),g.Zl(this,a.A),$l(this,a.g.clone()),this.I=a.ci()):a&&(c=g.Fg(String(a)))?(this.D=!!b,Wl(this,c[1]||"",!0),this.G=am(c[2]||""),g.Xl(this,c[3]||"",!0),g.Yl(this,c[4]),g.Zl(this,c[5]||"",!0),$l(this,c[6]||"",!0),this.I=am(c[7]||"")):(this.D=!!b,this.g=new g.bm(null,0,this.D))};
Wl=function(a,b,c){a.B=c?am(b,!0):b;a.B&&(a.B=a.B.replace(/:$/,""))};
g.Xl=function(a,b,c){a.o=c?am(b,!0):b;return a};
g.Yl=function(a,b){if(b){b=Number(b);if((0,window.isNaN)(b)||0>b)throw Error("Bad port number "+b);a.C=b}else a.C=null;return a};
g.Zl=function(a,b,c){a.A=c?am(b,!0):b};
$l=function(a,b,c){b instanceof g.bm?(a.g=b,sda(a.g,a.D)):(c||(b=cm(b,tda)),a.g=new g.bm(b,0,a.D));return a};
g.dm=function(a,b,c){a.g.set(b,c);return a};
fm=function(a,b,c){g.ua(c)||(c=[String(c)]);em(a.g,b,c)};
gm=function(a){g.dm(a,"zx",g.Sa());return a};
g.hm=function(a){return a instanceof g.Vl?a.clone():new g.Vl(a,void 0)};
uda=function(a,b,c,d){var e=new g.Vl(null,void 0);a&&Wl(e,a);b&&g.Xl(e,b);c&&g.Yl(e,c);d&&g.Zl(e,d);return e};
am=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""};
cm=function(a,b,c){return g.u(a)?(a=(0,window.encodeURI)(a).replace(b,vda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
vda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
g.bm=function(a,b,c){this.Ma=this.g=null;this.o=a||null;this.A=!!c};
jm=function(a){a.g||(a.g=new Pl,a.Ma=0,a.o&&Jg(a.o,function(b,c){im(a,Ka(b),c)}))};
km=function(a){var b=Ul(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new g.bm(null,0,void 0);a=Tl(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];g.ua(f)?em(c,e,f):im(c,e,f)}return c};
im=function(a,b,c){jm(a);a.o=null;b=lm(a,b);var d=a.g.get(b);d||a.g.set(b,d=[]);d.push(c);a.Ma=a.Ma+1};
mm=function(a,b){jm(a);b=lm(a,b);return Rl(a.g,b)};
em=function(a,b,c){a.remove(b);0<c.length&&(a.o=null,a.g.set(lm(a,b),g.sb(c)),a.Ma=a.Ma+c.length)};
lm=function(a,b){var c=String(b);a.A&&(c=c.toLowerCase());return c};
sda=function(a,b){b&&!a.A&&(jm(a),a.o=null,a.g.forEach(function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),em(this,c,a))},a));
a.A=b};
g.nm=function(a){g.L.call(this);this.B=a;this.o={}};
pm=function(a,b,c,d,e){om(a,b,c,d,!1,e)};
om=function(a,b,c,d,e,f){g.ua(c)||(c&&(qm[0]=c.toString()),c=qm);for(var k=0;k<c.length;k++){var l=g.qf(b,c[k],d||a.handleEvent,e||!1,f||a.B||a);if(!l)break;a.o[l.key]=l}return a};
sm=function(a,b,c,d){rm(a,b,c,d,void 0)};
tm=function(a,b,c,d,e){rm(a,b,c,d,!1,e)};
rm=function(a,b,c,d,e,f){if(g.ua(c))for(var k=0;k<c.length;k++)rm(a,b,c[k],d,e,f);else(b=pf(b,c,d||a.handleEvent,e,f||a.B||a))&&(a.o[b.key]=b)};
um=function(a){g.Kb(a.o,function(a,c){this.o.hasOwnProperty(c)&&g.zf(a)},a);
a.o={}};
vm=function(a,b,c){g.L.call(this);this.o=a;this.A=b;this.D=c;this.C=0;this.g=new g.nm(this);wda(this)};
wda=function(a){a.D.forEach(function(a,c){this.g.U(c,"mousedown",this.F);this.g.U(c,"mouseup",this.I)},a);
a.g.U(a.A,"mouseover",a.G)};
wm=function(){};
g.xm=function(a,b){return a.replace(xda,function(a,d){try{var c=Zb(b,d);if(null==c)return a;c=c.toString();if(""==c||!E(g.F(c)))return(0,window.encodeURIComponent)(c).replace(/%2C/g,",")}catch(f){}return a})};
zm=function(a,b){var c=[],d="",e="";if(null!=b){d=b;e=[];for(var f=0;d&&25>f;++f){a:{if(d&&d.nodeName&&d.parentElement){var k=d.nodeName.toString().toLowerCase();for(var l=d.parentElement.childNodes,m=0,n=0;n<l.length;++n){var q=l[n];if(q.nodeName&&q.nodeName.toString().toLowerCase()===k){if(d===q){k="."+m;break a}++m}}}k=""}e.push((d.nodeName&&d.nodeName.toString().toLowerCase())+""+k);d=d.parentElement}d=e.join();if(b){e=(e=b.ownerDocument)&&(e.defaultView||e.parentWindow)||null;f=[];if(e)try{var r=
e.parent;for(k=0;r&&r!==e&&25>k;++k){var w=r.frames;for(l=0;l<w.length;++l)if(e===w[l]){f.push(l);break}e=r;r=e.parent}}catch(z){}e=f.join()}else e=""}c.push(d,e);if(null!=a){for(r=0;r<ym.length-1;++r)c.push(Sg(a,ym[r])||"");r=Sg(a,"videoad_start_delay");w="";r&&(r=(0,window.parseInt)(r,10),w=0>r?"postroll":0==r?"preroll":"midroll");c.push(w)}else for(r=0;r<ym.length;++r)c.push("");c=c.join(":");r=c.length;if(0==r)c=0;else{w=305419896;for(d=0;d<r;d++)w^=(w<<5)+(w>>2)+c.charCodeAt(d)&4294967295;c=
0<w?w:4294967296+w}return c.toString()};
Am=function(a,b,c){this.g=a;this.o=b;this.A=c};
Bm=function(a,b){this.g=a;this.gg=b};
Cm=function(a,b){g.$e.call(this,"adError");this.A=a;this.g=b?b:null};
Dm=function(a,b,c){g.$e.call(this,a);this.A=b;this.g=null!=c?c:null};
yda=function(a){this.g=a};
zda=function(){var a=Em();return Fm(a,"disableExperiments")};
Fm=function(a,b){if(Tb(a.g,b)){var c=a.g[b];if(g.pa(c))return c}return!1};
Ada=function(a){if(Tb(a.g,"forceExperimentIds")){a=a.g.forceExperimentIds;var b=[],c=0;g.ua(a)&&(0,g.H)(a,function(a){g.qa(a)&&(b[c++]=a)});
return b}return null};
Gm=function(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};
Hm=function(){this.B="always";this.N=4;this.F=1;this.o=this.L=this.C=!1;this.ba=this.J=!0;this.A=this.Y=!1;this.I=!0;this.O=null;this.aa=3E3;this.ob=this.D=this.V=!1;try{this.ea=ul(void 0)[0]}catch(a){}};
Em=function(){var a=P;if(null==a.O){var b={},c=(new g.Vl(vd().location.href)).g;if(mm(c,"tcnfp"))try{b=g.xg(c.get("tcnfp"))}catch(d){}a.O=new yda(b)}return a.O};
Bda=function(a){switch(a){case "BREAK_TYPE_PRE_ROLL":return 1;case "BREAK_TYPE_MID_ROLL":return 2;case "BREAK_TYPE_POST_ROLL":return 3;case "BREAK_TYPE_INDEPENDENT":return 5;case "BREAK_TYPE_RELATED":return 6;default:return 0}};
Im=function(a){g.$e.call(this,a);this.F=[];this.D={};this.g=null;this.A=!0};
Jm=function(a,b,c){this.B=b;this.o=c;this.C=a;this.A=!0};
Km=function(){};
Lm=function(a,b,c,d){this.ya=a;this.g=g.Xc(c||0,0,1);this.o=null!=d?d:!0};
Mm=function(a){this.ya=a;this.o=new Pl;this.fb=this.g=null};
Cda=function(a){var b=Math.random(),c=0,d=a.o.sb();(0,g.H)(d,function(a){c+=a.g},a);
var e=1<c?c:1;a.g=null;for(var f=0,k=0;k<d.length;++k)if(f+=d[k].g,f/e>=b){a.g=d[k];break}};
Eda=function(){this.o=null!=v.G_testRunner;this.A=new Km;this.g=new Pl;P.g()||(Nm(this,"GvnExternalLayer",31061774,.01),Nm(this,"GvnExternalLayer",31061775,.01),Nm(this,"GvnExternalLayer",41351088,.01),Nm(this,"GvnExternalLayer",41351089,.01),Nm(this,"GvnExternalLayer",420706008,.05),Nm(this,"GvnExternalLayer",420706009,.05),Nm(this,"GvnExternalLayer",420706024,.01),Nm(this,"GvnExternalLayer",420706025,.01),Nm(this,"GvnExternalLayer",420706029,.01),Nm(this,"GvnExternalLayer",41351073,.01),Nm(this,
"GvnExternalLayer",41351074,.01),Nm(this,"GvnExternalLayer",41351075,.01),Nm(this,"GvnExternalLayer",634360101,0),Nm(this,"GvnExternalLayer",634360102,0),Nm(this,"GvnExternalLayer",21592080,.1),Nm(this,"GvnExternalLayer",21592081,.1),Nm(this,"GvnExternalLayer",21592082,.01),Nm(this,"GvnExternalLayer",413051059,.05),Nm(this,"GvnExternalLayer",413051060,.05),Nm(this,"GvnExternalLayer",324123E3,.05),Nm(this,"GvnExternalLayer",324123001,.05),Nm(this,"GvnExternalLayer",420706068,.01),Nm(this,"GvnExternalLayer",
420706069,.01),Nm(this,"GvnExternalLayer",324123020,.01),Nm(this,"GvnExternalLayer",324123021,.01),Nm(this,"GvnExternalLayer",420706081,.01),Nm(this,"GvnExternalLayer",420706082,.01),aj(!1)&&(Wh(ei.top)?(Nm(this,"ActiveViewExternalLayer",509445010,.01),Nm(this,"ActiveViewExternalLayer",509445011,.01)):(Nm(this,"ActiveViewExternalLayer",509445012,.01),Nm(this,"ActiveViewExternalLayer",509445013,.01))));Dda(this);var a=Em();a=Ada(a);null!=a&&(this.o=!1,Om(this,a.map(String)))};
Qm=function(){Pm||(Pm=new Eda);return Pm};
Rm=function(){return Qm().A};
Fda=function(a,b){a.A=b};
Gda=function(){var a=Qm();(0,g.H)(a.g.Db(),function(a){g.Ha(a,"FORCED_PUB_EXP_LAYER_")&&this.g.remove(a)},a)};
Nm=function(a,b,c,d){E(g.F(b))||(0,window.isNaN)(c)||0>=c||(c=new Lm(c,0,d),Sm(a,b).o.set(c.getId(),c))};
Dda=function(a){zda()||(0,g.H)(a.g.sb(),function(a){Cda(a)},a)};
Om=function(a,b){(0,g.H)(b,function(a){var b=Number(a);a="FORCED_PUB_EXP_LAYER_"+a;(0,window.isNaN)(b)||0>=b||E(g.F(a))||(Sm(this,a).g=new Lm(b,0,0,!0))},a)};
Tm=function(a,b){return a.o?!1:(0,g.Ik)(a.g.sb(),function(a){return!!a.g&&a.g.getId()==b})};
Um=function(a){if(a.o)return"";var b=[];(0,g.H)(a.g.sb(),function(a){(a=a.g)&&a.o&&b.push(a.getId())});
return b.sort().join(",")};
Sm=function(a,b){var c=a.g.get(b);null==c&&(c=new Mm(b),a.g.set(b,c));return c};
Ida=function(){var a=[],b=Qm();(0,g.H)(Hda,function(c){(c=(c=Sm(b,c))?c.g:null)&&a.push(c.getId())});
return a};
Wm=function(a){return null!=a?Vm(Jda,a):!1};
Vm=function(a,b){try{var c=(new g.Vl(b)).o;c=c.replace(/^www./i,"");return(0,g.Ik)(a,function(a){return Kda(a,c)})}catch(d){return!1}};
Kda=function(a,b){if(E(g.F(b)))return!1;a=a.toLowerCase();b=b.toLowerCase();return"*."==a.substr(0,2)?(a=a.substr(2),a.length>b.length?!1:b.substr(-a.length)==a&&(b.length==a.length||"."==b.charAt(b.length-a.length-1))):a==b};
Ym=function(a){var b=!1;Xm(a,Lda)?b=!1:Wm(a)?b=!0:"https:"==window.location.protocol&&(Xm(a,Mda)||P.g())&&(b=!0);if(b){b=new g.Vl(a);if("https"==b.B)return a;Wl(b,"https");return b.toString()}return a};
Xm=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)};
Zm=function(a){if(E(g.F(a)))return!1;a=new g.Vl(a);if(!a.B||"http"!=a.B&&"https"!=a.B)return!1;a=a.o;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0};
$m=function(a){E(g.F(a))||window.open(a,"_blank")};
bn=function(a,b,c){null!=a?(g.dm(a,"label",b),null!=c&&g.dm(a,"value",c.join(";")),a=a.toString()):a="";an(a)};
cn=function(a,b,c,d){null!=a&&null!=b&&(a=g.xm(a,b));try{if(null!=c){b=a;var e=(c||{}).viewability||"na";if(E(g.F(e)))a=b;else{var f=new g.Vl(b);mm(f.g,"label")?(g.dm(f,"acvw",e),a=f.toString().replace(/%2C/g,",")):a=b}}a:{c=a;var k=c.length-11-2;if(!(-1==c.indexOf("URL_SIGNALS")||2048<=k||!d&&!window.Goog_AdSense_Lidar_getUrlSignalsArray))for(d=d||window.Goog_AdSense_Lidar_getUrlSignalsArray(),k={},e=0;e<d.length;++e){k.URL_SIGNALS=d[e];var l=g.xm(c,k);if(2048>l.length){a=l;break a}}a=c}}catch(m){}return a};
an=function(a,b,c,d){a=cn(a,b,c,void 0);try{a=Ym(a);var e=Qm(),f=!P.g()||Tm(e,41351089);b=!1;P.g()||!Tm(Qm(),634360102)||(b=!0);null!=d&&d?dn.qC(a,f):P.I?dn.hT(a,f,b):dn.mC(a,f,b)}catch(k){}};
en=function(a,b){null!=a&&(0,g.H)(a,function(a){an(a,b)})};
Nda=function(a,b){if(E(g.F(b)))return a;var c=new g.Vl(a),d=c.o;return null!=d&&Ia(d,".g.doubleclick.net")?(g.dm(c,"ged",b),c.toString()):a};
fn=function(a,b){this.message=a;this.errorCode=b};
hn=function(a,b,c){return gn("adLoadError",a,b||null,g.ub(arguments,2))};
jn=function(a,b,c){return gn("adPlayError",a,b||null,g.ub(arguments,2))};
kn=function(a,b,c,d,e){var f=a.apply(null,g.rb([c,d],g.ub(arguments,3)));b.dispatchEvent(new Dm("log",null,f))};
ln=function(a,b,c){kn(jn,a,b,c,void 0)};
gn=function(a,b,c,d){if(c instanceof Jm)return c;var e=b.errorCode;b=b.message;if(0<d.length)for(var f=0;f<d.length;f++)b=b.replace(new RegExp("\\{"+f+"\\}","ig"),d[f]);a=new Jm(a,b,e);a.Xk=c;return a};
mn=function(a,b,c,d){var e=jn.apply(null,g.rb([b,c],g.ub(arguments,3)));a.dispatchEvent(new Cm(e))};
nn=function(a,b){g.$e.call(this,"vpaidEventType");this.g=a;this.data=b};
on=function(){return yk()||xk()};
rn=function(){return pn&&!qn||Oa(g.Ib,"iPod")};
sn=function(){return rn()||qn};
vn=function(a){return sn()&&tn(un,a)};
yn=function(a){return g.wn&&tn(xn,a)};
tn=function(a,b){if(null==zn[b]){var c=An(a);c?(c=c.replace(/_/g,"."),zn[b]=0<=g.Va(c,b)):zn[b]=!1}return zn[b]};
An=function(a){E(Bn)&&(a=a.exec(g.Ib))&&(Bn=a[1]);return Bn};
Cn=function(){var a=g.Ib;return a?Oa(a,"Nintendo WiiU"):!1};
Dn=function(){return pn&&!qn&&vn(10)&&P.g()||!P.g()&&(pn&&!qn&&vn(10),0)?!0:rn()||g.wn&&!yn(4)||!P.g()&&Nk()?!1:!0};
En=function(){return P.o||sn()&&(pn&&!qn&&vn(10),!0)||g.wn&&!yn(4)||Nk()?!0:!1};
Fn=function(a){return!(null===a||a.nj()||P.g()||rn()||Nk()||g.wn&&!yn(4))};
Gn=function(){this.reset()};
Hn=function(a,b){null!=b&&a.o!=b?(a.g=1,a.o=b):a.g=null!=b?a.g+1:1;return a.g};
In=function(a,b,c,d,e,f){g.u(a)?(this.B="y"==a?b:0,this.months="m"==a?b:0,this.days="d"==a?b:0,this.g="h"==a?b:0,this.o="n"==a?b:0,this.A="s"==a?b:0):(this.B=a||0,this.months=b||0,this.days=c||0,this.g=d||0,this.o=e||0,this.A=f||0)};
g.Ln=function(a,b,c){g.qa(a)?(this.date=Jn(a,b||0,c||1),Kn(this,c||1)):g.xa(a)?(this.date=Jn(a.getFullYear(),a.getMonth(),a.getDate()),Kn(this,a.getDate())):(this.date=new Date((0,g.G)()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Kn(this,a))};
Jn=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
g.Mn=function(a){a=a.getTimezoneOffset();if(0==a)a="Z";else{var b=Math.abs(a)/60,c=Math.floor(b);b=60*(b-c);a=(0<a?"-":"+")+g.Ra(c,2)+":"+g.Ra(b,2)}return a};
Kn=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
Nn=function(){this.o=this.g=null};
Pn=function(){this.g=On();this.L=-1;this.N=this.O=this.C=this.J=this.o=null;this.B=On();this.A=null;this.Y=this.F=this.I="";this.G=this.V=this.ba=this.D=null;this.aa=!1;this.ea=0};
On=function(){return Math.floor(4503599627370496*Math.random())};
Qn=function(a){null==a.C&&(a.C=new Gn);return a.C};
Rn=function(a){if(P.o)return"h.3.0.0";var b="h."+a.Y;null!=a.D&&(b+="/n."+a.D,null!=a.o&&(b+="/"+a.o));return b};
Sn=function(){this.g=.01>Math.random();this.o=Math.floor(4503599627370496*Math.random())};
Vn=function(a,b,c,d){if(a.g||d){c=c||{};c.lid=b;c.sdkv=Rn(Tn);b=Um(Qm());E(g.F(b))||(c.e=b);c=Oda(a,c);var e=new g.Vl("http://pagead2.googlesyndication.com/pagead/gen_204");g.Kb(c,function(a,b){g.dm(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);
a=Un();Wl(e,a.B);an(e.toString())}};
Oda=function(a,b){b.id="ima_html5";var c=Un();b.c=a.o;b.domain=c.o;return b};
Un=function(){var a=vd(),b=window.document;return new g.Vl(a.parent==a?a.location.href:b.referrer)};
Xn=function(){this.lf=Wn()};
Wn=function(){return P.g()||Tm(Qm(),420706082)?15E3:8E3};
$n=function(){g.Ef.call(this)};
ao=function(){g.Ef.call(this);this.g=new Pl;this.o=null;this.I=new g.nm(this);g.M(this,this.I);this.C="";this.B=this.J=this.F=this.A=null;this.G=-1};
co=function(){null!=bo||(bo=new ao);return bo};
eo=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;co().dispatchEvent(new Dm("measurable_impression",null,c))};
fo=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;co().dispatchEvent(new Dm("viewable_impression",null,c))};
go=function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;co().dispatchEvent(new Dm("externalActivityEvent",null,d))};
Pda=function(a,b){if(a.o)if(a.B){var c=(0,g.G)()-a.G;b(a.B+"_ct"+c)}else{var d=a.g;c=window.setTimeout(function(){b("timeout");(0,g.H)(d.Db(),function(a){d.get(a)===b&&d.remove(a)})},200);
a.g.set(c,b);var e={};e.osdId=a.C;e.eventId=c;Sn.getInstance().isLoggingEnabled()&&(a.D=(0,g.G)(),e.loggingId=Math.random(),Vn(Sn.getInstance(),43,{step:"sendingMessage",logid:e.loggingId,time:a.D}));a.o.send("activityMonitor","fetchAdTagUrl",e)}else b("")};
Qda=function(a,b,c,d){if(a.o){var e={};e.queryId=c;e.vastEvent=b;a.C&&(e.osdId=a.C);e.isOverlay=null!=a.A;a.A&&(e.overlayBounds=g.Hh(a.A));var f=a.g;b=window.setTimeout(function(){d({viewability:"timeout"});(0,g.H)(f.Db(),function(a){f.get(a)===d&&f.remove(a)})},200);
a.g.set(b,d);e.eventId=b;a.o.send("activityMonitor","reportVastEvent",e)}else d({})};
ho=function(){};
ko=function(a,b){if(null==a||0>=a.width||0>=a.height)throw jn(io,null,"ad slot size",a.toString());this.o=a;this.g=null!=b?b:new ho;this.C=jo(Rda,this.g.A)?this.g.A:"All";this.B=jo(Sda,this.g.creativeType)?this.g.creativeType:"All";this.F=jo(Tda,this.g.B)?this.g.B:"SelectExactMatch";this.G=jo(Uda,this.g.o)?this.g.o:"DisallowResize";this.A=null!=this.g.C?this.g.C:[];this.D=g.qa(this.g.g)&&0<this.g.g&&100>=this.g.g?this.g.g:90};
mo=function(a,b){var c=[];(0,g.H)(b,function(a){a.ky()&&((0,window.isNaN)(a.g.g)||(0,window.isNaN)(a.Qq())||a.Qq()==a.g.g)&&lo(this,a)?c.push(a):(a=Vda(this,a),null!=a&&a.ky()&&c.push(a))},a);
return c};
lo=function(a,b){var c;if(c="Flash"!=b.md()||no){if(c="All"==a.C||a.C==b.g.N)c=b.md(),c=null!=c?"All"==a.B||a.B==c:!0;c&&(c=b.o,c=g.kb(a.A)?!0:null!=c?0<=(0,g.ib)(a.A,c):!1)}if(c){var d=b.Ln();if("IgnoreSize"==a.F||g.ed(a.o,d))c=!0;else if(c="SelectNearMatch"==a.F)"ResizeSmaller"==a.G&&(d=d.width<=a.o.width&&d.height<=a.o.height?d:oo(d,a.o)),c=d.width,d=d.height,c=c>a.o.width||d>a.o.height||c<a.D/100*a.o.width||d<a.D/100*a.o.height?!1:!0}else c=!1;return c};
Vda=function(a,b){var c=b.A;return null!=c?g.eb(c,function(a){return lo(this,a)},a):null};
oo=function(a,b){var c=Math.min(b.width/a.width,b.height/a.height);return new g.dd(c*a.width,c*a.height)};
jo=function(a,b){return null!=b&&Ob(a,b)};
po=function(a){a=0>a?0:Math.round(a);return 3600<=a?""+Math.floor(a/3600)+":"+("0"+Math.floor(a/60)%60).slice(-2)+":"+("0"+a%60).slice(-2):""+Math.floor(a/60)%60+":"+("0"+a%60).slice(-2)};
Wda=function(a){var b={};(0,g.H)(a.split(","),function(a){var c=a.split("=");2==c.length&&(a=Ta(c[0]),c=Ta(c[1]),0<a.length&&(b[a]=c))});
return b};
ro=function(a,b){if(a[b])return qo(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return qo(a[d]);return!1};
qo=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
Xda=function(){this.g=this.mg=1;this.o=this.B=0;this.A=1};
so=function(){g.Ef.call(this);this.g=null;this.D=new g.nm(this);g.M(this,this.D);this.o=new Pl;this.F=new Pl;this.B=null;this.A=!1;this.C=null};
uo=function(){null!=to||(to=new so);return to};
wo=function(a){if(null==a)return!1;if(rn()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=vo(a);return 0>=b-a.width&&42>=c-a.height};
vo=function(a){return g.wa(a.getBoundingClientRect)&&g.Od(g.gd(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};
xo=function(a,b,c,d,e){if(a.A){if(a.C)return a.C(b,c,e);e=e||{};if(d=d?a.F.get(d):P.G)null!=e.opt_fullscreen||(e.opt_fullscreen=wo(d)),null!=e.opt_adElement||(e.opt_adElement=d);a.B&&(P.o&&(e.opt_overlayAdElement=a.B),null!=e.opt_bounds||(e.opt_bounds=vo(a.B)));return Ki("lidar::handlevast_html5",g.Aa(Hl,b,c,e))||{}}return{}};
yo=function(a,b){var c=[];a.o.forEach(g.Aa(function(a,b,c,k){c==b&&a.push(k)},c,b));
(0,g.H)(c,a.o.remove,a.o)};
zo=function(a){if(g.wa(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.g.send("activityMonitor","pageSignals",b)}};
Yda=function(){if(!(v.ima&&v.ima.video&&v.ima.video.client&&v.ima.video.client.tagged)){g.ra("ima.video.client.sdkTag",!0,void 0);var a=v.document,b=a.createElement("script"),c=a.location.protocol;"http:"!=c&&"https:"!=c&&(c="");b.src=c+"//s0.2mdn.net/instream/video/client.js";b.async=!0;b.type="text/javascript";a=a.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a)}};
Zda=function(a,b,c){if(!P.J)return"";var d=b?a.F.get(b):P.G;a={};null!=c&&(a.fullscreen=c);c="";try{c=zba(function(){return d},a)}catch(e){c="sdktle;"+Ma(e.name,12)+";"+Ma(e.message,40)}return c};
Ao=function(a,b){g.$e.call(this,a);this.g=b};
Bo=function(a,b){this.I=a;this.G=(0,g.J)(b,function(a){return a.clone()});
this.F="";this.g=null;this.o=this.B=0;this.A=!0;this.D=[];this.C=[]};
Co=function(a,b,c,d,e){a.F="<div></div>";a.g=b;a.B=c;a.o=d;a.A=!1;a.D=e||[];a.C=[]};
Do=function(a){a.F="";a.g=null;a.B=0;a.o=0;a.A=!0;a.D=[];a.C=[]};
Eo=function(a){g.$e.call(this,a)};
Fo=function(a){if(a&&a.items&&a.items.length){a=a.items[0];this.channelId=a.id;var b=a.snippet;b&&(this.authorName=b.title,this.channelIconThumbnailUrl=g.Sb(b,"thumbnails","default","url"));if(b=a.statistics)this.videoCount=b.videoCount;if(a=a.brandingSettings)this.g=g.Sb(a,"image","bannerImageUrl")}};
g.Go=function(a){this.g="number"==typeof a?0<a?1:0>a?-1:null:null==a?null:a?-1:1};
g.Ho=function(a,b){var c=a.o(b,void 0);return-1==(0==c?a.g:c)?"rtl":"ltr"};
Io=function(){throw Error("Do not instantiate directly");};
Jo=function(a,b){this.content=String(a);this.xg=null!=b?b:null};
Ko=function(){Io.call(this)};
Lo=function(){Io.call(this)};
Mo=function(){Io.call(this)};
No=function(){Io.call(this)};
Oo=function(){Io.call(this)};
Po=function(){Io.call(this)};
Qo=function(a,b){return null!=a&&a.Hf===b};
Ro=function(a){if(null!=a)switch(a.xg){case 1:return 1;case -1:return-1;case 0:return 0}return null};
Q=function(a){return null!=a&&a.Hf===So?a:a instanceof g.Mc?To(g.Nc(a),a.ej()):To(La(String(String(a))),Ro(a))};
Uo=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a){return new b(String(a))}};
Xo=function(a,b,c){var d="key_"+a+":"+b,e=Vo[d];if(void 0===e||0>e)Vo[d]=0,Wo[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');};
Yo=function(a,b){var c=Wo["key_"+a+":"+b];c||""==b||(c=Wo["key_"+a+":"]);return c?c:$da;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');};
$da=function(){return""};
R=function(a){return Qo(a,So)?String(String(a.ld()).replace(Zo,"").replace($o,"&lt;")).replace(aea,ap):La(String(a))};
bp=function(a){return Qo(a,So)?String(String(a.ld()).replace(Zo,"").replace($o,"&lt;")).replace(bea,ap):String(a).replace(cea,ap)};
dea=function(a){return"%"+a.charCodeAt(0).toString(16)};
dp=function(a){a=g.Ja(String(a));cp.lastIndex=0;return cp.test(a)?a.replace(cp,dea):a};
jp=function(a){if(Qo(a,ep)||Qo(a,fp))return gp(a);a instanceof Bc?a=gp(Cc(a)):a instanceof xc?a=gp(yc(a)):(a=String(a),a=eea.test(a)?a.replace(hp,ip):"about:invalid#zSoyz");return a};
kp=function(a){if(Qo(a,ep)||Qo(a,fp))return gp(a);a instanceof Bc?a=gp(Cc(a)):a instanceof xc?a=gp(yc(a)):(a=String(a),a=fea.test(a)?a.replace(hp,ip):"about:invalid#zSoyz");return a};
mp=function(a){var b=lp[1]||(lp[1]=new g.Go(1)),c=Ro(a);null==c&&(c=vc(a+"",Qo(a,So)));return gea(c!=b.g?-1==c?'dir="rtl"':1==c?'dir="ltr"':"":"")};
ap=function(a){return hea[a]};
ip=function(a){return iea[a]};
gp=function(a){return String(a).replace(hp,ip)};
jea=function(a){return'<div class="'+Q("text-container")+" "+(a.image?Q("pyv"):"")+'"><div class="'+Q("text-inner-container")+'">'+(a.image?(a.Ic?'<a class="'+Q("text-image-link")+'" target="_blank" href="'+Q(a.Ic)+'">':'<a class="'+Q("text-image-link")+'" target="_blank">')+'<img src="'+Q(a.image)+'" class="'+Q("text-image")+" "+(a.aD?Q("yt-video-image"):"")+'">'+(a.duration?'<div class="'+Q("text-image-duration")+'">'+Q(a.duration)+"</div>":"")+"</a>":"")+(a.Ic?'<a class="'+Q("text-title")+'" href="'+
Q(a.Ic)+'" target="_blank" dir='+Q(a.dir)+">"+Q(a.title)+"</a>":"")+'<div class="'+Q("text-description")+'" dir='+Q(a.dir)+">"+Q(a.text)+"</div>"+(a.eD&&a.Ic?'<a target="_blank" href="'+Q(a.Ic)+'" class="'+Q("text-ad-channel")+'">'+Q(a.eD)+"</a>":"")+"</div></div>"};
kea=function(a){return'<div class="'+Q("flash-container")+" "+(a.capture?Q("click-capture"):"")+'">'+(a.Ic?'<a class="click-layer" target="_blank" href="'+Q(a.Ic)+'"></a>':"")+'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+Q(a.width)+'" height="'+Q(a.height)+'"><param name="movie" value="'+Q(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+
dp(a.Ic)+'"><embed width="'+Q(a.width)+'" height="'+Q(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+Q(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+dp(a.Ic)+'"></object></div>'};
lea=function(a){return'<div class="'+Q("image-container")+'" id="'+Q(a.id)+'" style="width:'+Q(a.width)+";height:"+Q(a.height)+';">'+(a.Ic?'<a target="_blank" href="'+Q(a.Ic)+'">':'<a target="_blank">')+'<img src="'+Q(a.url)+'" border="0"></a></div>'};
mea=function(a){return'<div class="'+Q("image-container")+'" id="'+Q(a.id)+'">'+(a.Ic?'<a target="_blank" href="'+Q(a.Ic)+'">':'<a target="_blank">')+'<img src="'+Q(a.url)+'" border="0" style="max-width:100%;max-height:100%;"></a></div>'};
np=function(a){return'<div class="'+Q("image-container")+'" id="'+Q(a.id)+'" style="width:'+Q(a.width)+";height:"+Q(a.height)+';"></div>'};
op=function(){this.g=new Pl};
pp=function(a,b){this.A=a;this.g=b};
qp=function(a,b){pp.call(this,"progress",a);this.o=b};
sp=function(a,b){(0,g.H)(b,function(a){var b=a.Yb().toLowerCase(),c=rp(this,b);c.push(a);this.g.set(b,c)},a)};
tp=function(a,b,c,d){b=b.toLowerCase();c=null!=d?new qp(c,d):new pp(b,c);d=rp(a,b);d.push(c);a.g.set(b,d)};
rp=function(a,b){return null!=b?a.g.get(b.toLowerCase(),[]):[]};
nea=function(a,b){var c=rp(a,"progress");(0,g.H)(c,function(a){up(a.o,b)});
g.Bb(c,function(a,b){return vp(a.o)-vp(b.o)})};
wp=function(a,b){return(0,g.J)(rp(a,b),function(a){return a.g})};
xp=function(){this.ka=-1;this.G={};this.bb="";this.rj=new op};
yp=function(a,b,c){a.bb=b;a.G=c};
zp=function(a,b){var c=[],d=a.vn();(0,g.H)(d,function(a){a=rp(a.rj,b)||[];c=g.rb(a,c)},a);
return c};
Ap=function(a,b,c){var d=c||!1;return g.eb(b.F,function(a){var b=a.g==this.g;return a instanceof this.constructor&&(d||b)},a)};
Bp=function(a,b,c,d,e,f,k,l,m,n){this.B=a;this.g=b;(0,window.isNaN)(d)&&(0,window.isNaN)(e)&&(0,window.isNaN)(f)?f=e=0:(0,window.isNaN)(e)&&!(0,window.isNaN)(f)?e=f:!(0,window.isNaN)(e)&&(0,window.isNaN)(f)?f=e:!(0,window.isNaN)(d)&&(0,window.isNaN)(e)&&(0,window.isNaN)(f)&&(e=f=d);this.ri=e;this.Wf=f;this.D=k;this.C=l;this.o=Ym(g.F(m));this.A=n};
Cp=function(a,b,c,d,e,f){xp.call(this);this.ka=a;this.B=b;this.A=c;this.o=g.sb(d);this.C=null;this.D=e;this.ra=g.sb(f);wb(this.ra,null,function(a){return a.L})};
Dp=function(a){var b=new Pl,c=a.vn();(0,g.H)(c,function(a){if(a instanceof Cp){var c=a.A;(0,g.H)(c.Db(),function(a){b.set(a,g.rb(c.get(a),b.get(a)||[]))},this)}},a);
return b};
Fp=function(a){return Ep(a,"x-shockwave-flash")};
Ep=function(a,b){var c=g.eb(a.o,function(a){return!E(g.F(a.g))&&-1!=a.g.indexOf(b)&&("VPAID"==a.A||"surveys"==a.A)});
return null!=c?c:null};
Hp=function(a,b,c,d,e){xp.call(this);E(g.F(a))&&(a=Xa()+"_ima");this.ya=g.F(a);this.Fa=b;this.N=c;this.pa=d;this.A=e;this.L=[];null!=this.pa?this.ba=Gp[this.pa]||"Other":this.ba=null};
Ip=function(a,b,c){g.L.call(this);this.o=a;this.C=b;this.J=c;this.B=0;this.g={};this.A=new g.nm(this);g.M(this,this.A);oea(this)};
oea=function(a){(0,g.H)(a.J,function(a){this.A.U(a.element,"mousedown",this.F,!0);this.A.U(a.element,"mouseup",g.Aa(this.I,a),!0)},a);
a.A.U(a.C,"mouseenter",a.G)};
pea=function(a,b){g.Kb(a.g,function(a,d){b=Ug(b,d,a)});
return b};
Jp=function(a,b,c,d,e){Hp.call(this,a,b,c,d,e);this.fa=this.B=null;this.Aa=-2;this.o=null;this.da=this.Y=g.y;this.aa=[];this.Ra=[];this.D=!1;this.fb=null};
Mp=function(a,b){a.o=b;null!=a.B&&null!=b&&(Kp(a,a.Y),Lp(a,a.da))};
Kp=function(a,b){null!=a.o&&null!=a.B&&(0,g.H)(a.aa,function(a){this.o.Ca(a,"click",this.Y);!E(g.F(this.hf()))&&this.o.U(a,"click",b)},a);
a.Y=b};
Lp=function(a,b){null!=a.o&&null!=a.B&&(a.o.Ca(a.B,"creativeview",a.da),a.o.U(a.B,"creativeview",b));a.da=b};
Np=function(a,b){var c=a.ya,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.md()&&(d.style+="width:"+a.Gb()+"px");E(g.F(c))||(d.id=c);return g.xd("DIV",d,b)};
Op=function(a){if(!a.D)return null;var b=zp(a,"start");tb(b,zp(a,"creativeview"));if(null!=b&&!g.kb(b)){var c=[];(0,g.H)(b,function(a){if(!E(g.F(a))){var b=g.id().gI("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;",src:qea});g.nh(b,{display:"block",height:"0px",width:"0px"});var d="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",Ym(a.g));b.setAttribute("id",d);this.Ra.push(d);g.nb(c,b)}},a);
return c}return null};
rea=function(a,b){if(null!=a.B)if(Rm().g("cleanup_text_overlay_spam_signals")){var c=[];(0,g.H)(a.aa,function(a){c.push({element:a,tH:this.Nq(a)})},a);
new Ip(b,a.B,c)}else c=new Pl,(0,g.H)(a.aa,function(a){c.set(a,this.Nq(a))},a),new vm(b,a.B,c)};
sea=function(a){var b=[],c=a.vn();(0,g.H)(c,function(a){b=g.rb(b,a.L)},a);
return b};
Pp=function(a,b,c){var d=c||!1;return g.eb(b.F,function(a){var b=a.g==this.g;return this instanceof a.constructor&&(d||b)},a)};
Qp=function(a,b){this.g=null!=a?a:new op;this.I=null!=b?b:[]};
tea=function(a,b){var c=b.g;(0,g.H)(c.Db(),function(a){sp(this.g,c.get(a))},a)};
Rp=function(a,b){var c=wp(a.g,b);return null!=c?c:[]};
g.Sp=function(a){if(a.classList)return a.classList;a=a.className;return g.u(a)&&a.match(/\S+/g)||[]};
g.Tp=function(a,b){return a.classList?a.classList.contains(b):g.jb(g.Sp(a),b)};
g.S=function(a,b){a.classList?a.classList.add(b):g.Tp(a,b)||(a.className+=0<a.className.length?" "+b:b)};
g.Up=function(a,b){if(a.classList)(0,g.H)(b,function(b){g.S(a,b)});
else{var c={};(0,g.H)(g.Sp(a),function(a){c[a]=!0});
(0,g.H)(b,function(a){c[a]=!0});
a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}};
g.Vp=function(a,b){a.classList?a.classList.remove(b):g.Tp(a,b)&&(a.className=(0,g.Id)(g.Sp(a),function(a){return a!=b}).join(" "))};
g.Wp=function(a,b){a.classList?(0,g.H)(b,function(b){g.Vp(a,b)}):a.className=(0,g.Id)(g.Sp(a),function(a){return!g.jb(b,a)}).join(" ")};
g.T=function(a,b,c){c?g.S(a,b):g.Vp(a,b)};
g.Xp=function(a,b,c){g.Tp(a,b)&&(g.Vp(a,b),g.S(a,c))};
g.Yp=function(a,b){var c=!g.Tp(a,b);g.T(a,b,c);return c};
Zp=function(a,b){var c=a(b||uea,void 0,void 0);var d=g.id().createElement("DIV");c=vea(c);d.innerHTML=c;1==d.childNodes.length&&(c=d.firstChild,1==c.nodeType&&(d=c));return d};
vea=function(a){if(!g.xa(a))return String(a);if(a instanceof Io){if(a.Hf===So)return a.ld();if(a.Hf===$p)return La(a.ld())}return"zSoyz"};
aq=function(a,b){Jp.call(this,a,b,"Static","text","")};
bq=function(a){null!=a?Vm(wea,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=Wm(a)?xea(a):null:a=null;return a};
cq=function(a,b,c){if(null==a)return null;c=new g.Vl((null!=c?c:"//www.youtube.com/")+"watch");var d=c.g;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");$l(c,d);return c.toString()};
dq=function(a){a=null!=a?a:{};var b=new g.Vl("//www.youtube.com/gen_204");Wl(b,"https");a=km(a);$l(b,a);return b.toString()};
eq=function(a){return null===a?!1:"pharma"==(new g.Vl(a)).ci().toLowerCase()};
xea=function(a){if(E(g.F(a)))return null;var b=a.match(/^https?:\/\/[^\/]*youtu\.be\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/video\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/watch\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];a=(new g.Vl(a)).g;return mm(a,"v")?a.get("v").toString():mm(a,"video_id")?a.get("video_id").toString():null};
fq=function(a){return E(g.F(a))?null:"//i1.ytimg.com/vi/"+a+"/mqdefault.jpg"};
lq=function(a,b,c){var d={};a=new gq(a,g.t(b)?b:null,g.t(c)?c:null);hq(d,a);b=a.error;d.ERRORCODE=1E3>b.o?b.o:900;iq(d);jq(d,a);kq(d,a);b=a.error.Rb();d.ERROR_MSG=a.error.Ad();d.IMA_ERROR=b;d.INTERNAL_ID="0";a=-1!=(0,g.ib)(yea,b);d.BLOCKING_ERROR=a?"1":"0";d.YT_ERROR_CODE=3;return d};
mq=function(a,b){var c={},d=new gq(null,a,g.t(b)?b:null);hq(c,d);iq(c);jq(c,d);kq(c,d);c.BREAK_TYPE="0";c.SLOT_POS="0";c.MIDROLL_POS="0";if(null!=d.g){var e=d.g.A;if(null!=e&&null!=e.Ph&&null!=e.Ph.video_start_delay)e=e.Ph.video_start_delay,0==e?c.BREAK_TYPE="1":-1==e?c.BREAK_TYPE="3":(c.BREAK_TYPE="2",c.MIDROLL_POS=e);else{e=d.g.C;c.BREAK_TYPE=0==e.B?"1":-1==e.B?"3":"2";var f=d.g.bf();f&&(c.BREAK_TYPE=f);c.SLOT_POS=e.g-1;e=d.g.A;e=null!=e&&null!=e.oc&&null!=e.oc.GET_MIDROLL_POSITION_IN_SEC?e.oc.GET_MIDROLL_POSITION_IN_SEC:
null;f=Math.round(d.g.C.o);e=0<f&&e?e(f):f;0<e&&(c.MIDROLL_POS=e)}}zea(c,d);Aea(c,d);d=a.Ya;for(e=a;null!=e;)d=e.Ka+","+d,e=e.o;c.RWT=d;return c};
gq=function(a,b,c){this.error=a;this.g=b;this.o=c};
nq=function(a,b){null!=b&&(a.VIEWABILITY=b)};
oq=function(a,b,c,d){Bea(c,b)?a[c]=d||"":a[c]=""};
Bea=function(a,b){return(0,g.Ik)(Cea[a],function(a){return null!=b.match(a)})};
hq=function(a,b){a.CACHEBUSTING={toString:function(){return Math.round(1E8*Math.random()+1E8).toString().slice(1)}};
a.ASSETURI={toString:function(){return null!=b.o?b.o.getVideoUrl():""}};
a.TIMESTAMP={toString:function(){return(new Date).toISOString()}}};
Aea=function(a,b){a.AD_CPN={toString:function(){return b.o.De()}};
a.AD_MT={toString:function(){return Math.round(Math.max(0,1E3*b.o.getCurrentTime())).toString()}};
a.MT={toString:function(){return b.o?Math.round(Math.max(0,1E3*b.o.getCurrentTime(1))).toString():"0"}};
a.P_W={toString:function(){return null!=b.o&&null!=b.o.ih()?b.o.ih().width.toString():""}};
a.P_H={toString:function(){return null!=b.o&&null!=b.o.ih()?b.o.ih().height.toString():""}}};
iq=function(a){a.SDKV=Rn(Tn);a.EL="adunit";a.CONN="0";a.WT={toString:function(){return Date.now()}};
a.VED=""};
jq=function(a,b){if(null!=b.g&&null!=b.g.A&&null!=b.g.A.oc&&P.g()){var c=b.g.A.oc;(0,g.H)(Dea,function(b){b in c&&(a[b]=c[b])})}};
kq=function(a,b){if(null!=b.g){a.AD_ID=Eea(b.g);a.AD_SYS=Fea(b.g);var c=pq(b.g);a.AQI=null!=c?c:"";a.AD_V={toString:function(){if(null!=b.o){var a=bq(b.o.getVideoUrl());if(null!=a)return a}return"0"}};
a.FORMAT_NAMESPACE="0";a.FORMAT_TYPE="0";a.FORMAT_SUBTYPE="0";c=[];try{c=qq(b.g).split("_")}catch(d){}1<=c.length&&(a.FORMAT_NAMESPACE=c[0]);2<=c.length&&(a.FORMAT_TYPE=c[1]);3<=c.length&&(a.FORMAT_SUBTYPE=c[2]);a.FINAL="1"}};
zea=function(a,b){null!=b.g&&(a.AD_LEN={toString:function(){var a=b.g.getDuration();return 0>a?"-1":Math.round(1E3*a).toString()}},a.VOL={toString:function(){return null!=b.o?b.o.pj()?"0":Math.round(100*b.o.getVolume()).toString():""}})};
tq=function(a,b,c){var d=null,e=c+b;(0,g.H)(a.F,function(f){if(ro(f.G,"rm")){var k=mq(a);rq(a)&&(k.FILLED_OPPORTUNITY=0);en(a.Y,k);(k=a.A)&&k.afcRmFallback&&(d=f)}else{if(k=f instanceof Jp)0==c&&0==b||f instanceof aq?k=!0:(k=f.jf(),k=k.width<=b&&k.height<=c);k&&(k=0==c&&0==b?0:c-f.jf().height+b-f.jf().width,"Flash"!=f.md()||no)&&(null!=d?k<e?(d=f,e=k):k==e&&("Flash"==d.md()&&"Javascript"==f.md()?d=f:f.g<d.g&&(d=f)):(d=f,e=k))}});
sq(a,d)};
uq=function(a){var b=null;(0,g.H)(a.F,function(a){a instanceof Cp&&(null===b||a.g<b.g)&&(b=a)});
sq(a,b)};
vq=function(a,b,c,d){this.B=a;this.F=b;this.ads=0<this.B.length?this.B:this.F;this.D=c;this.C=this.G=!0;this.o=-1;this.g=null;this.J=this.A=0;this.L=d;this.logger=null};
zq=function(a,b,c){var d=[],e=(0,g.A)(function(a){this.Qf()?this.Ee(function(a){d.push(a);e(null)},function(a){301==a.Rb()?c(hn(wq)):e(a)}):0<d.length?b(d):(null==a&&(a=hn(xq)),1012==a.Rb()&&(a=hn(yq)),c(a))},a);
e(null)};
Gea=function(a,b){a.C=b;a.ads=a.jx(a.B,a.F);a.o=-1};
Hea=function(a,b,c,d){var e=a.D.clone();e.o="";e.g=b.Jb;Aq(a,b,e,c,d)};
Aq=function(a,b,c,d,e){var f=b.getExtension("LocalRedirect");null!=f&&(f=f.A,null!=f&&(c.o=f));a.L.fetch(c,(0,g.A)(function(a){a instanceof vq?(Iea(a,b,this.C&&b.ib,b.ob),d(a)):a instanceof Bq?e(new Jm("adLoadError","Ad source cannot contain playlist response.",2)):e(new Jm("adLoadError","Unknown ad source.",2))},a),e)};
Jea=function(a){var b=0;for(a=a.o;null!=a;)a=a.o,b++;return b};
Kea=function(a,b,c){a.g.Qf()?a.g.Ee((0,g.A)(function(a){this.yo(a,b,(0,g.A)(function(a){this.Qf()?this.Ee(b,c):c(a)},this))},a),(0,g.A)(function(a){Cq(this.ads[this.o],a);
this.g=null;P.g()||301!=a.Rb()?this.Qf()?this.Ee(b,c):c(a):c(a)},a)):(0==a.g.A&&Cq(a.ads[a.o],hn(Dq)),a.g=null,a.Ee(b,c))};
Cq=function(a,b){if(b.A){1012==b.Rb()&&(b=hn(yq));var c=lq(b,a),d=a.Va;P.g()&&303==b.Rb()&&(d=(0,g.Id)(d,function(a){return!Na(a,".youtube.com/api/stats/ads")}));
en(d,c)}};
Nea=function(a,b,c){a.o++;var d=a.ads[a.o];d.fa||d.da?d.da?Hea(a,d,(0,g.A)(function(a){this.g=a;this.Ee(b,c)},a),(0,g.A)(function(a){a=Eq(a);
Cq(d,a);c(a)},a)):Jea(d)>=P.N?(a=hn(Lea,null,String(P.N)),Cq(d,a),c(a)):a.G?a.ut(d,(0,g.A)(function(a){this.g=a;
this.Ee(b,c)},a),(0,g.A)(function(a){a=Eq(a);
Cq(d,a);c(a)},a)):c(hn(Mea)):a.yo(d,b,c)};
Eq=function(a){switch(a.Rb()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=hn(Dq)}return a};
Iea=function(a,b,c,d){(0,g.H)(a.ads,function(a){a.o=b});
Gea(a,c);a.G=d};
Fq=function(a){Qp.call(this);this.o=(0,window.isNaN)(a)?-1:a};
Gq=function(a,b,c,d){vq.call(this,[],a,b,c);this.I=d};
Hq=function(a){var b=a.ads.length-(0>a.o?1:a.o+1);return null!=a.g&&a.g instanceof Gq?b+Hq(a.g):b};
Iq=function(a){g.Vl.call(this,a);this.F=new Pl;a=this.A;var b=a.indexOf(";"),c=null;0<=b?(g.Zl(this,a.substring(0,b)),c=a.substring(b+1)):g.Zl(this,a);Oea(this,c)};
Oea=function(a,b){E(g.F(b))||(0,g.H)(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var c=Ka(a.substring(0,b));a=Ka(a.substring(b+1));b=this.F.get(c);null!=b?g.jb(b,a)||b.push(a):b=[g.F(a)];this.F.set(c,b)}},a)};
Jq=function(a,b){if(E(g.F(b)))return null;var c=a.F.get(b);return null!=c?c:null};
Kq=function(a,b,c){E(g.F(b))||(c=g.J(c,g.F),a.F.set(b,c))};
Lq=function(a,b){var c=[g.F(b)];tb(c,Pea(a));return c.join(";")};
Pea=function(a){var b=Jq(a,"ord");null!=b?E(g.F("ord"))||a.F.remove("ord"):b=[g.F((0,g.G)())];var c=[];(0,g.H)(a.F.Db(),function(a){(0,g.H)(this.F.get(a),function(b){tb(c,a+"="+b)})},a);
tb(c,"ord="+b[0]);Kq(a,"ord",b);return c};
Nq=function(a){if(null==a)return!1;a=new g.Vl(a);var b=a.A;return Ia(a.o,"googleads.g.doubleclick.net")&&Mq("/pagead/(live/)?ads",b)};
Oq=function(a){a=a.g;return null!=a?"bid.g.doubleclick.net"==(new g.Vl(a)).o:!1};
Pq=function(a){if(null==a)return!1;var b=new Iq(a);a=b.o;b=Lq(b,b.A);return!Ia(a,".g.doubleclick.net")&&Ia(a,"doubleclick.net")&&Mq("/(ad|pfad)[x|i|j]?/",b)};
Qq=function(a){if(null==a)return!1;a=new g.Vl(a);var b=a.A;return Ia(a.o,"doubleclick.net")&&Mq("/gampad/(live/)?ads",b)};
Qea=function(a){return Nq(a.g)||Pq(a.g)||Qq(a.g)||Oq(a)};
Rq=function(a){a=a.g;if(null==a)return!1;a=new g.Vl(a);var b=a.A;return Ia(a.o,"youtube.com")&&Mq("/get_midroll_info",b)};
Rea=function(a){a=a.g;if(null==a)return null;a=(new g.Vl(a)).g;return null!=a.get("ms")?g.F(a.get("ms")):null};
Mq=function(a,b){return E(g.F(b))?!1:(new RegExp(a)).test(b)};
Sq=function(a,b,c,d){this.g=a;this.A=b;this.o=c;this.B=null!=d?d:!1};
Tq=function(a,b){a.g.I=b;(0,g.H)(a.A,function(a){Tq(a,b)},a)};
Uq=function(a){return To('<div class="'+R("iv-endcap-background")+'"><div class="'+R("iv-endcap-slot")+'"><div class="'+R("iv-endcap-card")+'"><a class="'+R("iv-endcap-image")+'" href="'+R(jp(a.target))+'" target="_blank"><img src="'+R(kp(a.image))+'"></a><div class="'+R("iv-endcap-text")+'" dir='+bp(a.dir)+'><a href="'+R(jp(a.target))+'" target="_blank"><div class="'+R("iv-endcap-headline")+'">'+Q(a.headline)+'</div><div class="'+R("iv-endcap-description")+'">'+Q(a.description)+'</div></a></div><a class="'+
R("iv-endcap-action")+'" href="'+R(jp(a.target))+'" target="_blank" dir='+bp(a.dir)+">"+(a.action?Q(a.action):'<span class="'+R("iv-endcap-action-icon")+'"></span>')+'</a></div></div><div class="'+R("iv-endcap-bottom")+'"><svg class="'+R("iv-endcap-countdown")+'" viewBox="0 0 20 20"><circle class="'+R("iv-endcap-countdown-inner")+'" r="5" cx="10" cy="10"/><circle class="'+R("iv-endcap-countdown-outer")+'" r="10" cx="10" cy="10"/></svg></div></div>')};
Sea=function(){var a=Ca("Next");return To(""+a)};
Tea=function(){var a=Ca("Previous");return To(""+a)};
Uea=function(a){var b='<div class="'+R("iv-cards-companion")+'"><div class="'+R("iv-cards-attribution")+'"><span class="'+R("yt-badge")+" "+R("yt-badge-ad")+'">'+Vq()+"</span>";if(a.Sv&&a.Ic){var c=Ca("Shop products from {$advertiserName}",{advertiserName:Q(a.Sv)});b+='<a class="'+R("ad-companion-clickthrough")+'" href="'+R(jp(a.Ic))+'" target="_blank">'+c+"</a>"}b+='<div class="'+R("yt-uix-hovercard")+" "+R("ad-info-container")+'"><span class="'+R("yt-uix-hovercard-target")+'" data-position="topright" data-orientation="horizontal"><span class="ad-info-icon"></span></span><div class="'+
R("yt-uix-hovercard-content")+'"><p>'+Q(a.re)+'</p></div></div></div><div class="'+R("iv-cards-slider")+'"><div class="'+R("iv-cards-slider-body")+'"><ul class="'+R("iv-cards-slider-list")+'">';c=a.cards;for(var d=c.length,e=0;e<d;e++){var f=c[e],k='<li class="'+R("iv-cards-slider-item")+'">';f=To('<div class="'+R("iv-cards-slider-unit")+'"><a href="'+R(jp(f.target))+'" target="_blank"><div class="'+R("iv-cards-slider-image")+'"><span class="'+R("iv-cards-image-helper")+'"></span><img src="'+R(kp(f.image))+
'"></div><div class="'+R("yt-ui-ellipsis")+" "+R("yt-ui-ellipsis-4")+" "+R("iv-cards-slider-text")+'">'+Q(f.headline)+'</div><span class="'+R("iv-cards-slider-action")+'">'+Q(f.action)+"</span></a></div>");b+=k+f+"</li>"}b+="</ul></div>"+(a.aT?'<button class="'+R("iv-cards-slider-button")+" "+R("iv-cards-slider-prev")+'" type="button" onclick=";return false;"><span class="'+R("iv-cards-slider-prev-icon")+" "+R("yt-uix-tooltip")+" "+R("yt-sprite")+'" data-tooltip-text="'+R(a.MB)+'" title="'+R(a.MB)+
'"/></button><button class="'+R("iv-cards-slider-button")+" "+R("iv-cards-slider-next")+'" type="button" onclick=";return false;"><span class="'+R("iv-cards-slider-next-icon")+" "+R("yt-uix-tooltip")+" "+R("yt-sprite")+'" data-tooltip-text="'+R(a.CA)+'" title="'+R(a.CA)+'"></span></button>':"")+"</div></div>";return To(b)};
Vea=function(a){return To('<div class="'+R("iv-website-companion")+'"><div class="'+R("yt-uix-hovercard")+" "+R("ad-info-container")+" "+R("iv-website-companion-ad-info")+'"><span class="'+R("yt-uix-hovercard-target")+'" data-position="topright" data-orientation="horizontal"><span class="ad-info-icon"></span></span><div class="'+R("yt-uix-hovercard-content")+'"><p>'+Q(a.re)+'</p></div></div><a href="'+R(jp(a.target))+'" target="_blank">'+(a.bannerImageUrl?'<img class="'+R("iv-website-companion-banner")+
'" src="'+R(kp(a.bannerImageUrl))+'">':"")+'<div class="'+R("iv-website-companion-block")+'"><div class="'+R("iv-website-companion-icon")+'"><img src="'+R(kp(a.oJ))+'"></div><div class="'+R("iv-website-companion-text")+'"><div class="'+R("iv-website-companion-header")+'">'+Q(a.headline)+'</div><div class="'+R("iv-website-companion-desc")+'"><span class="'+R("yt-badge")+" "+R("yt-badge-ad")+'">'+Vq()+'</span><span class="'+R("iv-website-companion-domain")+'">'+Q(a.descriptionText)+'</span></div></div><div class="'+
R("iv-website-companion-action")+" "+R("yt-uix-button-size-default")+" "+R("yt-uix-button-primary")+'">'+(a.Nv?Q(a.Nv):'<span class="'+R("iv-website-companion-action-icon")+'"></span>')+'</div></div><a href="'+R(jp(a.target))+'" target="_blank"></div>')};
Vq=function(){var a=Ca("Ad");return To(""+a)};
Wea=function(a){var b=Wq(a);if(!b)return{};var c=Xq(b);return c?{shoppingCompanionCarouselItemRenderer:{headline:Yq(b.nd()),merchant:Yq(Zq(c)),image:{thumbnails:[{url:$q(b).getImageUrl()}]},priceText:Yq(ar(c)),clickthroughEndpoint:br(cr(dr(a)))}}:{}};
Yq=function(a){return{runs:[{text:a}]}};
br=function(a){a=a||"";return{webNavigationEndpointData:{url:a},urlEndpoint:{url:a,target:"TARGET_NEW_WINDOW"}}};
er=function(a){return{baseUrl:a}};
fr=function(a,b){this.g=a;this.o=b};
vp=function(a){return a.o?-1:a.g};
up=function(a,b){a.o&&(a.o=!1,a.g=a.g*b/100)};
Xea=function(a,b,c){b=c||b;a=a||{};return""+Yo("a",a.hn)(a,null,b)};
Yea=function(a){return'<div class="'+Q("videoAdUi")+'"><div class="'+Q("videoAdUiTopBar")+'"><div class="'+Q("videoAdUiAttributionContainer")+" "+Q("videoAdUiAttributionContainer-gvn")+'"><div class="'+Q("videoAdUiAttribution")+'" '+Q(mp(a.attributionText))+">"+Q(a.attributionText)+'</div></div></div><div class="'+Q("videoAdUiProgressBar")+'" dir="ltr"><div class="'+Q("videoAdUiProgress")+'"></div></div></div>'};
Zea=function(a){return'<div class="'+Q("videoAdUi")+'"><div class="'+Q("videoAdUiTopBar")+'"><div class="'+Q("videoAdUiAttributionContainer")+" "+Q("videoAdUiAttributionContainer-gvn")+'"><div class="'+Q("videoAdUiAttribution")+'" '+Q(mp(a.attributionText))+">"+Q(a.attributionText)+'</div></div><div class="'+Q("videoAdUiLearnMoreText")+" "+Q("videoAdUiLearnMoreText-gvn")+'">'+Q(a.ph)+'<div class="'+Q("videoAdUiLearnMoreIcon")+'"></div></div></div><div class="'+Q("videoAdUiProgressBar")+'" dir="ltr"><div class="'+
Q("videoAdUiProgress")+'"></div></div></div>'};
gr=function(){return To('<div class="'+R("videoAdUiPreSkipContainer")+'"><div class="'+R("videoAdUiPreSkipButton")+'"><div class="'+R("videoAdUiPreSkipText")+'"></div><div class="'+R("videoAdUiPreSkipThumbnail")+'" aria-hidden="true"></div></div></div>')};
$ea=function(){return To('<div class="'+R("videoAdUiPreSkipContainer")+" "+R("videoAdUiPreSkipContainerPlainThumbnailCountdown")+'"><div class="'+R("videoAdUiPreSkipButton")+'"><div class="'+R("videoAdUiPreSkipText")+'">You can skip to video in</div><div class="'+R("videoAdUiPreSkipThumbnail")+'"><div class="'+R("videoAdUiPreSkipThumbnailCountdown")+'"><span class="'+R("videoAdUiPreSkipTextTimeLeft")+'"></span></div></div></div></div>')};
hr=function(a){a=a||{};return""+Ca("Your video will begin in {$xSeconds}",{xSeconds:Q(a.Mg)})};
afa=function(a){return To('<div class="'+R("videoAdUiBrandPrecapContainer")+" "+R("html5-stop-propagation")+'"><div class="'+R("videoAdUiBrandPrecapContent")+'"><div class="'+R("videoAdUiBrandPrecapImageContainer")+'" aria-hidden="true"><img class="'+R("videoAdUiBrandPrecapBrandImage")+'" src="'+R(kp(a.mH))+'"></div><div class="'+R("videoAdUiBrandPrecapTextContainer")+'"><div class="'+R("videoAdUiBrandPrecapBrandName")+'">'+Q(a.oH)+'</div><div class="'+R("videoAdUiBrandPrecapBrandMessage")+'">'+Q(a.nH)+
"</div></div></div></div>")};
bfa=function(a){return To('<div class="'+R("videoAdUiBrandPrecapContainer")+" "+R("html5-stop-propagation")+'"><img class="'+R("videoAdUiBrandPrecapAutoGenImage")+'" src="'+R(kp(a.lH))+'"></div>')};
cfa=function(a){a=a||{};return To('<div class="'+R("videoAdUiBrandInteractionUnit")+" "+R("html5-stop-propagation")+'"><span class="'+R("videoAdUiBrandInteractionPreMessageText")+'">'+Q(a.preMessageText)+'</span><div class="'+R("videoAdUiBrandInteractionButtonContainer")+'"><button class="'+R("videoAdUiBrandInteractionButton")+" "+R("videoAdUiBrandInteractionLikeButton")+'"><div class="'+R("videoAdUiBrandInteractionIcon")+" "+R("videoAdUiBrandInteractionLikeIcon")+'"></div></button><span class="'+
R("videoAdUiBrandInteractionMessageBox")+" "+R("videoAdUiLikeMsg")+'"></span></div><div class="'+R("videoAdUiBrandInteractionButtonContainer")+'"><button class="'+R("videoAdUiBrandInteractionButton")+" "+R("videoAdUiBrandInteractionDislikeButton")+'"><div class="'+R("videoAdUiBrandInteractionIcon")+" "+R("videoAdUiBrandInteractionDislikeIcon")+'"></div></button><span class="'+R("videoAdUiBrandInteractionMessageBox")+" "+R("videoAdUiDislikeMsg")+'"></span></div></div>')};
dfa=function(a){return To('<div class="'+R("videoAdUiBrandInteractionUnit")+" "+R("videoAdUiBrandInteractionUnitConfirmationMsg")+" "+R("html5-stop-propagation")+'"><div class="'+R("videoAdUiBrandInteractionPostMessageText")+'">'+Q(a.postMessageText)+"</div></div>")};
efa=function(a){a=a||{};return To('<div class="'+R("videoAdUiReasonToWatchBox")+" "+R("html5-stop-propagation")+'"><div class="'+R("videoAdUiReasonToWatchText")+'">'+Q(a.NS)+"</div></div>")};
ffa=function(a){a=a||{};return To('<div class="'+R("videoAdUiReasonToWatchBox")+" "+R("videoAdUiReasonToWatchDynamicBox")+" "+R("html5-stop-propagation")+'"><div class="'+R("videoAdUiReasonToWatchDynamicPrefixText")+'">'+Q(a.MS)+'</div><div class="'+R("videoAdUiReasonToWatchDynamicTopic")+'">'+Q(a.OS)+"</div></div>")};
gfa=function(a){return'<div class="'+Q("videoAdUiSkipContainer")+" "+Q("html5-stop-propagation")+'"><button class="'+Q("videoAdUiSkipButton")+" "+Q("videoAdUiAction")+'">'+Q(a.Nt)+'<div class="'+Q("videoAdUiSkipIcon")+'"></div></button></div>'};
hfa=function(a){return'<div class="'+Q("videoAdUiSkipContainer")+" "+Q("html5-stop-propagation")+'"><button class="'+Q("videoAdUiSkipButton")+" "+Q("videoAdUiAction")+'"><div class="'+Q("videoAdUiSkipButtonExperimentalText")+'">'+Q(a.Nt)+'</div><div class="'+Q("videoAdUiSkipIcon")+'"></div></button></div>'};
ifa=function(a){return'<div class="'+Q("videoAdUiSkipContainer")+" "+Q("html5-stop-propagation")+" "+Q("videoAdUiSkipContainerWithThumbnail")+'"><div class="'+Q("videoAdUiSkipText")+'">'+Q(a.Nt)+'</div><button class="'+Q("videoAdUiSkipButton")+" "+Q("videoAdUiAction")+" "+Q("videoAdUiSkipButtonWithThumbnail")+'"><div class="'+Q("videoAdUiSkipIconContainer")+'"><div class="'+Q("videoAdUiSkipIcon")+'"></div></div></button></div>'};
ir=function(a){var b="";a=2<=a.Kg&&1<=a.tg?Ca("Ad {$adPosition} of {$totalAds} {$timeLeft}",{adPosition:Q(a.tg),totalAds:Q(a.Kg),timeLeft:Q(a.Ig)}):Ca("Ad {$timeLeft}",{timeLeft:Q(a.Ig)});return b+=a};
jr=function(a){var b="";a=2<=a.Kg&&1<=a.tg?Ca("{$adPosition} of {$totalAds} {$timeLeft}",{adPosition:Q(a.tg),totalAds:Q(a.Kg),timeLeft:Q(a.Ig)}):Ca("{$timeLeft}",{timeLeft:Q(a.Ig)});return b+=a};
lr=function(){var a=kr(),b=To("</a>"),c="";a=Ca("Visit Google's {$beginFormat}Ad Settings{$endFormat} to learn more about how ads are targeted or to opt out of personalized ads.",{beginFormat:Q(a),endFormat:Q(b)});c+="<div class='"+R("videoAdUiAdSettingsLongTooltip")+"'>"+a+"</div>";return To(c)};
kr=function(){return To('<a href="https://www.google.com/settings/ads/onweb" target="_blank">')};
nr=function(a){return To("<div class='"+R("videoAdUiPopupBackground")+"'><div class='"+R("videoAdUiPopupCloseIcon")+'\'><svg height="100%" viewBox="0 0 24 24" width="100%"><path 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"></path></svg></div><div class=\''+R("videoAdUiPopupPositioner")+"'><form class='"+R("videoAdUiPopupFrame")+"'><div class='"+R("videoAdUiPopupHeading")+" "+R("videoAdUiHideIfEmpty")+"'>"+Q(a.heading)+"</div><div class='"+
R("videoAdUiPopupText")+"'>"+Q(a.message)+"</div><div class='"+R("videoAdUiPopupButtons")+"'>"+Q(a.buttons)+"</div></form></div></div>")};
jfa=function(a){for(var b="<ul class='"+R("videoAdUiWhyThisAdReasons")+" "+R("videoAdUiHideIfEmpty")+"'>",c=a.targetingReasons,d=c.length,e=0;e<d;e++)b+="<li>"+Q(c[e])+"</li>";b+=(null!=a.learnMore?"<li>"+Q(a.learnMore)+" <a href='https://support.google.com/ads/answer/7029660#match' target='_blank'>Learn more</a></li>":"")+"</ul><div class='"+R("videoAdUiWhyThisAdGenericMessage")+"'>"+Q(a.Jq)+"</div><a class='"+R("videoAdUiWhyThisAdMute")+" "+R("videoAdUiHideIfEmpty")+"'>"+Q(a.mute)+"</a><a class='"+
R("videoAdUiWhyThisAdControl")+" "+R("videoAdUiHideIfEmpty")+"' href='https://www.google.com/settings/ads/onweb' target='_blank'>"+Q(a.control)+"</a>";a=""+nr({heading:or(""+Q(a.heading)),message:or(b),buttons:or("<button class='"+R("videoAdUiWhyThisAdCloseButton")+" "+R("videoAdUiPopupDefaultButton")+"'>"+Q(a.close)+"</button>")});return To(a)};
kfa=function(a){for(var b=""+Q(a.question),c=a.options,d=c.length,e=0;e<d;e++){var f=c[e];b+="<label for='"+R("videoAdUiMuteOption")+R(e)+"'><input type='radio' id='"+R("videoAdUiMuteOption")+R(e)+"' name='"+R("videoAdUiMuteOption")+"' class='"+R("videoAdUiMuteOption")+R(e)+"'/>"+Q(f)+"</label>"}a=""+nr({heading:or(Q(a.heading)+" <a class='"+R("videoAdUiMuteUndo")+"'>"+Q(a.undo)+"</a>"),message:or(b),buttons:or("<button class='"+R("videoAdUiMuteCancel")+" "+R("videoAdUiPopupButton")+"'>"+Q(a.cancel)+
"</button><button class='"+R("videoAdUiMuteConfirm")+" "+R("videoAdUiPopupDefaultButton")+"'>"+Q(a.confirm)+"</button>")});return To(a)};
lfa=function(a){var b=String(""+a.heading);return To(nr({heading:b?new Jo(b,void 0):"",message:or(""+Q(a.message)),buttons:or("<button class='"+R("videoAdUiMuteCancel")+" "+R("videoAdUiPopupButton")+"'>"+Q(a.cancel)+"</button><button class='"+R("videoAdUiMuteConfirm")+" "+R("videoAdUiPopupDefaultButton")+"'>"+Q(a.confirm)+"</button>")}))};
mfa=function(){return To("<div class='"+R("videoAdUiMuteToggleButton")+"'><div class='"+R("videoAdUiMutedIcon")+'\'><svg width="100%" height="100%" viewBox="0 0 16 16"><path d="M2.398,5.5496307 L0,5.5496307 L0,10.4483665 L2.4,10.4483665 L7,15.5093253 L7,0.4886719 L2.398,5.5496307 Z" fill="#fff"></path><path d="M9.6314915,5.9285684 L10.6837982,4.9386188 L12.8157457,6.9442323 L14.9476933,4.9386188 L16,5.9285684 L13.8680525,7.9341818 L16,9.9397952 L14.9476933,10.9297447 L12.8157457,8.9241313 L10.6837982,10.9297447 L9.6314915,9.9397952 L11.7634391,7.9341818 L9.6314915,5.9285684 Z" fill="#fff"></path></svg></div><div class=\''+
R("videoAdUiUnmutedIcon")+'\'><svg width="100%" height="100%" viewBox="0 0 16 16"><path d="M2.398,5.5496307 L0,5.5496307 L0,10.4483665 L2.4,10.4483665 L7,15.5093253 L7,0.4886719 L2.398,5.5496307 Z" fill="#fff"></path><path d="M9,11.4457379 C10.7427023,10.9390412 12,9.5931906 12,7.9969959 C12,6.4008011 10.7427023,5.0549506 9,4.5492552 L9,11.4457379 Z" fill="#fff"></path><path d="M14.2494529,8 C14.2494529,11.0361747 12.0131291,13.5866817 9,14.3156841 L9,16 C12.9934354,15.2419577 16,11.9484291 16,8 C16,4.0505695 12.9934354,0.7570409 9,0 L9,1.6833146 C12.0131291,2.4123169 14.2494529,4.9638253 14.2494529,8 L14.2494529,8 Z" fill="#fff"></path></svg></div></div>')};
pr=function(a,b,c){Jp.call(this,"1",nfa,"Html",null,"dummy");this.F=0;this.sa=a.length;Mp(this,new g.nm(this));this.O=ofa(a,b);this.Ta=g.I("iv-cards-slider-list",this.O);if(this.V=g.I("iv-cards-slider-prev",this.O))this.o.U(this.V,"click",this.Na),g.O(this.V,!1);(this.ea=g.I("iv-cards-slider-next",this.O))&&this.o.U(this.ea,"click",this.Ka);a=g.I("ad-companion-clickthrough",this.O);this.o.U(this.O,"click",g.Aa(function(a,b,c){c.target!=a&&en(b)},a,c))};
ofa=function(a,b){var c=(0,g.J)(a,function(a){var b=Wq(a),c=Xq(b);a=dr(a);return{headline:b.nd(),description:qr(b,"description"),image:$q(b).getImageUrl(),action:ar(c),target:cr(a),merchant:Zq(c)}}),d=3<a.length;
return Zp(Uea,{cards:c,Sv:c[0].merchant,CA:Sea(),MB:Tea(),re:lr(),Ic:b,aT:d})};
rr=function(a){a.Ta.style.left=125*-a.F+"px";a.V&&g.O(a.V,0<a.F);a.ea&&g.O(a.ea,a.F<a.sa-3)};
ur=function(a){Jp.call(this,"1",pfa,"Html",null,"website_actions_companion");Mp(this,new g.nm(this));var b=a.g(),c=b&&b.zg(),d=b&&b.un();a=dr(a);b={headline:b&&b.nd()||"",oJ:c&&c.getImageUrl()||"",bannerImageUrl:d&&d.getImageUrl()||"",Nv:a&&sr(a)||"",descriptionText:b&&tr(b)||"",target:a&&cr(a)||"",re:lr()};this.F=Zp(Vea,b)};
qfa=function(){if(!g.sd)return!1;try{return new window.ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
xr=function(a,b){if(b&&!a)throw Error("Can't create document with namespace and no root tag");if(window.document.implementation&&window.document.implementation.createDocument)return window.document.implementation.createDocument(b||"",a||"",null);if(vr){var c=wr();if(c)return a&&c.appendChild(c.createNode(1,a,b||"")),c}throw Error("Your browser does not support creating new documents");};
g.yr=function(a){if("undefined"!=typeof window.DOMParser)return(new window.DOMParser).parseFromString(a,"application/xml");if(vr){var b=wr();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
zr=function(a){var b=a.xml;if(b)return b;if("undefined"!=typeof window.XMLSerializer)return(new window.XMLSerializer).serializeToString(a);throw Error("Your browser does not support serializing XML documents");};
wr=function(){var a=new window.ActiveXObject("MSXML2.DOMDocument");a.resolveExternals=!1;a.validateOnParse=!1;try{a.setProperty("ProhibitDTD",!0),a.setProperty("MaxXMLSize",2048),a.setProperty("MaxElementDepth",256)}catch(b){}return a};
Ar=function(a){return hn(rfa,null,a.parentNode.nodeName,a.nodeName)};
Br=function(a){return hn(sfa,null,a.parentNode.nodeName,a.nodeName)};
Cr=function(a){var b=xr(a.tagName,a.namespaceURI),c=g.Ld(b);c||(c=b.createElementNS(a.namespaceURI,a.tagName),b.appendChild(c));for(var d=0;d<a.attributes.length;d++){var e=a.attributes.item(d);c.setAttribute(e.name,e.value)}for(;d=a.firstChild;)c.appendChild(d);return b};
Dr=function(a,b){return null!=a?(0,g.Id)(g.Jd(a),function(a){return a.nodeName==b}):[]};
Er=function(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null};
Fr=function(a,b){if(null==a)return null;for(var c="",d=0,e=a.childNodes.length;d<e;d++){var f=a.childNodes[d];switch(f.nodeType){case 4:case 3:c+=f.nodeValue}}c=Ta(c);b&&(c=Na(c,"&")?"document"in v?naa(c):oaa(c):c);return c};
Gr=function(a,b,c,d){if(null!=a){a=g.Jd(a);for(var e=0,f=a.length;e<f;e++){var k=a[e];if(k.nodeName!=b)throw Ar(k);c.call(d,k)}}};
Hr=function(a){a=g.F(a);return E(a)?window.NaN:Za(a)};
Ir=function(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new In(0,0,0,Za(c[0]),Za(c[1]),Za(c[2])),60*(60*(24*c.days+c.g)+c.o)+c.A}return null!=b?b:-1};
Kr=function(a,b){var c=g.F(a);if(!E(c))switch(c.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1};
Mr=function(a,b){if(b)return a;var c=g.F(a);E(c)?c=a:tfa.test(c)&&(Na(c,"/pagead/adview")||Na(c,"/pagead/conversion")||Na(c,"/gampad/live/conversion")?ufa(c):Na(c,"/pcs/view")&&vfa(c))?(c=Lr(c,"&sdkv="+Rn(Tn)),Tn.aa&&(c=Lr(c,"&ssss=gima"))):c=a;return c};
Lr=function(a,b){var c=a.indexOf("&adurl=");return-1!=c?paa(a.substr(0,c),b,a.substr(c,a.length)):a+b};
ufa=function(a){a=a||"";return(0,g.Nr)(wfa,function(b){return 0<=Qg(a,0,b,a.search(Rg))})};
vfa=function(a){a=a||"";return(0,g.Nr)(xfa,function(b){return 0<=Qg(a,0,b,a.search(Rg))})};
Qr=function(a,b,c){var d=new op;Gr(a,"Tracking",function(a){var e=Er(a,"event"),k=Mr(Fr(a),b);Or(k)&&null!=e&&(null!=c&&(k=c(e,k)),"progress"==e?(a=Er(a,"offset"),a=Pr(a),null!=a&&tp(d,e,k,a)):tp(d,e,k))});
return d};
yfa=function(a){if(E(g.F(a)))return null;a=new g.Vl(a);if("thismessage"!=a.B||"extensions"!=a.o)return null;a=a.A;if(!g.Ha(a,"/"))return null;a=a.substr(1);return E(g.F(a))?null:a};
Pr=function(a){if(E(g.F(a)))return null;var b=a.indexOf("%");if(0<b){if(a=Number(a.substr(0,b)),!(0,window.isNaN)(a)&&0<=a)return new fr(a,!0)}else if(a=Ir(a),0<=a)return new fr(a,!1);return null};
Or=function(a){if(E(g.F(a)))return!1;try{new g.Vl(a)}catch(b){return!1}return!0};
Rr=function(a,b){Qp.call(this);this.o=a;this.A=b};
Sr=function(){};
Tr=function(a,b){Qp.call(this,b);this.o=a};
Ur=function(a){Qp.call(this);this.o=a};
Wr=function(a,b,c,d,e,f,k,l,m,n,q,r,w,z,B,C,N,da){this.sa=a;this.pa=b;this.V=c;this.Ab=e;this.Na=(0,window.isNaN)(m)||""==m||0==m?-1:m;this.Va=n?g.sb(n):[];this.Y=q?g.sb(q):[];this.F=r?g.sb(r):[];this.ea=[];this.N=[];this.L=null;this.aa=[];this.Fa=!0;this.o=this.g=this.I=null;this.G=new Pl(z);this.da=null!=da;this.ib=(this.fa=null!=B)?C||!1:!1;this.ob=this.nK?N||!1:!1;this.Ib=g.F(B);this.Jb=g.F(da);this.ub=this.A=null;this.C=new Xda;this.ba=new g.dd(0,0);this.J=String(Math.floor(1E9*Math.random()));
this.Ta=this.ha=this.O=this.D=null;this.Ya=(0,g.G)();this.Ra=this.Ka=0;this.bb=this.ra=!1;this.B=[];this.ka=null;this.Aa=!1;(0,g.H)(this.F,function(a){a.I=this},this);
Vr(this,w)};
qq=function(a){var b=a.getExtension("AdFormat");if(null!=b&&Ia(b.o+"_"+b.A+"_"+b.B,"2_4"))return b.o+"_"+b.A+"_"+b.B;b=Xr(a);b=Yr(a,Zr)?"14":ro(b,"hideMaster")||ro(b,"blockAllAds")?"3":a.Wb()?$r(a)?"2_3":a.isSkippable()?as(a)?"2_1":"2_2":"2":"1";return zfa(a)+"_"+b};
zfa=function(a){if(rq(a))return 4;if(Yr(a,Zr))return 14;if(Yr(a,Afa))return 17;if(Yr(a,Bfa))return 15;if(bs(a,Cfa)||bs(a,cs))return 1;var b=Rm();return b&&b.g("fix_petra_ad_foramt")&&(b=ds(a),null!=b&&(Qq(b)||Pq(b)))?1:es(a)?2:0};
fs=function(a){return null!=a.pa?a.pa:""};
gs=function(a){return null!=a.o?g.rb(gs(a.o),a.Va):a.Va};
hs=function(a){return null!=a.o?g.rb(hs(a.o),a.Y):a.Y};
is=function(a){return null!=a.o?g.rb(a.N,is(a.o)):a.N};
Xr=function(a){return null!=a.g?a.g.G:{}};
Dfa=function(a){var b={};(0,g.H)(a.F,function(a){a=a.G;for(var c in a)b[c]=a[c]});
return b};
js=function(a){return null!=a.g?a.g.bb:""};
ks=function(a,b){var c=[];(0,g.H)(a.G.sb(),function(a){tb(c,Rp(a,b))});
return c};
sq=function(a,b){a.g=b;a.ba=new g.dd(0,0);if(null!=a.g){a.g instanceof Jp&&(a.ba=a.g.jf());var c=a.o;if(null!=c){var d=Ap(a.g,c)||Ap(a.g,c,!0);sq(c,d)}}P.g()&&Efa(a)&&g.kb(is(a))?P.g()&&P.A?(c=a.B,g.kb(c)?c={}:(d=Wq(c[0])&&Xq(Wq(c[0]))&&Zq(Xq(Wq(c[0])))||"",d=Ca("Shop products from {$advertiserName}",{advertiserName:Q(d)}),d=To(""+d),c={shoppingCompanionCarouselRenderer:{shopText:Yq(d.toString()),itemList:{horizontalListRenderer:{items:(0,g.J)(c,Wea),visibleItemCount:3,webHorizontalListRendererExtensionData:{nextButton:{buttonRenderer:{style:"STYLE_DEFAULT",
size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"}}},previousButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"}}}}}},adBadgeText:Yq(Vq().toString()),clickToAdvSiteEndpoint:br(ls(a)),clickTrackingEndpoints:[{loggingUrls:(0,g.J)(ks(a,"companionClick"),er)}],impressionEndpoints:[{loggingUrls:(0,g.J)(ks(a,"companionImpression"),er)}]}}),a.I=c):Ffa(a,a.B):P.g()&&g.kb(is(a))&&!Rm().g("website_actions_holdback")&&ms(a,a.B)};
ns=function(a){return null!=a.sa?a.sa:""};
ps=function(a){if(null==a.o||os(a.o.V))return[];var b=[ns(a.o)];tb(b,ps(a.o));return b};
Eea=function(a){var b=ps(a).reverse();b.push(ns(a));return b};
qs=function(a){if(null==a.o||os(a.o.V))return[];var b=a.o.g;null!=b?(b=b.ha,b=null!=b?b:""):b="";b=[b];tb(b,qs(a.o));return b};
rs=function(a){if(null==a.o||os(a.o.V))return[];var b=[fs(a.o)];tb(b,rs(a.o));return b};
ts=function(a){if(a.o){var b=ts(a.o);if(b)return b}return(a=a.getExtension("metrics"))?a.o:null};
pq=function(a){if(a.o){var b=pq(a.o);if(b)return b}return P.g()?(a=a.getExtension("viral"))?a.o:null:(a=a.getExtension("metrics"))?a.A:null};
Fea=function(a){var b=rs(a).reverse();b.push(fs(a));return b};
os=function(a){return"YT:ADSENSE"==a||"YT:DOUBLECLICK"==a};
us=function(a){if(null==a.o)return[a.V];var b=us(a.o);b.push(a.V);os(b[0])&&b.shift();return b};
vs=function(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.ce()?a.ce():-1};
ws=function(a){if(-1!=a.Na)return a.Na;a=a.getExtension("pod");return null!=a&&-1!=a.o?a.o:-1};
xs=function(a){a.Aa||(a.Aa=!0,a.ka.J++,null!=a.o&&xs(a.o))};
ys=function(a){if(a.ka instanceof Gq){var b=a.ka;if(0<Hq(b))return b}return null!=a.o?ys(a.o):null};
zs=function(a,b,c,d){a=is(a);return mo(new ko(new g.dd(b,c),d),a)};
As=function(a){var b=a.A.mj,c=a.A.lj;if(!b||!c)if(a=a.A.g?Sg(a.A.g,"sz"):null)a=a.split("x"),2==a.length&&(b=(0,window.parseInt)(a[0],10)||0,c=(0,window.parseInt)(a[1],10)||0);return new g.dd(b,c)};
Gfa=function(a,b){var c=g.eb(a.aa,function(a){return 4==a.Yb()&&Bs(a.Ye())});
if(c){var d=c.g();if(!d.zg().getImageUrl()){var e=new Cs;Ds(e,b.channelIconThumbnailUrl);d.zg=function(){return e}}var f=Rm();
if(!d.nd()||f.g("website_actions_suppress_advertiser_supplied_text"))d.nd=function(){return b.authorName};
f.g("website_actions_suppress_advertiser_supplied_text")&&dr(c).setTitle("");c.g=function(){return d}}};
Hfa=function(a){var b=(0,g.Id)(a,function(a){return Bs(a.Ye())});
0==b.length&&0<a.length&&Rm().g("enable_ad_video_end_renderers")&&(b=a.slice(1,2));return b};
Ffa=function(a,b){var c=(0,g.Id)(b,function(a){return Es(a.Ye())});
g.kb(c)&&(c=b);c=new pr(c,ls(a),ks(a,"companionClick"));c.I=a;c.D=!0;Fs(a,new Sq(c,[],null,!0))};
Ifa=function(a,b){var c=g.eb(a.B,function(a){return 4==a.Yb()&&Es(a.Ye())});
if(!c)return null;var d=c.g();if(!d.zg().getImageUrl()){var e=new Cs;Ds(e,b.channelIconThumbnailUrl);d.zg=function(){return e}}var f=Rm();
if(!d.un().getImageUrl()){var k=new Cs;if(f.g("website_actions_use_companion_image_as_banner")){var l=g.eb(is(a),function(a){return"Image"==a.md()});
Ds(k,l&&l.g.A||b.g)}else Ds(k,b.g);d.un=function(){return k}}if(!d.nd()||f.g("website_actions_suppress_advertiser_supplied_text"))d.nd=function(){return b.authorName};
f.g("website_actions_suppress_advertiser_supplied_text")&&dr(c).setTitle("");c.g=function(){return d};
return c};
ms=function(a,b){var c=g.eb(b,function(a){return 4==a.Yb()&&Es(a.Ye())});
if(c){var d=c.g(),e=d&&d.zg().getImageUrl(),f=d&&d.un().getImageUrl(),k=d&&d.nd();e&&f&&k&&(P.A?(c=dr(c),a.I={actionCompanionRenderer:{headline:k,iconImageUrl:e,bannerImageUrl:f,actionTitle:c&&sr(c)||void 0,descriptionText:d&&tr(d)||void 0,target:c&&cr(c)||void 0}}):(d=new ur(c),d.I=a,d.D=!0,Fs(a,new Sq(d,[],null,!0))))}};
Jfa=function(a){if(!a.A||Gs(a)&&!Yr(a,["ADSENSE/ADX"]))return[];var b=As(a);if(0>=b.width||0>=b.height)return[];var c=new ho;c.creativeType="All";c.A="All";c.B="SelectNearMatch";c.g=40;var d=zs(a,b.width,b.height,c);if(!g.kb(d))return d;c.o="ResizeSmaller";d=(0,g.Id)(is(a),function(a){return a.g.Wk()},a);
return mo(new ko(new g.dd(b.width,b.height),c),d)};
Is=function(a){if(g.kb(a.aa))return!1;var b=Rm();if(15>Hs(a))return!1;var c=Kfa,d=a.aa[0].Yb();if(d==c.Hv){var e=a.aa[0].g();a=e&&e.zg().getImageUrl();e=e&&e.nd();if(!a||!e)return!1}return b.g("enable_ad_video_end_renderers")&&d==c.BG||!b.g("website_actions_holdback")&&!b.g("website_actions_endcap_holdback")&&d==c.Hv};
Lfa=function(a){var b=null,c=0;(0,g.H)(Jfa(a),function(a){var d=As(this);d=!a.g.Wk()||a.Gb()<=d.width&&a.getHeight()<=d.height?a.Ln():oo(a.Ln(),d);d=d.width*d.height;d>c&&(c=d,b=a)},a);
return b};
Js=function(a,b){return b||null==a.o?a.ea:g.rb(a.ea,Js(a.o))};
Vr=function(a,b){a.ea=b?g.sb(b):[];(0,g.H)(a.ea,function(a){tb(this.N,g.sb(a.g))},a);
(0,g.H)(a.N,function(a){Tq(a,this)},a);
if(P.g()&&(a.Wb()&&(a.N=(0,g.Id)(a.N,function(a){return 60>=a.getHeight()})),P.A)){var c=a.ea[0];
if((c=c&&c.g[0])&&"Static"===c.g.N){var d=c.g.hf(),e=c.g.L,f=c.Gb(),k=c.getHeight();a.I={imageCompanionRenderer:{url:c.g.A,clickThroughUrl:d,clickTrackingUrls:e,width:f,height:k}}}}};
Ks=function(a,b){return(0,g.Ik)(a.F,function(a){return a instanceof Cp&&"linear"==b||a instanceof Jp&&"nonlinear"==b?!0:!1})};
Ls=function(a){var b=a.g;return Gs(a)&&null!=b&&b instanceof Jp&&(90<a.ba.height||null!=a.A&&a.A.cj)};
Ms=function(a,b){if(null==b)return null;var c=b.getExtension("adx");return null!=c?c:Ms(a,b.o)};
Ns=function(a){var b=Ms(a,a.o);if(null!=b){if("skippable"==b.o)return b.A;if("nonskippable"==b.o)return null}b=null;var c=new fr(5,!1),d=Mfa(a);"implicit"==d&&(b=c);var e=a.g;null==b&&null!=e&&e instanceof Cp&&(b=e.D);null!=b||"explicit"!=d||(b=c);return P.g()&&a.Wb()&&null!=b?(b=Rm().g("enable_skip_button_offset_mutation")?b:c,(0,window.isNaN)(a.A.C)?b:new fr(a.A.C,!1)):b};
Mfa=function(a){if(null!=g.eb(a.G.sb(),function(a){return!g.kb(Rp(a,"skip"))}))return"implicit";
var b=a.G.get("DFP");if(b instanceof Tr)switch(b.o){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.g;return P.g()&&null!=a&&(a=a.rj,null!=a&&!g.kb(rp(a,"skip")))?"explicit":"none"};
Os=function(a){a=ds(a);if(null!=a){var b;(b=Nq(a)||Qq(a)||Pq(a))||(null!=a?(a=(new g.Vl(a)).o,b=Ia(a,"viral.adsense.net")):b=!1);a=b}else a=!1;return a};
as=function(a){if(null!=a.pa&&null!=a.A){var b;(b=P.g())||!(b=Os(a)||!1)||(b=Gs(a)&&!Yr(a,["ADSENSE/ADX"]))||(Yr(a,cs)?(b=a.G.get("DFP"),b=null!=b?"InstreamSelect"==b.o:!1):b=!1);a=b||a.o&&a.o.da&&Os(a.o)?!0:!1}else a=!1;return a};
ls=function(a){return null===a.g?null:a.g.hf()};
Hs=function(a){return null!=a.g?a.g.getDuration():-1};
Ps=function(a){return null===a.L?Is(a)?7:0:10};
Qs=function(a){return null===a.g?null:a.g.Hr()};
Rs=function(a){return null===a.g?null:a.g.Gr()};
Gs=function(a){return Yr(a,Ss)||Yr(a,["ADSENSE-VIRAL"])};
rq=function(a){return null!=a.o&&rq(a.o)||Yr(a,Nfa)};
$r=function(a){var b=Qs(a);return Yr(a,["402"])||g.u(b)&&null!==b.match("//s0.2mdn.net/instream/html5/survey/survey.html")};
Ts=function(a){return Gs(a)&&as(a)&&!a.isBumper()&&!E(g.F(a.D))&&null!==Ns(a)&&0<vp(Ns(a))};
es=function(a){return bs(a,Ss)||bs(a,["402"])};
Us=function(a){a=a.getExtension("InfoCards");return null!=a?a.o:null};
Vs=function(a){a=a.getExtension("InfoCardsTracking");return null!=a?a.o:null};
Yr=function(a,b){return null!=a.pa?g.jb(b,a.V):!1};
bs=function(a,b){for(var c=us(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(g.jb(b,c[d]))return!0;break}return!1};
Fs=function(a,b){a.N=[b]};
Efa=function(a){return a.Wb()&&0<a.B.length&&(0,g.Nr)(a.B,function(a){return 1==a.Yb()})};
Ws=function(a){return 0<a.B.length&&(0,g.Nr)(a.B,function(a){return 4==a.Yb()})};
ds=function(a){if(null==a.A)return null;var b=a.A.g;null!=b&&Ia(b,"/PrefetchedAd")&&null!=a.o&&(a=a.o.G.get("LocalRedirect"),b=null!=a?a.bh():null);return b};
Xs=function(a,b){g.Ef.call(this);this.g=a;this.xe=new g.nm(this);g.M(this,this.xe);this.xe.U(b,["companion_impression","companion_click"],this.o)};
Ys=function(){g.Ef.call(this);this.D=this.I=this.L=this.F=!1;this.g=0;this.A=[];this.G=!1;this.O=this.N=window.Infinity;this.o=0;this.C=!1;this.B=new g.nm(this);this.J={}};
Ofa=function(a){Zs(a);!(a.Yh instanceof g.Ef)&&"ontouchstart"in window.document.documentElement&&sn()?(a.J={touchstart:(0,g.A)(a.KR,a),touchmove:(0,g.A)(a.uJ,a),touchend:(0,g.A)(a.IR,a)},g.Kb(a.J,function(a,c){this.Yh.addEventListener(c,a,!1)},a)):a.B.U(a.Yh,"click",a.ly)};
Zs=function(a){a.B.Ca(a.Yh,"click",a.ly);g.Kb(a.J,function(a,c){this.Yh.removeEventListener(c,a,!1)},a);
a.J={}};
Pfa=function(a,b){a.A=[];(0,g.H)(b,function(a){g.nb(this.A,a.identifier)},a)};
$s=function(a,b){return(0,g.Ik)(b,function(a){return g.jb(this.A,a.identifier)},a)};
at=function(a){if(!Qfa.test(a))throw Error("'"+a+"' is not a valid alpha hex color");5==a.length&&(a=a.replace(Rfa,"#$1$1$2$2$3$3$4$4"));a=a.toLowerCase();return[(0,window.parseInt)(a.substr(1,2),16),(0,window.parseInt)(a.substr(3,2),16),(0,window.parseInt)(a.substr(5,2),16),(0,window.parseInt)(a.substr(7,2),16)/255]};
bt=function(a){var b=a.slice(0);b[3]=Math.round(1E3*a[3])/1E3;return"rgba("+b.join(",")+")"};
g.ct=function(){g.Ef.call(this);this.g=0;this.endTime=this.startTime=null};
dt=function(a,b){g.ua(b)||(b=[b]);var c=(0,g.J)(b,function(a){return g.u(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});
g.nh(a,"transition",c.join(","))};
et=function(a,b,c,d,e){g.ct.call(this);this.o=a;this.C=b;this.F=c;this.A=d;this.D=g.ua(e)?e:[e]};
ft=function(a,b){g.Ef.call(this);this.F=b;this.D=a;this.Ei=null;this.B=new g.nm(this);g.M(this,this.B);this.o=new Ys;g.M(this,this.o);var c=ze(He(a.g),Re,6);this.C=(this.g=null!=K(c,5)&&!!K(c,5))||null==K(c,7)?"#000000FF":K(c,7);this.A=this.g||null==K(c,8)?"#FFFFFFFF":K(c,8);c=this.g?{lH:g.F(K(c,6))}:{oH:g.F(K(c,1)),nH:g.F(K(c,3)),mH:g.F(K(c,2))};this.Ie=Sfa(this,c);null!=this.Ie&&g.O(this.Ie,!1);b.appendChild(this.Ie);this.B.U(this.o,"click",this.IJ);this.o.Cb(this.Ie)};
Sfa=function(a,b){if(a.g){var c=Zp(bfa,b);var d=g.I("videoAdUiBrandPrecapAutogenImage",c)}else{c=Zp(afa,b);d=g.I("videoAdUiBrandPrecapContent",c);null!=a.C&&(c.style.backgroundColor=bt(at(a.C)));if(null!=a.A){var e=g.I("videoAdUiBrandPrecapBrandName",d),f=g.I("videoAdUiBrandPrecapBrandMessage",d);e.style.color=bt(at(a.A));f.style.color=bt(at(a.A))}d=g.I("videoAdUiBrandPrecapImageContainer",d);d=g.I("videoAdUiBrandPrecapBrandImage",d)}null!=d&&(d.Z2=function(){return!1});
return c};
gt=function(a,b){(new et(a.Ie,.2,{opacity:b?"0":"1"},{opacity:b?"1":"0"},[{property:"opacity",duration:.2,timing:"ease-in-out",delay:0}])).play()};
ht=function(a,b){var c=g.Xd(g.Nd(a.F),"html5-video-player");null!=c&&g.T(c,"ytp-ad-display-override",b)};
it=function(a,b,c,d,e,f){Qp.call(this,f);this.A=a;this.C=b;this.D=c;this.B=d;this.o=e};
jt=function(a){return null!=a.o?a.o.length:0};
kt=function(a,b,c,d,e,f,k,l,m,n){Qp.call(this,e);this.B=a;this.A=b;this.C=c||"";this.D=d||[];this.o=f||null;this.G=k||null;this.L=l||null;this.F=m||null;this.J=n||null};
lt=function(a,b){this.B=a;this.o=b;this.A=this.C=this.D=this.g=null};
mt=function(a){return null!=a.B||null!=a.o};
nt=function(a,b,c){b=g.I(b,a.g);null!=b&&a.C.U(b,"click",c)};
ot=function(a,b,c){null!=a.g&&a.g.parentElement.removeChild(a.g);a.g=Zp(b,c);nt(a,"videoAdUiPopupCloseIcon",a.Rm);a.D.appendChild(a.g);b=g.I("videoAdUiPopupFrame",a.g);null!=b&&g.qf(b,"submit",function(a){a.preventDefault()});
a=g.I("videoAdUiPopupDefaultButton",a.g);null!=a&&a.focus()};
pt=function(a,b){null!=a.A&&a.A.dispatchEvent(b)};
qt=function(){this.attributionText=ir({Ig:"",tg:0,Kg:0});this.ph=""+Ca("Learn More {$suffix}",{suffix:Q("")});this.visitAdvertiserText=""+Ca("Visit Advertiser's Site");this.re=lr();this.skipOffset=null;this.G=this.Ka=this.Na=this.Fa=this.V=!1;this.L=null;this.aa=6E3;this.F=!0;this.ea=!1;this.fa=this.o=this.da=!0;this.A=!1;this.N=!P.D;this.pa=this.Va=this.ka=!1;this.C=!0;this.O=this.Aa=this.sa=this.bb=this.B=!1;this.D={};this.Y=null;this.showContentThumbnail=!0;this.ha=this.I=!1;this.g=null;this.ra=
!1;this.ig=-1};
rt=function(a,b,c,d,e,f){var k=new qt;k.B=a;k.Ta=b;k.skipOffset=c;k.ba=null!=e?e.contentId:null;k.da=e.TT;k.Y=Xea;k.Ya=cq(b,null!=c,e.Vi);k.showContentThumbnail=null!=e.contentId&&e.showContentThumbnail;k.g=e.fy;null!=k.g&&null!=K(k.g,1)&&null!=K(He(k.g),8)&&(k.ha=!0,k.attributionText=jr({Ig:"",tg:0,Kg:0}));k.ra=e.JH;null!=f&&(k.D=f);null==c&&(a=Rm(),d&&a.g("show_countdown_on_bumper")&&(k.Na=!0,k.V=!0),a.g("show_thumbnail_on_standard")&&(k.V=!0),a.g("log_video_preview_interaction")&&(k.Fa=!0),!d&&
a.g("persist_text_on_preview_button")&&(k.Ka=!0));P.g()&&null!=k.g&&null!=K(k.g,1)&&(d=He(k.g),null!=K(d,6)&&(d=ze(d,Re,6),null!=K(d,5)&&(K(d,5)&&null!=K(d,6)||null!=K(d,1)&&null!=K(d,2)&&null!=K(d,3))&&(k.G=!0,null!=K(d,4)&&(k.L=K(d,4)))));return k};
tt=function(a,b,c,d,e){return new et(a,b,{opacity:d},{opacity:e},{property:"opacity",duration:b,timing:c,delay:0})};
ut=function(a,b){return tt(a,b,"ease-out",0,1)};
vt=function(a){return tt(a,.5,"ease-in",1,0)};
xt=function(a,b){g.Ef.call(this);this.ea=new g.nm(this);g.M(this,this.ea);this.aa=a;this.ba=b;this.V=!1;this.J=this.A=this.G=null;this.da=0;this.B=[];this.C=[];this.D=[];this.N=0;this.L=!1;var c=a.g;c=this.g=null!=c&&null!=He(c)?ze(He(c),Pe,3):null;this.ha=null!=c&&null!=K(c,7)&&1==K(c,7)?!0:!1;c=this.g;this.O=null!=c&&K(c,13)?!0:!1;this.F=!1;this.I=this.aa.Ra;if(null==this.g||null==K(this.g,7))c=null;else{c=K(this.g,7);var d=K(this.g,8);c=null!=d&&g.jb(Tfa,c)?d:null}this.J=c;c=Zp(cfa,{preMessageText:this.J||
""});d=g.I("videoAdUiLikeMsg",c);g.Qd(d,""+Ca("I like this"));d=g.I("videoAdUiDislikeMsg",c);g.Qd(d,""+Ca("I dislike this"));if(null!=this.g){d=K(this.g,7);var e=null!=d?Ufa[d]:null;null!=e&&(this.Y=d,g.S(c,e))}Vfa(this,c);d=g.I("videoAdUiBrandInteractionLikeButton",c);null!=d&&wt(this,d);d=g.I("videoAdUiBrandInteractionDislikeButton",c);null!=d&&wt(this,d);g.O(c,!1);this.o=c;this.ba.appendChild(this.o)};
Vfa=function(a,b){if(null!=a.g){var c=a.g.Ye();c=null!=c?Wfa[c]:null;null!=c&&(0,g.H)(c,function(a){g.S(b,a)})}};
Xfa=function(a){return null!=a.g&&null!=K(a.g,8)?K(a.g,10):null};
Zfa=function(a){if(null==a.g||null==K(a.g,7))return null;var b=K(a.g,7);a=K(a.g,9);return null!=a&&g.jb(Yfa,b)?a:null};
wt=function(a,b){var c=new Ys;a.ea.U(c,"click",a.fa);c.Cb(b)};
$fa=function(a){if(null!=a.J){var b=Xfa(a);if(null!=b){var c=g.I("videoAdUiBrandInteractionPreMessageText",a.o);if(null!=c){var d=vt(c);g.tg(function(){d.play();g.tg(function(){g.O(c,!1)},500,this)},1E3*b,a)}}}};
aga=function(a){if(null!=a.g){var b=Zfa(a);if(null!=b){var c=Zp(dfa,{postMessageText:b});a.ba.appendChild(c);g.tg(function(){ut(c,.5).play();var a=vt(c);g.tg(function(){a.play()},3E3,this)},500,a)}}};
cga=function(a){if(a.O&&!a.F&&null!=a.I){var b=zt(a),c;"l"==b?c=a.I.feedbackLike:"d"==b&&(c=a.I.feedbackDislike);null!=c&&(an(c),a.F=!0)}};
zt=function(a){return null!=a.A?g.Tp(a.A,"videoAdUiBrandInteractionLikeButton")?"l":g.Tp(a.A,"videoAdUiBrandInteractionDislikeButton")?"d":"n":"n"};
Bt=function(){g.Ef.call(this);this.g=!1;this.A=this.B=this.o=null;this.C=new g.nm(this);this.o=Zp(mfa);this.B=g.I("videoAdUiUnmutedIcon",this.o);this.A=g.I("videoAdUiMutedIcon",this.o);At(this);this.C.U(this.o,"click",this.D)};
At=function(a){a.B&&a.A&&(a.g?(g.nh(a.B,"display","none"),g.nh(a.A,"display","block")):(g.nh(a.B,"display","block"),g.nh(a.A,"display","none")))};
Ct=function(a,b){g.Ef.call(this);this.D=a;this.F=1;this.C=this.A=this.g=this.o=null;this.B=a.Na;this.I=new g.nm(this);g.M(this,this.I);this.G=new Ys;g.M(this,this.G);this.L=!a.Ka;this.N=a.Fa;this.J=0;this.o=Zp(gr);this.g=g.I("videoAdUiPreSkipButton",this.o);this.A=g.I("videoAdUiPreSkipText",this.g);g.S(this.A,"videoAdUiPreviewText");this.C=g.I("videoAdUiPreSkipThumbnail",this.g);this.B?g.Qd(this.A,hr({Mg:""})):g.Qd(this.A,""+Ca("Video will play after ad"));var c=fq(this.D.ba)||"";if(this.D.showContentThumbnail&&
!E(g.F(c))){var d=g.zd("img");d.setAttribute("src",c);g.S(d,"videoAdUiPreSkipThumbnailImage");this.C.appendChild(d)}else this.B?(g.O(this.C,!1),g.S(this.g,"videoAdUiPreSkipButtonNoThumbnail"),g.S(this.A,"videoAdUiPreSkipTextOnlyCentered")):g.O(this.g,!1);g.O(this.o,!1);b.appendChild(this.o);this.I.U(this.G,"click",this.O);this.G.Cb(this.C)};
Dt=function(a,b){g.Ef.call(this);this.B=new g.nm(this);g.M(this,this.B);this.I=a;this.A=null;this.F=this.G=0;this.D=this.C=!1;var c=a.g,d;null!=c&&null!=K(c,1)!=null&&null!=ze(He(c),Se,7)&&(d=ze(He(c),Se,7));this.o=d||new Se;c=this.o;null!=K(c,7)&&null!=K(c,8)?(this.A=d=K(c,8),c={MS:K(c,7),OS:d},c=Zp(ffa,c),dga(this,c)):c=Zp(efa,{NS:K(this.o,1)});null!=K(this.o,6)&&(d=K(this.o,6),g.S(c,ega[d]));g.O(c,!1);this.g=c;b.appendChild(this.g)};
dga=function(a,b){var c=new Ys;a.B.U(c,"click",(0,g.A)(function(){this.G++},a));
c.Cb(b);c=g.I("videoAdUiReasonToWatchDynamicTopic",b);if(null!=c){var d=new Ys;a.B.U(d,"click",(0,g.A)(function(){this.F++},a));
d.Cb(c)}};
fga=function(a){var b=new et(a.g,1.25,{right:"-265px"},{right:"0px"},[{property:"right",duration:.25,timing:"ease-in-out",delay:1}]),c=g.I("videoAdUiReasonToWatchText",a.g),d=new et(c,.25,{opacity:0},{opacity:1},[{property:"opacity",duration:.25,timing:"ease-in-out",delay:0}]);b.play();null!=d&&g.tg(function(){d.play()},1250,a);
a.C=!0;g.O(a.g,!0)};
gga=function(a){(new et(a.g,.25,{right:"0px"},{right:"-265px"},[{property:"right",duration:.25,timing:"ease-in-out",delay:0}])).play();a.D=!0;g.tg(function(){g.O(this.g,!1)},250,a)};
g.Et=function(a,b,c){g.L.call(this);this.ya=null;this.A=!1;this.C=a;this.B=c;this.g=b||window;this.o=(0,g.A)(this.fI,this)};
Ft=function(a){a=a.g;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
Gt=function(a){a=a.g;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.Ht=function(a,b,c){g.L.call(this);this.g=a;this.B=b||0;this.o=c;this.A=(0,g.A)(this.Ix,this)};
g.It=function(a){a.stop();a.Ix()};
g.Jt=function(a){a.isActive()&&g.It(a)};
g.Lt=function(){g.Kt||(g.Kt=new g.Ht(function(){hga()},20));
var a=g.Kt;a.isActive()||a.start()};
hga=function(){var a=(0,g.G)();g.Kb(g.Mt,function(b){b.nO(a)});
g.Wb(g.Mt)||g.Lt()};
Ot=function(a,b){g.Ef.call(this);this.config=a;this.ba=0;this.Y=!1;this.state=0==vp(this.config.skipOffset)?3:1;this.o=this.aa=this.skipButton=this.pa=this.da=this.I=this.D=this.A=null;this.ac=new g.nm(this);this.G=this.B=null;this.V=new Ys;this.ha="";this.ka=!1;var c=a.g;c=this.g=null!=c&&null!=He(c)?ze(He(c),Le,1):null;this.ra=null!=c&&K(c,19)?!0:!1;c=this.g;this.N=null!=c&&K(c,24)?!0:!1;c=this.g;this.sa=null!=c&&K(c,23)?!0:!1;c=this.g;this.Aa=null!=c&&K(c,25)?!0:!1;this.A=Zp(this.ra?$ea:gr);this.D=
g.I("videoAdUiPreSkipButton",this.A);this.I=g.I("videoAdUiPreSkipText",this.D);this.da=g.I("videoAdUiPreSkipTextTimeLeft",this.D);this.pa=g.I("videoAdUiPreSkipThumbnail",this.D);this.sa&&g.O(this.I,!1);Rm().g("use_forced_linebreak_preskip_text")&&(this.ka=!0,g.S(this.I,"videoAdUiPreSkipTextForcedLineBreak"));Nt(this,0);c=fq(this.config.ba)||"";if(this.config.showContentThumbnail&&!E(g.F(c))){var d=g.zd("img");d.setAttribute("src",c);g.S(d,"videoAdUiPreSkipThumbnailImage");this.pa.appendChild(d)}else P.g()?
(g.S(this.D,"videoAdUiPreSkipButtonNoThumbnail"),g.S(this.I,"videoAdUiPreSkipTextOnlyCentered")):g.S(this.I,"videoAdUiPreSkipTextOnly");d=!P.g()&&P.V;var e=null!=this.g&&null!=ze(this.g,Ve,3)&&!this.N,f=P.g()&&Rm().g("fixed_padding_skip_button")&&!this.N;this.o=Zp(this.N?ifa:d||e||f?hfa:gfa,{Nt:Ta(""+Ca("Skip Ad {$skipSymbol}",{skipSymbol:Q("")}))});this.skipButton=g.I("videoAdUiSkipButton",this.o);e&&(this.aa=g.I("videoAdUiSkipButtonExperimentalText",this.skipButton));if(e=d||P.g()&&Rm().g("use_new_skip_icon")){var k=
g.I("videoAdUiSkipIcon",this.skipButton);null!=k&&g.Xp(k,"videoAdUiSkipIcon","videoAdUiExperimentalSkipIcon")}f||d?(g.S(this.skipButton,f?"videoAdUiFixedPaddingSkipButton":"videoAdUiRedesignedSkipButton"),c=g.I("videoAdUiSkipButtonExperimentalText",this.skipButton),null!=c&&g.S(c,"videoAdUiFixedPaddingSkipButtonText"),g.S(g.I(e?"videoAdUiExperimentalSkipIcon":"videoAdUiSkipIcon",this.skipButton),"videoAdUiFixedPaddingSkipButtonIcon")):this.N&&this.config.showContentThumbnail&&!E(g.F(c))&&(d=g.zd("img"),
d.setAttribute("src",c),g.S(d,"videoAdUiPreSkipThumbnailImage"),this.skipButton.appendChild(d));this.Aa&&(c=g.I("videoAdUiSkipText",this.o),g.O(c,!1));iga(this);"4.4.4"===(g.wn?An(xn):"")&&(this.D.style.backgroundColor="black",this.skipButton.style.backgroundColor="black");g.O(this.A,!1);b.appendChild(this.A);0==vp(this.config.skipOffset)?this.dispatchEvent("skipshown"):(g.O(this.o,!1),g.Ih(this.o,0));b.appendChild(this.o);Rm().g("move_skip_button_to_top")&&(g.S(this.A,"videoAdUiHighPreSkipContainer"),
g.S(this.o,"videoAdUiHighSkipContainer"));this.ac.U(this.V,"click",this.tT);this.V.Cb(this.skipButton)};
Nt=function(a,b){var c=null!=a.config.skipOffset&&-1!=vp(a.config.skipOffset)?vp(a.config.skipOffset):-1;if(!(0>c)){var d=Math.ceil(c-b);c=d.toString();60<=d&&(c=po(d));d={hn:a.ka?"forcedlinebreak":a.ha,Mg:c,WN:"\n"};a.ra&&null!=a.da?g.Qd(a.da,c):(c=a.I,d=d||{},d=""+Yo("b",d.hn)(d,null,void 0),g.Qd(c,d))}};
Pt=function(a){return new et(a,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",delay:0})};
Qt=function(a,b){null!=a.D&&g.O(a.D,b);null!=a.skipButton&&g.O(a.skipButton,b)};
iga=function(a){if(null!=a.g){var b=null!=ze(a.g,Te,1)&&null!=ze(ze(a.g,Te,1),Ue,1)?K(ze(ze(a.g,Te,1),Ue,1),1):null,c=null!=ze(a.g,Te,2)&&null!=ze(ze(a.g,Te,2),Ue,1)?K(ze(ze(a.g,Te,2),Ue,1),1):null;b&&(a.skipButton.style.backgroundColor=bt(at(b)),c&&(a.ac.U(g.Nd(a.skipButton),"mouseover",function(){this.skipButton.style.backgroundColor=bt(at(c))}),a.ac.U(g.Nd(a.skipButton),"mouseout",function(){this.skipButton.style.backgroundColor=bt(at(b))})));
if(null!=ze(a.g,Ve,3)&&null!=a.aa){var d=Waa(ze(a.g,Ve,3));0<d.length&&K(d[0],1)&&g.Qd(a.aa,K(d[0],1))}}};
Vt=function(a,b){Ot.call(this,a,b);var c=this.g;this.fa=null!=c&&K(c,8)?!0:!1;this.ea=!1;this.C=this.L=null;c=this.g;var d=Rt;null!=c&&(null!=K(c,10)&&K(c,10)||null!=K(c,9)&&!K(c,9))&&(d=St);this.J=d;c=this.g;d=Tt;null!=c&&(null!=K(c,12)&&K(c,12)||null!=K(c,11)&&!K(c,11))&&(d=Ut);this.O=d;this.F=0};
Wt=function(a){null==a.C&&"4.4.4"!=(g.wn?An(xn):"")&&1!=a.F&&(g.Ye(a.B),a.B=null,a.C=g.tg(function(){tt(this.o,.5,"ease-in",1,.5).play();this.F=1;this.C=null},0,a))};
Yt=function(a,b){if(0!=a.F){if(b){if(null!=a.C||"4.4.4"==(g.wn?An(xn):""))return;a.C=g.tg(function(){tt(this.o,.5,"ease-in",.5,1).play();this.C=null},0,a)}else Xt(a),g.Ih(a.o,1);
a.F=0}};
Xt=function(a){null!=a.C&&(g.ug(a.C),a.C=null)};
Zt=function(a){null!=a.L&&(g.ug(a.L),a.L=null)};
$t=function(a,b,c){var d=null;switch(c){case Tt:null!=b&&null!=b.skipOffset&&(d=1E3*(a-vp(b.skipOffset)));break;case Ut:a=g.x("window.yt.util.activity.getTimeSinceActive"),d=(a=null!=a?a().toString():null)?ab(a):null}return d};
au=function(a,b){var c=1E3*a.Ow;null!=b&&null!=K(b,13)&&(c=K(b,13));return c};
bu=function(a,b,c,d,e,f,k,l,m){this.A=a;this.L=b;this.C=c;this.D=d;this.o=e;this.F=f;this.G=k;this.I=l;this.J=m;this.g=this.A.wg()};
cu=function(a){var b=a.g,c=g.Gh(a.B);c="left"==a.C?"0px":"right"==a.C?c.width-a.A.jf().width+"px":a.C+"px";var d=g.Gh(a.B);a="bottom"==a.D?"0px":"top"==a.D?d.height-a.A.jf().height+"px":d.height-a.A.jf().height-ab(a.D)+"px";g.nh(b,{position:"absolute",overflow:"hidden",left:c,bottom:a})};
jga=function(a){g.Jh(a.g)||(g.O(a.g,!0),(0,g.H)(a.J,function(a){an(a)}))};
hu=function(a,b,c){this.L=b;this.da=c||0;this.O=40;this.o=1;this.Y=0;this.B=3;this.V=this.A=0;this.ea=!1;this.N=this.G="";this.C="-";this.I="";this.g=1;this.F=!1;this.D=[];this.aa=this.ba=!1;this.J=0;if("number"==typeof a)switch(a){case 1:du(this,eu.Mu);break;case 2:du(this,eu.gG);break;case 3:du(this,eu.WF);break;case 4:a=eu.OE;b=["0"];c=fu[this.L||eu.hk][0]&7;if(0<c){b.push(".");for(var d=0;d<c;d++)b.push("0")}a=a.replace(/0.00/g,b.join(""));du(this,a);break;case 5:gu(this,1);break;case 6:gu(this,
2);break;default:throw Error("Unsupported pattern type.");}else du(this,a)};
du=function(a,b){b.replace(/ /g,"\u00a0");var c=[0];a.G=iu(a,b,c);for(var d=c[0],e=-1,f=0,k=0,l=0,m=-1,n=b.length,q=!0;c[0]<n&&q;c[0]++)switch(b.charAt(c[0])){case "#":0<k?l++:f++;0<=m&&0>e&&m++;break;case "0":if(0<l)throw Error('Unexpected "0" in pattern "'+b+'"');k++;0<=m&&0>e&&m++;break;case ",":0<m&&a.D.push(m);m=0;break;case ".":if(0<=e)throw Error('Multiple decimal separators in pattern "'+b+'"');e=f+k+l;break;case "E":if(a.aa)throw Error('Multiple exponential symbols in pattern "'+b+'"');a.aa=
!0;a.V=0;c[0]+1<n&&"+"==b.charAt(c[0]+1)&&(c[0]++,a.ea=!0);for(;c[0]+1<n&&"0"==b.charAt(c[0]+1);)c[0]++,a.V++;if(1>f+k||1>a.V)throw Error('Malformed exponential pattern "'+b+'"');q=!1;break;default:c[0]--,q=!1}0==k&&0<f&&0<=e&&(k=e,0==k&&k++,l=f-k,f=k-1,k=1);if(0>e&&0<l||0<=e&&(e<f||e>f+k)||0==m)throw Error('Malformed pattern "'+b+'"');l=f+k+l;a.B=0<=e?l-e:0;0<=e&&(a.A=f+k-e,0>a.A&&(a.A=0));a.o=(0<=e?e:l)-f;a.aa&&(a.O=f+a.o,0==a.B&&0==a.o&&(a.o=1));a.D.push(Math.max(0,m));a.ba=0==e||e==l;d=c[0]-d;
a.N=iu(a,b,c);c[0]<b.length&&";"==b.charAt(c[0])?(c[0]++,1!=a.g&&(a.F=!0),a.C=iu(a,b,c),c[0]+=d,a.I=iu(a,b,c)):(a.C+=a.G,a.I+=a.N)};
gu=function(a,b){a.J=b;du(a,eu.Mu);a.A=0;a.B=2;if(0<a.A)throw Error("Can't combine significant digits and minimum fraction digits");a.Y=2};
ku=function(a,b){var c=Math.pow(10,a.B),d=0>=a.Y?Math.round(b*c):Math.round(ju(b*c,a.Y,a.B));if((0,window.isFinite)(d)){var e=Math.floor(d/c);c=Math.floor(d-e*c)}else e=b,c=0;return{intValue:e,VH:c}};
lu=function(a,b,c,d){if(a.A>a.B)throw Error("Min value must be less than max value");d||(d=[]);b=ku(a,b);var e=b.intValue,f=b.VH,k=0<a.A||0<f||!1;b=a.A;k&&(b=a.A);for(var l="",m=e;1E20<m;)l="0"+l,m=Math.round(m/10);l=m+l;var n=eu.Nu;m=eu.Rp.charCodeAt(0);var q=l.length,r=0;if(0<e||0<c){for(e=q;e<c;e++)d.push(String.fromCharCode(m));if(2<=a.D.length)for(c=1;c<a.D.length;c++)r+=a.D[c];c=q-r;if(0<c){e=a.D;r=q=0;for(var w,z=eu.Ep,B=l.length,C=0;C<B;C++)if(d.push(String.fromCharCode(m+1*Number(l.charAt(C)))),
1<B-C)if(w=e[r],C<c){var N=c-C;(1===w||0<w&&1===N%w)&&d.push(z)}else r<e.length&&(C===c?r+=1:w===C-c-q+1&&(d.push(z),q+=w,r+=1))}else{c=l;l=a.D;e=eu.Ep;w=c.length;z=[];for(q=l.length-1;0<=q&&0<w;q--){r=l[q];for(B=0;B<r&&0<=w-B-1;B++)z.push(String.fromCharCode(m+1*Number(c.charAt(w-B-1))));w-=r;0<w&&z.push(e)}d.push.apply(d,z.reverse())}}else k||d.push(String.fromCharCode(m));(a.ba||k)&&d.push(n);f=String(f);k=f.split("e+");2==k.length&&(f=String(ju((0,window.parseFloat)(k[0]),a.Y,1)),f=f.replace(".",
""),f+=Qa("0",(0,window.parseInt)(k[1],10)-f.length+1));a.B+1>f.length&&(f="1"+Qa("0",a.B-f.length)+f);for(a=f.length;"0"==f.charAt(a-1)&&a>b+1;)a--;for(e=1;e<a;e++)d.push(String.fromCharCode(m+1*Number(f.charAt(e))))};
mu=function(a,b,c){c.push(eu.Ru);0>b?(b=-b,c.push(eu.GF)):a.ea&&c.push(eu.XF);b=""+b;for(var d=eu.Rp,e=b.length;e<a.V;e++)c.push(d);c.push(b)};
nu=function(a){a=a.charCodeAt(0);if(48<=a&&58>a)return a-48;var b=eu.Rp.charCodeAt(0);return b<=a&&a<b+10?a-b:-1};
iu=function(a,b,c){for(var d="",e=!1,f=b.length;c[0]<f;c[0]++){var k=b.charAt(c[0]);if("'"==k)c[0]+1<f&&"'"==b.charAt(c[0]+1)?(c[0]++,d+="'"):e=!e;else if(e)d+=k;else switch(k){case "#":case "0":case ",":case ".":case ";":return d;case "\u00a4":if(c[0]+1<f&&"\u00a4"==b.charAt(c[0]+1))c[0]++,d+=a.L||eu.hk;else switch(a.da){case 0:d+=fu[a.L||eu.hk][1];break;case 2:k=a.L||eu.hk;var l=fu[k];d+=k==l[1]?k:k+" "+l[1];break;case 1:d+=fu[a.L||eu.hk][2]}break;case "%":if(!a.F&&1!=a.g)throw Error("Too many percent/permill");
if(a.F&&100!=a.g)throw Error("Inconsistent use of percent/permill characters");a.g=100;a.F=!1;d+=eu.cv;break;case "\u2030":if(!a.F&&1!=a.g)throw Error("Too many percent/permill");if(a.F&&1E3!=a.g)throw Error("Inconsistent use of percent/permill characters");a.g=1E3;a.F=!1;d+=eu.dv;break;default:d+=k}}return d};
qu=function(a,b){var c=1==a.J?ou.Ku:ou.yE;null==c&&(c=ou.Ku);if(3>b)return pu;b=Math.min(14,b);for(var d=c[Math.pow(10,b)],e=b-1;!d&&3<=e;)d=c[Math.pow(10,e)],e--;if(!d)return pu;c=d.other;return c&&"0"!=c?(c=/([^0]*)(0+)(.*)/.exec(c))?{prefix:c[1],HC:c[3],Cq:e+1-(c[2].length-1)}:pu:pu};
ru=function(a){if(!(0,window.isFinite)(a))return 0<a?a:0;for(var b=0;1<=(a/=10);)b++;return b};
ju=function(a,b,c){if(!a)return a;b=b-ru(a)-1;if(b<-c)return c=Math.pow(10,c),Math.round(a/c)*c;c=Math.pow(10,b);return Math.round(a*c)/c};
uu=function(a,b,c,d){g.Ef.call(this);this.g=a;this.uc=this.ea=!1;this.ka=c;this.Hc=d;this.Aa=this.Y=this.F=this.D=this.O=this.Fa=this.ba=this.J=this.Ib=this.sa=this.Ra=this.L=this.o=null;this.Ab=!1;this.Jb=this.Ya=this.ib=this.N=this.V=this.I=this.ra=this.pa=this.ha=this.B=this.C=this.ub=this.fa=this.da=this.G=null;this.A=new g.nm(this);this.Ka=[];a=this.g;this.Oc=null!=a&&null!=a.g&&null!=He(a.g)?ze(He(a.g),Oe,2):null;a=this.g;this.yc=null!=a&&null!=a.g&&null!=He(a.g)?ze(He(a.g),Se,7):null;this.Ta=
!1;this.aa=[];this.ea=!this.g.I&&P.g();this.ob=!P.g()&&P.ob;a="";this.ea?a="redesign2014q4":this.ob&&(a="fixedDirectionality");a={attributionText:this.g.attributionText,ph:this.g.ph,re:this.g.re,hn:a};this.o=Zp(this.g.Y,a);this.g.ra||this.A.U(this.o,"touchmove",this.JJ);this.fa=g.I("videoAdUiProgress",this.o);this.ub=g.I("videoAdUiBuffer",this.o);this.L=g.I("videoAdUiAttributionContainer",this.o);this.Ra=g.I("videoAdUiAttributionIconContainer",this.o);this.sa=g.I("videoAdUiAttribution",this.o);this.g.ha&&
(c=this.g.g,null!=ze(He(c),Ke,8)&&(d=K(ze(He(c),Ke,8),1),null!=d&&(c=g.I("videoAdUiAttributionWithBadge",this.L),d=kga[d],null!=d&&(this.Ta=!0,g.S(c,d),this.sa=g.I("videoAdUiAttributionText",this.o),g.S(b,"videoAdUiInstreamBadgeExperiment")))));this.Ib=g.I("videoAdUiVisitAdvertiserLink",this.o);this.J=g.I("videoAdUiVisitAdvertiserLinkText",this.o);this.ba=g.I("videoAdUiVisitAdvertiserIcon",this.o);this.Fa=g.I("videoAdUiBottomBarMessage",this.o);this.O=g.I("videoAdUiAuthorIcon",this.o);this.D=g.I("videoAdUiAuthorName",
this.o);this.F=g.I("videoAdUiLearnMore",this.o);this.Y=g.I("videoAdUiLearnMoreText",this.o);this.ea?(this.N=g.I("videoAdUiTopButtonShare",this.o),this.ib=g.I("videoAdUiTopButtonShareTooltip",this.o),this.Ya=g.I("videoAdUiTopButtonInfo",this.o),this.Jb=g.I("videoAdUiTopButtonWatchLater",this.o)):this.N=g.I("videoAdUiShare",this.o);this.G=g.I("videoAdUiTitle",this.o);this.da=g.I("videoAdUiTopBar",this.o);this.Aa=g.I("videoAdUiBottomBar",this.o);null!=this.O&&this.A.U(this.O,"click",this.hH);null!=this.D&&
(c=new Ys,this.aa.push(c),this.A.U(c,"click",this.iH),c.Cb(this.D));null!=this.F&&(c=new Ys,c.C=!0,this.aa.push(c),this.A.U(c,"click",this.Oy),c.Cb(this.F));null!=this.Y&&(c=new Ys,c.C=!0,this.aa.push(c),this.A.U(c,"click",this.Oy),c.Cb(this.Y));null!=this.N&&this.A.U(this.N,"click",this.qT);null!=this.G&&(c=new Ys,this.aa.push(c),this.A.U(c,"click",this.BT),c.Cb(this.G));null==this.da||!P.g()&&on()||this.A.U(this.o,"mouseover",this.nT);null!=this.J&&this.A.U(this.J,"click",this.kp);null!=this.ba&&
this.A.U(this.ba,"click",this.kp);null!=this.L&&null!=this.g.J&&mt(this.g.J)&&(g.S(this.L,"videoAdUiWtaClickable"),this.A.U(this.L,"click",this.tS),this.A.U(this,"why_this_ad_got_it",this.aU));null!=this.g.skipOffset?(this.B=P.g()?new Vt(this.g,this.o):new Ot(this.g,this.o),this.B.Dh(this),this.B.ha=a.hn):!this.g.V||3==this.Hc&&3500>this.ka||(this.I=new Ct(this.g,this.o),g.M(this,this.I),this.I.Dh(this));this.g.G&&(this.ha=new ft(this.g,this.o),g.M(this,this.ha),this.ha.Dh(this));a=this.g.g;P.g()&&
null!=a&&null!=K(a,1)&&null!=K(He(a),3)&&K(ze(He(a),Pe,3),1)&&(this.pa=new xt(this.g,this.o));a=this.g.g;P.g()&&null!=a&&null!=K(a,1)&&null!=K(He(a),7)?(c=ze(He(a),Se,7),a=null!=K(c,1)||null!=K(c,7)&&null!=K(c,8),c=K(c,5),a=a&&c?!0:!1):a=!1;a&&(this.ra=new Dt(this.g,this.o));this.g.ka&&(this.V=new Bt,this.V.Dh(this),this.Aa.insertBefore(this.V.o,this.L));400>=((0,window.parseInt)(g.rh(b,"width"),10)||b.width)&&g.S(this.o,"videoAdUi-mobile");this.g.I&&(g.S(this.o,"blazer"),window.settings&&window.settings.isTablet?
(g.S(this.o,"tablet"),a=Rm(),a.g("mweb_cougar")&&!a.g("mweb_ipad_disable_custom_control")&&window.settings.customControls&&g.S(this.o,"customControls")):g.S(this.o,"phone"));a=g.Xd(b,"html5-video-player");null!=a&&(this.ea&&g.S(a,"videoAdUiRedesign"),g.T(a,"ytp-video-ad-learn-more-ui",this.g.B));g.O(this.o,!1);b.appendChild(this.o);this.g.B||this.ea||!this.g.da||(this.C=g.xd("DIV",{style:"width:100%;height:100%;pointer-events:auto;"}),this.o.appendChild(this.C));tu(this)};
lga=function(a){null!=a.C&&g.O(a.C,!1)};
vu=function(a,b,c){if(null!=a.pa){var d=a.pa,e=null!=a.g.skipOffset;if(!d.L){var f={action:"condor-brand-interaction"};null!=b&&(f.trigger="skip"==b?"s":"complete"==b?"c":"abandon"==b?"a":"u");f.skip=e?"t":"f";f.rt=c;f.numclk=d.da;g.kb(d.B)&&(d.B.push("n"),d.C.push("0"),d.D.push("0"));f.opt=d.B.join(",");f.clk_time_ms=d.C.join(",");f.rel_clk_time_sec=d.D.join(",");null!=d.Y&&(f.icon_sty=d.Y);f.conv_enabled=d.O?"t":"f";f.conv_sent=d.F?"t":"f";f.ei="[EID]";f.cpn="[CPN]";f.content_v="[CONTENT_V]";f.ad_cpn=
"[AD_CPN]";f.ad_v="[AD_V]";f.ad_id="[AD_ID]";f.ad_len="[AD_LEN]";e=dq(f);e=g.xm(e,d.aa.D);an(e);d.L=!0}}null!=a.ra&&(d=a.ra,a=null!=a.g.skipOffset,e={action:"condor-robin"},e.topic=d.A?d.A:K(d.o,1),null!=b&&(e.trigger="skip"==b?"s":"complete"==b?"c":"abandon"==b?"a":"u"),e.skip=a?"t":"f",e.rt=c,e.num_clk_whole=d.G,e.num_clk_topic=d.F,e.ei="[EID]",e.cpn="[CPN]",e.content_v="[CONTENT_V]",e.ad_cpn="[AD_CPN]",e.ad_v="[AD_V]",e.ad_id="[AD_ID]",e.ad_len="[AD_LEN]",b=dq(e),b=g.xm(b,d.I.D),an(b),d.L=!0)};
wu=function(a){a.B&&(a.B.dispose(),a.B=null)};
xu=function(a,b){a.Ka=b;(0,g.H)(b,function(a){a.B=this.o;a.B.appendChild(a.g);cu(a);g.O(a.g,!1);var b=a.Cc();if(null!=b){var c=new Ys;c.C=!0;this.aa.push(c);this.A.U(c,"click",(0,g.A)(this.mJ,this,a));c.Cb(b)}},a)};
yu=function(a){null!=a.J&&(g.O(a.J,!0),g.Qd(a.J,a.g.visitAdvertiserText));null!=a.ba&&g.O(a.ba,!0)};
zu=function(a,b){if(null!=a.o){var c=g.Xd(g.Nd(a.o),"html5-video-player");null!=c&&(g.T(c,"ytp-ad-end-cap",b),g.T(c,"ytp-ad-display-override",b))}};
tu=function(a){var b=a.g.C&&(a.ka>a.g.aa||0==a.ka),c=b&&a.g.sa,d=b&&a.g.Aa,e=b&&a.g.A,f=b&&a.g.pa;b=b&&a.g.O;var k=a.g.Va&&a.g.o,l="0px";var m=a.Oc;m=P.g()&&null!=m&&K(m,1)?!1:!0;var n=a.g;var q=a.yc;if(P.g()&&null!=q&&null!=K(q,1)&&K(q,2)){var r=K(q,1)||"";Na(r,"[VC_RAW]")?(q=K(q,3),n=0<n.ig&&null!=q&&0<q&&n.ig>=q):n=!0}else n=!1;null!=a.G&&(g.O(a.G,b),null!=a.O&&g.O(a.O,c),null!=a.D&&g.O(a.D,d),null!=a.N&&(g.O(a.N,f),f&&a.dispatchEvent("videoShareShown")),null!=a.Ya&&g.O(a.Ya,!1),null!=a.Jb&&g.O(a.Jb,
!1),null!=a.da&&g.O(a.da,b||c||d||e));null!=a.L&&Au(a);null!=a.fa&&(g.O(a.fa,k),k&&(l=g.rh(a.fa,"height")));null!=a.Aa&&!P.g()&&g.nh(a.Aa,"bottom",l);Bu(a);null!=a.Ra&&g.O(a.Ra,a.g.ea);null!=a.Ib&&g.O(a.Ib,m);if(null!=a.Fa&&n){a:if(c=a.g,d=a.yc,P.g()&&null!=d&&null!=K(d,1)){d=K(d,1)||"";if(Na(d,"[VC_RAW]")){c=(new hu(1)).format(c.ig);if(E(c)){c="";break a}e=new RegExp(Pa("[VC_RAW]"),"g");d=d.replace(e,c.replace(/\$/g,"$$$$"))}c=d}else c="";g.Qd(a.Fa,c);g.O(a.Fa,!0)}P.g()||!a.g.N||P.D||(null!=a.F&&
g.O(a.F,!1),null!=a.Y&&g.O(a.Y,!1))};
mga=function(a,b,c,d,e){var f=a.Ta?jr({Ig:"",tg:0,Kg:0}):ir({Ig:"",tg:0,Kg:0});if(a.g.o&&a.g.fa)if(c=po(c-b),b=a.g.I?" \u2022 "+c:a.ea?" \u00b7 "+c:": ("+c+")",a.Ta){if(null==e||2>e)b="\u00a0"+c;f=jr({Ig:b,tg:d,Kg:e})}else f=ir({Ig:b,tg:d,Kg:e});g.Qd(a.sa,f);Au(a)};
Au=function(a){g.O(a.L,a.g.F&&(!a.g.o||a.Ab))};
nga=function(a,b){null!=a.ha&&a.ha.show(b)};
Bu=function(a){var b=a.g.C&&(a.ka>a.g.aa||0==a.ka)&&a.g.A?a.g.N?!P.D||a.uc:!0:!1;null!=a.F&&g.O(a.F,b);null!=a.Y&&g.O(a.Y,P.g()&&a.g.B&&!b)};
Cu=function(){g.L.call(this);this.B="";this.fb=null;this.A=new op;this.o=new Pl;this.D=[];this.I=!1;this.g={};this.G={};this.C=-1;this.F=[]};
Du=function(a,b,c){c=c||wp(a.A,b.type);if(P.o){var d=xo(uo(),b.type,a.B);a.J(b.type,c,d)}else Qda(co(),b.type,a.B,(0,g.A)(a.J,a,b.type,c))};
oga=function(a,b){null!=b&&(0,g.H)(b,function(a){g.jb(this.F,a)||this.F.push(a)},a)};
Eu=function(a,b,c){null!=c.viewability&&nq(a.g,c.viewability);var d;P.o||(d=co().J||void 0);var e=[];(0,g.H)(b,function(a){var b=this.g;oq(b,a,"MOAT_INIT",c.moatInit);oq(b,a,"MOAT_VIEWABILITY",c.moatViewability);oq(b,a,"IAS_VIEWABILITY",c.integralAdsViewability);oq(b,a,"DV_VIEWABILITY",c.doubleVerifyViewability);oq(b,a,"GOOGLE_VIEWABILITY",c.googleViewability);e.push(cn(a,this.g,c,d))},a);
nq(a.g,"na");return e};
Fu=function(a,b,c){(0,g.H)(b,function(a){an(a,void 0,void 0,c)},a)};
pga=function(a,b){switch(b){case "abandon":return!Rl(a.o,b)&&!Rl(a.o,"skip")&&!Rl(a.o,"instreamAdComplete")&&(Rl(a.o,"impression")||a.I);case "instreamAdComplete":case "complete":return!Rl(a.o,b)&&!Rl(a.o,"skip");case "progress":case "click":case "mute":case "unmute":case "rewind":case "fullscreen":case "exitfullscreen":case "expand":case "collapse":return!0;default:return!Rl(a.o,b)}};
Gu=function(a){g.Ef.call(this);this.ads=a;this.Wc=null;this.xe=new g.nm(this);g.M(this,this.xe);this.Zc="normal";this.Ia=this.volume=null;this.Qa=new Xn;this.ge=!1;this.content={};this.Ob=new Cu;this.Ja=null;this.Vm=!1;co();this.lp=(0,g.A)(this.dI,this);this.Yi=null;var b=0;(0,g.H)(a,function(a){b+=a.getDuration()});
(0,g.H)(a,function(b,d){var c=b.C;c.mg=a.length;var f=d+1;c.g=f;c.A=f})};
Hu=function(a,b){if(a.Wc=b)a.Ob.B=b.J;if(P.o){var c=uo();yo(c,a.lp);b&&c.o.set(b.J,a.lp)}};
Iu=function(a,b){return null==b?!1:null!=b.getExtension("adx")?!0:Iu(a,b.o)};
Ju=function(a){return(0,g.Ik)(a.ads,function(a){return(0,g.Ik)(this.dh(a),function(a){return!E(g.F(bq(a.o)))})},a)};
Ku=function(a){a=a.g;return null!=a&&a instanceof Cp};
Lu=function(a,b){Du(a.Ob,new g.$e(b));a.ia(b)};
qga=function(a,b){return(0,g.Nr)(g.Rb(b),function(a){return Tb(this.Qa,a)},a)};
Nu=function(a){if(!a.Fc())throw jn(Mu,null,"Ads manager is not correctly configured.");};
Ou=function(a,b){for(var c=b;null!=c;)(0,g.H)(c.G.sb(),a.PS,a),c=c.o};
rga=function(a){if(!g.ua(a))throw jn(Mu,null,"adsRenderingSettings.mimeTypes should be an array");var b=g.rb(g.Pb(Pu),g.Pb(Gp));(0,g.H)(a,function(a){if(!g.jb(b,a))throw jn(Mu,null,"Invalid or unsuppoted mime type "+a);})};
Qu=function(a){var b=a.la();if(null!=b){var c=b.g;if(c instanceof Cp&&(c=c.ra,null!=c&&!g.kb(c))){var d=window.document.body,e=mq(a.la());e=rt(!1,null,null,!1,a.Qa,e);e.C=!1;e.F=!1;e.o=!1;b=b.bf();a.Ja=new uu(e,d,1E3*a.getDuration(),b);xu(a.Ja,c);a.Ja.show();a.Wa().U(a.Ja,"videoIconClicked",a.GP)}}};
Ru=function(a,b,c){null!=a.Ja&&0<=c&&0<=b&&a.Ja.update(b,0,c,0,0)};
sga=function(a,b){function c(a,b){for(var c in a)for(var d=c.toLowerCase(),e=0;e<Su.length;e++){var m=Su[e];if(d==m)throw Error('Cannot override "'+m+'" '+b+', got "'+c+'" with value "'+a[c]+'"');}}
c(a,"attribute");c(b,"param")};
g.Tu=function(){};
g.Uu=function(a){g.Ef.call(this);this.I=a||g.id();this.ya=null;this.Je=!1;this.g=null;this.D=void 0;this.F=this.L=this.B=null};
Vu=function(a,b){if(a.Je)throw Error("Component already rendered");a.g||a.En();b?b.insertBefore(a.g,null):a.I.g.body.appendChild(a.g);a.B&&!a.B.Je||a.aj()};
Wu=function(a,b){a.L&&(0,g.H)(a.L,b,void 0)};
Xu=function(a,b){g.Uu.call(this,b);this.J=a;this.A=new g.nm(this);this.o=new Pl};
Yu=function(a){return a.oa()?a.oa().firstChild:null};
Zu=function(a){g.Ef.call(this);this.fb=null;this.D=a;this.o=null;this.B=-1;this.C=!1;this.A=Xa()};
$u=function(){};
av=function(a,b,c){this.g=a;this.Ef=c;this.o=b};
tga=function(a,b){this.g=a;this.o=b};
bv=function(a,b,c,d){Jp.call(this,a,b,"Static",c,d);this.gw=!1};
cv=function(a,b,c,d){Jp.call(this,a,b,"Html",c,d)};
dv=function(a,b,c,d){Jp.call(this,a,b,"Static",c,d)};
fv=function(a,b,c){if(g.kb(c))return new Jp(a,b,"",null,"");var d=ev(c);c=d.o;var e=d.g;d=d.A;switch(c){case "Html":return new cv(a,b,e,d);case "Static":switch(Gp[e]){case "Image":return new dv(a,b,e,d);case "Flash":return new bv(a,b,e,d);case "Text":return new aq(a,b)}}return new Jp(a,b,c,e,d)};
ev=function(a){var b=g.eb(a,function(a){return"Static"==a.o&&"Flash"==Gp[a.g]}),c=g.eb(a,function(a){return"IFrame"==a.o}),d=g.eb(a,function(a){return"Html"==a.o}),e=g.eb(a,function(a){return"Static"==a.o&&"Image"==Gp[a.g]}),f=g.eb(a,function(a){return"Static"==a.o&&"Text"==Gp[a.g]});
return no&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=f?f:a[0]};
uga=function(a,b,c,d,e,f){var k=ev(f),l=fv(a.id,a.size,[k]);l.D=!0;l.J=a.apiFramework;l.Va=b;l.L=c;l.g=d;e&&(l.rj=e);g.pb(f,k);var m=[];(0,g.H)(f,function(f){f=fv(a.id,a.size,[f]);f.D=!0;f.J=a.apiFramework;f.Va=b;f.L=c;f.g=d;e&&(f.rj=e);m.push(new Sq(f,[],a.adSlotId))});
return new Sq(l,m,a.adSlotId)};
gv=function(a,b,c){this.o=a;this.g=b;this.A=c};
hv=function(a,b,c){Qp.call(this);this.o=a;this.A=b;this.B=c};
iv=function(){this.fb=null};
jv=function(){this.C=null;this.D="http://www.google.com/adsense/support";this.F=0;this.g=15;this.B=5;this.A=3;this.o=!1};
vga=function(a,b){a.g=b};
kv=function(a,b,c,d,e,f,k,l,m,n,q){Qp.call(this,n,q);this.C=a;this.D=b;this.B=c;this.F=m;this.G=k;this.o=f;this.A=e};
lv=function(){};
xga=function(a,b){var c;(0,g.H)(g.Jd(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new jv:null;break;case "params":null!=c&&wga(this,c,a)}},a);
return c};
wga=function(a,b,c){(0,g.H)(g.Jd(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.D=c;break;case "attribution_text":b.C=c;break;case "signals":b.F=(0,window.parseInt)(c,10);break;case "audio_muted_on_start":b.o=Kr(c,!1)}},a)};
mv=function(){this.fb=null};
nv=function(){};
ov=function(){};
pv=function(){};
qv=function(a){this.data=a||{}};
rv=function(a,b,c){a=a.data[b];return null!=a?a:c};
tv=function(a,b){return!!rv(a,b,void 0)};
qr=function(a,b){return rv(a,b,"")};
uv=function(a,b,c){a=a.data;a[b]||(a[b]=[]);return a[b][c]};
vv=function(a,b){return a.data[b]?a.data[b].length:0};
wv=function(a){this.data=a||{}};
xv=function(a){this.data=a||{}};
yv=function(a){this.data=a||{}};
zv=function(a){this.data=a||{}};
Av=function(a){this.data=a||{}};
Bv=function(a){this.data=a||{}};
Cv=function(a){this.data=a||{}};
Dv=function(a){this.data=a||{}};
Cs=function(a){this.data=a||{}};
Wq=function(a){return new Bv(a.data.product_card)};
dr=function(a){return new zv(uv(a,"action",0))};
Bs=function(a){return tv(a,"show_in_endcap")};
Es=function(a){return tv(a,"show_in_companion")};
Jv=function(){if(!Ev){var a={};Ev={g:a};a.type=Fv;a.id=Gv;a.link_url=Gv;a.title=Gv;a.image=Th(Hv());a.event=Uh(Iv());a.target=Gv}return Ev};
sr=function(a){return qr(a,"title")};
cr=function(a){return qr(a,"target")};
Iv=function(){if(!Kv){var a={};Kv={g:a};a.type=Fv;a.base_url=Gv}return Kv};
$q=function(a){return new Cs(a.data.image)};
Xq=function(a){return new Cv(uv(a,"offer",0))};
Zq=function(a){return qr(a,"merchant")};
ar=function(a){return qr(a,"price")};
Lv=function(a){return new zv(uv(a,"action",0))};
tr=function(a){return qr(a,"description")};
Hv=function(){if(!Mv){var a={};Mv={g:a};a.image_url=Gv;a.thumbnail_url=Gv;a.image_height=Nv;a.image_width=Nv}return Mv};
Ds=function(a,b){a.data.image_url=b};
Ov=function(a,b,c){Qp.call(this,c);this.o=a;this.A=b||null};
Pv=function(a){this.g=a};
Rv=function(a,b,c){for(var d={},e=0;e<b.attributes.length;e++){var f=b.attributes[e],k=c.g[f.nodeName];if(k)switch(k.type){case "b":d[f.nodeName]="false"!=f.nodeValue;break;case "d":case "f":d[f.nodeName]=(0,window.parseFloat)(f.nodeValue);break;case "e":d[f.nodeName]=Qv[b.nodeName][f.nodeName][f.nodeValue];break;case "i":d[f.nodeName]=(0,window.parseInt)(f.nodeValue,10);break;default:d[f.nodeName]=f.nodeValue}}for(e=0;e<b.childNodes.length;e++)if(f=b.childNodes[e],f.nodeType==window.Node.ELEMENT_NODE){k=
c.g[f.nodeName];var l=Rv(a,f,k.be);3==k.label?(d[f.nodeName]||(d[f.nodeName]=[]),d[f.nodeName].push(l)):d[f.nodeName]=l}return d};
yga=function(a,b){var c=new op;(0,g.H)(g.Jd(b),function(a){"CustomTracking"==a.nodeName&&null!=g.Jd(a)&&(c=Qr(a,!1,(0,g.A)(function(a,b){return Sv(a,b)},this)))},a);
return c};
Sv=function(a,b){return g.xm(b,{ACTTYPE:{toString:function(){switch(a){case "video_card_endcap_action":return"action_headline_click";default:return""}}}})};
Tv=function(a,b){Qp.call(this);this.A=a;this.o=g.F(b)};
Uv=function(a,b){Qp.call(this);this.o=a;this.A=b};
Vv=function(){this.fb=null};
Wv=function(a,b){this.logger=null;this.A=b;this.g={};this.o=[];this.g.CustomTracking=Qr;this.g.UI=this.C};
Xv=function(a,b){if(null==b)return null;var c={};(0,g.H)(g.Jd(b),function(a){c[a.nodeName]=null!=this.g[a.nodeName]?this.g[a.nodeName].call(this,a):null},a);
return null==c.UI?null:c};
Yv=function(){Wv.call(this,0,"mute_");this.g.SurveyOptions=this.B};
Zv=function(){Qp.call(this);this.o=""};
$v=function(){this.fb=null};
aw=function(a,b,c,d){Qp.call(this);this.B=a;this.A=b;this.C=c;this.o=d};
bw=function(){this.fb=null};
cw=function(){Qp.call(this)};
dw=function(){this.fb=null};
zga=function(a,b){(0,g.H)(g.Jd(b),function(a){a.nodeName==this.g.vG&&Fr(a)},a)};
ew=function(a,b,c,d,e,f){Qp.call(this);this.C=a||"";this.D=b||"";this.F=c||"";this.B=d;this.o=e;this.A=f};
fw=function(){this.fb=null};
gw=function(a){Qp.call(this);this.o=a};
hw=function(){this.fb=null};
iw=function(){Wv.call(this,0,"why_this_ad_");this.o.push("targeting_reason")};
jw=function(a,b){return null!=a?(0,g.Nr)(b,function(b){return b in a}):!1};
Aga=function(a,b){return null!=a?(0,g.Ik)(b,function(b){return b in a}):!1};
kw=function(){};
lw=function(){Qp.call(this)};
mw=function(){};
nw=function(){};
ow=function(a){this.B=a;this.logger=null};
pw=function(a){if(null==a)return!1;a=g.Ld(a);return null!=a&&"VAST"==a.nodeName};
rw=function(a,b){var c=[],d=null;try{var e=g.yr(a),f=g.Ld(e);null!=f&&"CompanionAds"==f.nodeName&&(d=qw(ow.prototype,f,b))}catch(k){}null!=d&&c.push(d);return c};
tw=function(a){if(null==a)return 0;a=(0,window.parseInt)(a.getAttribute("version"),10);return g.qa(a)&&!(0,window.isNaN)(a)?a:0};
Cga=function(a){var b=[],c=g.Ld(a.B),d=tw(c);Gr(c,a.g.fE,function(a){var c=uw(a);if(null==c)throw Ar(a);var e=a.getAttribute(this.o.fm);a=Number(a.getAttribute(this.o.jv));var l=e||null;e=a||0;var m=null,n=null;a=[];for(var q=[],r=[],w=[],z=new Pl,B,C=c.nodeName==this.g.IG,N=C,da=C,Ga=null,Da=g.Jd(c),Ea=0,Me=Da.length;Ea<Me;Ea++){var Ya=Da[Ea];switch(Ya.nodeName){case this.g.gE:Fr(Ya);case this.g.YF:break;case this.g.EG:if(C){if(null!=B)throw Br(Ya);B=Fr(Ya);Ga=yfa(B);N=Kr(c.getAttribute(this.o.mE),
N);da=Kr(c.getAttribute(this.o.eF),da)}else throw Ar(Ya);break;case this.g.jE:m=Fr(Ya);break;case this.g.kE:n=Fr(Ya);break;case this.g.TE:Fr(Ya);break;case this.g.tG:Fr(Ya);break;case this.g.hm:Ya=Fr(Ya);Or(Ya)&&a.push(Mr(Ya));break;case this.g.ERROR:Ya=Fr(Ya);q.push(Mr(Ya));break;case this.g.LE:w=Bga(this,Ya);r=w.creatives;w=w.xH;break;case this.g.aF:var Rc=Ya;z=Ga;Ya=new Pl;try{var Md=Dr(Rc,this.g.EXTENSION);Rc=0;for(var fg=Md.length;Rc<fg;Rc++){var Qb=Md[Rc],db=Qb.getAttribute(this.o.Gv);null!=
db?db=db.toLowerCase():db="generic";switch(db){case "programmatic":var Xb=(new $v).parse(Qb);break;case "geo":Xb=(new mw).parse(Qb);break;case "pod":Xb=(new kw).parse(Qb);break;case "waterfall":Xb=(new nw).parse(Qb);break;case "dart":Xb=(new nv).parse(Qb);break;case "dfp":db="DFP";Xb=(new ov).parse(Qb);break;case "adsense":db="AdSense";Xb=(new mv).parse(Qb);break;case "textad":db="TextAd";Xb=(new fw).parse(Qb);break;case "templatead":db="TemplateAd";Xb=(new dw).parse(Qb);break;case "infocards":db=
"InfoCards";var ci=new Pv(!0);Xb=ci.parse(Qb);break;case "infocardstracking":db="InfoCardsTracking";ci=new Pv(!1);Xb=ci.parse(Qb);break;case z:case "prefetchedad":db="LocalRedirect";var Wg=Qb;if(null==Wg)Xb=null;else{var cc=null,rj=Dr(Wg,"AdXml");if(1==rj.length){var sj=g.Ld(rj[0]);if(null!=sj)try{cc=Cr(sj)}catch(Ne){cc='<?xml version="1.0" encoding="UTF-8"?>'+zr(sj)}else cc='<?xml version="1.0" encoding="UTF-8"?>'+zr(sj)}var nd=Dr(Wg,"VASTAdTagURI");Wg=null;1==nd.length&&(Wg=nd[0].textContent);Xb=
new Tv(cc,Wg)}break;case "viral":db="viral";Xb=(new hw).parse(Qb);break;case "metrics":db="metrics";Xb=(new Vv).parse(Qb);break;case "adx":db="adx";Xb=(new Sr).parse(Qb);break;case "why_this_ad":db="why_this_ad";Xb=(new iw).parse(Qb);break;case "mute":db="mute";Xb=(new Yv).parse(Qb);break;case "sodar":Xb=(new bw).parse(Qb);break;case "adformat":db="AdFormat";Xb=(new iv).parse(Qb);break;default:var tj=new pv;db="generic";Xb=tj.parse(Qb)}if(null!=Xb){var Wk=Ya.get(db);null!=Wk?"generic"==db&&(tea(Wk,
Xb.g),Ya.set(db,Wk)):Ya.set(db,Xb)}}}catch(Ne){if(!g.wa(Ne.Rb)||1105==Ne.Rb())throw Ne;}z=Ya}}c=g.F(l);Md=m;a:if(E(g.F(m)))fg="UNKNOWN";else switch(fg=m.toUpperCase(),fg){case "ADSENSE":case "ADSENSE/ADX":case "ADSENSE-VIRAL":case "DART":case "DART_DFP":case "DART_DFA":case "FREEWHEEL":case "GDFP":case "SHOPPING":case "402":case "YT:ADSENSE":case "YT:DOUBLECLICK":case "YT:SHOPPING":case "YT:FREEWHEEL":case "VIRAL":case "VIRAL-RESERVE":break a;default:fg="UNKNOWN"}z.get("programmatic");Qb=z;db=null;
z=z.get("AdSense");null!=z&&(z=Rp(z,"vast2tracking"),null!=z&&!g.kb(z)&&(db=z[0]));e=new Wr(c,Md,fg,0,n,0,0,0,e,q,a,r,w,Qb,B,N,da,db);null!=e&&(e.Ra=d,b.push(e))},a);
return b};
uw=function(a){var b=null;a=g.Jd(a);for(var c=0,d=a.length;c<d;c++)switch(b=a[c],b.nodeName){case "InLine":case "Wrapper":break;default:throw Ar(b);}return b};
Dga=function(a){if(E(g.F(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}};
Bga=function(a,b){var c=[],d=[];Gr(b,a.g.KE,function(a){var b=a.getAttribute(this.o.jv),e=window.NaN;E(g.F(b))||(e=(0,window.parseFloat)(b));a.getAttribute(this.o.hE);b=a.getAttribute(this.o.fm);var l=!1,m=[];a=g.Jd(a);for(var n=0,q=a.length;n<q;n++){var r=a[n];switch(r.nodeName){case this.g.CG:var w=r,z=Fr(w);z=g.F(z);E(z)&&w.getAttribute(this.o.pF);r.getAttribute(this.o.oF);break;case this.g.LINEAR:if(l)throw Br(r);l=Ega(this,r,(0,window.isNaN)(e)?0:e,b||null);tb(c,l);tb(m,l);l=!0;break;case this.g.AE:if(l)throw Br(r);
l=qw(this,r,(0,window.isNaN)(e)?0:e);tb(d,l);l=!0;break;case this.g.NF:if(l)throw Br(r);l=Fga(this,r,(0,window.isNaN)(e)?0:e,b||null);tb(c,l);tb(m,l);l=!0}}n=0;for(q=m.length;n<q;n++);},a);
return{creatives:c,xH:d}};
Fga=function(a,b,c,d){var e=[],f=new op;b=g.Jd(b);for(var k=0,l=b.length;k<l;k++){var m=b[k];switch(m.nodeName){case a.g.MF:m=Gga(a,m,c,d);null!=m&&e.push(m);break;case a.g.Pp:f=Qr(m);break;default:throw Ar(m);}}0!=e.length||f.isEmpty()||(a=new Jp(null,new g.dd(-1,-1),"",null,""),a.g=c,a.ha=d,e.push(a));(0,g.H)(e,function(a){f&&(a.rj=f)});
return e};
vw=function(a,b){var c={};c.id=b.getAttribute(a.o.fm);c.adSlotId=b.getAttribute(a.o.iE);c.apiFramework=b.getAttribute(a.o.Yl);var d=Za(b.getAttribute(a.o.Df)),e=Za(b.getAttribute(a.o.Ue));c.size=new g.dd(d,e);d=b.getAttribute(a.o.ZE);e=b.getAttribute(a.o.YE);E(g.F(d))||E(g.F(e))||(c.W2=new g.dd(Za(d),Za(e)));return c};
Gga=function(a,b,c,d){var e=vw(a,b);b.getAttribute(a.o.Yl);b.getAttribute(a.o.fG);b.getAttribute(a.o.zF);var f=b.getAttribute(a.o.IF);f=Ir(f,-1);var k=[];new Pl;var l={},m="",n=null,q=[];b=g.Jd(b);for(var r=0,w=b.length;r<w;r++){var z=b[r];switch(z.nodeName){case a.g.PF:q.push(Fr(z));break;case a.g.OF:n=Fr(z);break;case a.g.wp:l=ww(z);m=g.F(Fr(z));break;case a.g.gm:case a.g.jm:case a.g.dm:z=xw(a,z);null!=z&&k.push(z);break;default:throw Ar(z);}}a=fv(e.id,e.size,k);yp(a,m,l);a.J=e.apiFramework;a.Va=
n;a.L=q;a.Aa=f;a.g=c;a.ha=d;return a};
xw=function(a,b){var c=Er(b,a.o.ME);if(null!=c&&"text/javascript"==c)return null;a:{var d=b.nodeName;switch(d){case a.g.jm:d="Static";break a;case a.g.gm:d="IFrame";break a;case a.g.dm:d="Html";break a;default:throw hn(Hga,null,d);}}var e=Fr(b);null!=e||(e="");return new gv(d,c,e)};
qw=function(a,b,c){var d=[],e=Dga(Er(b,a.o.cG));Gr(b,a.g.zE,function(a){var b=vw(this,a);var e=[],f=new op,n=null,q=[];a=g.Jd(a);for(var r=0,w=a.length;r<w;r++){var z=a[r];switch(z.nodeName){case this.g.CE:q.push(Fr(z));break;case this.g.Pp:f=Qr(z,!0);break;case this.g.BE:n=Fr(z);break;case this.g.nE:Fr(z);break;case this.g.wp:Fr(z);break;case this.g.gm:case this.g.jm:case this.g.dm:z=xw(this,z);null!=z&&e.push(z);break;default:throw Ar(z);}}b=g.kb(e)?null:uga(b,n,q,c,f,e);null!=b&&d.push(b)},a);
return new tga(d,e)};
Ega=function(a,b,c,d){var e=new op,f={},k="",l=[],m=null,n=new Pl,q=[],r=[],w=0,z=Pr(Er(b,a.o.lG));b=g.Jd(b);for(var B=0,C=b.length;B<C;B++){var N=b[B];switch(N.nodeName){case a.g.jF:r=Iga(a,N);break;case a.g.wp:f=ww(N);k=g.F(Fr(N));break;case a.g.Bp:w=Ir(Fr(N),0);break;case a.g.Pp:e=Qr(N);break;case a.g.DF:q=Jga(a,N);break;case a.g.FG:l=Kga(a,N);n=l.customClicks;m=l.clickThrough;l=l.clickTrackingUrls;break;default:throw Ar(N);}}(0,g.H)(l,function(a){tp(e,"click",a)});
a=new Cp(w,m,n,q,z,r);yp(a,k,f);a.g=c;a.ha=d;e&&(a.rj=e);return a};
Kga=function(a,b){for(var c=null,d=[],e=new Pl,f=g.Jd(b),k=0,l=f.length;k<l;k++){var m=f[k];switch(m.nodeName){case a.g.wE:c=Fr(m);break;case a.g.xE:m=Fr(m);d.push(m);break;case a.g.PE:var n=Er(m,a.o.fm);null!=n||(n="");var q=e.get(n,[]);q.push(Fr(m));e.set(n,q);break;default:throw Ar(m);}}return{clickThrough:c,clickTrackingUrls:d,customClicks:e}};
Jga=function(a,b){for(var c=[],d=Dr(b,a.g.CF),e=0,f=d.length;e<f;e++){var k=d[e],l=Er(k,a.o.SE),m=Er(k,a.o.Gv);Er(k,a.o.GG);var n=Za(k.getAttribute(a.o.Df)),q=Za(k.getAttribute(a.o.Ue)),r=k.getAttribute(a.o.Yl),w=Fr(k),z=Hr(k.getAttribute(a.o.Iu)),B=Hr(k.getAttribute(a.o.HF));k=Hr(k.getAttribute(a.o.BF));l=new Bp(l,m,0,z,B,k,n,q,w,r);c.push(l)}return c};
Iga=function(a,b){var c=[];Gr(b,a.g.iF,function(a){var b=a.getAttribute(this.o.ZF);var d=Er(a,this.o.KG),k=Er(a,this.o.RG),l=Za(a.getAttribute(this.o.Df)),m=Za(a.getAttribute(this.o.Ue)),n=new g.dd(l,m);l=a.getAttribute(this.o.Yl);m=Pr(Er(a,this.o.QF));var q=a.getAttribute(this.o.Bp);q=Ir(q,-1);var r=[],w=[],z={};a=g.Jd(a);for(var B=0,C=a.length;B<C;B++){var N=a[B];switch(N.nodeName){case this.g.nF:w.push(Fr(N));break;case this.g.kF:z=[];var da=null;N=g.Jd(N);for(var Ga=0,Da=N.length;Ga<Da;Ga++){var Ea=
N[Ga];switch(Ea.nodeName){case this.g.lF:da=Fr(Ea);break;case this.g.mF:z.push(Fr(Ea));break;default:throw Ar(Ea);}}z={iconClickThrough:da,nJ:z};break;case this.g.gm:case this.g.jm:case this.g.dm:da=xw(this,N);null!=da&&r.push(da);break;default:throw Ar(N);}}g.kb(r)?b=null:(a=z,n=fv("icon"+b,n,r),n.J=l,b=new bu(n,b,d,k,q,m,a.iconClickThrough,a.nJ,w));null!=b&&c.push(b)},a);
return c};
ww=function(a){a=Fr(a);return null!=a?Wda(a):{}};
yw=function(a){Gu.call(this,a);this.g=this.fb=null;this.N={};this.A=!0;this.J=this.I=this.F=!1;this.D=this.L=0;this.o=null;this.C=0;this.B=1;this.G=-1;this.V=!1;this.O=2==P.F};
zw=function(a){var b=a.cd("getAdLinear");return g.pa(b)?b:a.A};
Aw=function(a){if(!a.A){var b=a.cd("getAdRemainingTime");b=g.qa(b)?b:-2;if(!g.qa(b)||0>b)b=30;g.ug(a.G);a.G=g.tg(a.stop,1E3*b,a)}};
Cw=function(a,b){var c=jn(Bw,b,void 0),d=lq(c,a.la()),e=gs(a.la());en(e,d);Bw.message=c.Ad();mn(a,Bw,b);a.stop()};
Dw=function(a){a.V||(a.V=!0,Lu(a,"complete"))};
Ew=function(a){Gu.call(this,a);this.C=this.g=this.fb=null;this.A=!0;this.Y=this.L=this.F=!1;this.V=Xa();this.I=this.N=0;this.G=-1;this.o=null;this.D=0;this.B=1;this.J=-1;this.O=!1};
Fw=function(a){var b=a.jd("getAdLinear");return g.pa(b)?b:a.A};
Gw=function(a){if(!a.A){var b=a.jd("getAdRemainingTime");b=g.qa(b)?b:-2;if(!g.qa(b)||0>b)b=30;g.ug(a.J);a.J=g.tg(a.stop,1E3*b,a)}};
Hw=function(a,b,c,d){d=jn(b,c,d);var e=lq(d,a.la()),f=gs(a.la());en(f,e);b.message=d.Ad();mn(a,b,c)};
Iw=function(a){a.O||(a.O=!0,Lu(a,"complete"))};
Jw=function(a){Dm.call(this,"adMetadata",a)};
Kw=function(a){switch(a){case 1:return"endslate";default:return"fullslot"}};
Lw=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};
Mw=function(){};
Sw=function(a){var b;(b=a.g)||(b={},Rw(a)&&(b[0]=!0,b[1]=!0),b=a.g=b);return b};
Tw=function(){};
Uw=function(a){return(a=Rw(a))?new window.ActiveXObject(a):new window.XMLHttpRequest};
Rw=function(a){if(!a.o&&"undefined"==typeof window.XMLHttpRequest&&"undefined"!=typeof window.ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new window.ActiveXObject(d),a.o=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.o};
Vw=function(a){g.Ef.call(this);this.headers=new Pl;this.O=a||null;this.A=!1;this.N=this.g=null;this.aa=this.J="";this.o=0;this.D="";this.B=this.Y=this.I=this.V=!1;this.C=0;this.F=null;this.ba="";this.L=this.G=!1};
Ww=function(a,b){a.C=Math.max(0,b)};
Lga=function(a){return g.sd&&g.oc(9)&&g.qa(a.timeout)&&g.t(a.ontimeout)};
Mga=function(a){return"content-type"==a.toLowerCase()};
Zw=function(a,b){a.A=!1;a.g&&(a.B=!0,a.g.abort(),a.B=!1);a.D=b;a.o=5;Xw(a);Yw(a)};
Xw=function(a){a.V||(a.V=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
cx=function(a){if(a.A&&"undefined"!=typeof $w)if(a.N[1]&&4==ax(a)&&2==a.getStatus())bx(a,"Local request error detected and ignored");else if(a.I&&4==ax(a))g.tg(a.Lx,0,a);else if(a.dispatchEvent("readystatechange"),4==ax(a)){bx(a,"Request complete");a.A=!1;try{var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var f=g.Fg(String(a.J))[1]||null;if(!f&&v.self&&v.self.location){var k=v.self.location.protocol;
f=k.substr(0,k.length-1)}e=!Nga.test(f?f.toLowerCase():"")}d=e}if(d)a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.o=6;try{var l=2<ax(a)?a.g.statusText:""}catch(m){l=""}a.D=l+" ["+a.getStatus()+"]";Xw(a)}}finally{Yw(a)}}};
Yw=function(a,b){if(a.g){dx(a);var c=a.g,d=a.N[0]?g.y:null;a.g=null;a.N=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
dx=function(a){a.g&&a.L&&(a.g.ontimeout=null);g.qa(a.F)&&(g.ug(a.F),a.F=null)};
ax=function(a){return a.g?a.g.readyState:0};
ex=function(a){try{return a.g?a.g.responseText:""}catch(b){return""}};
bx=function(a,b){return b+" ["+a.aa+" "+a.J+" "+a.getStatus()+"]"};
Oga=function(a,b,c,d){var e=new g.Vl("https://www.googleapis.com/youtube/v3/videos");g.dm(e,"id",a);g.dm(e,"part","snippet,status,statistics");g.dm(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus,items/statistics/viewCount");null!=d&&(b=(0,g.A)(b,d),c=(0,g.A)(c,d));fx(new Vw,e,b,c)};
Pga=function(a,b,c,d){var e=new g.Vl("https://www.googleapis.com/youtube/v3/channels");g.dm(e,"id",a);g.dm(e,"part","snippet,statistics,brandingSettings");g.dm(e,"fields","items/id,items/snippet/title,items/snippet/thumbnails/default/url,items/statistics/videoCount,items/brandingSettings/image/bannerImageUrl");null!=d&&(b=(0,g.A)(b,d),c=(0,g.A)(c,d));fx(new Vw,e,b,c)};
fx=function(a,b,c,d){g.dm(b,"key","AIzaSyA-dlBUjVQeuc4a6ZN4RkNUYDFddrVLxrA");Ww(a,2E3);var e=new g.nm(a);sm(e,a,"success",function(a){a=a.target;var b=a.g?g.xg(a.g.responseText):void 0;c(b||{});e.dispose();a.dispose()});
sm(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.o&&(b=Error(Lw(a.o)));d(b);e.dispose();a.dispose()});
a.send(b)};
gx=function(a,b,c,d,e,f,k,l){f=void 0===f?window.Infinity:f;k=void 0===k?!1:k;Bi.call(this,a,l);this.C=0;this.J=f;this.Y=b;this.L=c;this.V=d;this.aa=e;this.ba=!("csi.gstatic.com"!==this.L||!this.g.navigator||!this.g.navigator.sendBeacon);this.F={};this.g.performance&&this.g.performance.now||(this.F.dat=1);this.G={};this.N=!k;this.A=(0,g.A)(this.O,this);this.I=g.Aa(this.g.setTimeout,this.A,1100);this.B=this.g.setTimeout(this.A,1E4);"complete"===this.g.document.readyState?this.g.setTimeout(this.A,0):
$h(this.g,"load",this.I);$h(this.g,"unload",this.A)};
hx=function(a){var b=g.qa(a.value)?Math.round(a.value).toString(36):a.value,c=Math.round(a.duration);return""+a.label+(null!=a.slotId?"_"+a.slotId:"")+("."+b)+(0<c?"_"+c.toString(36):"")};
Qga=function(a,b){a.C++;var c=new si(void 0,"~");xi(c,"puid",a.C.toString(36)+"~"+(0,g.G)().toString(36));Xh(a.F,function(a,b){xi(c,b,a)});
Xh(a.G,function(b,d){xi(c,d,b);delete a.G[d]});
Xh(b,function(a,b){xi(c,b,a)});
var d=yi(c,a.Y,a.L,""+a.V+a.aa+"&");a.ba&&a.g.navigator.sendBeacon(d,null)||di(a.g,d)};
kx=function(){this.g=null;if((Tm(Qm(),21592081)||Tm(Qm(),21592082))&&!P.g()){this.g=new gx(1,"https:","csi.gstatic.com","/csi?v=2&s=","ima",void 0,!0);if(ix)var a=ix;else{(a=bi())?(a=a.master,a=Wh(a)?a:null):a=null;a=a||ji();var b=a.google_persistent_state_async;a=null!=b&&"object"==typeof b&&null!=b.S&&"object"==typeof b.S?ix=b:a.google_persistent_state_async=ix=new wca}b=ji();var c=bi(b);c?((b=c||bi())?(c=b.pageViewId,g.u(b.clientId)&&(c+=b.clientId.replace(/\D/g,"").substr(0,6)),b=c):b=null,b=
+b):(b=uk(b).nu,(c=b.google_global_correlator)||(b.google_global_correlator=c=1+Math.floor(Math.random()*Math.pow(2,43))),b=c);c=Rga[7]||"google_ps_7";a=a.S;var d=a[c];a=void 0===d?a[c]=b:d;jx(this,"c",a);a=Um(Qm());E(g.F(a))||jx(this,"e",a)}this.o="0"};
lx=function(){var a=kx.getInstance();a.g&&(a.g.Ej(),a.g=null)};
jx=function(a,b,c){a.g&&c&&(a.g.F[b]=c)};
mx=function(a){var b=kx.getInstance();if(b.g&&Sga){var c=b.g,d=Ci();c.o&&c.Do(new Ai(a,4,d,0,void 0));Tm(Qm(),21592082)&&(a=b.g,!a.B&&a.o&&a.N&&(a.B=a.g.setTimeout(a.A,Math.min(1E3<<a.C,6E4))))}};
Tga=function(a,b){if(b){var c=/iu\=\/(\d+)\//.exec(Ka(b)),d=g.F((new g.Vl(b)).g.get("client"));a.o=c&&2==c.length?c[1]:E(d)?"0":d}else a.o="0"};
Uga=function(a,b){this.o=a;this.g=b};
nx=function(a){this.J=a;this.g=[];this.o=new g.rg(500);g.M(this,this.o);this.C=new g.nm(this);pm(this.C,this.o,"tick",this.D,this);g.M(this,this.C);this.B=1;this.I=!1;this.F=this.A=0;this.G=P.aa};
ox=function(a){if(!a.o.enabled){a.D();a.o.start();var b=(0,g.G)();a.F=b;0===a.A&&(a.A=b)}};
px=function(a){var b=0,c=0,d=0;2<a.g.length&&(b=a.g[a.g.length-1].g-a.g[0].g,c=a.g[a.g.length-1].o-a.g[0].o);0<a.g.length&&(d=a.g[a.g.length-1].o);var e=-1,f=(0,g.G)()-a.A;a.A===a.F&&0<e&&(e=d/f);Vn(Sn.getInstance(),47,{t:a.I,lpp:a.B,wl:a.g.length,se:b,me:c,n:!1,am:!1,mt:d,opp:e,ose:f,mwl:a.G},!0)};
qx=function(a){if(a&&a.items&&a.items.length){a=a.items[0];this.videoId=a.id;var b=a.statistics;b&&null!=b.viewCount&&(b=ab(b.viewCount),this.ig=(0,window.isNaN)(b)?-1:b);if(b=a.snippet)this.channelId=b.channelId,this.title=b.title;if(a=a.status)this.isListed="unlisted"!=a.privacyStatus}};
Vga=function(a){return'<a target="_blank" href="'+Q(a.url)+'" class="'+Q("fullslot-attribution-button")+'">'+Q(a.text)+"</a>"};
Wga=function(a){return'<div class="'+Q("fullslot-autoclose")+'">'+Q(a.jH)+"</div></div>"};
rx=function(a){return""+Ca("Ad will close in {$xSeconds}",{xSeconds:Q(a.Mg)})};
sx=function(a){g.Ef.call(this);this.C=new g.rg(200);g.M(this,this.C);this.A=0;this.o=!1;this.N=a;this.J=new g.nm(this);this.J.U(this.C,"tick",this.NQ)};
tx=function(a){a.C.stop();a.o=!1};
vx=function(a,b,c,d,e){sx.call(this,b.g);this.G=b;this.F=c;this.I=this.G.g;this.g=a;this.B=this.D=null;g.S(this.g,Kw(this.F));a=this.g;b=new qt;b.skipOffset=new fr(this.G.B,!1);this.B=new Ot(b,a);d&&d.text&&(d=Zp(Vga,d),this.g.appendChild(d));e?(e=this.g,d=rx({Mg:ux(this.I)}),a=Zp(Wga,{jH:d}),g.Qd(a,d),e.appendChild(a),e=a):e=null;this.D=e};
Xga=function(a){var b=g.I("videoAdUiSkipButton",a.g);return b?g.Dh(b,a.g):new g.ad(0,0)};
ux=function(a){a=Math.ceil(a);return"0:"+(10>a?"0"+a:""+a)};
yx=function(a,b,c,d,e){sx.call(this,d);this.I=a;this.V=b;this.O=e;this.B=new g.nm(this);g.M(this,this.B);this.D=new Ys;g.M(this,this.D);this.L=new Ys;g.M(this,this.L);this.G=new Ys;g.M(this,this.G);(a=wx(c))?(c=a(c),b.appendChild(c),b=g.I("iv-endcap-action",c),this.B.U(this.D,"click",this.F),this.D.Cb(b),b=g.I("iv-endcap-text",c),this.B.U(this.L,"click",this.F),this.L.Cb(b),b=g.I("iv-endcap-image",c),this.B.U(this.G,"click",this.F),this.G.Cb(b),b=c):b=null;this.g=b?g.I("iv-endcap-countdown-inner",
b):null;null!=this.g&&g.nh(this.g,"stroke-dasharray","0 "+xx)};
wx=function(a){switch(a.Yb()){case 1:return Yga;case 4:return Zga}return null};
Yga=function(a){var b=Wq(a);a=0<vv(a,"action")?dr(a):null;return Zp(Uq,{headline:b.nd(),description:qr(b,"description"),image:$q(b).getImageUrl(),action:a?sr(a):"",target:a?cr(a)||qr(a,"link_url"):""})};
Zga=function(a){var b=a.g();a=0<vv(a,"action")?dr(a):null;return Zp(Uq,{headline:b.nd(),description:tr(b),image:b.zg().getImageUrl(),action:a?sr(a):"",target:a?cr(a)||qr(a,"link_url"):""})};
$ga=function(){var a="",b=Ca("Your video will play after this ad.");a+='<div class="'+R("videoAdInterstitial")+'"><p>'+b+"</p></div>";return To(a)};
zx=function(){g.L.call(this);this.A=Zp($ga);this.g=0};
Ax=function(a){a.g&&(g.ug(a.g),a.o(g.y))};
Bx=function(){this.o=this.J=this.Ri=this.g=this.adFormat=null;this.G=this.I=this.F=this.isPharma=this.C=!1;this.timeout=-1;this.B=!1;this.A=this.D=null;this.Wj=this.ek=!1};
Cx=function(a){g.$e.call(this,a)};
Dx=function(a){g.Ef.call(this);this.fb=null;this.B=a;this.N=new Pl;this.J=-1;this.G=this.O=!1;this.F=""};
Ex=function(a){this.paused=!1;this.mute=a.pj();this.volume=a.getVolume()};
Fx=function(a,b,c,d){if(!c||null==a.N.get(b)){d&&!a.G&&(b="error");a.N.set(b,!0);a:{c=b;if(a.A&&a.A.g.A){if("click"==c)break a;"videoLearnMoreClicked"==c&&Du(a.B,new g.$e("click"))}d=aha[c]||null;null!=d&&null!=a.g&&a.g.Ft(d);Du(a.B,new g.$e(c))}a.dispatchEvent(b)}};
Gx=function(a){0>a.J||a.O||!a.g.vk(a.J)&&!a.g.jh()||!a.G||(a.O=!0,Fx(a,"engagedview",!0,!0),a.dispatchEvent(new Cx("viewCount")))};
Hx=function(a){Gx(a);if(P.g()){var b=a.B;if(!(Rl(b.o,"skip")||0>b.C)){for(var c=rp(b.A,"progress"),d=[],e=b.C;e<c.length;e++){var f=c[e];b.C=e+1;d.push(f.g)}0<d.length&&Du(b,new g.$e("progress"),d)}}Fx(a,"complete",!0,!0)};
Jx=function(a){this.g=new Pl;if(a){a=Tl(a);for(var b=a.length,c=0;c<b;c++)Ix(this,a[c])}};
Kx=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+g.za(a):b.substr(0,1)+a};
Ix=function(a,b){a.g.set(Kx(b),b)};
Lx=function(a){Gu.call(this,a);this.g=null;this.F=!1;this.B=new Dx(this.Ob);this.fb=null;this.Y=this.ea=this.G=!1;this.ba=this.D=1;this.A=null;this.aa=new zx;this.I=new Jx;this.fa=!1;this.O=[];this.N=this.L=this.V=!1;this.o=this.C=null;this.da=!on()&&P.g();this.J=!1;Tm(Qm(),324123001)&&(P.V=!0);Tm(Qm(),324123021)&&(P.V=!0);if(a=0<a.length?a[0]:null){var b=kx.getInstance();jx(b,"gqid",ts(a));jx(b,"qqid",pq(a))}bha(this)};
Mx=function(a,b){var c=g.tg(function(){this.I.remove(c);b.call(this)},0,a);
Ix(a.I,c)};
Nx=function(a){a.C&&(g.Ye(a.C),a.C=null);g.Ye(a.Ja);a.Ja=null;g.Ye(a.B);g.Ye(a.Ob);a.Y=!1};
Ox=function(a){a.Pj();null!=a.o&&px(a.o);a.zb()?a.start():a.stop()};
dha=function(a){if(!a.zb())return!1;var b=a.Ia.Mf();if(null==b)return!1;var c=a.la(),d;if(d=c.L?c.L.g.Wk()?c.L.g.Ir():c.L.ld():"")cha(a,b,d);else if(Is(c)&&(d=c.aa,d=g.kb(d)?null:d[0],null!=d&&g.wa(wx(d)))){var e=1==d.Yb();a.g=new yx(a.Ha,b,d,Ps(c),e);a.Wa().U(a.g,"click",(0,g.A)(a.Xw,a,null));a.Ja&&zu(a.Ja,!0);a.Ia.sd()}null!=a.g&&(a.Wa().U(a.g,"timeUpdate",a.CB),a.Wa().U(a.g,"end",a.LH),a.g.start(),Lu(a,"video_card_endcap_impression"));return null!=a.g};
cha=function(a,b,c){Vn(Sn.getInstance(),34,{evt:"start"},!0);var d=g.xd("DIV");g.S(d,"controls");var e=g.xd("DIV");g.S(e,"adDisplay");g.S(e,"endslate");e.innerHTML=c;(c=g.Jd(e)[0])&&g.nh(c,{margin:"0 auto"});(0,g.H)(c.getElementsByTagName("a"),function(a){var b=a.getAttribute("href");b&&this.Wa().U(a,"click",(0,g.A)(this.Xw,this,b))},a);
d.appendChild(e);e=new jv;vga(e,Ps(a.la()));e.B=0;e.A=0;a.g=new vx(d,e,1,{},!0);a.Wa().U(a.g,"skip",a.Yw);b.appendChild(a.g.g);a.Ia.sd();a.Ja&&(lga(a.Ja),wu(a.Ja))};
Qx=function(a,b){Px(a);null!=a.Ha&&a.Ha.yr();a.ia("complete");Lu(a,b);a.Da("instreamAdComplete");Ox(a)};
Px=function(a){a.g&&(a.g.dispose(),a.g=null);a.Ja&&zu(a.Ja,!1);a.F=!1};
Tx=function(a,b,c){Rx(a)&&c?Sx(a,b).then(a.Rv,null,a):(a.Rv(),c&&Sx(a,b))};
eha=function(a){null!=a.Ha&&a.Ha.xr();var b=Rm();b=b.g("use_forced_brand_precap_duration")?b.o("forced_brand_precap_duration_ms"):2E3;nga(a.Ja,b);var c=g.tg(function(){null!=this.Ha&&this.Ha.yr();this.I.remove(c);this.aa.show(this.Ia.Nk(),this.Qa.eu,(0,g.A)(this.Ha.play,this.Ha))},b,a);
Ix(a.I,c)};
Ux=function(a,b,c,d){b=rp(b.g,c);g.kb(b)||(a[d]=b[0].g)};
Vx=function(a,b,c){b=c.getExtension(b);null!=b&&(Ux(a,b,"annotation_click","cta_annotation_clicked"),Ux(a,b,"annotation_close","cta_annotation_closed"),Ux(a,b,"annotation_start","cta_annotation_shown"))};
fha=function(a,b){var c=new Bx;c.adFormat=qq(b);Gs(b)&&!b.fa&&(c.Ri=ns(b));c.J=a.Qa.contentId;if(a.Ja){var d={};Vx(d,"AdSense",b);Vx(d,"dart",b);Vx(d,"DFP",b);c.o=d;c.F=a.Ja.g.B}b.isSkippable()&&!as(b)&&(c.I=!0);d=Rm();c.timeout=d.g("use_variable_load_timeout")?d.o("variable_load_timeout_ms"):a.Qa.lf;var e=b.A;e&&(c.C=e.Uo);c.B=a.Qa.Tk;c.g=pq(b);c.D=a.Qa.kj;c.isPharma=eq(a.hj());c.isPharma||(e=b.getExtension("AdSense"),null!=e&&(c.isPharma=e.isPharma()));c.G=d.g("legacy_autoplay_flag");d=ks(a.la(),
"endscreenClick");d=g.kb(d)?null:g.zg({endscreenClick:d});c.A=d;c.ek=Rx(a);c.Wj=a.zb()&&Ws(a.la());return c};
bha=function(a){var b=0,c=0;(0,g.H)(a.ads,function(a){!Ku(a)||P.g()&&0!=c||(c++,b+=a.getDuration())},a);
var d=1;(0,g.H)(a.ads,function(a){var b=a.C;b.mg=c;Ku(a)&&(b.g=d,b.A=d,d++)},a)};
Wx=function(a){var b=a.o;return b&&b.da&&(b=b.F,!g.kb(b)&&b[0]instanceof Cp)?b[0].hf():ls(a)};
Zx=function(a,b){if(!Ku(b))throw jn(Xx);var c=b.g,d=c.C;if(null!=d)return d;var e=null!=b&&!Yx(a)&&(P.g()||a.Ia.Kn()||a.Ia.sr()||on());d=a.dh(b);e=a.Ha.fC(d,a.Qa.bitrate,a.Qa.mimeTypes||[],e);gha(d,a.Qa.bitrate,e,fs(b));if(null!=e)return c.C=e;try{hha(a,b)}catch(f){}throw jn(iha);};
hha=function(a,b){if(Sn.getInstance().isLoggingEnabled()){var c=new Jx,d=!1;(0,g.H)(a.dh(b),function(a){Ix(c,a.g);"VPAID"==a.A&&(d=!0)},a);
var e=a.Ha.Sq();e={aid:ns(b),mt:c.sb().join(","),smt:e.join(","),hvp:d,st:us(b).join(",")};Vn(Sn.getInstance(),28,e)}};
gha=function(a,b,c,d){if(!P.g())try{var e=(0,g.J)(a,function(a){return a.Wf}),f=(0,g.J)(a,function(a){return a.g});
a={};a.brs=e.join(",");a.mts=f.join(",");a.pubbr=b;a.selbr=null===c?-1:c.Wf;a.selmt=null===c?"":c.g;a.ic=!1;a.nat=!1;a.iyh=Wm(c.o)?"1":"0";a.as=d;Vn(Sn.getInstance(),22,a)}catch(k){}};
$x=function(a){return a.N?!1:a.Qa.Tk&&(!a.Ia.nj()||a.Ia.nj()&&!1)};
Yx=function(a){return a.Qa.Tk&&Fn(a.Ia)&&!a.N&&!0};
cy=function(a){try{var b=a.la();a.A=Zx(a,b);Mx(a,(0,g.A)(Lx.prototype.Zr,a,b,a.A.o,a.A.g))}catch(c){(0,g.ib)(a.ads,b)+1<a.ads.length&&(ay(a,c),a.Pj(),a.zb()?(ln(a,by,c),cy(a)):mn(a,by,c))}};
jha=function(a){try{var b=a.Ee();null!==b&&(a.A=Zx(a,b),Mx(a,(0,g.A)(Lx.prototype.Zr,a,b,a.A.o,a.A.g,!0)))}catch(c){}};
dy=function(a,b){b in a.O||(a.O.push(b),a.ia(b))};
kha=function(a){var b=a.la(),c={};c.pubbr=a.Qa.bitrate;c.ic=!1;c.nat=!1;if(null!=b){a=a.dh(b);var d=b.g;d=d?d.C:null;var e=(0,g.J)(a,function(a){return a.Wf});
a=(0,g.J)(a,function(a){return a.g});
c.brs=e.join(",");c.mts=a.join(",");c.as=fs(b);null===d?(c.selbr=-1,c.selmt="",c.iyh="0",c.murl=""):(c.selbr=d.Wf,c.selmt=d.g,c.iyh=Wm(d.o)?"1":"0",c.murl=d.o)}Vn(Sn.getInstance(),45,c)};
ey=function(a,b,c){ay(a,c);a.Pj();a.zb()?(ln(a,b,c),a.start()):(mn(a,b,c),a.stop())};
ay=function(a,b){var c=jn(by,b);c=lq(c,a.la(),a.Ha);var d=gs(a.la());en(d,c)};
fy=function(a){if(P.o||P.g()){var b=Wx(a.la());null!=b&&$m(b);a.ia("click")}else a.J&&a.ia("click")};
gy=function(a,b){Ob(lha,b)&&pm(a.Wa(),a.B,b,a.yB,a)};
hy=function(a){if(!a.V){var b=a.la(),c=b.D;if(Ts(b)&&!P.g()&&!a.Ia.Kn()&&c){b=a.Ha.getCurrentTime();var d=a.Ha.getDuration(),e=new g.Vl("//s.youtube.com/s");g.dm(e,"ns","yt");g.dm(e,"el","adunit");g.dm(e,"docid",c);g.dm(e,"eurl",window.document.URL);g.dm(e,"len",d.toFixed(2));g.dm(e,"tv","1");g.dm(e,"ps","trueview-instream");g.dm(e,"st",b.toFixed(2));g.dm(e,"et",b.toFixed(2));g.dm(e,"rt",b.toFixed(2));an(e.toString());a.V=!0}}};
mha=function(a){var b=a.la().O;if(null!=b){b=b.videoId;var c=a.Qa.Vi;if(E(g.F(b)))b=null;else{c=new g.Vl((null!=c?c:"//www.youtube.com/")+"watch");var d=c.g;d.set("v",b);$l(c,d);c.I="action=share";b=c.toString()}null!=b&&($m(b),a.oC())}};
nha=function(a){a=iy(a)||jy(a);null!=a&&bn(a,"sharebuttondisplayed")};
iy=function(a){a=a.la().getExtension("AdSense");return null!=a?new g.Vl(a.B):null};
jy=function(a){if(a=a.la().g)if(a=zp(a,"start"),!g.kb(a))return new g.Vl(a[0].g);return null};
oha=function(a){var b=a.la(),c=b.O;null!=c&&(b=cq(c.videoId,null!=Ns(b),a.Qa.Vi),null!==b&&(a.Ha.pause(),$m(b)))};
ky=function(a){Mx(a,function(){this.ia("skip");Ox(this)})};
Sx=function(a,b){return g.jg(pha(a,b).then(a.pT,null,a).then(a.US,null,a).then(a.oT,null,a).then(a.zH,null,a),g.y)};
pha=function(a,b){return new g.Yf(function(a,d){Oga(b,function(b){b=new qx(b);this.zb()&&this.la().D==b.videoId?a(b):d()},function(){d()},this)},a)};
ly=function(a){return a.zb()&&null!=a.la().O&&a.la().O.isListed};
my=function(a){var b=a.la().ha;if(ly(a)&&null!=b){var c=a.Qa.Vi;b=g.F(b.channelId);c=E(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(g.Ha(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.Ha.pause(),$m(c))}};
Rx=function(a){if(Rm().g("website_actions_holdback"))return!1;a=a.la();if(!a||!a.D)return!1;var b=g.eb(a.B,function(a){return 4==a.Yb()&&tv(a.Ye(),"show_in_cta")});
return P.g()&&Ts(a)&&null!=b};
qha=function(a,b,c){var d=a.zb()?a.la().D:null;a=a.la();if(!a||!d)return b;a=g.eb(a.B,function(a){return 4==a.Yb()&&tv(a.Ye(),"show_in_cta")});
if(!a)return b;d=a.g();var e=dr(a);a=La(e&&cr(e)||"");if(Rm().g("website_actions_suppress_advertiser_supplied_text")){e=" ";var f=La(c.authorName)}else e=La(e&&sr(e)||" "),f=La(d.nd()||c.authorName);var k=La(tr(d)||"");c=La(d.zg().getImageUrl()||c.channelIconThumbnailUrl);c='<card type="TYPE_WEBSITE"><action target="'+a+'" title="'+e+'" type="TYPE_EXTERNAL"/><placement hide_in_drawer="true" show_in_cta="true"/><website_card headline="'+f+'" description="'+k+'"><icon image_url="'+c+'"/></website_card></card>';
d=/(<\s*Extension\s+type\s*=\s*"\s*InfoCards\s*"\s*>)/i;return E(b)?b+'<Extension type="InfoCards">'+c+"</Extension>":b.replace(d,"$1"+c)};
ny=function(a){g.Ef.call(this);this.sessionId=a||Xa();this.o=[]};
oy=function(a,b,c,d,e){g.$e.call(this,a);this.Td=b;this.Xf=c;this.iy=d;this.A=e};
py=function(a,b){ny.call(this,b);this.A=a;this.uf=null;this.B=new g.nm(this);this.logger=null;this.B.U(vd(),"message",this.receive)};
qy=function(a){if(null==a||!g.u(a)||!g.Ha(a,"ima://"))return null;a=a.substr(6);try{return g.xg(a)}catch(b){return null}};
rha=function(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.sessionId;e.channel=a.A;return"ima://"+g.zg(e)};
ry=function(a,b){if(null==b)return!1;var c=b.channel;if(null==c||c!=a.A)return!1;c=b.sid;return null==c||"*"!=a.sessionId&&c!=a.sessionId?!1:!0};
sy=function(a,b){g.$e.call(this,"vpaidEvent");this.sessionId=b};
ty=function(a){Gu.call(this,a);this.ba=this.N=this.Tc=!1;this.G=[];this.C=Xa();this.fb=this.g=null;this.o=!0;this.J=-1;this.I=new g.rg(500);this.V=this.F=-1;this.B=1;this.aa=this.Y="";this.O=this.L=this.D=!1};
vy=function(a){var b=js(a.la());P.g()&&(b=sha(a,b));var c=g.F(ls(a.la())),d=a.la();if(Ku(d)){var e=d.g,f=Ep(e,"javascript");null!=f&&(e.C=f)}d=Qs(d);c={desiredBitrate:a.Qa.bitrate,creativeData:b,viewMode:a.Zc,clickThroughUrl:c,adUrl:d,volume:a.B};d.match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=b.indexOf("yt_override")&&null!=a.Qa.surveyCreativeData&&(c.creativeData=a.Qa.surveyCreativeData);uy(a,"initAd",c);(0,g.H)(a.G,function(a){uy(this,a.type,a.params)},a);
a.Tc=!0;a.G=[]};
wy=function(a,b,c){c=c||null;a.Tc?uy(a,b,c):a.G.push({type:b,params:c})};
uy=function(a,b,c){c=c||{};c.session=a.C;c.type=b;yy()?window.parent.postMessage(g.zg(c),"*"):null!=a.A.contentWindow&&a.A.contentWindow.postMessage(g.zg(c),"*")};
uha=function(a,b){var c={};b=Ta(b);var d;b.length?d=b.split(/\s+/):d=[];(0,g.H)(d,function(a){c[a]=!0});
g.Kb(tha,function(a,b){Rm().g(b)&&(c[a]=!0)},a);
return g.Rb(c).join(" ")};
sha=function(a,b){var c=g.yr(b),d=a.la().getExtension("why_this_ad");if(null!=d){var e=d.o;e&&3==e.length&&(0,g.H)(c.firstChild.childNodes,function(a){a.setAttribute("ad_settings_text_prefix",e[0]);a.setAttribute("ad_settings_text_link",e[1]);a.setAttribute("ad_settings_text_suffix",e[2])},a)}return zr(c)};
zy=function(a,b,c,d){d=jn(b,c,d);var e=lq(d,a.la()),f=gs(a.la());en(f,e);b.message=d.Ad();mn(a,b,c)};
Cy=function(a,b){if(g.u(b.type))switch(b.type){case "friendlyReady":vy(a);break;case "videoCall":switch(b.func){case "load":case "play":a.Ia.Sf();a.aa!=b.src&&(a.aa=b.src,a.g.load(b.src,b.mimetype));a.g.play();break;case "pause":a.g.pause()}break;case "returnDuration":a.F=b.duration;break;case "returnRemainingTime":a.J=b.remainingTime;break;case "AdClickThru":a.Da("click");a.ia("click");break;case "AdDurationChange":a.F=b.duration;a.J=b.remainingTime;a.la().g.ka=a.F;a.ia("durationChange");break;case "AdError":zy(a,
Bw,Error(b.message));a.stop();break;case "AdExpandedChange":a.ia("expandedChanged");break;case "AdImpression":var c=a.la();g.kb(is(c))||a.xd(c);Lu(a,"impression");a.L=!0;Ay(a,51);break;case "AdLinearChange":c=b.isLinear;!a.o&&c?(a.ia("contentPauseRequested"),wy(a,"becameLinear")):!c&&a.o&&(a.ia("contentResumeRequested"),wy(a,"becameNonlinear"),wy(a,"getAdRemainingTime"),wy(a,"getAdDuration"));a.o=c;var d=a.la();d.ra=!0;d.bb=c;a.ia("linearChanged");break;case "AdLoaded":g.ug(a.V);a.N=!0;d=b.companions;
c=a.la();g.kb(is(c))&&(d=rw(d,c.g.g),g.kb(d)||Vr(c,d));By(a);Lu(a,"loaded");break;case "AdPaused":a.D=!0;Lu(a,"pause");break;case "AdPlaying":a.D=!1;Lu(a,"resume");break;case "AdRemainingTimeChange":a.J=b.remainingTime;c=a.la().getDuration();d=c-a.Lc();Ru(a,d,c);break;case "AdSkipped":Lu(a,"skip");a.stop();break;case "AdSkippableStateChange":Lu(a,"skippableStateChanged");break;case "AdStarted":a.Da("creativeview");Ay(a,52);break;case "AdStopped":a.Da("stop");a.stop();break;case "AdUserAcceptInvitation":a.o?
a.Da("acceptinvitationlinear"):a.Da("acceptinvitation");break;case "AdUserMinimize":a.Da("collapse");break;case "AdUserClose":Lu(a,"userClose");break;case "AdVideoComplete":a.L&&a.O||(c={},c.aic=a.L,c.avc=a.O,Ay(a,56,c));Lu(a,"complete");break;case "AdVideoFirstQuartile":Lu(a,"firstquartile");break;case "AdVideoMidpoint":Lu(a,"midpoint");break;case "AdVideoStart":a.Da("start");a.ia("start");a.O=!0;break;case "AdVideoThirdQuartile":Lu(a,"thirdquartile");break;case "AdVolumeChange":c=b.volume;c!=a.B&&
a.ia("volumeChange",{volume:c});0==c&&0!=a.B?(a.Da("mute"),a.ia("mute")):0==a.B&&0!=c&&a.Da("unmute");a.B=c;a.g.setVolume(c);break;case "AdInteraction":c={};c.id=b.id;a.ia("interaction",c);break;case "Ping":an(b.url)}};
Dy=function(a,b){yy()||uy(a,"wrapperCall",{messageType:b})};
By=function(a){a.N&&a.ba&&(wy(a,"startAd"),a.I.start(),a.o||(wy(a,"becameNonlinear"),wy(a,"getAdRemainingTime")),wy(a,"getAdDuration"))};
Ay=function(a,b,c){try{c=c||{};c.dn=a.Y;c["if"]=yy();c.pid=kx.getInstance().o;var d=qs(a.la()).join();c.xy=d;Vn(Sn.getInstance(),b,c,!0)}catch(e){}};
yy=function(){return 2==P.F};
Ey=function(){Gu.call(this,[]);this.fb=null;this.Zd=this.ae=-1;this.F=!1};
Gy=function(a,b,c,d){if(a.g){var e=a.g;pm(a.Wa(),e,Fy,a.dispatchEvent,a);pm(a.Wa(),e,"companionBackfill",a.dispatchEvent,a);pm(a.Wa(),e,"adError",a.LA,a);pm(a.Wa(),e,"allAdsCompleted",g.y,a);pm(a.Wa(),e,"contentPauseRequested",a.SA,a);pm(a.Wa(),e,"contentResumeRequested",a.Vs,a);pm(a.Wa(),e,"userClose",a.Di,a);pm(a.Wa(),e,"autoClose",a.Ci,a);a.g.Hg(a.Ld);a.g.Rc(b,c,d)}};
Hy=function(a){a.g&&(a.g.destroy(),a.g=null);a.Ia&&a.Ia.hide();g.Ye(a.ac);a.ac=null};
Jy=function(a,b,c){Ey.call(this);this.A=c;this.o=null;this.C=this.D=this.B=!1;this.g&&Hy(this);this.g=b;Iy(this,b)};
Ly=function(a,b,c){var d=(0,g.A)(function(a){ln(this,vha,c);try{var b=Ky([a[0]]);if(b)var d=b;else throw Error("Ads manager creation failure, failed to determine ad type.");Iy(this,d);a=d;try{this.g&&Hy(this),this.g=a,Gy(this,this.Ia,this.content,this.Qa),this.F&&this.g.sj(),this.g.Bb(this.ae,this.Zd,this.Zc),this.g.init(this.Zc),this.start()}catch(m){d=m;var e=a.Lb();xs(e);Ly(this,ys(e),Error(d.Ad()))}}catch(m){e=m,mn(this,e.Ad(),e.Xk)}},a);
a=(0,g.A)(function(){this.ia("contentResumeRequested");mn(this,wha,c);this.destroy()},a);
null!=b?zq(b,d,a):a(null)};
Iy=function(a,b){a.o&&a.o.dispose();a.o=new g.nm(a);g.M(a,a.o);pm(a.o,b,"start",a.hO,a)};
My=function(a){Gu.call(this,[]);this.fb=null;this.o=a;this.A=0;this.g=this.o[this.A];this.B=this.D=this.C=null;this.Zd=this.ae=-1;this.F=!1;xha(this)};
Ny=function(a,b,c,d){if(a.g){a.C=new g.nm(a);var e=a.g,f=a.C;pm(f,e,Fy,a.dispatchEvent,a);pm(f,e,"start",a.AJ,a);pm(f,e,"companionBackfill",a.dispatchEvent,a);pm(f,e,"adError",a.gO,a);pm(f,e,"allAdsCompleted",g.y,a);pm(f,e,"contentPauseRequested",a.xh,a);pm(f,e,"contentResumeRequested",a.dg,a);pm(f,e,"userClose",a.Di,a);pm(f,e,"autoClose",a.Ci,a);a.g.Rc(b,c,d)}};
xha=function(a){var b=0,c=a.o.length;(0,g.H)(a.o,function(a){b+=a.Xe().getDuration()},a);
var d=1;(0,g.H)(a.o,function(a){a=a.Xe().C;a.mg=c;a.g=d;a.A=d;d++},a)};
Py=function(a,b,c){a.A+1>=a.o.length?mn(a,by,c.Xk):(ln(a,by,c.Xk),Oy(a,b))};
Oy=function(a,b){if(a.g===b)if(Qy(a),a.A++,a.A<a.o.length)try{a.g=a.o[a.A],a.g===a.B?(a.C=a.D,a.B=null,a.D=null,a.Ia.hide(),a.Ia.Jn()):(Ny(a,a.Ia,a.content,a.Qa),a.g.Bb(a.ae,a.Zd,a.Zc),a.g.init(a.Zc)),a.start()}catch(c){Py(a,a.g,c)}else a.ia("contentResumeRequested"),a.destroy()};
Qy=function(a){a.C&&(a.C.dispose(),a.C=null);a.g&&(a.g.destroy(),a.g=null);a.Ia&&a.Ia.hide()};
yha=function(a){return'<div class="'+Q("close-padding")+'"><a class="'+Q("close-button")+'" title="'+Q(a.close)+'" role="button" tabindex="0"></a></div>'};
zha=function(){return'<div class="'+Q("recall-button")+'"></div>'};
Aha=function(a){return'<a target="_blank" href="'+Q(a.url)+'" class="'+Q("attribution-button")+'">'+Q(a.text)+"</a>"};
Ry=function(a,b){this.J=a;this.I=g.xd("DIV",{"class":"controls"});this.g=g.xd("DIV",{"class":"adDisplay"});this.Y=b||g.y;this.Of=new g.nm(this)};
Sy=function(a){var b=g.xd("DIV",{"class":"ima-container"});dt(b,"opacity 0.4s");a.Of.U(b,"mouseover",a.jJ);a.Of.U(b,"mouseout",a.NT);b.appendChild(a.I);a.I.appendChild(a.g);return b};
Ty=function(a){var b=window.document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};
Uy=function(a){Gu.call(this,a);this.containerElement=null;this.J=g.xd("DIV",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.B=!1;this.F=[]};
Vy=function(a,b){var c=sea(b);(0,g.H)(c,function(a){tp(this.Ob.A,"click",a)},a)};
Wy=function(a,b){var c=lq(b,a.la()),d=gs(a.la());en(d,c)};
Xy=function(a,b,c,d,e,f,k){g.Ef.call(this);this.o=this.I=0;this.F=a;this.Ac=b;this.ha=c;this.D=null;this.kb=d;this.O=f;this.aa=P.B;this.L=this.C=this.G=this.g=null;this.Zd=this.ae=-1;this.ea="normal";this.Y=null;this.B=e;this.A=[];this.da=this.N=this.fa=this.V=!1;this.ba=k;this.fb=null;Bha(this)};
Yy=function(a,b,c,d){a.ae=b;a.Zd=c;null!=d&&(a.ea=d);null!=a.g&&a.g.Bb(b,c,d)};
Bha=function(a){(0,g.H)(a.F,function(a){Cha(a)})};
Zy=function(a){return a.I<a.F.length&&null!=a.F[a.I]};
Dha=function(a,b){var c;if(c=P.g()&&!g.kb(b)&&0==a.Ac)c=b[0],c=null!=c&&null==Qs(c)&&Ks(c,"nonlinear");return c?(c=rs(b[0]),"ADSENSE"==(0<c.length?c.pop():fs(b[0])).toUpperCase()):!1};
ez=function(a){!Zy(a)||2<=a.A.length-a.o?a.fa||(az(a),a.gg()&&bz(a,a.o)&&cz(a,a.o)&&dz(a,a.o),a.fa=!0,a.dispatchEvent("adBreakInitialized")):$y(a)};
$y=function(a){var b=a.F[a.I];pm(a.J,a.kb,"adsLoaderSdkAdLoaded",a.JA,a);P.B="on_master_ad";Eha(a.kb,b.o,b)};
az=function(a){null==a.Ac||(0,g.Ik)(a.A,function(a){return!a.isBumper()})||(a.A=(0,g.Id)(a.A,function(a){return!(a.isBumper()&&!a.A)}))};
bz=function(a,b){if(b<a.A.length){var c=a.A[b];g.kb(c.g)?c=!1:(c=c.g[0],c=null!=c?!ro(Xr(c),"rm"):!1)}else c=!1;return c};
lz=function(a){if(bz(a,a.o)){var b=a.A[a.o];try{a.N?fz(a,a.g):a.gg()&&cz(a,a.o)?(null===a.C&&dz(a,a.o),gz(a),a.g=a.C,a.G=a.L,a.C=null,a.L=null,a.B.Jn()):(gz(a),a.G=new g.nm(a),a.g=hz(a,b,a.G),fz(a,a.g));null!=a.D&&(a.D.dispose(),a.D=null);if(iz(a.g)){var c=a.Lb();if(null==c||!Ls(c)){var d=a.g.la().g;if(null!==d){var e=d.Aa;0>=e&&!a.O.aw||(0>=e&&(e=15),a.D=new g.rg(1E3*e),tm(a.G,a.D,"tick",a.wQ,a))}}}if(iz(a.g))a.dispatchEvent("contentResumeRequested"),a.B.sd(),a.g.start(),null!=a.D&&a.D.start();else{var f=
a.g;if(null!=f&&f instanceof Lx)a.B.Sf(),a.g.start();else{var k=a.g;if(null!=k&&k instanceof ty){var l=a.g;a.B.sd();l.Wb()?yy()||a.B.Sf():a.dispatchEvent("contentResumeRequested");a.g.start()}else{var m=a.g;if(null!=m&&(m instanceof Ew||m instanceof yw))a.B.sd(),a.g.Wb()||a.dispatchEvent("contentResumeRequested"),a.g.start();else{var n;if(!(n=jz(a.g))){var q=a.g;n=null!=q&&q instanceof Jy}if(n)a.g.start();else throw Error("Unknown ads manager type.");}}}}a.gg()&&bz(a,a.o+1)&&cz(a,a.o+1)&&1==kz(a)&&
dz(a,a.o+1)}catch(r){a.o++,lz(a)}Zy(a)&&$y(a)}else a.dispatchEvent("contentResumeRequested"),mz(a)};
fz=function(a,b){if(null===b)throw Error("Ads manager must be constructed before initialization");b.init(a.ea);null!=a.Y&&b.setVolume(a.Y)};
hz=function(a,b,c){b=nz(a.kb.A,b.g);var d=new Bm(a.B,a.gg());b.Hg(a.ba);pm(c,b,Fy,a.KA,a);pm(c,b,"companionBackfill",a.KA,a);pm(c,b,"adError",a.eO,a);pm(c,b,"allAdsCompleted",g.y,a);pm(c,b,"contentPauseRequested",a.xh,a);pm(c,b,"contentResumeRequested",a.dg,a);pm(c,b,"userClose",a.Di,a);pm(c,b,"autoClose",a.Ci,a);b.Rc(d,{currentTime:0},a.O);b.Bb(a.ae,a.Zd,a.ea);return b};
gz=function(a){a.B.hide();null!=a.D&&(a.D.dispose(),a.D=null);null!=a.G&&(a.G.dispose(),a.G=null);null!=a.g&&(a.g.destroy(),a.g=null)};
oz=function(a){null!=a.L&&(a.L.dispose(),a.L=null);null!=a.C&&(a.C.destroy(),a.C=null)};
jz=function(a){return null!=a&&a instanceof My};
iz=function(a){return null!=a&&a instanceof Uy};
mz=function(a){a.V=!1;a.dispatchEvent("allAdsCompleted")};
kz=function(a){return null===a.g||g.kb(a.g.ads)?0:a.g.ads.length};
Fha=function(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"companionBackfill"==b||"firstquartile"==b){var d=0,e=0;(0,g.H)(a.A,function(a,b){var f=a.g;-1!=(0,g.ib)(f,c)&&a.isBumper();d+=f.length;b<this.o&&(e+=f.length)},a);
b=c.C;var f=e+b.A;b.mg=d+(a.F.length-a.I);b.g=f;b.B=a.ha;b.o=a.Ac}};
dz=function(a,b){var c=a.A[b];a.L=new g.nm(a);a.C=hz(a,c,a.L);fz(a,a.C)};
cz=function(a,b){if(0<=b&&b<a.A.length){var c=a.A[b].g[0];return null!=Qs(c)||null!=Rs(c)?!1:!0}return!1};
Gha=function(a){this.o=a};
pz=function(a){this.o=a;this.g=this.isBumper=!1;this.A=null;this.cn=!1};
Cha=function(a){if(null!=a.o.g&&(a=g.Fg(a.o.g)[6]||null)){var b=null;Jg(a,function(a,d){if(null==b)switch(a){case "max_ad_duration":case "pmxd":b=d/1E3}})}};
qz=function(){this.g=new Pl};
rz=function(a,b,c){if((0,window.isNaN)(c)||!g.qa(c))throw Error("Incorrect time offset.");var d=[];Rl(a.g,c)&&(d=a.g.get(c,[]));(0,g.H)(b,function(a){null!=a&&g.nb(d,a)});
a.g.set(c,d)};
sz=function(a,b){this.g=a;this.o=b};
Iha=function(a){var b=new qz;(0,g.H)(g.Jd(g.Ld(a.g)),function(a){switch(a.nodeName){case "Preroll":a=tz(this,a);rz(b,a,0);break;case "Midroll":var c=Er(a,"timeOffset"),e=Ir(c);if(-1==e)throw hn(uz,null,"timeOffset",g.F(c));a=tz(this,a);rz(b,a,e);break;case "Postroll":a=tz(this,a);rz(b,a,-1);break;default:throw hn(vz,null,a.parentNode.nodeName,a.nodeName);}},a);
if(0==b.g.Db().length)throw hn(Hha);return b};
tz=function(a,b){var c=[];(0,g.H)(g.Jd(b),function(a){switch(a.nodeName){case "Ad":var b=g.F(Fr(a));if(!E(b)){a=Er(a,"bumper");var d=this.o.clone();d.g=b;b=new pz(d);b.isBumper=null!=a;b.g="always"==a;g.nb(c,b)}break;default:throw hn(vz,null,a.parentNode.nodeName,a.nodeName);}},a);
return c};
wz=function(a){g.$e.call(this,a);this.g=this.A=null};
xz=function(){g.Ef.call(this);this.currentTime=0};
zz=function(a,b,c){g.Ef.call(this);c=c||new yz;this.o=a;this.D=c.F;this.I=c.D;this.N=c.C;this.J=c.g;this.L=c.A;this.F=c.o;this.G=c.B;this.C=!1;this.B=null;this.A=!1;this.g=Jha(b)};
yz=function(){this.D=0;this.A=this.g=this.F=this.C=!1;this.B=this.o=5};
Az=function(a){this.g=a.Ac;this.C=g.za(a);this.A=this.o=!1;this.hK=5==a.bf();this.B=this.ge=!1};
Bz=function(a,b){return yb(a.g,b.g)};
Cz=function(a){a.o.start();a.A=!0};
Kha=function(a){if(a.A){var b=g.eb(a.g,function(a){return-1==a.g},a);
null!=b&&Dz(a,!0,b)}};
Jha=function(a){var b=[];(0,g.H)(a,g.Aa(function(a,b){a(new Az(b))},g.Aa(function(a,b){Eb(a,b,Bz)},b)));
return b};
Lha=function(a,b){for(var c=[],d=0;d<a.g.length;d++){var e=a.g[d];-1!=e.g&&e.g<=b&&g.nb(c,e)}return c};
Ez=function(a,b){return gb(a,g.Aa(function(a,b){return b.hK==a},b))};
Mha=function(a){var b=[],c=Ez(a,!1);c&&b.push(c);(a=Ez(a,!0))&&Eb(b,a,Bz);return b};
Nha=function(a,b){for(var c=0;c<a.g.length;c++){var d=a.g[c];if(Fz(a,d,a.I,b,!0,a.N)&&!a.g[c].o)return d}return null};
Fz=function(a,b,c,d,e,f){return-1==b.g?f&&0<a.o.duration&&d>=a.o.duration-c:e&&d>=b.g-c&&d<b.g};
Gz=function(a,b){var c=new wz("contentTrackingError");c.setDescription(b);a.dispatchEvent(c)};
Dz=function(a,b,c){null!=c&&(c.o||(Hz(a,"requestAds",c),c.o=!0),b&&!c.A&&(Hz(a,"playAds",c),c.A=!0))};
Oha=function(a,b){var c;a:{for(c=0;c<a.g.length;c++){var d=a.g[c];if(Fz(a,d,-1==d.g?a.G:a.F,b,a.J,a.L)&&d.ge&&!d.B){c=d;break a}}c=null}null==c?a.C&&(a.dispatchEvent(new wz("discardAdNotify")),a.C=!1):a.C||c.A||(Hz(a,"adNotify",c),a.C=!0)};
Hz=function(a,b,c){b=new wz(b);b.A=c.g;b.g=c.C;a.dispatchEvent(b)};
Iz=function(a){xz.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||(0,window.isNaN)(a.currentTime))throw jn(io,null,"content","currentTime");this.duration="duration"in a&&!(0,window.isNaN)(a.duration)?a.duration:-1;this.o=a;this.g=new g.rg(250);this.A=new g.nm(this);pm(this.A,this.g,"tick",this.B,this)};
Pha=function(){};
Jz=function(a,b,c){if(g.kb(a))return null;a=(0,g.Id)(a,function(a){var b=a.B;return"application/x-mpegurl"==g.F(a.g).toLowerCase()||"application/dash+xml"==g.F(a.g).toLowerCase()||"progressive"==b});
g.kb(c)||(c=(0,g.J)(c,function(a){return a.toLowerCase()}),a=(0,g.Id)(a,function(a){return g.jb(c,g.F(a.g).toLowerCase())}));
if(!g.qa(b)||0>=b)b=yk()?500:1E3;return Qha(a,b)};
Qha=function(a,b){return Rha(a,b)||Sha(a,b)||Tha(a,b)};
Rha=function(a,b){var c=null;(0,g.H)(a,function(a){var d=a.ri,f=a.Wf;d>b||f<b||!(null==c||c.ri>d)||(c=a)});
return c};
Sha=function(a,b){var c=null;(0,g.H)(a,function(a){var d=a.ri,f=a.Wf;f>b||(null==c||c.Wf<f?c=a:null!=c&&c.Wf==f&&c.ri>d&&(c=a))});
return c};
Tha=function(a,b){var c=null;(0,g.H)(a,function(a){var d=a.ri,f=a.Wf;if(!(d<b))if(null!=c&&c.ri==d&&c.Wf<f)c=a;else if(null==c||c.ri>d)c=a});
return c};
Kz=function(a){this.o=0;this.A=a||100;this.g=[]};
Lz=function(a,b){if(b>=a.g.length)throw Error("Out of bounds exception");return a.g.length<a.A?b:(a.o+Number(b))%a.A};
Mz=function(a){g.Ef.call(this);this.g=a;this.V=new Kz(4);this.A=0;this.O=this.B=this.Tc=this.F=!1;this.L=this.ih();this.J=this.oj();this.Y=Wn();this.N=!1};
Oz=function(a){a.Tc=!1;a.B=!1;a.F=!1;a.A=0;a.O=!1;a.V.clear();Nz(a);g.Ye(a.C)};
Pz=function(a){a.B||(a.B=!0,Nz(a),a.dispatchEvent("start"),g.wa(a.g.getAttribute)&&a.g.getAttribute("playsinline"),Dn()||!g.wn||yn(3)||rn()&&!vn(4)||a.zr())};
Qz=function(a){for(var b=a.g.buffered.length-1;0<=b;){if(a.g.buffered.start(b)<=a.g.currentTime)return a.g.buffered.end(b);b--}return 0};
Nz=function(a){a.I&&(g.ug(a.I),a.I=null)};
Sz=function(){g.Ef.call(this);this.o=new Rz;this.g=new g.nm(this);var a=Em();if(a){a:{if(Tb(a.g,"videoElementMockDuration")&&(a=a.g.videoElementMockDuration,g.qa(a)))break a;a=window.NaN}this.duration=a}};
Uha=function(){var a=["video/mp4"],b=["video/ogg"],c=new Sz;c.canPlayType=function(c){return g.jb(a,c)?"probably":g.jb(b,c)?"maybe":""};
c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c};
Vha=function(a){this.startTime=0;this.endTime=a};
Rz=function(){this.length=0;this.g=[]};
Tz=function(a,b,c,d){if(null==a||!g.Od(g.gd(a),a))throw jn(io,null,"containerElement","element");this.D=a;this.o=this.g=null;this.B=b;this.F=!d;this.C=c||!1;this.A=null;this.g=g.xd("DIV",{style:"display:none;"});this.D.appendChild(this.g);this.F&&(a=Em(),Fm(a,"useVideoElementMock")?(a=Uha(),b=g.xd("DIV",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),g.Ba(b,a),a.nk=g.xd("DIV",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.On=g.xd("P",
{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),a.nk.appendChild(a.On),b.appendChild(a.nk),a.g.U(a,["loadeddata","playing","pause","ended"],a.YR),a=b):a=g.xd("VIDEO",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:""+Ca("Advertisement")}),a.setAttribute("webkit-playsinline",!0),a.setAttribute("playsinline",!0),this.o=a,this.g.appendChild(this.o));this.B&&(a="display:none;position:absolute;width:100%;height:100%;",P.C||(a+="background-color:#000;"),
a=g.xd("DIV",{id:this.B,style:a}),this.g.appendChild(a));this.C&&(this.A=g.xd("DIV",{style:"position:absolute;width:100%;height:100%;"}),this.g.appendChild(this.A))};
Uz=function(a,b,c,d){g.L.call(this);this.B=b||null;this.F="*";this.o=c||null;this.sessionId=null;this.channel=d||null;this.J=!!a;this.C=(0,g.A)(this.G,this);window.addEventListener("message",this.C)};
Vz=function(a,b){"null"!=b.origin&&(a.o=a.F=b.origin);a.B=b.source};
Wz=function(a){Uz.call(this,!0);this.sessionId=a;this.channel="remoteplayer";this.o="*";this.g={};this.A=[];this.D=!1};
Xz=function(a){a.D=!0;(0,g.H)(a.A,function(a){this.sendMessage(a)},a);
a.A.length=0};
Wha=function(){};
Yz=function(a,b){this.g=a;this.C=new Jx;this.F=(0,g.A)(this.G,this);this.J=Math.floor(2147483646*Math.random())+1;this.o=b||new Wz(this.J);g.M(this,this.o);this.A=new g.nm(this);g.M(this,this.A);var c=(0,g.A)(a.play,a);this.o.g.play=c;c=(0,g.A)(a.load,a);this.o.g.load=c;c=(0,g.A)(a.pause,a);this.o.g.pause=c;c=(0,g.A)(this.D,this);this.o.g.listen=c;c=(0,g.A)(this.I,this);this.o.g.unlisten=c;c=(0,g.A)(this.B,this,"src");this.o.g.setSource=c;c=(0,g.A)(this.B,this,"muted");this.o.g.setMuted=c;c=(0,g.A)(this.B,
this,"volume");this.o.g.setVolume=c};
aA=function(a){g.Ef.call(this);this.O="ima-chromeless-video";var b=null;null!=a&&(g.u(a)?this.O=a:b=a);this.V=new g.nm(this);this.D=null;this.B=!1;this.pa=new g.dd(0,0);this.ha=this.oj();this.J=-1;this.ea=!1;this.F=-1;this.o=this.ba=this.L=null;this.aa="";this.A=!1;this.fa=null!=b;this.ra=this.N=this.da=this.g=null;this.C=void 0;this.I=this.ka=null;this.G=this.sa=0;this.fa?(this.A=!0,this.g=b,this.C=2):(a=(0,g.A)(this.AH,this),Zz?a():($z.push(a),a=g.zd("script"),a.src="https://www.youtube.com/iframe_api",
b=window.document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,b)))};
cA=function(a,b,c){null!==b&&(a.aa=b,a.A?bA(a,b,c):(a.L=b,a.ba=c))};
bA=function(a,b,c){var d={autoplay:"1"};P.C&&(d.dash=0);null!=a.o&&(null!=a.o.Ri&&(d.agcid=a.o.Ri),null!=a.o.adFormat&&(d.adformat=a.o.adFormat),null!=a.o.g&&(d.ad_query_id=a.o.g),a.o.o&&(d.cta_conversion_urls=a.o.o),a.o.A&&(d.endscreen_ad_tracking_data=a.o.A),a.o.ek&&(d.wait_for_vast_info_cards_xml=1),a.o.Wj&&(d.suppress_creator_endscreen=1),a.o.isPharma&&(d.is_pharma=1),d.iv_load_policy=a.o.F?1:3,a.o.C&&(d.noiba=1),a.o.I&&(d.utpsa=1),a.o.G&&(d.autoplay="1"),a.o.D&&g.dc(d,a.o.D));var e=bq(b);null===
e?(c=null===c?"":c,b="url="+(0,window.encodeURIComponent)(b)+"&type="+(0,window.encodeURIComponent)(c),d.url_encoded_third_party_media=b):d.videoId=e;!P.g()&&(d.enabled_engage_types="3,4,5,6");a.B=!1;a.o&&a.o.B?(a.ka=d,a.g.preloadVideoByPlayerVars(a.ka)):a.g.cueVideoByPlayerVars(d);a.dispatchEvent("loaded")};
dA=function(a){a.V.Ca(a.D,"tick",a.VA);null!=a.D&&(a.D.stop(),a.D=null)};
eA=function(a){null!=a.Aa&&g.ug(a.Aa)};
fA=function(a,b){g.Ef.call(this);this.B=a;this.A=b;this.g={};this.o=new g.nm(this);this.o.U(vd(),"message",this.C);this.fb=null};
hA=function(a,b,c,d){a.g.hasOwnProperty(b)||(c=new py(b,c),a.o.U(c,a.B,function(a){a=new gA(a.type,a.Td,a.Xf,a.iy,a.getOrigin(),b);this.dispatchEvent(a)}),c.uf=d,c.connect(),a.g[b]=c)};
gA=function(a,b,c,d,e,f){oy.call(this,a,b,c,d,e);this.g=f};
jA=function(){var a=g.x("google.ima.gptProxyInstance",vd());if(null!=a)return a;g.nm.call(this);this.A=new fA("gpt",!0);g.M(this,this.A);this.U(this.A,"gpt",this.D);this.fb=this.g=null;iA()||vd().top===vd()||(this.g=new fA("gpt",!1),g.M(this,this.g),this.U(this.g,"gpt",this.C))};
iA=function(){return!!g.x("googletag.cmd",vd())};
kA=function(){var a=g.x("googletag.console",vd());return null!=a?a:null};
Xha=function(a,b){var c=Array.prototype.slice.call(arguments),d=c.shift();if("undefined"==typeof d)throw Error("[goog.string.format] Template required");return d.replace(/%([0\-\ \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(a,b,d,l,m,n,q,r){if("%"==n)return"%";var e=c.shift();if("undefined"==typeof e)throw Error("[goog.string.format] Not enough arguments");arguments[0]=e;return lA[n].apply(null,arguments)})};
oA=function(a,b){g.Ef.call(this);this.o=new g.nm(this);this.I=!1;this.J=Xa();this.G=new Pl;var c=this.J,d=(Bba()?"https:":"http:")+Xha("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en");a:{var e=window;try{do{try{if(0==e.location.href.indexOf(d)||0==e.document.referrer.indexOf(d)){var f=!0;break a}}catch(k){}e=e.parent}while(e!=e.top)}catch(k){}f=!1}f&&(d+="?f="+c);c=g.xd("IFRAME",{src:d+"#"+c,allowFullscreen:!0,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});sm(this.o,
c,"load",this.WH);a.appendChild(c);this.A=c;c=this.G.get("*");null==c&&(c=new py(this.J,"*"),this.I&&(c.uf=Pd(this.A),c.connect()),this.G.set("*",c));this.F=c;this.D=b;this.g=this.D.o;this.fb=this.B=this.C=null;this.o.U(this.F,"mouse",this.sI);this.o.U(this.F,"touch",this.HI);null!=this.g&&(this.o.U(this.F,"displayContainer",this.nI),this.o.U(this.F,"videoDisplay",this.EI),this.o.U(this.F,"preloadVideoDisplay",this.yI),this.o.U(this.g,g.Pb(mA),this.fg),this.o.U(this.g,nA,this.fg));c=vd();d=g.x("google.ima.gptProxyInstance",
c);null==d&&(d=new jA,g.ra("google.ima.gptProxyInstance",d,c))};
pA=function(a,b){var c=g.yh(a.A),d=!!("TouchEvent"in window&&0<window.TouchEvent.length),e=(0,g.J)(b,function(a){return d?new window.Touch({identifier:a.identifier,target:this.A,clientX:a.clientX,clientY:a.clientY,screenX:a.screenX,screenY:a.screenY,pageX:a.pageX+c.x,pageY:a.pageY+c.y}):window.document.createTouch(window,this.A,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);
return window.document.createTouchList.apply(window.document,e)};
qA=function(a){a=a.playbackOptions;var b=new Bx;b.adFormat=a.adFormat;b.Ri=a.adSenseAgcid;b.J=a.contentVideoDocId;b.o=a.ctaAnnotationTrackingEvents;a.showAnnotations&&(b.F=!0);a.viewCountsDisabled&&(b.I=!0);b.timeout=a.loadVideoTimeout;a.ibaDisabled&&(b.C=!0);a.enablePreloading&&(b.B=!0);b.g=a.adQemId;a.isPharma&&(b.isPharma=!0);a.useAutoplayFlag&&(b.G=!0);b.A=a.endscreenAdTracking;a.waitForVastInfoCardsXml&&(b.ek=!0);a.suppressCreatorEndscreen&&(b.Wj=!0);return b};
rA=function(a,b,c,d,e){if(!(e||null!=a&&g.Od(g.gd(a),a)))throw jn(io,null,"containerElement","element");this.D=a;var f=null!=b||null!=d;Tm(Qm(),136961005)&&(P.L=!0);e=b?b:null;null!=e&&g.wa(e.getAttribute)&&e.getAttribute("playsinline");var k=f;e=!1;P.L?P.o||(En()&&f||(k=!1),!k&&P.L&&!P.g()&&on()&&(P.C=!0),!P.C&&on()||Nk()||(e=!0)):P.o||En()&&f||(!P.C&&on()||Nk()||(e=!0),k=!1);this.F=k;this.L=e||k&&null!=d;P.o?a=null:(f=g.xd("DIV",{style:"position:absolute"}),a.insertBefore(f,a.firstChild),a=f);this.A=
a;this.g=this.F||!this.A||P.o||!on()?null:new Tz(this.A,null,!0);f=a=null;this.F?b?(a=new Mz(b),f=b):d&&(a=new aA(d)):this.g&&(a=new Mz(this.g.o),f=this.g.o);k=null;f&&P.C&&e&&(k=new Yz(f));this.J=k;this.o=a;this.C=this.B=null;e=g.wn&&!yn(4);a=rn()&&on();this.g&&this.o&&this.A&&!this.F&&!Nk()&&!e&&!a&&this.A&&(this.B=new Tz(this.A,null,!0),this.C=new Mz(this.B.o));this.G=this.o?c||null:null;this.N=null!=this.G;Vn(Sn.getInstance(),8,{enabled:this.F,yt:null!=d,customClick:null!=this.G});null===this.A?
(b=this.D,P.G=b):this.F&&b&&!g.wa(b.getBoundingClientRect)&&(b=this.D,P.G=b);this.I=null==this.A||P.o?null:new oA(this.A,this)};
sA=function(a){return a.N&&a.G?a.G:null!=a.g?a.g.A:null};
tA=function(a){this.g=a};
uA=function(a,b){g.$e.call(this,"adsManagerLoaded");this.g=a;this.A=b};
vA=function(a,b,c,d){a.g.Rc(new tA(b),c,d);return a.g};
wA=function(){};
xA=function(){g.Ef.call(this);this.ge=!1;this.impressionUrls=[]};
yA=function(a,b,c){g.$e.call(this,a);this.A=b||null;this.g=c||null};
AA=function(a,b){g.Ef.call(this);this.g=a;this.D=!!b;this.B=zA(this);if(!this.B){var c=g.sd&&!g.oc("7")?"readystatechange":"load";this.o=g.qf(this.g,c,this.C,!1,this);this.A=window.setInterval((0,g.A)(this.C,this),100)}};
BA=function(a){a.A&&(window.clearInterval(a.A),a.A=null)};
zA=function(a){var b=!1;try{if(a.D||!g.sd||g.oc("11")){var c=a.g,d=(c.contentDocument||c.contentWindow.document).body;b=a.D?!!d&&!!d.firstChild:!!d}else b="complete"==a.g.readyState}catch(e){}return b};
CA=function(){xA.call(this);this.F=[];this.C=!1;this.A="not_loaded";this.o=null;this.B=0;this.g=this.fb=null;this.G=new fd};
DA=function(a){var b=["googletag","googletag.cmd"];return g.eb(a,function(a){return(0,g.Nr)(b,function(b){return null!==g.x(b,a)})})||null};
EA=function(a){return a.ge?(0,g.J)(a.F,function(a){return a.clone()}):[]};
Yha=function(a){a=EA(a);if(null!=a)return(0,g.J)(a,function(a){return a.G})};
FA=function(a,b,c){var d=0,e=0;null!=b&&(b=new g.Vl(b.g),d=Number(b.g.get("pod")||0),e=Number(b.g.get("ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession(Tn.g,d,e,c)}catch(f){}};
Zha=function(a,b){var c=GA(a);if(null!==c){FA(c,b,!0);try{c.refreshAllSlots()}catch(d){}}};
IA=function(a,b,c){a=HA(a);if(null!=a)try{a.setVideoContent(b,c)}catch(d){}};
JA=function(a,b){a.D=b;IA(a,"","");var c=GA(a);null===c||FA(c,null,!1)};
GA=function(a){null==a.g&&KA(a);return null!=a.g&&null!=a.g.googletag&&null!=a.g.googletag.companionAds?a.g.googletag.companionAds():null};
HA=function(a){null==a.g&&KA(a);return null!=a.g&&null!=a.g.googletag&&null!=a.g.googletag.pubads?a.g.googletag.pubads():null};
LA=function(a){a.o&&(a.o.stop(),a.o.Ca("tick",a.hB,!1,a),a.o.dispose(),a.o=null)};
PA=function(a){if("retrieved"!=a.A&&"not_available"!=a.A&&null!==GA(a)){var b=GA(a);if(null!==b&&g.wa(b.getDisplayAdsCorrelator))try{var c=g.F(b.getDisplayAdsCorrelator())}catch(f){c=null}else c=null;switch(c){case "not_loaded":case "not_available":a.A=c;break;default:c=Number(c),(0,window.isNaN)(c)?a.A="not_available":(a.D=c,a.A="retrieved")}}(c=MA(a))||(c=NA(a)&&"not_available"==a.A);if(c){if(!a.I&&NA(a)){try{if(null==a.g)var d=[];else{var e=a.g.googleGetCompanionAdSlots();d=(0,g.J)(e,a.iT,a)}}catch(f){d=
[]}a.F=d;a.I=!0}a.ge=!0;LA(a);MA(a)?a.dispatchEvent(new yA("companions_success")):OA(a)}else a.o||(a.B=(0,g.G)()+15E3,a.o=new g.rg(100),a.o.U("tick",a.hB,!1,a),a.o.start())};
MA=function(a){return NA(a)&&"retrieved"==a.A};
NA=function(a){a.C||(KA(a),a.C=null!=a.g&&null!=a.g.googleGetCompanionAdSlots);return a.C};
KA=function(a){var b=g.Zd(a.G);try{a.g=DA([b,b.top])}catch(c){a.g=null}};
OA=function(a){a.dispatchEvent(new yA("companion_initialization_failed",Error("Partial or full service initialization failure.")))};
$ha=function(a,b,c){var d=new AA(b,!0);d.Sb()?QA(a,c,b):pf(d,"ifload",g.Aa(function(a){QA(this,c,a)},b),!1,a)};
QA=function(a,b,c){a.dispatchEvent(new yA("companion_slot_init",null,b));var d=c;"IFRAME"==c.tagName&&(d=(c.contentDocument||c.contentWindow.document).body);null!=d&&g.qf(d,"click",(0,g.A)(a.YO,a,b),!1,a)};
RA=function(){g.Ef.call(this);this.A=[]};
SA=function(){return new Wr("empty-ad","GDFP","GDFP",0,"",0,0,0,0,[],[],[],[],new Pl)};
TA=function(a){RA.call(this);this.g=a;this.G=this.fb=null;this.F=!1;this.B=null;this.C=new g.nm;pm(this.C,this.g,["companions_success","companion_initialization_failed"],this.qR,this);pm(this.C,this.g,"companion_display_error",this.aP,this);pm(this.C,this.g,["companion_slot_init","companion_click"],this.WO,this);this.g.ge?this.F=!0:this.g.initialize()};
VA=function(a){var b=a.B;a.B=null;if(null!=a.g)if(g.kb(a.A))UA(a,Error("Companion slots not available."));else if(null!=b){var c=aia(a,b);a.g.xd(a.A);if(0<c.length&&b.Fa){a=a.g;var d;if(d=0!=c.length)d=us(b),d="GDFP"==(os(d[0])&&1<d.length?d[1]:d[0]);if(d){d=[];for(var e=0;e<c.length;e++)d.push(c[e].I);b=b.A;c=GA(a);if(null!==c){FA(c,b,!1);try{c.notifyUnfilledSlots(d)}catch(f){}}}}}else UA(a,Error("Invalid master ad."))};
UA=function(a,b){a.dispatchEvent(new Ao("companion_display_error",b))};
aia=function(a,b){var c=[],d=[];(0,g.H)(a.A,function(a){Do(a);(0,g.Ik)(a.G,function(d){a:{d=zs(b,d.width,d.height);if(!g.kb(d)&&(d=bia(d,c),null!=d)){var e=d.o;if(null!=e&&0!=a.I.indexOf(e)){d=!1;break a}e=d.g.L;tb(e,ks(b,"companionClick"));var f=ks(b,"companionImpression"),k=P.g()&&"Html"==d.g.N&&d.B;c.push(d);if(k)Co(a,d.Cc(),d.Gb(),d.getHeight(),f);else{k=d.ld();var q=d.Gb(),r=d.getHeight();d="IFrame"!=d.g.N;a.F=k;a.g=null;a.B=q;a.o=r;a.A=d;a.D=f||[];a.C=e||[]}d=!0;break a}d=!1}return d},this)||
d.push(a)},a);
var e=WA(b);a.D=XA(e,c);a.D||(0,g.H)(a.A,function(a){Do(a)},a);
return d};
XA=function(a,b){if(null==a)return!0;var c=a.g;return"all"==a.o?cia(c,b):"any"==a.o?dia(c,b):!0};
WA=function(a){return null==a||null==a.g||(0,window.isNaN)(a.g.g)?null:g.eb(Js(a,!0),function(a){a=a.g;return g.kb(a)?!1:(0,window.isNaN)(a[0].g.g)?!1:a[0].g.g==a[0].Qq()})};
cia=function(a,b){return(0,g.Nr)(a,function(a){return g.jb(b,a)})};
dia=function(a,b){return(0,g.Ik)(a,function(a){return g.jb(b,a)})};
bia=function(a,b){return g.eb(a,function(a){return!g.jb(b,a)})};
YA=function(a,b){this.B=a;this.o=b;this.g=this.fb=null};
eia=function(a){var b=[],c=Dr(a,"vmap:Extensions")[0];if(c){var d;Gr(c,"vmap:Extension",function(a){"vmap:YTBreakTime"==c.getAttribute("type")&&(d=a)});
if(d&&(b=Dr(d,"yt:BreakTime"),!g.kb(b)))return(0,g.J)(b,function(a){return Er(a,"timeOffset")})}return[Er(a,"timeOffset")]};
fia=function(a,b){return(0,g.J)(b,function(a){var b=new pz(a.o.clone());b.isBumper=a.isBumper;b.g=a.g;return b},a)};
gia=function(a){return(a=g.eb(g.Jd(a),function(a){return"vmap:VASTData"==a.nodeName||"vmap:VASTAdData"==a.nodeName}))?g.eb(g.Jd(a),function(a){return"VAST"==a.nodeName}):null};
hia=function(a){var b=null,c=!1;a=g.eb(a,g.Aa(ZA,"type","youtube"));null!=a&&(a=(0,g.Id)(a.getElementsByTagName("*"),function(a){return"yt:BreakProperty"==a.tagName}),g.kb(a)||(a=a[0],a.hasAttribute("break_type")&&(b=Bda(a.getAttribute("break_type"))),Rm().g("disable_freqcap_for_hummingbird")&&a.hasAttribute("disable_frequency_capping")&&(c=a.getAttribute("disable_frequency_capping"),c=Kr(c))));
return{breakType:b,cn:c}};
ZA=function(a,b,c){return Er(c,a)==b};
jia=function(a,b){if(null!=a){if(null!=a){var c=g.Ld(a);c=null!=c&&"Playlist"==c.nodeName}else c=!1;if(c)return lx(),new sz(a,b);null!=a?(c=g.Ld(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return lx(),new YA(a,b);if(pw(a)){if(!pw(a))throw hn(vz);c=g.Ld(a);var d=tw(c);if(1>d||4<d)throw hn(iia);c=Dr(c,"Ad");if(g.kb(c))throw hn($A);c=uw(c[0]);if(null==c)throw hn(aB);if(1!=Dr(c,"AdSystem").length)throw hn(aB);return new ow(a)}}return null};
kia=function(a){a=(0,g.Id)(a,function(a){return 0<ws(a)});
g.Bb(a,function(a,c){return ws(a)-ws(c)});
return a};
lia=function(a){return(0,g.Id)(a,function(a){return-1==ws(a)})};
Bq=function(a){this.Ef=a};
bB=function(a,b){this.o=a;this.A=b};
cB=function(a,b){"auto"!=a.o.Qi&&"click"!=a.o.Qi||b.set("vpa",a.o.Qi)};
dB=function(a){E(P.getPlayerType())||(a.set("mpt",P.getPlayerType()),E("")||a.set("mpv",""))};
eB=function(a,b){var c=a.A.D,d=a.A.o;null!=c&&b.set("js","ima-"+c);null!=d&&b.set("an",d);c=a.o.L;null!=c&&b.set("mv",c+"."+(a.o.J||""))};
fB=function(a,b){var c=2,d=ei&&ei.g?!1:0===Oi();!Nk()&&d&&(c|=2048);b.set("osd",c);-1!=a.A.L&&b.set("frm",a.A.L);c=a.A.ba;null!=c&&b.set("ms",c);b.set("sdr",1)};
gB=function(a){return P.o?"h.3.0.0":null!=a.A?Rn(a.A):null};
hB=function(){this.g=["video"]};
iB=function(a,b){a.set("sz",Math.max(null!=b.mj?b.mj:0,null!=b.gf?b.gf:0)+"x"+Math.max(null!=b.lj?b.lj:0,null!=b.ff?b.ff:0))};
kB=function(a){var b={};fi(b);for(var c in b)a.set(c,b[c]);a.set("dt",jB)};
lB=function(a){if(a.oc&&a.oc.LACT){var b=a.oc.LACT.toString();if(b)return ab(b)}return a.G};
mB=function(a){return P.g()&&a.oc&&a.oc.VIS?a.oc.VIS.toString():null};
rB=function(a,b,c){var d=new Pl;d.set("ad_type",b.adType);no&&d.set("flash",Xi);iB(d,a);nB(b)&&(d.set("ea","0"),null!=a.gf&&null!=a.ff&&d.set("image_size",oB(b,a.gf,a.ff,a.cj)));pB(d,c);d.set("lact",lB(a));(b=mB(a))&&d.set("yt_vis",b);d.set("videoad_start_delay",a.sp);kB(d);qB(a,d,!0);return d};
qB=function(a,b,c){E(g.F(a.referrer))||(a=a.referrer,c&&(a=g.Ja(a)),sB("ref",a,b))};
vB=function(a,b,c){a=null!=b?b.split("_"):a;(0,g.H)(a,function(a){if(!Ob(mia,a))throw hn(io,null,"ad_type",String(b));});
if(c){var d=[];(0,g.H)(a,function(a){g.jb(tB,a)||d.push(a)});
a=d}c=g.jb(a,"video");var e=g.jb(a,"skippablevideo");!sn()||P.g()||Vn(Sn.getInstance(),53,{playsInline:!1,iOS_version:sn()?An(un):"",wv:(Jb("iPad")||Jb("iPhone"))&&!hc()&&!gc()&&!Jb("Coast")&&Jb("AppleWebKit"),rq_video:c,rq_skip:e,dis_cp:!1});var f=Qm();if(!Dn()){d=[];(0,g.H)(a,function(a){"video"==a?(d.push("standardvideo"),!P.g()&&Tm(f,413051060)&&d.push("bumpervideo")):"skippablevideo"!=a&&d.push(a)});
if(0==d.length)throw hn(uB,null,"skippablevideo");a=d}return a};
wB=function(a,b){return null!=b?b.split(/[+, ]/):a};
oB=function(a,b,c,d){a.o&&(c=Math.min(c,90));var e=0,f=0;a=!P.g();d=d&&a;a&&(e=15,f=65);var k=[];(0,g.H)(nia,function(a){var l=b-e>=a.width&&c-f>=a.height,n=!d&&!l&&90>=a.height&&b>=a.width&&c>=a.height;(l||n)&&k.push(a.width+"x"+a.height)});
return k.join(",")};
xB=function(a,b){return null==b||(0,window.isNaN)(b)?a:Number(b)};
yB=function(a,b){return null!=b?String(b):null!=a?a:null};
zB=function(a,b){if(null==b)return a;switch(b.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return a};
AB=function(a,b,c){return null!=b&&Ob(c,b)?b:a};
nB=function(a){return(0,g.Ik)(tB,function(b){return g.jb(a.g,b)})};
pB=function(a,b){no?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.A;null!=c&&0<c.length&&(c=c[0].G,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}};
sB=function(a,b,c){null!=b&&c.set(a,b)};
CB=function(a,b,c){bB.call(this,a,b);var d=new hB,e=(new g.Vl(a.g)).g;d.Cr=AB(d.Cr,e.get("cust_age"),oia);d.Am=AB(d.Am,e.get("adsafe"),BB);d.g=vB(d.g,e.get("ad_type"));d.adType=d.g.join("_");d.Vp=xB(d.Vp,e.get("videoad_start_delay"));d.Wp=yB(d.Wp,e.get("slotname"));d.Br=zB(d.Br,e.get("adtest"))||"on"==e.get("adtest");d.Yp=zB(d.Yp,e.get("scs"));d.Zp=yB(d.Zp,e.get("alternate_ad_url"));d.channels=wB(d.channels,e.get("channel"));d.wq=xB(d.wq,e.get("cpm"));d.xk=yB(d.xk,e.get("description_url"));d.experimentIds=
yB(d.experimentIds,e.get("eid"));d.gender=AB(d.gender,e.get("cust_gender"),pia);d.o=zB(d.o,e.get("overlay"));d.host=yB(d.host,e.get("host"));d.A=wB(d.A,e.get("h_ch"));d.hostTierId=xB(d.hostTierId,e.get("ht_id"));d.isLiveStream=zB(d.isLiveStream,e.get("lsv"));if(null!=this.o.language)var f=this.o.language;else f=v.navigator||null,f=Gm(f.language||f.userLanguage||f.browserLanguage||f.systemLanguage||"");var k=null!=e.get("hl")?String(e.get("hl")):null;f=yB(k,f);var l;null!=f&&!E(g.F(f))&&(l=Gm(f));
d.language=yB(d.language,l);d.wy=xB(d.wy,e.get("linearAdSlotWidth"));d.vy=xB(d.vy,e.get("linearAdSlotHeight"));d.Zn=xB(d.Zn,e.get("max_ad_duration"));d.ls=xB(d.ls,e.get("min_ad_duration"));d.ao=xB(d.ao,e.get("sdmax"));d.zy=xB(d.zy,e.get("nonLinearAdSlotWidth"));d.yy=xB(d.yy,e.get("nonLinearAdSlotHeight"));d.Lj=yB(d.Lj,e.get("client"));d.Ao=yB(d.Ao,e.get("t_pyv"));l=e.get("sdki");d.Jo=xB(d.Jo,g.u(l)?(0,window.parseInt)(l,16):l);d.tagForChildDirectedTreatment=xB(d.tagForChildDirectedTreatment,e.get("tfcd"));
d.xo=yB(d.xo,e.get("pucrd"));d.targeting=AB(d.targeting,e.get("targeting"),qia);d.Mn=xB(d.Mn,e.get("video_format"));d.ku=xB(d.ku,e.get("video_cpm"));d.Dr=yB(d.Dr,e.get("loeid"));d.ru=yB(d.ru,e.get("yt_pt"));d.ou=yB(d.ou,e.get("ytdevice"));d.pu=yB(d.pu,e.get("ytdevicever"));d.qu=yB(d.qu,e.get("dbp"));d.B=yB(d.B,e.get("ms"));d.adBlock=xB(d.adBlock,e.get("adBlock"));d.url=yB(d.url,e.get("url"));d.hq=yB(d.hq,e.get("avo"));d.ju=yB(d.ju,e.get("v_p"));d.UJ=a.D;d.VJ=a.B;d.WJ=a.F;d.qp=xB(d.qp,e.get("ad_block"));
this.g=d;this.I=b;this.J=c;E(g.F(this.g.experimentIds))||(a=this.g.experimentIds.split(","),Om(Qm(),a))};
sia=function(a){return(0,g.Ik)(ria,function(a){return g.jb(this.g.g,a)},a)};
DB=function(a){return P.g()?1:g.jb(a.g.adType.split("_"),"text")?3:1};
tia=function(a){a=a.g.channels?a.g.channels:[];wb(a);return a.join("+")};
EB=function(a,b){return Math.round(1.1*(a||0)+0*b)};
uia=function(){this.fb=null;this.g=0};
via=function(a,b,c,d,e,f,k){var l=(0,g.A)(function(a){d(a,Error(Lw(a)))},a),m=(0,g.A)(function(a){6==a?FB(this,b,!1,c,l,e,f):l(a)},a);
FB(a,b,!0,c,m,e,f,k)};
FB=function(a,b,c,d,e,f,k,l){var m=new Vw;m.G=c;Ww(m,wia(f));var n=new g.nm,q=(0,g.A)(function(){n.dispose();m.dispose()},a);
c=(0,g.A)(function(){e(m.o);q()},a);
tm(n,m,"success",function(){try{var a=m.g?m.g.responseXML:null}catch(B){a=null}if(null==a){var b=ex(m);try{a=g.yr(b)}catch(B){a=xr("parsererror")}}d(a);q()},a);
tm(n,m,["error","timeout"],c,a);if("POST"==k){b=new g.Vl(b);var r=b.g.toString();$l(b,"");b=b.toString()}P.g()&&"POST"!=k&&(l=xia(b,k,l),b=l.url,k=l.fT,r=l.content);a.g=(0,g.G)();m.send(Ym(b),k,r)};
xia=function(a,b,c){var d=new wA;d.g=a;if(Rq(d)){d=new g.Vl(a);var e=d.g.get("post_data");if(g.t(e)){b="POST";d.g.remove("post_data");a=d.toString();var f=(0,window.decodeURIComponent)(e);g.t(c)&&(c=c.clone(),d=Sg("?"+f,"pat"),null!=d&&(c.g=d),c=new CB(c,Tn,null),c=c.B(c.C()).toString(),f=f+"&cat="+(0,window.encodeURIComponent)(c))}}return{url:a,fT:b,content:f}};
GB=function(a,b){bB.call(this,a,b)};
HB=function(a,b){bB.call(this,a,b)};
IB=function(a){bB.call(this,a,null)};
JB=function(a){bB.call(this,a,null)};
KB=function(a,b){bB.call(this,a,b);P.g()&&(this.A.B=On())};
yia=function(a){var b=[];(0,g.H)(a,function(a){0<a.length&&b.push((0,g.J)(a,function(a){return a.width+"x"+a.height}).join("|"))});
return b.join(",")};
LB=function(a,b,c){KB.call(this,a,b);b=Qm();this.I=E(g.F(a.A));a=new hB;a.g=vB(a.g,this.o.A);a.adType=a.g.join("_");a.experimentIds=yB(a.experimentIds,this.o.I);this.g=a;this.F=c;E(g.F(this.g.experimentIds))||Om(b,this.g.experimentIds.split(","))};
zia=function(a){var b=rB(a.o,a.g,a.F);b.set("sdkv",gB(a));b.set("sdki",a.D().toString(16));return b};
Aia=function(a,b){var c=zia(a),d=(0,g.J)(c.Db(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
g.dm(b,"afvparams",d.join("&"))};
MB=function(a,b,c){bB.call(this,a,b);Qm();this.I=E(g.F(a.A));a=new hB;a.g=vB(a.g,this.o.A);a.adType=a.g.join("_");a.experimentIds=yB(a.experimentIds,this.o.I);this.g=a;this.F=c;E(g.F(this.g.experimentIds))||(a=this.g.experimentIds.split(","),c=Qm(),Om(c,a))};
Bia=function(a){var b=rB(a.o,a.g,a.F);b.set("sdkv",gB(a));return b};
Cia=function(a,b){var c=Bia(a),d=(0,g.J)(c.Db(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
Kq(b,"afvparams",[g.Ja(d.join("&"))])};
NB=function(a,b){bB.call(this,a,b)};
OB=function(a,b){var c=new g.Vl(g.xm(a.o.g,Dia(a,b)));Wl(c,"https");return c};
Dia=function(a,b){if(null==a.o||null==a.o.oc)return{};var c={},d=a.o.oc;(0,g.H)(Eia,function(a){a in d&&(c[a]=d[a])});
var e=Fia(a,d.DESCRIPTION_URL);e&&(c.AD_BLOCK=e);null!=b&&(c.BISCOTTI_ID=b);return c};
Fia=function(a,b){return null!=b?Hn(Qn(a.A),b):null};
Gia=function(a,b){if(!Pq(a.g)&&!Qq(a.g)||E(g.F(a.A))||null==a.g||-1==a.g.search("afvbase="))if(Pq(a.g))var c=new HB(a,Tn);else Nq(a.g)?c=new CB(a,Tn,b):Qq(a.g)?c=new KB(a,Tn):Oq(a)?c=new GB(a,Tn):(c=a.g,null!=c?(c=(new g.Vl(c)).o,c=Ia(c,".fwmrm.net")):c=!1,c=c?new IB(a):Rq(a)?new NB(a,Tn):new JB(a));else c=Pq(a.g)?new MB(a,Tn,b):new LB(a,Tn,b);return c};
PB=function(a,b,c,d,e){this.C=a;this.A=b;this.B=c;this.g=d;this.D=e;this.fb=null};
Hia=function(a,b,c,d){if(b.o instanceof window.Document)var e=b.o;else try{e=g.yr(b.o)}catch(f){d(hn(vz,f));return}null!=e?QB(a,e,b,c,d):d(hn(vz))};
RB=function(a,b,c,d){var e;if(e=null!=b.g){a:{try{Ka(b.g)}catch(f){e=!1;break a}e=!0}e=!e}e?d(hn(Iia,null,b.g)):P.J?Pda(co(),(0,g.A)(a.o,a,b,c,d)):a.o(b,c,d)};
TB=function(a,b,c,d,e,f){b=Nda(b,f);f=c.gu&&Vm(Jia,b)?"POST":"GET";via(a.A,b,(0,g.A)(function(a){QB(this,a,c,d,e)},a),(0,g.A)(function(a,b){var d=8==a?hn(wq):5==a||6==a?hn(Kia):hn(SB,b);
e(d);d="third_party";Nq(c.g)?d="adsense":Pq(c.g)?d="dart":Qq(c.g)&&(d="xfp");d={rt:d,ec:a};Vn(Sn.getInstance(),18,d,!0)},a),a.D,f,c);
Lia(c)};
Lia=function(a){var b="third_party";Nq(a.g)?b="adsense":Pq(a.g)?b="dart":Qq(a.g)?b="xfp":Oq(a)&&(b="dbm");a={rt:b};Vn(Sn.getInstance(),17,a,!0)};
QB=function(a,b,c,d,e){try{var f=jia(b,c);if(!f)throw hn(vz);var k=f.A();Mia(a,k,c,d)}catch(l){l instanceof Jm?e(l):e(hn(Nia,l))}};
Mia=function(a,b,c,d){var e=b.Ef;if(null!=e)d(new Bq(e));else{e=b.o;if(null==e)throw hn($A);(0,g.H)(e,function(a){a.A=c;var d=Em();d&&Fm(d,"useCompanionsAsEndSlate")&&(a.L=Lfa(a));d=[];var e=a.getExtension("InfoCards");if(null!=e){e=e.A?e.A:new wv;for(var f=0;f<vv(e,"card");f++)d.push(new xv(uv(e,"card",f)))}a.B=d;a.aa=Hfa(a.B);a.Ka=this.A.g;P.g()&&(a.ub=b.g)},a);
var f=kia(e),k=lia(e),l;0<k.length&&0<=vs(k[0])?l=new Gq(k,c,a,a.C):l=new vq(f,k,c,a);(0,g.H)(e,function(a){a.ka=l});
d(l)}};
UB=function(a){this.g=a+(0,g.G)()};
wia=function(a){var b=(0,g.G)();a=a.g-b;return 0<a?a:0};
VB=function(a,b,c){this.D=b;this.B=c;this.C=null;this.o=new g.nm(this);this.J=a;this.A=this.g=null;this.G=!1;this.fb=null};
Oia=function(a){if(null===a.C)WB(a);else{var b=new g.Vl(a.C.g),c=g.F(b.g.get("vid"));b=g.F(b.g.get("cmsid"));var d=a.B.I,e=a.B.F;a.B.I=c;a.B.F=b;if(E(g.F(c))||E(g.F(b)))WB(a);else if(c==d&&b==e)WB(a);else{var f=a.D.bi();IA(f,c,b);Zha(f,a.C);a.A=new g.rg(100);pm(a.o,a.A,"tick",function(){a:{var a=HA(f);if(null!=a)try{var b=!1!==a.isAdRequestFinished();break a}catch(m){b=!0;break a}b=!1}b&&WB(this)},a);
a.A.start()}}};
Pia=function(a){a.g=new g.rg;tm(a.o,a.g,"tick",function(){WB(this)},a);
sg(a.g,a.J);a.g.start()};
WB=function(a){null!=a.o&&(a.o.dispose(),a.o=null);null!=a.g&&(a.g.stop(),a.g=null);null!=a.A&&(a.A.stop(),a.A=null);a.G=!0;null===a.F||a.F()};
Qia=function(a,b){this.g=a;this.o=b;this.fb=null;P.o&&uo().init();a:{try{var c=window.top.location.href}catch(d){c=2;break a}c=null!=c?c==window.document.location.href?0:1:2}Tn.L=c};
Ria=function(a,b,c,d){if(P.g()){var e=b.rp;e&&Fda(Qm(),e)}e=null;null==a.g||P.g()||(e=new VB(1E3,a.g,a.o));var f=Rea(b);null!=f&&Qea(b)&&(a.o.ba=f);f=8E3;!P.g()&&Tm(Qm(),41351074)?f=5E3:!P.g()&&Tm(Qm(),41351075)&&(f=2E3);(new PB(a.o,new uia,a.g,e,new UB(f))).fetch(b,(0,g.A)(function(a){a instanceof Bq?c(a):zq(a,c,d)},a),d)};
g.XB=function(){this.g=[];this.o=[]};
YB=function(a){g.kb(a.g)&&(a.g=a.o,a.g.reverse(),a.o=[])};
g.ZB=function(a,b){a.o.push(b)};
g.$B=function(a){YB(a);return a.g.pop()};
aC=function(a){YB(a);return g.bb(a.g)};
Sia=function(a){this.kb=a;this.g=new g.XB;this.Vf=!1;this.fb=null};
cC=function(a,b,c,d){var e=(0,g.A)(function(a){c(a);g.$B(this.g);this.Vf=!1;bC(this)},a),f=(0,g.A)(function(a){d(a);
g.$B(this.g);this.Vf=!1;bC(this)},a);
g.ZB(a.g,(0,g.A)(function(){Ria(this.kb,b,e,f)},a));
bC(a)};
bC=function(a){if(!a.Vf){var b=aC(a.g);null!=b&&(a.Vf=!0,b())}};
dC=function(a,b,c){g.Ef.call(this);this.kb=new Sia(new Qia(b,c));this.A=a;this.o=b;this.g=!0;this.B=c;this.fb=null};
Tia=function(a,b,c){if(a.g){var d=null!=c?c:{};Tga(kx.getInstance(),b.g);cC(a.kb,b,(0,g.A)(function(a){eC(this,a,d)},a),(0,g.A)(function(a){fC(this,a,d)},a))}};
Eha=function(a,b,c){if(!a.g){var d=null!=c?c:{};cC(a.kb,b,(0,g.A)(function(a){eC(this,a,d)},a),(0,g.A)(function(a){fC(this,a,d)},a))}};
eC=function(a,b,c){if(a.g)if(b instanceof Bq)b=new gC(b.Ef,a,a.A.Cw),b.Hg(a.o),a.dispatchEvent(new uA(b,c));else try{var d=nz(a.A,b);d.Hg(a.o);a.dispatchEvent(new uA(d,c))}catch(e){fC(a,hn(hC,null),c)}else b instanceof Bq?fC(a,hn(Uia,null,"Unsupported ad format."),c):(d=new Im("adsLoaderSdkAdLoaded"),d.F=b,d.D=c,a.dispatchEvent(d))};
fC=function(a,b,c){a.g?("always"==P.B&&null!=a.o&&a.o.xd(SA()),a.dispatchEvent(new Cm(b,c))):(c=new Im("adsLoaderSdkAdError"),c.g=b,a.dispatchEvent(c))};
iC=function(a,b){this.L=a;this.V=new Pl;this.O=15E3;this.F=g.xd("SPAN");Ry.call(this,a[0],b);this.g.appendChild(this.F)};
jC=function(a,b){Ry.call(this,a[0],b);this.B=a;g.S(this.g,"ima-container-stack")};
kC=function(a){Uy.call(this,a);this.C=!1;this.o=this.A=null;this.G=!1};
lC=function(a){var b=a.ads[0].getExtension("AdSense"),c=b.C;b=b.D;a={text:null!=c?c:a.I.C,url:null!=b?b:a.I.D};null==a.text&&(c=Ca("Ads by Google"),c=To(""+c),a.text=c);return a};
mC=function(a){return a.zb()&&Ls(a.la())};
Via=function(a){var b=nC(a);b.rba=a.B;Vn(Sn.getInstance(),37,b)};
nC=function(a){var b=[],c=[];(0,g.H)(a.A,function(a){b.push(a.Gb()+"x"+a.getHeight());c.push(a.md())},a);
var d={};d.pid=kx.getInstance().o;d.fsmode=null!=a.o;0<b.length&&(d.cz=b.join(","));0<c.length&&(d.ct=c.join(","));d.vm=a.Zc;return d};
oC=function(a,b){if(a.o){a.Fn(new g.$e("close"));var c={};c.pid=kx.getInstance().o;c.evt=b;Vn(Sn.getInstance(),35,c)}};
pC=function(a,b){g.L.call(this);this.B=a;this.g=-1;this.A=b};
qC=function(a,b){pC.call(this,a,b)};
gC=function(a,b,c){Gu.call(this,[]);this.Ef=a;this.Eb=new Pl;this.Qb=this.wb=null;this.Cw=c;this.zk=new g.XB;this.Md=null;this.kb=b;this.Xp=this.Wm=!1;this.ni=null;this.mg=0;this.Zd=this.ae=-1;this.kd=null;this.qt=0;this.fb=null;this.yk=!1};
Xia=function(a,b){if(null!==a.Ia){var c=1;a.mg=0;var d=new Jx;(0,g.H)(b,function(a){if((0,window.isNaN)(a))throw hn(uz,null,"timeOffset",String(a));if(-1!=a&&-1>=a){var b=this.Ef;if((0,window.isNaN)(a)||!g.qa(a))throw Error("Incorrect time offset.");Rl(b.g,a)&&b.g.remove(a)}else if(b=g.qa(a)&&!(0,window.isNaN)(a)?this.Ef.g.get(a,[]):[],!g.kb(b)){this.mg+=b.length;var e=0==a||-1==a?a:c++;b=new Xy(b,a,e,this.kb,this.Ia,this.Qa,this.Ld);if(d.contains(a))throw hn(Wia,null,"Multiple ad breaks cannot share same ad play time.");
this.Eb.set(g.za(b),b);Ix(d,a)}},a)}};
Yia=function(a,b){a.ni=g.bb(b);(0,g.Ik)(b,function(a){if(-1==a)return this.ni=a,!0;this.ni=this.ni<a?a:this.ni;return!1},a)};
tC=function(a,b){a.yk=!1;a.Zi(b);0==b.Ac?a.dg():(-1==b.Ac?(rC(a)||!P.g()&&a.Wm)&&sC(a):Cz(a.Qb),a.Md=null)};
Zia=function(a){if(null!=a.Qb){uC(a);var b=a.Wa();pm(b,a.Qb,["requestAds","playAds","contentTrackingError","discardAdBreak"],a.handleEvent,a);pm(b,a.Qb,"adBreakReady",a.bO,a);pm(b,a.Qb,"adNotify",a.Al,a);pm(b,a.Qb,"discardAdNotify",a.Cl,a);pm(b,a.kb,"contentComplete",a.cP,a);a.kb.g=!1}};
uC=function(a){null!=a.ac&&(a.ac.dispose(),a.ac=null);a.Wm=!1;null!=a.Qb&&a.Qb.Xc()};
vC=function(a){if(null==a.Md){var b=g.$B(a.zk);if(null!=b){a.Md=b;var c=a.Eb.get(a.Md.g);if(null!=c)if(b=b.type,"requestAds"!=b&&"playAds"!=b)a.Md=null,vC(a);else if(null!=a.kd&&a.kd.o(c))a.Md=null,vC(a);else if("requestAds"==b)a.yk?(a.zk.isEmpty()||"playAds"!=aC(a.zk).type||g.$B(a.zk),tC(a,c)):0==c.Ac&&a.gg()||wC(a,c);else{if("playAds"==b)if(a.yk)tC(a,c);else if(null!=a.wb&&a.wb.xb()&&a.Zi(a.wb),a.wb=c,a.wb.setVolume(a.volume),Yy(a.wb,a.ae,a.Zd,a.Zc),a.wb.N&&a.Md.A<a.qt){c=a.wb;if(c.o<c.A.length){b=
c.A[c.o];gz(c);try{c.G=new g.nm(c),c.g=hz(c,b,c.G)}catch(e){c.o++,lz(c)}}c=a.Qb;b=a.qt;var d=new Az(a.wb);d.g=b;d.o=!0;Eb(c.g,d,Bz);a.ia("contentResumeRequested");a.Md=null;vC(a)}else a.wb.start()}else a.Md=null,vC(a)}}};
wC=function(a,b){var c=a.Wa();pm(c,b,Fy,a.dispatchEvent,a);pm(c,b,"adError",a.qx,a);pm(c,b,"allAdsCompleted",a.EA,a);pm(c,b,"contentPauseRequested",a.xh,a);pm(c,b,"contentResumeRequested",a.dg,a);pm(c,b,"userClose",a.Di,a);pm(c,b,"autoClose",a.Ci,a);pm(c,b,"adBreakInitialized",a.FA,a);b.init(a.ae,a.Zd,a.Zc)};
sC=function(a){if(!a.Xp){a.Xp=!0;a.kb.g=!0;try{Vn(Sn.getInstance(),44,{cmpl:!0})}catch(b){}a.ia("allAdsCompleted");-1==a.ni&&xC(a)}};
xC=function(a){Tm(Qm(),420706009)||Tn.clear();null!=a.Ld&&(a=a.Ld.bi(),null!=a&&JA(a,Tn.g))};
rC=function(a){return 0==a.Eb.sb().length};
yC=function(a){return null!=a.wb?a.wb:null!=a.Md?a.Eb.get(a.Md.g):null};
$ia=function(){this.Cw=new Pha;this.fb=null};
nz=function(a,b){if(g.kb(b))throw Error("Ads manager creation failure, no ads.");if(aja(a,b)){var c=bja(a,b);if(!g.kb(c))return new My(c)}c=Ky(b);P.g()||(c=c&&null!=ys(b[0])?new Jy(0,c,b[0]):c);if(c)return c;throw Error("Ads manager creation failure, failed to determine ad type.");};
bja=function(a,b){var c=[];(0,g.H)(b,function(a){var b=Ky([a]);b&&a.Wb()&&g.nb(c,b)},a);
return c};
Ky=function(a){var b=a[0];switch(zC(b)){case "overlay":return Gs(b)?new kC(a):new Uy(a);case "video":return new Lx(a);case "vpaid":return new ty(a);case "flash_vpaid":return 2==P.F?new yw(a):new Ew(a)}return null};
aja=function(a,b){if(1==b.length)return!1;var c=zC(b[0]);return(0,g.Ik)(b,function(a){a=zC(a);return c!=a||"vpaid"==a||"flash_vpaid"==a?!0:!1},a)};
zC=function(a){var b=$r(a)&&P.g();b=0!=P.F||b;return null!=Qs(a)&&b?"vpaid":no&&null!=Rs(a)&&0!=P.F?"flash_vpaid":Gs(a)&&null==Qs(a)&&Ks(a,"nonlinear")?"overlay":Ks(a,"linear")?"video":Ks(a,"nonlinear")&&null==Qs(a)?"overlay":null};
AC=function(a){g.Ef.call(this);this.o=a;a=new TA(new CA);this.g=new dC(new $ia,a,Tn);this.g.U("adsManagerLoaded",this.dispatchEvent,!1,this);this.g.U("adError",this.dispatchEvent,!1,this);this.g.U("adLoadError",this.dispatchEvent,!1,this)};
BC=function(a,b,c){Gda();var d="",e=ri(),f=e.o;e=e.g;f&&f.url?d=f.url:e&&e.url&&(d=e.url);b.location=d;b.referrer=window.document.referrer;b.Te=zm(b.g,a.o.D);b.Pt=a.o.L;Tia(a.g,b,c)};
CC=function(a,b){this.g=a;this.o=b};
DC=function(a,b,c,d,e,f,k,l){this.g=a;this.F=b;this.A=c;this.C=d;this.B=e;this.D=f;this.o=k;this.G=l};
EC=function(a,b){if(0==b)return a.g;if(1==b)return a.o;var c=Zc(a.g,a.A,b),d=Zc(a.A,a.B,b),e=Zc(a.B,a.o,b);c=Zc(c,d,b);d=Zc(d,e,b);return Zc(c,d,b)};
cja=function(a,b){var c=(b-a.g)/(a.o-a.g);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,k=0;8>k;k++){f=EC(a,c);var l=(EC(a,c+1E-6)-f)/1E-6;if(1E-6>Math.abs(f-b))return c;if(1E-6>Math.abs(l))break;else f<b?d=c:e=c,c-=(f-b)/l}for(k=0;1E-6<Math.abs(f-b)&&8>k;k++)f<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),f=EC(a,c);return c};
FC=function(a,b,c,d){this.B=a;this.C=b;this.g=this.A=a;this.D=c||0;this.F=d||2};
GC=function(a,b,c,d,e){this.g=a;this.A=c;this.G=d;this.F=e||1;this.C=45E3;this.B=new g.nm(this);this.o=new g.rg;sg(this.o,250)};
IC=function(a,b,c){a.jj=1;a.hh=gm(b.clone());a.Gi=c;a.D=!0;HC(a,null)};
JC=function(a,b,c,d,e){a.jj=1;a.hh=gm(b.clone());a.Gi=null;a.D=c;e&&(a.gC=!1);HC(a,d)};
HC=function(a,b){a.Kl=(0,g.G)();KC(a);a.Ch=a.hh.clone();fm(a.Ch,"t",a.F);a.Ul=0;a.Pc=a.g.yq(a.g.Ol()?b:null);0<a.fr&&(a.Bo=new g.vk((0,g.A)(a.gD,a,a.Pc),a.fr));a.B.U(a.Pc,"readystatechange",a.LS);var c=a.hi?g.$b(a.hi):{};a.Gi?(a.ip="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.Pc.send(a.Ch,a.ip,a.Gi,c)):(a.ip="GET",a.gC&&!g.ud&&(c.Connection="close"),a.Pc.send(a.Ch,a.ip,null,c));a.g.qf(1)};
RC=function(a,b,c){for(var d=!0;!a.Rh&&a.Ul<c.length;){var e=dja(a,c);if(e==LC){4==b&&(a.ii=4,MC(),d=!1);break}else if(e==NC){a.ii=4;MC();d=!1;break}else OC(a,e)}4==b&&0==c.length&&(a.ii=1,MC(),d=!1);a.vf=a.vf&&d;d||(PC(a),QC(a))};
dja=function(a,b){var c=a.Ul,d=b.indexOf("\n",c);if(-1==d)return LC;c=Number(b.substring(c,d));if((0,window.isNaN)(c))return NC;d+=1;if(d+c>b.length)return LC;var e=b.substr(d,c);a.Ul=d+c;return e};
UC=function(a,b){a.Kl=(0,g.G)();KC(a);var c=b?window.location.hostname:"";a.Ch=a.hh.clone();g.dm(a.Ch,"DOMAIN",c);g.dm(a.Ch,"t",a.F);try{a.xf=new window.ActiveXObject("htmlfile")}catch(n){PC(a);a.ii=7;MC();QC(a);return}var d="<html><body>";if(b){for(var e="",f=0;f<c.length;f++){var k=c.charAt(f);if("<"==k)e+="\\x3c";else if(">"==k)e+="\\x3e";else{var l=k;if(l in SC)k=SC[l];else if(l in TC)k=SC[l]=TC[l];else{var m=l.charCodeAt(0);if(31<m&&127>m)k=l;else{if(256>m){if(k="\\x",16>m||256<m)k+="0"}else k=
"\\u",4096>m&&(k+="0");k+=m.toString(16).toUpperCase()}k=SC[l]=k}e+=k}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=Wc(tc("b/12014412"),d);a.xf.open();a.xf.write(g.Nc(c));a.xf.close();a.xf.parentWindow.m=(0,g.A)(a.PR,a);a.xf.parentWindow.d=(0,g.A)(a.xB,a,!0);a.xf.parentWindow.rpcClose=(0,g.A)(a.xB,a,!1);c=a.xf.createElement("DIV");a.xf.parentWindow.document.body.appendChild(c);d=Fc(a.Ch.toString());d=La(Cc(d));d=Wc(tc("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=
g.Nc(d);a.g.qf(1)};
KC=function(a){a.mu=(0,g.G)()+a.C;VC(a,a.C)};
VC=function(a,b){if(null!=a.fk)throw Error("WatchDog timer not null");a.fk=WC((0,g.A)(a.gS,a),b)};
XC=function(a){a.fk&&(v.clearTimeout(a.fk),a.fk=null)};
QC=function(a){a.g.Jx()||a.Rh||a.g.so(a)};
PC=function(a){XC(a);g.Ye(a.Bo);a.Bo=null;a.o.stop();um(a.B);if(a.Pc){var b=a.Pc;a.Pc=null;b.abort();b.dispose()}a.xf&&(a.xf=null)};
OC=function(a,b){try{a.g.qB(a,b),a.g.qf(4)}catch(c){}};
ZC=function(a,b,c,d,e){if(0==d)c(!1);else{var f=e||0;d--;YC(a,b,function(e){e?c(!0):v.setTimeout(function(){ZC(a,b,c,d,f)},f)})}};
YC=function(a,b,c){var d=new window.Image;d.onload=function(){try{$C(d),c(!0)}catch(e){}};
d.onerror=function(){try{$C(d),c(!1)}catch(e){}};
d.onabort=function(){try{$C(d),c(!1)}catch(e){}};
d.ontimeout=function(){try{$C(d),c(!1)}catch(e){}};
v.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);
d.src=a};
$C=function(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};
aD=function(a){this.g=a;this.o=new CC};
cD=function(a){var b=bD(a.g,a.pk,"/mail/images/cleardot.gif");gm(b);ZC(b.toString(),5E3,(0,g.A)(a.qH,a),3,2E3);a.qf(1)};
eD=function(a){var b=a.g.J;if(null!=b)MC(),b?(MC(),dD(a.g,a,!1)):(MC(),dD(a.g,a,!0));else if(a.pe=new GC(a,0,void 0,void 0,void 0),a.pe.hi=a.Zq,b=a.g,b=bD(b,b.Ol()?a.Qk:null,a.dr),MC(),!g.sd||g.pc(10))fm(b,"TYPE","xmlhttp"),JC(a.pe,b,!1,a.Qk,!1);else{fm(b,"TYPE","html");var c=a.pe;a=!!a.Qk;c.jj=3;c.hh=gm(b.clone());UC(c,a)}};
fD=function(a,b,c,d){this.G=a||null;this.g=1;this.o=[];this.B=[];this.C=new CC;this.I=b||null;this.J=null!=c?c:null;this.D=d||!1};
eja=function(a,b){this.g=a;this.map=b;this.context=null};
gD=function(a){g.$e.call(this,"statevent",a)};
hD=function(a,b){g.$e.call(this,"timingevent",a);this.size=b};
iD=function(a){g.$e.call(this,"serverreachability",a)};
mD=function(a){jD(a);if(3==a.g){var b=a.yl++,c=a.sn.clone();g.dm(c,"SID",a.A);g.dm(c,"RID",b);g.dm(c,"TYPE","terminate");kD(a,c);b=new GC(a,0,a.A,b,void 0);b.jj=2;b.hh=gm(c.clone());(new window.Image).src=b.hh;b.Kl=(0,g.G)();KC(b)}lD(a)};
oD=function(a){a.MH(1,0);a.sn=bD(a,null,a.Yq);nD(a)};
jD=function(a){a.Yg&&(a.Yg.abort(),a.Yg=null);a.wc&&(a.wc.cancel(),a.wc=null);a.vg&&(v.clearTimeout(a.vg),a.vg=null);pD(a);a.Od&&(a.Od.cancel(),a.Od=null);a.ah&&(v.clearTimeout(a.ah),a.ah=null)};
qD=function(a,b){if(0==a.g)throw Error("Invalid operation: sending map when state is closed");a.o.push(new eja(a.XN++,b));2!=a.g&&3!=a.g||nD(a)};
nD=function(a){a.Od||a.ah||(a.ah=WC((0,g.A)(a.vB,a),0),a.Ek=0)};
tD=function(a,b){if(1==a.g){if(!b){a.yl=Math.floor(1E5*Math.random());var c=a.yl++,d=new GC(a,0,"",c,void 0);d.hi=null;var e=rD(a),f=a.sn.clone();g.dm(f,"RID",c);a.G&&g.dm(f,"CVER",a.G);kD(a,f);IC(d,f,e);a.Od=d;a.g=2}}else 3==a.g&&(b?sD(a,b):0==a.o.length||a.Od||sD(a))};
sD=function(a,b){if(b)if(6<a.Th){a.o=a.B.concat(a.o);a.B.length=0;var c=a.yl-1;var d=rD(a)}else c=b.G,d=b.Gi;else c=a.yl++,d=rD(a);var e=a.sn.clone();g.dm(e,"SID",a.A);g.dm(e,"RID",c);g.dm(e,"AID",a.wj);kD(a,e);c=new GC(a,0,a.A,c,a.Ek+1);c.hi=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Od=c;IC(c,e,d)};
kD=function(a,b){if(a.od){var c=a.od.rx(a);c&&g.Kb(c,function(a,c){g.dm(b,c,a)})}};
rD=function(a){var b=Math.min(a.o.length,1E3),c=["count="+b];if(6<a.Th&&0<b){var d=a.o[0].g;c.push("ofs="+d)}else d=0;for(var e=0;e<b;e++){var f=a.o[e].g,k=a.o[e].map;f=6>=a.Th?e:f-d;try{g.Kb(k,function(a,b){c.push("req"+f+"_"+b+"="+(0,window.encodeURIComponent)(a))})}catch(l){c.push("req"+f+"_type="+(0,window.encodeURIComponent)("_badmap"))}}a.B=a.B.concat(a.o.splice(0,b));
return c.join("&")};
uD=function(a){a.wc||a.vg||(a.F=1,a.vg=WC((0,g.A)(a.uB,a),0),a.Ui=0)};
wD=function(a){if(a.wc||a.vg||3<=a.Ui)return!1;a.F++;a.vg=WC((0,g.A)(a.uB,a),vD(a,a.Ui));a.Ui++;return!0};
dD=function(a,b,c){a.hp=c;a.cf=b.Ag;a.D||oD(a)};
pD=function(a){null!=a.Vh&&(v.clearTimeout(a.Vh),a.Vh=null)};
vD=function(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b};
yD=function(a,b){if(2==b||9==b){var c=null;a.od&&(c=null);var d=(0,g.A)(a.yT,a);c||(c=new g.Vl("//www.google.com/images/cleardot.gif"),gm(c));YC(c.toString(),1E4,d)}else MC();xD(a,b)};
xD=function(a,b){a.g=0;a.od&&a.od.kw(a,b);lD(a);jD(a)};
lD=function(a){a.g=0;a.cf=-1;if(a.od)if(0==a.B.length&&0==a.o.length)a.od.pq(a);else{var b=g.sb(a.B),c=g.sb(a.o);a.B.length=0;a.o.length=0;a.od.pq(a,b,c)}};
bD=function(a,b,c){var d=g.hm(c);if(""!=d.o)b&&g.Xl(d,b+"."+d.o),g.Yl(d,d.C);else{var e=window.location;d=uda(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c)}a.Bk&&g.Kb(a.Bk,function(a,b){g.dm(d,b,a)});
g.dm(d,"VER",a.Th);kD(a,d);return d};
WC=function(a,b){if(!g.wa(a))throw Error("Fn must not be null and must be a function");return v.setTimeout(function(){a()},b)};
MC=function(){zD.dispatchEvent(new gD(zD))};
AD=function(){};
g.BD=function(a,b,c,d,e,f){a=a.clone();b=b.clone();var k=0;if(d||0!=c)c&4?a.x-=b.width+(d?d.right:0):c&2?a.x-=b.width/2:d&&(a.x+=d.left),c&1?a.y-=b.height+(d?d.bottom:0):d&&(a.y+=d.top);if(f){if(e){k=a;c=b;d=0;65==(f&65)&&(k.x<e.left||k.x>=e.right)&&(f&=-2);132==(f&132)&&(k.y<e.top||k.y>=e.bottom)&&(f&=-5);k.x<e.left&&f&1&&(k.x=e.left,d|=1);if(f&16){var l=k.x;k.x<e.left&&(k.x=e.left,d|=4);k.x+c.width>e.right&&(c.width=Math.min(e.right-k.x,l+c.width-e.left),c.width=Math.max(c.width,0),d|=4)}k.x+c.width>
e.right&&f&1&&(k.x=Math.max(e.right-c.width,e.left),d|=1);f&2&&(d|=(k.x<e.left?16:0)|(k.x+c.width>e.right?32:0));k.y<e.top&&f&4&&(k.y=e.top,d|=2);f&32&&(l=k.y,k.y<e.top&&(k.y=e.top,d|=8),k.y+c.height>e.bottom&&(c.height=Math.min(e.bottom-k.y,l+c.height-e.top),c.height=Math.max(c.height,0),d|=8));k.y+c.height>e.bottom&&f&4&&(k.y=Math.max(e.bottom-c.height,e.top),d|=2);f&8&&(d|=(k.y<e.top?64:0)|(k.y+c.height>e.bottom?128:0));e=d}else e=256;k=e}e=new g.$g(0,0,0,0);e.left=a.x;e.top=a.y;e.width=b.width;
e.height=b.height;return{rect:e,status:k}};
g.CD=function(a){g.L.call(this);this.Sd=1;this.A=[];this.B=0;this.g=[];this.o={};this.C=!!a};
fja=function(a,b,c){g.Tf(function(){a.apply(b,c)})};
g.DD=function(a){this.g=a};
HD=function(a){this.g=a};
MD=function(a){this.data=a};
ND=function(a){return!g.t(a)||a instanceof MD?a:new MD(a)};
OD=function(a){this.g=a};
g.PD=function(a){var b=a.creation;a=a.expiration;return!!a&&a<(0,g.G)()||!!b&&b>(0,g.G)()};
g.QD=function(a){this.g=a};
gja=function(){};
RD=function(){};
SD=function(a){this.g=a};
TD=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.g=a};
UD=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.g=a};
VD=function(a,b){this.o=a;this.g=b+"::"};
g.WD=function(a){var b=new TD;return b.isAvailable()?a?new VD(b,a):b:null};
XD=function(a,b){this.Sd=a;this.g=b};
YD=function(a){this.g=[];if(a)a:{if(a instanceof YD){var b=a.Db();a=a.sb();if(0>=this.Jc()){for(var c=this.g,d=0;d<b.length;d++)c.push(new XD(b[d],a[d]));break a}}else b=g.Rb(a),a=g.Pb(a);for(d=0;d<b.length;d++)ZD(this,b[d],a[d])}};
ZD=function(a,b,c){var d=a.g;d.push(new XD(b,c));b=d.length-1;a=a.g;for(c=a[b];0<b;)if(d=b-1>>1,a[d].Sd>c.Sd)a[b]=a[d],b=d;else break;a[b]=c};
$D=function(){YD.call(this)};
aE=function(a,b){this.C=[];this.N=a;this.L=b||null;this.B=this.g=!1;this.A=void 0;this.I=this.O=this.F=!1;this.D=0;this.o=null;this.G=0};
cE=function(a,b,c){a.g=!0;a.A=c;a.B=!b;bE(a)};
eE=function(a){if(a.g){if(!a.I)throw new dE;a.I=!1}};
gE=function(a,b,c){fE(a,b,null,c)};
fE=function(a,b,c,d){a.C.push([b,c,d]);a.g&&bE(a)};
hE=function(a){return(0,g.Ik)(a.C,function(a){return g.wa(a[1])})};
bE=function(a){if(a.D&&a.g&&hE(a)){var b=a.D,c=iE[b];c&&(v.clearTimeout(c.ya),delete iE[b]);a.D=0}a.o&&(a.o.G--,delete a.o);b=a.A;for(var d=c=!1;a.C.length&&!a.F;){var e=a.C.shift(),f=e[0],k=e[1];e=e[2];if(f=a.B?k:f)try{var l=f.call(e||a.L,b);g.t(l)&&(a.B=a.B&&(l==b||a.isError(l)),a.A=b=l);if(Wf(b)||"function"===typeof v.Promise&&b instanceof v.Promise)d=!0,a.F=!0}catch(m){b=m,a.B=!0,hE(a)||(c=!0)}}a.A=b;d&&(l=(0,g.A)(a.J,a,!0),d=(0,g.A)(a.J,a,!1),b instanceof aE?(fE(b,l,d),b.O=!0):b.then(l,d));c&&
(b=new jE(b),iE[b.ya]=b,a.D=b.ya)};
dE=function(){Fa.call(this)};
kE=function(){Fa.call(this)};
jE=function(a){this.ya=v.setTimeout((0,g.A)(this.o,this),0);this.g=a};
lE=function(a){we(this,a,null,null)};
hja=function(a,b){for(;pe(b)&&4!=b.o;)switch(b.A){case 1:var c=re(b);ye(a,1,c);break;case 2:c=se(b);ye(a,2,c);break;default:qe(b)}return a};
mE=function(a){we(this,a,ija,null)};
nE=function(a,b){if(1<b.length)a[b[0]]=b[1];else{var c=b[0],d;for(d in c)a[d]=c[d]}};
g.pE=function(a){nE(g.oE,arguments)};
g.qE=function(a,b){return a in g.oE?g.oE[a]:b};
g.U=function(a,b,c){b=void 0===b?{}:b;a=(a=a in rE?rE[a]:c)||"";c={};for(var d in b)c.vo=d,a=a.replace(new RegExp("\\$"+c.vo,"gi"),function(a){return function(){return b[a.vo]}}(c)),c={vo:c.vo};
return a};
g.sE=function(a){nE(rE,arguments)};
g.tE=function(){g.sE({YTP_TRANSLATE_MENU_ITEM:"Translate captions",YTP_CONTRIBUTE_MENU_ITEM:"Add subtitles/CC",YTP_ASR_SETTINGS_LABEL:"Automatic Captions",YTP_LANGUAGE_OFF:"Off",YTP_FONT_FAMILY:"Font family",YTP_FONT_SIZE:"Font size",YTP_FONT_COLOR:"Font color",YTP_FONT_OPACITY:"Font opacity",YTP_BACKGROUND_COLOR:"Background color",YTP_BACKGROUND_OPACITY:"Background opacity",YTP_WINDOW_COLOR:"Window color",YTP_WINDOW_OPACITY:"Window opacity",YTP_COLOR_WHITE:"White",YTP_COLOR_YELLOW:"Yellow",YTP_COLOR_GREEN:"Green",
YTP_COLOR_CYAN:"Cyan",YTP_COLOR_BLUE:"Blue",YTP_COLOR_MAGENTA:"Magenta",YTP_COLOR_RED:"Red",YTP_COLOR_BLACK:"Black",YTP_FONT_FAMILY_MONO_SERIF:"Monospaced Serif",YTP_FONT_FAMILY_PROP_SERIF:"Proportional Serif",YTP_FONT_FAMILY_MONO_SANS:"Monospaced Sans-Serif",YTP_FONT_FAMILY_PROP_SANS:"Proportional Sans-Serif",YTP_FONT_FAMILY_CASUAL:"Casual",YTP_FONT_FAMILY_CURSIVE:"Cursive",YTP_FONT_FAMILY_SMALL_CAPS:"Small Capitals",YTP_CHAR_EDGE_STYLE:"Character edge style",YTP_EDGE_STYLE_NONE:"None",YTP_EDGE_STYLE_RAISED:"Raised",
YTP_EDGE_STYLE_DEPRESSED:"Depressed",YTP_EDGE_STYLE_OUTLINE:"Outline",YTP_EDGE_STYLE_DROP_SHADOW:"Drop Shadow",YTP_CLICK_FOR_SETTINGS:"Click $GEAR_ICON for settings"})};
g.vE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-cast-desktop-on"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,R:{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"}}]}};
g.wE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-chevron-back"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},K:[{H:"path",R:{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.xE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-chevron-forward"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},K:[{H:"path",R:{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"}}]}};
yE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-clip-clear"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},K:[{H:"path",R:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{H:"path",R:{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"}}]}};
zE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-clip-end"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},K:[{H:"path",Pa:!0,R:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
AE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-clip-start"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},K:[{H:"path",Pa:!0,R:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.BE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-close"]}:{H:"svg",R:{height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{H:"path",R:{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"}}]}};
CE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-closed-captioning"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,R:{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"}}]}};
DE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-forward-five-seconds"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{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"}}]}};
EE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-link"]}:{H:"svg",R:{height:"100%",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",R:{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"}}]}};
FE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-next"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{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.GE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-notifications-active"]}:{H:"svg",R:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},K:[{H:"path",R:{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"}}]}};
HE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-pause"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
IE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-play"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{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"}}]}};
JE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-prev"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
KE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-replay"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{d:"M17,9 C12,9 8,13 8,18 C8,23 12,27 17,27 C19.5,27 21.82,25.95 23.45,24.26 L22.04,22.85 C20.77,24.17 19,25 17,25 C13,25 10,21.86 10,18 C10,14.13 13.13,11 17,11 C20.86,11 24,14 24,18 L21,18 L25,22 L29,18 L26,18 C26,13 22,9 17,9 Z"}}]}};
LE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-rewind-five-seconds"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{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"}}]}};
g.ME=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-settings"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,R:{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"}}]}};
NE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-stop"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
OE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-volume-high"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,R:{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"}}]}};
PE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-volume-low"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,R:{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"}}]}};
QE=function(){return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-volume-muted"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{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"}}]}};
SE=function(a){a=a.split("");RE.JR(a,77);RE.km(a,70);RE.km(a,7);RE.JR(a,70);RE.rf(a,2);RE.JR(a,13);RE.rf(a,3);return a.join("")};
g.TE=function(a,b){var c=g.x("yt.logging.errors.log");c?c(a,b,void 0,void 0,void 0):(c=g.qE("ERRORS",[]),c.push([a,b,void 0,void 0,void 0]),g.pE("ERRORS",c))};
UE=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.TE(b)}}:a};
jja=function(){if(!VE)return null;var a=VE();return"open"in a?a:null};
g.WE=function(a){switch(a&&"status"in a?a.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
g.XE=function(a){window.clearInterval(a)};
g.YE=function(a){window.clearTimeout(a)};
g.ZE=function(a,b){g.wa(a)&&(a=UE(a));return window.setInterval(a,b)};
g.$E=function(a,b){g.wa(a)&&(a=UE(a));return window.setTimeout(a,b)};
g.aF=function(a){a=a.split("&");for(var b={},c=0,d=a.length;c<d;c++){var e=a[c].split("=");if(1==e.length&&e[0]||2==e.length){var f=Ka(e[0]||"");e=Ka(e[1]||"");f in b?g.ua(b[f])?tb(b[f],e):b[f]=[b[f],e]:b[f]=e}}return b};
g.bF=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return g.aF(a)};
cF=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=g.bF(e[1]||"");for(var f in b)if(c||!Tb(e,f))e[f]=b[f];return g.Pg(a,e)+d};
g.dF=function(a,b){return cF(a,b||{},!1)};
eF=function(a){var b=[];g.Kb(a,function(a,d){var c=g.Ja(d),f;g.ua(a)?f=a:f=[a];(0,g.H)(f,function(a){""==a?b.push(c):b.push(c+"="+g.Ja(a))})});
return b.join("&")};
fF=function(){if(!a)var a=window.document.location.href;a=g.Fg(a)[1]||null;return null!==a&&"https"==a};
gF=function(a){if(!b)var b=window.location.href;var c=g.Fg(a)[1]||null,d=g.Hg(a);c&&d?(a=g.Fg(a),b=g.Fg(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.Hg(b)==d&&g.Ig(b)==g.Ig(a):!0;return a};
g.hF=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),g.bF(1<a.length?a[1]:a[0])):{}};
iF=function(a){a=a.split(",");return a=a.map(function(a){return g.bF(a)})};
g.jF=function(a,b){return cF(a,b||{},!0)};
kja=function(a,b){b=void 0===b?{}:b;var c=gF(a),d;for(d in kF){var e=g.qE(kF[d]),f;if((f=e)&&!(f=c)){var k=a;f=d;var l=g.qE("CORS_HEADER_WHITELIST")||{};f=(k=g.Hg(k))?(l=l[k])?g.jb(l,f):!1:!0}f&&(b[d]=e)}return b};
lja=function(a,b){var c=g.qE("XSRF_FIELD_NAME",void 0),d;b.headers&&(d=b.headers["Content-Type"]);return!b.V2&&(!g.Hg(a)||b.withCredentials||g.Hg(a)==window.document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Nb&&b.Nb[c])};
g.nF=function(a,b){var c=b.format||"JSON";b.X2&&(a=window.document.location.protocol+"//"+window.document.location.hostname+(window.document.location.port?":"+window.document.location.port:"")+a);var d=g.qE("XSRF_FIELD_NAME",void 0),e=g.qE("XSRF_TOKEN",void 0),f=b.Yc;f&&(f[d]&&delete f[d],a=g.jF(a,f));f=b.postBody||"";var k=b.Nb;lja(a,b)&&(k||(k={}),k[d]=e);k&&g.u(f)&&(d=g.bF(f),g.dc(d,k),f=b.JB&&"JSON"==b.JB?JSON.stringify(d):g.Ng(d));d=f||k&&!g.Wb(k);!lF&&d&&"POST"!=b.method&&(lF=!0,g.TE(Error("AJAX request with postData should use POST")));
var l=!1,m,n=mF(a,function(a){if(!l){l=!0;m&&g.YE(m);var d=g.WE(a),e=null;if(d||400<=a.status&&500>a.status)e=mja(c,a,b.T2);if(d)a:if(204==a.status)d=!0;else{switch(c){case "XML":d=0==(0,window.parseInt)(e&&e.return_code,10);break a;case "RAW":d=!0;break a}d=!!e}e=e||{};var f=b.context||v;d?b.Vb&&b.Vb.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.Dd&&b.Dd.call(f,a,e)}},b.method,f,b.headers,b.responseType,b.withCredentials);
b.Ed&&0<b.timeout&&(m=g.$E(function(){l||(l=!0,n.abort(),g.YE(m),b.Ed.call(b.context||v,n))},b.timeout));
return n};
mja=function(a,b,c){var d=null;switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=JSON.parse(a));break;case "XML":if(b=(b=b.responseXML)?nja(b):null)d={},(0,g.H)(b.getElementsByTagName("*"),function(a){d[a.tagName]=oja(a)})}c&&oF(d);
return d};
oF=function(a){if(g.xa(a))for(var b in a)"html_content"==b||Ia(b,"_html")?a[b]=Wc(tc("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):oF(a[b])};
nja=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
oja=function(a){var b="";(0,g.H)(a.childNodes,function(a){b+=a.nodeValue});
return b};
g.pF=function(a,b){b.method="POST";b.Nb||(b.Nb={});g.nF(a,b)};
mF=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&UE(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=jja();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;m.open(c,a,!0);f&&(m.responseType=f);k&&(m.withCredentials=!0);c="POST"==c;if(e=kja(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};
g.rF=function(){return qF("cobalt")};
qF=function(a){var b=g.Ib;return b?0<=b.toLowerCase().indexOf(a):!1};
sF=function(){return qF("android")&&qF("chrome")&&!(qF("trident/")||qF("edge/"))};
uF=function(){return g.tF&&qF("crkey")};
vF=function(){return qF("(ps3; leanback shell)")||qF("ps3")&&g.rF()};
wF=function(){return qF("(ps4; leanback shell)")||qF("ps4")&&g.rF()};
xF=function(){var a=/WebKit\/([0-9]+)/.exec(g.Ib);return!!(a&&600<=(0,window.parseInt)(a[1],10))};
yF=function(){return qF("nintendo wiiu")};
zF=function(){return qF("iemobile")||qF("windows phone")&&qF("edge")};
g.AF=function(a,b,c){a&&(c&&!g.rF()?a&&(a=g.xd("IFRAME",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),g.gd(a).body.appendChild(a)):g.qE("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)?mF(a,b):pja(a,b))};
pja=function(a,b){var c=new window.Image,d=""+qja++;BF[d]=c;c.onload=c.onerror=function(){b&&BF[d]&&b();delete BF[d]};
c.src=a};
CF=function(a){try{window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")||g.AF(a,void 0)}catch(b){g.AF(a,void 0)}};
g.DF=function(a){return g.qE("EXPERIMENT_FLAGS",{})[a]};
FF=function(a,b){var c=g.$b(b);return new g.Yf(function(b,e){c.Vb=function(a){g.WE(a)?b(a):e(new EF("Request failed, status="+a.status,"net.badstatus",a))};
c.onError=function(a){e(new EF("Unknown request error","net.unknown",a))};
c.Ed=function(a){e(new EF("Request timed out","net.timeout",a))};
g.nF(a,c)})};
EF=function(a,b,c){Fa.call(this,a+", errorCode="+b);this.errorCode=b;this.g=c;this.name="PromiseAjaxError"};
GF=function(a,b,c,d){function e(d,l,m){return g.jg(d,function(d){return 0>=l||403===d.g.status?cg(new EF("Request retried too many times","net.retryexhausted",d.g)):f(m).then(function(){return e(FF(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(a){return new g.Yf(function(b){(0,window.setTimeout)(b,a)})}
return e(FF(a,b),c-1,d)};
HF=function(a){this.A=void 0===a?null:a;this.o=0;this.g=null};
IF=function(a){var b=new HF;a=void 0===a?null:a;b.o=2;b.g=void 0===a?null:a;return b};
JF=function(a){var b=new HF;a=void 0===a?null:a;b.o=1;b.g=void 0===a?null:a;return b};
LF=function(a){Fa.call(this,a.message||a.description||a.name);this.isMissing=a instanceof KF;this.isTimeout=a instanceof rja&&a.errorCode==sja.TIMEOUT;this.isCanceled=a instanceof og};
KF=function(){Fa.call(this,"Biscotti ID is missing from server")};
MF=function(){return g.Sb(window,"settings","experiments","flags","html5_serverside_pagead_id_sets_cookie")||g.qE("EXP_HTML5_SERVERSIDE_PAGEAD_ID_SETS_COOKIE",!1)||g.DF("html5_serverside_pagead_id_sets_cookie")?"//googleads.g.doubleclick.net/pagead/id?exp=nomnom":"//googleads.g.doubleclick.net/pagead/id"};
tja=function(){if("1"===g.Sb(g.qE("PLAYER_CONFIG",{}),"args","privembed"))return cg(Error("Biscotti ID is not available in private embed mode"));NF||(NF=g.jg(FF(MF(),OF).then(PF),function(a){return QF(2,a)}));
return NF};
PF=function(a){a=a.responseText;if(!g.Ha(a,")]}'"))throw new KF;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new KF;a=a.id;RF(a);NF=JF(a);SF(18E5,2);return a};
QF=function(a,b){var c=new LF(b);RF("");NF=IF(c);0<a&&SF(12E4,a-1);throw c;};
SF=function(a,b){g.$E(function(){g.jg(FF(MF(),OF).then(PF,function(a){return QF(b,a)}),g.y)},a)};
RF=function(a){g.ra("yt.ads.biscotti.lastId_",a,void 0)};
TF=function(){try{var a=g.x("yt.ads.biscotti.getId_");return a?a():tja()}catch(b){return cg(b)}};
g.VF=function(a){return UF[a]||(UF[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};
g.WF=function(a,b){return a?a.dataset?a.dataset[g.VF(b)]:a.getAttribute("data-"+b):null};
g.XF=function(a,b,c){a&&(a.dataset?a.dataset[g.VF(b)]=String(c):a.setAttribute("data-"+b,c))};
YF=function(a,b){var c;(0,g.Ik)(a,function(a){c=b[a];return!!c});
return c};
$F=function(a,b){if(a in b)return b[a];var c=ZF+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]};
aG=function(){return!!YF(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],window.document)};
g.bG=function(){var a=YF(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],window.document);return a?a:null};
cG=function(a){var b;aG()?g.bG()==a&&(b=window.document):b=a;b&&(a=YF(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))&&a.call(b)};
uja=function(){var a=window.document;return g.eb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
dG=function(a){return g.eb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
eG=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;if(a=a||window.event){this.event=a;for(var b in a)b in vja||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b=b.nodeName?
b:null}catch(c){b=null}else"mouseover"==this.type?b=a.fromElement:"mouseout"==this.type&&(b=a.toElement);this.relatedTarget=b;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.g=a.pageX;this.o=a.pageY}};
fG=function(a){if(window.document.body&&window.document.documentElement){var b=window.document.body.scrollTop+window.document.documentElement.scrollTop;a.g=a.clientX+(window.document.body.scrollLeft+window.document.documentElement.scrollLeft);a.o=a.clientY+b}};
wja=function(a,b,c,d){d=void 0===d?!1:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in window.document?"mouseleave"!=b||"onmouseenter"in window.document?"mousewheel"==b&&"MozBoxSizing"in window.document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Ub(gG,function(e){return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})};
g.iG=function(a,b,c,d){d=void 0===d?!1:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=wja(a,b,c,d);if(e)return e;e=++hG.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in window.document);var k=f?function(d){d=new eG(d);if(!g.Vd(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new eG(b);
b.currentTarget=a;return c.call(a,b)};
k=UE(k);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in window.document.documentElement.style&&(b="MozMousePixelScroll"),a.addEventListener(b,k,d)):a.attachEvent("on"+b,k);gG[e]=[a,b,c,k,d];return e};
g.jG=function(a){a&&("string"==typeof a&&(a=[a]),(0,g.H)(a,function(a){if(a in gG){var b=gG[a],d=b[0],e=b[1],f=b[3];b=b[4];d.removeEventListener?d.removeEventListener(e,f,b):d.detachEvent&&d.detachEvent("on"+e,f);delete gG[a]}}))};
g.kG=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
g.lG=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
mG=function(a){a=a||window.event;var b=a.pageX,c=a.pageY;window.document.body&&window.document.documentElement&&(g.qa(b)||(b=a.clientX+window.document.body.scrollLeft+window.document.documentElement.scrollLeft),g.qa(c)||(c=a.clientY+window.document.body.scrollTop+window.document.documentElement.scrollTop));return new g.ad(b,c)};
nG=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};
oG=function(a){a=a||window.event;return a.path&&a.path.length?a.path[0]:g.kG(a)};
g.pG=function(a){a=a||window.event;return!1===a.returnValue||a.Gy&&a.Gy()};
g.qG=function(a,b,c){var d;return d=g.iG(a,b,function(){g.jG(d);c.apply(a,arguments)},!1)};
g.rG=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.sG=function(a){this.o=a||window;this.g=[]};
g.tG=function(a){g.jG(a.g);a.g.length=0};
g.uG=function(a){g.L.call(this);this.N=[];this.Ib=a||this};
vG=function(a,b,c,d){for(var e=0;e<c.length;e++)a.P(b,c[e],d)};
g.wG=function(a){for(;a.N.length;){var b=a.N.pop();b.target.removeEventListener(b.name,b.qk)}};
g.xG=function(){g.L.call(this);this.ea=new g.CD;g.M(this,this.ea)};
g.zG=function(a,b,c,d){g.xG.call(this);this.A=!!b;this.D=a;this.I=c||a;this.G=!!d;this.g=new g.uG(this);g.M(this,this.g);this.C=this.F=null;this.B=this.o=!1;b&&(g.ud&&a.setAttribute("draggable","true"),a.style.touchAction="none");yG(this)};
AG=function(a,b,c){a.g.P(a.I,b,c,void 0,!a.A)};
yG=function(a){a.C=null;a.F=null;AG(a,BG("over"),a.iz);AG(a,"touchstart",a.rs);a.A&&AG(a,BG("down"),a.PN)};
CG=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.F)return d}return null};
BG=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
DG=function(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||g.$b(xja);this.assets=a.assets||{};this.attrs=a.attrs||g.$b(yja);this.params=a.params||g.$b(zja);this.minVersion=a.min_version||"8.0.0";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||{}};
Aja=function(a){a instanceof DG||(a=new DG(a));return a};
EG=function(a){for(var b=0;b<a.length;b++){var c=a[b];"send_follow_on_ping_action"==c.name&&c.data&&c.data.follow_on_url&&g.AF(c.data.follow_on_url)}};
g.FG=function(a,b,c){this.o=a;this.B=b;this.A=c;this.g=void 0};
g.KG=function(a,b,c){var d=g.GG();if(d){var e=d.subscribe(a,function(){var d=arguments;var k=function(){g.HG[e]&&b.apply(c||window,d)};
try{IG[a]?k():g.$E(k,0)}catch(l){g.TE(l)}},c);
g.HG[e]=!0;g.JG[a]||(g.JG[a]=[]);g.JG[a].push(e);return e}return 0};
g.LG=function(a){var b=g.GG();b&&(g.qa(a)?a=[a]:g.u(a)&&(a=[(0,window.parseInt)(a,10)]),(0,g.H)(a,function(a){b.unsubscribeByKey(a);delete g.HG[a]}))};
g.GG=function(){return g.x("ytPubsubPubsubInstance")};
g.MG=function(a,b){var c=g.GG();return c?c.publish.apply(c,arguments):!1};
g.NG=function(a,b){var c=g.KG(a,function(a){b.apply(void 0,arguments);g.LG(c)},void 0)};
g.OG=function(a,b){IG[a]=!0;var c=g.GG();c&&c.publish.apply(c,arguments);IG[a]=!1};
g.UG=function(a,b){PG[a.endpoint]=b;if(a.Zm){var c=a.Zm;var d={};c.videoId?d.videoId=c.videoId:c.playlistId&&(d.playlistId=c.playlistId);QG[a.Zm.token]=d;c=RG(a.endpoint,a.Zm.token)}else c=RG(a.endpoint);c.push(a.IB);d=g.DF("web_logging_max_batch");c.length>=(Number(d||0)||20)?SG():TG()};
SG=function(){g.YE(VG);if(!g.Wb(WG)){for(var a in WG){var b=XG[a];if(!b){var c=PG[a];if(!c)continue;b=new c;XG[a]=b}c=void 0;var d=a,e=b,f=Bja[d],k=YG[d]||{};YG[d]=k;b=Math.round((0,g.ZG)());for(c in WG[d]){var l={context:g.$G(e.g)};l[f]=RG(d,c);k.dispatchedEventCount=k.dispatchedEventCount||0;k.dispatchedEventCount+=l[f].length;l.requestTimeMs=b;var m=QG[c];if(m)a:{var n=l,q=c;if(m.videoId)var r="VIDEO";else if(m.playlistId)r="PLAYLIST";else break a;n.credentialTransferTokenTargetId=m;n.context=
n.context||{};n.context.user=n.context.user||{};n.context.user.credentialTransferTokens=[{token:q,scope:r}]}delete QG[c];g.aH(e,d,l,{})}c=k;d=b;c.previousDispatchMs&&(b=d-c.previousDispatchMs,e=c.diffCount||0,c.averageTimeBetweenDispatchesMs=e?(c.averageTimeBetweenDispatchesMs*e+b)/(e+1):b,c.diffCount=e+1);c.previousDispatchMs=d;delete WG[a]}g.Wb(WG)||TG()}};
TG=function(){g.YE(VG);VG=g.$E(SG,g.qE("LOGGING_BATCH_TIMEOUT",1E4))};
RG=function(a,b){b||(b="");WG[a]=WG[a]||{};WG[a][b]=WG[a][b]||[];return WG[a][b]};
cH=function(){if(null==g.x("_lact",window)){var a=(0,window.parseInt)(g.qE("LACT"),10);a=(0,window.isFinite)(a)?(0,g.G)()-Math.max(a,0):-1;g.ra("_lact",a,window);g.ra("_fact",a,window);-1==a&&bH();g.iG(window.document,"keydown",bH);g.iG(window.document,"keyup",bH);g.iG(window.document,"mousedown",bH);g.iG(window.document,"mouseup",bH);g.KG("page-mouse",bH);g.KG("page-scroll",bH);g.KG("page-resize",bH)}};
bH=function(){null==g.x("_lact",window)&&(cH(),g.x("_lact",window));var a=(0,g.G)();g.ra("_lact",a,window);-1==g.x("_fact",window)&&g.ra("_fact",a,window);g.MG("USER_ACTIVE")};
g.dH=function(){var a=g.x("_lact",window);return null==a?-1:Math.max((0,g.G)()-a,0)};
g.fH=function(a,b,c,d){var e=g.eH,f={};f.eventTimeMs=Math.round(c||(0,g.ZG)());f[a]=b;f.context={lastActivityMs:String(c?-1:g.dH())};a=g.DF("web_system_health_gel2")&&"systemHealthCaptured"==a?"log_event2":"log_event";g.UG({endpoint:a,IB:f,Zm:d},e)};
g.$G=function(a){a={client:{hl:a.Pr,gl:a.Or,clientName:a.Nr,clientVersion:a.innertubeContextClientVersion}};g.qE("DELEGATED_SESSION_ID")&&(a.user={onBehalfOfUser:g.qE("DELEGATED_SESSION_ID")});return a};
Cja=function(a,b,c){c.context&&c.context.capabilities&&(c=c.context.capabilities,c.snapshot||c.golden)&&(a="vix");return"/youtubei/"+a+"/"+b};
g.eH=function(a){this.g=a||{apiaryHost:g.qE("APIARY_HOST",void 0),fH:g.qE("APIARY_HOST_FIRSTPARTY",void 0),gapiHintOverride:!!g.qE("GAPI_HINT_OVERRIDE",void 0),gapiHintParams:g.qE("GAPI_HINT_PARAMS",void 0),innertubeApiKey:g.qE("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.qE("INNERTUBE_API_VERSION",void 0),Nr:g.qE("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.qE("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Pr:g.qE("INNERTUBE_CONTEXT_HL",void 0),Or:g.qE("INNERTUBE_CONTEXT_GL",
void 0),xhrApiaryHost:g.qE("XHR_APIARY_HOST",void 0)||"",Rn:g.qE("INNERTUBE_HOST_OVERRIDE",void 0)||""}};
g.aH=function(a,b,c,d){!g.qE("VISITOR_DATA")&&.01>Math.random()&&g.TE(Error("Missing VISITOR_DATA when sending innertube request."),"WARNING");var e={headers:{"Content-Type":"application/json","X-Goog-Visitor-Id":g.qE("VISITOR_DATA","")},Nb:c,JB:"JSON",Ed:d.Ed,Vb:function(a,b){d.Vb&&d.Vb(b)},
onError:function(a,b){if(d.onError)d.onError(b)},
timeout:d.timeout,withCredentials:!0},f=g.Kl();f&&(e.headers.Authorization=f,e.headers["X-Goog-AuthUser"]=g.qE("SESSION_INDEX",0));var k="",l=a.g.Rn;l&&(k=l);f&&!k&&(e.headers["x-origin"]=window.location.origin);g.pF(""+k+Cja(a.g.innertubeApiVersion,b,c)+"?alt=json&key="+a.g.innertubeApiKey,e)};
g.gH=function(){return!!g.x("yt.scheduler.instance")};
g.hH=function(a,b,c){(0,window.isNaN)(c)&&(c=void 0);var d=g.x("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),window.NaN):g.$E(a,c||0)};
g.iH=function(a){if(!(0,window.isNaN)(a)){var b=g.x("yt.scheduler.instance.cancelJob");b?b(a):g.YE(a)}};
jH=function(a){var b=g.x("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
lH=function(a,b){var c=Object.keys(a).join("");kH("info_"+c+"_"+b)||(a.clientActionNonce=b,g.fH("latencyActionInfo",a))};
kH=function(a){mH[a]=mH[a]||{count:0};var b=mH[a];b.count++;b.time=(0,g.ZG)();nH||(nH=g.hH(Dja,0,5E3));if(10<b.count){if(11==b.count){b=Error("CSI data exceeded logging limit with key: "+a);var c=void 0,d=void 0;c=void 0===c?"ERROR":c;d=void 0===d?!1:d;a={name:g.qE("INNERTUBE_CONTEXT_CLIENT_NAME",1),version:g.qE("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0)};c=void 0===c?"ERROR":c;d=window&&window.yterr||(void 0===d?!1:d)||!1;if(b&&d&&!(5<=oH)){d=b.stacktrace;var e=b.columnNumber;var f=g.x("window.location.href");
if(g.u(b))b={message:b,name:"Unknown error",lineNumber:"Not available",fileName:f,stack:"Not available"};else{var k=!1;try{var l=b.lineNumber||b.line||"Not available"}catch(r){l="Not available",k=!0}try{var m=b.fileName||b.filename||b.sourceURL||v.$googDebugFname||f}catch(r){m="Not available",k=!0}b=!k&&b.lineNumber&&b.fileName&&b.stack&&b.message&&b.name?b:{message:b.message||"Not available",name:b.name||"UnknownError",lineNumber:l,fileName:m,stack:b.stack||"Not available"}}d=d||b.stack;l=b.lineNumber.toString();
(0,window.isNaN)(l)||(0,window.isNaN)(e)||(l=l+":"+e);if(!(pH[b.message]||0<=d.indexOf("/YouTubeCenter.js")||0<=d.indexOf("/mytube.js"))){m=b.fileName;l={Yc:{a:"logerror",t:"jserror",type:b.name,msg:b.message.substr(0,1E3),line:l,level:c,"client.name":a.name},Nb:{url:g.qE("PAGE_NAME",window.location.href),file:m},method:"POST"};a.version&&(l["client.version"]=a.version);d&&(l.Nb.stack=d);for(var n in a)l.Nb["client."+n]=a[n];if(n=g.qE("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(var q in n)l.Nb[q]=
n[q];g.nF("/error_204",l);pH[b.message]=!0;oH++}}}return!0}return!1};
Dja=function(){var a=(0,g.ZG)(),b;for(b in mH)6E4<a-mH[b].time&&delete mH[b];nH=0};
g.sH=function(a,b,c){var d=c&&0<c?c:0;c=d?(0,g.G)()+1E3*d:0;if((d=d?g.qH:rH)&&window.JSON){g.u(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.tH=function(a){if(!rH&&!g.qH||!window.JSON)return null;try{var b=rH.get(a)}catch(c){}if(!g.u(b))try{b=g.qH.get(a)}catch(c){}if(!g.u(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b};
g.uH=function(a){try{rH&&rH.remove(a),g.qH&&g.qH.remove(a)}catch(b){}};
g.vH=function(){var a=g.qE("client-screen-nonce",void 0);a||(a=g.qE("EVENT_ID",void 0));return a};
Eja=function(a,b){this.action=a;this.params=b||{}};
wH=function(a){this.app=this.name=this.id="";this.type="REMOTE_CONTROL";this.obfuscatedGaiaId=this.avatar=this.username="";this.A=!1;this.capabilities=new window.Set;this.experiments=new window.Set;this.theme="u";new Pl;this.g=this.o="";a&&(this.id=a.id||a.name,this.name=a.name,this.app=a.app,this.type=a.type||"REMOTE_CONTROL",this.username=a.user||"",this.avatar=a.userAvatarUri||"",this.obfuscatedGaiaId=a.obfuscatedGaiaId||"",this.theme=a.theme||"u",Fja(this,a.capabilities||""),Gja(this,a.experiments||
""),this.o=a.remoteControllerUrl||"",this.g=a.localChannelEncryptionKey||"")};
Fja=function(a,b){a.capabilities.clear();(0,g.Id)(b.split(","),g.Aa(vaa,Hja)).forEach(function(b){a.capabilities.add(b)})};
Gja=function(a,b){a.experiments.clear();b.split(",").forEach(function(b){a.experiments.add(b)})};
yH=function(a,b){g.L.call(this);this.o=new g.Ht(this.C,0,this);g.M(this,this.o);this.A=this.g=0;if(g.wa(a))b&&(a=(0,g.A)(a,b));else if(a&&g.wa(a.handleEvent))a=(0,g.A)(a.handleEvent,a);else throw Error("Invalid listener argument");this.B=a;xH(this)};
xH=function(a){a.o.stop();a.g=5E3+2E4*Math.random()};
zH=function(a,b,c){this.L=a;this.D=b;this.A=new g.CD;this.o=new yH(this.kU,this);this.g=this.fb=null;this.J=!1;this.C=null;this.I="";this.G=this.B=0;this.F=[];this.N=c||!1};
Ija=function(a){return{firstTestResults:[""],secondTestResults:!a.g.hp,sessionId:a.g.A,arrayId:a.g.wj}};
AH=function(a,b){a.G=b||0;a.o.stop();a.g&&(3==a.g.g&&tD(a.g),mD(a.g));a.G=0};
BH=function(a){return!!a.g&&3==a.g.g};
Jja=function(a,b){(a.D.loungeIdToken=b)||a.o.stop()};
Kja=function(){var a=CH;DH();EH.push(a);FH(EH)};
g.GH=function(a,b){DH();var c=EH,d=Lja(a,String(b));g.kb(c)?Mja(d):(FH(c),(0,g.H)(c,function(a){a(d)}))};
DH=function(){EH||(EH=g.x("yt.mdx.remote.debug.handlers_")||[],g.ra("yt.mdx.remote.debug.handlers_",EH,void 0))};
Mja=function(a){var b=(HH+1)%50;HH=b;IH[b]=a;JH||(JH=49==b)};
FH=function(a){var b=IH;if(b[0]){var c=HH,d=JH?c:-1;do{d=(d+1)%50;var e=b[d];(0,g.H)(a,function(a){a(e)})}while(d!=c);
IH=Array(50);HH=-1;JH=!1}};
Lja=function(a,b){var c=((0,g.G)()-Nja)/1E3;c.toFixed&&(c=c.toFixed(3));var d=[];d.push("[",c+"s","] ");d.push("[","yt.mdx.remote","] ");d.push(a+": "+b,"\n");return d.join("")};
KH=function(a){a=a||{};this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.uuid=a.uuid||a.dialId||""};
g.LH=function(a,b){return!!b&&(a.id==b||a.uuid==b)};
MH=function(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}};
Oja=function(a){return new KH(a)};
NH=function(a){return g.ua(a)?(0,g.J)(a,Oja):[]};
g.OH=function(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.uuid?".."+a.uuid.slice(-6):"-")+"}":"null"};
PH=function(a){return g.ua(a)?"["+g.J(a,g.OH).join(",")+"]":"null"};
g.QH=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"==a?b:b&3|8).toString(16)})};
g.RH=function(a,b){return g.eb(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})};
g.SH=function(a,b){return g.eb(a,function(a){return g.LH(a,b)})};
g.TH=function(a){g.xG.call(this);this.F=a;this.g=[]};
UH=function(a,b){var c=a.get(b.uuid)||a.get(b.id);if(c){var d=c.name;c.id=b.id||c.id;c.name=b.name;c.token=b.token;c.uuid=b.uuid||c.uuid;return c.name!=d}a.g.push(b);return!0};
Pja=function(a,b){var c=a.g.length!=b.length;a.g=(0,g.Id)(a.g,function(a){return!!g.RH(b,a)});
for(var d=0,e=b.length;d<e;d++)c=UH(a,b[d])||c;return c};
Qja=function(a,b){var c=a.g.length;a.g=(0,g.Id)(a.g,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});
return a.g.length<c};
VH=function(a,b,c,d){g.xG.call(this);this.F=a;this.D=b;this.B=c;this.C=d;this.A=0;this.g=null;this.o=window.NaN};
XH=function(a,b,c){WH.set(""+a,b,c,"/","youtube.com",!1)};
g.aI=function(){var a=YH(),b=g.ZH();g.jb(a,b);g.$H()&&Eb(a,b);a=Rja(a);if(g.kb(a))try{WH.remove("remote_sid","/","youtube.com")}catch(c){}else try{XH("remote_sid",a.join(","),-1)}catch(c){}};
YH=function(){var a=g.tH("yt-remote-connected-devices")||[];g.Bb(a);return a};
Rja=function(a){if(g.kb(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return(0,g.J)(a,function(a,b){return 0==b?a:a.substring(c.length)})};
bI=function(a){g.sH("yt-remote-connected-devices",a,86400)};
g.ZH=function(){if(cI)return cI;var a=g.tH("yt-remote-device-id");a||(a=g.QH(),g.sH("yt-remote-device-id",a,31536E3));for(var b=YH(),c=1,d=a;g.jb(b,d);)c++,d=a+"#"+c;return cI=d};
dI=function(){return g.tH("yt-remote-session-browser-channel")};
g.$H=function(){return g.tH("yt-remote-session-screen-id")};
Sja=function(a){5<a.length&&(a=a.slice(a.length-5));var b=(0,g.J)(eI(),function(a){return a.loungeToken}),c=(0,g.J)(a,function(a){return a.loungeToken});
(0,g.Nr)(c,function(a){return!g.jb(b,a)})&&fI();
g.sH("yt-remote-local-screens",a,31536E3)};
eI=function(){return g.tH("yt-remote-local-screens")||[]};
fI=function(){g.sH("yt-remote-lounge-token-expiration",!0,86400)};
Tja=function(a,b){g.sH("yt-remote-session-browser-channel",a);g.sH("yt-remote-session-screen-id",b);var c=YH(),d=g.ZH();g.jb(c,d)||c.push(d);bI(c);g.aI()};
g.gI=function(a){a||(g.uH("yt-remote-session-screen-id"),g.uH("yt-remote-session-video-id"));g.aI();a=YH();g.pb(a,g.ZH());bI(a)};
g.iI=function(){if(!hI){var a=g.WD();a&&(hI=new g.DD(a))}return hI?!!hI.get("yt-remote-use-staging-server"):!1};
kI=function(a){g.TH.call(this,"LocalScreenService");this.A=a;this.o=window.NaN;jI(this);this.info("Initializing with "+PH(this.g))};
lI=function(a){if(a.g.length){var b=(0,g.J)(a.g,function(a){return a.id}),c=a.A.fi("/pairing/get_lounge_token_batch");
a.A.tu(c,{screen_ids:b.join(",")},(0,g.A)(a.qI,a),(0,g.A)(a.pI,a))}};
jI=function(a){var b=NH(eI());b=(0,g.Id)(b,function(a){return!a.uuid});
return Pja(a,b)};
mI=function(a,b){Sja((0,g.J)(a.g,MH));b&&fI()};
oI=function(a,b){g.xG.call(this);this.D=b;var c=g.tH("yt-remote-online-screen-ids")||"";c=c?c.split(","):[];for(var d={},e=this.D(),f=0,k=e.length;f<k;++f){var l=e[f].id;d[l]=g.jb(c,l)}this.g=d;this.C=a;this.A=this.B=window.NaN;this.o=null;nI("Initialized with "+g.zg(this.g))};
pI=function(a,b,c){var d=a.C.fi("/pairing/get_screen_availability");a.C.tu(d,{lounge_token:b.token},(0,g.A)(function(a){a=a.screens||[];for(var d=0,e=a.length;d<e;++d)if(a[d].loungeToken==b.token){c("online"==a[d].status);return}c(!1)},a),(0,g.A)(function(){c(!1)},a))};
qI=function(a,b){a:if(g.Nb(b)!=g.Nb(a.g))var c=!1;else{c=g.Rb(b);for(var d=0,e=c.length;d<e;++d)if(!a.g[c[d]]){c=!1;break a}c=!0}c||(nI("Updated online screens: "+g.zg(a.g)),a.g=b,a.X("screenChange"));Uja(a)};
rI=function(a){(0,window.isNaN)(a.A)||g.YE(a.A);a.A=g.$E((0,g.A)(a.At,a),0<a.B&&a.B<(0,g.G)()?2E4:1E4)};
nI=function(a){g.GH("OnlineScreenService",a)};
sI=function(a){var b={};(0,g.H)(a.D(),function(a){a.token?b[a.token]=a.id:this.hc("Requesting availability of screen w/o lounge token.")});
return b};
Uja=function(a){a=g.Rb(g.Lb(a.g,function(a){return a}));
g.Bb(a);a.length?g.sH("yt-remote-online-screen-ids",a.join(","),60):g.uH("yt-remote-online-screen-ids")};
g.tI=function(a){g.TH.call(this,"ScreenService");this.D=a;this.o=this.A=null;this.B=[];this.C={};Vja(this)};
vI=function(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.C[b]);var k=a.fe();if(k=(c?g.SH(k,c):null)||g.SH(k,b)){k.uuid=b;var l=uI(a,k);pI(a.o,l,function(a){e(a?l:null)})}else c?Wja(a,c,(0,g.A)(function(a){var f=uI(this,new KH({name:d,
screenId:c,loungeToken:a,dialId:b||""}));pI(this.o,f,function(a){e(a?f:null)})},a),f):e(null)};
wI=function(a,b){for(var c=0,d=a.g.length;c<d;++c)if(a.g[c].name==b)return a.g[c];return null};
Wja=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Nb:{screen_ids:b},method:"POST",context:a,Vb:function(a,e){var f=e&&e.screens||[];f[0]&&f[0].screenId==b?c(f[0].loungeToken):d(Error("Missing lounge token in token response"))},
onError:function(){d(Error("Request screen lounge token failed"))}};
g.nF(a.D.fi("/pairing/get_lounge_token_batch"),e)};
xI=function(a){a.g=a.A.fe();var b=a.C,c={},d;for(d in b)c[b[d]]=d;b=0;for(d=a.g.length;b<d;++b){var e=a.g[b];e.uuid=c[e.id]||""}a.info("Updated manual screens: "+PH(a.g))};
Vja=function(a){yI(a);a.A=new kI(a.D);a.A.subscribe("screenChange",(0,g.A)(a.CI,a));xI(a);a.B=NH(g.tH("yt-remote-automatic-screen-cache")||[]);yI(a);a.info("Initializing automatic screens: "+PH(a.B));a.o=new oI(a.D,(0,g.A)(a.fe,a,!0));a.o.subscribe("screenChange",(0,g.A)(function(){this.X("onlineScreenChange")},a))};
uI=function(a,b){var c=a.get(b.id);c?(c.uuid=b.uuid,b=c):((c=g.SH(a.B,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.B.push(b),g.sH("yt-remote-automatic-screen-cache",(0,g.J)(a.B,MH)));yI(a);a.C[b.uuid]=b.id;g.sH("yt-remote-device-id-map",a.C,31536E3);return b};
yI=function(a){a.C=g.tH("yt-remote-device-id-map")||{}};
zI=function(a,b,c){g.xG.call(this);this.N=c;this.I=a;this.o=b;this.A=null};
AI=function(a,b){g.GH(a.N,b)};
CI=function(a,b){zI.call(this,a,b,"CastSession");this.g=null;this.B=0;this.D=(0,g.A)(this.tU,this);this.C=(0,g.A)(this.qS,this);this.B=g.$E((0,g.A)(function(){BI(this,null)},this),12E4)};
Xja=function(a){a.info("sendYoutubeMessage_: getMdxSessionStatus "+g.zg(void 0));var b={type:"getMdxSessionStatus"};a.g?a.g.sendMessage("urn:x-cast:com.google.youtube.mdx",b,g.y,(0,g.A)(function(){AI(this,"Failed to send message: getMdxSessionStatus.")},a)):AI(a,"Sending yt message without session: "+g.zg(b))};
BI=function(a,b){g.YE(a.B);if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.A||a.A.id!=b){var c=(0,g.A)(a.to,a),d=(0,g.A)(a.ne,a);a.Cx(b,c,d,5)}}else a.ne(Error("Waiting for session status timed out."))};
DI=function(a,b){zI.call(this,a,b,"DialSession");this.B=this.G=null;this.J="";this.C=null;this.F=g.y;this.D=window.NaN;this.L=(0,g.A)(this.wU,this);this.g=g.y};
EI=function(a){a.g=a.I.mD(a.J,a.o.label,a.o.friendlyName,(0,g.A)(function(a){this.g=g.y;this.to(a)},a),(0,g.A)(function(a){this.g=g.y;
this.ne(a)},a))};
FI=function(a){var b={};b.pairingCode=a.J;if(a.C){var c=a.C.currentTime||0;b.v=a.C.videoId;b.t=c}g.iI()&&(b.env_useStageMdx=1);return g.Ng(b)};
GI=function(a,b){zI.call(this,a,b,"ManualSession");this.g=g.$E((0,g.A)(this.xj,this,null),150)};
g.HI=function(a,b,c){g.xG.call(this);this.o=a;this.D=b||"233637DE";this.F=c||!1;this.g=null;this.C=!1;this.A=[];this.B=(0,g.A)(this.VQ,this)};
II=function(a,b){return b?g.eb(a.A,function(a){return g.LH(b,a.label)},a):null};
JI=function(a){g.GH("Controller",a)};
CH=function(a){window.chrome&&window.chrome.cast&&window.chrome.cast.logMessage&&window.chrome.cast.logMessage(a)};
KI=function(a){return a.C||!!a.A.length||!!a.g};
LI=function(a,b,c){b!=a.g&&(g.Ye(a.g),(a.g=b)?(c?a.X("yt-remote-cast2-receiver-resumed",b.o):a.X("yt-remote-cast2-receiver-selected",b.o),b.subscribe("sessionScreen",(0,g.A)(a.sB,a,b)),b.A?a.X("yt-remote-cast2-session-change",b.A):c&&a.g.xj(null)):a.X("yt-remote-cast2-session-change",null))};
MI=function(a){var b=a.o.lD(),c=a.g&&a.g.o;a=(0,g.J)(b,function(a){c&&g.LH(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,d=II(this,a);d?(d.label=b,d.friendlyName=a.name):(d=new window.chrome.cast.Receiver(b,a.name),d.receiverType=window.chrome.cast.ReceiverType.CUSTOM);return d},a);
c&&(c.receiverType!=window.chrome.cast.ReceiverType.CUSTOM&&(c=new window.chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=window.chrome.cast.ReceiverType.CUSTOM),a.push(c));return a};
g.NI=function(a){this.index=-1;this.videoId=this.listId="";this.volume=this.g=-1;this.muted=!1;this.audioTrackId=null;this.A=this.G=0;this.o=null;this.hasNext=this.Rf=!1;this.J=this.I=this.B=this.D=0;this.C=window.NaN;this.F=!1;this.reset(a)};
g.OI=function(a){a.audioTrackId=null;a.o=null;a.g=-1;a.Rf=!1;a.hasNext=!1;a.G=0;a.A=(0,g.G)();a.D=0;a.B=0;a.I=0;a.J=0;a.C=window.NaN;a.F=!1};
g.PI=function(a,b){a.G=b;a.A=(0,g.G)()};
g.QI=function(a){switch(a.g){case 1:return((0,g.G)()-a.A)/1E3+a.G;case -1E3:return 0}return a.G};
g.RI=function(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&g.OI(a)};
g.SI=function(a){var b={};b.index=a.index;b.listId=a.listId;b.videoId=a.videoId;b.playerState=a.g;b.volume=a.volume;b.muted=a.muted;b.audioTrackId=a.audioTrackId;b.trackData=ac(a.o);b.hasPrevious=a.Rf;b.hasNext=a.hasNext;b.playerTime=a.G;b.playerTimeAt=a.A;b.seekableStart=a.D;b.seekableEnd=a.B;b.duration=a.I;b.loadedTime=a.J;b.liveIngestionTime=a.C;return b};
TI=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.UI=function(a){this.languageCode=a.languageCode;this.languageName=a.languageName||null;this.g=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1};
g.VI=function(a){a=void 0===a?{}:a;this.L=a.formats||"";this.A=a.format||1;if(1==this.A)for(var b=this.L.split(","),c=0;c<b.length;c++){var d=(0,window.parseInt)(b[c],10);(0,window.isNaN)(d)||(this.A=Math.max(d,this.A))}this.o=a.languageCode||"";this.D=a.languageName;this.B=a.kind||"";this.C=a.name;this.ya=a.id;this.N=a.is_servable;this.G=a.is_translateable;this.I=a.url||null;this.F=a.vss_id||"";this.g=null;a.translationLanguage&&(this.g=new g.UI(a.translationLanguage))};
g.WI=function(a){var b=a.D||"",c=[b];"asr"==a.B&&-1==b.indexOf("(")&&c.push(" ("+g.U("YTP_ASR_SETTINGS_LABEL")+")");a.C&&c.push(" - "+a.C);a.g&&c.push(" >> "+a.g.languageName);return c.join("")};
XI=function(a,b){this.id=a;this.Sc=b;this.captionTracks=[];this.Dk=this.Aq=this.g=null;this.ew="UNKNOWN"};
g.YI=function(a,b,c){g.xG.call(this);this.C=window.NaN;this.O=!1;this.J=this.I=this.L=this.N=window.NaN;this.V=[];this.B=this.F=this.A=this.jb=this.g=null;this.ra=a;this.V.push(g.iG(window,"beforeunload",(0,g.A)(this.iI,this)));this.o=[];this.jb=new g.NI;this.aa=b.id;this.g=Yja(this,c);this.g.subscribe("handlerOpened",this.LO,this);this.g.subscribe("handlerClosed",this.IO,this);this.g.subscribe("handlerError",this.JO,this);this.g.subscribe("handlerMessage",this.KO,this);Jja(this.g,b.token);this.subscribe("remoteQueueChange",
function(){var a=this.jb.videoId;g.$H()&&g.sH("yt-remote-session-video-id",a)},this)};
ZI=function(a){g.GH("conn",a)};
Yja=function(a,b){return new zH(a.ra.fi("/bc"),b)};
$I=function(a,b){a.X("proxyStateChange",b)};
Zja=function(a){a.C=g.$E((0,g.A)(function(){ZI("Connecting timeout");this.D(1)},a),2E4)};
aJ=function(a){g.YE(a.C);a.C=window.NaN};
bJ=function(a){g.YE(a.N);a.N=window.NaN};
$ja=function(a){cJ(a);a.L=g.$E((0,g.A)(function(){dJ(this,"getNowPlaying")},a),2E4)};
cJ=function(a){g.YE(a.L);a.L=window.NaN};
fJ=function(a,b){b&&(aJ(a),bJ(a));b==(BH(a.g)&&(0,window.isNaN)(a.C))?b&&($I(a,1),dJ(a,"getSubtitlesTrack")):b?(a.Y()&&a.jb.reset(),$I(a,1),dJ(a,"getNowPlaying"),eJ(a)):a.D(1)};
aka=function(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.jb.videoId&&(g.Wb(b.params)?a.jb.o=null:a.jb.o=b.params,a.X("remotePlayerChange"))};
gJ=function(a,b){var c=b.params.videoId||b.params.video_id,d=(0,window.parseInt)(b.params.currentIndex,10);a.jb.listId=b.params.listId||a.jb.listId;g.RI(a.jb,c,d);a.X("remoteQueueChange")};
bka=function(a,b){b.params=b.params||{};gJ(a,b);hJ(a,b);a.X("autoplayDismissed")};
hJ=function(a,b){var c=(0,window.parseInt)(b.params.currentTime||b.params.current_time,10);g.PI(a.jb,(0,window.isNaN)(c)?0:c);c=(0,window.parseInt)(b.params.state,10);c=(0,window.isNaN)(c)?-1:c;-1==c&&-1E3==a.jb.g&&(c=-1E3);a.jb.g=c;c=Number(b.params.loadedTime);a.jb.J=(0,window.isNaN)(c)?0:c;c=Number(b.params.duration);a.jb.I=(0,window.isNaN)(c)?0:c;c=a.jb;var d=Number(b.params.liveIngestionTime);c.C=d;c.F=(0,window.isNaN)(d)?!1:!0;c=a.jb;d=Number(b.params.seekableStartTime);var e=Number(b.params.seekableEndTime);
c.D=(0,window.isNaN)(d)?0:d;c.B=(0,window.isNaN)(e)?0:e;1==a.jb.g?$ja(a):cJ(a);a.X("remotePlayerChange")};
cka=function(a,b){if(-1E3!=a.jb.g){var c=1083;switch((0,window.parseInt)(b.params.adState,10)){case 1:c=1081;break;case 2:c=1082}a.jb.g=c;a.X("remotePlayerChange")}};
dka=function(a,b){var c="true"==b.params.muted;a.jb.volume=(0,window.parseInt)(b.params.volume,10);a.jb.muted=c;a.X("remotePlayerChange")};
eka=function(a,b){a.F=b.params.videoId;a.X("nowAutoplaying",(0,window.parseInt)(b.params.timeout,10))};
fka=function(a,b){var c="true"==b.params.hasNext;a.jb.Rf="true"==b.params.hasPrevious;a.jb.hasNext=c;a.X("previousNextChange")};
eJ=function(a){g.YE(a.J);a.J=g.$E((0,g.A)(a.D,a,1),864E5)};
dJ=function(a,b,c){c?ZI("Sending: action="+b+", params="+g.zg(c)):ZI("Sending: action="+b);a.g.sendMessage(b,c)};
iJ=function(a,b){this.g=a||0;this.spatialAudioType=b||0};
lJ=function(a,b,c,d,e,f,k,l,m,n,q){this.width=a;this.height=b;this.quality=f||jJ(a,b);this.o=g.kJ[this.quality];this.isAccelerated=!!k;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=l)||(a=this.fps,b=this.projectionType,c=g.kJ[this.quality],a=0==c?g.U("YTP_AUTO"):c+(2==b||3==b||4==b?"s":"p")+(55<a?"60":49<a?"50":39<a?"48":""));this.qualityLabel=a;this.g=m||"";this.primaries=n||"";this.A=!1!==q};
mJ=function(a){return"smpte2084"==a.g||"arib-std-b67"==a.g};
jJ=function(a,b){for(var c=Math.max(a,b),d=Math.min(a,b),e=nJ[0],f=0;f<nJ.length;f++){var k=nJ[f],l=g.kJ[k];if(c>=Math.floor(16*l/9)*lJ.prototype.B||d>=l*lJ.prototype.B)return e;e=k}return"tiny"};
pJ=function(a,b,c,d,e,f,k,l){this.id=a;this.containerType=0<=b.indexOf("/mp4")?1:0<=b.indexOf("/webm")?2:0<=b.indexOf("/x-flv")?3:0<=b.indexOf("/vtt")?4:0;this.mimeType=b;this.g=k||0;this.A=l||0;this.audio=c||null;this.video=d||null;this.Sc=e||null;this.bd=f||null;this.o=gka[oJ(this)]||""};
oJ=function(a){return a.id.split(";",1)[0]};
qJ=function(a){return"9"==a.o||"("==a.o||"9h"==a.o||"(h"==a.o};
rJ=function(a){return"9h"==a.o||"(h"==a.o};
sJ=function(a){return!(a.audio&&a.video)};
tJ=function(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")};
uJ=function(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};
vJ=function(a,b,c,d,e,f,k){var l=new iJ;b in g.kJ||(b="small");d&&e?(e=(0,window.parseInt)(e,10),d=(0,window.parseInt)(d,10)):(e=g.kJ[b],d=Math.round(16*e/9));b=new lJ(d,e,0,null,void 0,b,f,void 0,void 0,void 0,k);a=(0,window.unescape)(a.replace(/&quot;/g,'"'));return new pJ(c,a,l,b)};
wJ=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=g.aF(b||"");var c={};(0,g.H)(this.experimentIds,function(a){c[a]=!0});
this.experiments=c;this.B=!!c["9414740"]};
xJ=function(a,b){this.g=a;this.o=!!b;this.A=!1};
yJ=function(a){this.Ce=a};
zJ=function(a,b,c){this.o=a||0;this.g=b||0;this.A=c};
AJ=function(a,b){return a.o==b.o&&a.g==b.g&&a.A==b.A};
BJ=function(a,b,c){return new zJ(g.kJ[a]||0,g.kJ[b]||0,c)};
CJ=function(a){var b=g.kJ.auto;return a.o==b&&a.g==b};
EJ=function(a,b){if(b.A&&CJ(b))return DJ;if(b.A||CJ(a))return b;if(a.A||CJ(b))return a;var c=a.o&&b.o?Math.max(a.o,b.o):a.o||b.o,d=a.g&&b.g?Math.min(a.g,b.g):a.g||b.g;c=Math.min(c,d);return c==a.o&&d==a.g?a:new zJ(c,d,!1)};
g.FJ=function(a){var b=a.g||a.o;return Vb(hka,function(a){return g.kJ[a]==b})||"auto"};
GJ=function(a,b){var c=g.kJ[b];return a.o<=c&&(!a.g||a.g>=c)};
ika=function(){var a=g.tH("yt-player-volume")||{},b=a.volume;return{volume:(0,window.isNaN)(b)?100:g.Xc(Math.floor(b),0,100),muted:!!a.muted}};
HJ=function(a){g.sH("yt-player-bandwidth",a,2592E3)};
IJ=function(){return g.tH("yt-player-quality")||"auto"};
JJ=function(a){g.sH("yt-player-watch-later-pending",a)};
KJ=function(){return g.tH("yt-player-performance-cap")||0};
LJ=function(a,b,c){if(g.xa(a)){b="endSeconds startSeconds mediaContentUrl suggestedQuality videoId two_stage_token".split(" ");c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}return{videoId:a,startSeconds:b,suggestedQuality:c}};
MJ=function(a,b,c){g.u(a)&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});b=/\/([ve]|embed)\/([^#?]+)/.exec(a.mediaContentUrl);a.videoId=b&&b[2]?b[2]:null;return LJ(a)};
OJ=function(a,b){g.L.call(this);this.app=a;this.g=!0;this.o=null;this.B={};this.C={};this.F={};this.D={};this.A=null;this.G=new window.Set;this.playerType=b;V(this,"cueVideoById",this.mz);V(this,"loadVideoById",this.jL);V(this,"cueVideoByUrl",this.YK);V(this,"loadVideoByUrl",this.kL);V(this,"playVideo",this.fd);V(this,"pauseVideo",this.qd);V(this,"stopVideo",this.ag);V(this,"clearVideo",this.WK);V(this,"getVideoBytesLoaded",this.dL);V(this,"getVideoBytesTotal",this.eL);V(this,"getVideoLoadedFraction",
this.ys);V(this,"getVideoStartBytes",this.fL);V(this,"cuePlaylist",this.XK);V(this,"loadPlaylist",this.iL);V(this,"nextVideo",this.Aj);V(this,"previousVideo",this.ol);V(this,"playVideoAt",this.qz);V(this,"setShuffle",this.setShuffle);V(this,"setLoop",this.mL);V(this,"getPlaylist",this.Yf);V(this,"getPlaylistIndex",this.oz);V(this,"getPlaylistId",this.getPlaylistId);V(this,"loadModule",this.nl);V(this,"unloadModule",this.bo);V(this,"setOption",this.Cd);V(this,"getOption",this.xc);V(this,"getOptions",
this.si);V(this,"mute",this.mute);V(this,"unMute",this.cg);V(this,"isMuted",this.Le);V(this,"setVolume",this.setVolume);V(this,"getVolume",this.getVolume);V(this,"seekTo",this.tc);V(this,"getPlayerState",this.ll);V(this,"getPlaybackRate",this.Uc);V(this,"setPlaybackRate",this.Zf);V(this,"getAvailablePlaybackRates",this.zj);V(this,"getPlaybackQuality",this.kl);V(this,"setPlaybackQuality",this.pl);V(this,"getAvailableQualityLevels",this.xs);V(this,"getCurrentTime",this.getCurrentTime);V(this,"getDuration",
this.getDuration);V(this,"addEventListener",this.addEventListener);V(this,"removeEventListener",this.removeEventListener);V(this,"getVideoUrl",this.getVideoUrl);V(this,"getDebugText",this.jl);V(this,"getVideoEmbedCode",this.pz);V(this,"getVideoData",this.ga);V(this,"addCueRange",this.lz);V(this,"removeCueRange",this.rz);V(this,"setSize",this.setSize);V(this,"getApiInterface",this.ZK);V(this,"destroy",this.destroy);V(this,"showVideoInfo",this.wz);V(this,"hideVideoInfo",this.gL);V(this,"getMediaReferenceTime",
this.bL);NJ(this,"getInternalApiInterface",this.aL);NJ(this,"getAdState",this.nz);NJ(this,"isNotServable",this.hL);NJ(this,"getUpdatedConfigurationData",this.cL);NJ(this,"sendAbandonmentPing",this.lL);NJ(this,"setAutonav",this.uz);NJ(this,"setAutonavState",this.vz);NJ(this,"startInteractionLogging",this.nL);NJ(this,"channelSubscribed",this.UK);NJ(this,"channelUnsubscribed",this.VK)};
V=function(a,b,c){a.B[b]=(0,g.A)(function(){PJ(this,b);return c.apply(this,arguments)},a)};
NJ=function(a,b,c){a.C[b]=(0,g.A)(function(){PJ(this,b);return c.apply(this,arguments)},a)};
QJ=function(a){a.A||(a.A=g.$b(a.B),a.A.addEventListener=(0,g.A)(a.NH,a),a.A.removeEventListener=(0,g.A)(a.OH,a));return a.A};
PJ=function(a,b){var c=a.app.g;c.im&&!a.G.has(b)&&(a.G.add(b),c={callerUrl:c.Y,methodName:b},a.app.g.experiments.g("web_player_gel_logging_killswitch")||(a.app.g.experiments.g("web_player_gel_direct")?g.fH("webPlayerApiCalled",c,void 0,void 0):a.app.aa.X("onLogToGel",{payload_name:"webPlayerApiCalled",payload:c})))};
SJ=function(a,b,c){b=g.Xc(Math.floor(b),0,100);(0,window.isFinite)(b)&&RJ(a.app,{volume:b,muted:a.Le()},c)};
TJ=function(a,b){RJ(a.app,{muted:!0,volume:a.getVolume()},b)};
UJ=function(a,b){RJ(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.VJ=function(a,b,c){this.start=a;this.end=b;this.A=jka++;a=c||{};this.ya=a.id||"";this.B=a.priority||7;this.active=!0;this.visible=a.visible||!1;this.style=a.style||"ytp-ad-progress";this.namespace=a.namespace||"";this.color="";a.color&&(b=a.color.toString(16),this.color="#"+Array(7-b.length).join("0")+b);this.g=null;this.tooltip=a.tooltip;this.visible=this.visible;this.style=this.style;this.start=this.start};
kka=function(a){switch(a.style){case "ytp-chapter-marker":return 8;case "ytp-ad-progress":return 6;case "ytp-time-marker":return Number.POSITIVE_INFINITY;default:return 0}};
g.WJ=function(a,b){return a.start-b.start||a.B-b.B||a.A-b.A};
XJ=function(a,b,c,d,e,f,k,l){this.duration=c;this.endTime=b+c;this.ingestionTime=d;this.wa=a;this.sourceURL=e;this.startTime=b;this.o=k||0;this.range=f||null;this.g=l||!1};
g.YJ=function(){this.segments=[]};
ZJ=function(a,b){if(b>a.Dc())a.segments=[];else{var c=g.cb(a.segments,function(a){return a.wa>=b},a);
0<c&&a.segments.splice(0,c)}};
$J=function(a,b,c,d,e){this.data=a;this.offset=b;this.size=c;this.type=d;this.o=e?0:8;this.g=this.offset+this.o};
aK=function(a){var b=a.data.getInt32(a.offset+a.o);a.o+=4;return b};
bK=function(a){var b=a.data.getUint32(a.offset+a.o);a.o+=4;return b};
lka=function(a){var b=a.data,c=a.offset+a.o;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.o+=8;return b};
cK=function(a){var b=[];do{var c=a.data.getUint8(a.offset+a.o);b.push(c);a.o++}while(0!=c);b.pop()};
dK=function(a){this.data=new window.DataView(new window.ArrayBuffer(a));this.g=0};
eK=function(a,b){a.data.setInt32(a.g,b);a.g+=4};
fK=function(a,b){for(var c=0;c+4<=b.size;)eK(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.g++,b.data.getUint8(b.offset+c++))};
gK=function(a,b,c){for(var d=8,e=g.la(c),f=e.next();!f.done;f=e.next())d+=f.value.size;eK(a,d);eK(a,b);b=g.la(c);for(f=b.next();!f.done;f=b.next())fK(a,f.value)};
hK=function(a,b,c){this.Re=a;this.durationSecs=b;this.context=c};
iK=function(a,b){this.g=a;this.B=void 0===b?null:b;this.o=(0,window.parseInt)(this.g["Sequence-Number"],10)||0;this.ingestionTime=((0,window.parseInt)(this.g["Ingestion-Walltime-Us"],10)||0)/1E6;this.C=(((0,window.parseInt)(this.g["First-Frame-Time-Us"],10)||0)+((0,window.parseInt)(this.g["First-Frame-Uncertainty-Us"],10)||0))/1E6;this.G=((0,window.parseInt)(this.g["Target-Duration-Us"],10)||0)/1E6;this.F="T"==this.g["Overlayed-With-Slate"];this.A="T"==this.g["Stream-Finished"];this.D="T"==this.g.Streamable};
jK=function(a,b,c){this.g=a||0;this.yaw=b||0;this.o=c;c.getUint32(4)};
kK=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};
mK=function(a,b){var c=lK(a.data,a.g,1952868452),d=lK(a.data,a.g,1953658222),e=aK(c);aK(c);e&2&&aK(c);c=e&8?aK(c):0;var f=aK(d),k=f&1;e=f&4;var l=f&256,m=f&512,n=f&1024;f&=2048;var q=bK(d);k&&aK(d);e&&aK(d);for(var r=k=0;r<q;r++){var w=l?aK(d):c;m&&aK(d);e&&0==r||!n||aK(d);f&&aK(d);k+=w}return k/b};
pK=function(a){a=new window.DataView(a.buffer,a.byteOffset,a.byteLength);return(a=nK(a,1836476516))?oK(a):window.NaN};
lK=function(a,b,c){for(;qK(a,b);){var d=rK(a,b);if(d.type==c)return d;b+=d.size}return null};
nK=function(a,b){for(var c=0;qK(a,c);){var d=rK(a,c);if(d.type==b)return d;c=sK(d.type)?c+8:c+d.size}return null};
tK=function(a,b){if(a.data.getUint8(a.g)){var c=a.data,d=a.g+4;c.setUint32(d,Math.floor(b/4294967296));c.setUint32(d+4,b&4294967295)}else a.data.setUint32(a.g+4,b)};
uK=function(a){if(a.data.getUint8(a.g)){var b=a.data;a=a.g+4;return 4294967296*b.getUint32(a)+b.getUint32(a+4)}return a.data.getUint32(a.g+4)};
rK=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new $J(a,b,c,d)};
oK=function(a){var b=a.data.getUint8(a.g)?20:12;return a.data.getUint32(a.g+b)};
vK=function(a){return a.data.getUint32(a.g+8)};
wK=function(a){var b=a.data.getUint8(a.g);a.data.getUint16(a.g+(0==b?22:30));return a.data.getUint32(a.g+(0==b?28:36))};
qK=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};
sK=function(a){return 1836019558==a||1836019574==a||1835297121==a||1835626086==a||1937007212==a||1953653094==a||1953653099==a};
xK=function(a,b){for(var c=[],d=b.g,e=b.offset+b.size;d<e&&qK(a,d);){var f=rK(a,d);c.push(f);d+=f.size}return c};
mka=function(a){var b=nK(a,1937011556);if(!b)return null;b=lK(a,b.g+8,1635148593);if(!b)return null;var c=lK(a,b.g+78,1936995172),d=lK(a,b.g+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),b=c.data.getUint8(c.offset+c.o),c.o+=1,b){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}c=null;if(d=lK(a,d.g,1886547818)){var e=lK(a,d.g,1886546020),f=lK(a,d.g,2037673328);if(!f&&(f=lK(a,d.g,1836279920),!f))return null;e&&(aK(e),c=aK(e)/65536,aK(e));a=new window.DataView(f.data.buffer,
f.g,f.size-8);return new jK(b,c,a)}return null};
yK=function(a){return(a=lK(a,0,1836019558))?a.offset+a.size:null};
zK=function(a,b){for(var c=lK(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=lK(a,c.offset+c.size,b)}};
nka=function(a,b,c,d){d=void 0===d?!1:d;var e=lK(a,0,1836019558);if(!e)return null;var f=lK(a,e.g,1835427940),k=lK(a,e.g,1953653094),l=lK(a,e.g,1886614376);if(!f||!k)return null;var m=lK(a,k.g,1952868452),n=lK(a,k.g,1953658222),q=lK(a,k.g,1952867444);if(!m||!n||!q)return null;var r=lK(a,k.g,1935763823),w=lK(a,k.g,1935763834);if(r){var z=aK(r);var B=aK(r);if(0!=z||1!=B)return null;z=aK(r)}B=lK(a,k.g,1935828848);k=lK(a,k.g,1936158820);var C=aK(m),N=aK(m),da=C&2,Ga=C&1?lka(m):0,Da=da?aK(m):0,Ea=C&8?
aK(m):0,Me=C&16?aK(m):0,Ya=C&32?aK(m):0;C=aK(n);var Rc=C&1,Md=C&4,fg=C&256;m=C&512;var Qb=C&1024,db=C&2048;C=aK(n);var Xb=Rc?aK(n):0,ci=Md?aK(n):0;Rc=[];for(var Wg=[],cc=[],rj=[],sj=0,nd=0,tj=0;tj<C;tj++){var Wk=fg?aK(n):Ea;m&&Rc.push(aK(n));var Ne=Ya;Md&&0==tj?Ne=ci:Qb&&(Ne=aK(n));Wg.push(Ne);Ne=db?aK(n):0;0==tj&&(sj=Ne);cc.push(nd+Ne);rj.push(tj);nd+=Wk}1<=Math.abs(nd-b)&&c({flaw:"segDurMismatch",dts:nd.toFixed(),seg:b.toFixed()});g.Bb(rj,function(a,b){return cc[a]-cc[b]});
c=[];for(nd=0;nd<C;nd++)c[rj[nd]]=nd;nd=da?4:0;Ya=16*C;Md=68+nd+q.size+Ya+(r?r.size:0)+(w?w.size:0)+(B?B.size:0)+(k?k.size:0)+(l?l.size:0);n=Md-e.size;Ea=new dK(Md+(d?0:e.offset));!d&&e.offset&&Ea.Xm(a,0,e.offset);eK(Ea,Md);eK(Ea,1836019558);fK(Ea,f);eK(Ea,Md-24-(l?l.size:0));eK(Ea,1953653094);eK(Ea,16+nd);eK(Ea,1952868452);eK(Ea,131072|(da?2:0));eK(Ea,N);da&&eK(Ea,Da);fK(Ea,q);eK(Ea,20+Ya);eK(Ea,1953658222);eK(Ea,16781057);eK(Ea,C);eK(Ea,Ga+Xb+n);for(a=nd=0;a<C;a++)e=c[a],d=Math.round(b*e/C),e=Math.round(b*
(e+1)/C)-d,d=d-nd+sj,eK(Ea,e),eK(Ea,m?Rc[a]:Me),eK(Ea,Wg[a]),eK(Ea,d),nd+=e;r&&(eK(Ea,r.size),eK(Ea,1935763823),eK(Ea,0),eK(Ea,1),eK(Ea,z+n));w&&fK(Ea,w);B&&fK(Ea,B);k&&fK(Ea,k);l&&fK(Ea,l);return Ea.data.buffer};
BK=function(a){var b=AK();try{if(b.canPlayType){a=a?oka:pka;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}};
CK=function(){var a=AK();try{var b=a.muted;a.muted=!b;return a.muted!=b}catch(c){}return!1};
AK=function(){var a=g.x("yt.player.utils.videoElement_");a||(a=g.zd("VIDEO"),g.ra("yt.player.utils.videoElement_",a,void 0));return a};
DK=function(a){a=g.xd("DIV",{"class":a});window.document.body.appendChild(a);var b="none"==g.rh(a,"display");g.Gd(a);return b};
EK=function(){this.length=1};
FK=function(){this.buffered=new EK};
GK=function(a,b){this.o=a;this.A=b;this.B=0;Object.defineProperty(this,"timestampOffset",{get:this.dU,set:this.hU});Object.defineProperty(this,"buffered",{get:this.bU})};
qka=function(){this.length=0};
HK=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.g=a;this.o=window.NaN;this.A=0;Object.defineProperty(this,"duration",{get:this.cU,set:this.gU});Object.defineProperty(this,"readyState",{get:this.eU});this.g.addEventListener("webkitsourceclose",(0,g.A)(this.fU,this),!0)};
IK=function(a){return window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new HK(a)};
JK=function(a,b){g.L.call(this);this.G=new g.uG(this);g.M(this,this.G);this.o=this.g=null;this.A=a;var c=this.A;c=c.hV?c.g.webkitMediaSourceURL:window.URL.createObjectURL(c);this.C=new xJ(c,!0);this.D=this.F=this.B=null;this.L=b;vG(this.G,this.A,["sourceopen","webkitsourceopen"],this.J);vG(this.G,this.A,["sourceclose","webkitsourceclose"],this.I)};
KK=function(a){a.D||(a.D=new window.Promise((0,g.A)(function(a){this.B=a},a)));
return a.D};
LK=function(a){try{return"open"==a.A.readyState}catch(b){return!1}};
MK=function(a){try{return"closed"==a.A.readyState}catch(b){return!0}};
NK=function(a){return!!(a.g&&a.g.updating||a.o&&a.o.updating)};
OK=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
PK=function(a){return a.g?!!a.g.appendBuffer:OK()};
QK=function(a){if(/opus/.test(a)&&(g.tF&&!g.Ui("38")||uF()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!wF())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!AK().canPlayType(a)};
g.RK=function(){this.Sg=this.Rg=!1;this.B=20971520;this.C=8388608;this.o=window.NaN;this.ba=3145728;this.I=62914560;this.ea=10485760;this.Cf=this.Aa=0;this.F=window.NaN;this.iq=65536;this.lk=this.Jb=2;this.kk=25;this.G=2097152;this.jk=1048576;this.Y=!1;this.L=1800;this.sa=5;this.Fa=10;this.N=30;this.ub=1;this.g=1.15;this.A=1.05;this.rg=8;this.Ng=!1;this.Qg=!0;var a;!(a=qF("xboxone"))&&(a=xF())&&(a=/WebKit\/([0-9]+)/.exec(g.Ib),a=!(a&&602<=(0,window.parseInt)(a[1],10)));this.Sp=a||sF();this.ra=15;
this.ib=!1;this.Gq=this.Ya=this.lm=!0;this.sg=this.O=!1;this.im=.8;this.Ra=this.Nh=!1;this.ik=!0;this.ka=this.Oc=!1;this.Bf=25;this.tm=!0;this.Iq=this.Ta=!1;this.J=6;this.gd=this.pa=!1;this.wm=this.Ib=this.Ab=0;this.Mh=this.xm=!1;this.aa=0;this.fa=!1;this.da=0;this.Lh=!1;this.bb=0;this.yc=this.Pg=this.uc=!1;this.Ka=0;this.Hd=this.Hc=!1;this.Na=0;this.Va=this.ha=!1;this.sm=.5;this.ob=2;this.qm=.8;this.rm=.2;this.D=this.V=this.Id=this.Og=this.Gc=!1};
rka=function(a,b){1080<b.video.o&&!a.Rg&&(a.B=36700160,a.C=5242880,a.ba=10485760,a.G=4194304,a.Rg=!0);2160<b.video.o&&!a.Sg&&(a.B=104857600,a.F=13107200,a.Sg=!0);a.jk=Math.min(a.G,5*b.g)};
g.SK=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
TK=function(a){a=a.split("-");return 2==a.length&&(a=new g.SK((0,window.parseInt)(a[0],10),(0,window.parseInt)(a[1],10)),!(0,window.isNaN)(a.start)&&!(0,window.isNaN)(a.end)&&!(0,window.isNaN)(a.length)&&0<a.length)?a:null};
UK=function(a,b){return new g.SK(a,a+b-1)};
WK=function(a,b,c,d,e,f,k,l,m){this.na=b;this.range=c;this.type=a;this.wa=0<=d?d:-1;this.startTime=e||0;this.duration=f||0;this.Ua=k||0;this.gb=0<=l?l:this.range?this.range.length:window.NaN;this.B=!!m;this.range?(this.g=this.Ua+this.gb==this.range.length,this.A=this.startTime+this.duration*this.Ua/this.range.length,this.C=this.duration*this.gb/this.range.length,this.o=this.A+this.C):(this.g=0!=this.gb,VK(this))};
VK=function(a){a.A=a.startTime;a.C=a.duration;a.o=a.A+a.C};
ska=function(a,b,c){var d=!(!b||b.na!=a.na||b.type!=a.type||b.wa!=a.wa);return c?d&&(a.range&&b.range?b.range.end==a.range.end:b.range==a.range)&&b.Ua+b.gb==a.Ua+a.gb:d};
XK=function(a){return 1==a.type||2==a.type};
YK=function(a,b,c){return c||a.na==b.na?a.range&&b.range?a.range.start+a.Ua+a.gb==b.range.start+b.Ua:a.wa==b.wa?a.Ua+a.gb==b.Ua:a.wa+1==b.wa&&0==b.Ua&&a.g:!1};
ZK=function(a,b){return YK(a,b)||1E-6>=Math.abs(a.o-b.A)||a.wa+1==b.wa&&0==b.Ua&&a.g?!0:!1};
tka=function(a){1==a.length||(0,g.Nr)(a,function(a){return!!a.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new g.SK(a[0].range.start+a[0].Ua,b.range.start+b.Ua+b.gb-1)};
aL=function(a){var b="";g.Kb($K(a),function(a,d){b+=d+"="+a+","});
return b.slice(0,-1)};
$K=function(a){var b={};b.itag=oJ(a.na.info);b.seg=a.wa;a.range&&(b.range=""+(a.range.start+a.Ua)+"-"+(a.range.start+a.Ua+a.gb-1));b.time=""+a.A.toFixed(1)+"-"+(a.A+a.C).toFixed(1);b.off=a.Ua;return b};
bL=function(a,b,c,d){a=new WK(a.type,a.na,a.range,a.wa,a.startTime,a.duration,b,c,d&&a.B);a.g=d;return a};
cL=function(a,b){a.wa=b.wa;if(a.startTime!=b.startTime||a.duration!=b.duration)a.startTime=b.startTime,a.duration=b.duration,VK(a)};
dL=function(a,b){this.o=a;this.g=0;this.A=b||0};
eL=function(a){return a.g>=a.o.byteLength};
jL=function(a,b,c){var d=new dL(c);if(!fL(d,a))return!1;d=gL(d);if(hL(d,b)){for(a=0;b;)b>>>=8,a++;b=d.A+d.g-a;a=iL(d,!0)+a-1;var e;e||(e=Math.ceil(Math.log(a+2)/Math.log(2)/7));var f=1<<8-e;for(d=[];d.length<e-1;)d.unshift(a%256),a=Math.floor(a/256);d.unshift(a|f);c.setUint8(b,236);for(e=0;e<d.length;e++)c.setUint8(b+1+e,d[e]);return!0}return!1};
lL=function(a){kL(new dL(a));jL([408125543,374648427,174,224],30320,a)&&jL([408125543,374648427,174,224],21432,a)};
uka=function(a){var b=new dL(a);kL(b);if(fL(b,[408125543,374648427,174,224]))b=gL(b);else return null;for(var c=a=null;!eL(b);){var d=iL(b,!1);if(21432==d)switch(mL(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320==d?c=gL(b):nL(b)}if(!c)return null;for(b=null;!eL(c);)switch(iL(c,!1)){case 30321:if(3!=mL(c))return null;break;case 30324:oL(c);break;case 30323:b=oL(c);break;case 30325:oL(c);break;case 30322:var e=iL(c,!0);e=pL(c,e);e=new window.DataView(e.buffer,e.byteOffset,
e.byteLength);break;default:nL(c)}return e?new jK(a,b,e):null};
gL=function(a){var b=iL(a,!0),c=a.o.byteOffset+a.g;c=new window.DataView(a.o.buffer,c,Math.min(b,a.o.buffer.byteLength-c));c=new dL(c,a.A+a.g);a.g+=b;return c};
mL=function(a){for(var b=iL(a,!0),c=qL(a),d=1;d<b;d++)c=256*c+qL(a);return c};
oL=function(a){var b=iL(a,!0),c=0;4==b?c=a.o.getFloat32(a.g):8==b&&(c=a.o.getFloat64(a.g));a.g+=b;return c};
nL=function(a){var b=iL(a,!0);a.g+=b};
kL=function(a){var b=a.g;a.g=0;var c=!1;hL(a,440786851)&&(a.g=0,hL(a,408125543)&&(c=!0));a.g=b;return c};
rL=function(a){var b=a.g;a.g=0;var c=1E6;fL(a,[408125543,357149030,2807729])&&(c=mL(a));a.g=b;return c};
vka=function(a,b){var c=a.g;a.g=0;if(!sL(a)||!hL(a,160))return a.g=c,window.NaN;iL(a,!0);var d=a.g;if(!hL(a,161))return a.g=c,window.NaN;iL(a,!0);qL(a);var e=qL(a)<<8|qL(a);a.g=d;if(!hL(a,155))return a.g=c,window.NaN;d=mL(a);a.g=c;return(e+d)*b/1E9};
sL=function(a){if(kL(a)){if(!hL(a,408125543))return!1;iL(a,!0)}if(!hL(a,524531317))return!1;iL(a,!0);return!0};
fL=function(a,b){for(var c=0;c<b.length;c++){if(!hL(a,b[c]))return!1;c!=b.length-1&&iL(a,!0)}return!0};
hL=function(a,b){if(eL(a))return!1;for(;iL(a,!1)!=b;)if(nL(a),eL(a))return!1;return!0};
iL=function(a,b){var c=qL(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+qL(a);return c}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+qL(a),d*=128;return b?c-d:c};
qL=function(a){return a.o.getUint8(a.g++)};
pL=function(a,b){var c=new window.Uint8Array(a.o.buffer,a.o.byteOffset+a.g,b);a.g+=b;return c};
tL=function(a,b,c,d,e){this.info=a;this.g=b;this.range=c;this.o=null;this.A=d;this.ke=e};
uL=function(a){return a.range?new window.DataView(a.g,a.range.start,a.range.length):new window.DataView(a.g)};
vL=function(a,b){b=Math.min(b,a.info.gb);var c=new WK(a.info.type,a.info.na,a.info.range,a.info.wa,a.info.startTime,a.info.duration,a.info.Ua,b,!1),d=UK(a.range.start,b);c=new tL(c,a.g,d,a.A,a.ke);var e=new WK(a.info.type,a.info.na,a.info.range,a.info.wa,a.info.startTime,a.info.duration,a.info.Ua+b,a.info.gb-b,a.info.B);d=new g.SK(d.end+1,a.range.end);d=new tL(e,a.g,d,a.A,!1);return[c,d]};
wL=function(a,b){if(1==a.info.na.info.containerType){for(var c=a.info.na.g,d=new window.DataView(a.g),e=window.NaN,f=window.NaN,k=0;qK(d,k);){var l=rK(d,k);(0,window.isNaN)(e)&&(1936286840==l.type?e=vK(l):1836476516==l.type&&(e=oK(l)));if(1952867444==l.type){!e&&c&&(e=pK(c));var m=uK(l);(0,window.isNaN)(f)&&(f=Math.round(b*e)-m);tK(l,m+f)}k=sK(l.type)?k+8:k+l.size}return!0}c=new dL(new window.DataView(a.g));e=a.ke?c:new dL(new window.DataView(a.info.na.g.buffer));d=b;f=rL(e);e=c.g;c.g=0;if(sL(c)&&
hL(c,231))if(k=iL(c,!0),d=Math.floor(1E9*d/f),Math.ceil(Math.log(d)/Math.log(2)/8)>k)c=!1;else{for(f=k-1;0<=f;f--)c.o.setUint8(c.g+f,d&255),d>>>=8;c.g=e;c=!0}else c=!1;return c};
xL=function(a){var b;if(1==a.info.na.info.containerType){for(var c=b=0,d=new window.DataView(a.g);qK(d,b);){var e=rK(d,b);if(1936286840==e.type){var f=vK(e),k=wK(e);c+=k/f}b=sK(e.type)?b+8:b+e.size}b=c||window.NaN;if(!(0<=b))a:{b=a.info.na.g;c=0;d=new window.DataView(a.g);for(e=0;qK(d,c);){f=rK(d,c);if(1836476516==f.type)var l=oK(f);else if(1836019558==f.type){!l&&b&&(l=pK(b));if(!l){b=window.NaN;break a}k=lK(f.data,f.g,1953653094);e+=mK(k,l)}c=sK(f.type)?c+8:c+f.size}b=e||window.NaN}}else l=new dL(new window.DataView(a.g)),
b=a.ke?l:new dL(new window.DataView(a.info.na.g.buffer)),b=vka(l,rL(b));return b||a.info.C};
yL=function(a){return 1==a.info.na.info.containerType?a.o?a.o.F&&!!lK(new window.DataView(a.g),0,1718909296):!1:kL(new dL(new window.DataView(a.g)))};
wka=function(){this.g=this.wf=this.o=this.A=0};
zL=function(a,b){a[b]||(a[b]=new wka);return a[b]};
AL=function(a){return(a=xka.exec(a))?a[0]:""};
BL=function(a){return yka.test("https://"+a+"/")};
CL=function(a){a=new g.Vl(a);Wl(a,window.document.location.protocol);g.Xl(a,window.document.location.hostname);window.document.location.port&&g.Yl(a,window.document.location.port);return a.toString()};
DL=function(a){a=new g.Vl(a);Wl(a,window.document.location.protocol);return a.toString()};
g.EL=function(a){this.B=a;this.C=this.o=this.D="";this.g={};this.A=""};
FL=function(a){a.A||(a.A=zka(a));return a.A};
HL=function(a){GL(a);return a.C};
IL=function(a){GL(a);return Mb(a.g,function(a){return null!==a})};
JL=function(a,b){GL(a);if("/videoplayback"!=a.o){var c=a.clone();c.set("playerfallback",""+b);return c}var d=FL(a),e=new g.Vl(d);c=e.o.match("\\.a1\\.googlevideo\\.com$");e.o.match("\\.googlevideo\\.com$")?(g.Xl(e,"redirector.googlevideo.com"),d=e.toString()):e.o.match("r[1-9].*\\.c\\.youtube\\.com$")?(g.Xl(e,"www.youtube.com"),d=e.toString()):d=CL(d);d=new g.EL(d);b&&d.set("cmo=pf",""+b);c&&d.set("cmo=td","a1.googlevideo.com");return d};
GL=function(a){if(a.B){if(!KL.test(a.B))throw Error("Untrusted URL: "+a.B);var b=g.hm(a.B);a.D=b.B;a.C=b.o+(null!=b.C?":"+b.C:"");var c=b.A;if(0==c.indexOf("/videoplayback"))a.o="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.o=c.substr(0,d),c=c.substr(d+1)):(a.o=c,c="")}else a.o=c,c="";d=a.g;a.g=LL(c);g.Ba(a.g,ML(b.Bx()));g.Ba(a.g,d);"index.m3u8"==a.g.file&&(delete a.g.file,a.o+="/file/index.m3u8");a.B="";a.A=""}};
zka=function(a){GL(a);var b=a.D+(a.D?"://":"//")+a.C+a.o;if(IL(a)){var c=[];g.Kb(a.g,function(a,b){null!==a&&c.push(b+"="+a)});
b+="?"+c.join("&")}return b};
LL=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&NL(c,a[b],a[b+1]);return c};
ML=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?NL(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
NL=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};
OL=function(a){this.g=a;this.o={};this.A=""};
Aka=function(a,b){var c=b.indexOf("?");if(0<c){var d=ML(b.substr(c+1));g.Kb(d,function(a,b){this.set(b,a)},a);
b=b.substr(0,c)}c=LL(b);g.Kb(c,function(a,b){this.set(b,a)},a)};
g.PL=function(a){a.A||(a.A=Bka(a));return a.A};
Bka=function(a){var b=FL(a.g),c=[];g.Kb(a.o,function(a,b){c.push(b+"="+a)});
if(!c.length)return b;var d=c.join("&");a=IL(a.g)?"&":"?";return b+a+d};
QL=function(a,b){var c=new g.EL(b),d=c.get("req_id");d&&a.set("req_id",d);g.Kb(a.o,function(a,b){c.set(b,null)});
return c};
Cka=function(a){this.B=a.clone();this.A=a;this.o=null;this.C=this.g=0};
SL=function(a,b){var c=zL(b,HL(a.A));if(2<=c.wf||1<=c.g){var d=RL(a);d=zL(b,HL(d));if(d.wf+d.g<=c.wf+c.g)return!0}return!1};
g.TL=function(a,b){var c=b?RL(a):a.A;return new OL(c)};
RL=function(a){a.o||(a.o=JL(a.B,1));return a.o};
UL=function(a){return 1<a.g?a.C+1E3*Math.pow(1.6,a.g-1)<(0,g.ZG)():!0};
VL=function(a,b){this.o=a[0].na.B;this.B=b||"";this.g=a;this.range=this.g[0].range&&0<this.g[0].gb?tka(this.g):null;this.A=window.NaN;this.C=this.requestId=null};
g.WL=function(a,b,c){/http[s]?:\/\//.test(a.B)?b=new OL(new g.EL(a.B)):(b=null===a.C?SL(a.o,b):a.C,b=g.TL(a.o,b),a.B&&Aka(b,a.B));(c=c||a.range)&&b.set("range",c.toString());a.requestId&&b.set("req_id",a.requestId);(0,window.isNaN)(a.A)||b.set("headm",a.A.toString());return b};
XL=function(a){if(a.range)return a.range.length;a=a.g[0];return Math.round(a.C*a.na.info.g)};
YL=function(a,b,c){this.index=null;this.info=b;this.initRange=c||null;this.g=null;this.D=this.o=!1;this.B=new Cka(a);this.F=null};
ZL=function(a,b){a.info&&a.info.video&&4==a.info.video.projectionType&&!a.F&&(1==a.info.containerType?a.F=mka(b):2==a.info.containerType&&(a.F=uka(b)))};
$L=function(a,b,c,d,e,f){f=void 0===f?0:f;YL.call(this,a,b,d);this.index=e||new g.YJ;this.A=f;this.I=c;this.G=!0;if(this.C=!c)this.o=!0};
aM=function(a,b,c){this.segments=[];this.o=a;this.A=void 0===b?0:b;this.g=void 0===c?!1:c};
cM=function(a,b,c){b=bM(a,b);return 0<=b&&(c||!a.segments[b].g)};
bM=function(a,b){return g.zb(a.segments,{wa:b},function(a,b){return a.wa-b.wa})};
dM=function(a,b,c){return new XJ(b,c.startTime-(c.wa-b)*a.o,a.o,0,"sq/"+b,void 0,void 0,!0)};
eM=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?14400:e;$L.call(this,a,b,"",void 0,void 0,c);this.index=new aM(c||0,e,d)};
Dka=function(a,b,c,d,e){this.wa=a;this.Re=b;this.durationSecs=c;this.g=d||window.NaN;this.o=e||window.NaN};
fM=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2})\:(\d{2})\:(\d{2})\.(\d{3})$/)?a+"Z":a};
gM=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""};
hM=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};
iM=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(0,window.parseFloat)(b[2]||0)+60*(0,window.parseFloat)(b[4]||0)+(0,window.parseFloat)(b[6]||0):(0,window.parseFloat)(a)};
jM=function(){this.g=[];this.o=null;this.C=0;this.B=[];this.A=!1;this.D=""};
Eka=function(a){var b=a.B;a.B=[];return b};
Fka=function(){this.B=[];this.g=null;this.o={};this.A={}};
Jka=function(a,b,c){var d=[];b=g.la(b.getElementsByTagName("SegmentTimeline"));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.parentNode.parentNode,k=null;"Period"==f.nodeName?k=Gka(a):"AdaptationSet"==f.nodeName?k=Hka(a,f.attributes.id?f.attributes.id.value:f.attributes.mimetype.value):"Representation"==f.nodeName&&(k=Ika(a,f.attributes.id.value));if(null==k)return;k.update(e,c);tb(d,Eka(k))}Cb(d,function(a){return a.Re});
tb(a.B,d)};
Kka=function(a){a.g&&(a.g.g=[]);g.Kb(a.o,function(a){a.g=[]});
g.Kb(a.A,function(a){a.g=[]})};
Gka=function(a){a.g||(a.g=new jM);return a.g};
Hka=function(a,b){a.o[b]||(a.o[b]=new jM);return a.o[b]};
Ika=function(a,b){a.A[b]||(a.A[b]=new jM);return a.A[b]};
g.kM=function(){this.Ma=0;this.g=new window.Float64Array(128);this.o=new window.Float64Array(128);this.B=1;this.A=!1};
lM=function(a){if(a.g.length<a.Ma+1){var b=2*a.g.length;b+=2;var c=a.g;a.g=new window.Float64Array(b+1);var d=a.o;a.o=new window.Float64Array(b+1);for(b=0;b<a.Ma+1;b++)a.g[b]=c[b],a.o[b]=d[b]}};
g.mM=function(a,b,c,d,e,f){YL.call(this,a,b,c||void 0);this.indexRange=d;this.C=null;this.index=new g.kM;this.A=e;this.lastModified=f};
nM=function(a,b,c,d){for(var e=[];b<=a.index.Dc();b++){var f=a.index,k=b;f=UK(f.ho(k),k+1<f.Ma||f.A?f.g[k+1]-f.g[k]:-1);k=a.index.mf(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);e.push(new WK(3,a,f,b,k,l,m,n,b==a.index.Dc()&&m+n==f.length));if(f.start+m+n>=c+d)break}return new VL(e)};
oM=function(a,b,c){return a(b,c).then(function(b){var d=!b.responseText||2048<b.responseText.length?"":0==b.responseText.indexOf("https://")?b.responseText:"";return d?oM(a,d,c):b})};
Lka=function(a,b){return oM(function(a,b){return GF(a,b,4,1E3)},a,b)};
pM=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.xG.call(this);this.V=this.duration=0;this.isLive=this.B=!1;this.J=(0,g.ZG)();this.D=window.Infinity;this.g={};this.Y=a||"";this.F=this.N=0;this.C=null;this.ka=!!b&&b.g("html5_live_nonzero_first_segment_start_time");this.o=!1;this.L=[];this.pa=!!b&&b.g("html5_live_self_init_segments");this.A=null;this.ra=c;this.ha=!b||!b.g("html5_manifest_without_credentials");this.G=0;this.O=!!b&&b.g("disable_html5_manifest_namespace_redux");
this.ba="";this.I=window.NaN;this.fa=b&&b.g("disable_html5_duration_caching")?window.Infinity:10;this.aa=!!b&&b.o("html5_stale_dash_manifest_retry_factor")||1;this.da=!!b&&b.g("legacy_html5_floor_duration")};
qM=function(a){return Mb(a.g,function(a){return!!a.info.bd})};
rM=function(a,b,c,d,e){c=void 0===c?0:c;return(void 0===d?0:d)?Mka(a,b,e):Nka(a,b,c)};
Nka=function(a,b,c){c=void 0===c?0:c;var d=new pM;d.duration=c||0;(0,g.H)(a,function(a){var c=sM(a,b,d.duration),e=TK(a.init),l=TK(a.index),m=(0,window.parseInt)(a.clen,10),n=tM(a.url,c,a.s);a=(0,window.parseInt)(a.lmt,10);n&&(c=new g.mM(n,c,e,l,m,a),d.g[c.info.id]=c)});
return d};
Mka=function(a,b,c){var d=new pM("",null,!0);(0,g.H)(a,function(a){var e=sM(a,b),k=tM(a.url,e,a.s),l=(0,window.parseInt)(a.target_duration_sec,10);a=(0,window.parseInt)(a.max_dvr_duration_sec,10)||14400;k&&(e=new eM(k,e,l,c&&c.g("html5_manifestless_always"),a),d.g[e.info.id]=e)});
d.B=!0;d.o=!0;d.isLive=!0;return d};
sM=function(a,b,c){c=void 0===c?0:c;var d=a.type,e=a.itag,f=Oka(a),k=null;uJ(d)&&(k=(a.size||"640x360").split("x"),k=new lJ(+k[0],+k[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,!!a.isAccelerated,a.quality_label,a.eotf,a.primaries,!!a.isAcceleratedUiEnabled),d=Pka(d,k));var l=null,m=null;if(tJ(d)){l=0;if("258"==e||"261"==e)l=6;l=new iJ(l,+a.spatial_audio_type);a.name&&(m=new TI(a.name,a.audio_track_id,"1"==a.isDefault))}e=(0,window.parseInt)(a.bitrate,10)/8;var n=(0,window.parseInt)(a.clen,
10);c=c&&n?n/c:0;var q=null;b&&a.drm_families&&(q={},(0,g.H)(a.drm_families.split(","),function(a){q[a]=b[a]}));
return new pJ(f,d,l,k,m,q,e,c)};
Oka=function(a){var b=a.itag;a.xtags&&(b=a.itag+";"+a.xtags);return b};
tM=function(a,b,c){c=void 0===c?"":c;var d=new g.EL(a);a.match(/https:\/\/yt.akamaized.net/)||d.set("alr","yes");d.set("keepalive","yes");d.set("ratebypass","yes");d.set("mime",(0,window.encodeURIComponent)(b.mimeType.split(";")[0]));c&&d.set("signature",SE(c));return d};
wM=function(a,b){var c=gM(b,"id");c=c.replace(":",";");"captions"==c&&(c=gM(b,"lang"));var d=gM(b,"mimeType"),e=gM(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=(0,window.parseInt)(gM(b,"bandwidth"),10)/8;var f=(0,window.parseInt)(hM(b,"BaseURL").getAttribute(uM(a,"contentLength")),10);f=a.duration&&f?f/a.duration:0;var k=null;if(uJ(d)){k=(0,window.parseInt)(gM(b,"width"),10);var l=(0,window.parseInt)(gM(b,"height"),10),m=(0,window.parseInt)(gM(b,"frameRate"),10),n=Qka(gM(b,uM(a,"projectionType")));a:switch(gM(b,
uM(a,"stereoLayout"))){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=2;break a;default:q=0}k=new lJ(k,l,m,n,q)}m=l=null;if(tJ(d)){gM(b,"audioSamplingRate");l=(0,window.parseInt)(gM(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10);var r;m=gM(b,uM(a,"spatialAudioType"));"spatial_audio_type_ambisonics_5_1"==m?r=1:"spatial_audio_type_ambisonics_quad"==m&&(r=2);l=new iJ(l,r);r=gM(b,"lang")||"und";(m=hM(b,"Role"))?(q=gM(m,"value")||"",Tb(vM,q)?(m=r+"."+vM[q],n="main"==
q,r=gM(b,uM(a,"langName"))||r+" - "+q,m=new TI(r,m,n)):m=null):m=null}n=null;if(r=hM(b,"ContentProtection"))if(g.rF())if((n=r.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==n.value)for(n={},r=r.firstChild;null!=r;r=r.nextSibling)"yt:SystemURL"==r.nodeName&&(n[r.attributes.type.value]=r.textContent.trim());else n=null;else if((n=r.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==n.textContent)for(n={},r=r.firstChild;null!=r;r=r.nextSibling)"SystemURL"==r.localName&&"http://youtube.com/yt/2012/10/10"==
r.namespaceURI&&(n[r.attributes.type.textContent]=r.textContent.trim());else n=null;return new pJ(c,d,l,k,m,n,e,f)};
Qka=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}};
xM=function(a,b){b=void 0===b?"":b;a.F=1;a.J=(0,g.ZG)();return g.jg(Lka(b||a.Y,{format:"RAW",method:"GET",withCredentials:a.ha}).then((0,g.A)(a.lI,a)),(0,g.A)(a.oI,a))};
yM=function(a,b){var c=new pM,d;for(d in a)c[d]=ac(a[d]);var e={},f=!1;g.Kb(a.g,function(a,c){if(a){var d=b(a,c);d?(e[c]=d,f=!0):e[c]=a}});
c.g=e;return f?c:null};
Rka=function(a,b,c){var d=a.getAttribute("media"),e=null;c||(a=a.getAttribute("mediaRange"),null!=a&&(0<=(0,window.parseInt)(a.split("-")[1],10)?e=TK(a):d=d+"?range="+a));return new XJ(b.wa,b.Re,b.durationSecs,b.g,d,e,b.o)};
zM=function(a){return a.isLive&&(0,g.ZG)()-a.J>=a.D};
AM=function(a,b){var c=b||1<=a.aa?a.D:a.D*a.aa*(1+Math.random());(0,window.isFinite)(c)&&(zM(a)?a.Ez():(c=Math.max(0,a.J+c-(0,g.ZG)()),a.A||(a.A=new g.Ht(a.Ez,c,a),g.M(a,a.A)),a.A.start(c)))};
BM=function(a){if(!(0,window.isNaN)(a.I))return a.I;var b=a.g,c;for(c in b){var d=b[c].index;if(d&&d.Sb()){b=0;for(c=d.yg();c<=d.Dc();c++)b+=d.getDuration(c);b/=d.fj();b=.5*Math.round(b/.5);d.fj()>a.fa&&(a.I=b);return b}if(a.isLive&&(d=b[c],d.A))return d.A}return window.NaN};
CM=function(a,b){for(var c in a.g){var d=a.g[c].index;if(d&&d.Sb()){var e=d.gh(b),f=d.Cs(e);if(f)return f+b-d.mf(e)}}return window.NaN};
Ska=function(a,b){g.Kb(a.g,function(a){g.Kb(b,function(b,c){var d=a.B;d.A.set(c,b);d.B.set(c,b);d.o&&d.o.set(c,b)})})};
Tka=function(a,b,c){var d=!1,e;for(e in a.g)if(!!a.g[e].info.video==c){var f=a.g[e].index;cM(f,b.wa)||(f.Cz(b),d=!0)}return d};
uM=function(a,b){return a.O?"yt:"+b:a.ba+":"+b};
Pka=function(a,b){if('video/webm; codecs="vp9.2"'!=a)return a;null===DM&&(DM=window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16"')&&!window.MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99"'));DM&&(a='video/webm; codecs="vp09.02.51.10.01.'+("bt2020"==b.primaries?"09":"01")+"."+("smpte2084"==b.g?"16":"arib-std-b67"==b.g?"18":"01")+'"');return a};
EM=function(a,b,c,d){this.g=a;this.o=b;this.C=c;this.B={};this.A=null;this.fairPlayCert="";this.D=!!d&&d.g("edge_nonprefixed_eme")};
GM=function(a){return a.D?!1:!a.A&&!!FM()&&"com.microsoft.playready"==a.o};
HM=function(a){return"com.microsoft.playready"==a.o};
IM=function(a){return!a.A&&!!FM()&&"com.apple.fps.1_0"==a.o};
FM=function(){var a=window.MSMediaKeys;xF()&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null};
LM=function(a){return window.navigator.requestMediaKeySystemAccess?g.tF?g.Ui("45"):JM||g.sd?a.g("edge_nonprefixed_eme"):g.KM?g.Ui("47"):!a.g("html5_no_nonprefixed_eme_for_other"):!1};
MM=function(a,b){g.L.call(this);this.A=[];this.o={};this.g={};this.B=null;this.C=b;Uka(this,a)};
Uka=function(a,b){for(var c in b)for(var d=g.la(b[c]),e=d.next();!e.done;e=d.next()){e=e.value;if(!e.bd)return;for(var f in e.bd){if(!NM[f])return;for(var k=g.la(NM[f]),l=k.next();!l.done;l=k.next())l=l.value,a.o[l]=a.o[l]||new EM(f,l,e.bd[f],a.C),a.g[f]=a.g[f]||{},a.g[f][e.mimeType]=!0}}a.A=Vka.filter(function(b){return!!a.o[b]})};
Wka=function(a,b){function c(a){b.B[a.contentType]=!0}
if(HM(b)){var d=AK(),e;for(e in a.g[b.g])b.B[e]=!!d.canPlayType(e)}else d=b.A.getConfiguration(),d.audioCapabilities&&d.audioCapabilities.forEach(c),d.videoCapabilities&&d.videoCapabilities.forEach(c)};
Yka=function(a){if(FM()&&g.Wi)a.B(new EM("fairplay","com.apple.fps.1_0","",a.C));else{var b=Xka(),c=g.eb(a.A,function(c){var d=a.o[c],f=!1,k=!1,l;for(l in a.g[d.g])b(l,c)&&(d.B[l]=!0,f=f||0==l.indexOf("audio/"),k=k||0==l.indexOf("video/"));return f&&k});
c=c?a.o[c]:null;a.A=[];a.B(c)}};
Xka=function(){var a=FM();if(a)return function(b,d){return a.isTypeSupported(d,b)};
var b=AK();return b&&(b.addKey||b.webkitAddKey)?(0,g.A)(b.canPlayType,b):function(){return!1}};
Zka=function(){this.g=8192;this.o=17;this.B=13E4;this.C=.5;this.F=!1;this.J=!0;this.G=!1;this.D=60;this.A=0;this.I=!1};
OM=function(a){this.C=Math.exp(Math.log(.5)/a);this.A=this.B=0};
PM=function(a,b,c){this.I=0;this.F=a;this.C=b||.5;this.D=c||0;this.G="index";this.A=0;this.B=[]};
RM=function(a,b){QM(a,"value");var c=b*a.A,d=0,e=window.NaN;a.B.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});
return e};
QM=function(a,b){a.G!=b&&(a.G=b,taa(a.B,b))};
SM=function(a){this.B=a;this.A=[]};
$ka=function(){this.A=0;this.o=this.G=this.C=this.D=window.NaN;this.F=0;this.J=this.L=this.B=this.I=window.NaN;this.g=""};
ala=function(a){this.policy=a;this.I=this.J=0;this.B=-1;this.F=(0,g.ZG)();this.D=new PM(4,.6);this.G=new OM(4);this.A=this.policy.F?new OM(this.policy.o):new PM(this.policy.o,.5,.4);this.C=new SM(this.policy.o);this.g=this.policy.G?new OM(this.policy.D):null;this.o=new PM(30,.5);a=g.tH("yt-player-bandwidth")||{};var b=0<a.byterate?a.byterate:this.policy.B;this.A.g(this.policy.C,b);this.g&&this.g.g(this.policy.C,0<a.ltByterate?a.ltByterate:b);0<a.delay&&this.D.g(1,Math.min(+a.delay,2));0<a.stall?this.G.g(1,
+a.stall):0<a.tailDelay&&this.G.g(1,+a.tailDelay);this.B=(0,g.ZG)()};
TM=function(a,b,c){b=Math.max(b,.05);a.A.g(b,c/b);a.g&&a.g.g(b,c/b);a.F=(0,g.ZG)()};
VM=function(a,b,c){b=Math.max(b,a.policy.g);a.G.g(1,c/b);UM(a)};
WM=function(a){a=a.D.o();a=(0,window.isNaN)(a)?.5:a;return a=Math.min(a,5)};
XM=function(a,b,c){(0,window.isNaN)(c)||(a.I+=c);(0,window.isNaN)(b)||(a.J+=b)};
YM=function(a){return a.G.o()||0};
ZM=function(a){var b=a.A.o();b=0<b?b:1;if(!a.policy.J)return b;a=a.C.o();a=0<a?a:1;return a>2*b?(b+a)/2:b};
$M=function(a){a=a.g.o();return 0<a?a:1};
aN=function(a){var b={};b.delay=WM(a);b.stall=YM(a);b.byterate=ZM(a);a.g&&(b.ltByterate=$M(a));return b};
UM=function(a){-1<a.B&&3E4<(0,g.ZG)()-a.B&&(HJ(aN(a)),a.B=(0,g.ZG)())};
bN=function(a){return 4E3<=(0,g.ZG)()-a.F};
cN=function(a,b,c){this.videoInfos=a;this.g=b||null;this.audioTracks=[];this.o=c||null;if(this.g){var d={};(0,g.H)(this.g,(0,g.A)(function(a){if(a.Sc&&!d[a.id]){var b=new XI(a.id,a.Sc);d[a.id]=b;this.audioTracks.push(b)}},this))}};
bla=function(a,b,c){this.o=a;this.g=b;this.D=c;this.B={};this.C=!!g.x("cast.receiver.platform.canDisplayType");this.A=!this.C&&g.x("cast.receiver.platform.getValue")&&window.cast.receiver.platform.getValue("max-video-resolution-vpx")||null};
fN=function(a,b,c){if(2.2!=dN&&BK(a.g)||c)return IF();var d={};a=AK();b=g.la(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,oJ(c.Ce)in dla||"5"==oJ(c.Ce)?0:eN(a,c.Ce.mimeType)){var e=c.Ce.video.quality;d[e]&&2!=d[e].Ce.containerType||(d[e]=c)}var f=[];d.auto&&f.push(d.auto);(0,g.H)(nJ,function(a){(a=d[a])&&f.push(a)});
return JF(f)};
gN=function(){var a=sF()&&!g.Ui(29),b=qF("google tv")&&qF("chrome")&&!g.Ui(30);return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&window.HTMLMediaElement.prototype.webkitSourceAddId)};
eN=function(a,b){var c=a.canPlayType(b);hN?c=c||ela[b]:2.2==dN?c=c||fla[b]:sF()&&(c=c||gla[b]);return!!c};
g.iN=function(){return!(!eN(AK(),"application/x-mpegURL")&&!gN())};
jN=function(a,b){var c={},d;for(d in b.g){var e=b.g[d],f=oJ(e.info);("304"!=f&&"266"!=f||b.B)&&hla(a,e.info)&&(c[e.info.o]=c[e.info.o]||[],c[e.info.o].push(e.info))}return c};
ila=function(a,b,c){var d={},e;g.Kb(b,function(a,b){var f=a.filter(function(a){return a.bd?c&&a.bd[c.g]&&c.B[a.mimeType]?"261"!=oJ(a)||kN(this,lN)?!0:(e||(e=AK()),!1):!1:!0},this);
f.length&&(d[b]=f)},a);
return d};
qN=function(a,b,c,d,e){function f(a){return!!k[a]}
var k=jN(a,b);qM(b)&&(k=ila(a,k,c));var l=a.o.g("html5_disable_vp9_hdr_enc")?jla:kla;a.g?!qF("windows nt 5.1")||g.KM&&!a.o.g("html5_prefer_h264_on_xp")?(b.lh()||b.mh()||b.Pf())&&mN&&6>=dN&&(l=nN):l=nN:l=lla;c=mla;d&&(a.g&&(l=nN),c=nla);if(vF()||wF()||kN(a,lN))c=ola;(b.lh()||b.mh()||b.Pf())&&e&&(c=pla.concat(c));b=g.eb(l,f);d=g.eb(c,f);if(!b||!d)return IF();"9"==b&&k.h&&(e=function(a,b){return Math.max(a,b.video.height)},c=$c(k["9"],e,0),$c(k.h,e,0)>1.5*c&&(b="h"),a.o.g("html5_vp9_live_whitelist"));
e=k[b];c=k[d];e=oN(a,e);pN(e,c);return JF(new cN(e,c,qla(a,k,b,d)))};
qla=function(a,b,c,d){var e=a.g?b.h:b[c];b=b.a;c=a.g&&"h"!=c;return e&&b&&(c||"a"!=d)?(e=oN(a,e),pN(e,b),new cN(e,b)):null};
pN=function(a,b){g.Bb(a,function(a,b){return b.video.height*b.video.width-a.video.height*a.video.width||b.g-a.g});
g.Bb(b,function(a,b){return b.g-a.g})};
oN=function(a,b){var c=(0,g.Ik)(b,function(a){return 32<a.video.fps});
c&&(b=a.D||kN(a,rN)?(0,g.Id)(b,function(a){var b;(b=32<a.video.fps)||(a=a.video,b=!(854<a.width||480<a.height));return b}):(0,g.Id)(b,function(a){return!(32<a.video.fps)}));
c&&vF()&&(b=(0,g.Id)(b,function(a){return"299"!=oJ(a)}));
return b};
hla=function(a,b){if("0"==oJ(b)&&!a.g)return!0;var c=b.mimeType;if(b.video&&(mJ(b.video)||"bt2020"==b.video.primaries)&&48!=window.screen.pixelDepth&&!kN(a,sN)||"338"==oJ(b)&&!(a.o.g("html5_chrome_ambisonics_opus")&&g.tF&&g.Ui(53)))return!1;var d={};b.video&&(b.video.width&&(d[tN.name]=b.video.width),b.video.height&&(d[uN.name]=b.video.height),b.video.fps&&(d[rN.name]=b.video.fps),b.video.g&&(d[sN.name]=b.video.g),b.g&&(d[vN.name]=8*b.g),"("==b.o&&(d[wN.name]="subsample"));b.audio&&b.audio.g&&(d[lN.name]=
b.audio.g);for(var e in xN){var f=xN[e];if(d[f.name]&&!(f==sN&&0<b.mimeType.indexOf("vp09.02")))if(kN(a,f))if(a.A){if(a.A[f.name]<d[f.name])return!1}else c=c+"; "+f.name+"="+d[f.name];else if(rJ(b)&&f==sN)return!1}!a.o.g("disable_html5_cast_hdcp_filter2")&&a.C&&b.video&&1080<b.video.o&&b.bd&&(c+="; hdcp=2.2");return yN(a,c)};
kN=function(a,b){if(!(b.name in a.B)){var c=a.B,d=b.name;if(a.A)var e=!!a.A[b.name];else b.video?(e='video/webm; codecs="vp9"',yN(a,e)||(e='video/mp4; codecs="avc1.4d401e"')):(e='audio/webm; codecs="opus"',yN(a,e)||(e='audio/mp4; codecs="mp4a.40.2"')),e=yN(a,e+"; "+b.name+"="+b.valid)&&!yN(a,e+"; "+b.name+"="+b.li);c[d]=e}return a.B[b.name]};
yN=function(a,b){return a.C?window.cast.receiver.platform.canDisplayType(b):QK(b)};
zN=function(){g.xG.call(this);this.La={}};
AN=function(a,b,c){if(!a.La[b]&&(c.Sh||c.ak)){var d=a.La,e=c;Object.isFrozen&&!Object.isFrozen(c)&&(e=Object.create(c),Object.freeze(e));d[b]=e;a.X("vast_info_card_add",b)}};
FN=function(a,b,c){var d;(d=a.adformat)||(d=(a=a.attrib)&&Tb(BN,a)&&Tb(CN,a)?CN[a]+"_"+BN[a]:void 0);a=d;if(!a)return null;d=a.match(DN);if(!d||5!=d.length)return null;d=EN(a);return b||c||d?a:null};
EN=function(a){a=a.match(DN);var b=(0,window.parseInt)(a[3],10),c=[7,8,10,5,6];return!(1==(0,window.parseInt)(a[1],10)&&8==b)&&0<=c.indexOf(b)};
GN=function(a){return a.docid||a.video_id||a.videoId||a.id};
HN=function(a,b){if(b){if("fullwidth"==a)return window.Infinity;if("fullheight"==a)return 0}if(a){var c=a.match(rla);if(c){var d=(0,window.parseFloat)(c[2]);if(0<d)return(0,window.parseFloat)(c[1])/d}}return window.NaN};
IN=function(a,b){return void 0==b?a:"1"==b?!0:!1};
JN=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
KN=function(a,b){return void 0==b?a:Number(b)};
LN=function(a,b){var c=g.kJ.auto,d=b?g.kJ[b]:void 0;return d>g.kJ.medium?new zJ(d,c,!1):d>=c?new zJ(c,d,!1):a};
MN=function(a,b){return void 0==b?a:b.toString()};
ON=function(){if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new window.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=(0,g.G)();for(var d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(NN)for(b=1,c=0;c<NN.length;c++)a[b%16]=a[b%16]^a[(b-1)%16]/4^NN.charCodeAt(c),b++;return a};
g.PN=function(){return(0,g.J)(ON(),function(a){return(a&15).toString(16)}).join("")};
QN=function(){for(var a=ON(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")};
eO=function(a){g.L.call(this);a=g.$b(a);this.D="detailpage";this.ha=null;this.da=!1;this.N={};this.qm=MN("",a.csp_nonce);this.experiments=new wJ(a.fexp,a.fflags);this.forcedExperiments=a.forced_experiments||null;try{var b=window.document.location.toString()}catch(f){b=""}this.Ab=b;this.Y=(this.A=sla.test(this.Ab))?MN("",a.loaderUrl):this.Ab;this.Hb=tla.test(this.Y);this.iq=RN.test(this.Y);this.fa=(this.ZS=(this.Mh=IN(!1,a.ssl_stream))||IN(!1,a.ssl))?"https":"http";this.baseYtUrl=AL(a.BASE_YT_URL)||
AL(this.Ab)||this.fa+"://www.youtube.com/";"adunit"==a.el?this.D=this.iq?"adunit":"embedded":"embedded"==a.el||this.Hb?this.D=JN(this.D,a.el,ula):a.el&&(this.D="embedded");this.V=this.D;cH();b=null;var c=a.ps,d=g.jb(SN,c);!c||d&&!this.Hb||(b=c);this.g=b;this.I=(this.sc=g.jb(SN,this.g))&&"play"!=this.g&&"jamboard"!=this.g;this.Qg=!this.I;b={};this.o=(b.c=a.c||"web",b.cver=a.cver||"html5",b.cplayer="UNIPLAYER",b);this.Na=!(!AK().defaultPlaybackRate||g.bf&&!TN("chrome")||UN||VN||TN("android")||TN("silk"));
this.isMobile=IN("blazer"==this.g,a.is_html5_mobile_device);this.Sp=this.experiments.g("uniplayer_dbp")&&this.isMobile&&(!(this.A&&this.experiments.g("disallow_background_check_for_embed"))||sF()&&g.Ui(54));this.aa="3"==this.B||this.isMobile||IN(!1,a.use_media_volume);this.J=CK();this.pK=WN;(UN||VN||g.Wi)&&"blazer"!=this.g&&g.XN(this);this.Bf=(g.YN(this)||"TV_UNPLUGGED_CAST"==this.o.c||"TVHTML5_UNPLUGGED"==this.o.c)&&this.experiments.g("use_rawcc_captions");this.F=IN(!1,a.is_dni);this.ub=MN("#cc181e",
a.dni_color);this.Hc=IN("adunit"!=this.V&&!ZN(this)&&!this.sc,this.experiments.g("embed_show_infobar")&&!this.F||a.showinfo);this.Sg=IN(!1,a.playsinline);b=this.isMobile&&mN&&2.3>=dN;c=this.isMobile;c=$N(this)||!b&&IN(c,a.use_native_controls)?"3":"1";this.B="0"!=a.controls?c:"0";this.useTabletControls=this.isMobile;this.color=JN("red",a.color,vla);this.Gq="3"==this.B||IN(!1,a.modestbranding)&&"red"==this.color;this.ka=0==this.Y.indexOf(this.baseYtUrl);this.ik=(c=!this.ka&&!ZN(this)&&!this.I&&!this.sc)&&
(this.F||!this.Gq)&&"1"==this.B;this.jk=g.aO(this)&&c&&!this.Hc&&!this.ik;this.JS=this.Iq=b;this.Cf=!VN||g.oc(601)?!0:!1;this.wm=this.A||!1;this.pa=ZN(this)?"":(this.Y||a.post_message_origin||"").substring(0,128);this.widgetReferrer=MN("",a.widget_referrer);this.Ib=(!this.Hb||IN(!0,a.enablecastapi))&&"1"==this.B&&!this.isMobile&&(ZN(this)||g.aO(this)||g.bO(this));this.Aa=IN(!1,a.enableunplugged);this.rm=(this.ba=IN(!1,a.autoplay))||ZN(this);this.Hd=!this.isMobile&&!yF()&&!qF("nintendo 3ds")||IN(!1,
a.autoplayoverride);b=!1;this.J&&!$N(this)&&this.experiments.g("mweb_muted_autoplay")?Zi&&g.oc(602)?b=!0:g.wn&&g.tF&&4.4<=dN&&(b=g.wn&&qF("version/")?57<=(0,window.parseFloat)(/Chrome\/(\d+)/.exec(g.Ib)[1]):53<=(0,window.parseFloat)(/Chrome\/(\d+)/.exec(g.Ib)[1])):b=!1;this.Id=b;b=(ZN(this)||"adunit"==this.V)&&("blazer"==this.g||"mweb-polymer"==this.g);this.uc=!IN(!0,a.fs);this.sa=!this.uc&&(b||aG());this.lm=this.experiments.g("uniplayer_block_pip")&&sF()&&g.Ui(58);this.Oc=IN(!1,a.force_rel)||IN(!this.sc,
a.rel);this.ra=g.bO(this);this.Gc="blazer"==this.g||"mweb-polymer"==this.g;switch(this.g){case "blogger":b="bl";break;case "gmail":b="gm";break;case "books":b="gb";break;case "docs":b="gd";break;case "google-live":b="gl";break;case "play":b="gp";break;case "chat":b="hc";break;case "picasaweb":b="pw";break;default:b="yt"}this.ib=b;this.Bc=MN("",a.authuser);this.IS=(this.experiments.g("embed_show_watchlater_login")&&this.A||!!this.Bc)&&IN(!this.I,a.showwatchlater);this.Ng=IN(!1,a.disablekb);this.Og=
MN("",a.ecver);this.tm=this.experiments.g("mweb_autonav")&&cO();this.loop=IN(!1,a.loop);this.pageId=MN("",a.pageid);this.lJ=LN(DJ,a.vq);this.oK=MN("",a.playerapiid);this.YN=IN(!0,a.canplaylive);this.sm=IN(this.sc,a.ss);(b=a.video_container_override)?(c=b.split("x"),2!=c.length?b=null:(b=(0,window.parseInt)(c[0],10),c=(0,window.parseInt)(c[1],10),b=(0,window.isNaN)(b)||(0,window.isNaN)(c)||0>=b*c?null:new g.dd(b,c))):b=null;this.lk=b;this.mute=IN(!1,a.mute);this.storeUserVolume=!this.mute&&IN("0"!=
this.B,a.store_user_volume);this.Ug="3"==this.B?3:JN(void 0,a.iv_load_policy,dO);this.Wg=MN("",a.cc_lang_pref);b=JN(2,a.cc_load_policy,dO);"3"==this.B&&2==b&&(b=3);this.Xg=b;this.Ka=void 0==a.content_v?void 0:a.content_v.toString();this.xm=void 0==a.framer?void 0:a.framer.toString();this.Ra=MN("en_US",a.hl);this.region=MN("US",a.cr);this.hostLanguage=MN("en",a.host_language);this.Fa=IN(!1,a.privembed);this.im=!this.Fa&&Math.random()<this.experiments.o("web_player_api_logging_fraction");b=!this.experiments.g("web_player_interaction_logging_killswitch");
this.ea=!this.Fa&&b;this.Rg="";this.Jb=new window.Set;this.C=IN(!0,a.deviceHasDisplay);this.Cg=KN(this.Cg,a.ismb);this.ng(a);this.N=a;this.G=new zN;g.M(this,this.G);this.O=this.isMobile;b=a;b.innertube_api_key&&b.innertube_api_version&&this.o.c&&b.innertube_context_client_version&&this.hostLanguage&&this.region||this.experiments.g("disable_innertube_config_reporting")||g.TE(Error("MISSING_INNERTUBE_CONFIG,api_key="+b.innertube_api_key+",api_version="+b.innertube_api_version+",interface="+this.o.c+
",context_client_version="+b.innertube_context_client_version+",host_language="+this.hostLanguage+",region="+this.region));c=MN("",b.apiary_host);d=MN("",b.apiary_host_firstparty);var e=MN("",b.xhr_apiary_host);this.experiments.g("disable_html5_apiary_url_validation")||(BL(c)||(c=""),BL(d)||(d=""),BL(e)||(e=""));this.Pg={apiaryHost:c,fH:d,gapiHintOverride:IN(!1,b.gapi_hint_override),gapiHintParams:MN("",b.gapi_hint_params),innertubeApiKey:MN("",b.innertube_api_key),innertubeApiVersion:MN("",b.innertube_api_version),
Nr:this.o.c,innertubeContextClientVersion:MN("",b.innertube_context_client_version),Pr:this.hostLanguage,Or:this.region,Rn:"",xhrApiaryHost:e};this.Nh=void 0!=window.WebKitPlaybackTargetAvailabilityEvent;this.L=new bla(this.experiments,this.C,"web"==this.o.c.toLowerCase().substr(0,3)||vF()||wF()||/STEAK/.test(this.o.cmodel));b=new Zka;g.XN(this)&&(b.F=!0,b.C=.1);this.experiments.g("html5_ewma_bandwidth_estimator")&&(b.F=!0);this.experiments.g("html5_disable_aux_bandwidth_estimator")&&(b.J=!1);this.experiments.g("html5_use_long_term_bandwidth_estimator")&&
(b.G=!0,b.D=this.experiments.o("html5_long_term_bandwidth_window_size")||b.D);this.experiments.g("html5_elbow_tracking_tweaks")&&(b.I=!0,b.g=2048);this.Cg&&(b.B=this.Cg/8);b.o=this.experiments.o("html5_bandwidth_window_size")||b.o;this.schedule=new ala(b);this.enableSafetyMode=IN(!1,a.enable_safety_mode);this.rg=ZN(this)&&"blazer"!=this.g&&"mweb-polymer"!=this.g;this.Ta=IN(!1,a.send_visitor_id_header)||this.experiments.B;this.Vg=!1;this.Lh=DJ};
fO=function(a,b){a.sg=b.get("d",a.sg);a.gd=b.get("f",a.gd)};
hO=function(a,b,c){return b.Ah&&(a.experiments.g("legacy_autoplay_flag")||"detailpage"!=gO(b,a)||c||b.Tn)};
iO=function(a){return a.experiments.g("king_crimson_player_redux")&&!a.sc&&sF()&&g.Ui(55)&&!a.isAd()};
jO=function(a){var b=g.Hg(a.baseYtUrl);(a=g.Ig(a.baseYtUrl))&&(b+=":"+a);return"www.youtube-nocookie.com"==b?"www.youtube.com":b};
kO=function(a){return"gaming"==a.g?"gaming.youtube.com":jO(a)};
lO=function(a,b,c){return a.fa+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
g.mO=function(a,b){return a.baseYtUrl+"timedtext_video?ref=player&v="+b.videoId};
nO=function(){return g.dH()};
oO=function(){return!0};
pO=function(a){return ZN(a)&&"gaming"!=a.g&&!g.YN(a)};
$N=function(a){return VN&&!a.Sg||yF()||qF("nintendo 3ds")?!0:!1};
g.XN=function(a){return uF()||"TV"==a.o.cplatform};
g.qO=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
g.YN=function(a){return"WEB_UNPLUGGED"==a.o.c};
cO=function(){g.x("yt.mobile.isMobilePersistentUniplayer");return!1};
g.rO=function(a){return a.C&&g.tF&&!hN&&"3"!==a.B?g.wn?a.A&&g.oc(51):!0:!1};
g.sO=function(a){return a.C&&g.KM&&!hN&&"3"!==a.B?g.wn?a.A&&g.oc(48):g.oc(38):!1};
uO=function(a){return g.rO(a)||g.sO(a)||(a.C&&g.bf&&!hN&&"3"!==a.B?g.wn?a.A&&g.oc(37):g.oc(27):!1)||a.C&&g.tO&&!zF()&&g.oc(11)||a.C&&g.Wi&&a.experiments.g("safari_enable_spherical")};
wla=function(a){return a.experiments.g("disable_html5_ambisonic_audio")||!(uO(a)||a.experiments.g("html5_enable_spherical")||a.experiments.g("html5_enable_spherical3d"))||g.aO(a)&&mN||g.KM&&(!g.oc(47)||!g.oc(52)&&g.oc(51))?!1:window.AudioContext||window.webkitAudioContext?!0:!1};
ZN=function(a){return"detailpage"==a.V};
g.aO=function(a){return"embedded"==a.V};
g.vO=function(a){return"leanback"==a.V};
g.bO=function(a){return"profilepage"==a.V};
wO=function(a){return qF("smart-tv")&&qF("samsung")&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(a.o.cmodel)};
g.xO=function(a,b,c){this.errorCode=a;this.g=b;this.details=c||{}};
yO=function(a){var b;for(b in a){var c=(""+a[b]).replace(/[:,]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""};
zO=function(a){if(a){var b=[],c;for(c in a)xla.has(c)||b.push(c);b.length&&.01>Math.random()&&g.TE(Error("Unknown house brand player vars: "+b),"WARNING")}};
yla=function(a,b){this.o=a;this.g=b;this.A=0};
zla=function(a){for(var b=[],c=[],d=0,e=a.g.length;d<e;++d){var f=a.g[d];f.bitrate<=a.A?b.push(f):c.push(f)}b.sort(function(a,b){return b.bitrate-a.bitrate});
c.sort(function(a,b){return a.bitrate-b.bitrate});
a.g=b.concat(c)};
Ala=function(a,b,c,d,e,f,k,l,m){this.itag=a;this.url=b;this.Aw=c;this.width=d;this.height=e;this.bitrate=k;this.fps=f;this.audioItag=l||null;this.g=m||""};
Bla=function(a){for(var b={},c=0,d=a.length;c<d;++c){var e=a[c];var f=e.type.match(/codecs="([^"]*)"/);e=new Ala(e.itag,e.url,f?f[1]:"",+e.width,+e.height,+e.fps,+e.bitrate,e.audio_itag,e.drm_families);b[e.itag]=e}return b};
AO=function(a,b){this.Ce=a;this.B=b;this.o=null};
Cla=function(a,b,c){if(!hN&&!xF())return IF();b=Bla(b);if(!b)return IF();var d={};d=(d.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",d);var e=[],f=[],k=[],l;for(l in b){var m=b[l];if(m.width){var n=b[m.audioItag];if(n){e.push(m);var q="fairplay"==m.g?d:null;k.push(BO([n],[m],m.itag,m.width,m.height,m.fps,void 0,void 0,q))}}else f.push(m)}q=k.reduce(function(a,b){return!!b.Ce.bd&&a},!0)?d:null;
k.push(BO(f,e,"93",0,0,0,"auto",c,q));return fN(a.L,k,iO(a))};
BO=function(a,b,c,d,e,f,k,l,m){var n=new iJ;d=new lJ(d,e,f,null,void 0,k);c=new pJ(c,"application/x-mpegURL",n,d,void 0,m);a=new yla(a,b);a.A=l?l:1369843;return new AO(c,a)};
CO=function(a,b){this.Ce=a;this.o=b};
SO=function(a,b,c){var d=[];b=g.la(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value;if(f.url){e=new g.EL(f.url);f.sig?e.set("signature",f.sig):f.s&&e.set("signature",SE(f.s));for(var k in c)e.set(k,c[k]);f=vJ(f.type,f.quality,f.itag,f.width,f.height,!!f.isAccelerated,!!f.isAcceleratedUiEnabled);d.push(new CO(f,e))}}return fN(a.L,d,iO(a))};
TO=function(a){g.xG.call(this);this.B=new $D;this.o=null;this.G={};this.F=a||""};
WO=function(a,b,c){for(c=UO(a,c);0<=c;){var d=a.g[c];if(d.Sb(Math.floor(b/(d.columns*d.rows)))&&(d=VO(d,b)))return d;c--}return VO(a.g[0],b)};
YO=function(a,b,c){c=UO(a,c);for(var d,e;0<=c;c--)if(d=a.g[c],e=Math.floor(b/(d.columns*d.rows)),!d.Sb(e)){d=a;var f=c,k=f+"-"+e;d.G[k]||(d.G[k]=!0,ZD(d.B,f,{Py:f,uA:e}))}XO(a)};
XO=function(a){if(!a.o&&!a.B.isEmpty()){var b=a.B.remove(),c=new window.Image;a.F&&(c.crossOrigin=a.F);c.src=ZO(a.g[b.Py],b.uA);c.onload=(0,g.A)(a.J,a,b.Py,b.uA);a.o=c}};
$O=function(a,b,c,d){this.Tc={};this.L=a;this.I=b;a=c.split("#");this.F=(0,window.parseInt)(a[0],10);this.D=(0,window.parseInt)(a[1],10);this.o=(0,window.parseInt)(a[2],10);this.columns=(0,window.parseInt)(a[3],10);this.rows=(0,window.parseInt)(a[4],10);this.B=(0,window.parseInt)(a[5],10);this.A=a[6];this.C=a[7];this.J=d};
ZO=function(a,b){var c=a.I;c=c.replace("$N",a.A);c=c.replace("$L",a.L.toString());c=c.replace("$M",b.toString());a.C&&(c=g.Pg(c,{sigh:a.C}));return DL(c)};
VO=function(a,b){var c=Math.floor(b/(a.columns*a.rows)),d=a.columns*a.rows,e=b%d,f=e%a.columns;e=Math.floor(e/a.columns);var k=a.Du()+1-d*c;if(k<a.columns){var l=k;d=1}else l=a.columns,d=k<d?Math.ceil(k/a.columns):a.rows;return{url:ZO(a,c),wH:f,columns:l,Nc:e,rows:d,vA:a.F*l,tA:a.D*d}};
aP=function(a,b,c){TO.call(this,c);this.g=this.A(a,b);this.C={};1<this.g.length&&this.g[0].isDefault()&&this.g.splice(0,1)};
UO=function(a,b){var c=a.C[b];if(c)return c;c=a.g.length;for(var d=0;d<c;d++)if(a.g[d].Gb()>=b)return a.C[b]=d;a.C[b]=c-1;return c-1};
bP=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");$O.call(this,a,b,c,0);this.g=null;this.G=d?3:0};
cP=function(a,b){this.L=b;aP.call(this,a,0)};
dP=function(a,b){this.Ce=a;this.o=b};
Dla=function(a){var b=[];(0,g.H)(a,function(a){if(a.url){var c=vJ(a.type,"medium","0");b.push(new dP(c,a.url))}});
return b};
eP=function(a){a=a.url;return 0==a.indexOf("//")?"https:"+a:a};
hP=function(a,b){var c={},d;for(d in fP){var e=b?b+d:d;e=a[e+"_webp"]||a[e];g.gP.test(e)&&(c[fP[d]]=e)}return c};
Fla=function(a){var b={};if(!a||!a.thumbnails)return b;var c=null;a=g.la(a.thumbnails);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=eP(d);if(g.gP.test(e)){var f=Ela[d.width];f&&(b[f]=e);if(!c||c.width<d.width)c=d}}c&&1280<c.width&&(b["maxresdefault.jpg"]=eP(c));return b};
g.iP=function(a,b){this.version=a;this.args=b};
g.jP=function(a,b){this.topic=a;this.g=b};
g.lP=function(a,b){var c=kP();c&&c.publish.call(c,a.toString(),a,b)};
g.pP=function(a,b,c){var d=kP();if(!d)return 0;var e=d.subscribe(a.toString(),function(d,k){var f=g.x("ytPubsub2Pubsub2SkipSubKey");f&&f==e||(f=function(){if(mP[e])try{if(k&&a instanceof g.jP&&a!=d)try{var f=a.g,l=k;if(!l.args||!l.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!f.Ih){var q=new f;f.Ih=q.version}var r=f.Ih}catch(w){}if(!r||l.version!=r)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{k=window.Reflect.construct(f,
g.sb(l.args))}catch(w){throw w.message="yt.pubsub2.Data.deserialize(): "+w.message,w;}}catch(w){throw w.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+w.message,w;}b.call(c||window,k)}catch(w){g.TE(w)}},nP[a.toString()]?g.gH()?g.hH(f,1,void 0):g.$E(f,0):f())});
mP[e]=!0;oP[a.toString()]||(oP[a.toString()]=[]);oP[a.toString()].push(e);return e};
g.qP=function(a){var b=kP();b&&(g.qa(a)&&(a=[a]),(0,g.H)(a,function(a){b.unsubscribeByKey(a);delete mP[a]}))};
kP=function(){return g.x("ytPubsub2Pubsub2Instance")};
sP=function(a,b){var c=g.pP(rP,function(d){a.apply(b,arguments);g.qP(c)},b);
return c};
tP=function(){var a=g.qE("TIMING_TICK_EXPIRATION");a||(a={},g.pE("TIMING_TICK_EXPIRATION",a));return a};
Gla=function(){var a=tP(),b;for(b in a)g.iH(a[b]);g.pE("TIMING_TICK_EXPIRATION",{})};
uP=function(a,b){g.iP.call(this,1,arguments)};
vP=function(a,b){g.iP.call(this,1,arguments);this.g=a};
xP=function(a){this.g=a||window;this.I=this.A=0;if(this.g.performance&&this.g.performance.timing&&this.g.performance.getEntriesByType){a=g.qd(this.g||window);this.G=new g.$g(0,0,a.width,a.height);var b;a=[];for(var c=this.g.document.getElementsByTagName("*"),d=0,e=c.length;d<e;d++){var f=c[d];if("IMG"==f.tagName||"IFRAME"==f.tagName)if(b=wP(this,f,f.src)){if("IFRAME"==f.tagName){try{var k=(new xP(f.contentWindow)).A}catch(l){k=0}0<k&&(b.timing=k)}a.push(b)}(b=this.g.getComputedStyle(f)["background-image"])&&
(b=xP.g.exec(b))&&1<b.length&&(b=wP(this,f,b[1]))&&a.push(b)}this.o=a;this.C=this.g.performance.getEntriesByType("resource");this.F=this.g.performance.getEntriesByType("mark");k={};a=0;for(c=this.C.length;a<c;a++)d=this.C[a],k[d.name]=d.responseEnd;a=0;for(c=this.F.length;a<c;a++)d=this.F[a],"mark_iframe_loaded: "==d.name.slice(0,20)&&(k[d.name.slice(20)]=d.startTime);a=0;for(c=this.o.length;a<c;a++)d=this.o[a],d.timing||(d.timing=k[d.url]||0);this.D=Hla(this);this.B=Ila(this);f=k=0;if(this.B.length)for(c=
a=0,d=this.B.length;c<d;c++)e=this.B[c],f=e.timing-f,0<f&&1>a&&(k+=(1-a)*f),f=e.timing,a=e.progress;this.A=Math.round(k||this.D);this.I=f}};
wP=function(a,b,c){return c&&b.getBoundingClientRect&&(b=b.getBoundingClientRect(),b=new g.$g(b.left,b.top,b.width,b.height),g.ch(b,a.G))?new yP(b,c):null};
Hla=function(a){var b=a.g,c=b.performance.timing.navigationStart;if("msFirstPaint"in b.performance.timing)var d=b.performance.timing.g-c;else if("chrome"in b&&"loadTimes"in b.chrome){var e=b.chrome.loadTimes(),f=e.firstPaintTime;if(0<f){var k=e.startLoadTime;"requestTime"in e&&(k=e.requestTime);f>=k&&(d=1E3*(f-k))}}if(void 0===d||0>d||12E4<d){d=b.performance.timing.responseStart-c;var l={};b=b.document.getElementsByTagName("head")[0].children;c=0;for(e=b.length;c<e;c++)f=b[c],"SCRIPT"==f.tagName&&
f.src&&!f.async?l[f.src]=!0:"LINK"==f.tagName&&"stylesheet"==f.rel&&f.href&&(l[f.href]=!0);a.C.some(function(a){if(!l[a.name]||"script"!=a.initiatorType&&"link"!=a.initiatorType)return!0;a=a.responseEnd;if(void 0===d||a>d)d=a})}return Math.max(d,0)||0};
Ila=function(a){var b={0:0},c=0;var d=a.D;for(var e=0,f=a.o.length;e<f;e++){var k=a.o[e],l=d;k.timing>d&&(l=k.timing);b[l]||(b[l]=0);k=g.dh(k.region).Qc();b[l]+=k;c+=k}e=g.dh(a.G).Qc();0<e&&(e=.1*Math.max(e-c,0),d in b||(b[d]=0),b[d]+=e,c+=e);a=[];if(c){for(var m in b)d=new zP((0,window.parseFloat)(m),b[m]),a.push(d);a.sort(function(a,b){return a.timing-b.timing});
e=b=0;for(f=a.length;e<f;e++)d=a[e],b+=d.Qc,d.progress=b/c}return a};
yP=function(a,b){this.region=a;this.url=b};
zP=function(a,b){this.Qc=b;this.timing=a};
CP=function(a){AP(a);Jla();BP(!1,a);a||(g.qE("TIMING_ACTION")&&g.pE("PREVIOUS_ACTION",g.qE("TIMING_ACTION")),g.pE("TIMING_ACTION",""))};
QP=function(a,b){a:if(!DP(a)){if(!g.DF("send_empty_timing")){var c=g.qE("CSI_SERVICE_NAME","youtube");if(!g.qE((a||"")+"TIMING_ACTION",void 0)||!c)break a}g.EP("aa",void 0,a);g.FP("ap",1,a);g.FP("yt_fss","c",a);if(g.DF("enable_csi_abandonment_info")&&!a&&!GP("yt_lt")){c=g.qE("TIMING_INFO",{});for(var d in c)g.FP(d,c[d]);g.FP("is_nav",1);(d=g.vH())&&g.FP("csn",d);(d=g.qE("PREVIOUS_ACTION",void 0))&&g.FP("pa",d);c=HP();c.p=g.qE("CLIENT_PROTOCOL")||"unknown";c.t=g.qE("CLIENT_TRANSPORT")||"unknown";window.navigator&&
window.navigator.sendBeacon&&g.FP("ba",1);g.FP("yt_vis",IP());if("cold"==c.yt_lt){d=JP.timing||{};g.DF("cold_load_nav_start_web")&&d.navigationStart&&(g.EP("srt",d.responseStart),1!=c.prerender&&KP("n",d.navigationStart));b:if(d.msFirstPaint)c=Math.max(0,d.msFirstPaint);else{if(c=window.chrome)if(c=c.loadTimes,g.wa(c)){c=c();var e=1E3*Math.min(c.requestTime||window.Infinity,c.startLoadTime||window.Infinity);e=window.Infinity===e?0:d.navigationStart-e;c=Math.max(0,Math.round(1E3*c.firstPaintTime+e)||
0);break b}c=0}0<c&&g.EP("fpt",c);g.EP("nreqs",d.requestStart,void 0);g.EP("nress",d.responseStart,void 0);g.EP("nrese",d.responseEnd,void 0);0<d.redirectEnd-d.redirectStart&&(g.EP("nrs",d.redirectStart,void 0),g.EP("nre",d.redirectEnd,void 0));0<d.domainLookupEnd-d.domainLookupStart&&(g.EP("ndnss",d.domainLookupStart,void 0),g.EP("ndnse",d.domainLookupEnd,void 0));0<d.connectEnd-d.connectStart&&(g.EP("ntcps",d.connectStart,void 0),g.EP("ntcpe",d.connectEnd,void 0));d.secureConnectionStart>=d.navigationStart&&
0<d.connectEnd-d.secureConnectionStart&&(g.EP("nstcps",d.secureConnectionStart,void 0),g.EP("ntcpe",d.connectEnd,void 0));JP.getEntriesByType&&Kla();d=g.qE("SPEEDINDEX_FOR_ACTIONS",void 0);c=g.qE("TIMING_ACTION",void 0);d&&-1<d.indexOf(c)&&(d=(0,g.ZG)(),c=new xP,e=(0,g.ZG)(),0<c.A&&(g.FP("si",c.A),g.EP("vsc",LP(c.I)),g.EP("sics",d),g.EP("sice",e)));d=[];if(window.document.querySelector&&JP&&JP.getEntriesByName)for(var f in MP)c=MP[f],Lla(f,c)&&d.push(c);d.length&&g.FP("rc",d.join(","))}g.DF("csi_on_gel")&&
(f={},f.actionType=Mla[g.qE("TIMING_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN",d=NP(),lH(f,d))}OP(a)}CP(a);g.pE(a+"TIMING_AFT_KEYS",b);g.pE(a+"TIMING_ACTION",a);KP("c",void 0,a);g.ra("ytglobal.timing"+(a||"")+"ready_",!0,void 0);PP(a)};
g.EP=function(a,b,c){if(!b&&"_"!=a[0]){var d=a;JP.mark&&(g.Ha(d,"mark_")||(d="mark_"+d),c&&(d+=" ("+c+")"),JP.mark(d))}d=RP(c);var e=b||(0,g.ZG)();d[a]&&(d["_"+a]=d["_"+a]||[d[a]],d["_"+a].push(e));d[a]=e;d=tP();if(e=d[a])g.iH(e),d[a]=0;SP(c)["tick_"+a]=b;c||b||(0,g.ZG)();g.DF("csi_on_gel")?(d=NP(c),"_start"==a?kH("baseline_"+d)||g.fH("latencyActionBaselined",{clientActionNonce:d},b):kH("tick_"+a+"_"+d)||g.fH("latencyActionTicked",{tickName:a,clientActionNonce:d},b),a=!0):a=!1;a||PP(c)};
TP=function(a){var b="above_the_fold";JP&&JP.measure&&(g.Ha(b,"measure_")||(b="measure_"+b),a?JP.measure(b,a):JP.measure(b))};
KP=function(a,b,c){g.FP("yt_sts",a,c);g.EP("_start",b,c)};
UP=function(a,b){var c=RP(b);return a in c};
g.FP=function(a,b,c){var d=HP(c)[a]=b;SP(c)["info_"+a]=d;if(g.DF("csi_on_gel"))if(a in VP){b={};a=VP[a].split(".");g.jb(Nla,a)&&(d=!!d);for(var e=b,f=0;f<a.length-1;f++)e[a[f]]=e[a[f]]||{},e=e[a[f]];b[a[a.length-1]]=d;c=NP(c);lH(b,c)}else g.jb(Ola,a)||g.TE(Error("Unknown label "+a+" logged with GEL CSI."))};
GP=function(a){var b=HP(void 0);return a in b};
WP=function(a){var b=RP(a);if(b.aft)return b.aft;a=g.qE((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 window.NaN};
PP=function(a){if(!DP(a)){var b=g.qE((a||"")+"TIMING_ACTION",void 0),c=RP(a);if(g.x("ytglobal.timing"+(a||"")+"ready_")&&b&&c._start&&(b=WP(a)))if(g.DF("tighter_critical_section")&&!XP&&(g.lP(Pla,new uP(Math.round(b-c._start),a)),XP=!0),a)OP(a);else{b=!0;var d=g.qE("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&OP(a)}}};
IP=function(){switch($F("visibilityState",window.document)){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3}return-1};
OP=function(a){Gla();if(!g.DF("csi_on_gel")){var b=RP(a),c=HP(a),d=b._start,e;for(e in b)if(g.Ha(e,"_")&&g.ua(b[e])){var f=e.slice(1);if(f in Qla){var k=(0,g.J)(b[e],function(a){return Math.round(a-d)});
c["all_"+f]=k.join()}delete b[e]}f=!!c.ap;if(k=g.x("ytglobal.timingReportbuilder_")){if(k=k(b,c,a))YP(k,f),CP(a)}else{var l=g.qE("CSI_SERVICE_NAME","youtube");k={v:2,s:l,action:g.qE((a||"")+"TIMING_ACTION",void 0)};var m=c.srt;void 0!==b.srt&&delete c.srt;if(c.h5jse){var n=window.location.protocol+g.x("ytplayer.config.assets.js");(n=JP.getEntriesByName?JP.getEntriesByName(n)[0]:null)?c.h5jse=Math.round(c.h5jse-n.responseEnd):delete c.h5jse}b.aft=WP(a);Rla(a)&&"youtube"==l&&(g.FP("yt_lt","hot_bg",
a),l=b.vc,n=b.pbs,delete b.aft,c.aft=Math.round(n-l));for(var q in c)"_"!=q.charAt(0)&&(k[q]=c[q]);b.ps=(0,g.ZG)();c={};q=[];for(e in b)"_"!=e.charAt(0)&&(l=Math.round(b[e]-d),c[e]=l,q.push(e+"."+l));k.rt=q.join(",");(b=g.x("ytdebug.logTiming"))&&b(k,c);YP(k,f,a);g.lP(rP,new vP(c.aft+(m||0),a))}}};
LP=function(a){return Math.round(JP.timing.navigationStart+a)};
Kla=function(){var a=window.location.protocol,b=JP.getEntriesByType("resource"),c=g.eb(b,function(b){return 0==b.name.indexOf(a+"//fonts.googleapis.com/css?family=")});
b=(0,g.Id)(b,function(b){return 0==b.name.indexOf(a+"//fonts.gstatic.com/s/")});
b=$c(b,function(a,b){return b.duration>a.duration?b:a},{duration:0});
c&&0<c.startTime&&0<c.responseEnd&&(g.EP("wfcs",LP(c.startTime)),g.EP("wfce",LP(c.responseEnd)));b&&0<b.startTime&&0<b.responseEnd&&(g.EP("wffs",LP(b.startTime)),g.EP("wffe",LP(b.responseEnd)))};
Lla=function(a,b){var c=window.document.querySelector(a);if(!c)return!1;var d="",e=c.nodeName;"SCRIPT"==e?(d=c.src,d||(d=c.getAttribute("data-timing-href"))&&(d=window.location.protocol+d)):"LINK"==e&&(d=c.href);return d?(c=JP.getEntriesByName(d))&&c[0]&&(c=c[0],d=window.performance.timing.navigationStart,g.EP("rsf_"+b,d+Math.round(c.fetchStart)),g.EP("rse_"+b,d+Math.round(c.responseEnd)),void 0!==c.transferSize&&(GP("rc")||g.FP("rc",""),0===c.transferSize))?!0:!1:!1};
YP=function(a,b,c){if(g.DF("debug_csi_data")){var d=g.x("yt.timing.csiData");d||(d=[],g.ra("yt.timing.csiData",d,void 0));d.push({page:window.location.href,time:new Date,args:a})}d="";for(var e in a)d+="&"+e+"="+a[e];a="/csi_204?"+d.substring(1);window.navigator&&window.navigator.sendBeacon&&b?CF(a):g.AF(a);BP(!0,c)};
NP=function(a){var b=ZP(a).nonce;b||(b=QN(),ZP(a).nonce=b);return b};
RP=function(a){return ZP(a).tick};
HP=function(a){return ZP(a).info};
SP=function(a){a=ZP(a);"gel"in a||(a.gel={});return a.gel};
ZP=function(a){return g.x("ytcsi."+(a||"")+"data_")||AP(a)};
AP=function(a){var b={tick:{},info:{}};g.ra("ytcsi."+(a||"")+"data_",b,void 0);return b};
DP=function(a){return!!g.x("yt.timing."+(a||"")+"pingSent_")};
BP=function(a,b){g.ra("yt.timing."+(b||"")+"pingSent_",a,void 0)};
Rla=function(a){var b=RP(a),c=b.pbr,d=b.vc;b=b.pbs;return c&&d&&b&&c<d&&d<b&&1==HP(a).yt_pvis};
Sla=function(a){var b=null,c=a.text;a.bold&&(b=g.xd("B",null,b||c));a.italics&&(b=g.xd("I",null,b||c));a.strikethrough&&(b=g.xd("STRIKE",null,b||c));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(a=a.navigationEndpoint.urlEndpoint,b=g.xd("A",{href:a.url},b||c),"TARGET_NEW_WINDOW"==a.target&&(b.target="_blank"));return b||g.xd("SPAN",null,c)};
g.$P=function(a){if(a.simpleText)return a.simpleText;if(a.simpleText)a=window.document.createTextNode(a.simpleText);else{var b=[];if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];d.text&&b.push(Sla(d))}a=1==b.length?b[0]:g.xd("SPAN",null,b)}b=g.zd("div");b.appendChild(a);return b.textContent};
g.aQ=function(a){g.xG.call(this);this.adModule=!1;this.adaptiveFormats="";this.bd=null;this.allowEmbed=!0;this.ug=this.backgroundable=!1;this.Ff="";this.Fm=this.Dm=this.Cm=!1;this.relativeLoudness=window.NaN;this.hd=1;this.watchAjaxToken=this.Gh=null;this.author="";this.If=0;this.Qw=this.Mm=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.Lt=this.channelPath=this.Nm="";this.contentCheckOk=!1;this.Jf=0;this.Ww=this.enableCardioBeforePlayback=this.enableCardio=!1;this.endSeconds=0;this.Zx=this.rh=
!1;this.Cg=this.tj=0;this.Tn=!1;this.EB=0;this.isLowLatencyLiveStream=this.isLiveDefaultBroadcast=this.isLiveDestination=this.Ba=this.al=this.isListed=this.Rr=this.Ah=!1;this.latencyClass="UNKNOWN";this.isMdxPlayback=!1;this.mdxControlMode=null;this.isPharma=!1;this.Hi=0;this.zt="";this.Ur=this.Ky=this.Tf=!1;this.liveChunkReadahead=window.NaN;this.liveStartWalltime=0;this.Yr=null;this.fl=this.lengthSeconds=0;this.playerParams=null;this.paygated=!1;this.profilePicture=void 0;this.racyCheckOk=!1;this.rootVeType=
0;this.autonavState=1;this.Ll=DJ;this.Zg=!1;this.Dy=this.startSeconds=0;this.spacecastModule=!1;this.ym=null;this.Ql=DJ;this.Yj=null;this.hlsFormats=this.Hh=this.title="";this.Kb=this.Jj=this.hg=null;this.dk="vvt";this.requiresPurchase=!1;this.clipStart=0;this.clipEnd=window.Infinity;this.wo=this.vj=this.wk=!1;this.Wq="";this.Ho=this.Bt=this.Fx=0;this.Hy=!1;this.BC=!0;this.Zj={};this.pr=!1;this.captionTracks=[];this.rk=[];this.mq=0;this.captionTranslationLanguages=[];this.sk=!1;this.bn=new XI("und",
new TI("Default","und",!0));this.Xr=0;this.Sj=this.ZB=!1;this.Uf=null;this.Qh=[];this.Xx=!1;this.Li={};this.iC=new g.Ht(this.jC,5E3,this);g.M(this,this.iC);this.Vq=0;this.Gx=!0;this.Oi=this.yb=null;this.partialSpherical=this.kh=!1;this.oe=[];this.Xb={};this.keywords={};this.ye={};this.setData(a)};
eQ=function(a,b,c){b=b||{};var d={};if(!c)d=a.yb||{};else if(b.player_response)for(d=g.xg(b.player_response)||{},a.yb||(a.yb={}),c=0;c<bQ.length;c++){var e=bQ[c];e in d&&(a.yb[e]=d[e])}(c=cQ(d))?(a.Ff=DL(c.invideoUrl),a.Cm=!!c.adsOnly,a.Dm=!!c.allowInPlaceSwitch):(b.iv_invideo_url&&(a.Ff=DL(b.iv_invideo_url)),a.Cm=IN(a.Cm,b.iv_ads_only),a.Dm=IN(a.Dm,b.iv_allow_in_place_switch));b.cta_conversion_urls&&(a.Wv=b.cta_conversion_urls);a.isPharma=IN(a.isPharma,b.is_pharma);a.author=MN(a.author,b.author);
a.Mm=IN(a.Mm,b.cc_asr);c=b.ttsurl;dQ.test(c)?a.Nm=c:c&&(c=CL(c),dQ.test(c)&&(a.Nm=c));d.captions&&d.captions.playerCaptionsTracklistRenderer?Tla(a,d.captions.playerCaptionsTracklistRenderer):(a.pr=void 0!=b.caption_tracks,b.caption_tracks&&b.caption_audio_tracks&&(Ula(a,b.caption_tracks),Vla(a,b.caption_audio_tracks),b.default_audio_track_index&&(a.mq=(0,window.parseInt)(b.default_audio_track_index,10)||0),b.caption_translation_languages&&Wla(a,b.caption_translation_languages)),a.sk=IN(a.sk,b.cc_contribute));
a.channelPath=MN(a.channelPath,b.channel_path);a.Lt=MN(a.Lt,b.short_subscriber_count_text);a.clientPlaybackNonce=MN(a.clientPlaybackNonce,b.cpn);a.subscribed=IN(a.subscribed,b.subscribed);a.ig=KN(a.ig,b.view_count);a.shortViewCount=MN(a.shortViewCount,b.short_view_count_text);a.title=MN(a.title,b.title);a.ypcPreview=MN(a.ypcPreview,b.ypc_preview);a.ypcOrigin=MN(a.ypcOrigin,b.ypc_origin);a.paygated=IN(a.paygated,b.paygated);a.requiresPurchase=IN(a.requiresPurchase,b.requires_purchase);b.keywords&&
(a.keywords=Xla(b.keywords));b.rvs&&(a.lg=iF(b.rvs));a.contentCheckOk=IN(a.contentCheckOk,"1"==b.cco);a.racyCheckOk=IN(a.racyCheckOk,"1"==b.rco);a.oauthToken=MN(a.oauthToken,b.oauth_token);a.visitorData=MN(a.visitorData,b.visitor_data);b.session_data&&(a.Wd=g.aF(b.session_data));b.endscreen_autoplay_session_data&&(a.ax=g.aF(b.endscreen_autoplay_session_data));a.Zw=MN(a.Zw,b.endscreen_ad_tracking_data);a.ek=IN(a.ek,b.wait_for_vast_info_cards_xml);a.Wj=IN(a.Wj,b.suppress_creator_endscreen);a.ai=MN(a.ai,
b.wpid);a.St=MN(a.St,b.tracking_list||b.tv_list);(0,g.H)(Yla,function(a){a in b&&(this.Xb[a]=b[a])},a)};
fQ=function(a){return!(!a.tb||!a.tb.videoInfos.length)};
Zla=function(a){return a.o&&QK('video/webm; codecs="vp9"')&&Mb(a.g,function(a){return qJ(a.info)})};
gQ=function(a){return!gN()||a.Qw?!0:!1};
g.hQ=function(a){if(!a.Oi)return null;var b=g.t(a.Oi.latitudeE7)&&g.t(a.Oi.longitudeE7)?a.Oi.latitudeE7+","+a.Oi.longitudeE7:",";return b+=","+(a.Oi.clientPermissionState||0)};
iQ=function(a){a.ma()||(a.rh=!1,a.X("dataloaded",a.Xb))};
jQ=function(a,b,c){c&&a.ua&&a.ua.dispose();a.ua=b;g.M(a,b);(a.mh()||a.lh()||a.mi()||a.Pf())&&a.oe.push("webgl");a.ua.isLive||(a.Ba=!1)};
g.lQ=function(a,b,c){if(a.ma())return IF();a.tb=null;a.hg=null;a.Jj=null;var d=b.o,e=d.c;d=d.cmodel;a.kh=/^rq/.test(a.clientPlaybackNonce)||/^r/.test(a.clientPlaybackNonce)&&/UNPLUGGED/.test(e)||/FUGU/.test(d);a:{if(!c&&!gQ(a)&&(e=!1,a.spacecastAdaptiveFormats?(jQ(a,rM(kQ(a,a.spacecastAdaptiveFormats),a.bd,a.lengthSeconds,void 0),!0),e=!0):a.ua&&a.So&&(d=yM(a.ua,a.So))&&(jQ(a,d,!0),e=!0),e)){e=qN(b.L,a.ua,a.Uf,!0,!1).then(a.Jt,void 0,a).then(a.kx,void 0,a);break a}e=IF()}return e.then(void 0,(0,g.A)(a.DK,
a,b)).then(void 0,(0,g.A)(a.AK,a,b,c)).then(void 0,(0,g.A)(a.BK,a,b)).then(void 0,(0,g.A)(a.EK,a,b)).then(void 0,(0,g.A)(a.CK,a,b))};
mQ=function(a,b){var c={cpn:a.clientPlaybackNonce,c:b.o.c,cver:b.o.cver};a.Fl&&(c.ptk=a.Fl,c.oid=a.GB,c.ptchn=a.FB,c.pltype=a.HB);return c};
g.nQ=function(a){return a.Oa&&a.Oa.bd||null};
oQ=function(a){var b=a.yb&&a.yb.paidContentOverlay&&a.yb.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.$P(b.text):a.vS};
pQ=function(a){var b=a.yb&&a.yb.paidContentOverlay&&a.yb.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?(a=b.durationMs,g.u(a)?Za(a):a):a.EB};
g.qQ=function(a,b){return g.u(a.keywords[b])?a.keywords[b]:null};
rQ=function(a){if(!a.Kb)if(a.yb&&a.yb.storyboards){var b=a.yb.storyboards;b.playerStoryboardSpecRenderer?a.Kb=new aP(b.playerStoryboardSpecRenderer.spec,a.lengthSeconds):b.playerLiveStoryboardSpecRenderer&&a.ua&&(a.Kb=new cP(b.playerLiveStoryboardSpecRenderer.spec,a.ua))}else a.Xb.storyboard_spec?a.Kb=new aP(a.Xb.storyboard_spec,a.lengthSeconds):a.Xb.live_storyboard_spec&&a.ua&&(a.Kb=new cP(a.Xb.live_storyboard_spec,a.ua));return a.Kb};
sQ=function(a,b){if(a.ua&&a.Ba&&a.Oa){var c=a.ua.g[a.Oa.id];if(!c||!c.index)return null;var d=c.index.gh(b);c=c.index.mf(d);return{sequence:d,elapsed:Math.floor(1E3*(b-c))}}return null};
tQ=function(a){return!!(a.ze||a.adaptiveFormats||a.Hh||a.Yj||a.spacecastFormatMap||a.spacecastAdaptiveFormats||a.hlsvp)};
uQ=function(a){var b=g.jb(a.oe,"ypc");a.ypcPreview&&(b=!1);return a.ed()&&!a.rh&&(tQ(a)||g.jb(a.oe,"fresca")||g.jb(a.oe,"heartbeat")||b)};
kQ=function(a,b,c){b=iF(b);var d={};c&&(0,g.H)(c.split(","),function(a){(a=a.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[a[1]]={width:a[2],height:a[3]})});
(0,g.H)(b,function(a){var b=d[a.itag];b&&(a.width=b.width,a.height=b.height)},a);
return b};
$la=function(a){a=iF(a);var b={};(0,g.H)(a,function(a){var c=a.family;a=a.url;c&&a&&(b[c]=a)});
return b};
Ula=function(a,b){for(var c=iF(b),d=0;d<c.length;d++){var e=c[d],f=e.u;dQ.test(f)&&a.captionTracks.push(new g.VI({is_translateable:IN(!1,e.t),languageCode:e.lc,languageName:e.n,url:f,vss_id:e.v,kind:e.k,format:3}))}};
Vla=function(a,b){var c=iF(b);a.rk=[];(0,g.H)(c,function(a){var b={};g.t(a.aid)&&(b.audioTrackId=a.aid);a.i&&(b.captionTrackIndices=(0,g.J)(a.i.split(","),function(a){return(0,window.parseInt)(a,10)}));
b.hasDefaultTrack=g.t(a.d);b.hasDefaultTrack&&(b.defaultCaptionTrackIndex=(0,window.parseInt)(a.d,10)||void 0);b.hasForcedTrack=g.t(a.f);b.hasForcedTrack&&(b.forcedCaptionTrackIndex=(0,window.parseInt)(a.f,10));b.visibility=ama[(0,window.parseInt)(a.v,10)]||"UNKNOWN";this.rk.push(b)},a)};
Wla=function(a,b){for(var c=iF(b),d=0;d<c.length;d++){var e=c[d];a.captionTranslationLanguages.push(new g.UI({languageCode:e.lc,languageName:e.n}))}};
Tla=function(a,b){a.pr=!0;a.captionTracks=[];b.captionTracks&&(0,g.H)(b.captionTracks,function(a){var b=a.baseUrl;dQ.test(b)&&(a=new g.VI({is_translateable:!!a.isTranslatable,languageCode:a.languageCode,languageName:a.name&&g.$P(a.name),url:b,vss_id:a.vssId,kind:a.kind,format:3}),this.captionTracks.push(a))},a);
a.rk=b.audioTracks||[];a.mq=b.defaultAudioTrackIndex||0;a.captionTranslationLanguages=b.translationLanguages?(0,g.J)(b.translationLanguages,function(a){return new g.UI({languageCode:a.languageCode,languageName:g.$P(a.languageName)})}):[];
a.sk=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
g.vQ=function(a,b){return!!a.Xb[b]};
g.wQ=function(a){return a.Ba&&!a.ug};
xQ=function(a){return a.Ba&&a.ug};
yQ=function(a){var b=g.$b(a.Xb);!a.Ba&&0<a.startSeconds&&(b.start=a.startSeconds);return b};
bma=function(a){a.tb=a.tb.o};
g.zQ=function(a){if(a.Wj)return null;var b=a.Xb.iv_endscreen_url;b||(b=a.yb&&a.yb.endscreen&&a.yb.endscreen.endscreenUrlRenderer&&a.yb.endscreen.endscreenUrlRenderer.url);return b};
gO=function(a,b){if(b.experiments.g("html5_el_migration")){var c=a.adFormat?"adunit":b.V;c!=b.D&&g.TE(Error("EL mismatch: "+c+" vs "+b.D))}return b.D};
cQ=function(a){return a&&a.annotations&&(a=a.annotations[0],a.playerAnnotationsUrlsRenderer)?a.playerAnnotationsUrlsRenderer:null};
Xla=function(a){var b={};(0,g.H)(a.split(","),function(a){var c=a.split("=");2==c.length?b[c[0]]=c[1]:b[a]=!0});
return b};
AQ=function(a,b,c,d){this.videoData=a;this.g=b;this.reason=c;this.o=d};
DQ=function(a){this.g=a;this.o=0;this.C=-1;this.L=this.g.zd().volume;this.I=this.g.zd().muted;this.D=window.NaN;this.B=0;this.qb=[];this.A=BQ(this.g);this.J=g.CQ(this.g);this.F=this.G=0};
g.EQ=function(a){a.A.startTime=a.B;a.A.endTime=a.o;a.qb.length&&g.bb(a.qb).isEmpty()?a.qb[a.qb.length-1]=a.A:a.qb.length&&a.A.isEmpty()||a.qb.push(a.A);var b=g.CQ(a.g),c=a.g.g.experiments.o("html5_min_vss_watchtime_to_cut_secs_redux");if(c){var d=b-a.J;var e=a.A;e=(e.endTime-e.startTime)/e.playbackRate;var f=a.g.g.experiments.o("html5_max_vss_watchtime_ratio");e>c&&e>d*f&&(c=g.$b(a.A),a.A.endTime=a.A.startTime+.001,c.startTime=c.endTime-.001,a.qb.push(c))}a.G+=a.o-a.B;a.A=BQ(a.g);a.B=a.o;a.J=b};
FQ=function(a){return a.G+a.g.o()-a.B};
GQ=function(a){a.qb.length&&a.o==a.B||g.EQ(a);var b=a.qb;a.qb=[];return b};
HQ=function(a,b,c){c-=a.D;return b==a.o&&.5<c};
cma=function(a,b){if(!a.g.g.experiments.g("segment_volume_reporting"))return!1;var c=a.g.zd().volume,d=c!=a.L,e=a.g.zd().muted;if(e!=a.I)return a.I=e,!0;!d||0<=a.C||(a.L=c,a.C=b);c=b-a.C;return 0<=a.C&&2<c?(a.C=-1,!0):!1};
IQ=function(a,b){this.g=b;this.A=!1;this.videoData=a};
JQ=function(a,b,c){IQ.call(this,b,c);this.B=a};
g.KQ=function(a){return(a=dma[a.toString()])?a:"YTP_ERROR_LICENSE"};
ema=function(){this.C=this.g=window.NaN;this.A=this.B=this.o=!1};
LQ=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.o)b!=a.g&&(a.o=!1);else if(0<b&&a.g==b)return c-a.C>(d||!a.B?1500:400);a.g=b;a.C=c;return!1};
MQ=function(a,b){if(!a)return-1;for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c;return-1};
NQ=function(a,b){var c=MQ(a,b);return 0<=c?a.end(c):window.NaN};
OQ=function(a){return a&&a.length?a.end(a.length-1):window.NaN};
PQ=function(){var a=[],b=[];return{start:function(b){return a[b]},
end:function(a){return b[a]},
length:a.length}};
QQ=function(a,b){var c=NQ(a,b);return 0<=c?c-b:0};
RQ=function(a){var b="";if(a)for(var c=0;c<a.length;c++)b+=a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3)+",";return b};
SQ=function(){};
TQ=function(){g.L.call(this);this.A=this.o=null;this.F=this.D=!1;this.C=new g.Ef;g.M(this,this.C)};
WQ=function(a,b){var c="";b&&(UQ(a,b),c=b.g);a.Pd()&&""==c||(c&&a.Pd()!=c&&(VQ(a,c),a.A&&(a.A.dispose(),a.A=null)),b&&b.o||a.load(),a.F||(a.addEventListener("volumechange",a.uw),a.F=!0))};
fma=function(a,b){var c=IK(a.g);return new JK(c,b)};
XQ=function(a,b){if(!a.A||a.A.ma()){var c=new JK(IK(a.g),b);KK(c);WQ(a,c.C);a.A=c}};
gma=function(a,b){XQ(a,b);var c=a.A;a.A=null;return c};
UQ=function(a,b){a.o&&null!=b&&b.g==a.o.g||(a.o&&a.o.dispose(),a.o=b)};
ZQ=function(a){return QQ(YQ(a),a.getCurrentTime())};
$Q=function(a){var b=YQ(a);return 0<OQ(b)&&a.getDuration()?NQ(b,a.getCurrentTime()):0};
aR=function(a){var b=a.getDuration();return window.Infinity==b?1:b?$Q(a)/b:0};
bR=function(a){return{vct:a.getCurrentTime().toFixed(3),vd:a.getDuration().toFixed(3),vpl:RQ(a.g.played||PQ()),vbu:RQ(YQ(a)),vpa:a.g.paused,vsk:a.g.seeking,ven:a.g.ended,vpr:a.Uc(),vrs:a.g.readyState,vns:a.g.networkState,vec:a.Rb(),vvol:a.getVolume()}};
hma=function(a){a=a.Rb();switch(a){case 1:return"aborted";case 2:return"network";case 3:return"decode";case 4:return"unsupported";case 5:return"encrypted";default:return a.toString()}};
cR=function(a,b,c){g.$e.call(this,b,a);this.g=c||null};
g.dR=function(a,b){this.o=a||64;this.g=b||null};
eR=function(a,b){return LQ(a,b.getCurrentTime(),(0,g.ZG)(),ZQ(b))};
fR=function(a,b,c){return b==a.o&&c==a.g||b&128&&!c||b&2&&b&16?a:new g.dR(b,c)};
gR=function(a,b){return fR(a,a.o|b)};
hR=function(a,b){return fR(a,a.o&~b)};
iR=function(a){return fR(a,(a.o|4)&-9)};
g.W=function(a,b){return!!(a.o&b)};
g.jR=function(a,b){return b.o==a.o&&b.g==a.g};
kR=function(a){return g.W(a,8)&&!g.W(a,2)};
lR=function(a){return g.W(a,64)&&!g.W(a,8)&&!g.W(a,4)};
g.mR=function(a){return g.W(a,1)&&!g.W(a,2)};
nR=function(a){return g.W(a,128)?-1:g.W(a,2)?0:g.W(a,64)?-1:g.W(a,1)&&!g.W(a,32)?3:g.W(a,8)?1:g.W(a,4)?2:-1};
g.oR=function(a,b){this.state=a;this.g=b};
pR=function(a,b){return g.W(a.state,b)&&!g.W(a.g,b)?1:!g.W(a.state,b)&&g.W(a.g,b)?-1:0};
qR=function(){this.endTime=this.startTime=-1;this.nq="-";this.playbackRate=1;this.visibilityState=0;this.fq="";this.volume=this.connectionType=this.Vg=0;this.muted=!1};
jma=function(a,b,c,d,e,f,k,l,m,n,q,r,w){this.videoData=a;this.g=b;this.zd=c;this.D=d;this.o=e;this.B=f;this.N=k;this.J=l;this.L=m;this.F=n;this.C=q;this.G=r||function(){};
this.A=null;this.I=w||function(){}};
g.CQ=function(a){return rR(a)()};
rR=function(a){if(!a.A){var b=g.Aa(function(a){var b=(0,g.ZG)();a&&631152E6>=b&&(g.TE(Error("invalid yt.global.now value: "+b)),b=(new Date).getTime()+2);return b},a.g.experiments.g("html5_validate_yt_now"));
a.A=g.Aa(function(a){return Math.round(b()-a)/1E3},b());
a.I()}return a.A};
sR=function(a){var b=a.zd();g.Ba(b,a.videoData.zd());return b};
uR=function(){return window.navigator.connection&&window.navigator.connection.type?tR[window.navigator.connection.type]||tR.other:0};
BQ=function(a){var b=new qR;b.nq=a.zd().cc||"-";b.playbackRate=a.L();var c=a.C();0!=c&&(b.visibilityState=c);a.g.Vg&&(b.Vg=1);c=a.J();c.Sc&&c.Sc.id&&"und"!=c.Sc.id&&(b.fq=c.Sc.id);b.connectionType=uR();b.volume=a.zd().volume;b.muted=a.zd().muted;return b};
wR=function(a){g.L.call(this);var b=this;this.g=a;this.o={};this.pa=1;this.Y=window.NaN;this.A="N";this.D=this.ba=this.B=0;this.L=this.da="";this.aa=0;this.fa=-1;this.J=this.N=0;this.V=this.I=!1;this.ha=[];this.F=null;this.G=!1;(a=window.navigator.getBattery?window.navigator.getBattery():null)&&a.then&&a.then(function(a){b.F=a});
this.O=(this.g.g.experiments.o("html5_disable_qoe_percentage")||0)>Math.floor(100*Math.random());this.g.g.experiments.g("html5_qoe_unstarted_in_initialization")&&g.vR(this,0,"vps",["N"])};
g.vR=function(a,b,c,d){var e=a.o[c];e||(e=[],a.o[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
zR=function(a,b){b=0<=b?b:g.CQ(a.g);var c=a.g.B();if(!(0,window.isNaN)(a.ea)&&!(0,window.isNaN)(c.C)){var d=c.C-a.ea;0<d&&g.vR(a,b,"bwm",[d,(c.G-a.ra).toFixed(3)])}a.ea=c.C;a.ra=c.G;(0,window.isNaN)(c.o)||g.vR(a,b,"bwe",[c.o.toFixed(0)]);a.g.videoData.kh&&c.g&&xR(a,"bwinfo",c.g);a.F&&g.vR(a,b,"bat",[a.F.level,a.F.charging?"1":"0"]);d=a.g.C();a.fa!=d&&(g.vR(a,b,"vis",[d]),a.fa=d);g.vR(a,b,"cmt",[a.g.o().toFixed(3)]);(d=uR())&&d!=a.aa&&(g.vR(a,b,"conn",[d]),a.aa=d);yR(a,b,c);d=b;0<c.F&&!a.g.g.experiments.g("html5_new_e2e_latency_tracking")&&
g.vR(a,d,"e2el",[c.F,c.I.toFixed(3),c.B.toFixed(3),c.L.toFixed(3),c.J.toFixed(3)]);null!==a.g.videoData.ym&&(a.o.acc=[a.g.videoData.ym.join(":")])};
yR=function(a,b,c){if(!(0,window.isNaN)(c.A)){var d=c.A;c.D<d&&(d=c.D);g.vR(a,b,"bh",[d.toFixed(3)])}};
AR=function(a){var b={event:"streamingstats"};if(a.g.videoData.Oa){b.fmt=oJ(a.g.videoData.Oa);var c=a.g.videoData.wd;c&&oJ(c)!=b.fmt&&(b.afmt=oJ(c))}b.cpn=a.g.videoData.clientPlaybackNonce;b.ei=a.g.videoData.eventId;b.el=gO(a.g.videoData,a.g.g);b.docid=a.g.videoData.videoId;b.ns=a.g.g.ib;b.fexp=a.g.g.experiments.experimentIds.toString();b.cl=a.g.g.Ya;a.g.videoData.adFormat&&(b.adformat=a.g.videoData.adFormat);a.g.videoData.Ba&&(b.live=a.g.videoData.ug?"dvr":"live");b.seq=a.pa++;return b};
BR=function(a,b){a.g.g.experiments.g("html5_ajax_qoe_retry")?g.jg(GF(b,{},3,500),g.y):a.g.g.experiments.g("html5_beacon")?CF(b):g.AF(b)};
CR=function(a){var b=0,c;for(c in a.o)b+=c.length+$c(a.o[c],function(a,b){return a+b.length},0);
1E3<b&&(new g.Ht(a.C,0,a)).start()};
DR=function(a,b,c,d){var e=a.g.o();c=[c,e.toFixed(3)];d&&c.push(d);g.vR(a,b,"error",c)};
ER=function(a,b){g.vR(a,g.CQ(a.g),"lra",[b]);xR(a,"live-readahead-seconds",b.toString())};
lma=function(a){if(g.W(a,128))return"ER";if(g.W(a,512))return"SU";if(g.W(a,16)||g.W(a,32))return"S";var b=kma[nR(a)];"B"==b&&g.W(a,4)&&(b="PB");return b};
FR=function(a,b){var c=a.o.cat||[];c.push(b);a.o.cat=c};
xR=function(a,b,c,d){var e=a.o.ctmp||[],f=-1!=a.ha.indexOf(b);f||a.ha.push(b);d&&f||(d||(c="t."+g.CQ(a.g).toFixed(3)+";"+c),e.push(b+":"+c),a.o.ctmp=e,CR(a))};
GR=function(a,b,c,d){this.F=b;this.segments=[];this.experimentIds=[];this.Tf=this.Ka=this.L=this.pa=this.Aa=this.Y=this.autoplay=this.autonav=!1;this.da="yt";this.Gh=this.o=this.D=null;this.aa=!1;this.C="watchtime"==c;this.B="playback"==c;this.J="delayplay"==c;this.I="atr"==c;this.Fa="engage"==c;this.Sj=!1;this.ka=this.I?"/api/stats/"+c:"//"+b.wT+"/api/stats/"+c;d&&(this.L=d.fs,d.rtn&&(this.o=d.rtn),this.C?(this.Ib=d.state,0<d.rti&&(this.D=d.rti)):(this.Na=d.mos,this.Ta=d.volume,d.at&&(this.adType=
d.at)),d.autonav&&(this.autonav=d.autonav),d.inview&&(this.ha=d.inview),d.size&&(this.fa=d.size));b.experiments.g("legacy_autoplay_flag")&&(this.autoplay=b.ba);this.ob=b.Ka;this.ub=g.$b(b.o);this.Y=b.F;this.sa=b.pa;this.experimentIds=b.experiments.experimentIds;this.Va=b.Ra;this.da=b.ib;this.region=b.region;this.Jb=b.Ya?b.Ya.toString():"";this.userAge=b.userAge;this.userGender=b.userGender;this.ib=g.dH();this.Sj=b.Ta;this.G=a.oauthToken||this.G;this.adFormat=a.adFormat;this.autoplay=hO(this.F,a,this.L);
this.autonav=a.Tn||this.autonav;this.Gh=a.Gh;this.clientPlaybackNonce=a.clientPlaybackNonce;this.V=a.vssCredentialsToken;this.bb=a.dk;this.mdxEnvironment=a.mdxEnvironment;this.If=a.If;this.Jf=a.Jf;a.Oa&&(this.ra=oJ(a.Oa),a.wd&&oJ(a.wd)!=this.ra&&(this.O=oJ(a.wd)));this.Tf=a.Tf;this.tj=a.tj;a.Ba&&(this.Ra=a.ug?"dvr":"live");this.fl=a.fl;this.zh=a.zh;this.playbackId=a.playbackId;this.eventId=a.eventId;this.playlistId=a.St||a.playlistId;this.Eo=a.Eo;this.kg=a.kg;this.sf=a.sf;this.Ro=a.Ro;this.subscribed=
a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.ht=a.ht;this.referrer=a.referrer;this.Bh=a.wt||a.Bh;this.ck=a.ck;this.Zo=a.Zo;this.ai=a.ai;this.Ab=gO(a,b)};
HR=function(a,b){if(a.I)return null;var c=a.G&&fF(),d=a.Sj&&!!a.visitorData;if(!c&&!d)return null;var e={};c&&(e.Authorization="Bearer "+a.G);d&&(e["X-Goog-Visitor-Id"]=a.visitorData);return{headers:e,withCredentials:!0,Dd:b}};
mma=function(a,b,c,d){b.cmt=b.len;b.lact="0";d=d();d=d.toFixed(3);b.rt=(1*d).toString();a=g.Pg(a,b);c?g.nF(a,c):g.AF(a)};
JR=function(a){var b={ns:a.da,el:a.Ab,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.g(a.If),plid:a.playbackId,ei:a.eventId,fmt:a.ra,fs:a.L?"1":"0",rt:a.g(a.Ya),of:a.ht,adformat:a.adFormat,content_v:a.ob,euri:a.sa,lact:a.ib,live:a.Ra,cl:a.Jb,mos:a.Na,osid:a.osid,state:a.Ib,vm:a.videoMetadata,volume:a.Ta};a.subscribed&&(b.subscribed="1");g.Ba(b,a.ub);a.autonav&&(b.autonav="1");if(a.F.experiments.g("legacy_autoplay_flag"))a.autoplay&&(b.autoplay="1");else if(a.autoplay||a.Tf)b.autoplay=
"1";a.Y&&(b.dni="1");a.pa&&(b["final"]="1");a.Tf&&(b.splay="1");a.Jf&&(b.delay=a.Jf);a.Va&&(b.hl=a.Va);a.region&&(b.cr=a.region);g.t(a.userAge)&&a.userGender&&(b.uga=a.userGender+a.userAge);g.t(a.ea)&&(b.len=a.g(a.ea));!a.C&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.o&&(b.rtn=a.g(a.o));a.Bh&&(b.feature=a.Bh);a.playlistId&&(b.list=a.playlistId);a.kg&&(b.ctrl=a.kg);a.sf&&(b.ytr=a.sf);a.Ro&&(b.ssrt="1");a.O&&(b.afmt=a.O);a.ba&&(b.lio=a.g(a.ba));a.C?(b.idpj=a.tj,b.ldpj=a.fl,
null!=a.D&&(b.rti=a.g(a.D))):g.t(a.adType)&&(b.at=a.adType);(a.B||a.J)&&a.Gh&&(b.tst=a.Gh);a.fa&&(a.B||a.J)&&(b.size=a.fa);null!=a.ha&&(a.B||a.J)&&(b.inview=a.g(a.ha));a.C&&(a.F.experiments.g("segment_volume_reporting")&&(b.volume=IR(a,(0,g.J)(a.segments,function(a){return a.volume})),b.muted=IR(a,(0,g.J)(a.segments,function(a){return a.muted}))),b.st=IR(a,(0,g.J)(a.segments,function(a){return a.startTime})),b.et=IR(a,(0,g.J)(a.segments,function(a){return a.endTime})),(0,g.Ik)(a.segments,function(a){return 1!=
a.playbackRate})&&(b.rate=IR(a,(0,g.J)(a.segments,function(a){return a.playbackRate}))));
(0,g.Ik)(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=IR(a,(0,g.J)(a.segments,function(a){return a.visibilityState})));
(0,g.Ik)(a.segments,function(a){return 0!=a.connectionType})&&(b.conn=IR(a,(0,g.J)(a.segments,function(a){return a.connectionType})));
(0,g.Ik)(a.segments,function(a){return 0!=a.Vg})&&(b.blo=IR(a,(0,g.J)(a.segments,function(a){return a.Vg})));
(0,g.Ik)(a.segments,function(a){return"-"!=a.nq})&&(b.cc=(0,g.J)(a.segments,function(a){return a.nq}).join(","));
if((0,g.Ik)(a.segments,function(a){return!!a.fq})){var c="au";
a.B&&(c="au_d");b[c]=(0,g.J)(a.segments,function(a){return a.fq}).join(",")}fF()&&a.V&&(b.ctt=a.V,b.cttype=a.bb,b.mdx_environment=a.mdxEnvironment);
a.Fa&&(b.etype=g.t(a.A)?a.A:0);a.ck&&(b.uoo=a.ck);a.Zo&&(b.upt=a.Zo);a.ai&&(b.wpid=a.ai);return b};
IR=function(a,b){return(0,g.J)(b,a.g).join(",")};
KR=function(a){g.L.call(this);this.g=a;this.o=new wR(a);g.M(this,this.o);this.A=new DQ(a);this.D="paused";this.F=window.NaN;this.I=[10,10,10,40];this.J=this.G=0;this.V=this.O=this.aa=this.Y=this.N=this.L=this.B=!1;this.C=window.NaN;this.ba=new JQ(this.A,this.g.videoData,this.g.g)};
LR=function(a,b,c){var d=g.CQ(a.g);c=(0,window.isNaN)(c)?d:c;c=Math.ceil(c);var e=a.I[a.G];a.G+1<a.I.length&&a.G++;c+=e;d=1E3*(c-d);a.F=g.$E((0,g.A)(a.jP,a,c,b),d);return c};
MR=function(a,b){var c=sR(a.g);g.Ba(c,{state:a.D});c=new GR(a.g.videoData,a.g.g,b,c);c.If=a.g.o();a.g.videoData.Ba||(c.ea=a.g.D());if(a.g.videoData.ua){var d=CM(a.g.videoData.ua,c.If);d&&(c.ba=d-c.If)}c.Ya=g.CQ(a.g);c.segments=[BQ(a.g)];return c};
NR=function(a,b){var c=MR(a,"watchtime");c.segments=b;c.If=a.A.o;return c};
OR=function(a){a.A.update();return NR(a,GQ(a.A))};
RR=function(a){a.g.videoData.remarketingUrl&&!a.Y&&(PR(a,a.g.videoData.remarketingUrl),a.Y=!0);a.g.videoData.youtubeRemarketingUrl&&!a.aa&&(PR(a,a.g.videoData.youtubeRemarketingUrl),a.aa=!0);a.g.videoData.googleRemarketingUrl&&!a.O&&(PR(a,a.g.videoData.googleRemarketingUrl),a.O=!0);a.g.videoData.ppvRemarketingUrl&&!a.V&&(PR(a,a.g.videoData.ppvRemarketingUrl),a.V=!0);QR(a)};
SR=function(a){a.C=g.ZE((0,g.A)(a.Lo,a,"heartbeat"),3E4)};
QR=function(a){a.g.videoData.ye.eventLabel=gO(a.g.videoData,a.g.g);a.g.videoData.ye.playerStyle=a.g.g.g;a.g.videoData.zo&&(a.g.videoData.ye.feature="pyv");a.g.videoData.ye.vid=a.g.videoData.videoId;var b=a.g.videoData.ye,c=a.g.videoData;a=!("adunit"!=gO(c,a.g.g)&&!c.zo);b.isAd=a};
PR=function(a,b,c){a.g.g.Ta&&a.g.videoData.visitorData&&gF(b)?g.nF(b,{Dd:c,headers:{"X-Goog-Visitor-Id":a.g.videoData.visitorData}}):g.AF(b,c)};
TR=function(a,b){OJ.call(this,a,b);this.g=!1;V(this,"getPresentingPlayerType",this.Za);V(this,"addInfoCardXml",this.oL);V(this,"cueVideoByPlayerVars",this.qL);V(this,"loadVideoByPlayerVars",this.eo);V(this,"preloadVideoByPlayerVars",this.zz);V(this,"seekBy",this.ie);V(this,"updatePlaylist",this.LL);V(this,"updateLastActiveTime",this.KL);V(this,"updateVideoData",this.ML);V(this,"getPlayerResponse",this.getPlayerResponse);V(this,"getStoryboardFormat",this.getStoryboardFormat);V(this,"getProgressState",
this.th);V(this,"getHousebrandProperties",this.tL);V(this,"setPlaybackQualityRange",this.Az);V(this,"getCurrentPlaylistSequence",this.sL);V(this,"canPlayType",this.pL);V(this,"sendVideoStatsEngageEvent",this.wi);V(this,"setCardsVisible",this.ql);V(this,"handleGlobalKeyDown",this.wL);V(this,"getAudioTrack",this.sh);V(this,"setAudioTrack",this.Bs);V(this,"getAvailableAudioTracks",this.zs);V(this,"getMaxPlaybackQuality",this.uL);V(this,"setSizeStyle",this.GL);V(this,"forceFrescaUpdate",this.rL);V(this,
"setAutonav",this.uz);V(this,"setAutonavState",this.vz);V(this,"showControls",this.JL);V(this,"hideControls",this.xL);V(this,"getVisibilityState",this.co);V(this,"shouldSendVisibilityState",this.IL);V(this,"getVideoContentRect",this.yz);V(this,"setSafetyMode",this.FL);V(this,"setFauxFullscreen",this.BL);V(this,"cancelPlayback",this.lq);V(this,"getVideoStats",this.Hx);V(this,"updateSubtitlesUserSettings",this.fo);V(this,"getSubtitlesUserSettings",this.ti);V(this,"resetSubtitlesUserSettings",this.As);
V(this,"isFastLoad",this.yL);V(this,"isPeggedToLive",this.isPeggedToLive);V(this,"setMinimized",this.DL);V(this,"getSphericalConfig",this.vL);V(this,"setSphericalConfig",this.HL);V(this,"setBlackout",this.AL);V(this,"onAdUxClicked",this.zL);V(this,"getPlayerSize",this.xz);V(this,"setGlobalCrop",this.CL);V(this,"wakeUpControls",this.ZT);V(this,"isMutedByMutedAutoplay",this.kK)};
UR=function(a,b){TR.call(this,a,b)};
VR=function(a,b,c){this.A=a;this.g=void 0===b?"":b;this.B=c||null;this.C=!1};
WR=function(a,b){var c=a.A,d=g.aO(c)&&(c.ba&&c.Hd||c.experiments.g("html5_playlist_preload"));if(c.Gc&&(ZN(c)||g.vO(c)||d)&&!a.C){a.C=!0;a.A.experiments.g("html5_skip_default_csi_configs")||(g.qE("TIMING_ACTION")||g.pE("TIMING_ACTION",a.A.csiPageType),a.A.ob&&g.pE("CSI_SERVICE_NAME",a.A.ob));if(a.B){c=a.B.aa;for(var e in c)g.EP(e,c[e],a.g);e=a.B.Y;for(var f in e)g.FP(f,e[f],a.g);f=a.B;f.aa={};f.Y={}}g.FP("yt_pvis",IP(),a.g);g.FP("yt_pt","html5",a.g);b&&!UP("pbs",a.g)&&a.o("pbs",b);f=a.A;ZN(f)&&"blazer"!=
f.g||!UP("_start",a.g)||OP(a.g)}};
XR=function(a,b){this.type=a||"";this.id=b||""};
g.YR=function(a){return new XR(a.substr(0,2),a.substr(2))};
g.$R=function(a){g.xG.call(this);this.startSeconds=0;this.DC=!1;this.gc=0;this.title="";this.qh=0;this.La=[];this.Vf=this.Tc=!1;this.Wd=this.ax=this.Il=null;this.views=0;this.cH=0!=a.fetch;this.Vd=[];this.gc=Math.max(0,a.index||0);this.loop=!!a.loop;this.startSeconds=a.startSeconds||0;this.UN="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||a.playlist_author||"";this.Zj={};a.video_id&&(this.La[this.gc]=a);a.api&&("string"==typeof a.api&&
16==a.api.length?a.list="PL"+a.api:a.playlist=a.api);this.Wn=0;if(a.list)switch(a.listType){case "user_uploads":nma(this,a.list);break;case "user_favorites":oma(this,a.list);break;case "search":pma(this,a.list);break;default:a.playlist_length&&(this.qh=a.playlist_length),this.listId=g.YR(a.list),a.video?(this.La=a.video.slice(0),this.Tc=!0):qma(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.gc&&(this.La=[]);(0,g.H)(b,function(a){a&&this.La.push({video_id:a})},this);
this.qh=this.La.length;b=(0,g.J)(this.La,function(a){return a.video_id});
ZR(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.Tc=!0}this.setShuffle(!!a.shuffle);a.suggestedQuality&&(this.quality=a.suggestedQuality);this.Zj=hP(a,"playlist_");this.LC=a.thumbnail_ids?a.thumbnail_ids.split(","):[]};
aS=function(a){return!!(a.playlist||a.list||a.api)};
bS=function(a){var b=a.gc+1;return b>=a.qh?0:b};
cS=function(a){var b=a.gc-1;return 0>b?a.qh-1:b};
dS=function(a,b){a.gc=g.Xc(b,0,a.qh-1);a.startSeconds=0};
nma=function(a,b){a.Vf||(a.listId=new XR("UU","PLAYER_"+b),ZR(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))};
oma=function(a,b){a.Vf||(a.listId=new XR("FL","PLAYER_"+b),ZR(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))};
pma=function(a,b){if(!a.Vf){a.listId=new XR("SR",b);var c={search_query:b};a.UN&&(c.mob="1");ZR(a,"/search_ajax?style=json&embeddable=1",c)}};
qma=function(a){if(!a.Vf){var b={list:a.listId},c=a.dc();c&&c.videoId&&(b.v=c.videoId);ZR(a,"/list_ajax?style=json&action_get_list=1",b)}};
ZR=function(a,b,c){a.cH&&g.nF(g.Pg(b,c),{format:"JSON",Vb:(0,g.A)(function(a,b){eS(this,b)},a),
onError:(0,g.A)(function(){this.X("error")},a)})};
eS=function(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;a.author=b.author;b.loop&&(a.loop=b.loop);var c=a.dc();a.La=[];(0,g.H)(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.La.push(a))},a);
a.qh=a.La.length;b.index?a.gc=b.index:a.Ck(c);a.setShuffle(!1);a.Vf=!1;a.Tc=!0;a.Wn++;a.Il&&a.Il()}};
fS=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
gS=function(a){this.g=window.Float32Array?new window.Float32Array(a):Array(a);this.o=a-1};
hS=function(a,b){a.o=(a.o+1)%a.g.length;a.g[a.o]=b};
rma=function(){this.D=new gS(50);this.o=null;this.C=this.B=0;this.g=[];this.A=null};
sma=function(a,b){0!=a.g.length&&(b.F=a.g.length,b.I=$c(a.g,function(a,b){return a+b},0),b.B=g.bb(a.g),b.L=Math.min.apply(Math,a.g),b.J=Math.max.apply(Math,a.g),a.g=[])};
tma=function(a,b){var c=(0,window.isNaN)(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.al&&c--;a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||c++;this.g=Math.max(0,c);this.o=[];this.B=0;this.A=a;this.C="ULTRALOW"!=this.A.latencyClass&&(!b.g("html5_treat_latency_low_like_ultra_low")||!this.A.isLowLatencyLiveStream)};
iS=function(a){return(a.A.ua?BM(a.A.ua)||5:5)*a.g};
kS=function(a){this.g=new jS(0,0,null);this.B=8;this.D=[];this.A=[];this.C=this.G=window.NaN;this.J=this.o=this.I=0;this.F=window.NaN;this.N=0;this.L=void 0===a?!0:a};
lS=function(a){return{startTime:a.F/a.o,duration:a.J/a.o}};
mS=function(a){return!(0,window.isNaN)(a.C)&&a.o?a.C/a.o:a.N};
nS=function(a,b,c){var d=b.getUint32(c);b=b.getUint32(c+4);a.g=new jS(b,d,a.g);return 8};
oS=function(a){a.o&&!(0,window.isNaN)(a.G)&&(a.C=Math.floor(a.G*a.o),a.G=window.NaN)};
pS=function(a){return 0==a.g.type||1836019574==a.g.type||1952867444==a.g.type||1936286840==a.g.type||1953653094==a.g.type||1836019558==a.g.type};
qS=function(a,b,c){for(var d=c;d<b.byteLength;d++)a.D.push(b.getUint8(d));0<c&&a.A.push(new window.DataView(b.buffer,b.byteOffset,c))};
rS=function(a,b,c){return new $J(b,c,a.g.size,a.g.type,!0)};
jS=function(a,b,c){this.type=a;this.size=b;this.g=c;this.offset=this.version=0};
uma=function(a,b){this.o=a;this.D=this.C=!1;this.length=b?b:0;this.g=0;this.A=[];this.B=null;this.length?1!=this.o.length||this.o[0].gb||(this.o[0].gb=this.length):1==this.o.length||(0,g.Nr)(this.o,function(a){return!!a.range})};
vma=function(a){var b=a.length-a.g;(0,g.H)(a.A,function(a){b+=a.range.length});
return b};
wma=function(a,b,c,d,e){this.g=a;this.ba=b;this.fa=c;this.da=e;this.V=this.o=window.NaN;this.ea=0;this.J=this.L=this.A=this.D=window.NaN;this.aa=this.Y=this.B=!1;this.C=0;this.G=aN(this.g);this.O=this.N=window.NaN;this.I=d;this.F=null};
sS=function(a){return{rt:(((0,g.G)()-a.o)/1E3).toFixed(2),lb:a.A,pt:a.N.toFixed(2),pb:a.ba,stall:a.C.toFixed(2),elbowTime:((a.V-a.o)/1E3).toFixed(2),elbowBytes:a.ea}};
tS=function(a,b,c){var d=(b-a.D)/1E3,e=c-a.A;if(a.B)!a.I&&0<e&&(.2<d||1024>e?(a.C+=d,.2<d&&TM(a.g,.05,e)):TM(a.g,d,e),a.aa=!0);else if(c>=a.g.policy.g){if(!a.I){var f=a.g;f.D.g(1,(b-a.o)/1E3);UM(f)}a.V=b;a.ea=c;a.B=!0}XM(a.g,d,e);a.D=b;a.A=c};
uS=function(a,b,c){c=Math.round(c/1024);if(a.F){var d=b-a.L,e=c-a.J;a.F.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(d>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(d&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(e>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(e&63))}a.L=b;a.J=c};
vS=function(a){return a.A>=a.g.policy.g};
wS=function(a){return Math.max(0,((0,g.G)()-a.L)/1E3)};
xS=function(a){var b=a.ba-a.A;b=1E3*(b*a.G.stall+b/a.G.byterate);var c=(0,g.G)();b=vS(a)?b+c:b+Math.max(c,a.o+1E3*a.G.delay);a.O=b};
yS=function(a,b,c,d,e,f){this.status=0;this.G=this.response=null;this.L=d;this.D=c;this.V=e;this.N=f;this.o=[];this.B=null;this.A=this.g=0;this.ya=xma++;this.O=window.NaN;this.C=null;a=new window.Request(a,{method:"GET",credentials:"include"});(0,window.fetch)(a).then(UE((0,g.A)(this.KS,this)),UE((0,g.A)(this.jo,this)));(0,g.G)();this.J=this.I=this.F=!1;b()};
AS=function(a){a.J=!0;a.o.push(a.B.subarray(0,a.g));a.g=0;a.B=a.F?null:new window.Uint8Array(zS(a))};
BS=function(a,b){if(b.length+a.g>zS(a)){var c=new window.Uint8Array(a.g+b.length);c.set(a.B,0);a.B=c}a.B.set(b,a.g);a.g+=b.length};
CS=function(a){a.C.read().then(UE((0,g.A)(a.MO,a)),UE((0,g.A)(a.TQ,a)));var b=(0,g.G)();a.O=b};
zS=function(a){a=a.Gk()||0;return Math.max(16384,.125*a)};
DS=function(a,b,c,d,e){this.status=0;this.response=null;this.o=this.A=!1;this.g=new window.XMLHttpRequest;this.g.open("GET",a);this.g.responseType="arraybuffer";this.g.withCredentials=!0;this.g.onreadystatechange=(0,g.A)(this.QL,this);this.B=d;this.D=c;this.C=e;a=UE((0,g.A)(this.OL,this));this.g.addEventListener("load",a,!1);this.g.addEventListener("error",a,!1);this.g.send();b();this.g.addEventListener("progress",UE((0,g.A)(this.PL,this)),!1)};
ES=function(a,b,c,d){this.C=a;this.info=b;this.timing=c;this.V=d;this.state=1;this.g=null;this.N=this.L=0;this.D=window.NaN;this.F=this.A=this.I=null;this.B=0;this.G=this.o=null;this.J=0;this.O=!1};
FS=function(a){return a.A?HL(a.A.g):""};
GS=function(a){var b=sS(a.timing);b.shost=FS(a);b.rn=a.L.toString();a.B&&(b.rc=a.B.toString());b.itag=""+oJ(a.info.g[0].na.info);b.ml=""+ +a.info.g[0].na.Bd();410!=a.B&&500!=a.B&&503!=a.B||(b.fmt_unav="true");return b};
HS=function(a){FS(a);return zL(a.V,FS(a))};
IS=function(a){if(1==a.state)return!0;a=HS(a);return 100>a.wf&&6>a.g};
JS=function(a,b){a.state=b;if(5<=a.state){var c=a.timing;c.B&&(c.B=!1)}a.I&&a.I(a)};
KS=function(a){return(0,g.Nr)(a.info.g,function(a){return 3==a.type})};
LS=function(a){if(a.g){var b=a.g;a.g=null;b.abort()}a=a.timing;a.B&&(a.B=!1)};
NS=function(a){var b=a.g.xi("content-type"),c=a.g.Gk();b=!MS(a)||!b||-1!=b.indexOf("text/plain");a=a.C.V?!!c&&2048>=c:!c||2048>=c;return b&&a};
MS=function(a){return a.g?a.g.IC():!1};
OS=function(a){return 2<=a.state&&!!a.o&&!!a.o.A.length};
PS=function(a,b){if(b||MS(a)&&!NS(a)){if(!a.o){var c;MS(a)||(c=a.g.Kq());a.o=new uma(a.info.g,c)}for(;a.g.Tr();){c=a.o;for(var d=a.g.AC(),e=b&&!a.g.Tr(),f=0,k=0,l=g.la(c.o),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.gb<=c.g)f+=m.gb;else{var n=c,q=m;if(1==q.type){n.C=!0;var r=!1}else 3==q.type||4==q.type?(q=n.C&&!n.D,n.D=!0,r=q):r=!1;n=c;var w=c.g-f,z=k;q=d;r=r||m.na.Fz();var B=q.length-z;m.range&&(B=Math.min(m.gb-w,B));w=bL(m,m.Ua+w,B,m.range?m.Ua+w+B==m.range.length:!!e);var C=UK(q.byteOffset,
q.length);z=UK(q.byteOffset+z,B);n.A.push(new tL(w,q.buffer,z,C,r));n=B;c.g+=n;k+=n;f+=m.gb;if(k==d.length)break}}}};
QS=function(a,b){g.xG.call(this);this.D=0;this.A=a;this.g=[];this.B=null;this.L=b;this.F=this.G=window.NaN;this.O=null;this.Y=(0,g.A)(function(a){this.A.ik&&(this.X("timestamprewrite",a),this.A.ik=!1)},this);
this.V=this.J=this.C=this.o=null;this.N=!1;this.I=null;this.A.ka&&(this.o=new kS(this.A.Ya))};
RS=function(a){return a.g.length?a.g[0]:null};
SS=function(a){return a.g.length?a.g[a.g.length-1]:null};
zma=function(a,b,c){b=yma(a,b,c);(0,g.H)(b,function(b){a.g.push(b)})};
Ama=function(a){return(0,g.Ik)(a.g,function(a){return a.info.g})};
Bma=function(a,b){if(b){var c=g.cb(a.g,function(a){return a.info.g});
-1!=c&&(a.g=g.ub(a.g,0,c+1))}else a.g=[]};
Cma=function(a){if(!a.g.length)return 0;for(var b=a.g[0].A.length,c=1;c<a.g.length;c++)a.g[c].g!=a.g[c-1].g&&(b+=a.g[c].A.length);a.B&&(b+=a.B.A.length);return b};
TS=function(a){return(0,g.J)(a.g,function(a){return a.info})};
US=function(a){return a.o?mS(a.o):a.G||0};
yma=function(a,b,c){if(!c.verify()||c.info.na.Sr()){var d=$K(c.info);d.verification="1";a.X("error",d||{})}c.ke&&c.info.na.info.video&&ZL(c.info.na,uL(c));c.info.g&&(a.V=c.info);if(!a.L.we()){if(2==c.info.na.info.containerType){var e=uL(c);c.ke&&c.info.na.info.video&&lL(e);a.A.xm&&0==c.info.Ua&&jL([408125543],307544935,e)}if(a.C){var f=c.info,k=a.C;f.wa=k.o;f.B=k.A}var l=c;!a.J||(a.A.yc?YK(a.J,l.info,!0):ZK(a.J,l.info))||(a.o&&a.o.reset(),a.G=window.NaN,a.D=0);a.J=l.info;if(a.o){var m;if(!(m=!(0,window.isNaN)(a.F))){var n=
a.o;m=!(!(0,window.isNaN)(n.C)||!(0,window.isNaN)(n.G))}if(m){var q=a.o;q.G=(0,window.isNaN)(a.F)?(0,window.isNaN)(a.G)?l.info.startTime:a.G:a.F;oS(q);a.F=window.NaN}var r=uL(l);a.o.process(r);if((0,window.isNaN)(a.o.F))var w=null;else{var z=a.o;if(z.A.length)if(1==z.A.length){var B=z.A[0];z.A.length=0;var C=B}else{for(var N=0,da=g.la(z.A),Ga=da.next();!Ga.done;Ga=da.next())N+=Ga.value.byteLength;var Da=new window.Uint8Array(N),Ea=0,Me=g.la(z.A);for(Ga=Me.next();!Ga.done;Ga=Me.next()){var Ya=Ga.value;
Da.set(new window.Uint8Array(Ya.buffer,Ya.byteOffset,Ya.byteLength),Ea);Ea+=Ya.byteLength}z.A.length=0;C=new window.DataView(Da.buffer)}else C=null;var Rc=C;if(Rc){var Md=UK(Rc.byteOffset,Rc.byteLength),fg=bL(l.info,l.info.Ua+l.info.gb-a.o.D.length-Rc.byteLength,Rc.byteLength,l.info.g);w=new tL(fg,Rc.buffer,Md,Md,l.ke)}else w=null}}else{var Qb=(0,window.isNaN)(a.F)?(0,window.isNaN)(a.G)?l.info.startTime:a.G:a.F;a.F=window.NaN;if(a.A.Ya&&!wL(l,Qb)){var db=$K(l.info);db.smst=1;a.X("error",db||{})}else a.G=
Qb+xL(l);w=l}var Xb=w;if(!Xb)return[];c=Xb;if(VS(a,c)){var ci=c;if(1==ci.info.na.info.containerType){var Wg=uL(ci),cc=lK(Wg,0,1701671783);if(cc){0==cc.data.getUint32(cc.g)&&cc.skip(4);cK(cc);cK(cc);bK(cc);bK(cc);bK(cc);bK(cc);var rj=new window.Uint8Array(new window.ArrayBuffer(cc.size-cc.o)),sj=new window.Uint8Array(cc.data.buffer,cc.offset+cc.o,cc.size-cc.o);rj.set(sj);cc.o=cc.size;var nd=cc.offset,tj=String.fromCharCode.apply(String,new window.Uint8Array(rj.buffer)),Wk=kK(tj);var Ne=Wk?new iK(Wk,
nd):null}else Ne=null}else{var mr=new dL(uL(ci)),dra=mr.g;mr.g=0;var O8=null;if(fL(mr,[408125543,307544935,29555,26568,17543])){var sta=iL(mr,!0);var tta=String.fromCharCode.apply(String,pL(mr,sta));var P8=kK(tta);O8=P8?new iK(P8):null}mr.g=dra;Ne=O8}ci.o=Ne;if(c.o){a.C=c.o;a.N=!!a.o;var Q8=c.info,R8=a.C;Q8.wa=R8.o;Q8.B=R8.A;var S8=a.J,T8=a.C;S8.wa=T8.o;S8.B=T8.A}}a.A.Nh&&VS(a,c)&&zK(uL(c),1701671783);var Tj=c;if(a.C){if(Tj.info.g){a.N=!1;a.I=null;var Jr=a.C;if(a.o){var U8=lS(a.o),V8=a.o;V8.F=window.NaN;
V8.J=0;var DO=U8.startTime;var W8=U8.duration}else{if(1==Tj.info.na.info.containerType){for(var X8=Tj.info.na.g,EO=window.NaN,Nw=window.NaN,Ow=0,Y8=new window.DataView(Tj.g);qK(Y8,Ow);){var Bl=rK(Y8,Ow);1936286840==Bl.type?Nw=vK(Bl):1836476516==Bl.type?Nw=oK(Bl):1952867444==Bl.type&&(0,window.isNaN)(EO)&&(EO=uK(Bl));Ow=sK(Bl.type)?Ow+8:Ow+Bl.size}!Nw&&X8&&(Nw=pK(X8));var ED=EO/Nw}else{var Uj=new dL(uL(Tj));var uta=Tj.ke?Uj:new dL(new window.DataView(Tj.info.na.g.buffer));var vta=rL(uta),FO=Uj.g;Uj.g=
0;if(sL(Uj))if(hL(Uj,231)){var wta=mL(Uj)*vta/1E9;Uj.g=FO;ED=wta}else Uj.g=FO,ED=window.NaN;else Uj.g=FO,ED=window.NaN}DO=ED||Tj.info.A;W8=xL(Tj)}var $8=WS(Jr,DO,W8,!1);a.X("segmentinfo",$8);var FD=Jr.g["Cuepoint-Type"]?new hK((0,window.parseFloat)(Jr.g["Cuepoint-Playhead-Time-Sec"])||0,(0,window.parseFloat)(Jr.g["Cuepoint-Total-Duration-Sec"])||0,Jr.g["Cuepoint-Context"]):null;FD&&(FD.Re+=DO,a.X("cuepoint",FD,Jr.o));var a9=$8}else{if(a.N&&!(0,window.isNaN)(a.o.F)){var GO=WS(a.C,lS(a.o).startTime,
a.C.G,!0);a.I=GO;a.X("placeholderinfo",GO);a.N=!1;var b9=GO}else b9=null;a9=b9}var c9=a9}else c9=null;var HO=c9,d9=c;if(a.A.Id)if(HO){cL(d9.info,HO);for(var e9=g.la(b.info.g),IO=e9.next();!IO.done;IO=e9.next())cL(IO.value,HO)}else a.I&&cL(d9.info,a.I);c.info.g&&(a.C=null)}var Pw=c;if(a.A.lm&&!a.L.we()&&(0==Pw.info.Ua||a.B)&&1==Pw.info.na.info.containerType&&3==Pw.info.type&&!yL(Pw)&&Pw.info.duration&&!a.A.ka){var f9=c;a.D+=1E3*(xL(f9)-f9.info.duration);if(a.O&&Math.abs(a.D-a.O.D)>=a.A.Bf){var Yn=
c,JO=(a.O.D-a.D)/1E3,g9=xL(Yn)+JO,xta=new window.DataView(Yn.g),h9=nK(xta,1936286840);var KO=h9?vK(h9):window.NaN;if((0,window.isNaN)(KO)){var i9=Yn.info.na.g,yta=new window.DataView(Yn.g),j9=nK(yta,1836476516);KO=j9?oK(j9):i9?pK(i9):window.NaN}var GD=XS(a,Yn,g9*KO);if(GD&&GD.length){var LO=$K(Yn.info);LO.fds=g9.toFixed(3);LO.com=a.D.toFixed(3);a.X("timestamprewrite",LO);a.G+=JO;a.D+=1E3*JO}return GD?GD:YS(a,Yn)}}if(!a.L.we()&&a.L.info.bd&&a.A.Og){var ID=c,Cl=ZS(a,ID);if(Cl){var MO=lK(Cl,0,1718909296),
NO=lK(Cl,0,1836019574),JD=lK(Cl,0,1701671783),OO=lK(Cl,0,1836019558);if(MO&&NO&&OO){for(var m9=xK(Cl,NO),PO=xK(Cl,OO),n9=NO.size,o9=g.la(PO),Zn=o9.next();!Zn.done;Zn=o9.next()){var QO=Zn.value;1886614376==QO.type&&(m9.push(QO),n9+=QO.size)}var p9=MO.size+n9+OO.size;JD&&(p9+=JD.size);var Qw=new dK(p9);fK(Qw,MO);gK(Qw,1836019574,m9);JD&&fK(Qw,JD);var q9=g.la(PO);for(Zn=q9.next();!Zn.done;Zn=q9.next()){var KD=Zn.value;1886614376==KD.type&&(KD.type=1936419184,KD.data.setUint32(KD.offset+4,1936419184))}gK(Qw,
1836019558,PO);var r9=Qw.data.buffer}else r9=null;var s9=r9;var RO=s9?$S(a,Cl,s9,ID):YS(a,ID)}else RO=YS(a,ID)}else{if(a.A.ib&&a.L.we()&&(0==c.info.Ua||a.B)&&1==c.info.na.info.containerType){var LD=c,zta=LD.info.na.index.Oq(LD.info.wa),u9=XS(a,LD,zta);var v9=u9?u9:YS(a,LD)}else v9=[c];RO=v9}return RO};
WS=function(a,b,c,d){return new XJ(a.o,b,c,a.ingestionTime,"sq/"+a.o,void 0,void 0,d)};
VS=function(a,b){return!a.L.we()&&3==b.info.type&&0==b.info.Ua&&(1==b.info.na.info.containerType||2==b.info.na.info.containerType)};
YS=function(a,b){if(a.B&&a.B!=b){var c=[a.B,b];a.B=null;return c}return[]};
XS=function(a,b,c){var d=ZS(a,b);return d?(c=nka(d,c,a.Y,a.A.uc))?$S(a,d,c,b):null:null};
$S=function(a,b,c,d){b=yK(b);a.B&&(b-=a.B.range.length,a.B=null);a=vL(d,b);a[0].g=c;a[0].range=UK(0,c.byteLength);a[0].A=UK(0,c.byteLength);d=a[0];c=new window.DataView(c);c=!!lK(c,0,1836019574);d.ke=c;return a};
ZS=function(a,b){if(a.B){var c=a.B,d=new window.Uint8Array(c.range.length+b.range.length);d.set(new window.Uint8Array(c.g,c.range.start,c.range.length));d.set(new window.Uint8Array(b.g,b.range.start,b.range.length),c.range.length);c=new window.DataView(d.buffer);yK(c);return c}c=uL(b);if((d=yK(c))&&d<c.byteLength)return c;a.B=b;return null};
aT=function(){this.g=this.o=!1};
bT=function(a,b){this.aa=a;this.Sa=b;this.A=[];this.o=new QS(a,b);this.B=this.g=null;this.O=0;this.I=b.info.g;this.J=this.G=!1;this.F=new aT;this.N=0;this.D=b.pd();this.C=-1;this.L=0};
cT=function(a,b){a.A.push(b);a.g=g.bb(b.info.g)};
eT=function(a,b){for(;a.A.length&&6==a.A[0].state;){var c=a.A.shift();dT(a,c);var d=c.timing;a.O=(d.D-d.o)/1E3;a.G||(c=c.info,a.L=Math.max(a.L,Math.max(0,c.g[c.g.length-1].o-b)))}a.A.length&&OS(a.A[0])&&!XK(a.A[0].info.g[0])&&dT(a,a.A[0])};
dT=function(a,b){if(OS(b)){b.O=!0;var c=b.o,d=c.A;c.A=[];c.B=g.bb(d).info;(0,g.H)(d,(0,g.A)(a.Y,a,b))}};
hT=function(a,b){a.Sa.Bd();a.L=0;var c=fT(a,b);if(0<=c)return c;a.g=a.Sa.fh(b).g[0];gT(a)&&(a.B=null);a.N=0;return a.g.startTime};
Dma=function(a,b){var c=a.o.g.length?SS(a.o).info:a.B;if(b&&c&&!c.g){var d=c.wa;c=[];for(var e=g.la(a.A),f=e.next();!f.done;f=e.next())f=f.value,(0,g.Ik)(f.info.g,function(a){return a.wa==d})?c.push(f):iT(a,f);
a.A=c;a.g=a.A.length?g.bb(g.bb(a.A).info.g):null}else jT(a)};
kT=function(a){var b=0;(0,g.H)(a.A,function(a){var c=b;a=a.o&&a.o.length?vma(a.o):XL(a.info);b=c+a},a);
return b+=Cma(a.o)};
lT=function(a,b){var c=!!a.Sa.info.video&&!!a.B&&!a.B.g,d=1<=b&&c;Bma(a.o,d);a.G=d;Dma(a,2<=b&&c)};
mT=function(a){a.F.o||a.F.start();lT(a,0);gT(a)&&(a.B=null)};
gT=function(a){return!!a.B&&a.B.B};
nT=function(a){var b=[];a.B&&b.push(a.B);b=g.rb(b,TS(a.o));(0,g.H)(a.A,function(a){(0,g.H)(a.info.g,function(c){a.O&&(b=(0,g.Id)(b,function(a){return!(a.na!=c.na?0:a.range&&c.range?a.range.start+a.Ua>=c.range.start+c.Ua&&a.range.start+a.Ua+a.gb<=c.range.start+c.Ua+c.gb:a.wa==c.wa&&a.Ua>=c.Ua&&(a.Ua+a.gb<=c.Ua+c.gb||c.g))}));
3!=c.type&&4!=c.type||b.push(c)})});
a.g&&!ska(a.g,g.bb(b),a.g.na.we())&&b.push(a.g);return b};
oT=function(a){if(!a.g||!a.g.gb)return!1;var b=nT(a);if(!b.length)return!1;for(var c=1;c<b.length;c++){var d=1E-6>=Math.abs(b[c].A-b[c-1].o),e=b[c].A==b[c-1].A&&b[c].o==b[c-1].o&&b[c].wa==b[c-1].wa&&b[c].na==b[c-1].na&&b[c-1].Ua+b[c-1].gb==b[c].Ua;if(!(a.aa.Gc?d||e:ZK(b[c-1],b[c])))return!1}return!0};
fT=function(a,b){if(oT(a)){a:{var c=nT(a);c=g.la(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.A<=b&&d.startTime+d.duration>=b){c=d;break a}c=null}if(c)return c.startTime}return window.NaN};
pT=function(a){return(0,g.Ik)(a.A,function(a){return 4<=a.state})};
qT=function(a){return!(!a.g||!a.Sa.Bd()||a.g.na==a.Sa)};
rT=function(a){return qT(a)&&a.g.na.info.g<a.Sa.info.g};
sT=function(a,b,c){return(a=SS(a.o)?SS(a.o).info:a.B)&&!a.B?a.o>b&&a.o<b+c:!1};
jT=function(a){(0,g.H)(a.A,function(a){iT(this,a)},a);
a.A=[];a.g=null};
iT=function(a,b){if(b.O){var c=a.o,d=b.info;c.N=!1;c.I&&(c.X("placeholderrollback",c.I),c.I=null);if(c.o){var e=window.NaN;(0,window.isNaN)(c.F)&&(e=d.g[0].range?d.g[0].A:lS(c.o).startTime);c.o.reset();c.J=c.V;(0,window.isNaN)(e)||(d=c.o,d.G=e,oS(d))}c.C=null}b.dispose()};
tT=function(a){return!!a.g&&-1!=a.g.wa&&a.g.wa<a.Sa.index.yg()};
uT=function(a){if(a.g){var b=SS(a.o);b&&3==b.info.type&&-1==a.g.wa&&(a.g.wa=b.info.wa)}};
Ema=function(a,b){this.g=a;this.o=b;this.A=1};
vT=function(a,b,c,d){d/=a.A;var e=YM(a.g)+1/ZM(a.g);var f=Math.max(.9*(d-3),WM(a.g)+a.g.policy.g*e);c=f/e*a.o.im/(b+c);c=Math.min(c,d);c=Math.max(a.o.lk,Math.min(a.o.kk,c));return Math.min(a.o.G,Math.max(65536,Math.ceil(c*b)))};
wT=function(a,b){var c=a.o.jk;if(a.o.Oc)return b;var d=1E-9+WM(a.g)+c*YM(a.g);c=b*Math.min(1,c/(b*d));a.o.Ab&&(d=((RM(a.g.o,.98)||0)-a.o.Ib)/(a.o.wm-a.o.Ib),d=Math.max(0,Math.min(1,d)),c*=1-a.o.Ab*d);return c};
xT=function(a){return wT(a,ZM(a.g))};
yT=function(a){return xT(a)/a.A};
Fma=function(a,b,c,d){this.aa=a;this.A=b;this.G=c;this.J=d;this.o=this.N=this.D=null;this.F="i";this.O=-1;this.g=this.B=null;this.C=[];this.Y={};this.V=this.ea=0;this.da=null;this.L=this.I=!1;this.ba=0};
Gma=function(a,b,c){"m"==c&&a.D.isLocked()&&!b.isLocked()&&(c="a");a.I=a.I||!1;if("m"==c&&b.isLocked())return a.F=c,zT(a,b),AT(a),BT(a),a.L|=a.o!=a.g,a.o=a.g,new fS(a.B,a.o,c);var d=AJ(a.D,b);if("m"==a.F&&a.D.isLocked()&&d)return null;"r"!=c||d||(a.O=-1);zT(a,b);BT(a);if("r"==c&&a.g==a.o){if(d)return null;a.o=a.g;return new fS(a.B,a.g,c)}a.F=c;CT(a);return null};
DT=function(a){return!!a.V&&1E4>=(0,g.ZG)()-a.V};
ET=function(a){return a.D.isLocked()};
CT=function(a){a.o&&a.g&&FT(a,a.o.info)<FT(a,a.g.info)&&(a.I|="r"==a.F,a.I=a.A.Hc?a.I|("v"==a.F&&a.g.info.video.width>a.o.info.video.width):a.I|a.g.info.video.width>1.6*a.o.info.video.width)};
GT=function(a){var b=a.F;a.F="a";a.O=(0,g.ZG)();a.I=!1;return new fS(a.N,a.o,b)};
zT=function(a,b){a.D=b;var c=a.J.videoInfos;if(!ET(a)&&(c=(0,g.Id)(c,function(a){return a.g>this.A.F||4<this.G.g[a.id].B.g?!1:!0},a),DT(a))){c=(0,g.Id)(c,function(a){return a.id!=this.da.id},a);
var d=(0,g.Id)(c,function(a){a=oJ(a);return"140"==a||"134"==a||"243"==a});
d.length&&(c=d)}c.length||(c=a.J.videoInfos);d=(0,g.Id)(c,b.B,b);d.length||(d=[c[0]]);d.sort((0,g.A)(function(a,b){return FT(this,a)-FT(this,b)},a));
for(c=1;c<d.length;c++){var e=d[c-1],f=d[c];e.video.width>f.video.width?(g.ob(d,c),c--):FT(a,e)*a.A.g>FT(a,f)&&(g.ob(d,c-1),c--)}c=d[d.length-1];a.C=d;rka(a.A,c)};
Hma=function(a,b){if(b)a.B=a.G.g[b];else{var c=g.eb(a.J.g,function(a){return!!a.Sc&&a.Sc.isDefault});
c=c||a.J.g[0];a.B=a.G.g[c.id]}AT(a)};
AT=function(a){if(!a.B.info.Sc&&(a.B=a.G.g[a.J.g[0].id],1<a.J.g.length)){if(a.D.isLocked())var b=240>a.D.g;else{for(b=0;b+1<a.C.length&&"tiny"==a.C[b].video.quality;)b++;var c=yT(a.aa)/a.A.g;b=FT(a,a.B.info)+FT(a,a.C[b])>c}b&&(a.B=a.G.g[a.J.g[1].id])}};
BT=function(a){if(ET(a))a.g=a.G.g[a.C[a.C.length-1].id];else{for(var b=Math.min(a.ea,a.C.length-1),c=yT(a.aa),d=FT(a,a.B.info),e=c/a.A.A-d;0<b&&!(FT(a,a.C[b])<=e);b--);c=c/a.A.g-d;a.A.Ng&&(e=a.aa,d=wT(e,$M(e.g))/e.A/a.A.g-d,c=Math.min(c,d));for(;b<a.C.length-1&&!(FT(a,a.C[b+1])>=c);b++);a.g=a.G.g[a.C[b].id];a.ea=b;CT(a)}};
Ima=function(a){var b=a.A.A,c=yT(a.aa)/b-FT(a,a.B.info);b=g.fb(a.C,function(a){return FT(this,a)<c},a);
0>b&&(b=0);a.ea=b;a.g=a.G.g[a.C[b].id]};
FT=function(a,b){if(!a.A.aa)return b.g;if(!a.Y[b.id]){var c=a.G.g[b.id].index.zx(a.ba,a.A.aa);c=b.A&&a.o&&a.o.index.Sb()?c||b.A:c||b.g;a.Y[b.id]=c}return a.Y[b.id]};
Jma=function(){this.g=this.o=0;this.A=[]};
HT=function(a,b){return(a[b]<<24)+(a[b+1]<<16)+(a[b+2]<<8)+a[b+3]};
IT=function(a,b,c,d){this.o=a;this.D=b;this.C=d;this.B=c;this.g=0};
Kma=function(a,b){this.o=a;this.G=b;this.D=this.C=this.g=null;this.B=this.A=window.NaN;this.F=!1};
JT=function(a,b,c){b=(0,g.G)()/1E3-(a.G.o()||0)-b.C-a.o.sm;if(0>=b)return window.NaN;var d=c.na.index;if(!cM(d,c.wa,!0))return window.NaN;var e=d.getDuration(c.wa);c=d.mf(c.wa);a=Math.min(c+b,c+e-a.o.rm);return a<=c?window.NaN:a};
Lma=function(){this.g=[];this.o=g.WJ};
KT=function(a,b){for(var c=[],d=g.la(a.g),e=d.next();!e.done&&!(e=e.value,e.contains(b)&&c.push(e),e.start>b);e=d.next());return c};
Mma=function(a){return a.g.slice(LT(a,0x7ffffffffffff),a.g.length)};
LT=function(a,b){var c=Ab(a.g,function(a){return b-a.start||1});
return 0>c?-(c+1):c};
MT=function(a,b){for(var c=void 0,d=g.la(a.g),e=d.next();!e.done;e=d.next())if(e=e.value,e.contains(b)&&(void 0==c||e.end<c)&&(c=e.end),e.start>b&&(void 0==c||e.start<c)){c=e.start;break}return c};
NT=function(a,b,c,d){g.L.call(this);this.B=window.NaN;this.I=!1;this.G=null;this.J=this.L=this.C=!1;this.aa=a;this.Y=b;this.N=c;this.V=d;this.O=new g.Ht(this.A,250,this);g.M(this,this.O);this.F=new g.Ht(this.A,0,this);g.M(this,this.F);this.o=[];this.g=new Lma};
OT=function(a,b){a.A();var c=a.g;if(1<b.length&&b.length>c.g.length)c.g=c.g.concat(b),c.g.sort(c.o);else for(var d=g.la(b),e=d.next();!e.done;e=d.next())e=e.value,!c.g.length||0<c.o(e,c.g[c.g.length-1])?c.g.push(e):Eb(c.g,e,c.o);a.B=window.NaN;a.A()};
Nma=function(a,b){var c=(0,g.Id)(a.g.g,function(a){return a.namespace==b});
a.D.apply(a,c);return c};
Oma=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.o.indexOf(e)&&(a.o.push(e),c.push([1,e]))}return c};
Pma=function(a,b){var c=[];if(!b.length)return c;b.sort(g.WJ);for(var d=0;d<b.length;d++){var e=b[d];a.o.splice(a.o.indexOf(e),1);c.push([2,e])}return c};
PT=function(a,b,c,d,e){g.xG.call(this);this.L=a;this.A=b;this.D=c;this.ib=e||null;this.g=this.B=null;this.J=new Ema(a,b);this.o=null;this.F=new Fma(this.J,b,this.D,d);this.da=this.Ka=window.NaN;this.Na=new g.Ht(this.je,void 0,this);this.C=this.Ra=window.NaN;this.O=!1;this.I=window.NaN;this.Ya=0;this.ba=this.G=!1;this.ob={};this.aa="";this.ha=this.ka=0;this.Ta=b.sg?new Jma:null;this.Aa=new OM(5);this.ra=!1;this.Fa={};this.sa="";this.pa=window.NaN;this.V=!1;a=this.A;this.N=a.Va&&this.D.o?new Kma(a,
this.Aa):null};
QT=function(a,b){b=b||a.g&&a.g.g&&a.g.g.startTime||a.C;var c=a.g;var d=a.F;if(d.A.aa){var e=d.g&&d.g.index.gh(b)||0;d.ba!=e&&(d.Y={},d.ba=e,zT(d,d.D))}!ET(d)&&-1<d.O&&(0,g.ZG)()-d.O<1E3*d.A.rg||(d.V&&!DT(d)&&(d.V=0,zT(d,d.D)),AT(d),BT(d),d.L|=d.g!=d.o);d.g.index.Sb()||(d.ba=-1);d=d.g;c.Sa!=d&&(c.Sa=d);c=a.B;d=a.F.B;c.Sa!=d&&(c.Sa=d)};
TT=function(a){0==a.C&&(a.g.Sa.o||RT(a,a.g,!0),a.B.Sa.o||RT(a,a.B,!0));a.seek(a.C);ST(a,"gv")};
g.UT=function(a,b){var c=a.g.Sa.info.mimeType;b.g=b.A.addSourceBuffer(a.B.Sa.info.mimeType);b.L?b.o=b.A.addSourceBuffer(c):b.o=new FK;a.o=b;a.B.J=!1;a.g.J=!1;a.B.B=null;a.g.B=null;a.resume();PK(b)&&(b.g.addEventListener("updateend",(0,g.A)(a.je,a),!1),b.o.addEventListener("updateend",(0,g.A)(a.je,a),!1),b.g.addEventListener("error",(0,g.A)(a.po,a,!0),!1),b.o.addEventListener("error",(0,g.A)(a.po,a,!1),!1));ST(a,"msa");g.EP("msa",void 0,"video_to_ad");JP.measure&&JP.getEntriesByName("mark_vta").length&&
JP.measure("measure_vta_to_msa","mark_vta");a.fa&&a.Y&&(c=g.x("yt.scheduler.instance.enablePriorityThreshold"))&&c(1);a.je();a.Ra=g.ZE((0,g.A)(a.je,a),1E4)};
WT=function(a){a.o&&a.o.g&&a.o.g.removeEventListener&&(a.o.g.removeEventListener("updateend",(0,g.A)(a.je,a),!1),a.o.o.removeEventListener("updateend",(0,g.A)(a.je,a),!1),a.o.g.removeEventListener("error",(0,g.A)(a.po,a,!0),!1),a.o.o.removeEventListener("error",(0,g.A)(a.po,a,!1),!1));a.o=null;a.G=!0;VT(a)};
XT=function(a){a.o&&MK(a.o)&&WT(a)};
ZT=function(a,b,c){if(!b.F.o||!c.remove)return!1;if(c.updating)return!0;if(!b.F.g&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.F.g=!0;b.F.reset();a.X("seekelementrequired");return!1};
aU=function(a,b,c){if(a.G&&!bN(a.L))return!1;if(a.D.o){if(0<b.A.length&&!a.A.fa)return!1;if(b.D)return!(0,window.isNaN)(a.pa)}if(!(b.g||a.D.o&&a.A.fa&&b.D)){if(!b.Sa.Bd())return a.A.D&&!b.Sa.o&&RT(a,b,!1),!1;hT(b,a.C)}var d=b.A.length+c.A.length;(pT(b)||pT(c)||a.D.isLive&&(!a.A.fa||!b.A.length))&&--d;if(2<=d+1)return!1;d=b.g;if(!d)return!0;if(!UL(d.na.B))return!1;4==d.type&&d.na.Bd()&&(b.g=g.bb(d.na.Go(d)),d=b.g);!d.B&&!d.na.zi(d)||d.na.info.audio&&4==d.type?a=!1:rT(b)&&!a.A.Y?a=!0:(!(c=d.B||kT(b)+
kT(c)>a.A.ba||!!(c.g&&!c.g.B&&c.g.o<d.o)&&(!a.D.o||c.g.o&&d.o))&&(c=3==d.type)&&(d=d.o,b=$T(a,b,!0),!ET(a.F)&&0<a.A.N&&(c=((0,g.ZG)()-a.Ya)/1E3,b=Math.min(b,a.A.N+a.A.ub*c)),b=a.C+b,a.A.Ka?(c=Math.min(b,Qma(a)+a.A.Ka),c!=b&&a.pi("mrl","ori."+b+";mod."+c,!0),a=c):a=b,c=d>a),a=c?!1:!0);return a};
bU=function(a,b,c){if((!a.o||LK(a.o)||PK(a.o))&&!a.O&&a.F.I){var d=a.C;a=a.J;c=vT(a,b.Sa.info.g,c.Sa.info.g,0);var e=WM(a.g)+c*YM(a.g)+c/ZM(a.g);d+=Math.max(e,e+a.o.Fa-c/b.Sa.info.g);a:{if(b.A.length){if(b.A[0].info.g[0].startTime<=d)break a;jT(b)}a=b.o;for(c=a.g.length-1;0<=c;c--)a.g[c].info.startTime>d&&a.g.pop();b.A.length?b.g=g.bb(g.bb(b.A).info.g):b.o.g.length?b.g=SS(b.o).info:b.g=b.B;b.g&&d<b.g.startTime&&(b.N=0,b.g=b.Sa.fh(d,!0).g[0])}}};
eU=function(a,b,c){aU(a,b,c);var d=b.g;if(b.D)a.ra=!0,d=b.Sa.fh(window.Infinity),d.A=a.pa;else if(b.g.na.Bd()){!rT(b)||a.A.Y||a.D.o||(bU(a,b,c),b.g||hT(b,a.C));d=b.g;var e=d.o-a.C,f=!d.range||0==d.gb&&0==d.Ua?0:d.range.length-(d.Ua+d.gb);if(qT(b)){var k=Math.min(a.A.ra,.5*$T(a,b,!0));k=rT(b)||e<=k}else k=!1;k&&0==f&&(a.D.o?d.na=b.Sa:(f=d.startTime+cU,d.gb&&(f+=d.duration),hT(b,f),d=b.g));d.na.we()?(c=vT(a.J,d.na.info.g,c.Sa.info.g,e),e=qT(b),c=d.na.yi(d,c),c.range&&1<c.g.length&&(e||c.o.g?c=d.na.yi(d,
c.g[0].gb):(e=c.g[c.g.length-1],f=e.gb/c.range.length,!e.g&&.4>f&&(c=d.na.yi(d,c.range.length-e.gb)))),d=c):d=d.na.rl(d)}else d.na.we()?(c=vT(a.J,b.Sa.info.g,c.Sa.info.g,0),d=d.na.yi(d,c)):d=d.na.rl(d);cT(b,dU(a,d))};
dU=function(a,b){if(3==b.g[b.g.length-1].type){a:{var c=a.F;var d=b.g[0].na;if(d.info.video){if(c.o!=d){c.o=d;c=GT(c);break a}}else c.N=d;c=null}c&&a.X("videoformatchange",c)}c=XL(b);d=a.L;var e=a.J,f=Math.min(2.5,WM(e.g));e=xT(e);c=new wma(d,c,c-f*e,a.A.tm&&a.ra,XK(b.g[0]));a.A.gd&&(c.F=[]);c=new ES(a.A,b,c,a.Fa);d=(0,g.A)(a.eR,a);c.I=d;c.start(Math.max(0,b.g[0].A-a.C));b.g[0].na.info.video&&(d=FS(c))&&(a.sa=d.substr(0,d.indexOf(".")));return c};
fU=function(a){if((0,window.isNaN)(a.Ka)){var b=(0,g.A)(a.je,a);a.Ka=g.$E(b,0)}};
gU=function(a){if((0,window.isNaN)(a.da)){var b=(0,g.A)(function(){this.da=window.NaN;this.je()},a);
a.da=g.$E(b,1E3)}};
Rma=function(a){if(a.D.B)return!1;var b;if(b=a.O){if(b=0<a.A.da&&a.g&&a.B){b=a.J;var c=a.g,d=a.B,e=a.A.da;if(0==c.A.length&&0==d.A.length)b=!0;else{var f=0,k=TS(c.o).concat(TS(d.o));k=g.la(k);for(var l=k.next();!l.done;l=k.next())f+=l.value.gb;c=c.I+d.I;f/=c;b=f>e?!0:c*(e-f)/yT(b)<e}b=!b}b||(b=a.g,b=0<b.A.length&&1==b.o.g.length&&RS(b.o).info.C<b.O)}if(b)return!0;if(!a.ba||!a.A.J||10>a.C||360<a.g.Sa.info.video.o)return!1;b=sT(a.g,a.C,a.A.J)||sT(a.B,a.C,a.A.J);return(0<a.g.A.length||0<a.B.A.length||
aU(a,a.g,a.B)||aU(a,a.B,a.g))&&b};
iU=function(a,b,c,d){if(c.updating)return!0;var e=RS(b.o);if(!e)return!1;!b.B||b.B.g||YK(b.B,e.info)||(b.B=null,LK(a.o)&&c.abort(),c.g=null);var f=a.D.isLive&&yL(e);a.A.Ra&&a.D.B&&0==e.info.Ua&&1==e.info.na.info.containerType&&(null==c.g?null!=b.B&&b.B.na==e.info.na:c.g==e.info.na.g)&&(zK(uL(e),1836019574),zK(uL(e),1718909296),e.ke=!1);if(!a.D.B||0==e.info.Ua)if(f||a.D.o||e.ke)c.g=null;else if(e.info.na.Bd(),f=e.info.na.g,null==f||c.g==f?f=!1:(hU(a,c,f),c.g=f,a.X("initsegment",c.g),f=c.updating),
f)return!0;f=$T(a,b,!1);f=a.C+f;null!==d&&0<=d&&(f=Math.min(f,d));d=f;if(a.N)a:if(a.N.g&&b.Sa.info.audio){if((f=RS(b.o))&&(f=f.o)&&null!=f.B){f=f.B-1;break a}f=-1}else f=window.Infinity;else f=window.Infinity;if(b.G)d=RS(b.o).range;else{var k=b.o;if(!k.g.length||k.g[0].info.A>=d)d=null;else{var l=k.g[0].ke?0:k.g[0].range.start;if(l>f)d=null;else{var m;for(m=1;m<k.g.length;m++){var n=k.g[m].range.start>f,q=k.g[m].g!=k.g[m-1].g;if(k.g[m].info.A>d||n||q||k.A.ib)break}m--;d=new g.SK(l,Math.min(k.g[m].range.end,
f))}}}if(!d)return!1;f=new window.Uint8Array(e.g,d.start,d.length);if(a.Ta&&e.info.na.info.video&&1==e.info.na.info.containerType&&(k=a.Ta,0==e.info.Ua&&(k.o=0,k.g=0,k.A.length=0),!((0,window.isNaN)(k.o)||8>f.length))){l=new window.DataView(f.buffer,f.byteOffset);for(m=!1;!m;)if(k.o==k.g)a:if(m=k,n=f.length,m.o+7>=n){for(q=m.o;q<n;q++)m.A.push(l.getUint8(q));m=!0}else{if(0<m.A.length){for(q=0;8>m.A.length;q++)m.A.push(l.getUint8(q));var r=HT(m.A,0);q=HT(m.A,4);m.A.length=0}else r=l.getUint32(m.g),
q=l.getUint32(m.g+4);if(1836019558==q||1836019574==q||1718909296==q||1936286840==q)m.o+=r,m.g=m.o;else if(1835295092==q)m.o+=r,m.g+=8;else{m.o=window.NaN;m=!0;break a}m=m.g>=n}else a:if(m=k,n=f.length,m.g+5>=n){for(q=m.g;q<n;q++)m.A.push(l.getUint8(q));m=!0}else{if(0<m.A.length){for(q=0;6>m.A.length;q++)m.A.push(l.getUint8(q));q=HT(m.A,0);12==q&&6==m.A[4]&&45==m.A[5]&&l.setUint8(m.g+5,63);m.g+=q+4;m.A.length=0}for(;m.g<m.o&&m.g+5<n;){q=l.getUint32(m.g);if(0>=q){m.o=window.NaN;m=!0;break a}12==q&&
6==l.getUint8(m.g+4)&&45==l.getUint8(m.g+5)&&l.setUint8(m.g+5,63);m.g+=q+4}m=m.g>=n}(0,window.isNaN)(k.o)||(k.o-=f.length,k.g-=f.length)}k=!1;3!=e.info.type||1!=e.info.na.info.containerType&&2!=e.info.na.info.containerType||(k=1==e.info.na.info.containerType&&a.A.Sp&&!b.J&&0==e.info.Ua&&0<e.info.startTime)&&wL(e,0);f=hU(a,c,f);if(0!=f){if(2!=f)if(e.info.na.info.video?(l=a.A,l.B=Math.floor(.8*l.B),l.I=Math.floor(.8*l.I)):(l=a.A,l.C=Math.floor(.8*l.C),l.ea=Math.floor(.8*l.ea)),l.o=Math.floor(.8*l.o),
1==f&&c.remove&&!c.updating){f=!1;l=c.buffered.length;for(m=0;!f&&m<l;m++)c.buffered.start(m)>e.info.o&&(c.remove(c.buffered.start(m),c.buffered.end(l-1)),f=!0);f||c.remove(0,e.info.startTime-5)}else mT(b);f=!1}else f=!0;if(!f)return!1;b.J=!0;if(k)wL(e,e.info.startTime),c.abort(),c.g=null;else{f=b.o;for(k=[];f.g.length&&(f.g[0].range.end>d.end?(m=vL(f.g[0],d.end-f.g[0].range.start+1),l=m[0],f.g[0]=m[1]):l=f.g.shift(),k.push(l),l.range.end!=d.end););k.length&&(0,g.H)(k,b.ba,b)}e.ke&&e.info.na.g&&(c.g=
e.info.na.g,a.X("initsegment",c.g));return!0};
jU=function(a,b,c){Tka(a.D,b,c)&&a.A.ha&&a.V&&c&&(a.V=!1,g.$E(function(){a.ma()||a.X("seekplayerrequired",b.startTime+.1,!0)},0))};
hU=function(a,b,c){try{PK(a.o)?b.appendBuffer(c):b.append(c)}catch(d){if(11==d.code)return kU(a,!1,"html5.invalidstate",{updating:""+ +b.updating,mrs:a.o.A.readyState}),2;if(22!=d.code&&0!=d.message.indexOf("Not enough storage"))return g.TE(d),4;a.A.Hd&&a.pi("quex","br."+RQ(b.buffered).replace(/,/g,"_"));return 1}return MK(a.o)?3:0};
lU=function(a,b){b.o.subscribe("error",a.cQ,a);b.o.subscribe("timestamprewrite",a.gQ,a);var c=(0,g.A)(a.dQ,a,b);b.o.subscribe("placeholderinfo",c,void 0);c=(0,g.A)(a.eQ,a,b);b.o.subscribe("placeholderrollback",c,void 0);c=(0,g.A)(a.fQ,a,b);b.o.subscribe("segmentinfo",c,void 0);b==a.g&&b.o.subscribe("cuepoint",a.bQ,a)};
$T=function(a,b,c){if(a.G)return 1;var d=b.Sa.info.audio?a.A.C:a.A.B;!a.A.Y&&ET(a.F)&&(d=Math.max(d,b.Sa.info.audio?a.A.ea:a.A.I));c&&(d+=a.A.ba);c=ET(a.F)?b.g?b.g.na.info.g:b.Sa.info.g:b.I;d/=c;0<a.A.Aa&&a.o&&LK(a.o)&&(b=b.Sa.info.video?a.o.o:a.o.g)&&!b.updating&&(c=MQ(b.buffered,a.C),0<=c&&(b=a.C-b.buffered.start(c),d+=Math.max(0,Math.min(b-a.A.Aa,a.A.Cf))));0<a.A.o&&(d=Math.min(d,a.A.o));a.A.bb&&!ET(a.F)&&(b=a.F,b=FT(b,g.bb(b.C))+FT(b,b.J.g[0]),c=a.A.bb*(b/xT(a.J)),c<d&&25>c&&a.pi("bwcapped","1",
!0),c=Math.max(c,25,2.5*a.A.G/b),d=Math.min(d,c));return d};
Qma=function(a){if(!a.ib)return window.Infinity;var b=(0,g.Id)(a.ib.g.g,function(a){return"ad"==a.namespace});
b=g.la(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.C)return c.start/1E3;return window.Infinity};
mU=function(a,b,c){var d=(0,g.A)(a.X,a,"error");a=a.A.Ta?(0,g.A)(a.pi,a,"pathprobe"):null;(new IT(b,c,a,d)).send()};
nU=function(a,b,c,d){if(b.Sa.Bd())if(d){var e=NQ(d.buffered,c),f=window.NaN,k=b.B;k&&(f=NQ(d.buffered,k.na.index.mf(k.wa)));if(e==f&&oT(b))return c;d=fT(b,c);if(0<=d)return d;lT(b,b.Sa.we()?1:2);b.Sa.info.video&&b.B&&!b.B.g&&!Ama(b.o)&&b.Sa.we()&&(d=b.B,b.o.g.length&&(d=SS(b.o).info),d=b.g||d,d=d.na.yi(d,d.range.length-(d.gb+d.Ua)),cT(b,dU(a,d)));if((0,window.isNaN)(e))return hT(b,c);hT(b,e+cU)}else hT(b,c);else a.A.D&&!b.Sa.o&&RT(a,b,!1),0!=c&&jT(b);return c};
RT=function(a,b,c){if(a.A.D||!b.Sa.Bd()&&!b.Sa.o&&UL(b.Sa.B))c=b.Sa.xn(a.A,c),(0,g.H)(c,function(a){if("f"!=a.g[0].na.info.o){var c=dU(this,a);!XK(a.g[a.g.length-1])&&cT(b,c)}},a),b.Sa.o=!0};
kU=function(a,b,c,d){a.ma()||(a.X("error",new g.xO(c,b,d)),b&&a.dispose())};
oU=function(a){var b={lct:a.C.toFixed(3),lsk:a.O,lmf:ET(a.F),lbw:ZM(a.L).toFixed(3),lhd:WM(a.L).toFixed(3),lst:(1E9*YM(a.L)).toFixed(3),laa:a.B.B?aL(a.B.B):"",lva:a.g.B?aL(a.g.B):"",lar:a.B.g?aL(a.B.g):"",lvr:a.g.g?aL(a.g.g):"",lvh:a.sa};a.o&&!MK(a.o)&&(b.lab=RQ(a.o.g.buffered),b.lvb=RQ(a.o.o.buffered));return b};
ST=function(a,b,c){a.ob[b]=c?window.performance.timing.navigationStart+c:(0,g.ZG)()};
VT=function(a){a.B&&lT(a.B,0);a.g&&lT(a.g,0)};
pU=function(a,b,c){if(!b||!c)return!0;c=-1!=MQ(c.buffered,a);var d=SS(b.o)?SS(b.o).info.o>=a:!1,e=b.A.length?b.A[0]:null;a=(b=e?e.info.g[0]:b.g)&&b.startTime<=a;return!!(c||d||a)};
Sma=function(a,b){var c=new g.RK;c.ub=a.experiments.o("html5_throttle_rate")||c.ub;a.experiments.g("html5_streaming_xhr")&&(c.O=!0);a.experiments.g("html5_streaming_debug")&&(c.O=!0,c.ka=!0);c.Ng=a.experiments.g("html5_use_long_term_bandwidth_estimator");c.J=a.experiments.o("html5_min_buffer_to_resume");c.Ab=a.experiments.o("html5_variability_discount");c.Ib=a.experiments.o("html5_variability_no_discount_thresh");c.wm=a.experiments.o("html5_variability_full_discount_thresh");a.experiments.o("html5_max_av_sync_drift")&&
(c.Bf=a.experiments.o("html5_max_av_sync_drift"));var d=a.schedule;d.A.o()==d.policy.B?c.N=10:c.N=a.experiments.o("html5_throttle_burst_secs")||c.N;a.experiments.o("html5_min_secs_between_format_selections")&&(c.rg=a.experiments.o("html5_min_secs_between_format_selections"));c.aa=a.experiments.o("html5_local_max_byterate_lookahead");c.fa=a.experiments.g("html5_stop_overlapping_requests");c.Aa=a.experiments.o("html5_min_readbehind_secs");c.Cf=a.experiments.o("html5_min_readbehind_cap_secs");c.da=a.experiments.o("html5_min_startup_smooth_target")||
c.da;c.Lh=a.experiments.g("html5_preload_size_excludes_metadata");c.bb=a.experiments.o("html5_max_readahead_bandwidth_cap");c.uc=a.experiments.g("disable_html5_copy_pre_moof");c.Pg=a.experiments.g("html5_disable_audio_append_cap");c.yc=a.experiments.g("html5_disable_non_contiguous");c.Ka=a.experiments.o("html5_post_interrupt_readahead");c.Hc=a.experiments.g("html5_disable_urgent_upgrade_for_quality");c.Hd=a.experiments.g("html5_log_quota_exceeded");c.sa=a.experiments.o("html5_repredict_misses")||
c.sa;c.sm=a.experiments.o("html5_subsegment_readahead_target_buffer_health_secs");c.ob=a.experiments.o("html5_subsegment_readahead_timeout_secs");c.qm=a.experiments.o("html5_subsegment_readahead_progress_timeout_fraction");c.rm=a.experiments.o("html5_subsegment_readahead_tail_margin_secs");c.Gc=a.experiments.g("disable_html5_new_contiguity_logic");c.V=a.experiments.g("html5_assume_alrs_have_content_length");c.Na=a.experiments.o("html5_fallback_probe_ms");if(xF()||a.experiments.g("dash_html5_safari8_workarounds"))c.ib=
!0;if(qF("trident/")||qF("edge/"))c.o=240;g.ph&&(c.I=41943040);g.XN(a)||!OK()?(c.B=8388608,c.C=524288,c.Jb=5,c.ba=2097152,c.G=1048576,c.lk=1.5,c.kk=15,c.Y=!OK(),c.Qg=!1,c.F=4587520,vF()&&(c.F=786432),c.g*=1.1,c.A*=1.1,c.Ra=!0,c.I=c.B,c.ea=c.C):a.isMobile&&(c.g*=1.3,c.A*=1.3);uF()&&(d="CHROMECAST/ANCHOVY"==a.o.cmodel,c.B=20971520,c.C=1572864,d&&(c.F=812500,c.L=1E3));(d=wO(a))||(d=qF("smart-tv")&&qF("samsung")&&/(J\d{3}|JS\d{3}|JU\d{3})/.test(a.o.cmodel));d&&!a.experiments.g("html5_disable_move_pssh_to_moov")&&
(c.Og=!0);c.Gq=a.C;c.sg=!a.experiments.g("disable_fpa_sei_removal")&&qF("windows nt")&&(b.mi()||b.Pf());b.pd()&&(a.experiments.g("disable_html5_manifestless_delay")||(c.Oc=!0),c.lm=!1,a.experiments.g("html5_manifestless_always")&&(c.Ya=!1,c.ha=!0));a.isAd()&&(c.J=0);d="ULTRALOW"==b.latencyClass||a.experiments.g("html5_treat_latency_low_like_ultra_low")&&b.isLowLatencyLiveStream;(a.experiments.g("html5_streaming_response_mediastream_rewrite_v2")||a.experiments.g("html5_ultra_low_latency_streaming_responses")&&
d)&&b.tb&&b.tb.videoInfos.length&&1==b.tb.videoInfos[0].containerType&&b.pd()&&!g.rF()&&(c.O=!0,c.ka=!0);c.Va=a.experiments.g("html5_enable_subsegment_readahead_v3")||a.experiments.g("html5_ultra_low_latency_subsegment_readahead")&&d;c.Id=(a.experiments.g("html5_manifestless_accurate_sliceinfo")||c.Va)&&b.pd();/^re/.test(b.clientPlaybackNonce)&&(c.Mh=!0,c.Ta=!0);c.pa=b.kh&&!a.experiments.g("disable_rqs");c.gd=c.pa&&/^rqd/.test(b.clientPlaybackNonce);/^pp/.test(b.clientPlaybackNonce)&&(c.Iq=!0,c.Ta=
!0);wO(a)&&!a.experiments.g("html5_disable_move_pssh_to_moov")&&b.ua&&qM(b.ua)&&(c.Ra=!1);a.schedule.policy.A=b.pd()?.5:0;if(d=a.experiments.o("html5_deadzone_multiplier"))c.g*=d,c.A*=d;if(d=a.experiments.o("html5_request_sizing_multiplier"))c.im=d;a.experiments.g("html5_strip_emsg")&&(c.Nh=!0);a.experiments.g("html5_do_not_void_tags")&&(c.xm=!1);c.o=a.experiments.o("html5_max_buffer_duration")||c.o;c.ra=a.experiments.o("html5_max_buffer_health_for_downgrade")||c.ra;c.Fa=a.experiments.o("html5_min_upgrade_health")||
c.Fa;a.experiments.g("disable_html5_streaming_response_timing")&&(c.tm=!1);kN(a.L,vN)&&(c.F=window.NaN);c.D=a.experiments.g("html5_old_load_metadata");return c};
Tma=function(a,b,c){this.url=a;this.interval=b;this.g=c};
Uma=function(a,b){this.message=a;this.number=b;this.g=new FC(5E3,2E4,.2)};
Vma=function(a,b,c,d){this.statusCode=a;this.statusMessage=b;this.headers=c;this.message=d};
Wma=function(a){var b=String.fromCharCode.apply(String,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;var f=ab(e[1]);e=e[2];b=kK(b.slice(d+2));return null==b?null:new Vma(f,e,b,a.subarray(c+4))};
qU=function(a,b,c,d,e){g.L.call(this);this.C=a;this.L=b;this.G=c;this.g=d;this.o=e;this.sessionId="";this.A=this.J=this.I=this.D=this.F=null;this.B=new g.uG(this);g.M(this,this.B);this.g?(this.B.P(this.g,"message",this.VL),this.B.P(this.g,"keystatuseschange",this.WL)):this.o&&(vG(this.B,this.o,["mskeymessage","webkitkeymessage"],this.kB),vG(this.B,this.o,["mskeyerror","webkitkeyerror"],this.jB),vG(this.B,this.o,["mskeyadded","webkitkeyadded"],this.iB))};
rU=function(a){return!(!a.g||!a.g.keyStatuses)};
sU=function(a,b){this.g=a;this.contentType=(void 0===b?"":b)||null;this.o=this.C=window.NaN;this.A=!1;this.B=[]};
tU=function(a,b){g.L.call(this);this.o=a;this.g=b;this.F={};this.B=null;this.C=new g.uG(this);g.M(this,this.C);this.A=this.D=null};
uU=function(a){if(a.g.A)return a.g.A.createMediaKeys().then(UE(function(b){a.ma()||(a.D=b,a.o.setMediaKeys(b))}));
GM(a.g)?a.A=new (FM())(a.g.o):IM(a.g)?(a.A=new (FM())(a.g.o),a.o.webkitSetMediaKeys(a.A)):Xma(a);return null};
Xma=function(a){vG(a.C,a.o,["keymessage","webkitkeymessage"],a.J);vG(a.C,a.o,["keyerror","webkitkeyerror"],a.I);vG(a.C,a.o,["keyadded","webkitkeyadded"],a.G)};
Yma=function(a,b){var c=b.g;if(a.g.A){var d=a.D.createSession();c=d.generateRequest(b.contentType,c);d=new qU(null,null,null,d,null);c.then(null,UE((0,g.A)(d.NA,d,"t.g")));return d}if(GM(a.g)){d=new window.Uint8Array(270);for(var e=0;135>e;e++)d[2*e]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(e);c=a.A.createSession("video/mp4",c,d);return new qU(null,null,null,null,c)}if(IM(a.g)){d=c.subarray(4);
d=String.fromCharCode.apply(null,new window.Uint16Array(d.buffer,d.byteOffset,d.byteLength/2)).match(/ek=([0-9a-f]+)/)[1];e="";for(var f=0;f<d.length;f+=2)e+=String.fromCharCode((0,window.parseInt)(d.substr(f,2),16));f=a.g.fairPlayCert;d=new window.Uint8Array(new window.ArrayBuffer(f.length));for(var k=0;k<f.length;k++)d[k]=f.charCodeAt(k);f=new window.ArrayBuffer(2*e.length);k=new window.Uint16Array(f);for(var l=0;l<e.length;l++)k[l]=e.charCodeAt(l);e=new window.Uint8Array(f);f=0;l=new window.ArrayBuffer(c.byteLength+
4+e.byteLength+4+d.byteLength);k=new window.Uint8Array(l);l=new window.DataView(l);k.set(c);f+=c.byteLength;l.setUint32(f,e.length,!0);f+=4;k.set(e,f);f+=e.length;l.setUint32(f,d.byteLength,!0);k.set(d,f+4);c=a.A.createSession("video/mp4",k);return new qU(null,null,null,null,c)}a.o.generateKeyRequest?a.o.generateKeyRequest(a.g.o,c):a.o.webkitGenerateKeyRequest(a.g.o,c);a.B=new qU(a.o,a.g,c,null,null);return a.B};
vU=function(a,b){var c=a.F[b.sessionId];!c&&a.B&&(c=a.B,a.B=null,c.sessionId=b.sessionId,a.F[b.sessionId]=c);return c};
xU=function(a,b,c,d,e,f,k){f=void 0===f?!1:f;k=void 0===k?!1:k;g.L.call(this);this.B=a;this.o=d;this.o.subscribe("oauthtoken",this.Hz,this);this.F={session_id:e};this.V=!!f;this.Y=!!k;this.O=0;a=this.B.C;IM(this.B)&&(a=c.g.subarray(4),a=String.fromCharCode.apply(null,new window.Uint16Array(a.buffer,a.byteOffset,a.byteLength/2)).replace("skd://","https://"));wU(this,a);this.D=this.J=!1;g.EP("drm_gk_s");try{var l=Yma(b,c)}catch(m){b="t.g",m instanceof window.DOMException&&(b+=";c."+m.code),this.o.X("licenseerror",
"drm.unavailable",!0,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),l=null}if(this.A=l)b=this.A,l=this.SL,a=this.RL,d=this.UL,b.F=this.TL,b.D=l,b.I=a,b.J=d,b.A=this,g.M(this,this.A);this.aa=c.B;this.G=[];this.g={};this.L=window.NaN;this.C=c.C||window.NaN};
wU=function(a,b){if(Zma.test(b)){for(var c in a.F)b=Ug(b,c,a.F[c]);a.I=b}else yU(a,"drm.net",!0,"t.x")};
yU=function(a,b,c,d,e){a.ma()||a.o.X("licenseerror",b,c,d,e);c&&a.dispose()};
$ma=function(a){if(!a)return{};var b={};(0,g.H)(a.split(";"),function(a){a=a.split(",");2==a.length&&(b[a[1]]={type:a[0],status:"unknown"})});
return b};
ana=function(a){var b={requestedKeyIds:a.aa,cryptoPeriodIndex:a.C};a.A&&(b.keyStatuses=a.g);return b};
bna=function(a){if(!rU(a.A))return a.G.join(",");var b=[],c;for(c in a.g)b.push.apply(b,[c,a.g[c].type,a.g[c].status]);return b.join(",")};
zU=function(){this.keys=[];this.values=[]};
BU=function(a,b,c,d,e){e=void 0===e?"":e;g.xG.call(this);a&&(a.addKey||a.webkitAddKey)||FM()||LM(c);this.F=c;this.J=a;this.g=b;this.subscribe("newlicense",this.uQ,this);this.subscribe("newsession",this.vQ,this);this.subscribe("sessionready",this.rR,this);this.subscribe("keystatuseschange",this.XL,this);this.da=e||g.PN();this.Y=null;this.A=new zU;this.B=this.D=null;this.o=[];this.G="fairplay"==this.g.g?DJ:AU;this.N=new tU(a,b);g.M(this,this.N);this.C=null;GM(b)&&(this.C=new tU(a,b),g.M(this,this.C));
this.aa=2;this.L=new g.uG(this);g.M(this,this.L);this.O=!1;this.V=null;this.I=!1;a=this.J;this.g.A?this.L.P(a,"encrypted",this.qP):vG(this.L,a,GM(this.g)?["msneedkey"]:["needkey","webkitneedkey"],this.rQ);(a=uU(this.N))?a.then(UE((0,g.A)(this.ZP,this)),UE((0,g.A)(this.wO,this))):this.I=!0;this.C&&uU(this.C);this.ba=d};
CU=function(a,b){a.Y=b;a.X("oauthtoken",b)};
EU=function(a,b,c){a.ma()||GM(a.g)==c||a.O&&a.ba||(a.O=!0,a.o.push(b),1<a.o.length||a.I&&DU(a))};
DU=function(a){for(;a.o.length;){var b=a.o[0];if(g.Db(a.D,b.g))a.o.shift();else{if(a.A.get(b.g))if("fairplay"==a.g.g)a.A.remove(b.g);else{a.o.shift();continue}if("widevine"==a.g.g){a:{var c=b.g;try{for(var d=0,e=new window.DataView(c.buffer);d<e.byteLength-8;){var f=e.getUint32(d);if(1>=f)break;if(1886614376==e.getUint32(d+4)){var k=32;if(0<e.getUint8(d+8)){var l=e.getUint32(d+28);k+=16*l+4}var m=e.getUint32(d+k-4);try{var n=new oe(c.subarray(d+k,d+k+m)),q=new mE;for(k=n;pe(k)&&4!=k.o;)switch(k.A){case 1:var r=
k.g;b:{for(var w,z,B=r,C=0,N=0;4>N;N++)if(z=B.o[B.g++],C|=(z&127)<<7*N,128>z){B.F=C>>>0;B.D=0;break b}z=B.o[B.g++];C|=(z&127)<<28;w=0|(z&127)>>4;if(128>z)B.F=C>>>0,B.D=w>>>0;else{for(N=0;5>N;N++)if(z=B.o[B.g++],w|=(z&127)<<7*N+3,128>z){B.F=C>>>0;B.D=w>>>0;break b}B.C=!0}}var da=r.F,Ga=r.D;if(B=Ga&2147483648)da=~da+1>>>0,Ga=~Ga>>>0,0==da&&(Ga=Ga+1>>>0);C=4294967296*Ga+da;var Da=B?-C:C;ye(q,1,Da);break;case 2:B=Da=se(k);xe(q,2).push(B);break;case 3:Da=re(k);ye(q,3,Da);break;case 4:Da=se(k);ye(q,4,Da);
break;case 5:Da=re(k);ye(q,5,Da);break;case 6:Da=re(k);ye(q,6,Da);break;case 7:Da=ne(k.g);ye(q,7,Da);break;case 8:Da=se(k);ye(q,8,Da);break;case 9:Da=ne(k.g);ye(q,9,Da);break;case 10:Da=ne(k.g);ye(q,10,Da);break;case 11:Da=new lE;B=k;C=Da;N=hja;var Ea=B.g.A,Me=ne(B.g),Ya=B.g.g+Me;B.g.A=Ya;N(C,B);B.g.g=Ya;B.g.A=Ea;B=q;C=Da;N=lE;Ae(B,N,11);var Rc=B.g[11];Rc||(Rc=B.g[11]=[]);var Md=C?C:new N,fg=xe(B,11);Rc.push(Md);fg.push(Ce(Md));break;default:qe(k)}var Qb=q;if(null!=Qb){var db=Qb;break a}}catch(Xb){}}d+=
f}db=null}catch(Xb){db=null}}if(null!=db)for(c=K(db,7),null!=c&&(b.C=c),c=K(db,10),null!=c&&0<c&&(b.o=c),c=xe(db,2),c=!c.length||c[0]instanceof window.Uint8Array?c:(0,g.J)(c,Vaa),c=g.la(c),d=c.next();!d.done;d=c.next())b.B.push(g.ee(d.value,!0).replace(/[\.]{1,2}$/,""));a:{c=a;if(!(c.F.g("disable_license_delay")||"widevine"!=c.g.g||b.A||(0,window.isNaN)(b.C)))for(c=g.la(c.A.values),d=c.next();!d.done;d=c.next())if(1>=Math.abs(d.value.C-b.C)){c=!0;break a}c=!1}if(c){cna(a,b);a.o.shift();continue}}break}}a.o.length&&
(b=a.o[0],a.A.get(b.g),db=new xU(a.g,a.N,b,a,a.da,a.F.g("html5_use_drm_retry"),a.F.g("html5_enable_ms_playready_hd")),db.Hz(a.Y),"playready"==a.g.g&&a.F.g("playready_on_borg")&&(g.dc(db.F,{prob:"1"}),wU(db,db.I)),a.A.set(b.g,db))};
cna=function(a,b){a.B&&a.B.dispose();a.D=b.g;a.B=new g.Ht(function(){a.D=null;a.B=null;b.A=!0;a.o.push(b);1<a.o.length||DU(a)},dna(b.o));
a.B.start()};
dna=function(a){return 1E3*Math.max(0,Math.random()*(((0,window.isNaN)(a)?120:a)-30))};
FU=function(a){var b={};this.A=(b.c1a=(0,g.A)(this.C,this),b.c3a=(0,g.A)(this.D,this),b.c6a=(0,g.A)(this.B,this),b);(this.g=a)&&this.g.mk?this.o=g.bF(this.g.mk):this.o=[]};
ena=function(a,b){this.g=a;this.o=b};
GU=function(a,b){var c=EJ(EJ(a.g.lJ,b.Ll),b.Ql);"auto"!=IJ()||(c=a.g.experiments.g("html5_restore_performance_cap")?EJ(c,new zJ(0,KJ(),!1)):EJ(c,a.g.Lh));return c};
HU=function(a,b){var c=IJ();if("auto"!=c)var d=BJ("auto",c,!1);else if(g.XN(a.g)&&kN(a.g.L,uN))d=DJ;else{var e;c=!!b.tb.g;$N(a.g)&&(e=window.screen&&window.screen.width?new g.dd(window.screen.width,window.screen.height):null);e||(e=a.g.lk?a.g.lk.clone():a.o.Xa());(VN||Vi||c)&&e.scale(g.qO());c=b.tb.videoInfos;if(c.length){var f=.85,k=3==c[0].video.projectionType,l=4==c[0].video.projectionType;2!=c[0].video.projectionType&&!l||mN?k&&!mN&&(f*=.25):f*=.5;for(k=0;k<c.length&&!(d=c[k].video,null===e||
d.width*f<e.width&&d.height*f<e.height);k++);d=BJ("auto",d.quality,!1)}else d=DJ;e=d.g;uF()&&(e=Math.max(e,g.kJ.hd1080));(qF("armv7")||qF("android"))&&!g.XN(a.g)&&qJ(b.tb.videoInfos[0])&&(e=Math.min(e,g.kJ.large));e=Math.max(e,g.kJ.medium);a.g.experiments.o("html5_default_quality_cap")&&(e=Math.min(e,a.g.experiments.o("html5_default_quality_cap")));d.g!=e&&(d=new zJ(d.o,e,d.A))}return d};
IU=function(){var a=this;this.o=this.g=null;this.PB=new g.Yf(function(b,c){a.g=b;a.o=c})};
JU=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;g.xG.call(this);this.C=new g.uG;this.o=a;this.D=b;this.A=window.NaN;this.F=this.B=this.g=null};
LU=function(a,b){fna(a,b);a.B=a.D.seek(b);return g.gg([a.g.PB,a.B]).then(function(){a.X("seekend");KU(a)},function(){KU(a)})};
fna=function(a,b){a.g||(a.o.g.currentTime=b,a.g=new IU)};
KU=function(a){a.A=window.NaN;a.g=null;a.B=null;a.F=null};
MU=function(a){if(a.o)for(var b=g.la(["seeking","seeked"]),c=b.next();!c.done;c=b.next())a.C.P(a.o,c.value,function(b){return gna(a,b)})};
gna=function(a,b){switch(b.type){case "seeking":if(a.g)break;a.X("seekstart");a.g=new IU;a.g.then(function(b){return LU(a,b)});
break;case "seeked":a.g.resolve(a.o.getCurrentTime())}};
NU=function(a){TQ.call(this);this.g=a;this.B={}};
VQ=function(a,b){var c=a.Uc();a.g.src=b;a.Zf(c)};
YQ=function(a){return a.g.buffered||PQ()};
OU=function(a,b,c){g.nh(a.g,b,c)};
PU=function(){g.L.call(this);this.A={};this.g={};this.o=new g.Ht(this.YS,500,this);g.M(this,this.o)};
QU=function(a,b){return a.g[b]?a.g[b].g.sb():[]};
RU=function(a){this.A=a;this.g=new gS(100);this.o=window.NaN};
SU=function(){if(window.document.visibilityState)var a="visibilitychange";else{if(!window.document[ZF+"VisibilityState"])return"";a=ZF+"visibilitychange"}return a};
TU=function(){var a=$F("visibilityState",window.document);return!(!a||"visible"==a)};
hna=function(a){var b=SU();b&&window.document.addEventListener(b,a,!1)};
WU=function(a,b,c,d,e,f){g.xG.call(this);var k=this;this.ib=new ema;this.I=c;this.ob=d;this.Pg=f;c=(0,g.A)(function(b,c){"crn_endcr"!=b||!a.experiments.g("use_legacy_ended_cue_range_behavior")&&g.W(this.A,32)||UU(this);e(b,c)},this);
this.F=new NT((0,g.A)(this.getCurrentTime,this),(0,g.A)(this.kz,this),(0,g.A)(this.RK,this),c);g.M(this,this.F);this.pa=window.NaN;this.ba=this.G=null;this.C=a;this.ra=new ena(a,this.ob);this.sa=!1;this.J=this.B=null;this.da=[];this.Fa=new aT;this.V=new aT;this.sg=this.Hd=this.Qg=this.Na=!1;this.ub=window.NaN;this.A=new g.dR;this.Ab=[];this.Id=b;this.ha=null;this.Y=window.NaN;this.ka=new g.uG;g.M(this,this.ka);this.g=new g.aQ;this.o=null;this.fa=window.NaN;this.D=null;this.Cf=this.Ra=!1;this.Ta=window.NaN;
this.Ka=this.Hc=this.Ib=this.Ya=!1;this.Jb=this.Oc=window.NaN;this.Lh=a.experiments.g("html5_force_play_on_suspend_event");this.Mh=a.experiments.g("html5_force_play_on_suspend_event_limited");this.N=null;this.Nh=this.C.experiments.g("html5_playing_event_buffer_underrun");this.aa=new PU;g.M(this,this.aa);this.aa.Cb("bufferhealth",(0,g.A)(this.tx,this));this.aa.Cb("bandwidth",(0,g.A)(this.XH,this));this.aa.Cb("networkactivity",(0,g.A)(this.ZH,this),!0);this.aa.Cb("livelatency",(0,g.A)(this.yx,this));
this.aa.start();this.rg=!1;this.uc=!0;this.gd=this.Gc=!1;this.Aa=1;this.O=null;this.Ng=(0,g.A)(this.eS,this);hna(this.Ng);this.Sg=new g.Ht(this.vt,0,this);g.M(this,this.Sg);this.Rg=this.Og=this.Bf=0;this.L=null;a.experiments.g("html5_new_seeking")&&(this.L=new JU,this.L.subscribe("seekstart",function(){return VU(k)}),this.L.subscribe("seekend",function(){return k.us()}))};
XU=function(a){g.gH()?g.iH(a.Ta):g.YE(a.Ta)};
dV=function(a,b,c,d){d=void 0===d?!0:d;a.da.length=0;a.Fa.reset();a.V.reset();a.pa=window.NaN;a.Y=window.NaN;a.Ra=!1;a.Gc=!1;a.o&&a.o.ag();YU(a);ZU(a);$U(a);XU(a);a.aa.clear();a.Sg.stop();a.N=null;a.O=null;g.Ye(a.g);if(2==a.Id||RN.test(a.C.Y))b.Ky=!0;var e=FN(b.Xb,a.C.A,a.C.Hb);e&&(b.adFormat=e);a.C.da&&(b.autonavState=a.g.autonavState);a.uc=d;a.g=b;a.g.subscribe("dataupdated",a.XR,a);a.g.subscribe("dataloaded",a.tw,a);a.g.subscribe("dataloaderror",a.yj,a);a.g.subscribe("onStatusFail",a.WR,a);b.endSeconds&&
b.endSeconds>b.startSeconds&&aV(a,b.endSeconds);ina(a,c);a.Ya=!1;bV(a,"newdata");cV(a,new g.dR)};
ina=function(a,b){ZU(a);if(!a.g.Yj){var c=new jma(a.g,a.C,b,(0,g.A)(a.getDuration,a),(0,g.A)(a.getCurrentTime,a),(0,g.A)(a.aI,a),(0,g.A)(a.ob.Xa,a.ob),(0,g.A)(a.ws,a),(0,g.A)(a.kz,a),(0,g.A)(a.Uq,a),a.Pg,(0,g.A)(a.mI,a),(0,g.A)(function(){this.I.o("qoes")},a));
a.D=new KR(c)}};
ZU=function(a){if(a.D){var b=a.D;if(!b.ma()&&b.B){b.D="paused";var c=OR(b);c.pa=!0;c.send();c=b.o;"PL"==c.A&&(c.A="N");var d=g.CQ(c.g);g.vR(c,d,"vps",[c.A]);c.C(d);g.YE(b.C);b.dispose()}g.Ye(a.D);a.D=null}};
fV=function(a){if(a.g.ed())return!0;g.eV(a,"api.invalidparam",void 0,"invalidVideodata.1");return!1};
hV=function(a,b){a.Na=void 0===b?!1:b;if(fV(a)&&!a.Fa.o){a.Fa.start();if(a.D){var c=a.D.o;c.g.g.experiments.g("html5_qoe_unstarted_in_initialization")?g.CQ(c.g):g.vR(c,g.CQ(c.g),"vps",["N"]);c.g.videoData.wo?FR(c,"prefetch"):(c.o.user_intent=["0"],c.G=!0);c.g.videoData.Hi&&(xR(c,"reload",c.g.videoData.zt),xR(c,"reloadcount",c.g.videoData.Hi.toString()));c.g.videoData.al&&FR(c,"monitor");c.g.videoData.Ba&&FR(c,"live");c.g.videoData.kh&&FR(c,"rqs");c.g.videoData.kg&&xR(c,"ctrl",c.g.videoData.kg,!0);
c.g.videoData.sf&&xR(c,"ytp",c.g.videoData.sf,!0);if(c.g.videoData.TB){var d=c.g.videoData.TB.replace(/,/g,".");xR(c,"ytrexp",d,!0)}if(!c.g.g.experiments.g("html5_disable_gpu_reporting")){var e=c.g.videoData;d=c.g.g.experiments.g("enable_white_noise");var f=e.mi()||e.lh()||e.mh()||e.Pf();e=0==e.clientPlaybackNonce.indexOf("gp");(d||f||e)&&(d=gV())&&(c.o.gpu=[d])}c.Y=g.ZE((0,g.A)(c.C,c),1E4)}a.tw()}};
jV=function(a){a.o&&WQ(a.o);hV(a);fV(a)&&!g.W(a.A,128)&&(a.V.o||(a.V.start(),cV(a,gR(gR(a.A,8),1))),iV(a))};
iV=function(a){if(!a.V.g&&a.Fa.g&&!g.W(a.A,128)&&!a.da.length){if(!a.F.C){var b=a.F;b.C=!0;b.A()}if(!kV(a)){a.B&&(b=a.B,a.Qg=!!b.Y&&!!b.fa);a.V.g||(a.V.g=!0);a.g.Ba&&(lV(a,window.Infinity,!0),mV(a,!0),TU()&&(a.Cf=!0));if(a.D&&(b=a.D,b.g.videoData.enableCardio&&b.g.videoData.enableCardioBeforePlayback&&(b.Lo("connected"),SR(b)),b.g.videoData.Ba)){b=b.o;var c=b.g.videoData.ua;b.g.videoData.pd()&&FR(b,"manifestless");c&&BM(c)&&FR(b,"live-segment-"+BM(c).toFixed(1))}a.X("playbackready",a);UP("pbr",a.I.g)||
(a.I.o("pbr"),g.EP("pbr",void 0,"video_to_ad"))}}};
UU=function(a,b){b=void 0===b?!0:b;nV(a);var c=b?new g.dR(14):new g.dR;cV(a,c)};
aV=function(a,b){a.ba&&(a.F.D(a.ba),a.ba=null);a.ba=new g.VJ(1E3*b,0x7ffffffffffff);a.ba.namespace="endcr";OT(a.F,[a.ba])};
qV=function(a,b,c,d){a.g.Oa=c;a.g.wd=d||c;if(a.D){var e=oV(a);e=new AQ(a.g,c,b,e?oJ(e):"");d&&"i"==b&&pV(a,b,d);d=a.D.o;c=g.CQ(d.g);g.vR(d,c,"vfs",[e.g.id,e.o,d.da,"b"==e.reason?"a":e.reason]);d.da=e.g.id;e=d.g.N();if(0<e.width&&0<e.height){e=[Math.round(e.width),Math.round(e.height)];var f=g.qO();1<f&&e.push(f);g.vR(d,c,"view",e)}g.vR(d,c,"vps",[d.A]);d.C(c);a.C.experiments.g("html5_report_performance_cap")&&"i"==b&&(d=KJ())&&a.Kd("perfCap",""+d)}a.Bf=0;a.X("internalvideoformatchange",a.g,"m"==b)};
oV=function(a){if(!a.g.tb)return null;var b=EJ(EJ(HU(a.ra,a.g),rV(a)),sV(a));return g.eb(a.g.tb.videoInfos,(0,g.A)(b.B,b))};
pV=function(a,b,c){a.g.wd=c;if(a.D){var d=a.D.o;c=new AQ(a.g,c,b,"");var e=g.CQ(d.g);c.g.id!=d.L&&(g.vR(d,e,"afs",[c.g.id,d.L,c.reason]),d.L=c.g.id)}"i"!=b&&a.X("internalaudioformatchange",a.g,"m"==b)};
g.eV=function(a,b,c,d){var e,f;Ob(jna,c)?e=c:c?f=c:e="YTP_ERROR_GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:f||g.U(e),messageKey:e};cV(a,fR(a.A,128,b));XU(a);$U(a);tV(a)};
kna=function(a,b){a.da=a.da.filter(function(a){return b!=a});
a.V.o&&iV(a)};
kV=function(a){var b;(b=!!a.da.length)||(a=a.F.g.g[0],b=!!a&&-0x8000000000000>=a.start);return b};
wV=function(a,b){a.o&&uV(a);a.A.isError()||cV(a,hR(a.A,512));a.o=b;a.o.g.loop=a.gd;a.o.Zf(a.Aa);lna(a);vV(a);if(a.L){var c=a.L,d=a.o;g.wG(c.C);c.o=d;MU(c)}};
vV=function(a){if(a.C.experiments.g("html5_prewarm_mse")&&gN())try{XQ(a.o,a.C.C)}catch(b){}};
uV=function(a){a.J&&(a.J.dispose(),a.J=null);a.B&&(fU(a.B),a.B.G=!0);a.o&&(!a.V.o||a.A.isError()||g.W(a.A,2)||cV(a,gR(a.A,512)),YU(a),g.wG(a.ka),a.o.ag(),a.o=null,a.L&&(a=a.L,g.wG(a.C),a.o=null,MU(a)))};
BV=function(a){if(!g.W(a.A,128))if(a.rg)a.rg=!1,xV(a);else if(jV(a),g.W(a.A,64)&&cV(a,gR(a.A,8)),a.V.g&&a.o)if(a.g.tb){if(a.g.Ba){var b=yV(a),c=g.wQ(a.g)&&g.W(a.A,4);if(b||c)!c&&a.C.experiments.g("html5_live_pin_to_tail")?lV(a,a.Kc(),!0):lV(a,window.Infinity,!0);zV(a)?mV(a,!0):a.isPeggedToLive()&&lV(a,window.Infinity,!0)}AV(a)?mna(a):a.o.fd()}else b=a.g.Ba&&!g.iN()?"html5.unsupportedlive":a.g.bd?"fmt.unplayable":"fmt.noneavailable",g.eV(a,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1")};
DV=function(a){YU(a);$U(a);CV(a)};
EV=function(a){if(a.g.tb){var b=rV(a);b=b||DJ;a=(0,g.Id)(a.g.tb.videoInfos,(0,g.A)(b.B,b));b=[];for(var c={},d=0;d<a.length;d++){var e=a[d].video;c[e.quality]||(b.push(e),c[e.quality]=!0)}a=b}else a=[];return a};
FV=function(a){return EJ(EJ(EJ(GU(a.ra,a.g),HU(a.ra,a.g)),rV(a)),sV(a))};
rV=function(a){return a.G?a.G.G:fQ(a.g)&&a.g.tb.g&&qM(a.g.ua)?AU:DJ};
GV=function(a,b,c){if(!a.ma()&&!g.W(a.A,128)&&(c&&(a.g.Ql=c),fQ(a.g))){"m"==b&&c&&CJ(c)&&(b="a");c=FV(a);if(a.g.tb.g){if(a.B&&"i"!=b){var d=a.B;if(!d.ma()&&d.g){(c=Gma(d.F,c,b))&&d.X("videoformatchange",c);QT(d);if(ET(d.F)&&"m"==b&&d.F.L||"b"==b)mT(d.g),mT(d.B);rT(d.g)&&bU(d,d.g,d.B);fU(d)}}}else{d=a.g;a:{var e=a.g.Jj;if(c.g){for(var f=0;f<e.length;f++){var k=e[f].Ce,l=g.kJ[k.video.quality];if((!c.A||"auto"!=k.video.quality)&&l<=c.g){c=e[f];break a}}c=e[e.length-1]}else c=e[0]}d.hg=c;qV(a,b,a.g.hg.Ce)}a.A.xb()&&
BV(a)}};
g.HV=function(a){Ska(a.g.ua,{cpn:a.g.clientPlaybackNonce,c:a.C.o.c,cver:a.C.o.cver});var b=Sma(a.C,a.g);a.C.schedule.policy.A=a.g.pd()?.5:0;a.B=new PT(a.C.schedule,b,a.g.ua,a.g.tb,a.F);a.B.subscribe("initsegment",a.IP,a);a.B.subscribe("videoformatchange",a.SP,a);a.B.subscribe("audioformatchange",a.RP,a);a.B.subscribe("error",a.yj,a);a.B.subscribe("ctmp",a.Kd,a);a.B.subscribe("seekelementrequired",a.cT,a);a.B.subscribe("seekplayerrequired",(0,g.A)(function(a,b){lV(this,a,!0,void 0,b)},a));
b=g.jb(a.da,"spacecast")||a.Na;var c=a.ws();c=c.Sc.isDefault?void 0:c;a.B.initialize(a.g.startSeconds,FV(a),b,c);a.g.probeUrl&&(a.B.aa=a.g.probeUrl);if(a.da.length||a.Na)a.B.G=!0;a.L&&(a.L.D=a.B)};
sV=function(a){var b=a.C.experiments.o("html5_background_quality_cap");a=a.C.experiments.o("html5_background_cap_idle_secs");return!b||"auto"!=IJ()||g.dH()/1E3<a?DJ:TU()?new zJ(0,b,!1):DJ};
$U=function(a){a.B&&(a.B.dispose(),a.B=null);a.J&&(a.J.dispose(),a.J=null)};
CV=function(a){if(a.J)return a.J.C;a.B?a.B.seek(a.getCurrentTime()):g.HV(a);try{a.C.experiments.g("html5_prewarm_mse")?a.J=gma(a.o,a.C.C):a.J=fma(a.o,a.C.C)}catch(d){return d.message="window.URL object overwritten by external code",window.setTimeout(function(){throw d;},0),g.eV(a,a.g.bd?"drm.unavailable":"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1"),null}var b=(0,g.A)(a.aQ,a),c=(0,g.A)(function(a){g.eV(this,"fmt.unplayable",void 0,"msi.1;ename."+a.name)},a);
a.C.experiments.g("html5_prewarm_mse")?KK(a.J).then(b).then(void 0,c):(a.J.B=b,a.J.F=c);return a.J.C};
nna=function(a){return 403==a.details.rc?(a=a.errorCode,"net.badstatus"==a||"manifest.net.retryexhausted"==a):!1};
xV=function(a){!a.g.Zg&&a.g.Hi||a.Ib||(a.Ib=!0,a.X("signatureexpired"))};
IV=function(a){return"net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode&&!!a.details.fmt_unav};
nV=function(a,b){b=void 0===b?!1:b;if(g.W(a.A,64)&&!b)if(g.W(a.A,8))cV(a,iR(a.A));else return;a.o&&(g.W(a.A,128)||(b?cV(a,gR(a.A,256)):cV(a,iR(a.A))),a.o&&a.o.pause())};
JV=function(a){var b=a.C.experiments.g("disable_html5_stopvideo_cancel_requests");nV(a,b);a.B&&(a.B.G=!0,b||VT(a.B))};
tV=function(a,b){b=void 0===b?!1:b;a.o&&(a.o.pause(),YU(a),$U(a),a.g&&(a.g.startSeconds=a.getCurrentTime()),a.Y=window.NaN,a.o.ag(),vV(a),g.W(a.A,128)||(b?cV(a,iR(a.A)):cV(a,fR(a.A))),a.C.G.remove(a.g.videoId))};
lV=function(a,b,c,d,e){c=void 0===c?!1:c;e=void 0===e?!1:e;if(a.L)a=a.L,c=b||0,c!=a.A&&(KU(a),a.A=c,a.X("seekstart"),a.F=LU(a,c));else if(a.o&&a.V.g){if(a.O&&b&&!(0,window.isFinite)(b)&&a.B){if(a.C.experiments.g("html5_use_adaptive_live_readahead")&&(a.g.isLowLatencyLiveStream||"LOW"==a.g.latencyClass||"ULTRALOW"==a.g.latencyClass)){var f=a.O;if(f.o.length){var k=f.g;1<Math.min.apply(null,f.o)?f.g=Math.max(f.g-1,1):f.C&&(f.g=Math.min(f.g+1,8));if(k=k!=f.g)f.o=[],f.B=0;f=k}else f=!1;f&&a.D&&(f=iS(a.O),
ER(a.D.o,f))}a.B.pa=Math.max(0,a.O.g-1)}if(b&&!(0,window.isFinite)(b)&&a.g.Zg&&a.g.pd()&&a.B){var l=a.B;VT(l);f=Math.max(US(l.g.o),US(l.B.o));k=l.g;k.D=!0;k.C=-1;hT(k,window.Infinity);k.o.F=f;k=l.B;k.D=!0;k.C=-1;hT(k,window.Infinity);k.o.F=f;k=l.D;for(var m in k.g)ZJ(k.g[m].index,window.Infinity);l.A.ha&&(l.V=!0);fU(l);l=f+.1}l||(l=g.Xc(b||0,a.Kc(),KV(a,!1,e)));b=a.g.Ba&&!g.W(a.A,4)&&zV(a,l);mV(a,b);a.g.startSeconds=l;a.Y=l;b=a.ib;b.g=l;b.o=!0;c?a.us():(VU(a),d&&(a.ha||(a.ha=new g.Ht(a.us,d,a)),a.ha.start()),
LV(a,!0));a.ba&&l>a.g.endSeconds&&(a.F.D(a.ba),a.ba=null);l<KV(a,!1)&&cV(a,hR(a.A,2));a.X("seekto",a,l)}else a.g.startSeconds=b||0};
VU=function(a){g.W(a.A,32)||(cV(a,gR(a.A,32)),g.W(a.A,8)&&nV(a,!0),a.X("beginseeking",a))};
MV=function(a){return a.g.Ba&&a.g.ua?CM(a.g.ua,a.getCurrentTime()):window.NaN};
ona=function(a){if(!a.o)return 0;if(g.wQ(a.g))return 1;if(xQ(a.g)){if(a.isPeggedToLive())return 1;var b=a.o,c=YQ(b);b=(0<OQ(c)&&b.getDuration()?c.end(c.length-1):0)-a.Kc();a=KV(a,!0)-a.Kc();return Math.max(0,Math.min(1,b/a))}return aR(a.o)};
NV=function(a,b){var c={};if(void 0===b?0:b){a.D?g.Ba(c,JR(MR(a.D,"playback"))):a.g&&(c.cpn=a.g.clientPlaybackNonce);a.o&&g.Ba(c,bR(a.o));a.B&&g.Ba(c,oU(a.B));if(a.G){var d=a.G,e=d.g;e={systemInfo:{flavor:e.g,keySystem:e.o},sessions:[]};d=g.la(d.A.values);for(var f=d.next();!f.done;f=d.next())e.sessions.push(ana(f.value));c.drm=e}c.state=a.A.o.toString(16);g.W(a.A,128)&&(c.debug_error=a.A.g);kV(a)&&(c.prerolls=a.da.join(","));a.g.Cg&&(c.ismb=a.g.Cg);"UNKNOWN"!=a.g.latencyClass&&(c.latency_class=a.g.latencyClass);
a.g.isLowLatencyLiveStream&&(c.lowlatency="1");a.g.Ba&&(a.g.ua&&BM(a.g.ua)&&(c.segduration=BM(a.g.ua)),a.N&&(e=a.N.D,c.lat=e.g[e.o]||0));c.relative_loudness=a.g.relativeLoudness.toFixed(3);if(e=oV(a))c.optimal_format=e.video.qualityLabel;c.user_qual=IJ()}c.debug_videoId=a.g.videoId;return c};
bV=function(a,b){a.X("internalvideodatachange",void 0===b?"dataupdated":b,a,a.g)};
lna=function(a){(0,g.H)("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort resize".split(" "),function(a){this.ka.P(this.o,a,this.TK,this)},a);
a.C.Nh&&(a.ka.P(a.o,"webkitplaybacktargetavailabilitychanged",a.kO,a),a.ka.P(a.o,"webkitcurrentplaybacktargetiswirelesschanged",a.lO,a))};
OV=function(a){var b=a.getCurrentTime(),c=a.g;!UP("pbs",a.I.g)&&JP.measure&&JP.getEntriesByName&&(JP.getEntriesByName("mark_nr")[0]?TP("mark_nr"):TP());c.videoId&&a.I.info("docid",c.videoId);c.eventId&&a.I.info("ei",c.eventId);c.clientPlaybackNonce&&a.I.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.I.info("start",c.startSeconds.toString());a.o&&a.o.g.paused&&a.I.info("paused",1);c.Oa?a.I.info("fmt",oJ(c.Oa)):a.I.info("fmt","-1");c.wo&&a.I.info("yt_pre",a.Qg?"2":"1");a.C.da&&a.I.info("yt_fs",
"1");a.I.info("cmt",b.toFixed(3));if(a.B){b=a.B;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.fa),c.length&&(c=c[0],ST(b,"vri",c.fetchStart),ST(b,"vdns",c.domainLookupEnd),ST(b,"vreq",c.requestStart),ST(b,"fvb",c.responseStart),ST(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.Y),c.length&&(c=c[0],ST(b,"ari",c.fetchStart),ST(b,"adns",c.domainLookupEnd),ST(b,"areq",c.requestStart),ST(b,"avb",c.responseStart),ST(b,"arc",c.responseEnd)));
b=b.ob;for(var d in b)a.I.o(d,b[d])}};
LV=function(a,b){b=void 0===b?!1:b;if(a.o&&a.g){var c=a.getCurrentTime();if(yV(a)&&a.A.xb())a.C.experiments.g("html5_live_pin_to_tail")?lV(a,a.Kc(),!0):lV(a,window.Infinity,!0);else{if(a.isPeggedToLive()){if(!zV(a,c)){if(a.A.xb()&&(a.g.al||g.wQ(a.g))){lV(a,window.Infinity,!0);return}a.g.Ba&&mV(a,!1)}if(a.C.experiments.g("html5_use_adaptive_live_readahead")&&a.O){var d=a.O,e=a.tx();d.B++;3>d.B||(d.o.push(e),50<d.o.length&&d.o.shift())}}else a.g.Ba&&zV(a,c)&&mV(a,!0);if(a.B&&(d=a.B,d.o)){d.C!=c&&d.resume();
if(d.O&&!MK(d.o)){e=d.C<=c&&c<d.C+10;var f=0<=MQ(d.o.o.buffered,d.C+cU);e&&f&&(d.O=!1)}d.O||(d.C=c);gU(d)}5<c&&(a.g.startSeconds=c);(d=g.gH())?g.iH(a.Ta):g.YE(a.Ta);!g.mR(a.A)&&a.o.g.paused||g.W(a.A,128)||(e=(0,g.A)(a.AI,a),a.Ta=0==(a.o.g.played||PQ()).length?d?g.hH(e,1,100):g.$E(e,100):d?g.hH(e,1,500):g.$E(e,500));a.g.If=c;!b&&a.A.xb()&&a.D&&(c=a.D,c.A.update(),c.g.videoData.Sb()&&c.g.videoData.Jf&&!c.N&&FQ(c.A)>=c.g.videoData.Jf&&(c.B&&c.g.videoData.Jf&&(d=MR(c,"delayplay"),d.Aa=!0,d.send(),c.N=
!0),RR(c)),d=c.ba,d.A||!d.g.Qg||d.g.Fa||!d.videoData.lengthSeconds?d=!1:(e=Math.min(.8*d.videoData.lengthSeconds,180),d=FQ(d.B)>=e),d&&c.ba.send(),a.C.experiments.g("html5_new_e2e_latency_tracking")&&a.isPeggedToLive()&&(0,g.G)()>a.Rg+6283&&(c=a.D.o,e=c.g.B(),d=g.CQ(c.g),yR(c,d,e),e=e.B,(0,window.isNaN)(e)||g.vR(c,d,"e2el",[e.toFixed(3)]),a.Rg=(0,g.G)()));a.X("progresssync",a,b)}}};
cV=function(a,b){if(!g.jR(a.A,b)){var c=new g.oR(b,a.A);a.A=b;var d=!a.Ab.length;a.Ab.push(c);if(0<pR(c,1)&&!g.W(c.g,16)&&g.W(a.A,8)&&!g.W(a.A,64)&&a.B){a.B.ba=!0;a.g.kh&&a.o&&a.Kd("rbinfo","rs."+a.o.g.readyState+";lact."+g.dH());var e=a.C.experiments.o("html5_nnr_downgrade_count");if(e&&a.o&&5<=ZQ(a.o)){a.Bf++;var f=a.g.Oa.video.o;a.Bf==e&&360<f&&(e=a.ra,e.g.Lh=new zJ(0,f-1,!1),e.g.experiments.g("html5_report_performance_cap")&&g.sH("yt-player-performance-cap",f-1,2592E3),GV(a,"b"),a.C.experiments.g("html5_report_performance_cap")&&
a.Kd("perfDowngrade",""+f))}}0>pR(c,8)&&(g.YE(a.fa),a.fa=window.NaN,mV(a,!1));0<pR(c,8)&&!a.g.Zg&&(0,window.isNaN)(a.fa)&&(a.fa=g.$E((0,g.A)(a.bB,a),15E3));0<pR(c,32)&&mV(a,!1);g.W(c.state,2)&&xQ(a.g)&&(f=a.getCurrentTime(),a.g.lengthSeconds!=f&&(a.g.lengthSeconds=f,bV(a)),LV(a,!0));0<pR(c,2)&&a.Dt();a.C.experiments.g("html5_suspend_manifest_on_pause")&&a.g.ua&&a.g.Ba&&(0>pR(c,8)?(f=a.g.ua,f.A&&f.A.stop()):0<pR(c,8)&&a.g.ua.resume());0<pR(c,1)&&(a.Jb=g.$E((0,g.A)(a.VS,a),5E3));if(a.D&&(f=a.D,!f.ma())){g.W(c.state,
2)?(f.D="paused",0<pR(c,2)&&f.B&&OR(f).send()):g.W(c.state,8)?(f.D="playing",f.B&&(0,window.isNaN)(f.F)&&LR(f,!1)):f.D="paused";e=f.o;var k=c.state,l=g.CQ(e.g),m=lma(c.state);if(m!=e.A){if(!(l<e.B)){if("PL"==e.A)e.J+=l-e.B;else if("B"==e.A&&e.I&&(e.I=!1,e.N+=l-e.B,!e.V&&10<=e.N&&180>=e.J)){e.g.G();if(!e.ma()&&!e.O){var n=AR(e);n.qoealert="1";n=g.Pg(e.g.g.kk,n);BR(e,n)}e.V=!0}"B"!=m||"PL"!=e.A&&"PB"!=e.A||(e.I=!0);e.B=l}"B"==m&&"PL"==e.A||e.g.videoData.kh?zR(e,l):g.vR(e,l,"cmt",[e.g.o().toFixed(3)]);
g.vR(e,l,"vps",[m]);e.A=m;e.B=l}g.W(k,128)&&DR(e,l,k.g.errorCode,k.g.errorDetail);(g.W(k,2)||g.W(k,128))&&e.C(l);g.W(k,8)&&e.g.videoData.wo&&!e.G&&(e.o.user_intent=[g.CQ(e.g).toString()],e.G=!0);CR(e);f.C&&g.W(c.state,128)&&(f.Lo("error-100"),g.YE(f.C))}if(d)try{for(var q=g.la(a.Ab),r=q.next();!r.done;r=q.next()){var w=r.value,z=a.F;c=w;if(z.C&&!z.I&&(z.A(),g.W(c.g,16))){c=z;var B=MT(c.g,Math.max(c.B-2E3,0));null!=B&&0x7ffffffffffff>B&&c.F.start()}a.X("statechange",w)}}finally{a.Ab.length=0}}};
PV=function(a){g.W(a.A,2)||g.W(a.A,32)||(a.Y=window.NaN)};
mV=function(a,b){a.g.Ba&&a.sa!=b&&(a.sa=b)};
mna=function(a){a.C.pK?g.$E((0,g.A)(function(){this.o.fd()},a),0):a.o.fd()};
AV=function(a){if(!a.o||!a.g.tb)return!1;if(a.g.tb.g){var b=CV(a);a.B.resume()}else $U(a),b=a.g.hg.g();var c=a.o.o;return c&&null!=b&&b.g==c.g?!1:(a.I.o("vta"),g.EP("vta",void 0,"video_to_ad"),WQ(a.o,b),pna(a),a.J&&jH(4),g.YE(a.fa),!a.g.Zg&&kR(a.A)&&(a.fa=g.$E((0,g.A)(a.bB,a),15E3)),!0)};
pna=function(a){if(g.nQ(a.g)&&a.o){var b=a.g.Uf;if(b){if(a.G)if("fairplay"==b.g)YU(a);else return;var c=a.o.oa();a.G=new BU(c,b,a.C.experiments,"widevine"==b.g&&!a.g.Ba&&!a.g.Qr,a.g.drmSessionId);a.G.subscribe("newsession",a.tQ,a);a.G.subscribe("licenseerror",a.MP,a);a.G.subscribe("qualitychange",a.NP,a);a.G.subscribe("heartbeatparams",a.SK,a);a.G.subscribe("keystatuseschange",(0,g.A)(function(a){this.Kd("keystatuses",bna(a))},a));
CU(a.G,a.g.oauthToken)}else g.eV(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}};
YU=function(a){a.G&&(a.G.dispose(),a.G=null)};
KV=function(a,b,c){c=void 0===c?!1:c;if(!a.o)return 0;if(!a.g.Ba)return a.g.Kk();if(b&&(a.isPeggedToLive()||g.wQ(a.g)))return a.getCurrentTime();if(a.g.tb&&a.g.tb.g){b=a.Kc();var d=a.g.Kk();a.O&&!c&&(d-=iS(a.O));return Math.max(d,b)||0}a=a.o.g.seekable||PQ();return(1>a.length?window.NaN:a.end(a.length-1))||0};
QV=function(a,b){a.Aa=b;a.o&&a.o.Zf(b)};
zV=function(a,b){void 0==b&&(b=a.getCurrentTime());var c=b,d=KV(a,!1);if(a.g.ua){var e=a.C.experiments.o("html5_allowable_liveness_drift_chunks")||2;0<e&&!a.sa&&e--;var f=BM(a.g.ua);e=(0,window.isNaN)(f)?e:e*f}else e=window.NaN;return c>=d-e};
yV=function(a){return a.getCurrentTime()<a.Kc()-15};
RV=function(a,b){a.C.experiments.g("html5_log_rebuffer_reason")&&a.Kd("bufreason","r."+b+";lact."+g.dH())};
SV=function(a,b){TR.call(this,a,b)};
g.TV=function(a){return a.app.B};
g.UV=function(a){a=g.TV(a).I;return!!a&&a.Iz()};
VV=function(a){var b=g.TV(a);a=g.X(a);var c=b.I;return c&&c.Jz()?!a.experiments.g("mweb_autonav")||c.isAvailable:g.vQ(b.T.ga(),"ypc_module")};
g.WV=function(a,b){3==a.Za()?a.X("mdxautoplaycancel"):a.X("autonavcancel",b)};
g.X=function(a){return a.app.g};
g.$V=function(a){var b=a.app;a=a.playerType;return 3==XV(b)?g.YV(b.B).F:g.ZV(b,a).A};
g.aW=function(a){return a.app.G};
bW=function(a){var b=g.YV(g.TV(a));return a.app.Y&&!a.isFullscreen()||3==a.Za()&&b.hasNext()&&b.Rf()||!!a.Yf()};
g.cW=function(a){if(aG())if(a.isFullscreen())cG(a.getRootNode());else{a=a.getRootNode();var b=YF(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],a);b&&b.call(a)}else a.za("onFullscreenToggled",a.isFullscreen())};
g.dW=function(a){var b={};a=EV(g.ZV(a.app));a=g.la(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b[c.quality]=c;return b};
g.eW=function(a){return(a=g.ZV(a.app))?g.FJ(GU(a.ra,a.g)):"unknown"};
fW=function(a){a=(a=g.ZV(a.app))?(a=oV(a))?a.video.o:0:0;return a};
g.gW=function(a){return(a=g.TV(a).B)?a.Kz():{}};
g.iW=function(a,b){g.X(a).experiments.g("ui_logging")&&g.hW(a,"controlclicked",{controlClicked:b})};
g.hW=function(a,b,c,d){var e=g.ZV(a.app);c.event=b;a.isFullscreen()&&(c.fs=1);c.ux=1;e.logEvent(c,d)};
g.jW=function(a){a=g.TV(a).A;return!!a&&a.Vl()};
g.kW=function(a){a=g.TV(a).A;return!!a&&a.pD()};
g.lW=function(a){a=g.ZV(a.app);return!!a&&a.Ka};
g.nW=function(a,b,c){mW(a.app,b,c||a.playerType)};
g.pW=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=g.ZV(d,a))c.F.D.apply(c.F,b),a&&XV(d)!=a||oW(d,"cuerangesremoved",b)};
g.qW=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=g.ZV(d,a))b=Nma(c.F,b),a&&XV(d)!=a||oW(d,"cuerangesremoved",b)};
g.rW=function(a,b){var c=g.ZV(a.app,a.playerType);c&&kna(c,b)};
g.sW=function(a){a=a.ga().Oa;return!!a&&!sJ(a)&&"application/x-mpegURL"!=a.mimeType};
g.tW=function(a){a=a.ga();return!!(a.adaptiveFormats||a.hlsFormats||a.ze)};
g.uW=function(a,b,c){a=g.aW(a).element;var d=Ab(a.children,function(a){a=(0,window.parseInt)(a.getAttribute("data-layer"),10);return c-a||1});
0>d&&(d=-(d+1));Fd(a,b,d);b.setAttribute("data-layer",c)};
g.vW=function(a){var b=g.X(a);if(!b.rg)return!1;var c=a.ga();if(!c||3==a.Za())return!1;b=c.Ba&&(!b.experiments.g("allow_live_autoplay")||c.isLiveDefaultBroadcast);return!c.ypcPreview&&!b&&!g.jb(c.oe,"ypc")&&!a.Yf()};
xW=function(a,b,c,d){if(g.X(a).ea){a=a.app.da;g.jb(a.g,b);g.nb(a.g,b);var e=String(a.G++);b.setAttribute("data-visual-id",e);g.wW(a,"onLogClientVeCreated",{id:e,ve_type:d});g.Xe(c,(0,g.A)(a.F,a,b))}};
g.yW=function(a,b){g.X(a).ea&&a.app.da.click(b)};
g.zW=function(a,b,c){if(g.X(a).ea){a=a.app.da;var d=b.getAttribute("data-visual-id");g.jb(a.g,b);c?g.nb(a.o,d):g.pb(a.o,d);c&&!g.jb(a.A,d)&&(g.wW(a,"onLogVesShown",{ids:[d]}),g.nb(a.A,d))}};
qna=function(){a:{try{var a=window.top.location.href}catch(b){a=2;break a}a=null!=a?a==window.document.location.href?0:1:2}a={dt:jB,flash:Xi||"0",frm:a};fi(a);return a};
AW=function(){return"ytp-id-"+rna++};
g.CW=function(a){g.L.call(this);this.va={};this.Fa={};this.element=BW(this,a)};
BW=function(a,b,c){c=c||"svg"==b.H;var d=c?window.document.createElementNS("http://www.w3.org/2000/svg",b.H):g.zd(b.H);var e=b.M;if(e){if(e=DW(a,d,"class",e))EW(a,d,"class",e),a.va[e]=d}else{var f=b.ca;if(f){for(e=0;e<f.length;e++)a.va[f[e]]=d;EW(a,d,"class",f.join(" "))}}if(f=b.K){var k=0;for(e=0;e<f.length;e++){var l=f[e];if(l)if(g.u(l))l=DW(a,d,"child",l),null!=l&&d.appendChild(g.Ad(l));else if(l.element)d.appendChild(l.element);else{var m=l;l=BW(a,m,c);d.appendChild(l);m.Pa&&(m=AW(),l.id=m,l=
window.document.createElementNS("http://www.w3.org/2000/svg","use"),l.setAttribute("class","ytp-svg-shadow"),l.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+m),Fd(d,l,k++))}}}if(b=b.R)for(var n in b)c=b[n],null!=c&&EW(a,d,n,g.u(c)?DW(a,d,n,c):c);return d};
DW=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.Fa[d]=[b,c],null):d};
EW=function(a,b,c,d){if("child"==c){g.Dd(b);if(!g.ua(d)||g.xa(d)&&g.u(d.H))d=[d];c=[];for(var e=0;e<d.length;e++){var f=d[e];if(null!=f)if(!f.nodeType||1!=f.nodeType&&3!=f.nodeType)if(g.xa(f)&&g.u(f.H))c.push(BW(a,f));else if(f.element)c.push(f.element);else if(g.u(f)&&-1!=f.indexOf("\n")){f=f.split("\n");for(var k=0;k<f.length;k++)0<k&&c.push(g.zd("BR")),c.push(g.Ad(f[k]))}else c.push(g.Ad(f));else c.push(f)}for(a=0;a<c.length;a++)b.appendChild(c[a])}else"style"==c?b.style.cssText=d?d:"":null===
d?b.removeAttribute(c):b.setAttribute(c,d.toString())};
g.FW=function(a,b){a&&(a.style.display=b)};
GW=function(a,b){var c=$F("requestAnimationFrame",window);return g.$E(function(){c?c.call(window,a):a()},b||0)};
HW=function(a){if(window.document.createRange){var b=window.document.createRange();b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}};
g.Y=function(a){g.CW.call(this,a);this.g=!0;this.aa=[]};
g.IW=function(a,b){b?a.show():a.hide()};
JW=function(a){if(a){a=a.itct||a.ved;var b=g.x("yt.logging.screen.storeParentElement");a&&b&&b(new g.FG(a))}};
KW=function(a,b){var c=g.qE("VALID_SESSION_TEMPDATA_DOMAINS",[]),d=g.Hg(window.location.href);d&&c.push(d);d=g.Hg(a);if(g.jb(c,d)||!d&&g.Ha(a,"/"))if(g.DF("autoescape_tempdata_url")&&(c=window.document.createElement("a"),g.Uc(c,a),a=c.href),a&&(c=g.Fg(a),c=g.Eg(null,null,null,null,c[5],c[6],c[7]),d=c.indexOf("#"),c=0>d?c:c.substr(0,d))){if(b.itct||b.ved)b.csn=b.csn||g.vH();if(e){var e=(0,window.parseInt)(e,10);(0,window.isFinite)(e)&&0<e&&(c="ST-"+g.Wa(c).toString(36),d=b?g.Ng(b):"",XH(c,d,e||5),
JW(b))}else e="ST-"+g.Wa(c).toString(36),c=b?g.Ng(b):"",XH(e,c,5),JW(b)}};
g.LW=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.Pg(a,b)+c;a=a instanceof Bc?a:Gc(a);d.href=Cc(a)};
MW=function(a){(window.ytspf||{}).enabled?window.spf.navigate(a):g.LW(a)};
g.NW=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.qE("EVENT_ID");d&&(b.ei||(b.ei=d));b&&KW(a,b);if(c)return!1;MW(a);return!0};
g.OW=function(a,b,c){c&&KW(a,c);window.open(a,b||g.Wa(a).toString(36))};
PW=function(){g.xG.call(this);this.g=new window.Map};
RW=function(){null==QW&&(QW=new PW,wl.getInstance().I="b");return QW};
sna=function(a){switch(a){case "fully_viewable_audible_half_duration_impression":return"f";case "measurable_impression":return"b";case "overlay_unmeasurable_impression":return"g";case "overlay_unviewable_impression":return"h";case "overlay_viewable_end_of_session_impression":return"i";case "overlay_viewable_immediate_impression":return"j";case "viewable_impression":return"n";default:return null}};
TW=function(a){SW=a&&a.data};
VW=function(a){UW=a&&a.data};
WW=function(){SW=null};
g.XW=function(a){g.xG.call(this);this.g=a;this.loaded=!1};
YW=function(a){g.XW.call(this,a);this.be="";this.J=new g.uG(this);g.M(this,this.J);this.C=!1};
ZW=function(a,b,c){for(var d=0;d<b.length;d++)b[d].namespace=a.be;g.nW(a.g,b,c)};
$W=function(a){g.rW(a.g,a.be)};
aX=function(a,b,c){var d={},e;for(e in b)d[a.be+"_"+e]=b[e];b={};for(var f in c)b[a.be+"_"+f]=c[f];a=g.TV(a.g);g.Ba(a.aa,d||null);g.Ba(a.Y,b||null)};
g.bX=function(a){g.Y.call(this,a);this.Y=new g.xG;g.M(this,this.Y)};
g.cX=function(a,b,c,d){g.L.call(this);this.o=a;c||a.hide();this.B=null==d?b:d;this.g=null;this.A=new g.Ht(this.ep,0,this);g.M(this,this.A)};
dX=function(a,b){var c=a.o.element;b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")};
g.eX=function(a){var b=Math.abs(Math.floor(a)),c=Math.floor(b/86400),d=Math.floor(b%86400/3600),e=Math.floor(b%3600/60);b=Math.floor(b%60);var f="";0<c&&(f+=c+":",10>d&&(f+="0"));if(0<c||0<d)f+=d+":",10>e&&(f+="0");f+=e+":";10>b&&(f+="0");f+=b;return 0<=a?f:"-"+f};
g.fX=function(a){return(!g.qa(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};
g.iX=function(a,b){gX[hX+a]=b};
kX=function(a,b){this.g=a;this.o=g.qa(b)?b:null;if(g.jb(jX,this.g)){if(!g.qa(this.o)||0>this.o)throw Error("Must have valid offset");}else if(null!==this.o)throw Error("Must not have offset");};
lX=function(a){var b=a.o;if(null!==b)return b;switch(a.g){case 1:return 0;case 3:return-1;default:return-100}};
tna=function(a,b){var c=a.g,d=b.g;if(c!=d){if(1==c||3==d)return-1;if(1==d||3==c)return 1}var e=a.o,f=b.o;return e!=f?null===e?1:null===f?-1:e-f:c-d};
mX=function(a){this.o=a};
nX=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
oX=function(a,b){if(a){var c="getErrorCode"in a?a.Rb():null;c?b.error_code=c:(c="getMessage"in a&&g.wa(a.getMessage)?a.Ad():a.message,c=Ma(c||"",50),b.error_message=c)}};
pX=function(a,b){if(a){var c=ps(a).reverse();b.ad_id=g.rb(c,ns(a)).join(",");c=rs(a).reverse();b.ad_sys=g.rb(c,fs(a)).join(",");c=pq(a);null!=c&&(b.aqi=c)}};
qX=function(a,b){if(a[b])return nX(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return nX(a[d]);return!1};
rX=function(a,b,c){var d=new Xn;d.Vi=b.baseYtUrl;d.contentId=c.videoId;d.eu=!$N(b);d.hu=!0;d.YC=!0;d.ZC=a.V;d.showContentThumbnail=a.showContentThumbnail;d.kj={};c.kg&&(d.kj.ctrl=c.kg);c.sf&&(d.kj.ytr=c.sf);c.Um&&(d.kj.ytrcc=c.Um);c.isMdxPlayback&&(d.kj.mdx="1");a.D?(d.aq=!0,d.Pw=!0,d.showContentThumbnail=!1,d.cu=!0,d.fu=!0,d.hu=!1):a.G&&(d.aq=!0);VN&&a.Gc&&b.experiments.g("enable_skippables_on_iphone_embeds")&&(d.gy=!1);d.fy=a.g;return d};
vX=function(a){var b=new wA;b.C=a.o.Ya;var c=a.app.G.Xa();b.mj=c.width;b.lj=c.height;b.gf=c.width;b.ff=100;b.Vw=oO(sX(a));c=new Km;c.g=(0,g.A)(sX(a).experiments.g,sX(a).experiments);c.o=(0,g.A)(sX(a).experiments.o,sX(a).experiments);c.A=(0,g.A)(sX(a).experiments.A,sX(a).experiments);b.rp=c;if(c=b.Vw?nO(sX(a)):-1)b.G=c;a.o.tagForChildDirected&&(b.Uo=!0);c=tX(a);b.oc={CA_TYPE:no?"flash":"image",CONTENT_V:c.videoId,CPN:c.clientPlaybackNonce,EID:c.eventId,LACT:una(a),VIS:vna(a)};c=uX(a);null!=c&&(b.oc.P_H=
c.height,b.oc.P_W=c.width);g.Kb(qna(),function(a,c){b.oc[c.toUpperCase()]=a});
oO(sX(a))||(b.oc.LACT="-1");b.language=sX(a).Ra;var d=0;b.Im=function(){var b=new mX(a),c=wna(sX(a).experiments);if(0==d)if(a.qe("a_bid_s"),Wf(c)){var k=(0,g.A)(a.qe,a,"a_bid_f");c.then(k,k)}else a.qe("a_bid_f");xna(c,sX(a).experiments,b,d);d++;return c};
return b};
wna=function(a){function b(a){if(d)return"ERR_BID";throw a;}
var c=a.g("html5_serverside_call_server_on_biscotti_timeout"),d=a.g("html5_serverside_call_server_on_biscotti_error"),e=null,f=null;TF().then(function(a){e=a},function(a){c&&a.isTimeout?e="NO_BID":d?e="ERR_BID":f=a});
if(null!=e)return e;if(null!=f)return f;var k=a.o("html5_serverside_biscotti_id_wait_ms");if(0==k)return c?"NO_BID":d?"ERR_BID":wX;if((0,window.isNaN)(k))return a=g.jg(TF(),b),g.jg(a,g.y),a;var l;a=new g.Yf(function(a,b){l=new g.Ht(function(){c?a("NO_BID"):b(wX)},k);
l.start()});
a=g.jg(jba([TF(),a]),b);mba(g.jg(a,g.y),function(){l.dispose()});
return a};
xna=function(a,b,c,d){function e(a){a==wX||a.isTimeout?f({"bid.type":"timeout","bid.count":d,"bid.msg":a.toString(),"bid.timeout":b.o("html5_serverside_biscotti_id_wait_ms")}):f({"bid.type":"error","bid.count":d,"bid.msg":a.toString()})}
if(b.g("html5_serverside_get_biscotti_id_from_client")){var f=(0,g.A)(c.g,c,["html5_serverside_get_biscotti_id_from_client"],"coldwatch");Wf(a)?a.then(null,e):a instanceof Error&&e(a)}};
una=function(a){return{toString:function(){return null==a||a.ma()?a=null:nO(sX(a)).toString()}}};
vna=function(a){return{toString:function(){return null==a||a.ma()?a=null:a.g.co().toString()}}};
yna=function(a){return{toString:function(){if(null==a||a.ma())return a=null;var b=a.kd?a.kd.g:null;return null==b||0>b?"0":Math.ceil(.001*(0,g.G)()-b).toString()}}};
xX=function(a,b,c,d){this.o=this.B="";this.A=a;this.F=b;this.g=c;this.D=d};
yX=function(a){var b={};b.l_ns=a.F;b.l_state=a.D;b.break_type=a.A.g;b.sst=lX(a.A);b.sidx=0;a.B&&(b.at=a.B);a.o&&(b.ad_id=a.o);return b};
zX=function(){g.L.call(this);this.o=new g.Ht((0,g.A)(this.D,this),1E3);g.M(this,this.o);this.B=this.A=0;this.g=lba();this.C=!1};
CX=function(){var a=g.x("yt.www.watch.ads.loadAfc");g.wa(a)?(a(),AX=!0):BX=!0};
DX=function(){window.google_ad_output="html";window.google_ad_height="250";window.google_ad_format="300x250_as";window.google_container_id="google_companion_ad_div"};
FX=function(){var a=g.x("window.google_show_companion_ad");var b=g.x("yt.www.watch.ads.getGlobals");g.wa(a)&&g.wa(b)?(b=b(),b=!(!b||!b.length)):b=!1;b?a():EX=!0};
JX=function(a){if(P.A){if(!a)return cg();GX(a,{afvMpu:{}});return bg()}a&&sX(a);FX();HX();return IX()};
IX=function(){KX||(KX=new zX);var a=KX;a.C||(a.o.start(),a.C=!0);return a.g.g};
HX=function(){KX&&(KX.dispose(),KX=null)};
LX=function(){var a=g.x("yt.www.watch.ads.setCompanion");a&&a()};
zna=function(a){var b=g.x("yt.www.watch.ads.showForcedMpu");b&&b(a)};
MX=function(a,b,c,d){g.xG.call(this);this.g=a;this.o=d;this.videoData=null;this.adType=c;this.adSystem=b};
Ana=function(a,b,c){this.g=a;this.o=b;this.A=c||0};
NX=function(a){var b=[];(0,g.H)(a.split("_"),function(a,b){this[b]=Za(a)},b);
return new Ana(Ob(Bna,b[0])?b[0]:0,Ob(Cna,b[1])?b[1]:0,Ob(Dna,b[2])?b[2]:0)};
Ena=function(){this.clickThroughUrl="";this.isSkippable=this.isBumper=!1;this.skipShown=this.skip=g.y;this.skipTime=0;this.videoUrl=this.videoId="";this.adSystem=0;this.muteAdInfo=this.whyThisAdInfo=null;this.whyThisAdClosed=this.whyThisAdClicked=this.muteAd=this.sendAdsPing=g.y};
OX=function(a){var b={H:"div",M:"video-ads",K:[{H:"div",M:"video-ad-status-bar",K:[{H:"div",M:"video-ad-label",K:[g.U("YTP_ADVERTISEMENT")]}]},{H:"div",M:"ad-container"}]};g.Y.call(this,b);this.B=a;this.A=this.o=null};
PX=function(a){a.o||(a.o=a.va["ad-container"],g.X(a.B).Cf&&(VN&&!(0<=g.Va($i,"10.0"))&&g.X(a.B).experiments.g("disable_mweb_iphone_ad_click_handling_functionality")||g.S(a.o,"ad-container-single-media-element-annotations")));return a.o};
QX=function(a){if(!a.A){var b=g.zd("div");g.Up(b,["video-click-tracking","ad-video"]);PX(a).appendChild(b);a.A=b}return a.A};
Fna=function(a){this.g=a};
Gna=function(a){switch((0,window.parseInt)(a.toString(),10)){case 12:return 2;case 13:case 53:return 3;case 14:return 4;case 15:return 5;case 22:case 52:case 61:return 7;case 30:return 8;case 32:case 33:return 9;case 51:case 55:case 60:case 90:return 10;case 54:return 1;case 56:return 11;case 57:return 12;case 58:return 13}return 0};
RX=function(a){switch((0,window.parseInt)(a.toString(),10)){case 2:return 1;case 3:case 4:return 2;case 5:return 3;case 6:return 4;case 7:return 5;case 15:case 100:return 6;case 14:return 7;case 777:return 8;case 19:return 10;default:return 0}};
Hna=function(a,b){this.C=null;this.A=window.NaN;this.o=null;this.g=a;this.B=b};
SX=function(a,b,c){a.g.X("AD_LOGGING_EVENT",b,c)};
VX=function(a,b,c){TX(a);var d=UX(a);c&&g.Ba(d,c);d.ad_error=b;SX(a,7,d)};
UX=function(a){var b={},c=a.g.videoData,d=a.g.tn(),e=a.g.Wl();pX(a.g.Lb(),b);d&&0<d&&(b.ad_len=d);b.ad_v="0";c&&c.videoId?b.ad_v=c.videoId:e&&(c=g.Hg(e),b.ad_dom=c,(c=a.B.o)&&c.G&&(b.ad_v_url=e.substr(0,512)));e=a.g;(e=e.o?e.o.De():null)&&(b.ad_cpn=e);b.format=a.g.Af();b.at=a.g.di();b.ad_mt=Math.round(1E3*Math.max(Ina(a.g),0));return b};
TX=function(a){a.C||(a.C="InstreamAdDisplay ("+a.g.Af()+")")};
WX=function(a,b){g.L.call(this);this.B=Math.max(0,a);this.A=this.o=0;this.C=b;this.g=window.NaN};
XX=function(a,b){this.o=a;this.g=b};
YX=function(a,b){return a.o+b*a.getLength()};
ZX=function(a,b,c){if(!a.getLength())return null!=c?c:window.Infinity;a=(b-a.o)/a.getLength();return g.Xc(a,0,1)};
$X=function(){this.o=this.position=this.B=this.g=this.C=this.A=this.width=window.NaN};
aY=function(a,b,c,d,e){var f=b.tA/b.rows,k=Math.min(c/(b.vA/b.columns),d/f),l=b.vA*k,m=b.tA*k;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,q=m/b.rows,r=-b.wH*n,w=-b.Nc*q;e&&45>=f&&(q-=1/k);n-=2/k;a=a.style;a.width=n+"px";a.height=q+"px";e||(d=(d-q)/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 "+w+"px/"+l+"px "+m+"px";if(e)return new g.dd(n,
q)};
cY=function(a,b,c,d,e,f,k,l){MX.call(this,b,a,2,c);this.O=!1;this.F=this.aa=this.V=null;this.g.subscribe("control_toggle_play_pause",this.ED,this);this.g.subscribe("control_play",this.kt,this);this.g.subscribe("control_pause",this.jt,this);this.C=new Hna(this,this.g);this.A=new g.sG(this);this.B=bY(b.g.app,2);this.B.subscribe("statechange",this.CD,this);this.B.subscribe("internalAbandon",this.DA,this);this.B.subscribe("internalvideodatachange",this.DD,this);this.G=!1;this.I=this.N=null;this.D=!1;
this.ba=d;this.ha=e;this.Y=!!f;this.da=!!k;this.L=l;this.J=new WX(15E3,(0,g.A)(this.abort,this));this.fa=b.o.V&&"3"==sX(b).B};
eY=function(a,b){if(!a.ma()&&a.fa){var c=a.g.app.G;$N(c.app.g);c.F=!b;dY(c)}};
iY=function(a){QP("ad_to_video",["pbresume"]);a.L&&g.FP("yt_abt",a.L,"ad_to_video");a.videoData&&a.videoData.clientPlaybackNonce&&g.FP("ad_cpn",a.videoData.clientPlaybackNonce,"ad_to_video");a.videoData&&a.videoData.videoId&&g.FP("ad_docid",a.videoData.videoId,"ad_to_video");g.EP("adc",void 0,"ad_to_video");var b=a.g.o;if(b&&(b.sa||b.Aa||b.Fa||b.Ka)){var c=fY(a.g);if(c&&null!==a.N){a.videoData&&null!==a.I&&(a.videoData.hd=a.I);var d=c.getVolume();1E-6>=Math.abs(d-a.N*b.L)&&c.setVolume(a.N)}}tV(bY(a.g.g.app,
2));gY(a.g,0);hY(a.g,0);a.X("adEnd",a);eY(a,!0)};
jY=function(a,b){sX(a.g).experiments.g("html5_ad_error_releases")?tV(a.B):UU(a.B);gY(a.g,0);a.X("adError",b)};
Ina=function(a){return a.B?a.B.getCurrentTime():0};
kY=function(a){a=a.Lb();return a?(a=a.G.get("why_this_ad"))?{menuTitle:a.B,closeButton:a.A,targetingReasonHeader:a.C,targetingReasons:g.sb(a.D),adSettingsLink:g.sb(a.o),controlText:a.G,continueButton:a.F,cancelButton:a.J}:null:null};
lY=function(a){a=a.Lb();if(!a)return null;a=a.G.get("mute");if(!a)return null;for(var b=jt(a),c=[],d=0;d<b;d++)c.push({label:a.o[d].label,url:a.o[d].url});return{goneText:a.A,questionText:a.C,undoText:a.D,hoverText:a.B,surveyOptions:c}};
mY=function(a,b){a.videoData&&(a.I=a.videoData.hd);a.N=b.getVolume()};
Jna=function(a,b){this.g=a;this.C=b;this.g.Af();this.o=this.B=0;this.A=null};
nY=function(a,b,c){a.g.X("AD_LOGGING_EVENT",b,c)};
oY=function(a){var b={};pX(a.g.Lb(),b);a.B&&a.o&&(b.ot=a.o-a.B);var c=a.C.isFullscreen()?2:a.C.app.pa?1:0;b.ad_ps=c;b.format=a.g.Af();b.at=a.g.di();return b};
pY=function(a,b,c,d){MX.call(this,b,a,1,c);this.A=null;this.D=!1;this.G=null;this.C=new Jna(this,b);this.B=new g.sG(this);this.F=!!d};
qY=function(a,b){var c=a.g.getRootNode();g.T(c,"ytp-ad-overlay-open",b);g.T(c,"ytp-ad-overlay-closed",!b)};
rY=function(a,b,c,d){g.L.call(this);this.I=null;this.G=a;this.o=b.Pb;this.C=b;this.slotId=b.getId();this.g=c;this.D=d;this.A=new xX(this.o,this.G,c,d);this.kb=null;this.L=new g.nm(this);this.B=new g.nm(this);this.J=/^(http(s)?:\/\/)(.*.)?youtube.com\/.*$/};
sY=function(a,b){a.I=b;var c=b.Af();a.A.B=c};
tY=function(a,b){var c=g.x("yt.www.watch.ads.setAdId");c&&c(b);a.A.o=b};
uY=function(a){JX(a.g).then(function(){this.A.C()},g.y,a)};
Kna=function(a){this.g=a};
vY=function(a){MX.call(this,a,2,3,null)};
wY=function(a,b,c){rY.call(this,2,a,b,c);this.F=new Kna(this.g.o);DX()};
Lna=function(a,b){this.g=a?a:"";this.gc=b};
xY=function(a,b,c,d){pY.call(this,1,a,b,d);this.I=c};
yY=function(a,b,c){rY.call(this,1,a,b,c);this.F=new Lna(this.g.o.adTag,this.slotId,sX(this.g).experiments)};
zY=function(a,b){var c=b.o;this.F=c.forceAdUrl;var d=0;c=c.forceAdType.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);rY.call(this,2,a,b,d)};
Mna=function(a){a=Wq(a);var b=Xq(a);return{plaShelfItemRenderer:{headline:AY(a.nd()),merchant:AY(Zq(b)),image:{thumbnails:[{url:$q(a).getImageUrl()}]},priceText:AY(ar(b)),reviewText:AY(qr(b,"review_text")),rating:rv(b,"rating",0),clickthroughEndpoint:{webNavigationEndpointData:{url:cr(Lv(b))},urlEndpoint:{url:cr(Lv(b)),target:"TARGET_NEW_WINDOW"}}}}};
AY=function(a){return{runs:[{text:a}]}};
Ona=function(){BY||(BY=Nna()?bg():new g.Yf(function(a){g.NG("watchAdsInit",a)}));
return BY};
Nna=function(){var a=g.x("yt.www.watch.ads.promotionShelfShow");return g.wa(a)};
Pna=function(a){var b=g.x("yt.www.watch.ads.promotionShelfClear");b&&b();b=g.x("yt.www.watch.ads.promotionShelfShow");null!=b&&b(a)};
CY=function(){this.B=new g.Y({H:"button",ca:["ad-carousel-nav-button","ad-carousel-nav-prev"],R:{type:"button",onclick:"return false;"},K:[{H:"span",ca:["ad-carousel-prev-icon","yt-uix-tooltip","yt-sprite"],R:{"data-tooltip-text":"Prev",title:"Prev"}}]});g.M(this,this.B);this.B.U("click",this.F,this);this.A=new g.Y({H:"button",ca:["ad-carousel-nav-button","ad-carousel-nav-next"],R:{type:"button",onclick:"return false;"},K:[{H:"span",ca:["ad-carousel-next-icon","yt-uix-tooltip","yt-sprite"],R:{"data-tooltip-text":"Next",
title:"Next"}}]});g.M(this,this.A);this.A.U("click",this.D,this);g.Y.call(this,{H:"div",M:"ad-carousel",K:[{H:"div",M:"ad-carousel-clip",K:[{H:"ul",ca:["ad-carousel-list","ad-carousel-list-animation"],K:["{{items}}"]}]},this.B,this.A]});this.C=this.va["ad-carousel-list"];this.o=0;this.La=[]};
Qna=function(a,b){a.clear();a.La=(0,g.J)(b,function(a){var b=new g.Y({H:"li",M:"ad-carousel-listitem",K:[{H:"div",M:"ad-carousel-item",K:[a]}]});g.M(b,a);return b});
a.Ga("items",a.La)};
EY=function(a){a.C&&g.nh(a.C,"left",(2>a.La.length?0:-a.o*a.La[1].element.clientWidth)+"px");g.IW(a.B,0<a.o);g.IW(a.A,a.o<a.La.length-DY(a))};
DY=function(a){return 2>a.La.length?1:Math.round((a.element.clientWidth-a.La[0].element.clientWidth)/a.La[1].element.clientWidth)+1};
JY=function(a){var b=Wq(a),c=Xq(b),d=["iv-btp-small-card"];d.push("yt-uix-hovercard-target");var e={href:cr(Lv(c)),target:"_blank"},f={H:"div",ca:["iv-btp-card-image","yt-uix-hovercard-anchor"],K:[{H:"span"},{H:"div",M:"iv-btp-card-image-aligned",K:[{H:"img",R:{src:$q(b).getImageUrl()}}]}]},k={H:"div",M:"iv-btp-card-info",K:[{H:"span",M:"iv-btp-card-action",K:[ar(c)]},FY(a)]};var l=Wq(a);var m=Xq(l);l={H:"div",ca:["yt-uix-hovercard-content","iv-btp-hovercard"],K:[{H:"div",M:"iv-btp-hovercard-text-box",
K:[{H:"a",R:{href:cr(Lv(m)),target:"_blank"},K:[{H:"div",ca:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-btp-hovercard-headline"],K:[l.nd()]}]},{H:"div",M:"iv-btp-hovercard-info",K:[{H:"span",M:"iv-btp-hovercard-action",K:[ar(m)]},FY(a)]},GY(a)]}]};d={H:"div",ca:d,R:{"data-position":"bottomright","data-orientation":"vertical"},K:[f,k,l]};b={H:"div",M:"iv-btp-large-card",K:[{H:"div",M:"iv-btp-card-image",K:[{H:"span"},{H:"div",M:"iv-btp-card-image-aligned",K:[{H:"img",R:{src:$q(b).getImageUrl()}}]}]},
{H:"div",M:"iv-btp-card-info",K:[{H:"div",M:"iv-btp-card-text-box",K:[{H:"div",M:"iv-btp-card-text-valign",K:[{H:"div",ca:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-btp-card-headline"],K:[b.nd()]}]}]},{H:"span",M:"iv-btp-card-action",K:[ar(c)]},FY(a),GY(a)]}]};c=[];a=Xq(Wq(a));f=g.ec(g.HY.Fv,g.IY.hG);for(k=0;k<vv(a,"event");k++)l=new Av(uv(a,"event",k)),7==l.Yb()&&(l=g.xm(qr(l,"base_url"),f),c.push({H:"img",R:{src:l}}));g.bX.call(this,{H:"div",M:"iv-btp-card",K:[{H:"a",M:"iv-btp-card-content",R:e,K:[{H:"div",
K:[d,b,{H:"div",M:"iv-btp-impressions",K:c}]}]}]})};
GY=function(a){a=Xq(Wq(a));return.01>rv(a,"rating",0)?{H:"div"}:{H:"div",M:"iv-btp-card-review",K:[{H:"div",M:"iv-btp-card-rating",K:[{H:"span",M:"iv-btp-card-rating-bg",K:[{H:"span",M:"iv-btp-card-rating-fg",R:{style:"width: "+Math.floor(100*rv(a,"rating",0)/5)+"%;"}}]}]},{H:"span",M:"iv-btp-card-reviews",K:[qr(a,"review_text")]}]}};
FY=function(a){return{H:"div",M:"iv-btp-card-merchant",K:[{H:"span",M:"iv-btp-card-merchant-text",K:[Zq(Xq(Wq(a)))]}]}};
KY=function(){this.o=new CY;this.C=new g.uG(this);g.M(this,this.C);this.D=new g.Ht(this.Xt,200,this);g.M(this,this.D);var a={H:"div",M:"iv-btp-companion",K:[{H:"div",M:"iv-btp-block-clicks"},{H:"div",M:"iv-btp-attribution",K:[{H:"span",M:"iv-btp-title",K:["{{title}}"]},{H:"div",ca:["yt-uix-hovercard","ad-info-container"],K:[{H:"span",M:"iv-btp-sponsored",K:[g.U("YTP_SPONSORED"),{H:"span",M:"yt-uix-hovercard-target",R:{"data-position":"topright","data-orientation":"horizontal"},K:[{H:"span",M:"ad-info-icon"}]}]},
{H:"div",M:"yt-uix-hovercard-content",K:[{H:"span",M:"ytp-ad_settings",K:[g.U("YTP_SPONSORED_PRODUCT_INFO")]}]}]}]},this.o]};g.bX.call(this,a);this.B=this.va["iv-btp-block-clicks"];this.A=new g.Ht(g.Aa(function(a){g.O(a,!1)},this.B),1E3);
g.M(this,this.A);this.C.P(window,"resize",this.vI)};
Rna=function(a,b){a.clear();g.O(a.B,!0);var c=(0,g.J)(b,g.Aa(function(a){return new JY(a)}));
a.Ga("title",0<b.length?qr(b[0],"teaser_text"):"");Qna(a.o,c);a.Xt()};
LY=function(a,b){MX.call(this,a,14,14,b);this.A=new KY(sX(this.g).experiments);g.M(this,this.A)};
Sna=function(a){return(0,g.Id)(a.o.Lb().B,function(a){return tv(a.Ye(),"show_in_promotion_shelf")})};
MY=function(a,b,c){rY.call(this,14,a,b,c)};
NY=function(a,b,c){rY.call(this,14,a,b,c)};
Tna=function(a,b,c,d,e){this.B=a;this.o=b;this.g=c;this.F=sX(this.B);this.C=d;this.D=tX(this.B).lengthSeconds;this.G=e;this.A="html5";g.aO(this.F)?this.A="html5_embed":VN||UN?this.A="html5_ios":TN("android")?this.A="html5_android":zF()?this.A="html5_wp":vF()?this.A="html5_ps3":g.vO(this.F)?(a=(g.Sb(window,"environment","brand")||"").toLowerCase(),b=(g.Sb(window,"environment","model")||"").toLowerCase(),this.A="roku"==a||"bskyb"==a?"roku":"wiiu"==b?"wii":"html5_tv_leanback"):yF()?this.A="html5_wii":
this.A="html5_desktop"};
Una=function(a){return OY(a.o)?"preroll":PY(a.o)?"postroll":"midroll"};
Vna=function(a){return(a=a.B.A)?(0,g.Ik)(a.Eb,function(a){return QY(a)||PY(a)}):!1};
RY=function(a,b){pY.call(this,4,a,b)};
SY=function(a,b,c){rY.call(this,4,a,b,c);var d=this.g.o;this.F=g.F(d.Ab);var e=tX(this.g)&&tX(this.g).spacecastModule;this.N=new Tna(b,a,d,c,!!e)};
TY=function(a,b){this.o=a;this.g=b};
Wna=function(a){return 0<(a.g&3)};
UY=function(a,b,c,d,e){g.xG.call(this);this.F=!0;this.o=!1;this.isVisible=!0;this.B="unloaded";this.G=!1;this.ya=b;this.A=a;this.Pb=c;this.D=d;this.C=this.g=null;this.I=!!e};
WY=function(a){return OY(a)?a.Sb()&&VY(a)?-0x8000000000000:0:g.qa(a.Pb.o)?1E3*lX(a.Pb):0x8000000000000};
Xna=function(a){var b=!sX(a.A).experiments.g("disable_fetching_previous_nonadjacent_midrolls");return OY(a)||b&&a.A.g&&1E3*a.A.g.getCurrentTime()>=WY(a)?!1:(0,g.Nr)(a.D,function(a){switch(a.Yb()){case 1:case 2:case 5:return!0;default:return!1}})};
OY=function(a){return 1==a.Pb.g};
VY=function(a){if(!a.Sb())throw Error("Preroll status is undefined before ad load.");return OY(a)&&a.o};
QY=function(a){return 2==a.Pb.g};
PY=function(a){return 3==a.Pb.g};
$Y=function(a){a.B="loading";OY(a)&&!(0,g.Ik)(a.D,Wna)&&$W(a.A);if(a.I)a.B="loaded",a.o=!0,XY(a);else{var b=a.D.shift();b?(OY(a)&&a.A.qe("nl"),b=b.create(a,a.A),g.M(a,b),b.load()):a.A.o.J&&5!=a.Pb.g?Yna(a,new vY(a.A),a.Pb):(YY(a.A,2,ZY(a,{})),Zna(a,!1),a.B="error",XY(a))}};
aZ=function(a){a.g&&(a.g.unsubscribe("adEnd",a.HA,a),a.g.unsubscribe("adError",a.tD,a),a.g.unsubscribe("AD_LOGGING_EVENT",a.vD,a),a.g.unsubscribe("select",a.sD,a),a.g.unsubscribe("adCompanionInitialized",a.uD,a))};
Yna=function(a,b,c){a.g=b;a.Pb=c;g.M(a,a.g);0==a.ya&&(b=a.g.di(),a.A.Y.at=b);a.g instanceof cY?a.o=!0:a.g instanceof vY?a.isVisible=!1:a.g instanceof RY?a.isVisible=!1:a.g instanceof xY&&(a.isVisible=!1);a.B="loaded";XY(a)};
XY=function(a){a.X("adBreakComplete",a)};
Zna=function(a,b){a.C&&(a.C.Rj({FILLED_OPPORTUNITY:b?1:0}),a.C.dispose(),a.C=null)};
ZY=function(a,b){b.break_type=a.Pb.g;b.sst=lX(a.Pb);b.sidx=0;return b};
$na=function(a){var b=0;a.aa&&(b|=1);a.Y&&(b|=2);var c=0;a.N&&a.O&&(c=4);a=new Pl;a.set(3,b);a.set(4,c);return a};
aoa=function(a,b){var c=[];if(a.da)return c.push("pla"==(a.forceAdType||"").toLowerCase()?new TY(8,16):new TY(4,0)),c;if(a.independentBreakOffsets&&5==b)return a.ka&&c.push(new TY(7,16)),c;if(a.fa){var d=0;if(a.A||a.C)d|=1;a.ha&&(d|=4);a.J&&(d|=8);c.push(new TY(5,d))}a.ea&&(d=0,a.A&&(d|=1),a.C&&(d|=2),a.ha&&a.N&&(d|=4),a.J&&a.N&&(d|=8),d&&c.push(new TY(2,d)));d=$na(a);var e=d.get(3);e&&c.push(new TY(1,e));!a.independentBreakOffsets&&a.ka&&c.push(new TY(7,16));(d=d.get(4))&&c.push(new TY(1,d));return c};
boa=function(a){this.g=a};
doa=function(a){var b=[];(0,g.H)(coa(a),function(a,d){var c=this.g;var f=aoa(this.g.o,a.g);c=new UY(c,d,a,f);b.push(c)},a);
return b};
coa=function(a){var b=a.g.o;a=[];if(b.pa)for(var c=b.pa.split(","),d=0;d<c.length;d++){var e=Za(c[d]);e=0>e?new kX(3):0<e?new kX(2,e):new kX(1);a.push(e)}else a=eoa;if(b.independentBreakOffsets)for(b=b.independentBreakOffsets.split(","),d=0;d<b.length;d++)a.push(new kX(5,Za(b[d])));g.Bb(a,tna);return a};
ioa=function(a,b){this.I=a;this.D=this.I.isMobile;this.G=g.vO(this.I);this.B=this.D||this.G;this.Gc=g.aO(this.I);this.V=!this.G&&!$N(a);this.A=nX(b.instream);this.isLiveStream=1==b.livestream;this.C=nX(b.trueview);this.ba=nX(b.aftv);this.pa=b.ad_slots;this.independentBreakOffsets=b.independent_break_offsets;this.adFlags=b.ad_flags||0;this.ib=b.cafe_experiment_id;this.adTag=b.ad_tag;this.Hd=!!b.adtest;this.afvAdTag=b.afv_ad_tag;this.ob=foa(this.afvAdTag);this.afvInvideoAdTag=b.afv_invideo_ad_tag;this.Ra=
(0,window.parseInt)(b.ad_age,10);this.applyFadeOnMidrolls=!!b.apply_fade_on_midrolls&&(this.A||this.C)&&!this.I.aa;this.ub=b.cid;this.Ta=GN(b);this.excludedAds=b.excluded_ads;this.fadeInDurationMilliseconds=(0,window.parseInt)(b.fade_in_duration_milliseconds,10)||0;this.fadeInStartMilliseconds=(0,window.parseInt)(b.fade_in_start_milliseconds,10)||0;this.fadeOutDurationMilliseconds=(0,window.parseInt)(b.fade_out_duration_milliseconds,10)||0;this.fadeOutStartMilliseconds=(0,window.parseInt)(b.fade_out_start_milliseconds,
10)||0;this.Ya=(0,window.parseInt)(b.forced_skip_offset,10);this.forceAdType=b.force_ad_type;this.forceAdUrl=b.force_ad_url;this.Ab=b.freewheel_ad_tag;this.gender=Vb(goa,function(a){return a==b.ad_gender});
this.ra=b.dbp;this.O=nX(b.afv)&&!this.B;this.Y=this.ba&&this.C;this.aa=this.ba&&this.A&&!nX(b.no_afv_instream);this.ea=nX(b.dclk);nX(b.gpt_migration);this.da=nX(b.forced_ad);this.fa=1==(0,window.parseInt)(b.tpas_ad_type_id,10);this.Id=!!b.fqsf;this.ha=nX(b.invideo)&&!this.B;this.J=nX(b.mpu)&&!this.B;g.jb(this.ob,"yt_mabv");this.ka=!!b.pla;this.Hc=nX(b.shortform);this.N=nX(b.sffb);this.bb=b.ad_language_iso639_2;this.o=this.B||!this.I.experiments.g("disable_client_side_midroll_freq_capping")?(0,window.parseInt)(b.midroll_freqcap,
10):-1;(0,window.isNaN)(this.o)&&(this.o=-1);this.midrollPrefetchSize=(0,window.parseInt)(b.midroll_prefetch_size,10)||0;this.Oc=b.pla_ad_tag;this.tagForChildDirected=nX(b.tag_for_child_directed);this.serverPrefetchedVast=b.server_prefetched_vast;this.surveyCreativeData=b.surveyCreativeData;this.yc=this.ba&&this.N&&!this.O;this.uc=this.O||this.yc;this.gd=(0,window.parseInt)(b.ad_device,10);this.Na=b.tpas_video_id;this.Va=b.tpas_partner_id;this.vmap=b.vmap;this.sc=this.I.sc;this.showContentThumbnail=
!0;g.pa(b.show_content_thumbnail)&&(this.showContentThumbnail=b.show_content_thumbnail);this.g=hoa(b.serialized_ad_ux_config);this.L=(this.F=!this.A&&!this.C||this.I.aa||null==this.g||null==K(this.g,1)||null==K(He(this.g),5)?!1:!0)&&null!=K(Je(He(this.g)),5)?(0,window.parseInt)(K(Je(He(this.g)),5),10)/100:1;this.Ib=this.F&&null!=K(Je(He(this.g)),4)?(0,window.parseInt)(K(Je(He(this.g)),4),10):null;this.Jb=this.F&&null!=K(Je(He(this.g)),8)?(0,window.parseInt)(K(Je(He(this.g)),8),10):null;this.Fa=this.F&&
K(Je(He(this.g)),3)?!0:!1;this.sa=this.F&&K(Je(He(this.g)),6)?!0:!1;this.Aa=this.F&&K(Je(He(this.g)),2)?!0:!1;this.Ka=this.F&&K(Je(He(this.g)),7)?!0:!1};
foa=function(a){if(!a||E(g.F(a)))return[];a=g.Fg(a)[6]||null;if(!a)return[];var b=null;Jg(a,function(a,d){b||"channel"!=a||(b=d)});
return b?b.split("+"):[]};
hoa=function(a){if(a)try{var b=g.xg(a);return new Fe(b)}catch(c){}return null};
bZ=function(a,b){g.L.call(this);this.C=a;this.xe=new g.nm(this);g.M(this,this.xe);this.o=null;this.g=!1;this.xe.U(b,"companionImpression",this.B);this.xe.U(b,"companionClick",this.A)};
cZ=function(a){g.L.call(this);this.g=a;this.o=window.NaN;this.C={};a=a.o;this.D=a.fadeInDurationMilliseconds;this.F=a.fadeInStartMilliseconds;this.A=a.fadeOutDurationMilliseconds;this.B=a.fadeOutStartMilliseconds;this.GC()};
joa=function(a,b){a.C[b]&&(g.pW(a.g.g,[a.C[b]],void 0),delete a.C[b])};
koa=function(a,b,c,d){0>=c||((0,window.isNaN)(a.o)||g.YE(a.o),c=(0,g.G)()+c,a.o=0==d?GW((0,g.A)(a.HD,a,b,c,100),0):GW((0,g.A)(a.GD,a,b,c,100),0))};
dZ=function(a,b,c){sX(a.g);a=tX(a.g).hd;b.setVolume(c*a)};
eZ=function(a){cZ.call(this,a)};
fZ=function(a,b,c){g.L.call(this);this.g=a;this.D=b;this.B=c;this.o=-1;this.C=window.NaN;this.B&&0<this.g.o.o&&this.g.subscribe("endseeking",this.A,this)};
loa=function(a,b){gZ(a);0<b&&(a.C=g.$E((0,g.A)(a.A,a),1E3*b))};
gZ=function(a){g.YE(a.C);a.C=window.NaN};
iZ=function(a,b){if(!a.B||!QY(b)&&!PY(b))return!1;var c=a.g.o.o;if(0>=c||0>=a.o)return!1;var d=(0,g.G)()/1E3,e=hZ(a,b)-a.g.g.getCurrentTime();0<e&&(d+=e);return d-a.o<=c};
hZ=function(a,b){return PY(b)?a.g.g.ga().lengthSeconds:lX(b.Pb)};
jZ=function(a,b){g.L.call(this);this.J=this.g=null;this.N=[];this.O=window.NaN;this.Eb=b;this.G=[];this.A={};this.D={};this.o=a;var c=a.o,d=!c.isLiveStream&&(0,g.Ik)(this.Eb,function(a){return QY(a)||PY(a)});
this.C=new fZ(this.o,this,d);this.B=c.applyFadeOnMidrolls?new cZ(a):new eZ(a);this.ba=(0,g.Ik)(this.Eb,function(a){return OY(a)})};
noa=function(a){a.G.length||(a.G=(0,g.Id)(a.Eb,function(a){return"unloaded"==a.B}),0==a.G.length?$W(a.o):(a.ba||$W(a.o),moa(a)))};
moa=function(a){if(a.G.length){var b=a.G.shift();b.subscribe("adBreakComplete",a.Fj,a);b.subscribe("adCompanionInitialized",a.Us,a);$Y(b)}};
ooa=function(a,b){function c(a){return a&&5!=a.Pb.g}
var d=(0,g.ib)(a.Eb,b),e=g.ub(a.Eb,0,d);d=g.ub(a.Eb,d+1);return{previous:g.eb(e,c),next:g.eb(d,c)}};
poa=function(a,b,c){var d=WY(b);if(!(0,window.isNaN)(d)){var e={};e.priority=-2!=lX(b.Pb)?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.B.zC(b,d);c=a.B.yC(b,c);c=new g.VJ(d,c,e);a.D[b.getId()]=c;ZW(a.o,[c]);a.B.Pv(b)}};
qoa=function(a,b){var c=b.getId();a.D[c]&&(joa(a.B,c),g.pW(a.o.g,[a.D[c]],void 0),delete a.D[c])};
roa=function(a,b){if(g.t(b)){var c=a.dj(b);if(c)if(a.g==c&&!c.o&&c.isVisible)c.show();else{if(a.g){if(5==c.Pb.g){a.g.o?a.N.push(b):c.show();return}a.Wh(a.g)}if(iZ(a.C,c))a.g=null,c=a.D[c.getId()],c.visible||(c.visible=!0,ZW(a.o,[c],1));else{5!=c.Pb.g&&(a.g=c);c.subscribe("adBreakComplete",a.zl,a);c.subscribe("adCompanionInitialized",a.Us,a);if(c.o){1!=c.Pb.g&&QP("video_to_ad",["apbs"]);var d=a.o;d.L=!0;d.B||kZ(d);d=a.C.o;d={tfla:0<d?Math.floor((0,g.G)()/1E3-d):0};a.o.Yi.g(lZ,"show_instream_ads",d)}a.B.ID(c);
c.show()}}}};
mZ=function(a,b,c){jZ.call(this,a,b);this.I=[];this.L=[];this.F=[];this.aa=c;this.Y=window.NaN;this.V=a.o.o;var d=!sX(a).experiments.g("disable_fetching_previous_nonadjacent_midrolls"),e=1E3*a.g.getCurrentTime();d=d?null:gb(b,function(b){return a.g&&e>=WY(b)});
if(1<=c)for(c=0;c<b.length;c++){var f=b[c];if(Xna(f)&&f!=d){var k=new UY(f.A,f.ya,f.Pb,f.D,!0);b[c]=k;this.I.push(f)}}this.ba||this.Ij()};
nZ=function(a){g.YE(a.Y);a.Y=window.NaN};
oZ=function(a,b){jZ.call(this,a,b);this.Y=a;this.aa=!0;this.I=[];this.fa=1;this.L=0};
soa=function(a){if(null==a.g&&0<a.I.length){var b=a.I[0];b.isVisible?(a.aa=a.F.isPeggedToLive(),a.da=Math.ceil((0,g.G)()/1E3),b.subscribe("adBreakComplete",a.V,a),a.g=b,b.show()):a.V()}else null!=a.g&&a.L++};
toa=function(a,b){this.I=a;this.D=b;this.G=(0,g.G)();this.C=0;this.g=a.o;this.B={};this.F=new Fna(a);var c=[];this.g.fa&&this.g.A&&c.push("4_2");this.g.ea&&(this.g.A&&c.push("1_2"),this.g.C&&c.push("1_2_1"),this.g.ha&&c.push("1_1"),this.g.J&&c.push("1_3"));this.g.Y&&c.push("2_2_1");this.g.aa&&c.push("2_2");this.g.O&&c.push("2_1");this.g.uc&&c.push("2_3");this.g.ka&&c.push("14_14");this.o=c.join(",");this.A="";this.B.allowed=this.o;(c=this.g.excludedAds)&&(this.B.ex_ads=c)};
pZ=function(a,b,c){g.L.call(this);this.o=a;this.B=b;this.kd=c;this.C=this.D=-1;this.g=uoa(this.B.We());a=this.B.We();a.length&&(a=a[a.length-1],-1==a&&ZW(this.o,[this.g[a]]));0<this.o.o.o&&this.o.subscribe("endseeking",this.A,this)};
voa=function(a,b){qZ(a);0<b&&(a.C=g.$E((0,g.A)(a.A,a),1E3*b))};
qZ=function(a){-1!=a.C&&(g.YE(a.C),a.C=-1)};
uoa=function(a){if(!a.length)return{};for(var b={},c=0;c<a.length-1;c++){var d=a[c];var e=a[c+1];e=-1==e?0x8000000000000:1E3*e;b[d]=new g.VJ(-1==d?0x8000000000000:1E3*d,0x8000000000000==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new g.VJ(-1==d?0x8000000000000:1E3*d,0x8000000000000,{id:String(d),visible:!0});return b};
rZ=function(){g.L.call(this)};
woa=function(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;var b=0;(0,g.H)(a.split(":"),function(a){b=60*b+Math.abs((0,window.parseFloat)(a))});
return 1E3*b};
sZ=function(a){g.L.call(this);this.g=a;this.o=null;this.A={};this.C={};a=a.o;this.D=a.fadeInDurationMilliseconds;this.I=a.fadeInStartMilliseconds;this.J=a.fadeOutDurationMilliseconds;this.B=a.fadeOutStartMilliseconds;this.L=1E3*this.g.g.ga().lengthSeconds;this.F=this.B+this.J;this.G=new g.uG(this);g.M(this,this.G);this.G.P(this.g.g,"applicationplayerstatechange",this.SD)};
tZ=function(a,b){return 0!=b&&-1!=b&&-2!=b&&0<b&&b<a.L};
xoa=function(a){a=a.getAttribute("breakType");return!!a&&(0,g.Ik)(a.split(","),function(a){a=Ta(a);return"linear"==a})};
yoa=function(a){var b=3;var c=!0;b=b?b:0;c=c?c:!1;var d=(0,window.parseFloat)(g.Ra(a/1E3,2,b));a=Math.floor(d/60);var e=Math.floor(a/60);a%=60;b=g.Ra(d%60,2,b);c=b=e||c?e+":"+g.Ra(a,2)+":"+b:a+":"+b;return 1==c.split(":")[0].length?"0".concat(c):c};
Aoa=function(a,b){var c=Math.max(Math.abs(a.B),Math.abs(a.F));(0,g.H)(b,(0,g.A)(function(a){var d=(0,g.Ik)(b,function(b){return a!=b&&b>=a-c&&b<=a+c}),f=zoa(this,a);
!d&&f&&(this.A[f]=a)},a));
return 0<g.Nb(a.A)};
zoa=function(a,b){var c=1E3*Math.round((b+a.F)/1E3),d=b+a.B,e=b+a.I;return tZ(a,b)&&tZ(a,c)&&tZ(a,d)&&tZ(a,e)?c:null};
Boa=function(a,b,c,d){0>=c||(d=0==d?a.RD:a.QD,c=(0,g.G)()+c,a.o=GW((0,g.A)(d,a,b,c,100),0))};
uZ=function(a,b,c){a=tX(a.g).hd;b.setVolume(c*a)};
vZ=function(a){g.L.call(this);this.kd=this.A=this.B=this.F=this.o=null;this.L=this.I=!1;this.g=a;this.G=this.kb=null;this.N={};this.O=new g.nm(this);this.C=new g.nm(this);this.J=new g.uG(this);g.M(this,this.J);this.D=null};
Coa=function(a,b,c){a=a.cloneNode(!0);a.setAttribute("timeOffset",b);(0,g.H)(a.getElementsByTagName("VASTAdTagURI"),function(a){if("end"==b){var d="post";var f=-1;var k="postroll"}else d="mid",f=woa(b).toString(),k="midroll";var l={"[INDEX]":c.toString(),"[POSITION]":d,"[START]":f,"[GPTPOS]":k};a.textContent=a.textContent.replace(/\[[A-Z_]+\]/g,function(a){return l[a]||a})});
return a};
Doa=function(a,b){var c=g.yr(b);if(!c)return null;var d=g.Ld(c);if(!d)return c;var e=g.eb(g.Jd(d),function(a){return"#1"==a.getAttribute("timeOffset")});
if(e){var f=g.eb(g.Jd(e),function(a){return"vmap:Extensions"==a.tagName}),k=f?g.Jd(f):[];
k=g.eb(k,function(a){return"YTBreakTime"==a.getAttribute("type")});
f=(f=f.removeChild(k))?g.Jd(f):[];var l=e,m=1;(0,g.H)(f,function(a){a=a.getAttribute("timeOffset");a=Coa(e,a,m);m++;d.insertBefore(a,l.nextSibling);l=a});
d.removeChild(e)}a.D.OB(d)||(g.Ye(a.D),a.D=new rZ);return c};
Eoa=function(a){var b=rX(a.g.o,sX(a.g),tX(a.g));b.EH=!0;b.aw=!1;b.KB=10;b.lt=a.D.Ax();return b};
Foa=function(a,b){var c=a.kd?a.kd.g:0;c={tfla:0<c?Math.floor((0,g.G)()/1E3-c):0};a.g.Yi.g(lZ,b,c)};
Hoa=function(a,b){if(b){DX();var c=JX(a.g),d=yC(a.o);if(d){var e=d.bf();d=g.jb(jX,e)?new kX(e,d.Ac):new kX(e);e=NX(qq(b));d=new xX(d,e.g,a.g,14==e.o?16:4);c.then(d.C,g.y,d)}}else a.g.o.J&&(a.B=new vY(a.g),Goa(a,a.B),a.B.show())};
xZ=function(a,b){b&&"adLoadError"==b.Yb()&&(sX(a.g).experiments.g("enable_no_ads_ping_for_mpu_disable")&&!a.g.o.J&&a.PD(yC(a.o),0,2,{}),wZ(a))};
yZ=function(a){a.B&&(a.B.dispose(),a.B=null)};
zZ=function(a){var b=rs(a);a=0<b.length?b.pop():fs(a);a=Ioa[a.toUpperCase()];return null!=a?a:0};
wZ=function(a){a.I||($W(a.g),a.I=!0)};
Goa=function(a,b){b.subscribe("AD_LOGGING_EVENT",(0,g.A)(a.PD,a,yC(a.o),b.adType))};
AZ=function(a){g.Y.call(this,{H:"div",M:"ytp-ad-notification-container",K:["{{content}}"]});this.T=a;this.o=null;this.C=-1;this.A=new g.cX(this,250,!1,150);g.M(this,this.A);this.P(this.T,"adnotify",this.Al);this.P(this.T,"discardadnotify",this.Cl)};
CZ=function(a,b){YW.call(this,b);this.be="ad";this.app=a;this.o=this.A=this.D=null;this.L=this.V=!1;this.B=this.kb=null;P.o=!0;P.J=!1;P.ba=!1;P.Y=!0;var c=P,d=!g.rF();c.I=d;P.F=0;c=a.g.experiments.o("sdk_wrapper_levels_allowed");!(0,window.isNaN)(c)&&0<c&&(P.N=c);BZ(this)&&(P.A=!0);this.G=null;this.aa={};this.Y={at:"0"};c=g.X(this.g).experiments;if(c.g("enable_midroll_notify")||c.g("enable_postroll_notify"))c=new AZ(this.g),g.M(this,c),g.uW(this.g,c.element,4);this.F=new OX(this.g);g.uW(this.g,this.F.element,
4);this.N=this.ba=null;this.O=-1;this.Yi=new mX(this);this.I=new g.uG(this);g.M(this,this.I)};
tX=function(a){return a.app.A.g};
sX=function(a){return a.app.g};
YY=function(a,b,c){if(a.D){a=a.D;c=c||{};var d=((0,g.G)()-a.G)/1E3;c.art=d;d=sX(a.I);d.Bh&&(c.feature=d.gd);c.ad_flags=a.g.adFlags;(d=a.g.ub)&&(c.cid=d);c.mt=a.D.getCurrentTime();(d=g.dH())&&(c.lact=d);(d=a.D.getDuration())&&(c.len=d);a.g.Id&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.A=c.at;b=a.F;a:{if(7==c.ad_event&&(a=c.ad_error,21==a||30==a||54==a||32==a&&(1009==c.error_code||!c.ad_id))){a=!1;break a}a=0!=(c&&c.ad_event?RX(c.ad_event):0)?!0:!1}if(a){var e;c.at&&(e=c.at);var f;c.sst&&(f=
c.sst);"2_1"==e&&10==f&&(c.break_type=1);sX(b.g).experiments.g("fix_api_stats_ads_companion_backfill_break_type")&&(a=Zb(c,"trsp","0"),"2_3"==e&&10==f&&"0"!=a&&(c.break_type=1));e={};e.device=b.g.o.gd;e.ns=1;e.sdkv="h.3.0";e.ver="2.0";for(var k in c){f=e;a=k;d=c[k];var l=c;switch(a){case "trsp":f.slot_pos=d;break;case "break_type":g.jb(jX,Za(d))&&(f.m_pos=l.sst);case "format":case "ad_id":case "ad_v":case "ad_cpn":case "ad_mt":case "aqi":case "ad_sys":f[a]=d;break;case "ad_len":f[a]=Math.round(1E3*
d);break;case "ad_error":f.error_code=Gna(d);break;case "error_code":f.ima_error=d;case "error_message":f.error_msg=d;break;case "ad_event":f.event=RX(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(f.i_x=a[0],f.i_y=a[1])}}f=bY(b.g.g.app,2);k=tX(b.g);e.cpn=k.clientPlaybackNonce;e.content_v=k.videoId;c.at&&c.at.match(/\d+_2.*/g)?(a=b.g.A,e.mt=null!=a&&null!=a.g?1E3*lX(a.g.Pb):0):e.mt=Math.round(1E3*f.getCurrentTime());sX(b.g);e.ei=k.eventId;e.lact=g.dH();e.vol=Math.round(b.g.app.I.getVolume());
e.vis=b.g.g.co();a=uX(b.g);e.p_w=a.width;e.p_h=a.height;e.rt=(0,g.G)();if(f=(f=f.o?f.o.oa():null)&&g.gd(f)===window.document?g.zh(f):null)e.pv_h=f.getHeight(),e.pv_w=f.Gb();2==(c&&c.ad_event?RX(c.ad_event):0)&&k.adSafetyReason&&(e.asr=k.adSafetyReason);c=km(e);k=sX(b.g).baseYtUrl+"api/stats/ads";k=new g.Vl(k);$l(k,c);g.AF(k.toString())}}};
DZ=function(a,b,c){c=c||{};c.ad_error=b;YY(a,7,c)};
EZ=function(a,b,c){a.app.I.za(b,c)};
Joa=function(a){if(!a.V||a.app.g.experiments.g("enable_html5_midroll_tsla_update")){var b=sX(a).baseYtUrl;g.AF(b+"mac_204?action_fcts=1");a.V=!a.app.g.experiments.g("enable_html5_midroll_tsla_update")}};
FZ=function(a){return a.A instanceof oZ?a.A:null};
fY=function(a){return g.ZV(a.app).o};
Loa=function(a){var b=g.Od(PX(a.F),g.Yd()),c=a.g;if(2==XV(c.app)){c=c.app;var d=g.ZV(c,2);d&&(d!=c.A?GZ(c,c.A):Koa(c))}c=g.X(a.g);"3"!=c.B||$N(c)||(c=g.aW(a.g),$N(c.app.g),c.F=!1,dY(c));b&&a.g.getRootNode().focus()};
uX=function(a){return a.o.G?(a=a.app.G.Xa(),new g.$g(0,0,a.width,a.height)):g.Hh(a.getRootNode())};
Moa=function(a,b){a.qe("bd");var c=a.o;var d=c.midrollPrefetchSize;c=c.isLiveStream?new oZ(a,b):0<d?new mZ(a,b,d):new jZ(a,b);a.A=c;noa(a.A)};
JZ=function(a){HZ(a);var b=a.app;g.$E(function(){IZ(b)},0)};
kZ=function(a){var b=a.app;g.$E(function(){KZ(b)},0)};
Noa=function(a,b){var c=a.app;g.$E(function(){LZ(c,b)},0)};
HZ=function(a){a.L=!1;var b=g.ZV(a.app,2);b&&a.app.g.G.remove(b.g.videoId)};
hY=function(a,b){switch(b){case 1:a.O=1;EZ(a,"onAdStart");break;case 0:a.O=0,EZ(a,"onAdEnd")}};
gY=function(a,b,c){c&&EZ(a,"onAdInfoChange",c);a=a.app;1==b&&(a.J.o("vr"),a.ka||(a.ka=sP(a.TA,a)),OV(a.F),WR(a.J,Ooa(a)));c=a.g;(g.vO(c)&&c.Hb||g.YN(c))&&a.o.za("onAdStateChange",b)};
MZ=function(a){return!!(a.o.N&&a.A&&1<a.A.Eb.length)};
BZ=function(a){a=a.app.g;return"web"==a.o.c.toLowerCase().substr(0,3)&&!g.YN(a)&&"desktop-polymer"==a.g};
GX=function(a,b){b.contentVideoId||(b.contentVideoId=tX(a).videoId);EZ(a,"updatekevlarcompanion",b)};
NZ=function(a,b,c){g.L.call(this);this.da=b;this.ea=c;this.D=this.L=this.G=this.A=this.N=this.V=this.O=this.B=this.I=this.g=null;this.Y={};this.aa={};this.ba=null;this.T=a;this.F=this.C=this.J=this.o=null};
g.Poa=function(a){var b=g.X(a.T);if(g.vO(b)||b.sc||!b.Oc&&!b.ra)return!1;var c=a.T.Za();if(2==c)return!1;if(3==c)return b.experiments.g("desktop_enable_autoplay");if(b.experiments.g("allow_live_autoplay"))return!0;a=a.T.ga();return b.tm&&!a.lg?!1:!!a&&!a.Ba};
OZ=function(a,b,c,d){try{if(d){var e=gX[hX+b];if(e)return new e(a.T);"creatorendscreen"==b?Qoa(a,"annotations_module",c):Qoa(a,b,c)}else g.rW(a.T,b)}catch(f){g.rW(a.T,b),g.TE(f)}return null};
PZ=function(a,b){a.g&&(b||a.g.Fd())&&(g.Ye(a.g),a.g=null);a.I&&(b||a.I.Fd())&&(g.Ye(a.I),a.I=null);a.B&&(b||a.B.Fd())&&(g.Ye(a.B),a.B=null);a.O&&(b||a.O.Fd())&&(g.Ye(a.O),a.O=null);a.V&&(b||a.V.Fd())&&(g.Ye(a.V),a.V=null);a.N&&(b||a.N.Fd())&&(g.Ye(a.N),a.N=null);a.A&&(b||a.A.Fd())&&(g.Ye(a.A),a.A=null);a.G&&(b||a.G.Fd())&&(g.Ye(a.G),a.G=null);a.L&&(b||a.L.Fd())&&(g.Ye(a.L),a.L=null);a.D&&(b||a.D.Fd())&&(g.Ye(a.D),a.D=null);a.J&&(b||a.J.Fd())&&(g.Ye(a.J),a.J=null);a.C&&(b||a.C.Fd())&&(g.Ye(a.C),a.C=
null);a.o&&(b||a.o.Fd())&&(g.Ye(a.o),a.o=null)};
g.YV=function(a){return g.X(a.T).Ib?a.J:null};
Qoa=function(a,b,c){if(a.da){for(var d=a.da+b+".js",e=window.document.getElementsByTagName("SCRIPT"),f=!1,k,l=0;l<e.length;l++){var m=e[l];m.src==d&&(k=m)}k||(k=g.zd("SCRIPT"),f=!0);var n=(0,g.A)(function(){this.ma()||c.call(this)},a),q=(0,g.A)(function(){this.ma()||g.rW(this.T,b)},a);
k.onload=g.Aa(function(a){Mf(n);a&&a()},k.onload);
k.onerror=g.Aa(function(a){Mf(q);a&&a()},k.onerror);
k.onreadystatechange=g.Aa(function(a){switch(k.readyState){case "loaded":case "complete":Mf(n,this)}a&&a()},k.onreadystatechange);
f&&((e=g.X(a.T).qm)&&k.setAttribute("nonce",e),g.Vc(k,g.$d(d)),d=window.document.getElementsByTagName("HEAD")[0]||window.document.body,d.insertBefore(k,d.firstChild),g.Xe(a,function(){k.parentNode&&k.parentNode.removeChild(k);g.iX(b,null);"annotations_module"==b&&g.iX("creatorendscreen",null)}))}};
QZ=function(a){var b=a.g,c=["html5-video-player"];b.F&&c.push("ytp-dni");g.Y.call(this,{H:"div",ca:c,R:{tabindex:-1,id:a.ea.attrs.id},K:[{H:"div",M:"html5-video-container",R:{"data-layer":0}}]});g.XF(this.element,"version",a.ea.assets.js);this.app=a;this.containerElement=this.va["html5-video-container"];this.V=!!this.containerElement;this.B=new g.$g(0,0,0,0);this.o=null;this.D=new g.$g(0,0,0,0);this.I=this.N=this.L=window.NaN;this.F=!1;this.G=window.NaN;this.J=!1;this.C=null;this.addEventListener=
(0,g.A)(this.element.addEventListener,this.element);this.removeEventListener=(0,g.A)(this.element.removeEventListener,this.element);this.dispatchEvent=function(){};
pO(b)&&"blazer"!=b.g&&"mweb-polymer"!=b.g&&window.matchMedia&&(this.O="desktop-polymer"==b.g?[{query:window.matchMedia("(max-width: 656px)"),size:new g.dd(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.dd(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.dd(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.dd(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.dd(854,480)},{query:window.matchMedia("(min-width: 1000px)"),
size:new g.dd(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),size:new g.dd(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.dd(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.dd(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.dd(640,360)}]);this.A=null;g.sE({YTP_ADVERTISEMENT:"Advertisement",YTP_AD_BADGE:"Ad",YTP_AD_NOTIFICATION:"Ad in $X_SECONDSs",YTP_AD_POD_POSITION:"$AD_INDEX of $ADS_COUNT",
YTP_AD_PREVIEW_NONSKIPPABLE:"Video will play after ad",YTP_AD_PREVIEW_NONSKIPPABLE_COUNTDOWN:"Your video will begin in $TIME_REMAINING",YTP_AIRPLAY:"AirPlay",YTP_AUDIO_TRACK_TITLE:"Audio track",YTP_AUTO:"Auto",YTP_AUTO_WITH_QUALITY_2:"Auto ($VIDEO_QUALITY)",YTP_CAN_SKIP_AD_SOON:"You can skip to video in $TIME_REMAINING",YTP_CARDS_BUTTON_ARIA_LABEL:"Show cards",YTP_CARDS_BUTTON_INFO:"Info",YTP_CARDS_BUTTON_SHOPPING:"Shopping",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"Change quality ($VIDEO_QUALITY)",YTP_COPY_DEBUG_INFO:"Copy debug info",
YTP_COPY_VIDEO_URL:"Copy video URL",YTP_COPY_VIDEO_URL_AT_TIME:"Copy video URL at current time",YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL:"Hide cards",YTP_DRAWER_HEADER_TEXT_2:"More info",YTP_DRAWER_POLL_PERCENT:"$PERCENT%",YTP_DRAWER_POLL_SIGNIN_TITLE:"Want to vote?",YTP_DRAWER_POLL_TITLE_ARIA_LABEL:"$POLL_TITLE - Sign in to vote.",YTP_GET_DEBUG_INFO:"Get debug info",YTP_GET_VIDEO_URL:"Get video URL",YTP_GET_VIDEO_URL_AT_TIME:"Get video URL at current time",YTP_GET_EMBED:"Get embed code",YTP_DECREASE_PLAYBACK_SPEED:"Decrease playback speed",
YTP_PLAYBACK_SPEED_CHANGED:"Speed is $RATE",YTP_DEFAULT_VIEW:"Default view",YTP_EMBED_COPY:"Copy embed code",YTP_ERROR_GENERIC_WITHOUT_LINK:"An error occurred. Please try again later.",YTP_ERROR_GENERIC_WITH_LINK_AND_CPN:"An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",YTP_EXIT_FULLSCREEN:"Exit full screen",YTP_FULLSCREEN_GENERIC_ERROR:"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK",YTP_FULLSCREEN_UNSUPPORTED_ERROR:"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK",
YTP_VOLUME_UNSUPPORTED_ERROR:"Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK",YTP_FEATURED:"Featured",YTP_FULLSCREEN:"Full screen",YTP_INCREASE_PLAYBACK_SPEED:"Increase playback speed",YTP_INVIDEO_PROMOTION_ARIA_LABEL:"Promotion",YTP_GOTO_LIVE_TOOLTIP:"Skip ahead to live broadcast.",YTP_KEYBOARD_SHORTCUTS:"Keyboard shortcuts",YTP_LIVE:"Live",YTP_LIVE_NOW:"LIVE NOW",YTP_LOOP:"Loop",YTP_MIX:"Mix",YTP_MORE:"More",YTP_MORE_VIDEOS:"More videos",YTP_MDX_TITLE:"Play on",
YTP_MDX_TOOLTIP:"Play on TV",YTP_MDX_MY_COMPUTER:"This computer",YTP_MDX_CAST_SELECTOR:"Cast...",YTP_MUTE:"Mute",YTP_NEXT:"Next",YTP_NEXT_VIDEO_IN:"Next video in $TIME_LEFT",YTP_NORMAL_SPEED:"Normal",YTP_ON:"On",YTP_OFF:"Off",YTP_OPTIONS:"Options",YTP_PLAY_ALL:"Play all",YTP_PLAY_PAUSE:"Toggle play/pause",YTP_PREVIOUS:"Previous",YTP_PLAYBACK_STALLED_AT_START:"If playback doesn't begin shortly, try restarting your device.",YTP_MISSING_FORMATS:"Missing options?",YTP_PLAYLIST:"Playlist",YTP_PLAYLIST_UP_NEXT:"Up Next",
YTP_QUALITY_TITLE:"Quality",YTP_SUGGESTED_VIDEOS:"Suggested videos",YTP_REPLAY:"Replay",YTP_TROUBLESHOOT_ISSUE:"Troubleshoot playback issue",YTP_SEEK_BACK:"Seek back 10 seconds",YTP_SEEK_FORWARD:"Seek forward 10 seconds",YTP_SEEK_PERCENT:"Seek to 0%-90%.",YTP_SETTINGS:"Settings",YTP_SHARE:"Share",YTP_SHARE_LINK:"Share link",YTP_SHARE_WITH_PLAYLIST_2:"Include playlist",YTP_SHOW_VIDEO_INFO:"Stats for nerds",YTP_SIGN_IN:"Sign in",YTP_SPHERICAL_CONTROL:"Spherical video control. Use the arrow keys to pan the video.",
YTP_SKIP_AD:"Skip Ad",YTP_SPEED_TITLE:"Speed",YTP_ST_COLLAPSE:"Collapse",YTP_ST_EXPAND:"Expand",YTP_SUBSCRIBE:"Subscribe",YTP_SUBSCRIBED:"Subscribed",YTP_SUBTITLES:"Subtitles/CC",YTP_SUBTITLES_TOOLTIP:"Subtitles/closed captions",YTP_SUBTITLES_OFF:"Subtitles/closed captions off",YTP_SUBTITLES_ON:"Subtitles/closed captions on",YTP_TAP_TO_UNMUTE:"Tap to unmute",YTP_TAP_TO_UNMUTE_SHORT:"Tap to unmute",YTP_THREED_SHORT:"3D",YTP_THREED_VIEWMODE_2D:"2D",YTP_THREED_VIEWMODE_ANAGLYPH:"Anaglyph",YTP_THEATER_MODE:"Theater mode",
YTP_TOGGLE_FULLSCREEN:"Toggle fullscreen.",YTP_TOGGLE_MUTE:"Toggle mute",YTP_UNMUTE:"Unmute",YTP_UNSUBSCRIBE:"Unsubscribe",YTP_URL_NAVIGATE:"Watch on YouTube.com",YTP_URL_NAVIGATE_TO:"Watch on $WEBSITE",YTP_WATCH_ALL:"Watch entire video",YTP_WATCH_LATER:"Watch Later",YTP_WATCH_LATER_2:"Watch later",YTP_WATCH_LATER_AS_2:"Watch later as $USER_NAME",YTP_ADDED_TO_WATCH_LATER_AS:"Added as $USER_NAME",YTP_WEBGL_3D_ANAGLYPH:"Anaglyph",YTP_WEBGL_3D_2D:"2D",YTP_SUBSCRIBE_AS:"Subscribe as $USER_NAME",YTP_LIKE_AS:"Like as $USER_NAME",
YTP_DISLIKE_AS:"Dislike as $USER_NAME",YTP_WATCH_NEXT:"Watch next",YTP_PLAY:"Play",YTP_WATERMARK:"Watermark",YTP_ERROR_STREAMING_UNAVAILABLE:"Video playback is unavailable right now because this video has been downloaded for offline viewing.",YTP_ERROR_LICENSE:"Sorry, there was an error licensing this video.",YTP_ERROR_VIDEO_NOT_FOUND:"This video can not be found.",YTP_ERROR_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.",
YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"An error occurred when activating your rental. Please reload this page or try again later.",YTP_ERROR_PURCHASE_NOT_FOUND:"This video requires payment.",YTP_ERROR_PURCHASE_REFUNDED:"This video's purchase has been refunded.",YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"Your account is playing this video in another location. Please reload this page to resume watching.",YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"Playback stopped because too many videos belonging to the same account are playing.",
YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"Playback stopped because this video has been played on too many devices.",YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"Too many devices/IP addresses have been used over the 24 hour period.",YTP_ERROR_UNUSUAL_ACTIVITY:"Due to unusual account activity, this video is not currently available.",YTP_ERROR_STREAM_LICENSE_NOT_FOUND:"Video playback interrupted. Please try again.",YTP_ERROR_NOT_SIGNED_IN:"Please sign in to resume watching.",YTP_CLOSE:"Close",
YTP_EXPAND:"Expand",YTP_ANNOTATIONS:"Annotations",YTP_DONE:"Done",YTP_SHARE_THIS_PLAYLIST:"Share this playlist",YTP_SEEK_SLIDER:"Seek slider",YTP_PAUSE:"Pause",YTP_AUTOPLAY:"Autoplay",YTP_AUTOPLAY_COUNTDOWN_2:"Next video in $SECONDS_LEFT",YTP_AUTOPLAY_NEXT:"Play next video",YTP_AUTOPLAY_PAUSED:"Busy? We've paused autoplay.",YTP_AUTOPLAY_PAUSED_2:"Autoplay is paused.",YTP_AUTOPLAY_PAUSED_3:"Autoplay is paused",YTP_AUTOPLAY_CANCEL:"Cancel autoplay",YTP_WATCH_VIDEO_OR_PLAYLIST:"Watch $TITLE",YTP_CANCEL:"Cancel",
YTP_ON_GOOGLE_PLUS:"On Google+",YTP_STILL_THERE:"Are you still there? If so, please click the button below to continue watching the playlist.",YTP_DISMISS:"OK",YTP_RESET:"Reset",YTP_STOP:"Stop live playback",YTP_LIKE:"Like",YTP_DISLIKE:"Dislike",YTP_SCREENREADER_VOLUME_SETTING:"volume",YTP_SCREENREADER_VOLUME_MUTED:"muted",YTP_SCREENREADER_VOLUME_MUTE:"mute",YTP_SCREENREADER_VOLUME_UNMUTE:"unmute",YTP_SCREENREADER_CONTROL_TOGGLE:"toggle",YTP_SAMPLE_SUBTITLES:"Captions look like this",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"This video format is not supported.",
YTP_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",YTP_HTML5_FLASH_DEPRECATED:"Flash videos are no longer supported. For the best experience, please upgrade your browser to the latest version. $BEGIN_LINKLEARN MORE$END_LINK",YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"The device in the cast session doesn't match the requested one.",
YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"The video in the cast session doesn't match the requested one.",YTP_ERROR_CAST_TOKEN_EXPIRED:"Cast session was expired. Please refresh.",YTP_ERROR_CAST_TOKEN_FAILED:"Cast session not available. Please refresh or try again later.",YTP_ERROR_CAST_TOKEN_MALFORMED:"Invalid cast session. Please refresh or try again later.",YTP_ERROR_GEO_FAILURE:"This video isn't available in your country.",YTP_ERROR_INVALID_DRM_MESSAGE:"The DRM system specific message is invalid.",
YTP_ERROR_RENTAL_EXPIRED:"This video's rental has expired.",YTP_ERROR_RETRYABLE_ERROR:"There was a temporary server error. Please try again later.",YTP_ERROR_SERVER_ERROR:"There was an internal server error. Please try again later.",YTP_ERROR_STREAMING_NOT_ALLOWED:"Playback not allowed because this video is pinned on another device.",YTP_ERROR_UNSUPPORTED_DEVICE:"Playback isn't supported on this device.",YTP_ERROR_VIDEO_FORBIDDEN:"Access to this video is forbidden.",YTP_ERROR_VIDEO_UNAVAILABLE:"Video unavailable",
YTP_ERROR_FORMAT_UNAVALIABLE:"This video isn't avaliable at the selected quality. Please try again later.",YTP_MDX_STATUS_CONNECTED_2:"Connected to $RECEIVER_NAME",YTP_MDX_STATUS_ERROR_2:"Error on $RECEIVER_NAME",YTP_MDX_STATUS_PLAYING_2:"Playing on $RECEIVER_NAME",YTP_MDX_PLAYER_ERROR:"This video is not available for remote playback.",YTP_MDX_PLAYER_RECONNECT_TIME:"Please check your Internet connection. Retrying in $FORMATTED_TIME...",YTP_MDX_PLAYER_RECONNECT_BUTTON:"Reconnect",YTP_DEVICE_FALLBACK:"Sorry, this video is not available on this device.",
YTP_AD_INTERRUPT_MESSAGE:"Your video will play after this ad.",YTP_VISIT_ADVERTISERS_SITE:"Visit advertiser's site",YTP_PROGRESS_LABEL_2:"$PLAY_PROGRESS of $DURATION",YTP_PLAYLIST_NAME:"Playlist: $PLAYLIST_NAME",YTP_PLAYLIST_POSITION:"$CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_SHARE_PANEL_ERROR:"An error occurred while retrieving sharing information. Please try again later.",YTP_PLAYLIST_AUTHOR_AND_POSITION:"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_PLAYER_NORMAL:"YouTube Video Player",
YTP_PLAYER_FULLSCREEN:"YouTube Video Player in Fullscreen",YTP_SPONSORED:"Sponsored",YTP_SPONSORED_PRODUCT_INFO:"You are seeing this product because we think it is relevant to the video. Google may be compensated by the merchant.",YTP_SPONSORED_PRODUCT_BADGE:"Shop",YTP_AD_SETTINGS_INFO:"Visit Google's $BEGIN_FORMATAd Settings$END_FORMAT to learn more about how ads are targeted or to opt out of personalized ads.",YTP_PIP:"Picture in Picture",YTP_AUTO_TRANSLATE:"Auto-translate",YTP_SWITCH_CAMERA:"Switch camera",
YTP_MULTICAM_INDEX:"Viewing $CAMERA_INDEX of $CAMERA_COUNT",YTP_MORE_CAMERAS_AVAILABLE:"More cameras available",YTP_VIDEO_SUBTITLES_OVERRIDE:"Video Override",YTP_VIDEO_SUBTITLES_OVERRIDE_DESC:"Allow for a different caption style if specified by the video."});Roa(this);this.P(a.o,"mutedautoplaychange",this.fV)};
Roa=function(a){var b=a.app.o,c=(0,g.A)(a.fJ,a),d=(0,g.A)(a.eV,a),e=(0,g.A)(a.dV,a),f=(0,g.A)(a.zI,a);b.addEventListener("initializingmode",c);b.addEventListener("videoplayerreset",d);b.addEventListener("videodatachange",e);b.addEventListener("presentingplayerstatechange",f);g.Xe(a,function(){b.removeEventListener("initializingmode",c);b.removeEventListener("videoplayerreset",d);b.removeEventListener("videodatachange",e);b.removeEventListener("presentingplayerstatechange",f)})};
Toa=function(a,b){a.o=b;a.F=!1;if(!a.o.parentNode)try{Fd(a.containerElement,a.o,0)}catch(c){throw Error("videoElement_: "+!!a.o+", containerElement: "+!!a.containerElement+", containerElement.childNodes: "+!(!a.containerElement||!a.containerElement.childNodes)+", containerInitiallyTruthy: "+a.V+", isDisposed: "+a.ma());}a.A&&(a.A.disconnect(),a.A=null);!a.app.g.experiments.g("no_detect_bad_extensions2")&&window.MutationObserver&&(a.A=new window.MutationObserver((0,g.A)(function(a){for(var b=0;b<a.length;b++){var c=
a[b];"style"==c.attributeName&&"100%"==c.target.style.height&&(window.console.warn("Detected an extension setting the video size to an invalid height, which hides video playback. Restoring the original height..."),this.D=new g.$g(0,0,0,0),RZ(this))}},a)),a.A.observe(a.o,{attributes:!0}));
a.D=new g.$g(0,0,0,0);RZ(a);dY(a);Soa(a)};
Soa=function(a){g.S(a.o,"video-stream");g.S(a.o,"html5-main-video");var b=a.app.g;b.uc&&a.o.setAttribute("data-no-fullscreen",!0);b.Sg&&(a.o.setAttribute("webkit-playsinline",""),a.o.setAttribute("playsinline",""));b.Iq&&a.o&&a.P(a.o,"click",a.o.play,a.o)};
Uoa=function(a,b){if(a.o){var c=a.app.g;hN&&(a.o.setAttribute("x-webkit-airplay","allow"),b.title?a.o.setAttribute("title",b.title):a.o.removeAttribute("title"));a.o.setAttribute("controlslist","nodownload");c.JS&&b.videoId&&(a.o.poster=b.bc(c,"default.jpg"))}c=g.qQ(b,"yt:bgcolor");a.containerElement.style.backgroundColor=c?c:"";a.L=HN(g.qQ(b,"yt:stretch"));a.N=HN(g.qQ(b,"yt:crop"),!0);a.app.g.experiments.g("use_legacy_crop_resize")||a.qg()};
g.TZ=function(a){var b=a.app.g.experiments.g("html5_aspect_from_adaptive_format");if(b){var c=g.ZV(a.app);if((c=c?c.g:null)&&c.tb&&c.tb.g)return b=c.tb.videoInfos[0],SZ(b.video.width,b.video.height)}return(a=a.o)?SZ(a.videoWidth,a.videoHeight):b?16/9:window.NaN};
g.UZ=function(a,b){var c=a.Xa(),d=Voa(a,c,g.TZ(a),b);return new g.$g((c.width-d.width)/2,(c.height-d.height)/2,d.width,d.height)};
Voa=function(a,b,c,d){(0,window.isNaN)(a.L)||(c=a.L);var e=c;(0,window.isNaN)(a.I)?(0,window.isNaN)(a.N)||(e=a.N):e=a.I;a=SZ(b.width,b.height);(0,window.isFinite)(e)||(e=Math.max(c,a));var f;e>a?f={width:b.width,height:b.width/e,aspectRatio:e}:e<a?f={width:b.height*e,height:b.height,aspectRatio:e}:f={width:b.width,height:b.height,aspectRatio:a};d||(0,window.isNaN)(c)||(c>e?f.width=f.height*c:c<e&&(f.height=f.width/c),f.aspectRatio=c);return f};
SZ=function(a,b){return 1>Math.abs(VZ*b-a)||1>Math.abs(VZ/a-b)?VZ:a/b};
WZ=function(a){return 1==a.app.N?!1:(a=g.$V(a.app.o))&&!g.W(a,2)&&!lR(a)};
dY=function(a){var b="3"==a.app.g.B&&!a.F&&WZ(a)&&!a.app.ha;a.o.controls=b;a.o.tabIndex=b?0:-1};
RZ=function(a){var b=g.TZ(a),c=a.Xa(),d=1,e=!1,f=Voa(a,c,b),k=zF();if(WZ(a)){var l=(0,window.isNaN)(b)||JM;hN&&!g.oc(601)?b=f.aspectRatio:l=l||"3"==a.app.g.B;l?l=new g.$g(0,0,c.width,c.height):(d=f.aspectRatio/b,l=new g.$g((c.width-f.width/d)/2,(c.height-f.height)/2,f.width/d,f.height),1==d&&g.Wi&&(b=l.width-c.height*b,0<b&&(l.width+=b,l.height+=b)));k&&(a.o.style.display="");a.J=!0}else b=-c.height,hN?b*=window.devicePixelRatio:g.tO&&(b-=window.screen.height),l=new g.$g(0,b,c.width,c.height),k&&
(a.o.style.display="none"),a.J=!1;g.bh(a.D,l)||(a.D=l,g.YN(a.app.g)?(a.o.style.setProperty("width",l.width+"px","important"),a.o.style.setProperty("height",l.height+"px","important")):g.Fh(a.o,g.dh(l)),g.uh(a.o,g.eh(l)),e=!0);c=new g.$g((c.width-f.width)/2,(c.height-f.height)/2,f.width,f.height);g.bh(a.B,c)||(a.B=c,e=!0);g.nh(a.o,"transform",1==d?"":"scaleX("+d+")");return e};
XZ=function(a,b,c,d){g.xG.call(this);this.A=a;this.V=(0,g.A)(b,null);this.o=0;this.F=!1;this.C=new g.ad(window.NaN,window.NaN);this.g=new g.uG(this);g.M(this,this.g);b=d?4E3:3E3;this.I=new g.Ht(g.Aa(this.jc,1,!1),b,this);g.M(this,this.I);this.J=new g.Ht(g.Aa(this.jc,2,!1),b,this);g.M(this,this.J);this.N=new g.Ht(g.Aa(this.jc,512,!1),0,this);g.M(this,this.N);this.O=c&&0<c.Qh.length?5E3:3E3;d||(this.B=this.g.P(a,"mouseover",this.Eu),this.g.P(a,"mousemove",this.aV),this.g.P(a,"mouseleave",this.QN));
g.ph?this.g.P(a,"keypress",this.rK):this.g.P(a,"focusin",this.PH);this.D=this.g.P(a,"mousedown",this.VD);this.G=this.g.P(a,"touchstart",this.XD,void 0,!0);this.Y=null;this.jc(640,!0)};
Woa=function(a){a.jc(4,!1);a.L&&(a.g.Ca(a.L),a.L=null,a.B=a.g.P(a.A,"mouseover",a.Eu));a.B&&(a.g.Ca(a.B),a.B=a.g.P(a.A,"mouseover",a.Eu))};
YZ=function(a,b){g.Y.call(this,{H:"canvas",M:"ytp-tv-static"});this.A=this.element.getContext("2d");this.height=this.width=window.NaN;this.J=null;this.G=this.I=this.C=this.B=0;this.D=-75;this.o=new g.Et(this.L,void 0,this);g.M(this,this.o);this.F=new g.Ht(this.o.Ok,75,this.o);g.M(this,this.F);Xoa(this,a,b)};
Yoa=function(a){for(var b=Math.floor(.6*a),c=b;c<a;++c){for(var d=!1,e=2;e<Math.sqrt(c);e++){if(!(c%e)){d=!1;break}d=!0}if(d)return c}return b};
Xoa=function(a,b,c){if(b&&c){a.width=a.element.width=b;a.height=a.element.height=c;var d=g.zd("CANVAS");d.width=b;d.height=c;for(var e=d.getContext("2d"),f=e.getImageData(0,0,b,c),k=b*c,l=0;l<k;l++){var m=4*l;f.data[m]=f.data[m+1]=f.data[m+2]=Math.floor(35*Math.random());f.data[m+3]=255}e.putImageData(f,0,0);a.J=d;a.I=Yoa(b);a.G=Yoa(c/10);a.A.scale(1.5,1.5);a.A.fillStyle="rgba(255, 255, 255, 0.02)"}};
ZZ=function(){return{H:"div",M:"ytp-spinner-dots",K:[{H:"div",ca:["ytp-spinner-dot","ytp-spinner-dot-0"]},{H:"div",ca:["ytp-spinner-dot","ytp-spinner-dot-1"]},{H:"div",ca:["ytp-spinner-dot","ytp-spinner-dot-2"]},{H:"div",ca:["ytp-spinner-dot","ytp-spinner-dot-3"]},{H:"div",ca:["ytp-spinner-dot","ytp-spinner-dot-4"]},{H:"div",ca:["ytp-spinner-dot","ytp-spinner-dot-5"]},{H:"div",ca:["ytp-spinner-dot","ytp-spinner-dot-6"]},{H:"div",ca:["ytp-spinner-dot","ytp-spinner-dot-7"]}]}};
g.$Z=function(a,b,c,d){if((void 0===c||!c)&&g.fX(a))return g.rG(a),!0;b.qd();a=a.currentTarget.getAttribute("href");g.NW(a,d,!0);return!1};
a_=function(a,b,c){if(pO(g.X(b))&&2!=b.Za()){if(g.fX(c))return b.isFullscreen()&&g.cW(b),g.rG(c),!0}else{var d=g.fX(c);d&&b.qd();g.NW(a,void 0,!0);d&&(g.OW(a),g.rG(c))}return!1};
Zoa=function(a){var b=!g.X(a).uc&&3!=a.Za();return a.isFullscreen()||b};
b_=function(a){g.Y.call(this,{H:"div",ca:["ytp-error"],R:{role:"alert"},K:[{H:"div",M:"ytp-error-content",K:[{H:"div",M:"ytp-error-content-wrap",K:["{{content}}"]}]}]});this.o=a;this.B=[];try{this.A=new YZ(1,1),g.M(this,this.A),this.A.Ea(this.element,0)}catch(b){}$oa(this,g.aW(this.o).Xa())};
$oa=function(a,b){c_(a,function(a){Xoa(a,b.width,b.height)})};
c_=function(a,b){if(a.A)try{b.call(a,a.A)}catch(c){a.A.dispose(),a.A=null}};
d_=function(a,b,c,d,e,f){e||(e=g.X(a.o).A);a=d?{CPN:a.o.ga().clientPlaybackNonce}:null;b=g.U(b,a).split(/\$(BEGIN|END)_LINK/);a=[];f&&(f=g.U(f,null))&&a.push({H:"h2",K:[f]});a.push(b[0]);a.push({H:"br"});a.push({H:"a",R:{href:c,target:e?"_blank":null},K:[b[2]]});a.push(b[4]);return{H:"span",K:a}};
bpa=function(a,b,c){apa("add_to_watch_later_list",a,b,c)};
cpa=function(a,b,c){apa("delete_from_watch_later_list",a,b,c)};
apa=function(a,b,c,d){a=c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1";c={feature:b.feature||null,authuser:b.Bc||null,pageid:b.pageId||null};var e={video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.a3||null,add_to_playlists:b.R2||null,plid:g.qE("PLAYBACK_ID")||null};g.nF(a,{method:"POST",Yc:c,Nb:e,context:b.context,onError:b.onError,Vb:function(a,c){var d=c.result;d&&d.actions&&EG(d.actions);
b.Vb.call(this,a,c)},
Dd:b.Dd,withCredentials:!!d})};
e_=function(){this.g=[];this.o=[];this.A=[]};
epa=function(a,b,c){c=g.zd(c?"AUDIO":"VIDEO");g.Ba(c,dpa);g.iG(c,"loadeddata",(0,g.A)(c.o,c));VN&&6<=f_&&g.iG(c,"webkitbeginfullscreen",(0,g.A)(c.play,c));a.o.push(c);b?a.A.push(c):g_(a,c);return c};
g_=function(a,b){g.jb(a.o,b)&&!g.jb(a.g,b)&&(b.src||b.load(),g.pb(a.A,b)||a.g.push(b))};
h_=function(){g.Y.call(this,{H:"div",M:"ytp-sparkline"})};
i_=function(a,b){for(var c=Math.max.apply(Math,b)||1,d=0;d<b.length;d++){if(d<a.element.children.length)var e=a.element.children[d];else e=g.zd("SPAN"),a.element.appendChild(e);e.style.width=100/b.length+"%";e.style.height=b[d]/c*100+"%"}for(;a.element.children.length>b.length;)g.Gd(a.element.lastChild)};
j_=function(a){var b={H:"button",ca:["html5-video-info-panel-close","ytp-button"],R:{title:"close"},K:["[x]"]};g.Y.call(this,{H:"div",M:"html5-video-info-panel",K:[b,{H:"div",M:"html5-video-info-panel-content",K:[{H:"div",K:[{H:"div",K:["Video ID:"]},{H:"span",K:["{{video_id}}"]}]},{H:"div",K:[{H:"div",K:["Dimensions:"]},{H:"span",K:["{{dimensions}}"]}]},{H:"div",K:[{H:"div",K:["Resolution:"]},{H:"span",K:["{{resolution}}"]}]},{H:"div",K:[{H:"div",K:["Optimal Resolution:"]},{H:"span",K:["{{optimal_resolution}}"]}]},
{H:"div",K:[{H:"div",K:["Volume:"]},{H:"span",K:["{{volume}}"]}]},{H:"div",K:[{H:"div",K:["Relative Loudness:"]},{H:"span",K:["{{relative_loudness}}"]}]},{H:"div",K:[{H:"div",K:["Stream Host:"]},{H:"span",K:["{{stream_host}}"]}]},{H:"div",K:[{H:"div",K:["Stream Type:"]},{H:"span",K:["{{stream_type}}"]}]},{H:"div",R:{style:"{{cpn_style}}"},K:[{H:"div",K:["CPN:"]},{H:"span",R:{style:"font-family:monospace"},K:["{{cpn}}"]}]},{H:"div",K:[{H:"div",K:["Mime Type:"]},{H:"span",K:["{{mime}}"]}]},{H:"div",
K:[{H:"div",K:["DASH:"]},{H:"span",K:["{{dash}}"]}]},{H:"div",R:{style:"{{shader_info_style}}"},K:[{H:"div",K:["Shader Info:"]},{H:"span",K:["{{shader_info}}"]}]},{H:"div",R:{style:"{{color_style}}"},K:[{H:"div",K:["Color:"]},{H:"span",K:["{{color}}"]}]},{H:"div",R:{style:"{{drm_style}}"},K:[{H:"div",K:["Protected:"]},{H:"span",K:["{{drm}}"]}]},{H:"div",K:[{H:"div",K:["Connection Speed:"]},{H:"span",K:[{H:"span",K:["{{bandwidth_sparkline}}"]},{H:"span",K:["{{bandwidth_kbps}}"]}]}]},{H:"div",K:[{H:"div",
K:["Buffer Health:"]},{H:"span",K:[{H:"span",K:["{{buffer_health_sparkline}}"]},{H:"span",K:["{{buffer_health_seconds}}"]}]}]},{H:"div",K:[{H:"div",K:["Network Activity:"]},{H:"span",K:[{H:"span",K:["{{network_activity_sparkline}}"]},{H:"span",K:["{{network_activity_bytes}}"]}]}]},{H:"div",R:{style:"{{live_latency_style}}"},K:[{H:"div",K:["Live Latency:"]},{H:"span",K:[{H:"span",K:["{{live_latency_sparkline}}"]},{H:"span",K:["{{live_latency_message}}"]}]}]},{H:"div",K:[{H:"div",K:["Dropped Frames:"]},
{H:"span",K:["{{dropped_frames}}"]}]},{H:"div",R:{style:"{{sequence_number_style}}"},K:[{H:"div",K:["Sequence Number:"]},{H:"span",K:["{{sequence_number}}"]}]}]}]});b&&this.P(this.va["html5-video-info-panel-close"],"click",this.hide);this.A=new h_;g.M(this,this.A);this.Ga("bandwidth_sparkline",this.A);this.C=new h_;g.M(this,this.C);this.Ga("live_latency_sparkline",this.C);this.B=new h_;g.M(this,this.B);this.Ga("buffer_health_sparkline",this.B);this.D=new h_;g.M(this,this.D);this.Ga("network_activity_sparkline",
this.D);this.F=new g.Ht(this.G,500,this);g.M(this,this.F);this.o=a};
k_=function(a,b){g.L.call(this);this.A=a||window.NaN;this.g=b||null;this.o=[]};
g.l_=function(a){return aS(a)?(a.fetch=0,new g.$R(a)):new g.aQ(a)};
m_=function(a){g.L.call(this);this.g=null;for(var b=[],c=0;100>=c;c++)b.push(c/100);b={threshold:b};(this.o=window.IntersectionObserver?new window.IntersectionObserver((0,g.A)(this.A,this),b):null)&&this.o.observe(a)};
n_=function(a){g.Y.call(this,{H:"div",M:"ytp-bezel",R:{role:"status","aria-label":"{{label}}"},K:[{H:"div",M:"ytp-bezel-icon",K:["{{icon}}"]}]});this.A=new g.Ht(this.show,10,this);g.M(this,this.A);this.o=new g.Ht(this.hide,500,this);g.M(this,this.o);this.T=a;this.hide()};
p_=function(a,b){if(b)g.W(g.$V(a.T),64)||o_(a,IE(),g.U("YTP_PLAY"));else{var c=a.T.ga();c.Ba&&!c.ug?o_(a,NE(),g.U("YTP_STOP")):o_(a,HE(),g.U("YTP_PAUSE"))}};
q_=function(a,b,c){0>=b?(c=QE(),b=g.U("YTP_SCREENREADER_VOLUME_MUTED")):(c=c?PE():OE(),b=Math.floor(b)+"% "+g.U("YTP_SCREENREADER_VOLUME_SETTING"));o_(a,c,b)};
fpa=function(a,b,c){c=c?g.uE?{H:"div",ca:["ytp-icon","ytp-icon-fast-rewind"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{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.uE?{H:"div",ca:["ytp-icon","ytp-icon-fast-forward"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};b=g.U("YTP_PLAYBACK_SPEED_CHANGED",
{RATE:b});o_(a,c,b)};
gpa=function(a){o_(a,JE(),g.U("YTP_PREVIOUS"))};
o_=function(a,b,c){a.Ga("label",void 0===c?"":c);a.Ga("icon",b);g.Jt(a.o);a.A.start()};
r_=function(a){var b=g.X(a),c=["ytp-large-play-button","ytp-button"],d=b.experiments.A("large_play_button_src"),e=b.experiments.A("large_play_button_hover_src");if(b.F&&b.ub)var f=[{H:"div",M:"ytp-large-play-button-circle",R:{style:"background-color: "+b.ub}},g.uE?{H:"div",ca:["ytp-icon","ytp-icon-dni-large-play-button"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"4 -6 60 60",width:"100%"},K:[{H:"path",R:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}}]}];else if(d&&e&&
!b.sc){var k=b.O?e:d;c.push("ytp-red2")}else b.O&&!b.sc?f=[g.uE?{H:"div",ca:["ytp-icon","ytp-icon-large-play-button-hover"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},K:[{H:"path",M:"ytp-large-play-button-bg",R:{d:"m .66,37.62 c 0,0 .66,4.70 2.70,6.77 2.58,2.71 5.98,2.63 7.49,2.91 5.43,.52 23.10,.68 23.12,.68 .00,-1.3e-5 14.29,-0.02 23.81,-0.71 1.32,-0.15 4.22,-0.17 6.81,-2.89 2.03,-2.07 2.70,-6.77 2.70,-6.77 0,0 .67,-5.52 .67,-11.04 l 0,-5.17 c 0,-5.52 -0.67,-11.04 -0.67,-11.04 0,0 -0.66,-4.70 -2.70,-6.77 C 62.03,.86 59.13,.84 57.80,.69 48.28,0 34.00,0 34.00,0 33.97,0 19.69,0 10.18,.69 8.85,.84 5.95,.86 3.36,3.58 1.32,5.65 .66,10.35 .66,10.35 c 0,0 -0.55,4.50 -0.66,9.45 l 0,8.36 c .10,4.94 .66,9.45 .66,9.45 z",
fill:"#cc181e"}},{H:"path",R:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}},{H:"path",R:{d:"M 45.02,23.46 45.32,23.28 26.96,13.67 43.32,24.34 45.02,23.46 z",fill:"#ccc"}}]}]:(b.isMobile&&c.push("ytp-touch-device"),f=[b.sc?g.uE?{H:"div",ca:["ytp-icon","ytp-icon-house-brand-large-play-button"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},K:[{H:"path",M:"ytp-large-play-button-bg",R:{"clip-rule":"evenodd",d:"M59.6,1.35c0.26,.5,.4,1.13,.4,1.9v53.5c0,.76-0.13,1.4-0.4,1.9c-0.5,.9-1.45,1.35-2.85,1.35H3.25c-1.4,0-2.33-0.43-2.8-1.3C0.15,58.16,0,57.51,0,56.75V3.25c0-0.83,.16-1.5,.5-2C1,.41,1.91,0,3.25,0h53.5C58.15,0,59.1,.45,59.6,1.35z M21,41.65l22.7-11.8L21,18V41.65z",
fill:"#1f1f1f","fill-rule":"evenodd"}},{H:"path",R:{d:"M21,41.65 L21,18 L43.7,29.85 L21,41.65 Z",fill:"#fff"}}]}:g.uE?{H:"div",ca:["ytp-icon","ytp-icon-large-play-button"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},K:[{H:"path",M:"ytp-large-play-button-bg",R:{d:"m .66,37.62 c 0,0 .66,4.70 2.70,6.77 2.58,2.71 5.98,2.63 7.49,2.91 5.43,.52 23.10,.68 23.12,.68 .00,-1.3e-5 14.29,-0.02 23.81,-0.71 1.32,-0.15 4.22,-0.17 6.81,-2.89 2.03,-2.07 2.70,-6.77 2.70,-6.77 0,0 .67,-5.52 .67,-11.04 l 0,-5.17 c 0,-5.52 -0.67,-11.04 -0.67,-11.04 0,0 -0.66,-4.70 -2.70,-6.77 C 62.03,.86 59.13,.84 57.80,.69 48.28,0 34.00,0 34.00,0 33.97,0 19.69,0 10.18,.69 8.85,.84 5.95,.86 3.36,3.58 1.32,5.65 .66,10.35 .66,10.35 c 0,0 -0.55,4.50 -0.66,9.45 l 0,8.36 c .10,4.94 .66,9.45 .66,9.45 z",
fill:"#1f1f1e","fill-opacity":"0.81"}},{H:"path",R:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}},{H:"path",R:{d:"M 45.02,23.46 45.32,23.28 26.96,13.67 43.32,24.34 45.02,23.46 z",fill:"#ccc"}}]}]);g.Y.call(this,{H:"div",M:"ytp-cued-thumbnail-overlay",K:[{H:"div",M:"ytp-cued-thumbnail-overlay-image"},{H:"button",ca:c,R:k?{style:"background: no-repeat center/100% url("+k+");"}:null,K:f}]});k&&(this.U("mouseover",function(){this.bl.style.backgroundImage="url("+e+")"}),this.U("mouseout",
function(){this.bl.style.backgroundImage="url("+d+")"}));
this.C=new g.uG(this);g.M(this,this.C);this.o=a;this.D=this.va["ytp-cued-thumbnail-overlay-image"];this.bl=this.va["ytp-large-play-button"];this.B=new g.cX(this,250);g.M(this,this.B);this.A=new g.Ht(this.aA,0,this);g.M(this,this.A);this.aA();this.P(a,"presentingplayerstatechange",this.UM);this.P(a,"ypcStateChanged",this.rS);ZN(g.X(a))&&this.P(a,"videoplayerreset",this.TM)};
t_=function(a,b){g.uG.call(this);this.T=a;this.A=b;this.o=new window.Set;this.g=window.navigator.mediaSession;s_(this,"play",function(){p_(b,!0);a.fd()});
s_(this,"pause",function(){p_(b,!1);a.qd()});
s_(this,"seekbackward",function(){o_(b,LE());a.ie(-5*a.Uc())});
s_(this,"seekforward",function(){o_(b,DE());a.ie(5*a.Uc())});
this.P(a,"videodatachange",this.C);this.P(a,"presentingplayerstatechange",this.B);this.C()};
s_=function(a,b,c){a.g.setActionHandler(b,c?(0,g.A)(c,a):null);a.o.add(b)};
u_=function(a){g.Y.call(this,{H:"div",M:"ytp-paid-content-overlay",R:{"aria-live":"assertive","aria-atomic":"true"}});this.I=new g.Y({H:"div",ca:["ytp-button","ytp-paid-content-overlay-text"]});g.M(this,this.I);this.I.Ea(this.element);this.T=a;this.A=null;this.F=!1;this.C=new g.cX(this.I,250,!1,100);g.M(this,this.C);this.D=this.o=null;this.B={};this.G=0;this.P(a,"videodatachange",this.N);this.P(a,"presentingplayerstatechange",this.L)};
hpa=function(a,b){var c=oQ(b),d=pQ(b);a.o?b.videoId&&b.videoId!=a.A&&(g.Jt(a.o),a.A=b.videoId,c=a.B[b.videoId]||0,a.F=!!d&&3E3>c):c&&d&&(a.o=new g.Ht(a.J,d,a),g.M(a,a.o),g.Qd(g.I("ytp-paid-content-overlay-text",a.element),c))};
ipa=function(a,b){a.o&&g.W(b,8)&&a.F&&(a.F=!1,a.C.show(),a.G=(0,g.G)(),a.o.start())};
w_=function(a){g.Y.call(this,{H:"div",M:"ytp-spinner",K:[ZZ(),{H:"div",M:"ytp-spinner-message",K:[g.U("YTP_PLAYBACK_STALLED_AT_START")]}]});this.B=this.va["ytp-spinner-message"];this.A=a;this.o=new g.Ht(this.show,500,this);g.M(this,this.o);this.P(a,"presentingplayerstatechange",this.C);this.P(a,"onFrescaStateChange",this.D);this.P(a,"playbackstalledatstart",this.F);v_(this,g.$V(a))};
v_=function(a,b){if(g.W(b,128))var c=0;else!(c=g.W(b,16))&&(c=g.W(b,1))&&(c=g.TV(a.A).D,c=!(c&&c.loaded));c?a.o.start():a.hide()};
x_=function(a,b,c,d){d=void 0===d?!1:d;g.bX.call(this,b);this.T=a;this.ba=d;this.J=null;this.I=new g.uG(this);g.M(this,this.I);this.L=new g.cX(this,c,!0);g.M(this,this.L);this.C=null};
jpa=function(a){a.C&&(window.document.activeElement&&g.Od(a.element,window.document.activeElement)&&(g.Ud(a.C),a.C.focus()),a.C.removeAttribute("aria-expanded"),a.C=null);g.wG(a.I);a.J=null};
y_=function(a){return a.g&&3!=a.L.g};
z_=function(a){var b=g.X(a).experiments.A("mweb_muted_autoplay_animation"),c=[],d=[];"none"!=b&&(c.push("ytp-unmute-animated"),d.push({H:"div",ca:["ytp-unmute-box"]}),"expand"==b?c.push("ytp-unmute-expand"):"shrink"==b&&c.push("ytp-unmute-shrink"));x_.call(this,a,{H:"button",ca:["ytp-unmute","ytp-popup","ytp-button"].concat(c),K:[{H:"div",M:"ytp-unmute-inner",K:[{H:"div",ca:["ytp-unmute-icon"],K:[g.uE?{H:"div",ca:["ytp-icon","ytp-icon-volume-muted-dark"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{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"}}]}]},
{H:"div",ca:["ytp-unmute-text"],K:[g.U("YTP_TAP_TO_UNMUTE")]}].concat(d)}]},100);this.o=a;this.B=this.A=!1;this.P(a,"mutedautoplaychange",this.D,this);this.U("click",this.onClick,this);a=a.app.ha;g.IW(this,a);a&&kpa(this)};
kpa=function(a){a.B||(a.B=!0,g.hW(a.o,"mutedAutoplayImpression",{}))};
A_=function(a){g.uG.call(this);g.tE();var b=g.X(a),c=g.aW(a);this.g=a;this.Ab=!1;this.L=null;this.sa=!1;var d=new r_(a);g.M(this,d);g.uW(a,d.element,4);var e=new w_(a);g.M(this,e);g.uW(a,e.element,4);this.F=new n_(a);g.M(this,this.F);g.uW(a,this.F.element,4);var f=a.ga();this.B=new XZ(c,(0,g.A)(this.MM,this),f,b.useTabletControls);g.M(this,this.B);this.B.subscribe("autohideupdate",this.Ss,this);var k=new u_(a);g.M(this,k);g.uW(a,k.element,4);this.Y=new z_(a);g.M(this,this.Y);g.uW(this.g,this.Y.element,
2);this.ib=!1;this.P(a,"mutedautoplaychange",this.NM);this.da=new g.Ht(this.Xz,200,this);g.M(this,this.da);this.Aa=f.videoId;this.D=null;this.J=!1;this.Ya=null;this.ka=[];f=a.getRootNode();f.setAttribute("aria-label",g.U("YTP_PLAYER_NORMAL"));switch(b.color){case "white":g.S(f,"ytp-color-white")}!g.X(a).experiments.g("disable_mediasession2")&&"mediaSession"in window.navigator&&!window.navigator.mediaSession.metadata&&window.navigator.mediaSession.setActionHandler&&(f=new t_(a,this.F),g.M(this,f));
this.P(a,"appresize",this.Bb);this.P(a,"presentingplayerstatechange",this.OQ);this.P(a,"videodatachange",this.Wz);this.P(a,"videoplayerreset",this.KQ);this.P(a,"autonavvisibility",this.Pi,this);this.P(a,"minimized",this.Lg,this);this.P(a,"onFrescaStateChange",this.Lg,this);this.P(c,"click",this.iR,this);this.P(c,"dblclick",this.jR,this);b.sa&&(this.P(c,"gesturechange",this.kR,this),this.P(c,"gestureend",this.lR,this));this.ob=[c.containerElement,e.element,d.element,this.F.element]};
B_=function(a,b){if(!b)return!1;var c=a.g.app.D.oa();if(c&&g.Od(c,b))return c.controls;for(c=0;c<a.ob.length;c++)if(g.Od(a.ob[c],b))return!1;return g.Tp(b,"ytp-player-content")||g.Tp(b,"html5-endscreen")||b==a.g.getRootNode()?!1:!0};
lpa=function(a,b,c){a.g.isFullscreen()?c<1-b&&g.cW(a.g):c>1+b&&g.cW(a.g)};
C_=function(a){g.bX.call(this,{H:"div",M:"ytp-ad-persistent-progress-bar-container",K:[{H:"div",M:"ytp-ad-persistent-progress-bar"}]});this.A=a;this.D=this.va["ytp-ad-persistent-progress-bar"];this.o=null;this.P(a,"presentingplayerstatechange",this.C);this.hide();this.C()};
E_=function(a,b,c){var d={"aria-label":g.U("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-owns":"iv-drawer","aria-haspopup":!0},e={H:"span",M:"ytp-cards-button-icon-default",K:[{H:"div",M:"ytp-cards-button-icon",K:[g.uE?{H:"div",ca:["ytp-icon","ytp-icon-info-card"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{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"}}]}]},
{H:"div",M:"ytp-cards-button-title",K:[g.U("YTP_CARDS_BUTTON_INFO")]}]};d={H:"button",ca:["ytp-button","ytp-cards-button"],R:d,K:[e,{H:"span",M:"ytp-cards-button-icon-shopping",K:[{H:"div",M:"ytp-cards-button-icon",K:[g.uE?{H:"div",ca:["ytp-icon","ytp-icon-shopping-card"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",M:"ytp-svg-shadow",R:{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"}},{H:"path",M:"ytp-svg-fill",R:{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"}},{H:"path",M:"ytp-svg-shadow-fill",R:{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"}}]}]},{H:"div",
M:"ytp-cards-button-title",K:[g.U("YTP_CARDS_BUTTON_SHOPPING")]}]}]};g.Y.call(this,d);this.T=a;this.B=b;this.C=c;this.o=null;this.A=new g.cX(this,250,!0,100);g.M(this,this.A);a=g.X(this.T);b=g.aW(this.T).Xa().width;b=a.A&&480<b;a.experiments.g("enable_cards_button_title")&&g.T(this.C,"ytp-show-cards-title",b);this.hide();this.U("click",this.D);this.U("mouseover",this.F);D_(this,!0)};
D_=function(a,b){b?a.o=F_(a.B.o,a.element):(a.o(),a.o=null)};
G_=function(a,b){g.Y.call(this,{H:"div",M:"ytp-cards-teaser",K:[{H:"div",M:"ytp-cards-teaser-box"},{H:"div",M:"ytp-cards-teaser-text",K:[{H:"span",M:"ytp-cards-teaser-label",K:["{{text}}"]}]}]});this.T=a;this.C=new g.cX(this,250,!1,250);g.M(this,this.C);this.F=b;this.o=null;this.I=new g.Ht(this.qQ,300,this);this.G=new g.Ht(this.oQ,2E3,this);this.J=new g.Go(null);this.D=[];this.B=this.A=null;this.P(b.element,"mouseover",this.Yz);this.P(b.element,"mouseout",this.yh);this.P(a,"cardsteasershow",this.FR);
this.P(a,"cardsteaserhide",this.ul);this.P(a,"cardstatechange",this.UC);this.P(a,"presentingplayerstatechange",this.UC);this.U("click",this.PM);this.U("mouseenter",this.OM)};
mpa=function(a,b){a.Ga("text",b.teaserText);a.element.setAttribute("dir",g.Ho(a.J,b.teaserText));a.C.show();a.A=new g.Ht(function(){g.S(this.T.getRootNode(),"ytp-cards-teaser-shown")},0,a);
a.A.start();D_(a.F,!1);a.o=new g.Ht(a.ul,580+b.durationMs,a);a.o.start();a.D.push(a.U("mouseover",a.Yz,a));a.D.push(a.U("mouseout",a.yh,a))};
g.I_=function(a,b,c,d){g.bX.call(this,a);this.priority=b;c&&g.H_(this,c);d&&this.Zb(d)};
g.J_=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{H:c?"a":"div",ca:b,R:a,K:[{H:"div",M:"ytp-menuitem-label",K:["{{label}}"]},{H:"div",M:"ytp-menuitem-content",K:["{{content}}"]}]}};
g.H_=function(a,b){a.Ga("label",b)};
K_=function(a,b,c,d,e){var f={H:"div",M:"ytp-panel"};if(c){var k="ytp-panel-title";var l={H:"div",M:"ytp-panel-header",K:[{H:"button",ca:["ytp-button",k],K:[c]}]};if(e){var m="ytp-panel-options";l.K.push({H:"button",ca:["ytp-button",m],K:[d]})}f.K=[l]}g.bX.call(this,f);this.O=b;b.Ea(this.element);this.ea=!1;c&&(this.P(this.va[k],"click",this.fa),this.ea=!0,e&&this.P(this.va[m],"click",e));b.subscribe("size-change",this.da,this);this.P(a,"fullscreentoggled",this.da)};
g.L_=function(a,b,c,d,e){b=new g.bX({H:"div",M:"ytp-panel-menu",R:{role:"menu",id:void 0===b?null:b}});K_.call(this,a,b,c,d,e);this.F=b;g.M(this,this.F);this.La=[]};
g.M_=function(a,b,c){if(void 0===c?0:c)a.La.push(b),a.F.element.appendChild(b.element);else{c=g.zb(a.La,b,npa);if(0<=c)return;c=~c;g.vb(a.La,c,0,b);Fd(a.F.element,b.element,c)}b.subscribe("size-change",a.V,a);a.F.X("size-change")};
g.opa=function(a,b){b.unsubscribe("size-change",a.V,a);a.ma()||(g.pb(a.La,b),a.F.element.removeChild(b.element),a.F.X("size-change"))};
g.ppa=function(a){for(var b=g.la(a.La),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.V,a);a.La=[];g.Dd(a.F.element);a.F.X("size-change")};
npa=function(a,b){return b.priority-a.priority};
g.N_=function(a,b){x_.call(this,a,{H:"div",ca:["ytp-popup",b||null]},100,!0);this.o=[];this.size=new g.dd(0,0);this.D=this.F=null;this.N=this.O=0;this.U("keydown",this.gN)};
qpa=function(a){g.Fh(a.element,a.O||"100%",a.N||"100%");var b=O_(a);b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.O.element.style.height="";var c=g.Gh(b.element);c.width+=1;c.height+=1;b.element.style.width=c.width+"px";b.element.style.height=c.height+"px";b.element.style.maxWidth="";b.element.style.maxHeight="";var d=0;b.ea&&(d=g.Gh(b.va["ytp-panel-header"]).height);b.O.element.style.height=c.height-d+"px";a.size=c};
g.Q_=function(a,b){var c=a.o[a.o.length-1];a.o.push(b);P_(a,c,b)};
g.R_=function(a){var b=a.o.pop(),c=a.o[0];a.o=[c];P_(a,b,c,!0)};
P_=function(a,b,c,d){rpa(a);O_(a);g.Tp(c.element,"ytp-panel-animate-back")||g.Tp(c.element,"ytp-panel-animate-forward");b&&(b.unsubscribe("size-change",a.Rl,a),b.unsubscribe("back",a.Qe,a));c.subscribe("size-change",a.Rl,a);c.subscribe("back",a.Qe,a);if(a.g){g.S(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ea(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;qpa(a);g.Fh(a.element,e);a.F=new g.Ht(g.Aa(a.uT,b,c,d),20,a);a.F.start()}else c.Ea(a.element),
b&&b.detach()};
O_=function(a){return a.o[a.o.length-1]};
rpa=function(a){a.F&&g.It(a.F);a.D&&g.It(a.D)};
S_=function(a){var b=g.J_({"aria-haspopup":!0});g.I_.call(this,b,a);this.U("keydown",this.o)};
T_=function(a,b){a.element.setAttribute("aria-haspopup",b)};
U_=function(a,b){var c=g.J_({role:"menuitemcheckbox","aria-checked":!1});g.I_.call(this,c,b,a,{H:"div",M:"ytp-menuitem-toggle-checkbox"});this.o=!1;this.U("click",this.I)};
V_=function(a,b){a.o=b;a.element.setAttribute("aria-checked",a.o)};
W_=function(a,b,c){g.L_.call(this,a);this.T=a;this.L=b;this.J=c;this.B=new S_(8);g.M(this,this.B);g.M_(this,this.B,!0);this.B.U("click",this.DP,this);xW(a,this.B.element,this.B,28659);this.A=new S_(7);g.M(this,this.A);g.M_(this,this.A,!0);this.A.U("click",this.CP,this);xW(a,this.A.element,this.A,28660);this.o=new S_(6);g.M(this,this.o);g.M_(this,this.o,!0);this.o.U("click",this.AP,this);xW(a,this.o.element,this.o,28658);this.D=new U_(g.U("YTP_LOOP"),5);g.M(this,this.D);g.M_(this,this.D,!0);this.D.U("click",
this.VP,this);xW(a,this.D.element,this.D,28661);this.N=new g.I_(g.J_({href:"{{href}}",target:"_blank"},void 0,!0),4,g.U("YTP_TROUBLESHOOT_ISSUE"));g.M(this,this.N);g.M_(this,this.N,!0);this.N.U("click",this.cR,this);this.I=new S_(3);g.M(this,this.I);g.M_(this,this.I,!0);this.I.U("click",this.zP,this);b=new g.I_(g.J_(),2,g.U("YTP_SHOW_VIDEO_INFO"));g.M(this,b);g.M_(this,b,!0);b.U("click",this.vR,this);this.G=new g.bX({H:"div",ca:["ytp-copytext","ytp-no-contextmenu"],R:{draggable:!1,tabindex:1},K:["{{text}}"]});
g.M(this,this.G);this.G.U("click",this.fP,this);this.ba=new K_(a,this.G);g.M(this,this.ba);this.C=null;b=window.document.queryCommandSupported&&window.document.queryCommandSupported("copy");g.tF&&g.oc(43)&&(b=!0);g.KM&&!g.oc(41)&&(b=!1);b&&(this.C=new g.Y({H:"textarea",M:"ytp-html5-clipboard"}),g.M(this,this.C),this.C.Ea(this.element));this.P(a,"loopchange",this.UP);this.P(a,"videodatachange",this.RM);spa(this);tpa(this,this.T.ga())};
X_=function(a,b){if(a.C){a.C.element.value=b;a.C.element.select();try{var c=window.document.execCommand("copy")}catch(d){}}c?a.J.Ub():(a.G.Zb(b,"text"),g.Q_(a.J,a.ba),HW(a.G.element),a.C&&(a.C=null,spa(a)));return c};
tpa=function(a,b){var c=g.X(a.T),d=2!=a.T.Za()||b.isListed;d=!c.I&&!!b.videoId&&d;"play"!=c.g?c="https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,plid:b.playbackId,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.Oa&&(c.fmt=oJ(b.Oa)),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.zh&&(c.partnerid=b.zh),c=g.Pg("//support.google.com/googleplay/",c));g.IW(a.o,d&&b.allowEmbed);g.IW(a.B,d);g.IW(a.A,d&&!b.Ba);a.N.Zb(c,"href")};
spa=function(a){var b=!!a.C;g.H_(a.I,g.U(b?"YTP_COPY_DEBUG_INFO":"YTP_GET_DEBUG_INFO"));T_(a.I,!b);g.H_(a.o,g.U(b?"YTP_EMBED_COPY":"YTP_GET_EMBED"));T_(a.o,!b);g.H_(a.B,g.U(b?"YTP_COPY_VIDEO_URL":"YTP_GET_VIDEO_URL"));T_(a.B,!b);g.H_(a.A,g.U(b?"YTP_COPY_VIDEO_URL_AT_TIME":"YTP_GET_VIDEO_URL_AT_TIME"));T_(a.A,!b)};
upa=function(a,b){g.zW(a.T,a.o.element,b);g.zW(a.T,a.B.element,b);g.zW(a.T,a.A.element,b);g.zW(a.T,a.D.element,b)};
Y_=function(a,b){g.N_.call(this,a);this.A=a;this.V=b;this.B=new g.uG(this);g.M(this,this.B);this.G=null;xW(a,this.element,this,28656);g.S(this.element,"ytp-contextmenu");g.X(a).F&&g.S(this.element,"ytp-dni");vpa(this);this.hide()};
vpa=function(a){g.wG(a.B);"gvn"!=g.X(a.A).g&&a.B.P(g.aW(a.A),"contextmenu",a.eP)};
wpa=function(a){a.A.isFullscreen()?g.uW(a.A,a.element,9):a.Ea(window.document.body)};
Z_=function(a,b,c,d,e,f){g.uG.call(this);this.g=a;this.F=c;this.C=d;this.o=e;this.D=f;this.B=new g.Ht(g.Aa(this.cA,!1),1E3,this);g.M(this,this.B);this.A="";a=g.Aa(this.It,!1);this.P(b,"mousedown",a);this.P(c.element,"mousedown",a);this.P(b,"keydown",this.Sx);this.P(c.element,"keydown",this.Sx);this.P(b,"keyup",this.Tx);this.P(c.element,"keyup",this.Tx)};
ypa=function(a,b,c){var d=!1,e=g.X(a.g);if(!e.Ng){switch(b){case 80:c&&(gpa(a.o),a.g.ol(),d=!0);break;case 78:c&&(o_(a.o,FE(),g.U("YTP_NEXT")),a.g.Aj(),d=!0);break;case 74:a.g.Rd()&&(o_(a.o,g.uE?{H:"div",ca:["ytp-icon","ytp-icon-rewind-ten-seconds"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{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"}}]}),
a.g.ie(-10*a.g.Uc()),d=!0);break;case 76:a.g.Rd()&&(o_(a.o,g.uE?{H:"div",ca:["ytp-icon","ytp-icon-forward-ten-seconds"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{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"}}]}),
a.g.ie(10*a.g.Uc()),d=!0);break;case 77:a.g.Le()?(a.g.cg(),q_(a.o,a.g.getVolume(),!1)):(a.g.mute(),q_(a.o,0,!0));d=!0;break;case 75:d=!kR(g.$V(a.g));p_(a.o,d);d?a.g.fd():a.g.qd();d=!0;break;case 190:if(c){if(e.Na)for(b=a.g.zj(),c=a.g.Uc(),e=0;e<b.length-1;e++)b[e]==c&&(d=b[e+1],a.g.Zf(d,!0),fpa(a.o,d,!1),d=!0)}else a.g.Rd()&&(xpa(a,1),d=!0);break;case 188:if(c){if(e.Na)for(b=a.g.zj(),c=a.g.Uc(),e=b.length-1;1<=e;e--)b[e]==c&&(d=b[e-1],a.g.Zf(d,!0),fpa(a.o,d,!0),d=!0)}else a.g.Rd()&&(xpa(a,-1),d=!0);
break;case 70:Zoa(a.g)&&(g.cW(a.g),d=!0)}d&&a.C.jc(2,!0)}return d};
a0=function(a,b,c,d){if(g.TV(a.g).g){for(var e=a.g.ti(),f,k=0;k<g.$_.length;k++){var l=g.$_[k];if(l.option==b){f=l.options;break}}var m;for(k=0;k<f.length;k++)f[k].option==e[b]&&(m=k);if(d)if(c){if(0==m)return!1}else if(m==f.length-1)return!1;d={};d[b]=f[(m+(c?f.length-1:1))%f.length].option;a.g.fo(d);a.cA(!0);a.B.start();return!0}return!1};
xpa=function(a,b){a.g.Rd();if(g.W(g.$V(a.g),4)){var c=a.g.ga().Oa;c&&(c=c.video)&&a.g.ie(b/(c.fps||30))}};
c0=function(a,b){g.Y.call(this,{H:"div",M:"ytp-pause-overlay",K:[{H:"div",M:"ytp-suggestions"}]});this.o=a;this.ba=b;this.B=new g.uG(this);g.M(this,this.B);this.I=new g.cX(this,250,!1,100);g.M(this,this.I);var c=g.X(a);this.D=[];this.A=[];this.F=0;this.ea=c.A&&!c.F;this.V=!1;this.N=new g.Y({H:"button",ca:["ytp-button","ytp-previous"],R:{"aria-label":g.U("YTP_PREVIOUS")},K:[g.wE()]});g.M(this,this.N);this.N.Ea(this.element);this.N.U("click",this.iN,this);c=g.tF||g.bf?{style:"will-change: opacity"}:
null;this.Y=new b0((0,g.A)(this.VC,this));g.M(this,this.Y);this.O=this.C=0;this.L=this.va["ytp-suggestions"];for(var d=0;16>d;d++){var e=new g.Y({H:"a",M:"ytp-suggestion-link",R:{href:"{{link}}",target:"_blank"},K:[{H:"div",M:"ytp-suggestion-image"},{H:"div",M:"ytp-suggestion-overlay",R:c,K:[{H:"div",M:"ytp-suggestion-title",K:["{{title}}"]},{H:"div",M:"ytp-suggestion-author",K:["{{author_and_views}}"]},{H:"div",M:"ytp-suggestion-duration",K:["{{duration}}"]}]}]});g.M(this,e);e.Ea(this.L);var f=e.va["ytp-suggestion-link"];
g.nh(f,"transitionDelay",d/20+"s");this.B.P(f,"click",g.Aa(this.SO,d));this.D.push(e)}this.J=new g.Y({H:"button",ca:["ytp-button","ytp-next"],R:{"aria-label":g.U("YTP_NEXT")},K:[g.xE()]});g.M(this,this.J);this.J.Ea(this.element);this.J.U("click",this.hN,this);c={"aria-label":g.U("YTP_CLOSE")};c=new g.Y({H:"button",ca:["ytp-button","ytp-collapse"],R:c,K:[g.uE?{H:"div",ca:["ytp-icon","ytp-icon-small-close"]}:{H:"svg",R:{height:"100%",viewBox:"0 0 16 16",width:"100%"},K:[{H:"path",R:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",
fill:"#fff"}}]}]});g.M(this,c);c.Ea(this.element);c.U("click",this.OO,this);this.G=new g.Y({H:"button",ca:["ytp-button","ytp-expand"],K:[g.U("YTP_MORE_VIDEOS")]});g.M(this,this.G);this.G.Ea(this.element);this.G.U("click",this.QO,this);this.B.P(this.o,"appresize",this.Is);this.B.P(this.o,"fullscreentoggled",this.jN);this.B.P(this.o,"presentingplayerstatechange",this.kN);this.B.P(this.o,"videodatachange",this.lN);this.Is(g.aW(this.o).Xa())};
zpa=function(a,b){var c=g.Xc(b,a.F-a.A.length*(a.O+8),0);a.Y.start(a.C,c,1E3);a.C=c;d0(a)};
d0=function(a){var b=a.C,c=a.F-a.A.length*(a.O+8);g.T(a.element,"ytp-scroll-min",0<=b);g.T(a.element,"ytp-scroll-max",b<=c)};
Apa=function(a){for(var b=g.X(a.o),c=0;c<a.A.length;c++){var d=a.A[c].dc(),e=a.D[c],f=d.shortViewCount?d.author+" \u2022 "+d.shortViewCount:d.author;e.element.style.display="";e.update({author_and_views:f,duration:d.lengthSeconds?g.eX(d.lengthSeconds):0,link:d.Bn(b),title:d.title});e=e.va["ytp-suggestion-image"];d=d.bc(b);e.style.backgroundImage=d?"url("+d+")":""}for(;c<a.D.length;c++)a.D[c].element.style.display="none";d0(a)};
b0=function(a){g.L.call(this);this.C=a;this.B=new DC(0,0,.4,0,.2,1,1,1);this.o=new g.Et(this.A,window,this);g.M(this,this.o)};
e0=function(a,b,c){var d=b.dc(c),e=g.X(a),f=d.bc(e,"default.jpg");g.Y.call(this,{H:"a",ca:["ytp-video-menu-item","ytp-button"],R:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},K:[{H:"div",M:"ytp-video-menu-item-index",K:[""+(c+1)]},{H:"div",M:"ytp-video-menu-item-now-playing",K:["\u25b6"]},{H:"div",M:"ytp-video-menu-item-thumbnail",R:{style:f?"background-image: url("+f+");":null}},{H:"div",M:"ytp-video-menu-item-title",K:[d.title]},{H:"div",
M:"ytp-video-menu-item-author",K:[d.author]}]});this.o=a;this.gc=c;this.U("click",this.A)};
f0=function(a){x_.call(this,a,{H:"div",M:"ytp-playlist-menu",R:{role:"dialog",id:AW()},K:[{H:"div",M:"ytp-playlist-menu-header",K:[{H:"div",M:"ytp-playlist-menu-title",K:[{H:"a",M:"ytp-playlist-menu-title-name",R:{href:"{{playlisturl}}"},K:["{{title}}"]},{H:"button",ca:["ytp-playlist-menu-close","ytp-button"],R:{"aria-label":g.U("YTP_CLOSE")},K:[g.BE()]}]},{H:"div",M:"ytp-playlist-menu-subtitle",K:["{{subtitle}}"]}]},{H:"div",M:"ytp-playlist-menu-items",R:{role:"menu"}}]},250);this.P(this.va["ytp-playlist-menu-close"],
"click",this.Ub);this.P(this.va["ytp-playlist-menu-title-name"],"click",this.HR);this.A=a;this.B=this.G=this.o=null;this.La=this.va["ytp-playlist-menu-items"];this.F=new g.uG(this);g.M(this,this.F);this.D=[];this.hide()};
Bpa=function(a,b){if(a.o!=b)if(a.o&&a.o.unsubscribe("shuffle",a.Fo,a),a.o=b,a.G=null,b){b.subscribe("shuffle",a.Fo,a);var c=b.author;a.update({title:b.title,subtitle:g.U(c?"YTP_PLAYLIST_AUTHOR_AND_POSITION":"YTP_PLAYLIST_POSITION",{AUTHOR:c,CURRENT_POSITION:b.ce()+1,PLAYLIST_LENGTH:b.getLength()}),playlisturl:a.A.getVideoUrl(!0)});a.Fo()}else a.g&&a.hide();else a.o&&a.Fo()};
g0=function(a,b,c){var d={title:"{{title}}","aria-owns":c.element.id,"aria-haspopup":!0,"aria-label":g.U("YTP_PLAYLIST")};g.Y.call(this,{H:"button",ca:["ytp-playlist-menu-button","ytp-button"],R:d,K:[{H:"div",M:"ytp-playlist-menu-button-icon",K:[g.uE?{H:"div",ca:["ytp-icon","ytp-icon-playlist"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,R:{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"}}]}]},{H:"div",M:"ytp-playlist-menu-button-text",K:["{{text}}"]}]});this.B=a;this.o=null;this.C=b.o;this.P(a,"videodatachange",this.D);this.P(a,"onPlaylistUpdate",this.D);this.P(a,"presentingplayerstatechange",this.A);this.P(a,"appresize",this.A);this.hide();this.D();g.Xe(this,F_(this.C,this.element));this.U("click",(0,g.A)(c.Fh,c,this.element,!1))};
h0=function(a,b){g.Y.call(this,{H:"button",ca:["ytp-replay-button","ytp-button"],R:{title:g.U("YTP_REPLAY")},K:[KE()]});this.o=a;this.P(a,"presentingplayerstatechange",this.B);this.U("click",this.A,this);var c=g.$V(a);g.IW(this,g.W(c,2));F_(b.o,this.element)};
i0=function(a,b){var c=AW();c={H:"div",M:"ytp-share-panel",R:{id:AW(),role:"dialog","aria-labelledby":c},K:[{H:"button",ca:["ytp-share-panel-close","ytp-button"],R:{title:g.U("YTP_CLOSE")},K:[g.BE()]},{H:"div",M:"ytp-share-panel-inner-content",K:[{H:"div",M:"ytp-share-panel-title",R:{id:c},K:[g.U("YTP_SHARE")]},{H:"a",ca:["ytp-share-panel-link","ytp-no-contextmenu"],R:{href:"{{link}}",target:"_blank",title:g.U("YTP_SHARE_LINK"),"aria-label":g.U("YTP_SHARE_LINK")},K:["{{linkText}}"]},{H:"label",M:"ytp-share-panel-include-playlist",
K:[{H:"input",M:"ytp-share-panel-include-playlist-checkbox",R:{type:"checkbox",checked:!0}},g.U("YTP_SHARE_WITH_PLAYLIST_2")]},{H:"div",M:"ytp-share-panel-loading-spinner",K:[ZZ()]},{H:"div",M:"ytp-share-panel-service-buttons",K:["{{buttons}}"]},{H:"div",M:"ytp-share-panel-error",K:[g.U("YTP_SHARE_PANEL_ERROR")]}]}]};x_.call(this,a,c,250);this.o=a;this.A=b.o;this.B=[];this.N=this.va["ytp-share-panel-inner-content"];this.F=this.va["ytp-share-panel-close"];this.P(this.F,"click",this.Ub);g.Xe(this,F_(this.A,
this.F));this.G=this.va["ytp-share-panel-include-playlist-checkbox"];this.P(this.G,"click",this.kA);this.D=this.va["ytp-share-panel-link"];g.Xe(this,F_(this.A,this.D));this.U("click",this.EQ);this.P(a,"videoplayerreset",this.hide);this.P(a,"fullscreentoggled",this.AN);this.hide()};
Cpa=function(a){switch(a){case "facebook":return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-share-facebook"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},K:[{H:"rect",R:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{H:"path",R:{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"}}]};case "googleplus":return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-share-googleplus"]}:{H:"svg",R:{height:"100%",version:"1.0",viewBox:"0 0 38 38",width:"100%"},K:[{H:"rect",R:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{H:"path",R:{d:"M34.3,0H3.7C1.7,0,0,1.7,0,3.7v30.5c0,2,1.7,3.7,3.7,3.7h30.5c2,0,3.7-1.7,3.7-3.7V3.7C38,1.7,36.3,0,34.3,0z M13.3,28.5c-5.2,0-9.5-4.3-9.5-9.5c0-5.2,4.3-9.5,9.5-9.5c2.6,0,4.7,.9,6.4,2.5l-2.7,2.7c-1-0.9-2.2-1.4-3.6-1.4 c-3.1,0-5.6,2.6-5.6,5.7s2.5,5.7,5.6,5.7c2.8,0,4.7-1.6,5.1-3.8h-5.1v-3.6h8.9c0.1,.6,.2,1.3,.2,2C22.4,24.6,18.8,28.5,13.3,28.5 z M34.2,19.6H31v3.2h-2.2v-3.2h-3.2v-2.2h3.2v-3.2H31v3.2h3.2V19.6z",
fill:"#dc4537"}}]};case "twitter":return g.uE?{H:"div",ca:["ytp-icon","ytp-icon-share-twitter"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},K:[{H:"rect",R:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{H:"path",R:{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"}}]};default:return null}};
Dpa=function(a){for(var b=g.la(a.B),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.Ye(c);a.B=[]};
j0=function(a,b,c,d){g.Y.call(this,{H:"button",ca:["ytp-button","ytp-share-button"],R:{title:g.U("YTP_SHARE"),"aria-haspopup":!0,"aria-owns":c.element.id},K:[{H:"div",M:"ytp-share-icon",K:["{{icon}}"]},{H:"div",M:"ytp-share-title",K:["{{share}}"]}]});this.o=a;this.A=d;this.G=c;xW(a,this.element,this,28664);this.U("click",this.F);this.P(a,"videodatachange",this.C);this.P(a,"appresize",this.C);this.C();g.Xe(this,F_(b.o,this.element))};
k0=function(a,b){g.Y.call(this,{H:"button",ca:["ytp-airplay-button","ytp-button"],R:{title:g.U("YTP_AIRPLAY")},K:["{{icon}}"]});this.o=a;this.U("click",this.B);this.P(a,"airplayactivechange",this.A);this.P(a,"airplayavailabilitychange",this.A);this.A();g.Xe(this,F_(b.o,this.element))};
l0=function(a,b){g.bX.call(this,{H:"div",M:"ytp-storyboard",K:[{H:"div",M:"ytp-storyboard-filmstrip",K:[{H:"div",M:"ytp-storyboard-thumbnail"}]},{H:"div",M:"ytp-storyboard-lens",K:[{H:"div",M:"ytp-storyboard-lens-thumbnail"},{H:"div",M:"ytp-storyboard-lens-timestamp-wrapper",K:[{H:"span",M:"ytp-storyboard-lens-timestamp"}]}]}]});this.o=a;this.ba=b.o;this.N=new g.vk(this.WM,250,this);g.M(this,this.N);this.I=g.aW(a).Xa().width;this.A=this.va["ytp-storyboard-filmstrip"];this.ea=this.va["ytp-storyboard-lens"];
this.da=this.va["ytp-storyboard-lens-thumbnail"];this.fa=this.va["ytp-storyboard-lens-timestamp"];this.V=this.va["ytp-storyboard-thumbnail"];g.Gd(this.V);this.J=0;this.O=!1;this.L=this.C=this.B=window.NaN;this.Kb=this.D=null;this.F=new g.uG(this);g.M(this,this.F);this.G=new g.cX(this,100);g.M(this,this.G);this.P(this.o,"appresize",this.VM);this.P(this.o,"presentingplayerstatechange",this.XM)};
m0=function(a,b){var c=!!a.Kb;c&&a.Kb.unsubscribe("l",a.fp,a);a.Kb=b&&rQ(b);a.O=!!b&&b.Ba;a.Kb?(c||(a.F.P(a.o,"videodatachange",a.YM),a.F.P(a.o,"progresssync",a.mo),a.F.P(a.o,"videoplayerreset",a.mo)),a.Kb.subscribe("l",a.fp,a),a.L=window.NaN,a.B=window.NaN,a.C=window.NaN,a.mo(),a.G.show(200)):(c&&g.wG(a.F),a.N.stop(),g.iH(a.J),a.G.hide(),a.G.stop())};
Epa=function(a,b,c,d){var e=a.V.cloneNode(!1);a=WO(a.Kb,b,c);aY(e,a,c,d);return e};
n0=function(a){g.Y.call(this,{H:"div",M:"ytp-storyboard-framepreview",K:[{H:"div",M:"ytp-storyboard-framepreview-img"}]});this.D=this.va["ytp-storyboard-framepreview-img"];this.o=a;this.Kb=null;this.C=window.NaN;this.A=new g.uG(this);g.M(this,this.A);this.B=new g.cX(this,100);g.M(this,this.B);this.P(this.o,"presentingplayerstatechange",this.bN)};
p0=function(a,b){var c=!!a.Kb;a.Kb=b&&rQ(b);a.Kb?(c||(a.A.P(a.o,"videodatachange",a.dN),a.A.P(a.o,"progresssync",a.cN),a.A.P(a.o,"appresize",a.aN)),a.C=window.NaN,o0(a),a.B.show(200)):(c&&g.wG(a.A),a.B.hide(),a.B.stop())};
o0=function(a){var b=a.o.getCurrentTime(),c=g.aW(a.o).Xa(),d=UO(a.Kb,c.width);b=a.Kb.g[d].vp(b);b!=a.C&&(a.C=b,YO(a.Kb,b,c.width),b=WO(a.Kb,b,c.width),aY(a.D,b,c.width,c.height))};
q0=function(a,b){g.Y.call(this,{H:"button",ca:["ytp-fullscreen-button","ytp-button"],R:{title:"{{title}}"},K:["{{icon}}"]});this.A=a;this.D=b;this.o=null;this.B=F_(b.o,this.element);this.C=new g.Ht(this.rH,2E3,this);g.M(this,this.C);this.P(a,"fullscreentoggled",this.uC);this.P(a,"presentingplayerstatechange",this.bA);this.U("click",this.eN);if(aG()){var c=g.aW(this.A);this.P(c,uja(),this.YA);this.P(c,dG(window.document),this.fN)}g.X(a).sa||Fpa(this);this.bA();this.uC(a.isFullscreen())};
Fpa=function(a){if(!a.o){var b=g.U(null!=YF(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],window.document.body)?"YTP_FULLSCREEN_GENERIC_ERROR":"YTP_FULLSCREEN_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/);a.o=new x_(a.A,{H:"div",ca:["ytp-popup","ytp-generic-popup"],R:{role:"alert",tabindex:0},K:[b[0],{H:"a",R:{href:"https://support.google.com/youtube/answer/6276924",target:"_blank"},K:[b[2]]},b[4]]},100,!0);a.o.hide();g.M(a,a.o);a.o.subscribe("show",
(0,g.A)(a.D.Fq,a.D,a.o));g.uW(a.A,a.o.element,4);a.element.setAttribute("aria-disabled",!0);a.element.setAttribute("aria-haspopup",!0);a.B();a.B=null}};
r0=function(a){var b={H:"div",M:"ytp-multicam-menu",R:{role:"dialog"},K:[{H:"div",M:"ytp-multicam-menu-header",K:[{H:"div",M:"ytp-multicam-menu-title",K:[g.U("YTP_SWITCH_CAMERA"),{H:"button",ca:["ytp-multicam-menu-close","ytp-button"],R:{"aria-label":g.U("YTP_CLOSE")},K:[g.BE()]}]}]},{H:"div",M:"ytp-multicam-menu-items"}]};x_.call(this,a,b,250);this.B=new g.uG(this);g.M(this,this.B);this.P(this.va["ytp-multicam-menu-close"],"click",this.Ub);this.o=a;this.La=this.va["ytp-multicam-menu-items"];this.A=
[];this.hide()};
s0=function(a,b,c){g.Y.call(this,{H:"button",ca:["ytp-multicam-button","ytp-button"],R:{title:g.U("YTP_SWITCH_CAMERA"),"aria-haspopup":!0,"data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},K:[g.uE?{H:"div",ca:["ytp-icon","ytp-icon-switch-camera"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,R:{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"}}]}]});this.o=a;this.C=!1;this.A=b.o;this.D=new g.Ht(this.G,400,this);g.M(this,this.D);this.U("click",(0,g.A)(c.Fh,c,this.element,!1));this.P(a,"presentingplayerstatechange",g.Aa(this.B,!1));this.P(a,"videodatachange",this.F);this.B(!0);g.Xe(this,F_(this.A,this.element))};
t0=function(){g.L.call(this);this.C=null;this.B=this.g=0;this.A=new g.Et(this.o,null,this);g.M(this,this.A)};
Gpa=function(a,b){if("path"==b.H)return b.R.d;if(b.K)for(var c=0;c<b.K.length;c++){var d=b.K[c];if(d&&!g.u(d)&&(d=Gpa(a,d)))return d}};
Jpa=function(a,b,c){c=Gpa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=AW();b=b.getElementsByTagName("use");for(var k=0;k<b.length;k++)b[k].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=Hpa(e),m=Hpa(c);u0(a,function(a){d.setAttribute("d",Ipa(l,m,a))},200)};
u0=function(a,b,c){a.C=b;a.B=(0,g.ZG)();a.g=c;a.o()};
Hpa=function(a){var b=[];a=a.match(Kpa);for(var c=0;c<a.length;c++){var d=(0,window.parseFloat)(a[c]);b.push((0,window.isNaN)(d)?a[c]:d)}return b};
Ipa=function(a,b,c){for(var d="",e=0;e<a.length;e++){var f=a[e];d=g.qa(f)?d+(f+(b[e]-f)*c):d+f}return d};
v0=function(a,b){var c=g.X(a);g.Y.call(this,{H:"button",ca:["ytp-mute-button","ytp-button"],R:c.J?{title:"{{title}}"}:{"aria-disabled":!0,"aria-haspopup":!0},K:["{{icon}}"]});this.Ga("icon",QE());this.o=a;this.ea=b.o;this.I=this.L=this.J=this.O=window.NaN;this.F=[];this.D=[];this.G=this.B=!1;g.X(this.o).O||(this.A=new g.CW({H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"defs",K:[{H:"clipPath",R:{id:"ytp-svg-volume-animation-mask"},K:[{H:"path",R:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},
{H:"path",R:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{H:"path",M:"ytp-svg-volume-animation-mover",R:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{H:"clipPath",R:{id:"ytp-svg-volume-animation-slash-mask"},K:[{H:"path",M:"ytp-svg-volume-animation-mover",R:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{H:"path",Pa:!0,ca:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],R:{"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"}},{H:"path",Pa:!0,ca:["ytp-svg-fill","ytp-svg-volume-animation-hider"],R:{"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.M(this,this.A),this.V=this.A.va["ytp-svg-volume-animation-speaker"],this.ha=this.V.getAttribute("d"),this.F=g.ld("ytp-svg-volume-animation-mover",this.A.element),this.D=g.ld("ytp-svg-volume-animation-hider",this.A.element));this.C=null;this.Y=new t0;g.M(this,this.Y);this.N=new t0;g.M(this,this.N);
this.U("click",this.fa);this.P(a,"appresize",this.ud);this.P(a,"onVolumeChange",this.da);var d=null;c.J?g.Xe(this,F_(b.o,this.element)):(c=g.U("YTP_VOLUME_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/),d=new x_(a,{H:"span",ca:["ytp-popup","ytp-generic-popup"],R:{tabindex:0},K:[c[0],{H:"a",R:{href:"https://support.google.com/youtube/?p=noaudio",target:"_blank"},K:[c[2]]},c[4]]},100,!0),g.M(this,d),d.hide(),d.subscribe("show",(0,g.A)(b.Fq,b,d)),g.uW(a,d.element,4));this.ba=d;xW(a,this.element,this,
28662);this.ud(g.aW(a).Xa());Lpa(this,a.getVolume(),a.Le())};
Lpa=function(a,b,c){var d=c?0:b/100,e=g.X(a.o);if(e.O)d=0==d?QE():0<d&&.5>d?PE():OE(),d!=a.C&&(a.Ga("icon",d),a.C=d);else{b=0==d?1:50<b?1:0;if(a.J!=b){var f=a.O;(0,window.isNaN)(f)?Mpa(a,b):u0(a.Y,(0,g.A)(function(a){Mpa(this,f+(this.J-f)*a)},a),250);
a.J=b}d=0==d?1:0;if(a.I!=d){var k=a.L;(0,window.isNaN)(k)?Npa(a,d):u0(a.N,(0,g.A)(function(a){Npa(this,k+(this.I-k)*a)},a),250);
a.I=d}}e.J&&(a.Ga("title",c?g.U("YTP_UNMUTE"):g.U("YTP_MUTE")),w0(a.ea))};
Mpa=function(a,b){a.O=b;var c=a.ha;b&&(c+=Ipa(Opa,Ppa,b));a.V.setAttribute("d",c)};
Npa=function(a,b){a.L=b;for(var c=20*b,d=0;d<a.F.length;d++)a.F[d].setAttribute("transform","translate("+c+", "+c+")");var e;1==b?e=QE():e=a.A;for(c=0;c<a.D.length;c++)a.D[c].style.display=0==b?"none":"";e!=a.C&&(a.Ga("icon",e),a.C=e)};
x0=function(a,b){g.Y.call(this,{H:"button",ca:["ytp-pip-button","ytp-button"],R:{title:g.U("YTP_PIP")},K:[g.uE?{H:"div",ca:["ytp-icon","ytp-icon-pip"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,R:{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"}}]}]});
this.o=a;this.U("click",this.A);g.Xe(this,F_(b.o,this.element))};
y0=function(a,b){g.Y.call(this,{H:"button",ca:["ytp-play-button","ytp-button"],R:{title:"{{title}}","aria-label":"{{label}}"},K:["{{icon}}"]});this.o=a;this.A=null;this.C=b.o;this.B=null;this.D=new t0;g.M(this,this.D);this.P(a,"fullscreentoggled",this.F);this.P(a,"presentingplayerstatechange",this.G);this.P(a,"videodatachange",this.F);Qpa(this,g.$V(a));this.U("click",this.I,this)};
Rpa=function(a){switch(a){case 1:return IE();case 2:return HE();case 3:return KE();case 4:return NE();default:return null}};
Qpa=function(a,b){var c=g.wQ(a.o.ga()),d=!1;if(kR(b))var e=c?4:2;else g.W(b,2)?(e=3,d=c):e=1;a.element.disabled=d;if(a.A!=e){switch(e){case 2:var f=g.U("YTP_PAUSE");break;case 3:f=g.U("YTP_REPLAY");break;case 1:f=g.U("YTP_PLAY");break;case 4:f=g.U("YTP_STOP")}3==e?(a.B||(a.B=F_(a.C,a.element)),a.update({title:f,label:null,icon:Rpa(e)})):(a.B&&(a.B(),a.B=null),a.update({title:null,label:f}),(c=Rpa(e))&&a.A&&3!=a.A&&!g.X(a.o).O?Jpa(a.D,a.element,c):a.Ga("icon",c));w0(a.C);a.A=e}};
A0=function(a,b,c){if(c){var d="ytp-next-button";var e=FE()}else d="ytp-prev-button",e=JE();g.Y.call(this,{H:"a",ca:[d,"ytp-button"],R:{title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},K:[e]});this.o=a;this.L=b.o;this.B=c;this.A=this.F=null;this.J=!1;this.G=this.I=this.C=null;this.D=!1;this.P(a,"fullscreentoggled",this.Cj);this.P(a,"videodatachange",
this.Cj);this.P(a,"onPlaylistUpdate",this.Cj);this.B||this.P(a,"appresize",this.ud);this.P(a,"mdxpreviousnextchange",function(){z0(this);this.ud()});
this.Cj()};
Spa=function(a){a.A&&a.A.unsubscribe("shuffle",a.Cj,a)};
Tpa=function(a){return!!a.A&&!a.B&&!!a.F&&!a.F.Ba&&3<=a.o.getCurrentTime()&&2!=a.o.Za()};
Upa=function(a){var b=g.YV(g.TV(a.o));return b?a.B?b.hasNext():b.Rf():!1};
z0=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=g.X(a.o),d=bW(a.o),e=a.B&&g.vW(a.o),f=Upa(a);if(a.D)b.title=g.U("YTP_REPLAY");else if(d){var k=null;a.A&&(k=a.A.dc(a.B?bS(a.A):cS(a.A)));if(k){if(k.videoId){var l=a.A.listId;b.url=c.getVideoUrl(k.videoId,l?l.toString():void 0)}b.text=k.title;b.duration=k.lengthSeconds?g.eX(k.lengthSeconds):null;b.preview=k.bc(c,"mqdefault.jpg")}b.title=g.U(a.B?"YTP_NEXT":"YTP_PREVIOUS")}else e&&(a.F.lg&&a.F.lg.length&&(k=g.l_(a.F.lg[0]),
b.url=k.Bn(c),b.text=k.title,b.duration=k instanceof g.aQ?g.eX(k.lengthSeconds):null,b.preview=k.bc(c,"mqdefault.jpg")),b.title=g.U("YTP_NEXT"));b.disabled=!e&&!d&&!f;a.update(b);a.J=!!b.url;e||d||a.D||f?a.C||(a.C=F_(a.L,a.element),a.I=a.U("click",a.nN,a)):a.C&&(a.C(),a.C=null,a.Ca(a.I),a.I=null);w0(a.L)};
B0=function(a,b){g.bX.call(this,{H:"div",M:"ytp-progress-bar-container",R:{"aria-disabled":!0},K:[{H:"div",ca:["ytp-progress-bar",g.X(a).isMobile?"ytp-mobile":""],R:{tabindex:0,role:"slider","aria-label":g.U("YTP_SEEK_SLIDER"),"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},K:[{H:"div",M:"ytp-progress-bar-padding"},{H:"div",M:"ytp-progress-list",K:[{H:"div",ca:["ytp-play-progress","ytp-swatch-background-color"]},{H:"div",
M:"ytp-load-progress"},{H:"div",M:"ytp-hover-progress"},{H:"div",M:"ytp-clip-start-exclude"},{H:"div",M:"ytp-clip-end-exclude"},{H:"div",M:"ytp-ad-progress-list"},{H:"div",M:"ytp-marker-crenellation-list"},{H:"div",M:"ytp-marker-progress-list"}]},{H:"div",M:"ytp-scrubber-container",K:[{H:"div",ca:["ytp-scrubber-button","ytp-swatch-background-color"],K:[{H:"div",M:"ytp-scrubber-pull-indicator"}]}]}]},{H:"div",M:"ytp-bound-time-left",K:["{{boundTimeLeft}}"]},{H:"div",M:"ytp-bound-time-right",K:["{{boundTimeRight}}"]},
{H:"div",M:"ytp-clip-start",R:{title:g.U("YTP_WATCH_ALL")},K:["{{clipstarticon}}"]},{H:"div",M:"ytp-clip-end",R:{title:g.U("YTP_WATCH_ALL")},K:["{{clipendicon}}"]}]});this.Ga("clipstarticon",AE());this.Ga("clipendicon",zE());this.A=a;this.Aa=b.o;this.Ka=!1;this.C=this.uc=0;this.V=1;this.Ib=this.G=0;this.D=window.NaN;this.ib=!1;this.J=this.ba=0;this.yc=this.va["ytp-ad-progress-list"];this.Gc=this.va["ytp-marker-progress-list"];this.Ya=this.va["ytp-marker-crenellation-list"];this.O={};this.ha={};this.L=
window.Infinity;var c=b.o;this.ea=this.va["ytp-clip-end"];g.Xe(this,F_(c,this.ea));this.ka=new g.zG(this.ea,!0);g.M(this,this.ka);this.ka.subscribe("hoverstart",this.fA,this);this.ka.subscribe("hoverend",this.eA,this);this.P(this.ea,"click",this.no);this.Ta=this.va["ytp-clip-end-exclude"];this.Hc=this.va["ytp-clip-start-exclude"];this.N=0;this.da=this.va["ytp-clip-start"];g.Xe(this,F_(c,this.da));this.pa=new g.zG(this.da,!0);g.M(this,this.pa);this.pa.subscribe("hoverstart",this.fA,this);this.pa.subscribe("hoverend",
this.eA,this);this.P(this.da,"click",this.no);this.ub=this.va["ytp-load-progress"];this.fa=0;this.Oc=this.va["ytp-play-progress"];this.Na=this.va["ytp-hover-progress"];this.F=0;this.Ab=this.va["ytp-progress-bar"];this.B=null;this.Jb=this.va["ytp-scrubber-button"];this.gd=this.va["ytp-scrubber-container"];this.ra=new g.ad;this.ob=new $X;this.o=new XX(0,0);this.I=this.sa=!1;this.Ra=null;this.P(a,"presentingplayerstatechange",this.pN);this.P(a,"videodatachange",this.dA);this.P(a,"videoplayerreset",this.xI);
this.P(a,"cuerangesadded",this.iA);this.P(a,"cuerangesremoved",this.xN);this.P(a,"cuerangemarkersupdated",this.iA);this.P(a,"onPlaybackQualityChange",this.qN);Vpa(this,a.ga(),!0)};
Xpa=function(a){if(a.C){var b=a.A.th(),c=new XX(b.seekableStart,b.seekableEnd),d=ZX(c,b.loaded,0);b=ZX(c,b.current,0);var e=a.o.o!=c.o||a.o.g!=c.g;a.o=c;C0(a,b,d);e&&D0(a);Wpa(a)}};
Vpa=function(a,b,c){c=void 0===c?!1:c;var d=!!b&&b.ed();a.sa=d&&b.ug;Ypa(a,a.A.Rd());c&&(d?(c=b.clipEnd,a.N=b.clipStart,a.L=c,E0(a),C0(a,a.F,a.fa)):a.no(),b=a.Aa,1==b.o&&b.df());Xpa(a)};
Zpa=function(a){return!!a&&a.ed()&&!!a.Oa&&a.Oa.video.isAccelerated&&a.Oa.video.A};
F0=function(a,b){a.ib=b;g.T(a.ub,"ytp-fast-load",b)};
$pa=function(a,b,c,d){b=g.Xc(b,0,a.I?60:40);a.G=b;var e=a.V,f=Math.max(a.o.getLength()/a.C,1);a.V=b/(a.I?60:40)*(f-1)+1;b=a.C*a.V;a.J=g.Xc(d*b-c,0,b-a.C);e!=a.V&&D0(a)};
D0=function(a){var b=G0(a),c=-b.A/b.g,d=(-b.A+b.width)/b.g,e=g.Jd(a.Ya),f=0;if(a.G>.2*(a.I?60:40)){var k=c*(a.o.getLength()/60),l=d*(a.o.getLength()/60);for(k=Math.ceil(k);k<l;k++){var m=e[f];m||(m=g.zd("DIV"),a.Ya.appendChild(m));f++;m.className=0==k%60?"ytp-60m-progress":0==k%30?"ytp-30m-progress":0==k%15?"ytp-15m-progress":"ytp-1m-progress";var n=(60*k/a.o.getLength()-c)*b.g;m.style.left=n+"px"}}b=a.sa?a.o.g:0;a.update({boundTimeLeft:g.eX(YX(a.o,c)-b),boundTimeRight:g.eX(YX(a.o,d)-b)});for(c=e.length-
1;c>=f;c--)g.Gd(e[c]);a.element.style.height=a.G+(a.I?8:5)+"px";a.X("height-change",a.G);a.Jb.style.height=a.G+(a.I?20:13)+"px";for(var q in a.O)aqa(a,a.O[q],a.ha[q]);E0(a);C0(a,a.F,a.fa)};
G0=function(a){var b=a.ra.x,c=a.C*a.V;b=g.Xc(b,0,a.C);a.ob.update(b,a.C,-a.J,-(c-a.J-a.C));return a.ob};
C0=function(a,b,c){a.F=b;a.fa=c;var d=G0(a),e=a.o.g,f=YX(a.o,a.F);a.update({ariamin:Math.floor(a.o.o),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:g.U("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:g.eX(f),DURATION:g.eX(e)})});e=ZX(a.o,a.N,0);var k=ZX(a.o,a.L,1);f=g.Xc(b,e,k);c=a.ib?1:g.Xc(c,e,k);k=b*d.g+d.A;a.Jb.style.display=0<=k&&b<=d.width?"":"none";g.nh(a.gd,"transform","translateX("+k+"px)");H0(a,a.Oc,d,e,f);H0(a,a.ub,d,e,c)};
H0=function(a,b,c,d,e,f){b.style.left=Math.max(d*c.g+c.A,0)+"px";d=Math.min((e-d)*c.g+c.A,c.width);(void 0===f?0:f)||g.X(a.A).isMobile?(b.style.width=d+"px",qh(b,"transform")):g.nh(b,"transform","scalex("+(c.width?d/c.width:0)+")")};
E0=function(a){var b=a.N>a.o.o,c=0<a.o.g&&a.L<a.o.g;g.T(a.element,"ytp-clip-start-enabled",b);g.T(a.element,"ytp-clip-end-enabled",c);b=b?ZX(a.o,a.N,0):0;c=c?ZX(a.o,a.L,1):1;a.da.style.left=Math.round(1E3*b)/10+"%";a.ea.style.left=Math.round(1E3*c)/10+"%";a.Hc.style.width=Math.round(1E3*b)/10+"%";a.Ta.style.left=Math.round(1E3*c)/10+"%";a.Ta.style.width=Math.round(1E3*(1-c))/10+"%"};
Wpa=function(a){var b=G0(a);H0(a,a.Na,b,a.F,b.o);g.T(a.Na,"ytp-hover-progress-light",b.o>a.F)};
aqa=function(a,b,c){var d=G0(a),e=ZX(a.o,b.start/1E3,0),f=kka(b)/d.width;switch(b.style){case "ytp-chapter-marker":var k=e+f/2;e-=f/2;break;default:k=ZX(a.o,b.end/1E3,1),f!=Number.POSITIVE_INFINITY&&(e=g.Xc(e,0,k-f)),k=Math.min(k,e+f),b.color&&(c.style.background=b.color)}H0(a,c,d,e,k,!0);c.className=b.style};
bqa=function(a,b){var c=b.getId();a.O[c]==b&&(g.Gd(a.ha[c]),delete a.O[c],delete a.ha[c])};
Ypa=function(a,b){b?a.B||(a.element.removeAttribute("aria-disabled"),a.B=new g.zG(a.Ab,!0),a.B.subscribe("hovermove",a.uN,a),a.B.subscribe("hoverend",a.tN,a),a.B.subscribe("dragstart",a.sN,a),a.B.subscribe("dragmove",a.wN,a),a.B.subscribe("dragend",a.vN,a),a.Ra=a.U("keydown",a.rN)):a.B&&(a.element.setAttribute("aria-disabled",!0),a.Ca(a.Ra),a.B.cancel(),a.B.dispose(),a.B=null)};
I0=function(a,b){U_.call(this,g.U("YTP_ANNOTATIONS"),5);this.B=b;this.T=a;this.A=!1;this.P(a,"videodatachange",this.C);this.P(a,"onApiChange",this.C);this.subscribe("select",this.D,this);this.C()};
g.J0=function(a,b,c,d,e,f){var k=g.J_({"aria-haspopup":!0});g.I_.call(this,k,b,a);this.A=d;this.G=!1;this.D=null;this.o={};this.C=new g.L_(c,void 0,a,e,f);g.M(this,this.C);this.U("keydown",this.yN);this.U("click",this.open)};
g.K0=function(a,b){g.ppa(a.C);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.o[f],l=f==a.D;l&&(d=!0);k&&k.priority==-e?(l=a,g.H_(l.o[f],l.nf(f,!0)),delete a.o[f]):(k=new g.I_({H:"div",ca:["ytp-menuitem"],R:{tabindex:0,role:"menuitemradio","aria-checked":l?!0:null},K:[{H:"div",ca:["ytp-menuitem-label"],K:["{{label}}"]}]},-e,a.nf(f,!0)),k.U("click",(0,g.A)(a.zN,a,f)));c[f]=k;g.M_(a.C,k,!0)}d||(a.D=null);for(var m in a.o)a.o[m].dispose();a.o=c};
L0=function(a,b){g.J0.call(this,g.U("YTP_AUDIO_TRACK_TITLE"),2,a,b);this.T=a;this.I=new g.Y({H:"div",K:[{H:"span",K:[g.U("YTP_AUDIO_TRACK_TITLE")]},{H:"span",M:"ytp-menuitem-label-count",K:["{{content}}"]}]});g.H_(this,this.I);this.J={};this.P(a,"videodatachange",this.F);this.P(a,"onPlaybackAudioChange",this.F);this.F()};
M0=function(a,b){U_.call(this,g.U("YTP_AUTOPLAY"),6);this.D=b;this.T=a;this.B=!1;this.A=[];this.P(a,"presentingplayerstatechange",this.C);this.subscribe("select",this.G,this);this.C()};
N0=function(a,b){g.J0.call(this,g.U("YTP_QUALITY_TITLE"),1,a,b);g.S(this.C.element,"ytp-quality-menu");this.T=a;this.J={};this.I="unknown";this.F=0;this.N=g.X(a).experiments.g("html5_dim_superoptimal_formats");this.P(a,"videodatachange",this.B);this.P(a,"videoplayerreset",this.B);this.P(a,"onPlaybackQualityChange",this.L);this.B()};
cqa=function(a,b,c){var d=a.J[b],e=g.kJ[b];var f=d?d.qualityLabel:e?e+"p":g.U("YTP_AUTO");a.N&&a.F&&e>a.F&&(c=c||[],c.push("ytp-quality-superoptimal"));a={H:"span",ca:c,K:[]};d&&d.isAccelerated&&d.A&&a.K.push({H:"div",M:"ytp-menuitem-badge-container",K:[{H:"svg",R:{fill:"#00838f",height:"11px",viewBox:"0 0 48 48",width:"11px"},K:[{H:"path",R:{d:"M0 0v48h48V0H0zm10.6 30.64L4 24.05l6.69-6.69 6.6 6.59-6.69 6.69zM24 44l-6.7-6.7 13.35-13.35-13.32-13.28L24 4l20 20-20 20z"}},{H:"path",R:{d:"M 24,44 44,24 24,4 17.33,10.67 30.65,23.95 17.3,37.3 z M 10.6,30.64 17.29,23.95 10.69,17.36 4,24.05 z",
fill:"#fff"}}]}]});a.K.push(f);var k;"highres"==b?k="8K":"hd2880"==b?k="5K":"hd2160"==b?k="4K":0==b.indexOf("hd")&&(k="HD");k&&(a.K.push(" "),a.K.push({H:"sup",M:"ytp-swatch-color",K:[k]}));return a};
O0=function(a,b,c){g.Y.call(this,{H:"button",ca:["ytp-button","ytp-settings-button"],R:{"aria-haspopup":!0,"aria-owns":AW(),title:g.U("YTP_SETTINGS")},K:[g.ME()]});this.A=c;this.T=a;this.B=!0;this.U("click",this.C);this.P(a,"onPlaybackQualityChange",this.o);this.P(a,"videodatachange",this.o);this.P(a,"webglsettingschanged",this.o);this.P(a,"appresize",this.ud);g.Xe(this,F_(b.o,this.element));this.o();this.ud(g.aW(a).Xa())};
P0=function(a,b){a.B=!!b;a.ud(g.aW(a.T).Xa())};
Q0=function(a,b){g.J0.call(this,g.U("YTP_SPEED_TITLE"),4,a,b);this.T=a;this.B=null;this.P(a,"presentingplayerstatechange",this.lA);this.lA()};
R0=function(a,b,c,d){var e=g.U("YTP_VIDEO_SUBTITLES_OVERRIDE"),f=new g.L_(b,void 0,e);g.J0.call(this,dqa(d),a,b,c,e,function(){return g.Q_(c,f)});
g.S(this.element,"ytp-subtitles-options-menu-item");this.J=d.option.toString();this.L=g.Fb(d.options,this.pA,this);this.I=f;g.M(this,this.I);a=new g.I_({H:"div",M:"ytp-menuitemtitle",K:[g.U("YTP_VIDEO_SUBTITLES_OVERRIDE_DESC")]},0);g.M(this,a);g.M_(this.I,a,!0);this.F=new g.I_({H:"div",M:"ytp-menuitem",R:{role:"menuitemradio",tabindex:0},K:[{H:"div",M:"ytp-menuitem-label",K:[g.U("YTP_ON")]}]},-1);g.M(this,this.F);g.M_(this.I,this.F,!0);this.P(this.F.element,"click",g.Aa(this.qA,!0));this.B=new g.I_({H:"div",
M:"ytp-menuitem",R:{role:"menuitemradio",tabindex:0},K:[{H:"div",M:"ytp-menuitem-label",K:[g.U("YTP_OFF")]}]},-2);g.M(this,this.B);g.M_(this.I,this.B,!0);this.P(this.B.element,"click",g.Aa(this.qA,!1));g.K0(this,(0,g.J)(d.options,this.pA))};
dqa=function(a){return(a.message?g.U(a.message):a.text)||""};
S0=function(a,b){g.L_.call(this,a,void 0,g.U("YTP_OPTIONS"));this.o={};for(var c=0;c<g.$_.length;c++){var d=g.$_[c],e=new R0(-c,a,b,d);g.M(this,e);e.subscribe("settingChange",this.A,this);this.o[d.option.toString()]=e;g.M_(this,e,!0)}c=new g.I_(g.J_(),-g.$_.length,g.U("YTP_RESET"));g.M(this,c);c.U("click",(0,g.A)(this.A,this,"reset",!0));g.M_(this,c,!0)};
eqa=function(a,b){for(var c in b){var d=a.o[c];if(d){var e=b[c].toString(),f=!!b[c+"Override"];d.o[e]&&(d.pf(e),d.F.element.setAttribute("aria-checked",!f),d.B.element.setAttribute("aria-checked",f))}}};
T0=function(a,b){g.J0.call(this,g.U("YTP_AUTO_TRANSLATE"),0,a,b);this.B={}};
U0=function(a,b){var c=new S0(a,b);g.J0.call(this,g.U("YTP_SUBTITLES"),3,a,b,g.U("YTP_OPTIONS"),function(){return g.Q_(b,c)});
this.T=a;this.B={};this.L=new g.Ht(g.Aa(this.oA,!1),3E3,this);g.M(this,this.L);this.I=new g.Y({H:"div",K:[{H:"span",K:[g.U("YTP_SUBTITLES")]},{H:"span",M:"ytp-menuitem-label-count",K:["{{content}}"]}]});g.M(this,this.I);g.H_(this,this.I);this.F=new T0(a,b);g.M(this,this.F);this.F.subscribe("select",this.IN,this);this.J=c;g.M(this,this.J);this.J.subscribe("settingChange",this.HN,this);this.P(a,"videodatachange",this.vl);this.P(a,"onApiChange",this.vl);this.P(a,"onCaptionsTrackListChanged",this.vl);
this.P(a,"captionschanged",this.vl);this.vl()};
V0=function(a){g.N_.call(this,a,"ytp-settings-menu");this.A=a;this.B=new g.L_(a);g.M(this,this.B);this.G=null;this.V=!1;this.hide();g.Q_(this,this.B)};
W0=function(a){if(!a.V){a.V=!0;var b=new N0(a.A,a);g.M(a,b);b=new U0(a.A,a);g.M(a,b);b=new I0(a.A,a);g.M(a,b);g.X(a.A).Na&&(b=new Q0(a.A,a),g.M(a,b));g.X(a.A).rg&&(b=new M0(a.A,a),g.M(a,b));b=new L0(a.A,a);g.M(a,b);P0(a.G,a.B.La.length)}};
X0=function(a,b){W0(a);g.M_(a.B,b);P0(a.G,a.B.La.length)};
Y0=function(a,b){a.g&&1>=a.B.La.length&&a.hide();g.opa(a.B,b);P0(a.G,a.B.La.length)};
Z0=function(a,b,c){g.Y.call(this,{H:"button",M:"ytp-button",R:{title:g.U("YTP_MDX_TOOLTIP"),"aria-haspopup":!0},K:["{{icon}}"]});this.T=a;this.B=c;this.A=null;this.P(a,"onMdxReceiversChange",this.o);this.P(a,"presentingplayerstatechange",this.o);this.P(a,"appresize",this.o);this.o();this.U("click",this.C,this);g.Xe(this,F_(b.o,this.element))};
$0=function(a,b){g.Y.call(this,{H:"button",ca:["ytp-size-button","ytp-button"],R:{title:"{{title}}"},K:["{{icon}}"]});this.o=a;this.C=b.o;this.B=null;this.D=new t0;g.M(this,this.D);this.P(a,"sizestylechange",this.A);this.P(a,"fullscreentoggled",this.A);this.P(a,"presentingplayerstatechange",this.A);this.A();this.U("click",this.F);g.Xe(this,F_(this.C,this.element))};
a1=function(a,b){g.Y.call(this,{H:"button",ca:["ytp-subtitles-button","ytp-button"],R:{"aria-pressed":"{{pressed}}",title:g.U("YTP_SUBTITLES_TOOLTIP")},K:[CE()]});this.A=a;this.P(a,"videodatachange",this.o);this.P(a,"appresize",this.o);this.P(a,"onApiChange",this.o);this.P(a,"onCaptionsTrackListChanged",this.o);this.P(a,"captionschanged",this.o);this.o();this.U("click",this.B);g.Xe(this,F_(b.o,this.element))};
b1=function(a,b){g.Y.call(this,{H:"div",ca:["ytp-time-display","notranslate"],K:[{H:"span",M:"ytp-time-current",K:["{{currenttime}}"]},{H:"span",M:"ytp-time-separator",K:[" / "]},{H:"span",M:"ytp-time-duration",K:["{{duration}}"]}]});this.D=new g.Y({H:"button",ca:["ytp-live-badge","ytp-button"],R:{disabled:!0},K:[g.U("YTP_LIVE")]});g.M(this,this.D);this.D.Ea(this.element);this.o=a;this.J=b.o;this.A=null;this.F=this.B=!1;this.I=this.G=null;this.U("click",this.L);this.P(a,"presentingplayerstatechange",
this.C);this.P(a,"appresize",this.C);this.P(a,"videodatachange",this.N);var c=a.ga();c&&(this.B=c.Ba,g.T(this.element,"ytp-live",this.B));this.C()};
d1=function(a,b,c){g.Y.call(this,{H:"div",M:"ytp-volume-panel",R:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:0},K:[{H:"div",M:"ytp-volume-slider",K:[{H:"div",M:"ytp-volume-slider-handle"}]}]});this.o=a;this.F=b;this.N=c;this.J=!1;this.G=b.he();this.V=this.C=0;this.O=this.va["ytp-volume-slider"];this.Y=this.va["ytp-volume-slider-handle"];this.I=new g.zG(this.O,!0);g.M(this,this.I);this.I.subscribe("dragstart",this.AR,
this);this.I.subscribe("dragmove",this.zR,this);this.I.subscribe("dragend",this.yR,this);this.L=null;this.A=this.B=this.D=!1;this.P(a,"onVolumeChange",this.LN);this.P(a,"appresize",this.ud);this.P(a,"fullscreentoggled",this.JN);this.P(a,"onShowControls",this.rw);this.P(a,"onHideControls",this.rw);this.P(this.element,"keydown",this.CR);this.P(this.element,"focus",g.Aa(this.sA,!0));this.P(this.element,"blur",g.Aa(this.sA,!1));this.ud(g.aW(a).Xa());c1(this,a.getVolume(),a.Le())};
c1=function(a,b,c){var d=Math.floor(b),e=d+"% "+g.U("YTP_SCREENREADER_VOLUME_SETTING")+(c?" "+g.U("YTP_SCREENREADER_VOLUME_MUTED"):"");c=c?0:b/100;a.Ga("valuenow",d);a.Ga("valuetext",e);a.Y.style.left=(a.G?60:40)*c+"px";a.C=b};
e1=function(a,b,c,d,e){var f=a.B||a.D||a.A||a.J;a.B=b;a.D=c;a.A=d;a.J=e;b=a.B||a.D||a.A||a.J;f!=b&&(b?a.L=a.P(a.element,"wheel",a.KN):(a.Ca(a.L),a.L=null),g.T(a.N,"ytp-volume-slider-active",b))};
f1=function(a,b){var c=g.X(a),d=kO(c);0==d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],f="gaming"==c.g;f&&e.push("ytp-youtube-gaming-button");c=c.experiments.A(f?"logo_gaming_src":"logo_src");g.Y.call(this,{H:"a",ca:e,R:{href:"{{url}}",target:"_blank",title:g.U("YTP_URL_NAVIGATE_TO",{WEBSITE:d}),"data-sessionlink":"feature=player-button",style:c?"background: no-repeat center/100% url("+c+");padding:0 8px":null},K:c?null:[f?g.uE?{H:"div",ca:["ytp-icon",
"ytp-icon-logo-gaming"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 98 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{d:"M19.40,22.92 L19.40,22.08 C18.87,22.71 18.42,23.03 17.93,23.03 C17.50,23.03 17.20,22.82 17.05,22.44 C16.96,22.21 16.89,21.85 16.89,21.32 L16.89,15.23 L18.29,15.23 L18.29,21.47 C18.33,21.69 18.41,21.76 18.59,21.76 C18.86,21.76 19.10,21.52 19.40,21.09 L19.40,15.23 L20.80,15.23 L20.80,22.92 L19.40,22.92 Z M15.41,15.91 C15.04,15.39 14.45,15.17 13.86,15.17 C13.19,15.17 12.69,15.39 12.31,15.91 C12.02,16.30 11.87,16.93 11.87,17.75 L11.87,20.48 C11.87,21.30 12.01,21.86 12.29,22.25 C12.67,22.77 13.27,23.05 13.86,23.05 C14.45,23.05 15.07,22.77 15.44,22.25 C15.73,21.86 15.86,21.30 15.86,20.48 L15.86,17.74 C15.86,16.92 15.70,16.30 15.41,15.91 L15.41,15.91 Z M14.45,20.63 C14.53,21.40 14.30,21.77 13.86,21.77 C13.43,21.77 13.20,21.40 13.27,20.63 L13.27,17.59 C13.20,16.83 13.43,16.47 13.86,16.47 C14.30,16.47 14.53,16.83 14.45,17.59 L14.45,20.63 Z M10.32,22.92 L8.84,22.92 L8.84,18.73 C8.84,18.73 7.31,13.60 7,12.64 L8.55,12.64 L9.58,16.65 L10.61,12.64 L12.16,12.64 L10.32,18.73 L10.32,22.92 Z"}},
{H:"path",ca:["ytp-svg-fill","ytp-svg-fill-logo-tube-text"],R:{d:"M23,12 L43,12 L43,24 L23,24 Z",fill:"none"}},{H:"path",Pa:!0,ca:["ytp-svg-fill","ytp-svg-fill-logo-tube-lozenge"],R:{d:"M42.90,11.22 C42.06,10.32 41.12,10.32 40.69,10.26 C37.60,10.03 32.97,10.03 32.97,10.03 C32.96,10.03 28.34,10.03 25.25,10.26 C24.82,10.32 23.88,10.32 23.04,11.22 C22.38,11.91 22.16,13.47 22.16,13.47 C22.16,13.47 21.94,15.30 21.94,17.13 L21.94,18.85 C21.94,20.68 22.16,22.51 22.16,22.51 C22.16,22.51 22.38,24.07 23.04,24.76 C23.88,25.66 24.98,25.63 25.47,25.73 C27.24,25.90 32.97,25.96 32.97,25.96 C32.97,25.96 37.60,25.95 40.69,25.72 C41.12,25.67 42.06,25.66 42.90,24.76 C43.56,24.07 43.77,22.51 43.77,22.51 C43.77,22.51 43.99,20.68 43.99,18.85 L43.99,17.13 C43.99,15.30 43.77,13.47 43.77,13.47 C43.77,13.47 43.56,11.91 42.90,11.22 L42.90,11.22 Z M25.31,22.92 L25.31,14.16 L23.76,14.16 L23.76,12.72 L28.41,12.71 L28.41,14.16 L26.79,14.16 L26.79,22.92 L25.31,22.92 Z M30.70,22.92 L30.70,22.08 C30.17,22.71 29.72,23.03 29.23,23.03 C28.79,23.03 28.50,22.82 28.35,22.44 C28.25,22.21 28.19,21.85 28.19,21.32 L28.19,15.30 L29.59,15.30 L29.59,21.47 C29.63,21.69 29.71,21.76 29.89,21.76 C30.16,21.76 30.40,21.52 30.70,21.09 L30.70,15.30 L32.10,15.30 L32.10,22.92 L30.70,22.92 Z M37.05,22.16 C36.87,22.72 36.48,23.02 35.95,23.02 C35.48,23.02 34.95,22.72 34.50,22.15 L34.50,22.92 L32.98,22.92 L32.98,12.71 L34.50,12.71 L34.50,16.04 C34.93,15.49 35.46,15.18 35.95,15.18 C36.48,15.18 36.84,15.50 37.02,16.07 C37.11,16.37 37.20,16.87 37.20,17.59 L37.20,20.63 C37.20,21.34 37.14,21.83 37.05,22.16 L37.05,22.16 Z M40.73,21.21 C40.75,21.14 40.74,20.81 40.74,20.25 L42.15,20.25 L42.15,20.47 C42.15,20.91 42.11,21.23 42.10,21.37 C42.05,21.67 41.95,21.95 41.79,22.19 C41.42,22.74 40.87,23.02 40.17,23.02 C39.47,23.02 38.94,22.76 38.55,22.24 C38.27,21.86 38.09,21.29 38.09,20.48 L38.09,17.82 C38.09,17.00 38.25,16.37 38.54,15.99 C38.92,15.47 39.45,15.19 40.14,15.19 C40.81,15.19 41.34,15.47 41.71,15.99 C41.99,16.37 42.15,16.97 42.15,17.78 L42.15,19.34 L39.49,19.34 L39.49,20.71 C39.48,21.41 39.68,21.76 40.14,21.76 C40.47,21.76 40.66,21.58 40.73,21.21 L40.73,21.21 Z M40.12,16.45 C39.68,16.45 39.49,16.64 39.49,17.36 L39.49,18.20 L40.74,18.20 L40.74,17.37 C40.74,16.66 40.57,16.45 40.12,16.45 L40.12,16.45 Z M34.54,16.80 L34.54,21.42 C34.76,21.65 35.02,21.76 35.24,21.76 C35.62,21.76 35.80,21.47 35.80,20.71 L35.80,17.44 C35.80,16.67 35.62,16.45 35.24,16.45 C35.02,16.45 34.76,16.57 34.54,16.80 L34.54,16.80 Z",
fill:"#fff"}},{H:"g",Pa:!0,M:"ytp-svg-fill",K:[{H:"path",R:{d:"M50.85,16.34 C50.14,16.34 49.78,16.77 49.72,17.30 C49.61,18.30 49.61,19.64 49.72,20.65 C49.78,21.18 50.14,21.61 50.85,21.61 C51.55,21.61 52.03,21.21 52.03,20.67 L52.03,20.16 C52.03,20.09 51.98,20.04 51.91,20.04 L51.12,20.04 C50.99,20.04 50.89,19.93 50.89,19.80 L50.89,18.66 C50.89,18.53 50.99,18.42 51.12,18.42 L53.39,18.42 C53.52,18.42 53.63,18.53 53.63,18.66 L53.63,20.67 C53.63,22.11 52.45,23.30 50.85,23.30 C49.25,23.30 48.25,22.09 48.08,20.65 C47.97,19.64 47.97,18.30 48.08,17.30 C48.25,15.86 49.25,14.65 50.85,14.65 C52.46,14.65 53.63,15.79 53.63,17.39 C53.63,17.52 53.52,17.63 53.39,17.63 L52.23,17.63 C52.10,17.63 52.01,17.52 52.00,17.39 C51.95,16.77 51.52,16.34 50.85,16.34"}},
{H:"path",R:{d:"M57.57,19.76 C57.55,19.86 57.60,19.90 57.67,19.90 L58.74,19.90 C58.81,19.90 58.85,19.86 58.83,19.76 L58.27,16.89 C58.26,16.85 58.25,16.84 58.21,16.84 L58.19,16.84 C58.16,16.84 58.14,16.85 58.13,16.89 L57.57,19.76 Z M56.80,22.98 C56.78,23.09 56.69,23.16 56.58,23.16 L55.36,23.16 C55.17,23.16 55.10,23.03 55.13,22.93 L57.21,14.96 C57.24,14.85 57.33,14.78 57.43,14.78 L58.99,14.78 C59.10,14.78 59.19,14.85 59.21,14.96 L61.29,22.93 C61.31,23.03 61.24,23.16 61.06,23.16 L59.83,23.16 C59.73,23.16 59.65,23.09 59.61,22.98 L59.25,21.75 C59.23,21.66 59.18,21.57 59.08,21.57 L57.31,21.57 C57.20,21.57 57.15,21.64 57.13,21.75 L56.80,22.98 Z"}},
{H:"path",R:{d:"M65.75,17.32 C65.78,17.44 65.92,17.44 65.96,17.32 L66.61,14.99 C66.64,14.84 66.73,14.78 66.85,14.78 L68.46,14.78 C68.59,14.78 68.69,14.89 68.69,15.02 L68.69,22.93 C68.69,23.06 68.59,23.16 68.46,23.16 L67.32,23.16 C67.19,23.16 67.09,23.06 67.09,22.93 L67.09,18.18 C67.09,18.12 67.02,18.11 66.99,18.17 L66.45,19.97 C66.40,20.11 66.33,20.17 66.20,20.17 L65.51,20.17 C65.39,20.17 65.32,20.11 65.27,19.97 L64.71,18.17 C64.69,18.11 64.62,18.12 64.62,18.18 L64.62,22.93 C64.62,23.06 64.51,23.16 64.38,23.16 L63.24,23.16 C63.12,23.16 63.01,23.06 63.01,22.93 L63.01,15.02 C63.01,14.89 63.12,14.78 63.24,14.78 L64.85,14.78 C64.98,14.78 65.06,14.84 65.10,14.99 L65.75,17.32 Z"}},
{H:"path",R:{d:"M72.68,16.52 C72.68,16.45 72.63,16.40 72.56,16.40 L71.39,16.40 C71.27,16.40 71.16,16.29 71.16,16.16 L71.16,15.02 C71.16,14.89 71.27,14.78 71.39,14.78 L75.59,14.78 C75.72,14.78 75.82,14.89 75.82,15.02 L75.82,16.16 C75.82,16.29 75.72,16.40 75.59,16.40 L74.42,16.40 C74.35,16.40 74.31,16.45 74.31,16.52 L74.31,21.43 C74.31,21.50 74.35,21.55 74.42,21.55 L75.70,21.55 C75.83,21.55 75.94,21.66 75.94,21.79 L75.94,22.93 C75.94,23.06 75.83,23.16 75.70,23.16 L71.28,23.16 C71.15,23.16 71.05,23.06 71.05,22.93 L71.05,21.79 C71.05,21.66 71.15,21.55 71.28,21.55 L72.56,21.55 C72.63,21.55 72.68,21.50 72.68,21.43 L72.68,16.52 Z"}},
{H:"path",R:{d:"M83.53,22.93 C83.53,23.06 83.42,23.16 83.30,23.16 L81.92,23.16 C81.72,23.16 81.64,23.06 81.61,22.96 L80.02,18.76 C80.00,18.69 79.92,18.71 79.92,18.78 L79.92,22.93 C79.92,23.06 79.81,23.16 79.69,23.16 L78.52,23.16 C78.39,23.16 78.29,23.06 78.29,22.93 L78.29,15.02 C78.29,14.89 78.39,14.78 78.52,14.78 L79.91,14.78 C80.08,14.78 80.16,14.89 80.20,15.00 L81.79,19.55 C81.82,19.62 81.90,19.60 81.90,19.52 L81.90,15.02 C81.90,14.89 82.00,14.78 82.13,14.78 L83.30,14.78 C83.42,14.78 83.53,14.89 83.53,15.02 L83.53,22.93 Z"}},
{H:"path",R:{d:"M88.59,16.34 C87.88,16.34 87.52,16.77 87.46,17.30 C87.35,18.30 87.35,19.64 87.46,20.65 C87.52,21.18 87.88,21.61 88.59,21.61 C89.29,21.61 89.77,21.21 89.77,20.67 L89.77,20.16 C89.77,20.09 89.72,20.04 89.65,20.04 L88.86,20.04 C88.73,20.04 88.63,19.93 88.63,19.80 L88.63,18.66 C88.63,18.53 88.73,18.42 88.86,18.42 L91.13,18.42 C91.26,18.42 91.37,18.53 91.37,18.66 L91.37,20.67 C91.37,22.11 90.19,23.30 88.59,23.30 C86.99,23.30 85.99,22.09 85.82,20.65 C85.71,19.64 85.71,18.30 85.82,17.30 C85.99,15.86 86.99,14.65 88.59,14.65 C90.20,14.65 91.37,15.79 91.37,17.39 C91.37,17.52 91.26,17.63 91.13,17.63 L89.97,17.63 C89.84,17.63 89.75,17.52 89.74,17.39 C89.69,16.77 89.26,16.34 88.59,16.34"}}]}]}:
g.uE?{H:"div",ca:["ytp-icon","ytp-icon-logo"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 51 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{d:"M19.40,22.92 L19.40,22.08 C18.87,22.71 18.42,23.03 17.93,23.03 C17.50,23.03 17.20,22.82 17.05,22.44 C16.96,22.21 16.89,21.85 16.89,21.32 L16.89,15.23 L18.29,15.23 L18.29,21.47 C18.33,21.69 18.41,21.76 18.59,21.76 C18.86,21.76 19.10,21.52 19.40,21.09 L19.40,15.23 L20.80,15.23 L20.80,22.92 L19.40,22.92 Z M15.41,15.91 C15.04,15.39 14.45,15.17 13.86,15.17 C13.19,15.17 12.69,15.39 12.31,15.91 C12.02,16.30 11.87,16.93 11.87,17.75 L11.87,20.48 C11.87,21.30 12.01,21.86 12.29,22.25 C12.67,22.77 13.27,23.05 13.86,23.05 C14.45,23.05 15.07,22.77 15.44,22.25 C15.73,21.86 15.86,21.30 15.86,20.48 L15.86,17.74 C15.86,16.92 15.70,16.30 15.41,15.91 L15.41,15.91 Z M14.45,20.63 C14.53,21.40 14.30,21.77 13.86,21.77 C13.43,21.77 13.20,21.40 13.27,20.63 L13.27,17.59 C13.20,16.83 13.43,16.47 13.86,16.47 C14.30,16.47 14.53,16.83 14.45,17.59 L14.45,20.63 Z M10.32,22.92 L8.84,22.92 L8.84,18.73 C8.84,18.73 7.31,13.60 7,12.64 L8.55,12.64 L9.58,16.65 L10.61,12.64 L12.16,12.64 L10.32,18.73 L10.32,22.92 Z"}},
{H:"path",ca:["ytp-svg-fill","ytp-svg-fill-logo-tube-text"],R:{d:"M23,12 L43,12 L43,24 L23,24 Z",fill:"none"}},{H:"path",Pa:!0,ca:["ytp-svg-fill","ytp-svg-fill-logo-tube-lozenge"],R:{d:"M42.90,11.22 C42.06,10.32 41.12,10.32 40.69,10.26 C37.60,10.03 32.97,10.03 32.97,10.03 C32.96,10.03 28.34,10.03 25.25,10.26 C24.82,10.32 23.88,10.32 23.04,11.22 C22.38,11.91 22.16,13.47 22.16,13.47 C22.16,13.47 21.94,15.30 21.94,17.13 L21.94,18.85 C21.94,20.68 22.16,22.51 22.16,22.51 C22.16,22.51 22.38,24.07 23.04,24.76 C23.88,25.66 24.98,25.63 25.47,25.73 C27.24,25.90 32.97,25.96 32.97,25.96 C32.97,25.96 37.60,25.95 40.69,25.72 C41.12,25.67 42.06,25.66 42.90,24.76 C43.56,24.07 43.77,22.51 43.77,22.51 C43.77,22.51 43.99,20.68 43.99,18.85 L43.99,17.13 C43.99,15.30 43.77,13.47 43.77,13.47 C43.77,13.47 43.56,11.91 42.90,11.22 L42.90,11.22 Z M25.31,22.92 L25.31,14.16 L23.76,14.16 L23.76,12.72 L28.41,12.71 L28.41,14.16 L26.79,14.16 L26.79,22.92 L25.31,22.92 Z M30.70,22.92 L30.70,22.08 C30.17,22.71 29.72,23.03 29.23,23.03 C28.79,23.03 28.50,22.82 28.35,22.44 C28.25,22.21 28.19,21.85 28.19,21.32 L28.19,15.30 L29.59,15.30 L29.59,21.47 C29.63,21.69 29.71,21.76 29.89,21.76 C30.16,21.76 30.40,21.52 30.70,21.09 L30.70,15.30 L32.10,15.30 L32.10,22.92 L30.70,22.92 Z M37.05,22.16 C36.87,22.72 36.48,23.02 35.95,23.02 C35.48,23.02 34.95,22.72 34.50,22.15 L34.50,22.92 L32.98,22.92 L32.98,12.71 L34.50,12.71 L34.50,16.04 C34.93,15.49 35.46,15.18 35.95,15.18 C36.48,15.18 36.84,15.50 37.02,16.07 C37.11,16.37 37.20,16.87 37.20,17.59 L37.20,20.63 C37.20,21.34 37.14,21.83 37.05,22.16 L37.05,22.16 Z M40.73,21.21 C40.75,21.14 40.74,20.81 40.74,20.25 L42.15,20.25 L42.15,20.47 C42.15,20.91 42.11,21.23 42.10,21.37 C42.05,21.67 41.95,21.95 41.79,22.19 C41.42,22.74 40.87,23.02 40.17,23.02 C39.47,23.02 38.94,22.76 38.55,22.24 C38.27,21.86 38.09,21.29 38.09,20.48 L38.09,17.82 C38.09,17.00 38.25,16.37 38.54,15.99 C38.92,15.47 39.45,15.19 40.14,15.19 C40.81,15.19 41.34,15.47 41.71,15.99 C41.99,16.37 42.15,16.97 42.15,17.78 L42.15,19.34 L39.49,19.34 L39.49,20.71 C39.48,21.41 39.68,21.76 40.14,21.76 C40.47,21.76 40.66,21.58 40.73,21.21 L40.73,21.21 Z M40.12,16.45 C39.68,16.45 39.49,16.64 39.49,17.36 L39.49,18.20 L40.74,18.20 L40.74,17.37 C40.74,16.66 40.57,16.45 40.12,16.45 L40.12,16.45 Z M34.54,16.80 L34.54,21.42 C34.76,21.65 35.02,21.76 35.24,21.76 C35.62,21.76 35.80,21.47 35.80,20.71 L35.80,17.44 C35.80,16.67 35.62,16.45 35.24,16.45 C35.02,16.45 34.76,16.57 34.54,16.80 L34.54,16.80 Z",
fill:"#fff"}}]}]});this.o=a;xW(a,this.element,this,28666);this.U("click",this.D);this.P(a,"videodatachange",this.C);this.C();g.Xe(this,F_(b.o,this.element))};
g1=function(a,b,c){g.uG.call(this);var d=g.X(a);this.T=a;this.A=b;this.Y=window.NaN;this.V=null;this.L=c;this.L.subscribe("autohideupdate",this.nA,this);c=!lR(g.$V(a));var e=new g.Y({H:"div",M:"ytp-gradient-bottom"});g.M(this,e);g.uW(a,e.element,8);this.J=new g.cX(e,250,c,100);g.M(this,this.J);this.o=new g.Y({H:"div",M:"ytp-chrome-bottom",K:[{H:"div",M:"ytp-chrome-controls"}]});g.M(this,this.o);g.uW(a,this.o.element,8);this.I=new g.cX(this.o,250,c,100);g.M(this,this.I);c=this.o.element.children[0];
d.F&&(c.style.background=d.ub);this.g=new V0(a);g.M(this,this.g);g.uW(a,this.g.element,6);this.g.subscribe("show",this.ST,this);this.g.subscribe("show",(0,g.A)(b.mT,b,this.g));this.B=new B0(a,b);g.M(this,this.B);this.B.Ea(this.o.element,0);e=new l0(a,b);g.M(this,e);g.uW(a,e.element,4);this.B.subscribe("height-change",e.ZM,e);e=new n0(a);g.M(this,e);g.uW(a,e.element,4);e=new g.CW({H:"div",M:"ytp-left-controls"});g.M(this,e);e.Ea(c);var f=new A0(a,b,!1);g.M(this,f);f.Ea(e.element);f=new y0(a,b);g.M(this,
f);f.Ea(e.element);f=new A0(a,b,!0);g.M(this,f);f.Ea(e.element);var k=new g.Y({H:"span"});g.M(this,k);k.Ea(e.element);if(!d.aa&&(this.C=new v0(a,b),g.M(this,this.C),this.C.Ea(k.element),d.J)){f=new d1(a,b,this.o.element);g.M(this,f);f.Ea(k.element);k=new g.zG(k.element);g.M(this,k);var l=(0,g.A)(f.vC,f,!0);k.subscribe("hoverstart",l);k=new g.zG(e.element);g.M(this,k);f=(0,g.A)(f.vC,f,!1);k.subscribe("hoverend",f)}this.O=new b1(a,b);g.M(this,this.O);this.O.Ea(e.element);e=new g.CW({H:"div",M:"ytp-right-controls"});
g.M(this,e);e.Ea(c);c=new a1(a,b);g.M(this,c);c.Ea(e.element);c=new O0(a,b,this.g);g.M(this,c);f=this.g;f.G=c;f.element.id=c.element.getAttribute("aria-owns");c.Ea(e.element);c=new r0(a);g.M(this,c);g.uW(a,c.element,5);c.subscribe("show",(0,g.A)(b.Eq,b,c));c=new s0(a,b,c);g.M(this,c);c.Ea(e.element);d.ik&&(this.D=new f1(a,b),g.M(this,this.D),this.D.Ea(e.element));c=new $0(a,b);g.M(this,c);c.Ea(e.element);d.Ib&&(c=new Z0(a,b,this.g),g.M(this,c),c.Ea(e.element));d.Nh&&(d=new k0(a,b),g.M(this,d),d.Ea(e.element));
d=AK();d.webkitSetPresentationMode&&g.wa(d.webkitSupportsPresentationMode)&&d.webkitSupportsPresentationMode("picture-in-picture")&&(d=new x0(a,b),g.M(this,d),d.Ea(e.element));this.aa=new q0(a,b);g.M(this,this.aa);this.aa.Ea(e.element);this.F=new g.Et(this.FP,null,this);g.M(this,this.F);this.G=null;this.P(a,"appresize",this.Ns);this.P(a,"fullscreentoggled",this.Ns);this.P(a,"presentingplayerstatechange",this.au);this.Ns()};
fqa=function(a,b){if(lR(g.$V(a.T))||b){if(b){a.I.hide();a.J.hide();if(a.C){var c=a.C;c.G=!1;g.zW(c.o,c.element,c.B&&!1)}a.D&&(c=a.D,c.B=!1,g.zW(c.o,c.element,c.A&&!1));a.A.o.Xi(a.oa())}}else b||(a.I.show(),a.J.show(),a.C&&(c=a.C,c.G=!0,g.zW(c.o,c.element,c.B&&!0)),a.D&&(c=a.D,c.B=!0,g.zW(c.o,c.element,c.A&&!0)),a.nA())};
gqa=function(a){var b=g.aW(a.T).Xa().width;return Math.max(b-2*h1(a),100)};
h1=function(a){var b=a.A.he();return 12*(g.X(a.T).F?0:b?2:1)};
g.i1=function(a,b,c,d,e,f,k,l,m,n,q,r){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;if(q){c=g.X(r);q={href:q,"aria-label":a,tabindex:"-1"};if(g.aO(c)||g.bO(c))q.target="_blank";g.Y.call(this,{H:"div",ca:["ytp-button","ytp-sb"],K:[{H:"a",M:"ytp-sb-subscribe",R:q,K:[{H:"div",M:"ytp-sb-text",K:[{H:"div",M:"ytp-sb-icon"},a]},b?{H:"div",M:"ytp-sb-count",K:[b]}:""]}]});f&&g.S(this.element,"ytp-sb-classic")}else{g.Y.call(this,
{H:"div",ca:["ytp-button","ytp-sb"],K:[{H:"div",M:"ytp-sb-subscribe",R:{tabindex:"-1","aria-label":a},K:[{H:"div",M:"ytp-sb-text",K:[{H:"div",M:"ytp-sb-icon"},a]},b?{H:"div",M:"ytp-sb-count",K:[b]}:""]},{H:"div",M:"ytp-sb-unsubscribe",R:{tabindex:"-1","aria-label":c},K:[{H:"div",M:"ytp-sb-text",K:[{H:"div",M:"ytp-sb-icon"},c]},d?{H:"div",M:"ytp-sb-count",K:[d]}:""]}]});var w=this;this.o=k;this.T=r;var z=this.va["ytp-sb-subscribe"],B=this.va["ytp-sb-unsubscribe"];f&&g.S(this.element,"ytp-sb-classic");
if(e){l&&g.S(this.element,"ytp-sb-subscribed");a=g.X(r);var C=null;"gaming"==a.g&&(C="gaming_channels");if(m){var N=a.baseYtUrl+"subscription_ajax";var da=function(){return{method:"POST",Yc:{action_create_subscription_to_channel:1,c:w.o},Nb:{feature:m,silo_name:C},withCredentials:!0}};
var Ga=function(){return{method:"POST",Yc:{action_remove_subscriptions:1},Nb:{c:w.o,silo_name:C,feature:m},withCredentials:!0}}}else if(n)N="/subscription_service",da=function(){return{method:"POST",
Yc:{action_subscribe:1},Nb:{channel_ids:w.o,itct:n}}},Ga=function(){return{method:"POST",
Yc:{action_unsubscribe:1},Nb:{channel_ids:w.o,itct:n}}};
else return;var Da=function(){g.nF(N,da());r.za("SUBSCRIBE");B.focus();B.removeAttribute("aria-hidden");z.setAttribute("aria-hidden",!0)},Ea=function(){g.nF(N,Ga());
r.za("UNSUBSCRIBE");z.focus();z.removeAttribute("aria-hidden");B.setAttribute("aria-hidden",!0)};
this.P(z,"click",Da);this.P(B,"click",Ea);this.P(z,"keypress",function(a){13==a.keyCode&&Da()});
this.P(B,"keypress",function(a){13==a.keyCode&&Ea()});
var Me=(0,g.A)(this.A,this),Ya=(0,g.A)(this.B,this);r.addEventListener("SUBSCRIBE",Me);r.addEventListener("UNSUBSCRIBE",Ya);g.Xe(this,function(){r.removeEventListener("SUBSCRIBE",Me);r.removeEventListener("UNSUBSCRIBE",Ya)})}else g.S(z,"ytp-sb-disabled"),g.S(B,"ytp-sb-disabled")}};
j1=function(a){var b=new g.Y({H:"a",M:"ytp-title-channel-logo",R:{href:"{{channelLink}}",target:"_blank"}});g.Y.call(this,{H:"div",M:"ytp-title",K:[{H:"div",M:"ytp-title-channel",K:[b,{H:"div",M:"ytp-title-channel-popup",K:[{H:"div",M:"ytp-title-channel-heading",K:[{H:"h2",M:"ytp-title-channel-text",K:[{H:"a",R:{href:"{{popupChannelLink}}",target:"_blank"},K:["{{popupChannelName}}"]}]},{H:"h3",M:"ytp-title-channel-subtext",K:["{{subscriberCount}}"]}]}]}]},{H:"div",M:"ytp-title-text",K:[{H:"a",ca:["ytp-title-link",
"yt-uix-sessionlink"],R:{target:"_blank",href:"{{url}}","data-sessionlink":"feature=player-title"},K:["{{title}}"]},{H:"div",M:"ytp-title-subtext",K:[{H:"a",M:"ytp-title-channel-name",R:{href:"{{channelLink}}",target:"_blank"},K:["{{channelName}}"]},{H:"span",M:"ytp-title-view-count",K:["{{viewCount}}"]}]}]}]});g.M(this,b);this.o=a;this.A=null;this.V=this.va["ytp-title-link"];this.F=this.va["ytp-title-channel"];this.D=b;this.J=this.va["ytp-title-channel-popup"];this.B=null;this.C=!1;this.N=this.O=
this.L=null;xW(a,this.element,this,23851);xW(a,b.element,this,36925);this.P(a,"videodatachange",this.G);this.P(a,"videoplayerreset",this.G);g.X(a).experiments.g("embed_author_metadata")&&hqa(this);this.G()};
hqa=function(a){var b=new g.Y({H:"div",M:"ytp-title-beacon"});g.M(a,b);b.Ea(a.F,0);b=a.o.ga();var c=new g.i1(g.U("YTP_SUBSCRIBE"),null,g.U("YTP_SUBSCRIBED"),null,!0,!1,b.Sl,!1,"embed_title",null,null,a.o);a.B=c;g.M(a,c);c.Ea(a.J);xW(a.o,c.element,a,36926);b={H:"div",M:"ytp-title-notifications-on",K:[g.GE()]};var d=new g.Y({H:"button",ca:["ytp-button","ytp-title-notifications"],K:[b,{H:"div",M:"ytp-title-notifications-off",K:[g.uE?{H:"div",ca:["ytp-icon","ytp-icon-notifications-inactive"]}:{H:"svg",
R:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},K:[{H:"path",R:{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"}}]}]}]});g.M(a,d);d.Ea(a.J);xW(a.o,d.element,a,36927);a.P(a.o,"SUBSCRIBE",function(){g.S(a.element,"ytp-subscribed")});
a.P(a.o,"UNSUBSCRIBE",function(){a.C=!1;g.Vp(a.element,"ytp-subscribed");g.Vp(a.element,"ytp-notifications-enabled")});
a.P(a.F,"mouseenter",function(){a.I.stop();var b=a.o.getRootNode();g.S(b,"ytp-title-channel-expanded");g.Vp(b,"ytp-title-channel-collapsed");g.zW(a.o,c.element,!0);g.zW(a.o,d.element,!0)});
a.P(a.F,"mouseleave",function(){a.I.start();g.zW(a.o,c.element,!1);g.zW(a.o,d.element,!1)});
a.P(c.element,"click",function(){g.yW(a.o,c.element)});
a.P(d.element,"click",function(){g.yW(a.o,d.element);g.nF("/subscription_ajax?action_update_subscription_preferences=1",{method:"POST",Nb:{channel_id:a.N,receive_all_updates:!a.C}});a.C=!a.C;g.T(a.element,"ytp-notifications-enabled",a.C)});
a.I=new g.Ht(function(){var b=a.o.getRootNode();g.Vp(b,"ytp-title-channel-expanded");g.S(b,"ytp-title-channel-collapsed")},1E3);
g.M(a,a.I)};
jqa=function(a){var b=a.o.ga(),c=b.videoId&&(2==a.o.Za()||g.X(a.o).experiments.g("embed_author_metadata")),d=a.o.getRootNode();c&&b.videoId==a.L?(g.S(d,"ytp-title-extra-info"),g.zW(a.o,a.D.element,!0)):(g.Vp(d,"ytp-title-extra-info"),g.zW(a.o,a.D.element,!1),c&&(b.author&&b.channelPath&&b.profilePicture?iqa(a,b.videoId,b.Sl,b.author,b.channelPath,b.profilePicture,b.Lt):b.videoId!=a.O&&(c=g.X(a.o),d={video_id:b.videoId,html5:1,page_subscribe:0},c.Bc&&(d.authuser=c.Bc),c.pageId&&(d.pageid=c.pageId),
c=g.Pg(c.baseYtUrl+"get_video_metadata",d),g.nF(c,{method:"GET",Vb:(0,g.A)(a.ba,a,b.videoId),withCredentials:!0}),a.O=b.videoId)))};
iqa=function(a,b,c,d,e,f,k){e=g.X(a.o).fa+"://"+jO(g.X(a.o))+e;a.D.element.style.backgroundImage="url("+f+")";a.B&&(a.B.o=c);a.D.Ga("channelLink",e);a.Ga("channelLink",e);a.Ga("channelName",d);a.Ga("popupChannelLink",e);a.Ga("popupChannelName",d);a.Ga("subscriberCount",k);a.N=c;a.L=b;jqa(a)};
k1=function(a,b){var c=g.aW(a).Xa();g.Y.call(this,{H:"div",K:[{H:"div",M:"ytp-tooltip-bg",K:[{H:"div",M:"ytp-tooltip-duration",K:["{{duration}}"]}]},{H:"div",M:"ytp-tooltip-text-wrapper",K:[{H:"div",M:"ytp-tooltip-image"},{H:"div",M:"ytp-tooltip-title",K:["{{title}}"]},{H:"span",M:"ytp-tooltip-text",K:["{{text}}"]}]}]});this.N=a;this.ha=b;this.ea=g.X(a).isMobile;this.G=this.va["ytp-tooltip-bg"];this.ka=this.va["ytp-tooltip-image"];this.fa=(0,g.A)(this.nQ,this);this.O=(0,g.A)(this.pQ,this);this.V=
(0,g.A)(this.df,this);this.A=null;this.I=new g.cX(this,100);g.M(this,this.I);this.o=null;this.L=!1;this.B=null;this.C=window.NaN;this.F="";this.da=c.width;this.J=!0;this.D=1;this.Y=new g.Ht(this.wK,250,this);g.M(this,this.Y);this.ba=new g.Ht(this.df,5E3,this);g.M(this,this.ba)};
m1=function(a,b){if(null!=a.o)if(b)switch(a.o){case 3:case 2:l1(a);a.I.show();break;default:a.I.show()}else a.I.hide();a.J=b};
F_=function(a,b){if(a.ea)return g.y;b.addEventListener("mouseover",a.O);return(0,g.A)(function(){this.A==b&&this.df();b.removeEventListener("mouseover",this.O)},a)};
lqa=function(a,b,c){if(a.o)if(3==a.o)a.df();else return;kqa(a,b,3,c)};
kqa=function(a,b,c,d){(0,window.isNaN)(a.C)||(a.C=window.NaN,a.G.style.background="");a.A=b;a.L=!!d;d?a.F=d:(a.F=b.getAttribute("title"),b.removeAttribute("title"));a.element.className="ytp-tooltip";if(b=b.getAttribute("data-tooltip-image"))a.ka.style.backgroundImage="url("+b+")";g.T(a.element,"ytp-tooltip-image-enabled",!!b);a.o=c;a.N.addEventListener("appresize",a.V);a.J&&(l1(a),a.I.show(0))};
l1=function(a){var b=a.A.getAttribute("data-tooltip-text");if(b&&!a.L){a.Ga("text",b);var c=a.A.getAttribute("data-duration");a.update({title:a.F,duration:c});var d=a.A.getAttribute("data-preview"),e=160*a.D,f=90*a.D,k=160*a.D,l=90*a.D;a.G.style.width=e+"px";a.G.style.height=f+"px";a.G.style.backgroundImage=d?"url("+d+")":"";a.G.style.backgroundPosition=(e-k)/2+"px "+(f-l)/2+"px";a.G.style.backgroundSize=k+"px "+l+"px";g.Up(a.element,["ytp-text-detail","ytp-preview"]);g.T(a.element,"ytp-has-duration",
!!c)}else a.Ga("text",a.F),g.Wp(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);3==a.o?a.element.setAttribute("role","status"):a.element.removeAttribute("role");mqa(a,!!b)};
mqa=function(a,b,c){a.element.style.maxWidth=b?"":Math.min(a.da,300*a.D)+"px";nqa(a.ha,a.element,a.A,c,1==a.o);a.element.style.top?g.S(a.element,"ytp-bottom"):a.element.style.bottom&&g.S(a.element,"ytp-top");3==a.o&&a.ba.start()};
w0=function(a){a.A&&!a.L&&a.A.hasAttribute("title")&&(a.F=a.A.getAttribute("title"),a.A.removeAttribute("title"),a.J&&l1(a))};
oqa=function(a,b){g.T(a.element,"ytp-preview",0<=b);if(!(0>b||b==a.C)){a.C=b;var c=160*a.D,d=160*a.D,e=WO(a.B,a.C,c);aY(a.G,e,c,d,!0);a.Y.start()}};
g.pqa=function(a,b,c,d,e){d=d||375;e=e||440;var f=window.document.location.protocol+"//"+window.document.domain+"/post_login";b&&(f=Og(f,"mode",b));b=Og("/signin?context=popup","next",f);c&&(b=Og(b,"feature",c));if(c=window.open(b,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes",!0))b=g.KG("LOGGED_IN",function(b){g.LG(g.qE("LOGGED_IN_PUBSUB_KEY",void 0));g.pE("LOGGED_IN",!0);a(b)}),g.pE("LOGGED_IN_PUBSUB_KEY",b),c.moveTo((window.screen.width-d)/2,(window.screen.height-e)/2)};
o1=function(a,b,c){g.Y.call(this,{H:"button",ca:["ytp-watch-later-button","ytp-button"],R:{title:"{{title}}","data-tooltip-image":"{{image}}"},K:[{H:"div",M:"ytp-watch-later-icon",K:["{{icon}}"]},{H:"div",M:"ytp-watch-later-title",K:["{{watch_later}}"]}]});this.o=a;this.F=b.o;this.G=c;this.D=null;this.B=this.A=!1;xW(a,this.element,this,28665);this.U("click",this.MN,this);this.P(a,"videoplayerreset",this.NN);this.P(a,"appresize",this.ud);this.ud(g.aW(a).Xa());a=g.X(this.o);c=g.tH("yt-player-watch-later-pending");
a.experiments.g("embed_show_watchlater_login")&&a.A&&c?(JJ(),qqa(this,c.videoId)):n1(this,2);g.Xe(this,F_(b.o,this.element))};
qqa=function(a,b){if(!a.B){a.B=!0;n1(a,3);var c=g.X(a.o);(a.A?cpa:bpa)({videoIds:b,Bc:c.Bc,pageId:c.pageId,onError:a.iS,Vb:a.A?a.jS:a.hS,context:a},c.baseYtUrl,!0)}};
n1=function(a,b,c){if(b!=a.D){switch(b){case 3:var d=ZZ();break;case 1:d=g.uE?{H:"div",ca:["ytp-icon","ytp-icon-watch-later-added"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{d:"M15.03,26 L7,17.91 L9.83,15.05 L14.94,20.19 L25.07,10 L28,12.94 L15.03,26 Z"}}]};break;case 2:d=g.uE?{H:"div",ca:["ytp-icon","ytp-icon-watch-later"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",
R:{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.uE?{H:"div",ca:["ytp-icon","ytp-icon-alert"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{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"}}]}}a.Ga("icon",
d);a.D=b}c?a.update({title:c,image:null}):(b=g.X(a.o),b.userDisplayName?(c={USER_NAME:b.userDisplayName},a.update({title:a.A?g.U("YTP_ADDED_TO_WATCH_LATER_AS",c):g.U("YTP_WATCH_LATER_AS_2",c),image:b.userDisplayImage})):a.update({title:g.U("YTP_WATCH_LATER_2"),image:null}));w0(a.F)};
p1=function(a){var b=g.X(a),c=b.experiments.A("watermark_src");g.Y.call(this,{H:"a",ca:["ytp-watermark","yt-uix-sessionlink",c?"ytp-exp":null],R:{target:"_blank",href:"{{url}}","aria-label":g.U("YTP_URL_NAVIGATE_TO",{WEBSITE:kO(b)}),"data-sessionlink":"feature=player-watermark",style:c?"background: no-repeat center/100% url("+c+");width:110px;height:26px":null},K:c?null:[g.uE?{H:"div",ca:["ytp-icon","ytp-icon-watermark"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 77 34",width:"100%"},K:[{H:"path",
Pa:!0,M:"ytp-svg-fill",R:{d:"m 26.81,26.92 0,-1.67 c -1.06,1.25 -1.96,1.89 -2.94,1.89 -0.86,0 -1.46,-0.41 -1.76,-1.17 -0.18,-0.46 -0.31,-1.18 -0.31,-2.23 l 0,-12.18 2.80,0 0,12.48 c .06,.42 .24,.58 .59,.58 .53,0 1.02,-0.48 1.61,-1.34 l 0,-11.72 2.80,0 0,15.38 -2.80,0 0,0 z M 18.83,12.91 c -0.74,-1.05 -1.91,-1.48 -3.10,-1.48 -1.33,0 -2.35,.43 -3.10,1.48 -0.57,.77 -0.88,2.02 -0.88,3.66 l -0.00,5.46 c 0,1.63 .27,2.76 .84,3.53 .74,1.04 1.95,1.60 3.13,1.60 1.18,0 2.41,-0.55 3.16,-1.60 .56,-0.76 .82,-1.89 .82,-3.53 l 0,-5.48 c 0,-1.64 -0.32,-2.87 -0.88,-3.65 l 0,0 0,0 z m -1.91,9.44 c .14,1.52 -0.31,2.27 -1.18,2.27 -0.87,0 -1.32,-0.75 -1.18,-2.27 l 0,-6.09 c -0.14,-1.52 .31,-2.23 1.18,-2.23 .87,0 1.33,.71 1.18,2.23 l -0.00,6.09 0,0 z m -8.27,4.56 -2.95,0 0,-8.37 c 0,0 -3.06,-10.27 -3.69,-12.18 l 3.10,0 2.07,8.02 2.06,-8.02 3.10,0 -3.69,12.18 0,8.37 0,0 z"}},
{H:"path",ca:["ytp-svg-fill","ytp-svg-fill-logo-tube-text"],R:{d:"m 34,5.07 40,0 0,24 -40,0 z",fill:"none"}},{H:"path",Pa:!0,ca:["ytp-svg-fill","ytp-svg-fill-logo-tube-lozenge"],R:{d:"M 73.80,3.53 C 72.12,1.72 70.24,1.72 69.38,1.61 63.21,1.15 53.95,1.15 53.95,1.15 c -0.01,0 -9.27,0 -15.44,.45 -0.86,.10 -2.74,.11 -4.41,1.91 -1.32,1.37 -1.75,4.49 -1.75,4.49 0,0 -0.44,3.66 -0.44,7.32 l 0,3.43 c 0,3.66 .44,7.32 .44,7.32 0,0 .43,3.11 1.75,4.49 1.67,1.80 3.88,1.74 4.86,1.93 C 42.48,32.89 53.94,33 53.94,33 c 0,0 9.26,-0.01 15.43,-0.47 .86,-0.10 2.74,-0.11 4.41,-1.91 1.32,-1.37 1.75,-4.49 1.75,-4.49 0,0 .44,-3.66 .44,-7.32 l 0,-3.43 c 0,-3.66 -0.44,-7.32 -0.44,-7.32 0,0 -0.43,-3.11 -1.75,-4.49 l 0,0 0,0 z m -35.17,23.39 0,-17.51 -3.10,0 0,-2.89 9.30,-0.00 0,2.89 -3.24,0 0,17.51 -2.95,0 0,0 z m 10.78,0 0,-1.67 c -1.06,1.25 -1.96,1.89 -2.94,1.89 -0.86,0 -1.46,-0.41 -1.76,-1.17 -0.18,-0.46 -0.31,-1.18 -0.31,-2.23 l 0,-12.03 2.80,0 0,12.33 c .06,.42 .24,.58 .59,.58 .53,0 1.02,-0.48 1.61,-1.34 l 0,-11.57 2.80,0 0,15.23 -2.80,0 0,0 z m 12.70,-1.52 c -0.35,1.13 -1.13,1.71 -2.19,1.71 -0.95,0 -2.01,-0.58 -2.90,-1.72 l -0.00,1.53 -3.02,0 0,-20.40 3.02,0 -0.00,6.65 c .86,-1.09 1.92,-1.71 2.91,-1.71 1.06,0 1.78,.63 2.13,1.77 .17,.61 .35,1.59 .35,3.03 l 0,6.09 c 0,1.40 -0.11,2.40 -0.29,3.04 l 0,0 0,0 z m 7.36,-1.89 c .02,-0.15 .02,-0.80 .02,-1.91 l 2.80,0 0,.43 c 0,.88 -0.07,1.51 -0.09,1.79 -0.09,.61 -0.30,1.16 -0.62,1.65 -0.73,1.10 -1.83,1.64 -3.23,1.64 -1.39,0 -2.46,-0.51 -3.23,-1.55 -0.56,-0.76 -0.93,-1.89 -0.93,-3.51 l 0,-5.33 c 0,-1.62 .33,-2.88 .89,-3.65 .77,-1.04 1.83,-1.59 3.20,-1.59 1.34,0 2.40,.55 3.15,1.59 .55,.76 .86,1.95 .86,3.58 l 10e-4,3.11 -5.32,0 0,2.73 c -0.00,1.40 .37,2.11 1.29,2.11 .65,0 1.04,-0.36 1.19,-1.10 l 0,0 0,0 z m -1.21,-9.51 c -0.89,0 -1.27,.38 -1.27,1.81 l 0,1.68 2.51,-0.00 0,-1.66 c 0,-1.40 -0.35,-1.83 -1.23,-1.83 l 0,0 0,0 z m -11.16,.69 -0.00,9.23 c .44,.46 .95,.69 1.39,.69 .77,0 1.11,-0.58 1.11,-2.10 l 0,-6.54 c 0,-1.52 -0.34,-1.97 -1.11,-1.97 -0.44,0 -0.94,.23 -1.39,.69 l 0,0 0,0 z",
fill:"#fff"}}]}]});this.A=a;this.o=null;this.P(a,"videodatachange",this.B);this.P(a,"presentingplayerstatechange",this.D);a=g.$V(a);g.IW(this,!g.W(a,2));this.B()};
q1=function(a){A_.call(this,a);var b=g.X(a),c=g.aW(a);this.ra=48;this.pa=69;if(b.experiments.g("enable_cards_button_title")||b.experiments.g("enable_share_button_title")||b.experiments.g("enable_watch_later_button_title"))this.ra=62,this.pa=91;var d=g.X(this.g),e=d.O;if(DK("ytp-normal-css-loaded")){var f=DK("ytp-sprite-mode-css-loaded");e!=f&&g.TE(Error("Player sprite mode mismatch. playerInSpriteMode: "+e+", spriteModeCssServed: "+f+", isMobile: "+d.isMobile),"WARNING")}this.O=null;this.G=[];d=new g.Y({H:"div",
M:"ytp-gradient-top"});g.M(this,d);g.uW(a,d.element,1);this.Ta=new g.cX(d,250,!0,100);g.M(this,this.Ta);this.C=new g.Y({H:"div",M:"ytp-chrome-top"});g.M(this,this.C);g.uW(a,this.C.element,1);this.Ra=new g.cX(this.C,250,!0,100);g.M(this,this.Ra);this.fa=[];this.o=new k1(a,this);g.M(this,this.o);g.uW(a,this.o.element,4);!b.experiments.g("related_on_pause_killswitch")&&b.A&&b.Oc&&(this.ub=new c0(a,this),g.M(this,this.ub),g.uW(a,this.ub.element,4));d=new f0(a);g.M(this,d);g.uW(a,d.element,5);d.subscribe("show",
(0,g.A)(this.Eq,this,d));this.fa.push(d);d=new g0(a,this,d);g.M(this,d);d.Ea(this.C.element);this.Ka=new j1(a);g.M(this,this.Ka);this.Ka.Ea(this.C.element);d=new g.CW({H:"div",M:"ytp-chrome-top-buttons"});g.M(this,d);d.Ea(this.C.element);b.experiments.g("embed_show_top_buttons")&&b.A&&g.S(this.C.element,"ytp-chrome-top-show-buttons");b.experiments.A("logo_src")&&g.S(this.g.getRootNode(),"ytp-red2");b.IS&&(this.ha=new o1(a,this,this.C.element),g.M(this,this.ha),this.ha.Ea(d.element));e=new i0(a,this);
g.M(this,e);g.uW(a,e.element,5);e.subscribe("show",(0,g.A)(this.Eq,this,e));this.fa.push(e);this.Na=new j0(a,this,e,this.C.element);g.M(this,this.Na);this.Na.Ea(d.element);this.V=new E_(a,this,this.C.element);g.M(this,this.V);this.V.Ea(d.element);e=new G_(a,this.V);g.M(this,e);e.Ea(d.element);(this.A="1"==b.B?new g1(a,this,this.B):null)&&g.M(this,this.A);"3"==b.B&&(d=new h0(a,this),g.M(this,d),g.uW(a,d.element,8));this.I=new Y_(a,this);g.M(this,this.I);this.I.subscribe("show",this.Zz,this);this.Fa=
!1;b.jk&&(d=new p1(a),g.M(this,d),g.uW(a,d.element,7));d=new C_(a);g.M(this,d);g.uW(a,d.element,4);this.ba=new g.Y({H:"div",R:{tabindex:0}});this.ba.U("focus",this.QH,this);g.M(this,this.ba);this.aa=new g.Y({H:"div",R:{tabindex:0}});this.aa.U("focus",this.RH,this);g.M(this,this.aa);(this.ea=b.useTabletControls?null:new Z_(a,c,this.I,this.B,this.F,(0,g.A)(this.gn,this)))&&g.M(this,this.ea);this.P(a,"fullscreentoggled",this.QM);this.P(a,"offlineslatestatechange",this.yQ,this);this.P(a,"cardstatechange",
this.Lg,this)};
nqa=function(a,b,c,d,e){b.style.left="";b.style.top="";b.style.bottom="";var f=g.Gh(b);e=e||a.A&&g.Od(a.A.oa(),c);if(null==d||!e){var k=g.Gh(c);var l=g.Dh(c,a.g.getRootNode())}d=(null==d?l.x+k.width/2:d)-f.width/2;e?(k=h1(a.A),l=gqa(a.A),c=g.aW(a.g).Xa().height,d=g.Xc(d,k,k+l-f.width),f=c-(a.A.A.he()?72:50)-f.height):g.Od(a.C.element,c)?(k=g.aW(a.g).Xa().width,d=g.Xc(d,12,k-f.width-12),f=a.he()?a.pa:a.ra,"gvn"==g.X(a.g).g&&(f+=20)):(a=g.aW(a.g).Xa(),d=g.Xc(d,12,a.width-f.width-12),f=l.y>(a.height-
k.height)/2?l.y-f.height-12:l.y+k.height+12);b.style.top=f+"px";b.style.left=d+"px"};
r1=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!=g.rh(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=r1(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};
s1=function(a){this.I=a;this.D=null;this.g=[];this.A=[];this.C=[];this.G=1;this.o=[];this.B=!1};
g.wW=function(a,b,c){a.B?a.C.push({type:b,data:c}):a.I.X(b,c)};
t1=function(a,b){g.L.call(this);var c=this;this.ea=Aja(b);var d=this.ea.args||{};this.g=new eO(d);g.M(this,this.g);!this.g.experiments.g("legacy_autoplay_flag")&&ZN(this.g)&&(d.autoplay="1");this.Id=IN(ZN(this.g)&&"blazer"!=this.g.g,d.enablesizebutton);this.pa=IN(!1,d.player_wide);this.yc=!1;this.Y=this.g.Hb&&IN(!1,d.external_list);this.Aa=(this.Oc=this.g.Hb&&IN(!1,d.external_play_video))&&this.g.experiments.g("player_unified_fullscreen_transitions");this.O=new g.uG(this);g.M(this,this.O);wg=function(a,
b){g.TE(b,"WARNING")};
this.Ra=null;this.V=new g.CD;this.aa=new g.CD;this.da=new s1(this.aa);this.da.pause();this.o=new SV(this);g.M(this,this.o);this.I=new SV(this,1);g.M(this,this.I);this.G=new QZ(this);g.M(this,this.G);this.N=1;this.Ya={};this.L=this.g.storeUserVolume?ika():{volume:100,muted:this.g.mute};this.T=this.g.Hb?new TR(this,1):new OJ(this,1);g.M(this,this.T);this.D=null;this.Ta={};d={};this.Ab=(d.internalAbandon=this.sO,d.internalvideodatachange=this.rO,d.playbackready=this.tO,d.playbackstarted=this.uO,d.statechange=
this.vO,d.signatureexpired=this.wR,d);this.B=rqa(this);g.M(this,this.B);this.J=new VR(this.g,"",this.B);this.A=sqa(this);d={};this.Hd=(d.airplayactivechange=this.iO,d.airplayavailabilitychange=this.jO,d.beginseeking=this.DO,d.endseeking=this.rP,d.internalAbandon=this.JP,d.internalaudioformatchange=this.xO,d.internalvideodatachange=this.ts,d.internalvideoformatchange=this.ZR,d.liveviewshift=this.PP,d.playbackstalledatstart=this.DR,d.progresssync=this.NK,d.seekto=this.OK,d.onLoadProgress=this.QP,d.onVideoProgress=
this.QK,d.playbackready=this.JQ,d.statechange=this.BB,d.connectionissue=this.bP,d.newelementrequired=this.sQ,d.heartbeatparams=this.LK,d.videoelementevent=this.PK,d);this.F=null;this.ra=new k_(5,function(a){a!=g.ZV(c,a.getPlayerType())&&a.dispose()});
g.M(this,this.ra);this.Ib=this.Jb=-1;this.ob=new g.Ht(this.G.qg,16,this.G);g.M(this,this.ob);this.ub=!1;this.fa=!0;this.sa=this.Na=this.C=null;this.uc=!1;this.Gc=this.gd=null;this.ib=this.ka=0;this.ha=this.Ka=!1;this.Fa=this.ba=null;this.O.P(this.o,"crn_appapi",this.pO);this.O.P(this.o,"crx_appapi",this.qO);this.O.P(this.o,"crn_appad",this.MA);this.O.P(this.o,"crx_appad",this.MA);this.O.P(this.o,"presentingplayerstatechange",this.MK);this.O.P(this.o,"resize",this.fR);this.G.Ea(g.jd(a));this.Hc=tqa(this,
this.G.element);g.M(this,this.Hc);g.uE=this.g.O;uqa(this);this.J.o("fs");vqa(this);this.Fa=new q1(this.o);this.B.F=this.Fa;this.Fa.init();g.iW(this.I,"init")};
sqa=function(a){var b=new WU(a.g,1,a.J,a.G,(0,g.A)(a.V.X,a.V),(0,g.A)(a.il,a));QV(b,a.g.A?1:wqa(a,g.tH("yt-player-playback-rate")||1));u1(a,b,a.Ab);return b};
rqa=function(a){var b="",c=a.ea.assets.js||"";0==c.indexOf("//")&&(c=a.g.fa+":"+c);"/base.js"==c.substr(-8)&&(b=c.substr(0,c.length-8)+"/");b=new NZ(a.o,b,a);c={};a=(c.loaded=(0,g.A)(a.kQ,a),c.unloaded=(0,g.A)(a.lQ,a),c.destroyed=(0,g.A)(a.Rs,a),c);b.ba=a;return b};
xqa=function(a,b){a.Ra||(a.Ra=new j_(a),g.M(a,a.Ra),g.uW(a.o,a.Ra.element,4));g.IW(a.Ra,b);v1(a)&&g.YV(a.B).kM()};
x1=function(a){var b=w1.getTag(!0,!a.g.C);a.D=new NU(b);a.F&&wV(a.F,a.D);try{if(a.g.aa)a.sa&&a.O.Ca(a.sa),a.sa=a.O.P(a.D,"volumechange",a.hQ);else{a.D.setVolume(a.L.volume/100);var c=a.D,d=a.L.muted;CK();c.g.muted=d}}catch(e){b="setvolume.1;emsg."+(e.message&&e.message.replace(/[;:,]/g,"_"));g.eV(a.A,"html5.missingapi","YTP_ERROR_UNSUPPORTED_DEVICE",b);return}Toa(a.G,b);try{WQ(a.D)}catch(e){b="activate.1;emsg."+(e.message&&e.message.replace(/[;:,]/g,"_")),g.eV(a.A,"html5.missingapi","YTP_ERROR_UNSUPPORTED_DEVICE",
b)}};
y1=function(a){if(a.D){a.sa&&(a.O.Ca(a.sa),a.sa=null);a.F&&uV(a.F);var b=a.G;b.o&&(g.Gd(b.o),b.o=null);w1.releaseTag(a.D.oa());a.D=null}};
GZ=function(a,b){if(a.F!=b){var c=null;a.F&&(c=a.F.A,PZ(a.B),oW(a,"cuerangesremoved",a.F.F.g.g||[]),Koa(a));z1(a,b);a.F=b;a.D&&wV(b,a.D);u1(a,b,a.Hd);a.ts("newdata",b,b.g);a.g.experiments.g("disable_new_presenting_state_change")||!c||g.jR(c,b.A)||a.BB(new g.oR(b.A,c));b.Fa.g&&a.ts("dataloaded",b,b.g);b.g.Oa&&a.o.za("onPlaybackQualityChange",b.g.Oa.video.quality);oW(a,"cuerangesadded",a.F.F.g.g||[]);kR(b.A)&&BV(b)}};
u1=function(a,b,c){for(var d in c)b.subscribe(d,c[d],a)};
z1=function(a,b){if(b!=a.A){var c=b.getPlayerType();a.Ta[c]=b}};
Koa=function(a){var b;if(b=a.ba)if(b=a.D)b=a.D,b=!!b&&b==a.ba.g;b&&(y1(a),x1(a));uV(a.F);b=a.F;var c=a.Hd;for(d in c)b.unsubscribe(d,c[d],a);var d=a.F;d!=a.A&&(b=d.getPlayerType(),a.Ta[b]==d&&delete a.Ta[b]);a.F=null};
g.ZV=function(a,b){return b?1==b?a.A:a.Ta[b]||null:a.F};
bY=function(a,b){var c=g.ZV(a,b);c||(c=yqa(a,b),z1(a,c));return c};
yqa=function(a,b){if(2==b){var c=g.$b(a.g.N);a.g.experiments.g("legacy_autoplay_flag")&&(c.autoplay="1");var d=A1(a);c.eventid=d.eventId;c.content_v=d.videoId;c=new eO(c);c.D="adunit";c=new WU(c,2,new VR(c,""),a.G,(0,g.A)(a.V.X,a.V),(0,g.A)(a.il,a));if(a.g.experiments.g("html5_copy_ctt_to_ad_playbacks")&&d.vssCredentialsToken){var e=c.g;e.vssCredentialsToken=d.vssCredentialsToken;e.dk=d.dk}}else c=new WU(a.g,b,a.J,a.G,(0,g.A)(a.V.X,a.V),(0,g.A)(a.il,a));return c};
zqa=function(a){var b=a.B;if(!b.o)try{b.T.ga(1).adModule?(b.o=new CZ(b.ea,b.ea.I),b.o.create()):g.rW(b.T,"ad")}catch(c){g.rW(b.T,"ad"),g.TE(c)}b.Jw();b.Fw();b.Lw();b.Nw();b.Mw();b.Iw();b.Dw();b.Ew();b.Hw();b.Gw();b.xq();b.Kw();a.o.X("videoready",A1(a))};
A1=function(a){return a.F.g};
Aqa=function(a,b){var c=g.ZV(a,b);return(c=c?c.o:null)?aR(c):0};
g.B1=function(a,b,c){(a=g.ZV(a,void 0===c?1:c))&&UU(a,b)};
C1=function(a){var b=a.A.g;return a.g.experiments.g("legacy_autoplay_flag")?a.g.rm:b.Ah};
uqa=function(a){var b=new g.aQ(a.ea.args);g.$H()&&b.oe.push("remote");b.ed()&&(dV(a.A,b,(0,g.A)(a.zd,a)),C1(a)&&(a.g.Hd||a.g.Id)&&hV(a.A))};
vqa=function(a){var b=a.G,c=b.app.g;c.Cf||b.Fu("tag-pool-enabled");c.sc&&b.Fu("house-brand");"gvn"==c.g&&(b.Fu("ytp-gvn"),b.element.style.backgroundColor="transparent");c.ka&&(b.G=g.KG("yt-dom-content-change",b.qg,b));b.P(window,"resize",b.qg,b);b=a.T;b.o=a.G.element;for(var d in b.B)b.o[d]=b.B[d];for(d in b.C)b.o[d]=b.C[d];(d=dG(a.G.element))&&a.O.P(a.G,d,a.yP);a.O.P(window,"resize",a.gR);b=a.ea.args;x1(a);d=a.A.g;a.o.za("onVolumeChange",a.L);if(b&&aS(b))if((c=pO(a.g))&&!a.Y&&(b.fetch=0),D1(a,b),
c&&!a.Y)E1(a);else if(!d.ed())a.C.onReady((0,g.A)(a.Zs,a));if(b=a.ea.args.jsapicallback)g.wa(b)||(b=g.x(b)),b&&(0,g.A)(b,v,a.g.oK);GZ(a,a.A);g.W(a.A.A,128)||(b=BK(a.g.C),"fmt.noneavailable"==b?g.eV(a.A,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"==b?g.eV(a.A,b,"YTP_ERROR_UNSUPPORTED_DEVICE","nocanplaymedia.1"):d&&d.ed()&&C1(a)&&(a.g.Hd||a.g.Id)?F1(a):g.vO(a.g)||Bqa(a))};
Bqa=function(a){a.o.X("initializingmode");g.G1(a,2);a.B.xq()};
F1=function(a){if(g.W(a.A.A,128))return!1;C1(a)&&a.g.Id&&(w1.hasTags(void 0)&&a.ha?(RJ(a,{muted:!1,volume:a.L.volume},!1),H1(a,!1)):w1.hasTags(void 0)||a.L.muted||(RJ(a,{muted:!0,volume:a.L.volume},!1),H1(a,!0)));Cqa(a,1,a.A.g.videoId);a.o.X("initializingmode");GZ(a,a.A);g.G1(a,3);var b;if(!(b=!a.g.Cf||cO()&&!a.uc)){if(b=a.ba)b=a.D,b=!!b&&b==a.ba.g;b=b&&a.uc}b&&(y1(a),x1(a),wV(a.A,a.D));jV(a.A);if(g.W(a.A.A,128))return!1;I1(a,3);return a.uc=!0};
v1=function(a){a=g.YV(a.B);return!!a&&a.loaded};
Dqa=function(a,b){if(a.F==a.A&&a.F.gd!=b){var c=a.F;c.gd=b;c.o&&(c.o.g.loop=b);a.o.X("loopchange",b)}};
J1=function(a,b,c){(0,window.isNaN)(b)||(b=wqa(a,b),a.A.Aa!=b&&(QV(a.A,b),c&&!a.g.A&&g.sH("yt-player-playback-rate",b),a.o.za("onPlaybackRateChange",b)))};
wqa=function(a,b){var c=1;c=a.o.zj();return c=1>b?g.eb(c,function(a){return a>=b}):gb(c,function(a){return a<=b})};
K1=function(a,b){var c=NV(a.A,b);a.F&&a.F!=a.A&&(c=Eqa(c,NV(a.F,b),"ad_"));if(b&&a.D){c["0sz"]=0==g.Gh(a.D.g).Qc();c.op=qh(a.D.g,"opacity");var d=vh(a.D.g).y+g.Gh(a.D.g).height;c.yof=0>=d;c.dis=qh(a.D.g,"display")}(d=b?gV():null)&&(c.gpu=d);c.cgr=!0;c.debug_playbackQuality=a.I.kl();c.debug_date=(new Date).toString();delete c.uga;delete c.q;(d=a.B.D)&&(c=Eqa(c,d.rD(),"fresca_"));return JSON.stringify(c,null,2)};
XV=function(a){return 1==a.N?1:v1(a)?3:g.ZV(a).getPlayerType()};
Fqa=function(a,b){return 3==XV(a)?nR(g.YV(a.B).F):2==b?a.Ib:a.Jb};
Gqa=function(a){var b=a.B.o;b&&b.C&&b.destroy();Dqa(a,!1);a.Ya={};a=a.J;b=a.B;b.aa={};b.Y={};a.C=!1};
E1=function(a){var b=Hqa();if(b)if(b.list){if(a.C&&a.C.listId.toString()==b.list)if(0<=b.index){var c=b.video;a.o.isFullscreen()&&((c=c[a.C.ce()])&&c.encrypted_id!=a.C.dc().videoId||(b.index=a.C.ce()));eS(a.C,b);a.Na&&L1(a,a.Na)}else a.Na=null}else a.Qm()};
D1=function(a,b){a.C&&(a.C.unsubscribe("error",a.Qm,a),g.Ye(a.C),a.C=null);b&&(a.Y&&(b.fetch=0),a.C=new g.$R(b),a.C.subscribe("error",a.Qm,a))};
M1=function(a,b,c,d){b in a.Ya||(c=new g.VJ(c,d,{id:b,priority:1}),c.namespace="appad",OT(a.A.F,[c]),a.Ya[b]=c)};
Iqa=function(a,b,c){c={label:c};a.g.experiments.g("send_pyv_ad_mt_and_abandon_pings")&&(a=1E3*a.getCurrentTime(),c.ad_mt=Math.round(Math.max(0,a)).toString());return g.jF(b,c)};
g.G1=function(a,b){b!=a.N&&(2==b&&(I1(a,-1),I1(a,5)),a.N=b,a.o.X("appstatechange",b))};
I1=function(a,b){a.F&&2==a.F.getPlayerType()?a.Ib!=b&&(a.Ib=b,a.o.za("onAdStateChange",b)):a.Jb!=b&&(a.Jb=b,a.o.za("onStateChange",b))};
LZ=function(a,b,c,d,e){c=0!=c;if(e=g.ZV(a,e))2==a.N&&F1(a),lV(e,b,c,d)};
O1=function(a,b,c,d,e){a.g.sc&&zO(b);!a.g.experiments.g("legacy_autoplay_flag")&&ZN(a.g)&&(b.autoplay="1");var f=new g.aQ(b);d||(b&&aS(b)?(pO(a.g)&&!a.Y&&(b.fetch=0),D1(a,b)):a.C&&D1(a,null),a.Y=IN(!1,b.external_list),pO(a.g)&&!a.Y&&E1(a));return N1(a,f,c,e)};
Jqa=function(a,b,c,d){a.ra.get(c+b.videoId)||(b.wo=!0,d?(d=g.ZV(a,c),P1(a,c)):d=yqa(a,c),dV(d,b,(0,g.A)(a.zd,a)),hV(d,!0),a.ra.set(c+b.videoId,d))};
Cqa=function(a,b,c){var d=b+c;if(c=a.ra.get(d)){a.ra.remove(d);if(c==g.ZV(a,b))return c;if(1==c.getPlayerType()){c.g.autonavState=a.A.g.autonavState;b=a.A;d=a.Ab;for(var e in d)b.unsubscribe(e,d[e],a);e=a.A.Aa;a.A.dispose();a.A=c;QV(a.A,e);u1(a,c,a.Ab);Gqa(a)}else(e=g.ZV(a,b))&&e.dispose();a.F.getPlayerType()==c.getPlayerType()?GZ(a,c):z1(a,c)}return c};
N1=function(a,b,c,d){UP("_start",a.J.g)||(KP("p",void 0,a.J.g),a.J.info("srt",0));var e=Cqa(a,c||a.F.getPlayerType(),b.videoId);if(!e){e=g.ZV(a,c);if(!e)return!1;a.ob.stop();P1(a,c);dV(e,b,(0,g.A)(a.zd,a),d)}if(!fV(e))return!1;a.ub&&(e.Ib=!1,a.ub=!1);if(e==a.A)return g.G1(a,1),F1(a);jV(e);return!0};
Q1=function(a,b,c){c=g.ZV(a,c);b&&c==a.A&&(c.g.Tf=!0)};
S1=function(a,b,c){a.g.sc&&zO(b);if(b&&aS(b))if(a.fa=!0,D1(a,b),(b=a.C.dc())&&b.ed())R1(a,b,c);else a.C.onReady((0,g.A)(a.Zs,a));else c||(c=XV(a)),1==c&&a.Qm(),R1(a,new g.aQ(b),c)};
R1=function(a,b,c){var d=g.ZV(a,c);d&&(P1(a,c),dV(d,b,(0,g.A)(a.zd,a)),d.C.ng(b.Xb),d==a.A&&(g.G1(a,1),Bqa(a)))};
g.U1=function(a,b,c,d,e,f){if(!b&&!d)throw Error("Playback source is invalid");a.o.isFullscreen()&&!a.Aa||!ZN(a.g)?(c=a.J,f=c.B,f.aa={},f.Y={},c.C=!1,a.J.reset(),b={video_id:b},e&&(b.autoplay="1"),d?(b.list=d,a.fa=!1,T1(a,b,void 0,void 0,void 0)):O1(a,b,1)):(c=c||{},c.lact=g.dH(),c.vis=a.il(),a.Oc||"gaming"==a.g.g?a.o.za("onPlayVideo",{videoId:b,sessionData:c,listId:d}):(d=f&&A1(a).isLiveDestination?a.g.Y:a.g.getVideoUrl(b,d),e=g.x("yt.player.exports.navigate"),a.g.experiments.g("legacy_navigate_with_player")?
(e(d,c,!0),MW(d)):e(d,c)))};
T1=function(a,b,c,d,e){if(g.xa(b)&&!g.ua(b)){c="playlist list listType index startSeconds suggestedQuality".split(" ");d={};for(e=0;e<c.length;e++){var f=c[e];b[f]&&(d[f]=b[f])}b=d}else c={index:c,startSeconds:d,suggestedQuality:e},g.u(b)&&16==b.length?c.list="PL"+b:c.playlist=b,b=c;D1(a,b);a.C.onReady((0,g.A)(a.Zs,a))};
g.V1=function(a){if(a.o.app.ha)return!1;if(3==XV(a))return!0;pO(a.g)&&!a.Y&&E1(a);return!(!a.C||!a.C.hasNext())};
Kqa=function(a,b){a.A.g.autonavState=b;a.o.X("autonavchange",b)};
W1=function(a,b,c){var d=g.ZV(a,1).g.lg;g.vW(a.o)&&d?(d=g.J(d,g.l_),b=d[0],d=c?b.ax:b.Wd,g.U1(a,b.dc().videoId,d,b.getPlaylistId(),c)):!a.Y||a.o.isFullscreen()&&!a.Aa?3==XV(a)?g.YV(a.B).iM():a.C&&(pO(a.g)&&!a.o.isFullscreen()?L1(a,"yt.www.watch.lists.next"):(a.C.hasNext(b)&&dS(a.C,bS(a.C)),a.C.Tc?N1(a,a.C.dc(void 0,c),1):a.fa=!1)):a.o.za("onPlaylistNext")};
Lqa=function(a,b){!a.Y||a.o.isFullscreen()&&!a.Aa?3==XV(a)?g.YV(a.B).jM():a.C&&(pO(a.g)&&!a.o.isFullscreen()?L1(a,"yt.www.watch.lists.prev"):(a.C.Rf(b)&&dS(a.C,cS(a.C)),a.C.Tc?N1(a,a.C.dc(),1):a.fa=!1)):a.o.za("onPlaylistPrevious")};
L1=function(a,b){var c=g.x(b);if(c){var d=Hqa();d&&d.list&&c();a.Na=null}else a.Na=b};
Hqa=function(){var a=g.x("yt.www.watch.lists.getState");return a?a():null};
Mqa=function(a,b,c,d,e,f){b={id:b};"chapter"==f?(b.style="ytp-chapter-marker",b.visible=!0):(0,window.isNaN)(e)||("ad"==f?b.style="ytp-ad-progress":(b.style="ytp-time-marker",b.color=e),b.visible=!0);c=new g.VJ(1E3*c,1E3*d,b);c.namespace="appapi";mW(a,[c],1);return!0};
mW=function(a,b,c){var d=g.ZV(a,c);d&&(OT(d.F,b),c&&XV(a)!=c||oW(a,"cuerangesadded",b))};
Ooa=function(a){var b=(0,g.ZG)(),c=a.getCurrentTime();a=A1(a);return b-Math.max(1E3*(c-a.startSeconds),0)};
RJ=function(a,b,c){a.g.J&&(a.L=b,b.muted||H1(a,!1),c&&a.g.storeUserVolume&&!a.g.aa&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.sH("yt-player-volume",c),g.sH("yt-player-volume",c,2592E3))),Nqa(a),c=g.tF&&!a.D.Pd(),!a.g.aa||c)&&(b=g.$b(b),a.g.storeUserVolume||(b.unstorable=!0),a.o.za("onVolumeChange",b))};
Nqa=function(a){var b=A1(a);b.Fm||(a.D.setVolume(a.L.volume*(a.g.aa?1:b.hd)/100),b=a.D,a=a.L.muted,CK(),b.g.muted=a)};
H1=function(a,b){b!=a.ha&&(a.ha=b,a.o.X("mutedautoplaychange",b))};
Oqa=function(a,b){var c=window.screen&&window.screen.orientation;if(a.g.experiments.g("lock_fullscreen2")&&c&&c.lock&&(!g.tF||!g.X1))if(b){var d=0==c.type.indexOf("portrait"),e=g.TZ(a.G),f=d;1>e?f=!0:1<e&&(f=!1);if(!a.Ka||f!=d){if(c=c.lock(f?"portrait":"landscape"))c["catch"](g.y);a.Ka=!0}}else a.Ka&&(a.Ka=!1,c.unlock())};
Y1=function(a,b){var c=!!b,d=!!a.ib!=c;a.ib=b;a.g.experiments.g("legacy_player_fullscreen_order")?d&&(a.J.o("fsc"),a.g.da=c,a.G.qg()):(a.g.da=c,a.G.qg(),d&&a.J.o("fsc"));d&&(a.o.X("fullscreentoggled",c),d=a.A.g,c={fullscreen:c,videoId:d.ypcOrigin||d.videoId,time:a.getCurrentTime()},a.I.getPlaylistId()&&(c.listId=a.I.getPlaylistId()),a.o.za("onFullscreenChange",c))};
oW=function(a,b,c){a.o.X(b,c);var d=g.XN(a.g)||g.YN(a.g);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.o.za(e,c)}};
IZ=function(a,b){var c=g.ZV(a,b);c&&(2==a.N?F1(a):!a.g.experiments.g("disable_reload_on_error")&&c.A.isError()?Z1(a,"user"):g.W(c.A,2)?LZ(a,0):BV(c))};
KZ=function(a,b){var c=g.ZV(a,b);c&&nV(c)};
Pqa=function(a){var b=a.A.g;b=new g.aQ({video_id:b.videoId,oauth_token:b.oauthToken});R1(a,b,1)};
P1=function(a,b){g.qP(a.ka);a.ka=0;var c=g.ZV(a,b);if(c&&1!=a.N&&2!=a.N){PZ(a.B);if(1==b){var d=a.B.o;d&&d.C&&d.destroy()}tV(c);oW(a,"cuerangesremoved",a.F.F.g.g||[]);c.F.reset()}};
Qqa=function(a,b,c,d,e){c=0!=c;var f=g.ZV(a,e);if(!f||2!=f.getPlayerType()&&!g.wQ(f.g))3==XV(a)?g.YV(a.B).sl("control_seek",b,c):LZ(a,b,c,d,e)};
Rqa=function(a,b,c){a.Id=b;a.pa=c;a.o.X("sizestylechange",b,c);a.G.qg()};
Z1=function(a,b,c){if(!a.ub){c&&(y1(a),x1(a));a.ub=!0;c=g.ZV(a);c.Ib=!0;c.Kd("reloading","reason."+b);c=A1(a);var d={};d.video_id=c.videoId;c.Ba||(d.start=g.ZV(a).getCurrentTime(),d.resume="1");c.pg&&(d.vvt=c.pg);c.vssCredentialsToken&&(d.vss_credentials_token=c.vssCredentialsToken,d.vss_credentials_token_type=c.dk);c.oauthToken&&(d.oauth_token=c.oauthToken);d.autoplay=1;d.reload_count=c.Hi+1;d.reload_reason=b;c.ck&&(d.unplugged_partner_opt_out=c.ck);O1(a,d)}};
Sqa=function(a){var b=A1(a).Fm,c=a.g.Vg;b||c?(a=a.D,a.D=!0,CK(),a.g.muted=!0):(a.D.D=!1,RJ(a,a.L))};
tqa=function(a,b){return a.g.experiments.g("html5_enable_embedded_player_visibility_signals")&&a.g.A?new m_(b):null};
Eqa=function(a,b,c){for(var d in b)a[c+d]=b[d];return a};
g.aa=[];fa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
ea="undefined"!=typeof window&&window===this?this:"undefined"!=typeof window.global&&null!=window.global?window.global:this;baa=0;na("Array.prototype.fill",function(a){return a?a:function(a,c,d){var b=this.length||0;0>c&&(c=Math.max(0,b+c));if(null==d||d>b)d=b;d=Number(d);0>d&&(d=Math.max(0,b+d));for(c=Number(c||0);c<d;c++)this[c]=a;return this}});
na("WeakMap",function(a){function b(a){this.ya=(f+=Math.random()+1).toString();if(a){ca();ia();a=g.la(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}}
function c(a){oa(a,e)||fa(a,e,{value:{}})}
function d(a){var b=Object[a];b&&(Object[a]=function(a){c(a);return b(a)})}
if(function(){if(!a||!Object.seal)return!1;try{var b=Object.seal({}),c=Object.seal({}),d=new a([[b,2],[c,3]]);if(2!=d.get(b)||3!=d.get(c))return!1;d["delete"](b);d.set(c,4);return!d.has(b)&&4==d.get(c)}catch(n){return!1}}())return a;
var e="$jscomp_hidden_"+Math.random().toString().substring(2);d("freeze");d("preventExtensions");d("seal");var f=0;b.prototype.set=function(a,b){c(a);if(!oa(a,e))throw Error("WeakMap key fail: "+a);a[e][this.ya]=b;return this};
b.prototype.get=function(a){return oa(a,e)?a[e][this.ya]:void 0};
b.prototype.has=function(a){return oa(a,e)&&oa(a[e],this.ya)};
b.prototype["delete"]=function(a){return oa(a,e)&&oa(a[e],this.ya)?delete a[e][this.ya]:!1};
return b});
na("Map",function(a){function b(){var a={};return a.previous=a.next=a.head=a}
function c(a,b){var c=a.g;return ka(function(){if(c){for(;c.head!=a.g;)c=c.previous;for(;c.next!=c.head;)return c=c.next,{done:!1,value:b(c)};c=null}return{done:!0,value:void 0}})}
function d(a,b){var c=b&&typeof b;"object"==c||"function"==c?f.has(b)?c=f.get(b):(c=""+ ++k,f.set(b,c)):c="p_"+b;var d=a.o[c];if(d&&oa(a.o,c))for(var e=0;e<d.length;e++){var l=d[e];if(b!==b&&l.key!==l.key||b===l.key)return{id:c,list:d,index:e,yd:l}}return{id:c,list:d,index:-1,yd:void 0}}
function e(a){this.o={};this.g=b();this.size=0;if(a){a=g.la(a);for(var c;!(c=a.next()).done;)c=c.value,this.set(c[0],c[1])}}
if(function(){if(!a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),c=new a(g.la([[b,"s"]]));if("s"!=c.get(b)||1!=c.size||c.get({x:4})||c.set({x:4},"t")!=c||2!=c.size)return!1;var d=c.entries(),e=d.next();if(e.done||e.value[0]!=b||"s"!=e.value[1])return!1;e=d.next();return e.done||4!=e.value[0].x||"t"!=e.value[1]||!d.next().done?!1:!0}catch(r){return!1}}())return a;
ca();ia();var f=new window.WeakMap;e.prototype.set=function(a,b){var c=d(this,a);c.list||(c.list=this.o[c.id]=[]);c.yd?c.yd.value=b:(c.yd={next:this.g,previous:this.g.previous,head:this.g,key:a,value:b},c.list.push(c.yd),this.g.previous.next=c.yd,this.g.previous=c.yd,this.size++);return this};
e.prototype["delete"]=function(a){a=d(this,a);return a.yd&&a.list?(a.list.splice(a.index,1),a.list.length||delete this.o[a.id],a.yd.previous.next=a.yd.next,a.yd.next.previous=a.yd.previous,a.yd.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.o={};this.g=this.g.previous=b();this.size=0};
e.prototype.has=function(a){return!!d(this,a).yd};
e.prototype.get=function(a){return(a=d(this,a).yd)&&a.value};
e.prototype.entries=function(){return c(this,function(a){return[a.key,a.value]})};
e.prototype.keys=function(){return c(this,function(a){return a.key})};
e.prototype.values=function(){return c(this,function(a){return a.value})};
e.prototype.forEach=function(a,b){for(var c=this.entries(),d;!(d=c.next()).done;)d=d.value,a.call(b,d[1],d[0],this)};
e.prototype[window.Symbol.iterator]=e.prototype.entries;var k=0;return e});
na("Set",function(a){function b(a){this.g=new window.Map;if(a){a=g.la(a);for(var b;!(b=a.next()).done;)this.add(b.value)}this.size=this.g.size}
if(function(){if(!a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),d=new a(g.la([b]));if(!d.has(b)||1!=d.size||d.add(b)!=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]!=b||f.value[1]!=b)return!1;f=e.next();return f.done||f.value[0]==b||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(k){return!1}}())return a;
ca();ia();b.prototype.add=function(a){this.g.set(a,a);this.size=this.g.size;return this};
b.prototype["delete"]=function(a){a=this.g["delete"](a);this.size=this.g.size;return a};
b.prototype.clear=function(){this.g.clear();this.size=0};
b.prototype.has=function(a){return this.g.has(a)};
b.prototype.entries=function(){return this.g.entries()};
b.prototype.values=function(){return this.g.values()};
b.prototype.keys=b.prototype.values;b.prototype[window.Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(a,b){var c=this;this.g.forEach(function(d){return a.call(b,d,d,c)})};
return b});
na("Array.from",function(a){return a?a:function(a,c,d){ia();c=null!=c?c:function(a){return a};
var b=[],f=a[window.Symbol.iterator];if("function"==typeof f)for(a=f.call(a);!(f=a.next()).done;)b.push(c.call(d,f.value));else{f=a.length;for(var k=0;k<f;k++)b.push(c.call(d,a[k]))}return b}});
na("Promise",function(a){function b(a){this.g=0;this.A=void 0;this.o=[];var b=this.B();try{a(b.resolve,b.reject)}catch(m){b.reject(m)}}
function c(){this.g=null}
function d(a){return a instanceof b?a:new b(function(b){b(a)})}
if(a)return a;c.prototype.o=function(a){null==this.g&&(this.g=[],this.B());this.g.push(a)};
c.prototype.B=function(){var a=this;this.A(function(){a.D()})};
var e=ea.setTimeout;c.prototype.A=function(a){e(a,0)};
c.prototype.D=function(){for(;this.g&&this.g.length;){var a=this.g;this.g=[];for(var b=0;b<a.length;++b){var c=a[b];delete a[b];try{c()}catch(n){this.C(n)}}}this.g=null};
c.prototype.C=function(a){this.A(function(){throw a;})};
b.prototype.B=function(){function a(a){return function(d){c||(c=!0,a.call(b,d))}}
var b=this,c=!1;return{resolve:a(this.J),reject:a(this.C)}};
b.prototype.J=function(a){if(a===this)this.C(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof b)this.L(a);else{a:switch(typeof a){case "object":var c=null!=a;break a;case "function":c=!0;break a;default:c=!1}c?this.I(a):this.D(a)}};
b.prototype.I=function(a){var b=void 0;try{b=a.then}catch(m){this.C(m);return}"function"==typeof b?this.N(b,a):this.D(a)};
b.prototype.C=function(a){this.F(2,a)};
b.prototype.D=function(a){this.F(1,a)};
b.prototype.F=function(a,b){if(0!=this.g)throw Error("Cannot settle("+a+", "+b|"): Promise already settled in state"+this.g);this.g=a;this.A=b;this.G()};
b.prototype.G=function(){if(null!=this.o){for(var a=this.o,b=0;b<a.length;++b)a[b].call(),a[b]=null;this.o=null}};
var f=new c;b.prototype.L=function(a){var b=this.B();a.Lm(b.resolve,b.reject)};
b.prototype.N=function(a,b){var c=this.B();try{a.call(b,c.resolve,c.reject)}catch(n){c.reject(n)}};
b.prototype.then=function(a,c){function d(a,b){return"function"==typeof a?function(b){try{e(a(b))}catch(C){f(C)}}:b}
var e,f,k=new b(function(a,b){e=a;f=b});
this.Lm(d(a,e),d(c,f));return k};
b.prototype["catch"]=function(a){return this.then(void 0,a)};
b.prototype.Lm=function(a,b){function c(){switch(d.g){case 1:a(d.A);break;case 2:b(d.A);break;default:throw Error("Unexpected state: "+d.g);}}
var d=this;null==this.o?f.o(c):this.o.push(function(){f.o(c)})};
b.resolve=d;b.reject=function(a){return new b(function(b,c){c(a)})};
b.race=function(a){return new b(function(b,c){for(var e=g.la(a),f=e.next();!f.done;f=e.next())d(f.value).Lm(b,c)})};
b.all=function(a){var c=g.la(a),e=c.next();return e.done?d([]):new b(function(a,b){function f(b){return function(c){k[b]=c;l--;0==l&&a(k)}}
var k=[],l=0;do k.push(void 0),l++,d(e.value).Lm(f(k.length-1),b),e=c.next();while(!e.done)})};
return b});
var Tqa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},Uqa="undefined"!=typeof window.Reflect&&window.Reflect.construct||function(a,b,c){void 0===c&&(c=a);
c=Tqa(c.prototype||Object.prototype);return Function.prototype.apply.call(a,c,b)||c};
na("Reflect.construct",function(a){return a||Uqa});
na("Math.log2",function(a){return a?a:function(a){return Math.log(a)/Math.LN2}});
$w=$w||{};v=this;ya="closure_uid_"+(1E9*Math.random()>>>0);caa=0;g.G=Date.now||function(){return+new Date};g.D(Fa,Error);Fa.prototype.name="CustomError";var hd;var Ta=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},gaa=/&/g,haa=/</g,iaa=/>/g,jaa=/"/g,kaa=/'/g,laa=/\x00/g,faa=/[\x00&<>"']/,maa=/&([^;\s<&]+);?/g,TC={"\x00":"\\0",
"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},SC={"'":"\\'"},Qa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},qaa=2147483648*Math.random()|0;var Vqa,$c;g.ib=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;
if(g.u(a))return g.u(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
Vqa=Array.prototype.lastIndexOf?function(a,b,c){return Array.prototype.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;
0>c&&(c=Math.max(0,a.length+c));if(g.u(a))return g.u(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
g.H=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=g.u(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.Id=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,k=g.u(a)?a.split(""):a,l=0;l<d;l++)if(l in k){var m=k[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.J=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=g.u(a)?a.split(""):a,k=0;k<d;k++)k in f&&(e[k]=b.call(c,f[k],k,a));
return e};
$c=Array.prototype.reduce?function(a,b,c,d){d&&(b=(0,g.A)(b,d));return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;
(0,g.H)(a,function(c,k){e=b.call(d,e,c,k,a)});
return e};
g.Ik=Array.prototype.some?function(a,b,c){return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=g.u(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;
return!1};
g.Nr=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=g.u(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};a:{var Wqa=v.navigator;if(Wqa){var Xqa=Wqa.userAgent;if(Xqa){g.Ib=Xqa;break a}}g.Ib=""};var bc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");kc[" "]=g.y;var JM,Vi,pn,qn,Yqa,Zi,$1;g.bf=Jb("Opera");g.sd=Jb("Trident")||Jb("MSIE");JM=Jb("Edge");g.tO=JM||g.sd;g.ph=Jb("Gecko")&&!(Oa(g.Ib,"WebKit")&&!Jb("Edge"))&&!(Jb("Trident")||Jb("MSIE"))&&!Jb("Edge");g.ud=Oa(g.Ib,"WebKit")&&!Jb("Edge");Vi=Jb("Macintosh");g.X1=Jb("Windows");g.wn=Jb("Android");pn=ic();qn=Jb("iPad");Yqa=Jb("iPod");Zi=jc();
a:{var a2="",b2=function(){var a=g.Ib;if(g.ph)return/rv\:([^\);]+)(\)|;)/.exec(a);if(JM)return/Edge\/([\d\.]+)/.exec(a);if(g.sd)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.ud)return/WebKit\/(\S+)/.exec(a);if(g.bf)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
b2&&(a2=b2?b2[1]:"");if(g.sd){var c2=mc();if(null!=c2&&c2>(0,window.parseFloat)(a2)){$1=String(c2);break a}}$1=a2}var nc=$1,waa={},Zqa;var $qa=v.document;Zqa=$qa&&g.sd?mc()||("CSS1Compat"==$qa.compatMode?(0,window.parseInt)(nc,10):5):void 0;var yaa=Zqa;var Oaa,Qaa,Raa;Oaa=!g.sd||g.pc(9);Qaa=!g.ph&&!g.sd||g.sd&&g.pc(9)||g.ph&&g.oc("1.9.1");g.ara=g.sd&&!g.oc("9");Raa=g.sd||g.bf||g.ud;var Laa={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};rc.prototype.Bg=!0;rc.prototype.Ze=function(){return this.g};
rc.prototype.toString=function(){return"Const{"+this.g+"}"};
var qc={};tc("");var zaa=/<[^>]*>|&[^;]+;/g,bra=RegExp("[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),Daa=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),Baa=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),Caa=/^http:\/\/.*/,Aaa=/\s+/,Eaa=/[\d\u06f0-\u06f9]/;xc.prototype.Bg=!0;xc.prototype.Ze=function(){return this.g};
xc.prototype.Kr=!0;xc.prototype.ej=function(){return 1};
var wc={};Bc.prototype.Bg=!0;Bc.prototype.Ze=function(){return this.g};
Bc.prototype.Kr=!0;Bc.prototype.ej=function(){return 1};
var Dc=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Ac={};Ec("about:blank");Ic.prototype.Bg=!0;var Hc={};Ic.prototype.Ze=function(){return this.g};
var Jaa=Jc(""),Iaa=/^[-,."'%_!# a-zA-Z0-9]+$/,Kc=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Haa=RegExp("\\b(hsl|hsla|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?)\\([-0-9a-z.%, ]+\\)","g");g.Mc.prototype.Kr=!0;g.Mc.prototype.ej=function(){return this.o};
g.Mc.prototype.Bg=!0;g.Mc.prototype.Ze=function(){return this.g};
var Qc=/^[a-zA-Z0-9-]+$/,Kaa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},cra={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Lc={};Oc("<!DOCTYPE html>",0);Oc("",0);Oc("<br>",0);g.h=g.ad.prototype;g.h.clone=function(){return new g.ad(this.x,this.y)};
g.h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.h.scale=function(a,b){var c=g.qa(b)?b:a;this.x*=a;this.y*=c;return this};g.h=g.dd.prototype;g.h.clone=function(){return new g.dd(this.width,this.height)};
g.h.Qc=function(){return this.width*this.height};
g.h.aspectRatio=function(){return this.width/this.height};
g.h.isEmpty=function(){return!this.Qc()};
g.h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.h.scale=function(a,b){var c=g.qa(b)?b:a;this.width*=a;this.height*=c;return this};var md={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.h=fd.prototype;g.h.oa=function(a){return g.u(a)?this.g.getElementById(a):a};
g.h.getElementsByTagName=function(a,b){return(b||this.g).getElementsByTagName(String(a))};
g.h.gI=function(a,b,c){return wd(this.g,arguments)};
g.h.createElement=function(a){return this.g.createElement(String(a))};
g.h.appendChild=g.Bd;g.h.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.h.removeNode=g.Gd;g.h.contains=g.Od;var Saa=g.y;var VN,UN,WN;g.KM=Jb("Firefox");VN=ic()||Jb("iPod");UN=Jb("iPad");WN=Jb("Android")&&!(gc()||Jb("Firefox")||Jb("Opera")||Jb("Silk"));g.tF=gc();g.Wi=hc()&&!jc();var de=null,ie=null,ce=null;var le=[];ke.prototype.clone=function(){return me(this.o,this.B,this.A-this.B)};
ke.prototype.clear=function(){this.o=null;this.g=this.A=this.B=0;this.C=!1};
ke.prototype.reset=function(){this.g=this.B};
ke.prototype.getError=function(){return this.C||0>this.g||this.g>this.A};oe.prototype.getError=function(){return this.B||this.g.getError()};
oe.prototype.reset=function(){this.g.reset();this.o=this.A=-1};var ue="function"==typeof window.Uint8Array,ve=[];te.prototype.toString=function(){De(this);return this.o.toString()};
te.prototype.getExtension=function(a){if(this.A){this.g||(this.g={});var b=a.A;if(a.B){if(a.o())return this.g[b]||(this.g[b]=(0,g.J)(this.A[b]||[],function(b){return new a.g(b)})),this.g[b]}else if(a.o())return!this.g[b]&&this.A[b]&&(this.g[b]=new a.g(this.A[b])),this.g[b];
return this.A[b]}};
te.prototype.clone=function(){return new this.constructor(Ee(Ce(this)))};g.D(Fe,te);g.D(Ge,te);g.D(Ke,te);g.D(Le,te);var Xaa=[[9,10],[11,12],[18,19,20,21]];g.D(Oe,te);var Yaa=[[2,3]];g.D(Pe,te);Pe.prototype.Ye=function(){return K(this,14)};
g.D(Qe,te);g.D(Re,te);g.D(Se,te);var Zaa=[[2,4,5]];g.D(Te,te);g.D(Ue,te);g.D(Ve,te);var $aa=[1];g.D(Be,te);g.D(Ie,te);var aba=[[1,6,2,3,7]];window.console&&"function"===typeof window.console.log&&(0,g.A)(window.console.log,window.console);var xf=!g.sd||g.pc(9),era=g.sd&&!g.oc("9");!g.ud||g.oc("528");g.ph&&g.oc("1.9b")||g.sd&&g.oc("8")||g.bf&&g.oc("9.5")||g.ud&&g.oc("528");g.ph&&!g.oc("8")||g.sd&&g.oc("9");var eba=function(){if(!v.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
v.addEventListener("test",null,b);v.removeEventListener("test",null,b);return a}();g.L.prototype.bb=!1;g.L.prototype.ma=function(){return this.bb};
g.L.prototype.dispose=function(){this.bb||(this.bb=!0,this.W())};
g.L.prototype.W=function(){if(this.Va)for(;this.Va.length;)this.Va.shift()()};g.$e.prototype.stopPropagation=function(){this.o=!0};
g.$e.prototype.preventDefault=function(){this.eC=!1};var fra={zp:"click",q0:"rightclick",pX:"dblclick",KZ:"mousedown",QZ:"mouseup",PZ:"mouseover",OZ:"mouseout",NZ:"mousemove",LZ:"mouseenter",MZ:"mouseleave",w0:"selectionchange",x0:"selectstart",H2:"wheel",gZ:"keypress",fZ:"keydown",hZ:"keyup",xW:"blur",dF:"focus",qX:"deactivate",nY:g.sd?"focusin":"DOMFocusIn",oY:g.sd?"focusout":"DOMFocusOut",QW:"change",f0:"reset",v0:"select",g1:"submit",PY:"input",W_:"propertychange",UX:"dragstart",PX:"drag",RX:"dragenter",TX:"dragover",SX:"dragleave",WX:"drop",QX:"dragend",
D1:"touchstart",C1:"touchmove",B1:"touchend",A1:"touchcancel",uW:"beforeunload",cX:"consolemessage",fX:"contextmenu",CX:"devicemotion",DX:"deviceorientation",JX:"DOMContentLoaded",ERROR:"error",CY:"help",LOAD:"load",BZ:"losecapture",y_:"orientationchange",b0:"readystatechange",g0:"resize",s0:"scroll",Z1:"unload",FW:"canplay",GW:"canplaythrough",XX:"durationchange",bY:"emptied",ENDED:"ended",qZ:"loadeddata",rZ:"loadedmetadata",PAUSE:"pause",PLAY:"play",PLAYING:"playing",a0:"ratechange",t0:"seeked",
u0:"seeking",T0:"stalled",h1:"suspend",o1:"timeupdate",z2:"volumechange",D2:"waiting",S0:"sourceopen",R0:"sourceended",Q0:"sourceclosed",kV:"abort",UPDATE:"update",g2:"updatestart",e2:"updateend",wY:"hashchange",B_:"pagehide",C_:"pageshow",Q_:"popstate",hX:"copy",E_:"paste",mX:"cut",pW:"beforecopy",qW:"beforecut",sW:"beforepaste",v_:"online",s_:"offline",MESSAGE:"message",bX:"connect",RY:"install",lV:"activate",mY:"fetch",pY:"foreignfetch",IZ:"messageerror",W0:"statechange",f2:"updatefound",gX:"controllerchange",
fW:cf("AnimationStart"),dW:cf("AnimationEnd"),eW:cf("AnimationIteration"),G1:cf("TransitionEnd"),J_:"pointerdown",P_:"pointerup",I_:"pointercancel",M_:"pointermove",O_:"pointerover",N_:"pointerout",K_:"pointerenter",L_:"pointerleave",uY:"gotpointercapture",CZ:"lostpointercapture",UZ:"MSGestureChange",VZ:"MSGestureEnd",WZ:"MSGestureHold",XZ:"MSGestureStart",YZ:"MSGestureTap",ZZ:"MSGotPointerCapture",a_:"MSInertiaStart",b_:"MSLostPointerCapture",c_:"MSPointerCancel",d_:"MSPointerDown",e_:"MSPointerEnter",
f_:"MSPointerHover",g_:"MSPointerLeave",h_:"MSPointerMove",i_:"MSPointerOut",j_:"MSPointerOver",k_:"MSPointerUp",TEXT:"text",l1:g.sd?"textinput":"textInput",ZW:"compositionstart",aX:"compositionupdate",YW:"compositionend",rW:"beforeinput",jY:"exit",oZ:"loadabort",pZ:"loadcommit",sZ:"loadredirect",tZ:"loadstart",uZ:"loadstop",l0:"responsive",K0:"sizechanged",b2:"unresponsive",w2:"visibilitychange",b1:"storage",OX:"DOMSubtreeModified",KX:"DOMNodeInserted",MX:"DOMNodeRemoved",NX:"DOMNodeRemovedFromDocument",
LX:"DOMNodeInsertedIntoDocument",HX:"DOMAttrModified",IX:"DOMCharacterDataModified",tW:"beforeprint",TV:"afterprint"};g.D(df,g.$e);
df.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;e?g.ph&&(lc(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;null===d?(this.B=g.ud||void 0!==a.offsetX?a.offsetX:a.layerX,this.C=g.ud||void 0!==a.offsetY?a.offsetY:a.layerY,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.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.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.state=a.state;this.g=a;a.defaultPrevented&&this.preventDefault()};
df.prototype.stopPropagation=function(){df.Z.stopPropagation.call(this);this.g.stopPropagation?this.g.stopPropagation():this.g.cancelBubble=!0};
df.prototype.preventDefault=function(){df.Z.preventDefault.call(this);var a=this.g;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,era)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var bba;g.ef="closure_listenable_"+(1E6*Math.random()|0);bba=0;hf.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=jf(e,b,c,d);return-1<b?(gf(e[b]),g.ob(e,b),0==e.length&&(delete this.listeners[a],this.g--),!0):!1};var uf="closure_lm_"+(1E6*Math.random()|0),Af={},wf=0,Df="__closure_events_fn_"+(1E9*Math.random()>>>0);g.D(g.Ef,g.L);g.Ef.prototype[g.ef]=!0;g.h=g.Ef.prototype;g.h.Dh=function(a){this.Na=a};
g.h.addEventListener=function(a,b,c,d){g.qf(this,a,b,c,d)};
g.h.removeEventListener=function(a,b,c,d){g.yf(this,a,b,c,d)};
g.h.dispatchEvent=function(a){var b=this.Na;if(b){var c=[];for(var d=1;b;b=b.Na)c.push(b),++d}b=this.Gc;d=a.type||a;if(g.u(a))a=new g.$e(a,b);else if(a instanceof g.$e)a.target=a.target||b;else{var e=a;a=new g.$e(d,b);g.dc(a,e)}e=!0;if(c)for(var f=c.length-1;!a.o&&0<=f;f--){var k=a.currentTarget=c[f];e=Ff(k,d,!0,a)&&e}a.o||(k=a.currentTarget=b,e=Ff(k,d,!0,a)&&e,a.o||(e=Ff(k,d,!1,a)&&e));if(c)for(f=0;!a.o&&f<c.length;f++)k=a.currentTarget=c[f],e=Ff(k,d,!1,a)&&e;return e};
g.h.W=function(){g.Ef.Z.W.call(this);this.Be&&g.mf(this.Be);this.Na=null};
g.h.U=function(a,b,c,d){return kf(this.Be,String(a),b,!1,c,d)};
g.h.Ca=function(a,b,c,d){return this.Be.remove(String(a),b,c,d)};Gf.prototype.get=function(){if(0<this.o){this.o--;var a=this.g;this.g=a.next;a.next=null}else a=this.A();return a};var Lf;var Sf=new Gf(function(){return new Of},function(a){a.reset()},100);
Nf.prototype.remove=function(){var a=null;this.g&&(a=this.g,this.g=this.g.next,this.g||(this.o=null),a.next=null);return a};
Of.prototype.set=function(a,b){this.g=a;this.scope=b;this.next=null};
Of.prototype.reset=function(){this.next=this.scope=this.g=null};var Pf,Qf=!1,Rf=new Nf;Zf.prototype.reset=function(){this.context=this.o=this.B=this.g=null;this.A=!1};
var $f=new Gf(function(){return new Zf},function(a){a.reset()},100);
g.Yf.prototype.then=function(a,b,c){return ig(this,g.wa(a)?a:null,g.wa(b)?b:null,c)};
Vf(g.Yf);g.Yf.prototype.cancel=function(a){0==this.g&&g.Tf(function(){var b=new og(a);kg(this,b)},this)};
g.Yf.prototype.I=function(a){this.g=0;Xf(this,2,a)};
g.Yf.prototype.J=function(a){this.g=0;Xf(this,3,a)};
g.Yf.prototype.G=function(){for(var a;a=lg(this);)mg(this,a,this.g,this.F);this.D=!1};
var qg=Kf;g.D(og,Fa);og.prototype.name="cancel";g.D(g.rg,g.Ef);g.h=g.rg.prototype;g.h.enabled=!1;g.h.Ge=null;g.h.eI=function(){if(this.enabled){var a=(0,g.G)()-this.B;0<a&&a<.8*this.o?this.Ge=this.g.setTimeout(this.A,this.o-a):(this.Ge&&(this.g.clearTimeout(this.Ge),this.Ge=null),this.dispatchEvent("tick"),this.enabled&&(this.Ge=this.g.setTimeout(this.A,this.o),this.B=(0,g.G)()))}};
g.h.start=function(){this.enabled=!0;this.Ge||(this.Ge=this.g.setTimeout(this.A,this.o),this.B=(0,g.G)())};
g.h.stop=function(){this.enabled=!1;this.Ge&&(this.g.clearTimeout(this.Ge),this.Ge=null)};
g.h.W=function(){g.rg.Z.W.call(this);this.stop();delete this.g};var wg=g.y,Bg={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},tba=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;var gra={};g.h=Cg.prototype;g.h.isEnabled=function(){return window.navigator.cookieEnabled};
g.h.set=function(a,b,c,d,e,f){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');g.t(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date((0,g.G)()+1E3*c)).toUTCString();this.g.cookie=a+"="+b+e+d+c+f};
g.h.get=function(a,b){for(var c=a+"=",d=(this.g.cookie||"").split(";"),e=0,f;e<d.length;e++){f=Ta(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
g.h.remove=function(a,b,c){var d=g.t(this.get(a));this.set(a,"",0,b,c);return d};
g.h.Db=function(){return Dg(this).keys};
g.h.sb=function(){return Dg(this).values};
g.h.isEmpty=function(){return!this.g.cookie};
g.h.Jc=function(){return this.g.cookie?(this.g.cookie||"").split(";").length:0};
g.h.clear=function(){for(var a=Dg(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var WH=new Cg("undefined"==typeof window.document?null:window.document);WH.o=3950;var uba=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Rg=/#|$/,vba=/[?&]($|#)/;Vg.prototype.remove=function(a){Yb(this.g,a)};
Vg.prototype.set=function(a,b){this.g[a]=b};
Vg.prototype.get=function(a){return Zb(this.g,a,null)};g.h=g.Yg.prototype;g.h.Gb=function(){return this.right-this.left};
g.h.getHeight=function(){return this.bottom-this.top};
g.h.clone=function(){return new g.Yg(this.top,this.right,this.bottom,this.left)};
g.h.contains=function(a){return this&&a?a instanceof g.Yg?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.h.expand=function(a,b,c,d){g.xa(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(b),this.bottom+=Number(c),this.left-=Number(d));return this};
g.h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.h.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
g.h.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.h.scale=function(a,b){var c=g.qa(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};g.h=g.$g.prototype;g.h.clone=function(){return new g.$g(this.left,this.top,this.width,this.height)};
g.h.contains=function(a){return a instanceof g.ad?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.h.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.h.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.h.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.h.scale=function(a,b){var c=g.qa(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};var jh=null;fh.prototype.getValue=function(){return this.g};
fh.prototype.o=function(){return String(this.g)};
g.D(gh,fh);gh.prototype.o=function(){return this.g?"1":"0"};
g.D(hh,fh);hh.prototype.o=function(){return this.g?Math.round(this.g.top)+"."+Math.round(this.g.left)+"."+(Math.round(this.g.top)+Math.round(this.g.height))+"."+(Math.round(this.g.left)+Math.round(this.g.width)):""};var oh={};new g.rg(200);var jra;g.hra=Oh("loadGamesSDK")?"/cast_game_sender.js":"/cast_sender.js";g.ira=Oh("loadCastFramework")||Oh("loadCastApplicationFramework");g.d2=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","enhhojjnijigcajfphajepfemndkmdlo","fmfcbgogabcbclcofgocippekhfcmgfj"];jra=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","fjhoaacokmgbjemoflkofnenfaiekifl"];g.kra=50<=g.Nh()?jra.concat(g.d2):g.d2.concat(jra);Qh("d");Rh("d");Sh("d");var e2=Qh("f");Rh("f");Sh("f");var Nv=Qh("i");Rh("i");Sh("i");Qh("j");Rh("j");Sh("j",void 0);Sh("j",void 0);Qh("u");Rh("u");Sh("u");Qh("v");Rh("v");Sh("v",void 0);Sh("v",void 0);var f2=Qh("b");Rh("b");Sh("b");var Fv=Qh("e");Rh("e");Sh("e");var Gv=Qh("s");Rh("s");Sh("s");Qh("B");Rh("B");Sh("B");Qh("x");Rh("x");Sh("x");Qh("y");Rh("y");Sh("y");Qh("g");Rh("g");Sh("g");Qh("h");Rh("h");Sh("h");Qh("n");Rh("n");Sh("n");Qh("o");Rh("o");Sh("o",void 0);Sh("o",void 0);var ii=window.document,ei=window;var bda=/https?:\/\/[^\/]+/;var Zh=function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
v.addEventListener("test",null,b)}catch(c){}return a}();var gi=!!window.google_async_iframe_id,hi=gi&&window.parent||window;var Dba=[0,2,1],ki=null;window.document.addEventListener&&window.document.addEventListener("mousedown",function(a){ki=a},!0);
window.mb=function(a){if(a){var b=li();b&&(window.css?(0,window.css)(a.id,"mb",b,void 0,void 0):a&&(a.href=Vh(a.href,"mb",b,void 0)))}};ni.prototype.enable=function(){this.g=!0};
ni.prototype.isEnabled=function(){return this.g};
ni.prototype.reset=function(){this.g=!0};var Sga={Y1:0,o_:1,j0:2,iY:3,q1:4,sY:5,AZ:6,k0:7,oW:8,vY:9,wW:10};g.h=Bi.prototype;g.h.Ej=function(){this.events!=this.g.google_js_reporting_queue&&(this.events.length=0,this.D&&(0,g.H)(this.events,this.ww,this));this.o=!1};
g.h.Do=function(a){this.o&&this.events.push(a)};
g.h.ww=function(a){if(a&&this.D){var b=this.g.performance;b.clearMarks("goog_"+a.uniqueId+"_start");b.clearMarks("goog_"+a.uniqueId+"_end")}};
g.h.start=function(a,b){if(!this.o)return null;var c=new Ai(a,b,Ci());this.D&&this.g.performance.mark("goog_"+c.uniqueId+"_start");return c};
g.h.end=function(a){this.o&&g.qa(a.value)&&(a.duration=Ci()-a.value,this.D&&this.g.performance.mark("goog_"+a.uniqueId+"_end"),this.Do(a))};Di.prototype.o=function(a,b,c,d,e){e=e||this.D;try{var f=new si;f.C=!0;wi(f,1,"context",a);b.error&&b.meta&&b.id||(b=Ei(b));b.msg&&wi(f,2,"msg",b.msg.substring(0,512));b.file&&wi(f,3,"file",b.file);0<b.line&&wi(f,4,"line",b.line);var k=b.meta||{};if(d)try{d(k)}catch(m){}b=[k];f.g.push(5);f.o[5]=b;var l=ri();l.o&&wi(f,6,"top",l.o.url||"");wi(f,7,"url",l.g.url||"");zi(this.B,e,f,c)}catch(m){try{zi(this.B,e,{context:"ecmserr",rctx:a,msg:Ji(m),url:l.g.url},c)}catch(n){}}return this.A};
g.p(Ii,oi);var Gi,g2=ji(),h2=new Bi(1,g2);Gi=new Di(new function(){var a=void 0===a?ei:a;this.B="http:"===a.location.protocol?"http:":"https:";this.o="pagead2.googlesyndication.com";this.A="/pagead/gen_204?id=";this.g=.01},"jserror",!0,h2);
"complete"==g2.document.readyState?g2.google_measure_js_timing||h2.Ej():h2.o&&$h(g2,"load",function(){g2.google_measure_js_timing||h2.Ej()});
var Hba=Gi.o;if(ii&&ii.URL){var Yh=ii.URL,lra=!(Yh&&0<Cba().length);Gi.A=lra};var Pi={},Qi=null;Pi.le=0;Pi.nt=2;Pi.Fr=3;Pi.Po=5;Pi.me=1;Pi.om=4;var i2=!1,j2="";
(function(){if(window.navigator.plugins&&window.navigator.plugins.length){var a=window.navigator.plugins["Shockwave Flash"];if(a&&(i2=!0,a.description)){j2=Si(a.description);return}if(window.navigator.plugins["Shockwave Flash 2.0"]){i2=!0;j2="2.0.0.11";return}}if(window.navigator.mimeTypes&&window.navigator.mimeTypes.length&&(a=window.navigator.mimeTypes["application/x-shockwave-flash"],i2=!(!a||!a.enabledPlugin))){j2=Si(a.enabledPlugin.description);return}try{var b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");i2=
!0;j2=Si(b.GetVariable("$version"));return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");i2=!0;j2="6.0.21";return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"),i2=!0,j2=Si(b.GetVariable("$version"))}catch(c){}})();
var no=i2,Xi=j2;var $i=function(){if(g.X1){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Ib))?a[1]:"0"}return Vi?(a=/10[_.][0-9_.]+/,(a=a.exec(g.Ib))?a[0].replace(/_/g,"."):"10"):g.wn?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Ib))?a[1]:""):pn||qn||Yqa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Ib))?a[1].replace(/_/g,"."):""):""}();var Iba=function(){if(g.KM)return Ti(/Firefox\/([0-9.]+)/);if(g.sd||JM||g.bf)return nc;if(g.tF)return jc()?Ti(/CriOS\/([0-9.]+)/):Ti(/Chrome\/([0-9.]+)/);if(g.Wi&&!jc())return Ti(/Version\/([0-9.]+)/);if(VN||UN){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Ib);if(a)return a[1]+"."+a[2]}else if(WN)return(a=Ti(/Android\s+([0-9.]+)/))?a:Ti(/Version\/([0-9.]+)/);return""}();var qk=0,Jba=(new Date).getTime(),bj=-1,dj=!1,ej=-1,fj=-1;var jl={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},fl={xv:"start",Su:"firstquartile",Yu:"midpoint",Dv:"thirdquartile",Lu:"complete",FF:"metric",PAUSE:"pause",dG:"resume",ov:"skip",Kv:"viewable_impression",JF:"mute",DG:"unmute",Tu:"fullscreen",XE:"exitfullscreen",Uu:"fully_viewable_audible_half_duration_impression",Xu:"measurable_impression",eE:"abandon",Pu:"engagedview",hm:"impression",NE:"creativeview",Gp:"loaded",U_:"progress",CLOSE:"close",TW:"collapse",RF:"overlay_resize",
SF:"overlay_unmeasurable_impression",TF:"overlay_unviewable_impression",VF:"overlay_viewable_immediate_impression",UF:"overlay_viewable_end_of_session_impression"},nda="start firstquartile midpoint thirdquartile resume loaded".split(" "),uca=["abandon"],gl={UNKNOWN:-1,xv:0,Su:1,Yu:2,Dv:3,Lu:4,FF:5,PAUSE:6,dG:7,ov:8,Kv:9,JF:10,DG:11,Tu:12,XE:13,Uu:14,Xu:15,eE:16,Pu:17,hm:18,NE:19,Gp:20};nj.prototype.isVisible=function(){return this.Ke?.3<=this.g:.5<=this.g};g.p(oj,nj);qj.prototype.Da=function(a){var b=this.o[a],c=b[1];this.A+=b[0];0<c&&0==this.g[a]&&(this.g[a]=1)};g.sa(vj);wj.prototype.getValue=function(){return this.o};
wj.prototype.update=function(a,b){a>=this.A||(this.g&1<<a&&!b?this.o&=~(1<<a):this.g&1<<a||!b||(this.o|=1<<a),this.g|=1<<a)};xj.prototype.update=function(a,b,c,d,e,f){e=zj(c.g);var k=zj(b.g);k=-1==e||-1==k?-1:Math.max(e,k);e=d?k:e;this.C=-1!=this.C?Math.min(this.C,b.g):b.g;f&&(this.Va=Math.max(this.Va,b.g));-1!=e&&(this.bb[e]+=a);yj(this.fa,e,a);f=this.A;k=this.fa;for(var l=[0,0,0,0,0],m=0;4>=m;m++)l[m]=Math.max(f[m],k[m]);this.A=l;f=this.fa;k=zj(b.g);for(l=0;4>=l;++l)if(l<k||b.B||-1==k)f[l]=0;if(d||c.Ke!=b.Ke?c.isVisible()&&b.isVisible():c.isVisible())this.L+=a,this.ka=Math.max(this.ka,this.L);b.isVisible()||(this.L=0);
return e};
xj.prototype.Dg=function(){return this.ka>=this.Ka};g.p(Aj,xj);
Aj.prototype.update=function(a,b,c,d,e,f){if(b.paused)return-1;d=xj.prototype.update.call(this,a,b,c,d,e,f);e=zj(e);e=-1!=d&&d<=e;f=pj(b)&&pj(c);lj(b.volume)&&(this.g=-1!=this.g?Math.min(this.g,b.volume):b.volume,this.B=Math.max(this.B,b.volume));e&&(this.aa+=a,this.ba+=a);this.o+=a;this.Y+=a;c.fullscreen&&(this.ha+=a,this.O+=a);0==d&&(this.V+=a);f&&(this.da+=a,this.G+=a,yj(this.ea,d,a),0==d&&(this.F+=a),e?(this.I+=a,this.J+=a):this.N+=a,this.pa=Math.max(this.N,this.pa));if(e||!pj(b))this.N=0;a=Math.floor(b.A/
1E3);this.ra.update(a,b.isVisible());this.Fa.update(a,1<=b.g);this.Aa.update(a,pj(b));return d};Cj.prototype.getStatus=function(){return this.o};
g.D(Fj,Cj);Fj.prototype.Ml=function(a,b){if(!(a&&a.getBoundingClientRect&&0<=g.Va(Xi,"11")&&b)||g.sd&&9>nc||0<this.g.length)return!1;try{var c=a.getBoundingClientRect()}catch(m){return!1}var d="DIV"==a.tagName||"INS"==a.tagName,e=g.gd(a),f=[];if(d){var k=hj();c=Dj(this,c);(0,g.H)(c,function(a,c){var d=new Pj("e",e,b,String(c));this.g.push(d);f.push((0,g.A)(d.G,d,k,a))},this);
Fd(a,k,0)}else c=Ej(this,c),(0,g.H)(c,function(c,d){var k=new Pj("e",e,b,String(d));this.g.push(k);f.push((0,g.A)(k.F,k,a,c))},this);
var l=!0;(0,g.H)(f,function(a){l=l&&a()});
l?(this.o="l",this.A=a,this.G=!d):((0,g.H)(this.g,function(a){a.remove()}),this.g=[]);
return l};
var Kj={X1:-1,LOADING:0,fF:1,JE:2,eZ:3,VISIBLE:4},Wba={LOADING:0,fF:1,JE:2,v1:3,t_:4,I1:5,J1:6,H1:7,w_:8,u1:9},Nj={};Pj.prototype.G=function(a,b){if(!this.g)return!1;this.g.style.position="absolute";Hj(this,b);var c=!0;try{a.appendChild(this.g)}catch(d){c=!1}return c};
Pj.prototype.F=function(a,b){if(!this.g||!a.parentNode)return!1;this.g.style.position="fixed";Hj(this,b);var c=!0;try{g.Ed(this.g,a)}catch(d){c=!1}return c};
Pj.prototype.remove=function(){if(this.g)try{g.Gd(this.g)}catch(a){}this.g=null};
Pj.prototype.I=function(a){this.A=a?3:4};
g.ra("gteh",Li(145,function(a,b){var c=Nj[a];g.wa(c)&&c(b)}),void 0);
g.D(Qj,Cj);var bca=[3,7,8,5,5],cca=[3,4,4,5,6],dca=[3,4,5,6],eca=[3,5];Rj.prototype.B=function(a){this.g&&this.g.contentWindow&&(this.g.contentWindow.requestAnimationFrame(Hi(245,this.B,this,void 0)),this.o||(this.o=(0,g.G)()-a),this.A=a)};
Rj.prototype.isVisible=function(a){return 50>a-this.o-this.A};
Rj.prototype.remove=function(){try{g.Gd(this.g)}catch(a){}this.g=null};g.sa(Vj);g.sa(Wj);var Xj=new g.Yg(0,0,0,0),oca={threshold:[0,.3,.5,.75,1]};g.h=Yj.prototype;g.h.yn=function(){return new xj};
g.h.de=function(){return this.hs};
g.h.Vy=function(){};
g.h.Uy=function(){};
g.h.Nx=function(){};
g.h.gp=function(){};
g.h.og=function(a,b,c,d,e,f,k){k=void 0===k?{}:k;var l=this.Ex(c,k);k=this.kq(a,b,d,k);g.qa(b)||(this.mp=new g.dd(b.right-b.left,b.bottom-b.top));e=e&&this.qc.g>=(this.Ke()?.3:.5);this.Zt(l,k,e,f);this.oh=c;0<k.g&&-1===this.MC&&(this.MC=c);-1==this.OC&&this.Dg()&&(this.OC=c);if(-2==this.ds)try{a:{var m=g.qa(b)?null:b;if(a&&a!=Xj&&0!=this.Qc){if(!m){if(!this.mp){var n=-1;break a}m=new g.Yg(0,this.mp.width,this.mp.height,0)}n=m.Gb&&0<m.Gb()&&m.getHeight&&0<m.getHeight()?this.tk(a,m):-1}else n=-1}this.ds=
n}catch(q){Mi(207,q)}this.qc=k;d&&(this.qc.g=0);this.ks(this)};
g.h.Zt=function(a,b,c,d){this.de().update(a,b,this.qc,c,this.Ke()?.3:.5,d)};
g.h.Rq=function(){return new nj};
g.h.kq=function(a,b,c){var d=this.Rq();d.B=c;c=Oi();d.o=0==c?-1:1==c?0:1;if(g.qa(b))d.g=this.tk(b);else{var e=b;d.g=this.tk(a,e)}(a=e||null)?(a=(a.bottom-a.top)*(a.right-a.left),a=0<a?Math.min(this.Qc*d.g/a,1):0):a=0;d.C=a;d.Ke=this.Ke();return d};
g.h.Ex=function(a){if(-1==this.oh)return 0;a=a-this.oh||1;return 1E4<a?1:a};
g.h.tk=function(a,b){if(g.qa(a))return a;if(b){var c=Zj(a,b);return 0>=this.Qc||0>=c.Gb()||0>=c.getHeight()?0:(c.bottom-c.top)*(c.right-c.left)/this.Qc}return 0};
g.h.Ke=function(){return!1};
g.h.Ml=function(a){a=void 0===a?1:a;if(this.Vc)return!0;if(this.pn)return!1;var b=this.Ke();this.xl=b?4:a;if(!this.Kf||!Yi())return this.pn=!0,!1;a=new Fj(b,this.xl);(b=a.Ml(this.Kf,String(this.XG)))?this.Vc=a:this.pn=!0;return b};
g.h.af=function(){return 0};
g.h.Dg=function(){return this.hs.Dg()};
g.h.Kt=function(a){a=void 0===a?1:a;if(!this.Kf)return!1;var b=this.Ke();b&&(a=4);b=new Qj(b,a);var c=Zba(b,this.Kf);c&&(this.xl=a,this.Ii=b);return c};var mra=new g.Yg(0,0,0,0);g.p(gk,Yj);g.h=gk.prototype;g.h.Kt=function(a){a=void 0===a?3:a;Wj.getInstance();var b=vj.getInstance(),c=g.jb(b.g,509445013);b=g.jb(b.g,509445011);return c||b?(this.ob=!0,Yj.prototype.Kt.call(this,a)):!1};
g.h.Ml=function(a){return Yj.prototype.Ml.call(this,void 0===a?3:a)};
g.h.Vy=function(a){var b=this,c=a-this.Ya;this.bb&&1E3>=c||(c=g.x("ima.bridge.getNativeViewability"),g.wa(c)&&(c(this.Mc,function(a){b.bb=!1;b.N&&(b.Fa=!0);g.Wb(a)&&b.Aa++;b.gp(a)}),this.bb=!0,this.Ya=a))};
g.h.Uy=function(a){var b=Wj.getInstance();a-this.Ta>gj(b.I)&&(a=g.x("ima.admob.getViewability"),g.wa(a)&&a(this.Mc))};
g.h.Nx=function(a){this.Ta=cj();this.gp(a)};
g.h.gp=function(a){var b=a.opt_nativeViewBounds||{},c=a.opt_nativeViewVisibleBounds||{},d=a.opt_nativeTime||-1,e=a.opt_nativeVolume,f=a.opt_nativeViewAttached;a=a.opt_nativeViewHidden;void 0!==f&&(this.ka=!!f);b=new g.Yg(b.top||0,b.left+b.width||0,b.top+b.height||0,b.left||0);c=a?mra.clone():new g.Yg(c.top||0,c.left+c.width||0,c.top+c.height||0,c.left||0);f=void 0;"n"==this.zf&&(f={volume:e});e=f;e=void 0===e?{}:e;this.Qc=(b.bottom-b.top)*(b.right-b.left);this.position=b;this.og(b,c,d,!1,!0,!0,e)};
g.h.og=function(a,b,c,d,e,f,k){k=void 0===k?{}:k;var l=this.ra(this)||{};g.dc(l,k);this.C=l.duration||this.C;this.pa=l.isVpaid||this.pa;this.ea=f;Yj.prototype.og.call(this,a,b,c,d,e,f,l)};
g.h.Zt=function(a,b,c,d){Yj.prototype.Zt.call(this,a,b,c,d);this.J[this.J.length-1].update(a,b,this.qc,c,this.Ke()?.3:.5,d);this.Va=pj(this.qc)&&pj(b);-1==this.ba&&this.Ka&&(this.ba=this.de().o);this.o.A=0;a=this.qc;b=this.Dg();.5<=a.g&&this.o.Da("vs");b&&this.o.Da("vw");lj(a.volume)&&this.o.Da("am");this.Va&&this.o.Da("a");this.kf&&this.o.Da("f");-1!=a.o&&(this.o.Da("bm"),1==a.o&&this.o.Da("b"));this.Va&&b&&this.o.Da("avw");this.ea&&this.o.Da("cm");this.ea&&0<a.g&&this.o.Da("pv");jk(this,this.de().o,
!0)&&this.o.Da("gdr");2E3<=this.de().A[0]&&this.o.Da("pmx")};
g.h.yn=function(){return new Aj};
g.h.de=function(){return this.hs};
g.h.Rq=function(){return new oj};
g.h.kq=function(a,b,c,d){a=Yj.prototype.kq.call(this,a,b,c,d);a.fullscreen=this.kf;a.paused=this.D;a.volume=d.volume;lj(a.volume)||(this.ub++,b=this.qc,lj(b.volume)&&(a.volume=b.volume));d=d.currentTime;a.A=g.t(d)&&0<=d?d:-1;return a};
g.h.Ex=function(a,b){var c=g.t(b.currentTime)?b.currentTime:this.V,d=ik(this,a),e=c-this.V,f=b.isYouTube,k=g.t(b.isPlaying)?b.isPlaying:!0,l=0;2!=this.Y?(0<=e?(this.O+=d,this.G+=Math.max(d-e,0),l=Math.min(e,this.O)):this.sa+=Math.abs(e),0!=e&&(this.O=0),-1==this.I&&0<e&&(this.I=0<=fj?cj()-fj:-1)):(k||this.D||(this.G+=d),-1==this.I&&k&&(this.I=0<=fj?cj()-fj:-1));this.V=c;if(f){if(1==this.Y)return l;if(2==this.Y)return k?d:0}return ik(this,a)};
g.h.tk=function(a,b){return this.N?0:this.kf?1:Yj.prototype.tk.call(this,a,b)};
g.h.af=function(){return 1};rk.prototype.ed=function(){return!!this.o||!!this.g};
rk.prototype.match=function(a){return this.ed()&&a.ed()?this.g||a.g?this.g==a.g:this.o||a.o?this.o==a.o:!1:!1};
rk.prototype.toString=function(){var a=""+this.o;this.g&&(a+="-"+this.g);return a};var ix=null,k2={},Rga=(k2[8]="google_prev_ad_formats_by_region",k2[9]="google_prev_ad_slotnames_by_region",k2);g.nra=!g.sd&&!hc();g.D(g.vk,g.L);g.h=g.vk.prototype;g.h.Uj=!1;g.h.Gl=0;g.h.gi=null;g.h.ij=function(a){this.g=arguments;this.gi||this.Gl?this.Uj=!0:wk(this)};
g.h.stop=function(){this.gi&&(g.ug(this.gi),this.gi=null,this.Uj=!1,this.g=[])};
g.h.pause=function(){this.Gl++};
g.h.resume=function(){this.Gl--;this.Gl||!this.Uj||this.gi||(this.Uj=!1,wk(this))};
g.h.W=function(){g.vk.Z.W.call(this);this.stop()};
g.h.GR=function(){this.gi=null;this.Uj&&!this.Gl&&(this.Uj=!1,wk(this))};g.h=Ak.prototype;g.h.Wy=function(){Dk(this,!1);this.gr()};
g.h.gr=function(){Gk(this,Hk(this),!1)};
g.h.Ux=function(){var a=ok(this),b=cj();a?(dj||(ej=b,(0,g.H)(this.g,function(a){var c=a.de();c.sa=Bj(c,b,!!a.D)})),dj=!0,Dk(this,!0)):(this.O=Mk(this,b),dj=!1,qk=b,(0,g.H)(this.g,function(a){a.Xh&&(a.de().D=b)}));
Gk(this,Hk(this),!a)};
g.h.reset=function(){this.g=[];this.A=[]};
g.h.getId=function(){return this.ya};
g.sa(Ak);var pk=Ak.getInstance();var $k=null,Xk="",Gl=!1;var Zk={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",tos:"tos",mtos:"mtos",mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",pt:"pt",vht:"vht",mut:"mut",a:"a",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",mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:"qmtos",qnc:"qnc",qmv:"qmv",qnv:"qnv",raf:"raf",rafc:"rafc",lte:"lte",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",pnc:"pnc",pns:"pns",pnmm:"pnmm",pnk:"pnk",ptlt:"ptlt"},ida={c:Ok("c"),at:"at",atos:Rk("atos",[0,2,4]),ta:function(a,b){return function(c){if(!g.t(c[a]))return b}}("tth","1"),
a:"a",dur:"dur",p:"p",tos:Qk(),j:"dom",mtos:Rk("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:Ok("ss"),vsv:If("w2"),t:"t"},lda={atos:"atos",avt:Rk("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:Ok("ss"),t:"t"},jda={a:"a",tos:Qk(),at:"at",c:Ok("c"),mtos:Rk("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:If("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},kda={tos:Qk(),at:"at",c:Ok("c"),mtos:Rk("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:If("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",qmpt:Rk("qmtos",
[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if(g.qa(d))return(0,g.J)(b,function(a){return 0<d&&d>=a?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};g.sa(Sk);g.h=Vk.prototype;g.h.An=function(){};
g.h.Vx=function(a){if(a){a.nh=!0;switch(a.af()){case 1:al(a,"fp");break;case 2:this.VB(a)}this.Et(a)}};
g.h.bJ=function(a){lk(a,0);return nk(a,"start")};
g.h.YI=function(a,b){Gk(pk,[a],!ok(pk),b);return nk(a,"progress")};
g.h.NI=function(a,b){return bl(a,"firstquartile",1,b)};
g.h.TI=function(a,b){a.Ka=!0;return bl(a,"midpoint",2,b)};
g.h.cJ=function(a,b){return bl(a,"thirdquartile",3,b)};
g.h.JI=function(a,b){var c=bl(a,"complete",4,b);a.kf=!1;dl(1,a.Mc);return c};
g.h.XI=function(a,b){return cl(a,"pause",b)};
g.h.II=function(a,b){return cl(a,"abandon",b)};
g.h.ZI=function(a,b){var c=ok(pk);a.D&&!c&&(a.de().D=cj());Gk(pk,[a],!c,b);a.D=!1;return nk(a,"resume")};
g.h.eJ=function(a){return nk(a,"viewable_impression")};
g.h.aJ=function(a,b){var c=!ok(pk);Gk(pk,[a],c,b);c=nk(a,"skip");a.kf=!1;dl(1,a.Mc);return c};
g.h.VI=function(a,b){Gk(pk,[a],!ok(pk),b);return nk(a,"mute")};
g.h.dJ=function(a,b){Gk(pk,[a],!ok(pk),b);return nk(a,"unmute")};
g.h.OI=function(a,b){a.kf=!0;Gk(pk,[a],!ok(pk),b);return nk(a,"fullscreen")};
g.h.MI=function(a,b){a.kf=!1;Gk(pk,[a],!ok(pk),b);return nk(a,"exitfullscreen")};
g.h.QI=function(a){return nk(a,"fully_viewable_audible_half_duration_impression")};
g.h.SI=function(a){return nk(a,"measurable_impression")};
g.h.LI=function(a){return nk(a,"engagedview")};
g.h.RI=function(a){return nk(a,"impression")};
g.h.KI=function(a){return nk(a,"creativeview")};
g.h.WI=function(a,b){Gk(pk,[a],!ok(pk),b);return a.o()};
g.h.nr=function(a,b){Gk(pk,[a],!ok(pk),b);this.UB(a);dl(2,a.Mc);return a.o()};
g.h.Hn=function(a){a.Dg()&&!a.dD&&this.WB(a);1==a.af()&&this.pw(a)};
g.h.Rx=function(){};
g.h.VB=function(){};
g.h.WB=function(){};
g.h.pw=function(){};
g.h.UB=function(){};
g.h.fz=function(){};
g.h.Et=function(){};var ml=(new Date).getTime(),ol=!1,pl=!1,ql=!1,Yca=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return nl(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 nl(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 nl(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 nl(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 nl(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return pl},
function(){return ql},
function(){return nl(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{(0,window.DummyFunction1)()}catch(b){a=!0}return a},
function(){var a=!1;try{(0,window.DummyFunction2)()}catch(b){a=!0}return a},
function(){return!1},
function(){return nl(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]||ll(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 ll(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 nl(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 ll(a.CSS.supports)},
function(){return ll(window.Intl.Collator)},
function(a){return ll(a.document.createElement("dialog").show)},
function(){return nl(8)},
function(a){return ll(a.document.createElement("div").animate([{transform:"scale(1)",IH:"ease-in"},{transform:"scale(1.3)",IH:"ease-in"}],{duration:1300,Y2:1}).reverse)},
function(a){return ll(a.document.createElement("div").animate)},
function(a){return ll(a.document.documentElement.webkitRequestFullScreen)},
function(a){return ll(a.navigator.getBattery)},
function(a){return ll(a.navigator.permissions.query)},
function(){return!1},
function(){return nl(9)},
function(){return ll(window.webkitRequestAnimationFrame)},
function(a){return ll(a.BroadcastChannel.call)},
function(a){return ll(a.FontFace)},
function(a){return ll(a.Gamepad)},
function(){return nl(10)},
function(a){return ll(a.MutationEvent)},
function(a){return ll(a.MutationObserver)},
function(a){return ll(a.crypto.getRandomValues)},
function(a){return ll(a.document.body.createShadowRoot)},
function(a){return ll(a.document.body.webkitCreateShadowRoot)},
function(a){return ll(a.fetch)},
function(){return nl(11)},
function(a){return ll(a.navigator.serviceWorker.register)},
function(a){return ll(a.navigator.webkitGetGamepads)},
function(a){return ll(a.speechSynthesis.speak)},
function(a){return ll(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return nl(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 nl(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 window.InstallTrigger},
function(){return"object"==typeof(new window.Intl.Collator).resolvedOptions()},
function(a){return"boolean"==typeof a.navigator.onLine},
function(){return nl(14)},
function(a){return"undefined"==typeof a.navigator.e3},
function(a){return"number"==typeof a.performance.now()},
function(){return 0==(new window.Uint16Array(1))[0]},
function(a){return-1==a.ActiveXObject.toString().indexOf("native")},
function(a){return-1==Object.prototype.toString.call(a.HTMLElement).indexOf("Constructor")}],Zca=[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}],$ca=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.D(rl,qba);rl.prototype.reset=function(){this.g[0]=1732584193;this.g[1]=4023233417;this.g[2]=2562383102;this.g[3]=271733878;this.B=this.A=0};
rl.prototype.update=function(a,b){g.t(b)||(b=a.length);for(var c=b-this.o,d=this.C,e=this.A,f=0;f<b;){if(0==e)for(;f<=c;)sl(this,a,f),f+=this.o;if(g.u(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.o){sl(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.o){sl(this,d);e=0;break}}this.A=e;this.B+=b};
rl.prototype.digest=function(){var a=Array((56>this.A?this.o:2*this.o)-this.A);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.B;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.g[b]>>>d&255;return a};g.p(wl,Vk);g.h=wl.prototype;g.h.An=function(a,b){var c=this;switch(Wj.getInstance().Fb){case "nis":var d=dda(this,a,b);break;case "gsv":d=cda(this,a,b);break;case "exc":d=eda(this,a);break;default:b.opt_adElement?d=Uca(this,a,b.opt_adElement,b.opt_osdId):(d=gda(this,a,b.opt_sdkID||""))||(d=Jk(a)||void 0)}d&&d.ra==g.y&&(d.ra=function(a){return c.fz(a)});
return d};
g.h.fz=function(a){var b=Wj.getInstance();a.g=0;a.aa=0;if("as"==a.zf)if(b="getVideoMetadata"+a.Oj,g.wa(a.element[b]))try{var c=a.element[b]()}catch(k){a.g|=4}else a.g|=2;else if("h"==a.zf||"n"==a.zf){var d=vj.getInstance();if("exc"==b.Fb||"nis"==b.Fb)var e=g.x("ima.bridge.getVideoMetadata");else if(a.Fi&&g.jb(d.g,495644004)){var f=this.D[a.Fi];f?e=function(a){f.g(a)}:Mi("lidar::missingPlayerCallback",Error())}else e=g.x("ima.common.getVideoMetadata");
if(g.wa(e))try{c=e(a.Mc)}catch(k){a.g|=4}else a.g|=2}else if("b"==a.zf)if(b=g.x("ytads.bulleit.getVideoMetadata"),g.wa(b))try{c=b(a.Mc)}catch(k){a.g|=4}else a.g|=2;else a.g|=1;a.g||(g.t(c)?null===c?a.g|=16:g.Wb(c)?a.g|=32:null!=c.errorCode&&(a.aa=c.errorCode,a.g|=64):a.g|=8);null!=c||(c={});Wca(c,a);lj(c.volume)&&lj(this.A)&&(c.volume*=this.A);return c};
g.h.WB=function(a){if(1==a.af())var b="viewable_impression";else if(2==a.af())b="overlay_viewable_immediate_impression";else return;zl(this,a,b)&&(a.dD=!0)};
g.h.pw=function(a){jk(a,a.de().ea[0])&&!a.Ra&&zl(this,a,"fully_viewable_audible_half_duration_impression")&&(a.Ra=!0)};
g.h.Rx=function(a){a.cD||a.nh||this.o||!zl(this,a,"measurable_impression")||(a.cD=!0)};
g.h.VB=function(a){!a.g&&a.nh&&zl(this,a,"overlay_unmeasurable_impression")&&(a.g=!0)};
g.h.UB=function(a){a.Nl&&(a.Dg()?zl(this,a,"overlay_viewable_end_of_session_impression"):zl(this,a,"overlay_unviewable_impression"),a.Nl=!1)};
g.h.Hn=function(a){this.g&&(this.B=this.G.g);this.o?El(this,a):Vk.prototype.Hn.call(this,a)};
g.h.Et=function(a){this.o&&1==a.af()&&El(this,a)};
g.sa(wl);g.ra("Goog_AdSense_Lidar_sendVastEvent",Li(193,Hl,void 0,function(){return{v:"603","if":Wj.getInstance().o?"1":"0",nas:String(pk.g.length)}}),void 0);
g.ra("Goog_AdSense_Lidar_getViewability",Hi(194,function(a,b){var c=wl.getInstance();var d={};g.dc(d,{opt_adElement:void 0,opt_fullscreen:void 0},b||{});if(d.opt_bounds)c=Dl(c,il("ol"),!1);else{if(Gl)d=il("ue");else if(d=c.An(a,d)){var e=il();g.dc(e,mk(d,!0,!1));d=e}else d=il("nf");g.dc(d,Fl(c));c=Dl(c,d,!0)}return c},void 0,void 0),void 0);
g.ra("Goog_AdSense_Lidar_getUrlSignalsArray",Li(195,function(){return vl()}),void 0);
g.ra("Goog_AdSense_Lidar_getUrlSignalsList",Li(196,function(){return g.zg(vl())}),void 0);var jB=(new Date).getTime();var Ml="StopIteration"in v?v.StopIteration:{message:"StopIteration",stack:""};Ll.prototype.next=function(){throw Ml;};
Ll.prototype.Yd=function(){return this};g.h=Pl.prototype;g.h.Jc=function(){return this.Ma};
g.h.sb=function(){Sl(this);for(var a=[],b=0;b<this.g.length;b++)a.push(this.o[this.g[b]]);return a};
g.h.Db=function(){Sl(this);return this.g.concat()};
g.h.isEmpty=function(){return 0==this.Ma};
g.h.clear=function(){this.o={};this.Ih=this.Ma=this.g.length=0};
g.h.remove=function(a){return Ql(this.o,a)?(delete this.o[a],this.Ma--,this.Ih++,this.g.length>2*this.Ma&&Sl(this),!0):!1};
g.h.get=function(a,b){return Ql(this.o,a)?this.o[a]:b};
g.h.set=function(a,b){Ql(this.o,a)||(this.Ma++,this.g.push(a),this.Ih++);this.o[a]=b};
g.h.forEach=function(a,b){for(var c=this.Db(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.h.clone=function(){return new Pl(this)};
g.h.Yd=function(a){Sl(this);var b=0,c=this.Ih,d=this,e=new Ll;e.next=function(){if(c!=d.Ih)throw Error("The map has changed since the iterator was created");if(b>=d.g.length)throw Ml;var e=d.g[b++];return a?e:d.o[e]};
return e};g.h=g.Vl.prototype;g.h.toString=function(){var a=[],b=this.B;b&&a.push(cm(b,ora,!0),":");var c=this.o;if(c||"file"==b)a.push("//"),(b=this.G)&&a.push(cm(b,ora,!0),"@"),a.push(g.Ja(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.C,null!=c&&a.push(":",String(c));if(c=this.A)this.o&&"/"!=c.charAt(0)&&a.push("/"),a.push(cm(c,"/"==c.charAt(0)?pra:qra,!0));(c=this.g.toString())&&a.push("?",c);(c=this.ci())&&a.push("#",cm(c,rra));return a.join("")};
g.h.resolve=function(a){var b=this.clone(),c=!!a.B;c?Wl(b,a.B):c=!!a.G;c?b.G=a.G:c=!!a.o;c?g.Xl(b,a.o):c=null!=a.C;var d=a.A;if(c)g.Yl(b,a.C);else if(c=!!a.A){if("/"!=d.charAt(0))if(this.o&&!this.A)d="/"+d;else{var e=b.A.lastIndexOf("/");-1!=e&&(d=b.A.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(Na(e,"./")||Na(e,"/.")){d=g.Ha(e,"/");e=e.split("/");for(var f=[],k=0;k<e.length;){var l=e[k++];"."==l?d&&k==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&k==e.length&&
f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?g.Zl(b,d):c=""!==a.g.toString();c?$l(b,a.g.clone()):c=!!a.I;c&&(b.I=a.ci());return b};
g.h.clone=function(){return new g.Vl(this)};
g.h.Bx=function(){return this.g.toString()};
g.h.ci=function(){return this.I};
var ora=/[#\/\?@]/g,qra=/[\#\?:]/g,pra=/[\#\?]/g,tda=/[\#\?@]/g,rra=/#/g;g.h=g.bm.prototype;g.h.Jc=function(){jm(this);return this.Ma};
g.h.remove=function(a){jm(this);a=lm(this,a);return Rl(this.g,a)?(this.o=null,this.Ma=this.Ma-this.g.get(a).length,this.g.remove(a)):!1};
g.h.clear=function(){this.g=this.o=null;this.Ma=0};
g.h.isEmpty=function(){jm(this);return 0==this.Ma};
g.h.forEach=function(a,b){jm(this);this.g.forEach(function(c,d){(0,g.H)(c,function(c){a.call(b,c,d,this)},this)},this)};
g.h.Db=function(){jm(this);for(var a=this.g.sb(),b=this.g.Db(),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.h.sb=function(a){jm(this);var b=[];if(g.u(a))mm(this,a)&&(b=g.rb(b,this.g.get(lm(this,a))));else{a=this.g.sb();for(var c=0;c<a.length;c++)b=g.rb(b,a[c])}return b};
g.h.set=function(a,b){jm(this);this.o=null;a=lm(this,a);mm(this,a)&&(this.Ma=this.Ma-this.g.get(a).length);this.g.set(a,[b]);this.Ma=this.Ma+1;return this};
g.h.get=function(a,b){var c=a?this.sb(a):[];return 0<c.length?String(c[0]):b};
g.h.toString=function(){if(this.o)return this.o;if(!this.g)return"";for(var a=[],b=this.g.Db(),c=0;c<b.length;c++){var d=b[c],e=g.Ja(d);d=this.sb(d);for(var f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+g.Ja(d[f]));a.push(k)}}return this.o=a.join("&")};
g.h.clone=function(){var a=new g.bm;a.o=this.o;this.g&&(a.g=this.g.clone(),a.Ma=this.Ma);return a};var dn={qF:5E3,rF:15E3,hv:"://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/sul www.google.com/pagead/xsul www.youtube.com/pagead/sul www.youtube.com/pagead/psul www.youtube.com/pagead/slav".split(" "),bG:/\bocr\b/,uq:0,Fg:{},hT:function(a,b,c){a&&(dn.lK(a)?dn.qC(a,b):dn.mC(a,b,c))},
lK:function(a){if(E(g.F(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Vl(a)}catch(c){return null!=g.eb(dn.hv,function(b){return 0<a.search(b)})}return b.ci().match(dn.bG)?!0:null!=g.eb(dn.hv,function(b){return null!=a.match(b)})},
qC:function(a,b){if(a&&(a=dn.YH(a),!E(a))){var c='javascript:"<body><img src=\\""+'+a+'+"\\"></body>"';b?dn.Iy(function(b){dn.kC(b?c:'javascript:"<body><object data=\\""+'+a+'+"\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):dn.kC(c)}},
kC:function(a){var b=g.xd("IFRAME",{src:a,style:"display:none"});a=g.gd(b).body;var c=g.tg(function(){g.zf(d);g.Gd(b)},dn.rF);
var d=pf(b,["load","error"],function(){g.tg(function(){g.ug(c);g.Gd(b)},dn.qF)});
a.appendChild(b)},
Iy:function(a,b){var c=dn.Fg.imageLoadingEnabled;if(null!=c)a(c);else{var d=!1;c=function(b,c){delete dn.Fg[c];d||(d=!0,null!=dn.Fg.imageLoadingEnabled||(dn.Fg.imageLoadingEnabled=b),a(b))};
b?b(c):dn.xK(c)}},
xK:function(a){var b=new window.Image,c=""+dn.uq++;dn.Fg[c]=b;b.onload=function(){(0,window.clearTimeout)(d);a(!0,c)};
var d=(0,window.setTimeout)(function(){a(!1,c)},300);
b.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},
gT:function(a){if(a){var b=g.zd("OBJECT");b.data=a;b.width="1";b.height="1";b.style.visibility="hidden";var c=""+dn.uq++;dn.Fg[c]=b;b.onload=b.onerror=function(){delete dn.Fg[c]};
window.document.body.appendChild(b)}},
lC:function(a){if(a){var b=new window.Image,c=""+dn.uq++;dn.Fg[c]=b;b.onload=b.onerror=function(){delete dn.Fg[c]};
b.src=a}},
mC:function(a,b,c){if(a){if(c)try{if(v.navigator&&v.navigator.sendBeacon&&v.navigator.sendBeacon(a,""))return}catch(d){}b?dn.Iy(function(b){b?dn.lC(a):dn.gT(a)}):dn.lC(a)}},
YH:function(a){a=Cc(Fc(a));if("about:invalid#zClosurez"===a)return"";a=g.Nc(Pc(a));return g.Ja(g.zg(a))}};g.D(g.nm,g.L);var qm=[];g.nm.prototype.U=function(a,b,c,d){return om(this,a,b,c,d)};
g.nm.prototype.Ca=function(a,b,c,d,e){if(g.ua(b))for(var f=0;f<b.length;f++)this.Ca(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.xa(d)?!!d.capture:!!d,e=e||this.B||this,c=rf(c),d=!!d,b=g.ff(a)?nf(a.Be,String(b),c,d,e):a?(a=g.tf(a))?nf(a,b,c,d,e):null:null,b&&(g.zf(b),delete this.o[b.key]);return this};
g.nm.prototype.W=function(){g.nm.Z.W.call(this);um(this)};
g.nm.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};g.D(vm,g.L);vm.prototype.F=function(){this.B=(0,g.G)()};
vm.prototype.I=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.o&1&&c.push("nm="+this.C);this.o&2&&c.push("nb="+this.D.get(b));if(this.o&8){var d=g.yh(this.A);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.o&16&&null!=this.B&&c.push("clkt="+((0,g.G)()-this.B));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};
vm.prototype.G=function(){this.C++};
vm.prototype.W=function(){vm.Z.W.call(this);this.g.dispose()};var xda=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var ym="ad_type vpos mridx pos vad_type videoad_start_delay".split(" ");Am.prototype.isBumper=function(){return this.o};g.h=Bm.prototype;g.h.Mq=function(){return this.g.Mq()};
g.h.Nk=function(){return this.g.Nk()};
g.h.Mf=function(){return this.g.Mf()};
g.h.Uk=function(a){return this.gg?this.g.In():this.g.Uk(a)};
g.h.setSize=function(a,b){this.g.setSize(a,b)};
g.h.zq=function(){return this.g.zq()};
g.h.nj=function(){return this.g.nj()};
g.h.sr=function(){return this.g.sr()};
g.h.Kn=function(){return this.g.Kn()};
g.h.hide=g.y;g.h.Sf=g.y;g.h.sd=g.y;g.h.In=function(){return this.g.In()};
g.h.Jn=g.y;g.D(Cm,g.$e);Cm.prototype.getError=function(){return this.A};var Fy="adMetadata callFlashVpaidMethod adCanPlay click companionBackfill companionInitialized complete destroyInsecureFlashVpaid durationChange firstquartile impression interaction initInsecureFlashVpaid youtubeKevlarCompanionShow loaded log mediaUrlPinged midpoint mute pause resume skipshown skippableStateChanged skip start thirdquartile trackingUrlPinged videoClicked volumeChange vpaidEvent youTubeChannelMetadata".split(" "),l2="abandon acceptinvitation acceptinvitationlinear click close collapse companionClick complete creativeview endscreenClick engagedview exitfullscreen expand externalActivityEvent feedbackDislike feedbackLike firstquartile fullscreen instreamAdComplete measurable_impression midpoint mute MUTE_AD pause progress replay resume rewind show_ad skipshown skip start stop thirdquartile unmute userClose video_card_endcap_action video_card_endcap_collapse video_card_endcap_dismiss video_card_endcap_impression videoShareClicked videoShareShown viewable_impression why_this_ad_url why_this_ad_got_it why_this_ad_settings_url why_this_ad_learn_more mute_interaction_url mute_url mute_undo_url".split(" "),
sra="acceptinvitation click close collapse creativeview expand progress".split(" "),m2="viewable_impression measurable_impression overlay_unmeasurable_impression overlay_unviewable_impression overlay_viewable_immediate_impression overlay_viewable_end_of_session_impression externalActivityEvent".split(" "),n2={measurable_impression:"measurable_impression",viewable_impression:"viewable_impression",fully_viewable_audible_half_duration_impression:"fully_viewable_audible_half_duration_impression",overlay_unmeasurable_impression:"overlay_unmeasurable_impression",
overlay_unviewable_impression:"overlay_unviewable_impression",overlay_viewable_immediate_impression:"overlay_viewable_immediate_impression",overlay_viewable_end_of_session_impression:"overlay_viewable_end_of_session_impression"};g.D(Dm,g.$e);Dm.prototype.Mb=function(){return this.A};
var lha={nV:"adCanPlay",pV:"adNotify",dX:"contentPauseRequested",eX:"contentResumeRequested",zp:"click",GX:"discardAdNotify",r2:"videoClicked",t2:"videoIconClicked",Pu:"engagedview",kY:"expandedChanged",V0:"start",hm:"impression",Xu:"measurable_impression",Kv:"viewable_impression",Uu:"fully_viewable_audible_half_duration_impression",RF:"overlay_resize",SF:"overlay_unmeasurable_impression",TF:"overlay_unviewable_impression",VF:"overlay_viewable_immediate_impression",UF:"overlay_viewable_end_of_session_impression",
lY:"externalActivityEvent",PAUSED:"pause",m0:"resume",Su:"firstquartile",Yu:"midpoint",Dv:"thirdquartile",Lu:"complete",YX:"durationChange",kW:"autoClose",j2:"userClose",l2:"userRecall",R_:"prefetched",Gp:"loaded",bW:"allAdsCompleted",ov:"skip",mG:"skipshown",nZ:"linearChanged",N0:"skippableStateChanged",oV:"adMetadata",mV:"adBreakReady",yZ:"log",VOLUME_CHANGED:"volumeChange",B2:"mute",YY:"interaction",UW:"companionBackfill",P2:"youTubeVideoMetadata",N2:"youTubeChannelMetadata",h2:"urlNavigationRequested",
F1:"trackingUrlPinged",n2:"video_card_endcap_action",o2:"video_card_endcap_collapse",p2:"video_card_endcap_dismiss",q2:"video_card_endcap_impression",M2:"why_this_ad_url",L2:"why_this_ad_got_it",m_:"MUTE_AD",XW:"companionInitialized",WW:"companionImpression",VW:"companionClick",HZ:"mediaUrlPinged",O2:"youtubeKevlarCompanionShow"};Hm.prototype.g=function(){return this.Y};
Hm.prototype.getPlayerType=function(){return""};
var P=new Hm;var tra={NORMAL:"normal",Tu:"fullscreen"};var Ss=["ADSENSE","ADSENSE/ADX"],Cfa=["DART","DART_DFA","DART_DFP"],Nfa=["FREEWHEEL","YT:FREEWHEEL"],Zr=["SHOPPING","YT:SHOPPING"],cs=["GDFP"],Bfa=["VIRAL","ADSENSE-VIRAL"],Afa=["VIRAL-RESERVE"],Gp={"application/flash":"Flash","application/shockwave-flash":"Flash","application/x-shockwave-flash":"Flash","application/javascript":"Javascript","text/javascript":"Javascript","image/jpeg":"Image","image/jpg":"Image","image/png":"Image","image/gif":"Image",text:"Text"},Pu={oX:"application/dash+xml",RZ:"video/mp4",
TZ:"video/mpeg",EZ:"application/x-mpegURL",u_:"video/ogg",m1:"video/3gpp",E2:"video/webm",MP3:"audio/mpeg",SZ:"audio/mp4"};g.D(Im,g.$e);g.D(Jm,Error);Jm.prototype.Ad=function(){return this.B};
Jm.prototype.Rb=function(){return this.o};
Jm.prototype.Yb=function(){return this.C};
Jm.prototype.toString=function(){return"AdError "+this.Rb()+": "+this.Ad()+(null!=this.Xk?" Caused by: "+this.Xk:"")};Km.prototype.g=function(){return!1};
Km.prototype.o=function(){return window.NaN};
Km.prototype.A=function(){return""};Lm.prototype.getId=function(){return this.ya};Mm.prototype.getId=function(){return this.ya};var Hda=["ActiveViewExternalLayer"],Pm=null;var wea=["*.googlesyndication.com","gcdn.2mdn.net"],Jda=["*.youtu.be","*.youtube.com"],Mda="ad.doubleclick.net bid.g.doubleclick.net corp.google.com ggpht.com google.co.uk google.com googleads.g.doubleclick.net googleads4.g.doubleclick.net googleadservices.com googlesyndication.com googleusercontent.com gstatic.com gvt1.com prod.google.com pubads.g.doubleclick.net s0.2mdn.net static.doubleclick.net static.doubleclick.net surveys.g.doubleclick.net youtube.com ytimg.com".split(" "),Lda=["c.googlesyndication.com"],
Jia=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];fn.prototype.Rb=function(){return this.errorCode};
fn.prototype.Ad=function(){return this.message};
var Uia=new fn("Unable to request ads from server. Cause: {0}.",1005),Kia=new fn("Unable to request ads from server due to network error.",1012),uz=new fn("Cannot parse the {0} value for the adslist response: {1}.",900),Mu=new fn("Invalid usage of the API. Cause: {0}",900),vha=new fn("Asset fallback ad replacement.",1021),wha=new fn("Asset fallback no ad replacement.",1021),o2=new fn("Unable to display one or more required companions.",602),SB=new fn("There was a problem requesting ads from the server.",
1005),ura=new fn("There was a problem requesting the biscotti ID.",1005),Iia=new fn("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",1013),uB=new fn("The provided ad type: {0} is not supported.",1005),io=new fn("The provided {0} information: {1} is invalid.",1101),vra=new fn("The provided skip offset was invalid.",1105),wra=new fn("The extension contained is neither skippable nor nonskippable.",1105),xq=new fn("The response does not contain any valid ads.",1009),xra=new fn("The overlay ad content could not be displayed since creative dimensions do not align with display area.",
501),Hha=new fn("The ad playlist response was malformed or empty.",1010),vz=new fn("The ad response was not understood and cannot be parsed.",1010),Nia=new fn("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),Wia=new fn("The ad response contains unexpected element. Cause {0}.",1010),hC=new fn("No assets were found in the VAST ad response.",200),sfa=new fn("Duplicate node in <{0}>: {1}",101),$A=new fn("The VAST response document is empty.",1009),
iha=new fn("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),wq=new fn("Ad request reached a timeout.",301),aB=new fn("VAST response was malformed and could not be parsed.",100),p2=new fn("VAST media file loading reached a timeout of {0} seconds.",402),yq=new fn("Ad request could not be completed due to a network error.",301),yra=new fn("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",
503),zra=new fn("There was an error displaying the media file.",405),Lea=new fn("The maximum number of VAST wrappers ({0}) has been reached.",302),Ara=new fn("VAST media file duration differs from the VAST response duration by {0} seconds.",202),Xx=new fn("Video player received an ad with unexpected or incompatible linearity",201),rfa=new fn("Unknown node in <{0}>: {1}",101),Hga=new fn("Invalid VAST resource type: {0}",101),iia=new fn("Invalid VAST version",102),Mea=new fn("No additional VAST wrappers allowed.",
300),Dq=new fn("No Ads VAST response after one or more Wrappers",303),by=new fn("There was an error playing the video ad.",400),Bra=new fn("VMAP unsupported node in <{0}>: {1}",1010),Bw=new fn("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);g.D(nn,g.$e);var nA="abort canplay canplaythrough durationchange emptied loadstart loadeddata loadedmetadata progress ratechange seeked seeking stalled suspend waiting".split(" ");var zn={},Bn="",un=/OS (\S+) like/,Cra=/OS X (\S+)\)/,xn=/Android ([\d\.]+)/;Gn.prototype.reset=function(){this.g=0;this.o=null};var Dra;
Dra={WE:["BC","AD"],VE:["Before Christ","Anno Domini"],LF:"JFMAMJJASOND".split(""),pG:"JFMAMJJASOND".split(""),bv:"January February March April May June July August September October November December".split(" "),rv:"January February March April May June July August September October November December".split(" "),kv:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),tv:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Lv:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),vv:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
lv:"Sun Mon Tue Wed Thu Fri Sat".split(" "),uv:"Sun Mon Tue Wed Thu Fri Sat".split(" "),n_:"SMTWTFS".split(""),qG:"SMTWTFS".split(""),iG:["Q1","Q2","Q3","Q4"],aG:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Hu:["AM","PM"],Ap:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],Ev:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],RE:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Cp:6,HG:[5,6],Dp:5};g.q2=Dra;g.q2=Dra;In.prototype.clone=function(){return new In(this.B,this.months,this.days,this.g,this.o,this.A)};
In.prototype.times=function(a){return new In(this.B*a,this.months*a,this.days*a,this.g*a,this.o*a,this.A*a)};
g.h=g.Ln.prototype;g.h.ln=g.q2.Cp;g.h.nn=g.q2.Dp;g.h.clone=function(){var a=new g.Ln(this.date);a.ln=this.ln;a.nn=this.nn;return a};
g.h.getFullYear=function(){return this.date.getFullYear()};
g.h.getMonth=function(){return this.date.getMonth()};
g.h.getDate=function(){return this.date.getDate()};
g.h.getTime=function(){return this.date.getTime()};
g.h.getDay=function(){return this.date.getDay()};
g.h.getUTCFullYear=function(){return this.date.getUTCFullYear()};
g.h.getUTCMonth=function(){return this.date.getUTCMonth()};
g.h.getUTCDate=function(){return this.date.getUTCDate()};
g.h.getUTCHours=function(){return this.date.getUTCHours()};
g.h.getUTCMinutes=function(){return this.date.getUTCMinutes()};
g.h.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
g.h.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
g.h.Cn=function(a,b){return[this.getFullYear(),g.Ra(this.getMonth()+1,2),g.Ra(this.getDate(),2)].join(a?"-":"")+(b?g.Mn(this):"")};
g.h.toString=function(){return this.Cn()};
g.h.valueOf=function(){return this.date.valueOf()};Nn.prototype.reset=function(){this.o=this.g=null};var Tn=new Pn;Pn.prototype.clear=function(){this.g=On();this.C=this.J=this.o=null;this.B=On();this.A=null;this.Y=this.F=this.I="";this.G=this.V=this.D=null;this.aa=!1};g.sa(Sn);Sn.prototype.isLoggingEnabled=function(){return this.g};g.h=Xn.prototype;g.h.dH=!1;g.h.Uv=!1;g.h.Zv=!0;g.h.Vi=null;g.h.bitrate=-1;g.h.contentId=null;g.h.Pw=!1;g.h.Tk=!1;g.h.mimeTypes=null;g.h.surveyCreativeData=null;g.h.TT=!0;g.h.fu=!1;g.h.UT=!1;g.h.hu=!1;g.h.iu=!1;g.h.YC=!1;g.h.ZC=!0;g.h.JH=!1;g.h.VT=!0;g.h.gy=!0;g.h.aq=!1;g.h.EH=!1;g.h.iU=0;g.h.showContentThumbnail=!0;g.h.cu=!1;g.h.eu=!1;g.h.kj=null;g.h.lf=8E3;g.h.aw=!0;g.h.KB=0;g.h.lt=-1;g.h.fy=null;g.h.ig=-1;g.h.shortViewCount=null;g.D($n,g.Ef);var mA={vW:"beginFullscreen",zp:"click",cY:"end",dY:"endFullscreen",ERROR:"error",Gp:"loaded",GZ:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",M0:"skip",mG:"skipShown",D0:"shareClicked",xv:"start",p1:"timeUpdate",IW:"cardsStateChange",n1:"timedMetadata",A2:"volumeChange"};g.h=$n.prototype;g.h.oy=function(){return!1};
g.h.xb=function(){return!0};
g.h.Ft=g.y;g.h.ry=g.y;g.h.vr=g.y;g.h.De=function(){return null};
g.h.yr=g.y;g.h.xr=g.y;g.D(ao,g.Ef);var bo=null;ao.prototype.Tj=function(a){this.A=a};
ao.prototype.destroy=function(){this.I.Ca(this.o,"activityMonitor",this.L);this.o=null};
ao.prototype.L=function(a){var b=a.Xf;switch(a.Td){case "appStateChanged":mda(wl.getInstance(),b.appState,b.nativeTime);break;case "externalActivityEvent":go(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":eo(b.queryId,b.viewabilityString);break;case "pageSignals":this.J=b.pageSignals;break;case "viewableImpression":fo(b.queryId,b.viewabilityString);break;case "engagementData":b=b.engagementString;co().B=b;co().G=(0,g.G)();break;case "viewability":a=b.eventId;window.clearTimeout(a);
var c=this.g.get(a);c&&(this.g.remove(a),c(b.viewabilityData));break;case "viewabilityMeasurement":var d=wl.getInstance(),e=b.queryId;b=b.viewabilityData;a=Wj.getInstance();if("exc"==a.Fb){d.A=b.nativeVolume;c=b.coverage||0;var f=b.unmeasurable;d.g&&null!=b.userActivity&&(d.B=b.userActivity);d=d.An(e,{});-1==d.ha&&(d.ha=cj(),d.Ab=d.de().o);d.fa+=f?1:0;d.ib++;d.Na[zj(c)]++;e=b.insideIframe;g.t(e)&&0==e&&(a.o=!1);d.nh=f||d.nh;b.position&&ak(d,ei,a.o,new g.Yg(b.position.top,b.position.right,b.position.bottom,
b.position.left));b.documentSize&&(a.A=new g.dd(b.documentSize.width,b.documentSize.height));b.viewportSize&&(a.g=new g.dd(b.viewportSize.width,b.viewportSize.height));d.qc.g=g.Xc(c,0,1);d.Wr=d.qc.g}break;case "engagement":a=b.eventId,window.clearTimeout(a),c=this.g.get(a),Sn.getInstance().isLoggingEnabled()&&(f=-1,this.D&&(f=(0,g.G)()-this.D),d=!1,c||(d=!0),Tb(b,"loggingId")&&Vn(Sn.getInstance(),43,{step:"receivedResponse",time:(0,g.G)(),timeout:d,logid:b.loggingId,timediff:f})),c&&(this.g.remove(a),
c(b.engagementString))}};
g.ra("ima.bridge.getNativeViewability",function(a,b){co();b({})},void 0);
g.ra("ima.bridge.getVideoMetadata",function(){var a=co().F;return g.wa(a)?a():{}},void 0);
g.ra("ima.bridge.triggerViewEvent",fo,void 0);g.ra("ima.bridge.triggerMeasurableEvent",eo,void 0);g.ra("ima.bridge.triggerExternalActivityEvent",go,void 0);var Sda={sF:"Image",cF:"Flash",ALL:"All"},Rda={IY:"Html",MY:"IFrame",X0:"Static",ALL:"All"},Tda={NY:"IgnoreSize",y0:"SelectExactMatch",z0:"SelectNearMatch"},Uda={FX:"DisallowResize",h0:"ResizeSmaller"};g.D(so,g.Ef);var to=null;g.h=so.prototype;g.h.destroy=function(){this.D.Ca(this.g,"activityMonitor",this.jy);this.A=!1;this.o.clear()};
g.h.W=function(){this.destroy();so.Z.W.call(this)};
g.h.init=function(a){if(!this.A){if(this.g=a||null)this.D.U(this.g,"activityMonitor",this.jy),zo(this);P.J&&Yda();a=Ida();(0,g.H)(a,function(a){var b=vj.getInstance();g.nb(b.g,a)});
P.o||P.g()||(wl.getInstance().o=!0);this.C=(g.wa(null),null);this.A=!0}};
g.h.Tj=function(a){this.B=a};
g.h.jy=function(a){var b=a.Xf,c=b.queryId,d={};d.eventId=b.eventId;switch(a.Td){case "getPageSignals":zo(this);break;case "reportVastEvent":var e=b.vastEvent;a=b.osdId;var f={};f.opt_fullscreen=b.isFullscreen;b.isOverlay&&(f.opt_bounds=b.overlayBounds);d.viewabilityData=xo(this,e,c,a,f);this.g.send("activityMonitor","viewability",d);break;case "fetchAdTagUrl":d={},d.eventId=b.eventId,a=b.osdId,c=null,Tb(b,"isFullscreen")&&(c=b.isFullscreen),Tb(b,"loggingId")&&(b=b.loggingId,d.loggingId=b,Vn(Sn.getInstance(),
43,{step:"beforeLookup",logid:b,time:(0,g.G)()},!0)),d.engagementString=Zda(this,a,c),this.g.send("activityMonitor","engagement",d)}};
g.ra("ima.common.getVideoMetadata",function(a){a=uo().o.get(a);return g.wa(a)?a():{}},void 0);
g.ra("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=uo().g;d?d.send("activityMonitor","viewableImpression",c):uo().dispatchEvent(new Dm("viewable_impression",null,c))},void 0);
g.ra("ima.common.triggerViewabilityMeasurementUpdate",function(a,b){var c=uo().g,d={};d.queryId=a;d.viewabilityData=b;c&&c.send("activityMonitor","viewabilityMeasurement",d)},void 0);
g.ra("ima.common.triggerMeasurableEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=uo().g;d?d.send("activityMonitor","measurableImpression",c):uo().dispatchEvent(new Dm("measurable_impression",null,c))},void 0);
g.ra("ima.common.triggerExternalActivityEvent",function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;(a=uo().g)?a.send("activityMonitor","externalActivityEvent",d):uo().dispatchEvent(new Dm("externalActivityEvent",null,d))},void 0);
uo();g.D(Ao,g.$e);Ao.prototype.getError=function(){return this.g};Bo.prototype.ld=function(){return this.F};
Bo.prototype.Cc=function(){return this.g};
Bo.prototype.clone=function(){var a=new Bo(this.I,this.G);if(null!=this.g)Co(a,this.Cc(),this.B,this.o,this.D);else{var b=this.ld(),c=this.B,d=this.o,e=this.A,f=this.D,k=this.C;a.F=b;a.g=null;a.B=c;a.o=d;a.A=e;a.D=f||[];a.C=k||[]}return a};g.D(Eo,g.$e);Fo.prototype.videoCount=0;g.sd&&g.oc(8);g.Go.prototype.o=vc;var So={},ep={},fp={},$p={};Io.prototype.xg=null;Io.prototype.ld=function(){return this.content};
Io.prototype.toString=function(){return this.content};
g.D(Jo,Io);Jo.prototype.Hf=$p;g.D(Ko,Io);Ko.prototype.Hf=So;g.D(Lo,Io);Lo.prototype.Hf={};Lo.prototype.xg=1;g.D(Mo,Io);Mo.prototype.Hf=ep;Mo.prototype.xg=1;g.D(No,Io);No.prototype.Hf=fp;No.prototype.xg=1;g.D(Oo,Io);Oo.prototype.Hf={};Oo.prototype.xg=1;g.D(Po,Io);Po.prototype.Hf={};Po.prototype.xg=1;var To=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a,d){var c=new b(String(a));void 0!==d&&(c.xg=d);return c}}(Ko);
Uo(Lo);Uo(Mo);Uo(No);var gea=Uo(Oo);Uo(Po);var Vo={},Wo={},or=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a,d){var c=String(a);if(!c)return"";c=new b(c);void 0!==d&&(c.xg=d);return c}}(Ko),cp=/['()]/g,lp={},hea={"\x00":"&#0;",
"\t":"&#9;","\n":"&#10;","\x0B":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;",'"':"&quot;","&":"&amp;","'":"&#39;","-":"&#45;","/":"&#47;","<":"&lt;","=":"&#61;",">":"&gt;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"},iea={"\x00":"%00","\u0001":"%01","\u0002":"%02","\u0003":"%03","\u0004":"%04","\u0005":"%05","\u0006":"%06","\u0007":"%07","\b":"%08","\t":"%09","\n":"%0A","\x0B":"%0B","\f":"%0C","\r":"%0D","\u000e":"%0E","\u000f":"%0F","\u0010":"%10","\u0011":"%11",
"\u0012":"%12","\u0013":"%13","\u0014":"%14","\u0015":"%15","\u0016":"%16","\u0017":"%17","\u0018":"%18","\u0019":"%19","\u001a":"%1A","\u001b":"%1B","\u001c":"%1C","\u001d":"%1D","\u001e":"%1E","\u001f":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C","{":"%7B","}":"%7D","\u007f":"%7F","\u0085":"%C2%85","\u00a0":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","\uff01":"%EF%BC%81","\uff03":"%EF%BC%83","\uff04":"%EF%BC%84","\uff06":"%EF%BC%86","\uff07":"%EF%BC%87",
"\uff08":"%EF%BC%88","\uff09":"%EF%BC%89","\uff0a":"%EF%BC%8A","\uff0b":"%EF%BC%8B","\uff0c":"%EF%BC%8C","\uff0f":"%EF%BC%8F","\uff1a":"%EF%BC%9A","\uff1b":"%EF%BC%9B","\uff1d":"%EF%BC%9D","\uff1f":"%EF%BC%9F","\uff20":"%EF%BC%A0","\uff3b":"%EF%BC%BB","\uff3d":"%EF%BC%BD"},aea=/[\x00\x22\x27\x3c\x3e]/g,cea=/[\x00\x09-\x0d \x22\x26\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,bea=/[\x00\x09-\x0d \x22\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,hp=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,
eea=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,fea=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,Zo=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,$o=/</g;pp.prototype.Yb=function(){return this.A};
g.D(qp,pp);op.prototype.isEmpty=function(){return this.g.isEmpty()};g.h=xp.prototype;g.h.getDuration=function(){return this.ka};
g.h.Hr=function(){return null};
g.h.Gr=function(){return null};
g.h.Er=function(){return null};
g.h.Mb=function(){return this.I};
g.h.vn=function(){for(var a=[this],b=this.I.o;b;){var c=Ap(this,b)||Ap(this,b,!0);null!=c&&a.push(c);b=b.o}return a};Bp.prototype.Gb=function(){return this.D};
Bp.prototype.getHeight=function(){return this.C};g.D(Cp,xp);g.h=Cp.prototype;g.h.hf=function(){return this.B};
g.h.dh=function(){return this.o};
g.h.eh=function(){return null!=this.C?this.C.o:null};
g.h.Hr=function(){var a=Ep(this,"javascript");return null!=a?a.o:null};
g.h.Gr=function(){var a=Fp(this);return null!=a?a.o:null};
g.h.Er=function(){return null!=this.C?this.C.A:1==this.o.length?this.o[0].A:null};g.D(Hp,xp);g.h=Hp.prototype;g.h.ld=function(){return Rd(this.Cc())};
g.h.Wk=function(){return!1};
g.h.Ir=function(){return this.Wk()?Rd(this.Cc(!0)):""};
g.h.md=function(){return this.ba};
g.h.jf=function(){return this.Fa};
g.h.Gb=function(){return this.jf().width};
g.h.getHeight=function(){return this.jf().height};
g.h.eh=function(){return this.A};
g.h.Hr=function(){return"VPAID"==this.J&&"Javascript"==this.ba?this.A:null};
g.h.Gr=function(){return"VPAID"==this.J&&"Flash"==this.ba?this.A:null};
g.h.Er=function(){return this.J};
g.h.hf=function(){return this.Va};g.D(Ip,g.L);Ip.prototype.F=function(){this.D=(0,g.G)()};
Ip.prototype.I=function(a,b){var c=a.element;1==(this.o&1)&&(0==this.B&&this.B++,this.g.nm=this.B);2==(this.o&2)&&(this.g.nb=a.tH);if(8==(this.o&8)){var d=g.yh(this.C);this.g.nx=Math.round(b.clientX-d.x);this.g.ny=Math.round(b.clientY-d.y)}16==(this.o&16)&&null!=this.D&&(d=(0,g.G)()-this.D,this.g.clkt=d);512==(this.o&512)&&(d=li())&&(this.g.mb=d);"A"==c.tagName.toUpperCase()&&g.Uc(c,pea(this,c.href))};
Ip.prototype.G=function(){this.B++};var Era=g.sd?zc(sc(tc('javascript:""'))):zc(sc(tc("about:blank"))),qea=yc(Era),Fra=g.sd?zc(sc(tc('javascript:""'))):zc(sc(tc("javascript:undefined")));yc(Fra);g.D(Jp,Hp);g.h=Jp.prototype;g.h.Si=function(a){null==this.o||E(g.F(this.hf()))||(this.o.U(a,"click",this.Y),this.aa.push(a))};
g.h.Cc=function(a){a?(null==this.fa&&(this.fa=this.wg(a),g.Cd(this.fa,Op(this))),a=this.fa):(null==this.B&&(this.B=this.wg(),g.Cd(this.B,Op(this))),a=this.B);null!=this.o&&this.o.U(a,"creativeview",this.da);return a};
g.h.wg=function(){var a=g.F(this.A);E(g.F(this.hf()))||(a=new g.Vl(a),g.dm(a,"clickTAG",g.Ja(this.hf())),a=a.toString());var b=g.xd("IFRAME",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.md()&&(b.width=this.Gb());b.setAttribute("src",Ym(a));this.Si(b);return Np(this,b)};
g.h.Nq=function(){Rm().g("cleanup_text_overlay_spam_signals");return 2};
g.h.vn=function(){for(var a=[this],b=this.Mb().o;b;){var c=this.D?Ap(this,b)||Ap(this,b,!0):Pp(this,b)||Pp(this,b,!0);null!=c&&a.push(c);b=b.o}return a};var uea={};g.D(aq,Jp);g.h=aq.prototype;g.h.jf=function(){return new g.dd(this.Gb(),this.getHeight())};
g.h.getHeight=function(){return 63};
g.h.Gb=function(){return null!=this.F?g.Hh(this.F).width:0};
g.h.Nq=function(a){return Rm().g("cleanup_text_overlay_spam_signals")?g.Tp(a,"text-image-link")?9:g.Tp(a,"text-ad-channel")?1:0:g.Tp(a,"text-image")?9:g.Tp(a,"text-ad-channel")?1:0};
g.h.wg=function(){var a=this.Mb(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.C,e="rtl";null!=d&&(e=bra.test(uc(d,void 0))?"rtl":"ltr");d={title:d,text:c.D+" "+c.F,dir:e,Ic:this.hf()};if(e=c.getImageUrl())d.image=Ym(e),d.aD=!0,P.g()&&(d.aD=0==c.o||0==c.A),a=g.eb(a.F,function(a){return a instanceof Cp}),null!=a&&(d.duration=po(a.getDuration()));
b.A&&(d.eD=b.A);this.F=Zp(jea,d);(0,g.H)(this.F.getElementsByTagName("a"),this.Si,this);this.F.id=this.ya;this.F.style.height=this.getHeight()+"px";return this.F};var yea=[202,1009],Dea="CONTENT_V CPN DISALLOW EID LACT VIS".split(" "),Cea={MOAT_INIT:["://yts\\.moatads\\.com","://yts-testing\\.moatads\\.com","://pagead2\\.googlesyndication\\.com/pagead/gen_204"],MOAT_VIEWABILITY:["://[^.]*.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204","://pubads.g.doubleclick.net"],IAS_VIEWABILITY:["://[^.]*.adsafeprotected.com","://[^.]*.test-adsafeprotected.com","://pagead2.googlesyndication.com/pagead/gen_204","://pubads.g.doubleclick.net"],DV_VIEWABILITY:["://[^.]*.yt.srs.doubleverify.com",
"://pagead2.googlesyndication.com/pagead/gen_204","://pubads.g.doubleclick.net"],GOOGLE_VIEWABILITY:"://pubads.g.doubleclick.net ://googleads.g.doubleclick.net ://ad[.-]([a-z0-9]+.){0,1}doubleclick.net ://ade\\.googlesyndication\\.com ://pagead2.googlesyndication.com ://([a-z0-9]+[.])*youtube.com".split(" ")};g.h=vq.prototype;g.h.Qf=function(){return null!=this.g&&this.g.Qf()?!0:0<this.ads.length&&this.o<this.ads.length-1};
g.h.Ee=function(a,b){null!=this.g?Kea(this,a,b):this.Qf()?Nea(this,a,(0,g.A)(function(c){!this.Qf()||!P.g()&&301==c.Rb()?b(c):this.Ee(a,b)},this)):b(new Jm("adLoadError","The ad source contains no more ads.",1005))};
g.h.jx=function(a,b){return this.C?0<a.length?a:b:g.ub(b,0,1)};
g.h.yo=function(a,b,c){var d;if(!(d=null!=a.g)){var e=this.D;d=e.gf||0;e=e.ff||0;Gs(a)&&!a.fa?Ks(a,"nonlinear")?tq(a,d,e):uq(a):Ks(a,"linear")?uq(a):Ks(a,"nonlinear")&&tq(a,d,e);d=null!=a.g}d?(this.A++,b(a)):(b=g.kb(a.F)?hn(aB):a.Wb()?hn(hC):hn(yra),d=lq(b,a),ro(Dfa(a),"rm")?b.A=!1:en(a.Va,d),c(b))};
g.h.ut=function(a,b,c){var d=this.D.clone();d.o="";d.g=a.Ib;d.Te=zm(d.g,d.containerElement);Aq(this,a,d,b,c)};g.D(Fq,Qp);Fq.prototype.ce=function(){return this.o};g.D(Gq,vq);Gq.prototype.Qf=function(){if(null!=this.g&&this.g.Qf())return!0;var a=0==this.A||this.A==this.J;return 0<this.ads.length&&a&&this.o<this.ads.length-1};
Gq.prototype.jx=function(a,b){return b};
Gq.prototype.yo=function(a,b,c){var d=null==this.g?vs(a):vs(this.ads[this.o]);this.I.A=d;Gq.Z.yo.call(this,a,b,c)};
Gq.prototype.ut=function(a,b,c){this.I.A=-1;Gq.Z.ut.call(this,a,b,c)};g.D(Iq,g.Vl);Iq.prototype.toString=function(){return Lq(this,Iq.Z.toString.call(this))};
Iq.prototype.Bx=function(){return""};
Iq.prototype.ci=function(){return""};
Iq.prototype.clone=function(){return new Iq(this.toString())};g.h=Sq.prototype;g.h.ld=function(){return this.g.ld()};
g.h.Cc=function(){return this.g.Cc()};
g.h.md=function(){return this.g.md()};
g.h.Gb=function(){return this.g.Gb()};
g.h.getHeight=function(){return this.g.getHeight()};
g.h.ky=function(){return!E(g.F(this.g.A))};
g.h.Qq=function(){var a=this.g.Mb().g;return null!=a?a.g:window.NaN};
g.h.Ln=function(){return this.g.jf()};
g.h.Mb=function(){return this.g.Mb()};Xo("a","",function(a){a=a||{};return'<div class="'+Q("videoAdUi")+'"><div class="'+Q("videoAdUiTopBar")+" "+Q("videoAdUiTopBarWithGradients")+'"><div class="'+Q("videoAdUiAuthorIcon")+'"></div><div class="'+Q("videoAdUiTitle")+" "+Q("ellipsisText")+'"></div><div class="'+Q("videoAdUiAuthorName")+" "+Q("ellipsisText")+'"></div><div class="'+Q("videoAdUiLearnMore")+'">'+Q(a.ph)+'</div><div class="'+Q("videoAdUiShare")+'"></div></div><div class="'+Q("videoAdUiBottomBar")+'"><div class="'+Q("videoAdUiLearnMoreText")+
'">'+Q(a.ph)+'<div class="'+Q("videoAdUiLearnMoreIcon")+'"></div></div><div class="'+Q("videoAdUiAttributionContainer")+'"><div class="'+Q("videoAdUiAttribution")+'" '+Q(mp(a.attributionText))+">"+Q(a.attributionText)+'</div><div class="'+Q("videoAdUiAttributionIconContainer")+'"><div class="'+Q("videoAdUiAttributionIcon")+'" id="videoAdUiAttributionIcon"></div><div class="'+Q("videoAdUiAdInfoPopup")+'"><div class="'+Q("videoAdUiAdInfoPopupCallout")+'"></div><div class="'+Q("videoAdUiAdInfoPopupText")+
'" '+Q(mp(a.re))+">"+Q(a.re)+'</div></div></div></div></div><div class="'+Q("videoAdUiProgressBar")+'" dir="ltr"><div class="'+Q("videoAdUiBuffer")+'"></div><div class="'+Q("videoAdUiProgress")+'"></div></div></div>'});
Xo("a","fixedDirectionality",function(a){a=a||{};return'<div class="'+Q("videoAdUi")+'"><div class="'+Q("videoAdUiTopBar")+" "+Q("videoAdUiTopBarWithGradients")+'"><div class="'+Q("videoAdUiAuthorIcon")+'"></div><div class="'+Q("videoAdUiTitle")+" "+Q("ellipsisText")+'"></div><div class="'+Q("videoAdUiAuthorName")+" "+Q("ellipsisText")+'"></div><div class="'+Q("videoAdUiLearnMore")+'">'+Q(a.ph)+'</div><div class="'+Q("videoAdUiShare")+'"></div></div><div class="'+Q("videoAdUiBottomBar")+'"><div class="'+
Q("videoAdUiLearnMoreText")+'">'+Q(a.ph)+'<div class="'+Q("videoAdUiLearnMoreIcon")+'"></div></div><div class="'+Q("videoAdUiAttributionContainer")+'"><div class="'+Q("videoAdUiAttribution")+'">'+Q(a.attributionText)+'</div><div class="'+Q("videoAdUiAttributionIconContainer")+'"><div class="'+Q("videoAdUiAttributionIcon")+'" id="videoAdUiAttributionIcon"></div><div class="'+Q("videoAdUiAdInfoPopup")+'"><div class="'+Q("videoAdUiAdInfoPopupCallout")+'"></div><div class="'+Q("videoAdUiAdInfoPopupText")+
'">'+Q(a.re)+'</div></div></div></div></div><div class="'+Q("videoAdUiProgressBar")+'" dir="ltr"><div class="'+Q("videoAdUiBuffer")+'"></div><div class="'+Q("videoAdUiProgress")+'"></div></div></div>'});
Xo("a","redesign2014q4",function(a){a=a||{};return'<div class="'+Q("videoAdUi")+'"><div class="'+Q("videoAdUiTopBar")+" "+Q("videoAdUiTopBarWithGradients")+'"><div class="'+Q("videoAdUiAuthorIcon")+'"></div><div class="'+Q("videoAdUiTopButtons")+'"><div class="'+Q("videoAdUiTopButton")+" "+Q("videoAdUiTopButtonInfo")+'"><div class="'+Q("videoAdUiTopButtonCallout")+'"><div class="'+Q("videoAdUiTopButtonTooltip")+'">'+Q(a.infoText)+'</div></div></div><div class="'+Q("videoAdUiTopButton")+" "+Q("videoAdUiTopButtonShare")+
'"><div class="'+Q("videoAdUiTopButtonCallout")+'"><div class="'+Q("videoAdUiTopButtonTooltip")+" "+Q("videoAdUiTopButtonShareTooltip")+'">'+Q(a.b3)+'</div></div></div><div class="'+Q("videoAdUiTopButton")+" "+Q("videoAdUiTopButtonWatchLater")+'"><div class="'+Q("videoAdUiTopButtonCallout")+'"><div class="'+Q("videoAdUiTopButtonTooltip")+'">'+Q(a.d3)+'</div></div></div></div><div class="'+Q("videoAdUiTitle")+" "+Q("ellipsisText")+'"></div><div class="'+Q("videoAdUiAuthorName")+" "+Q("ellipsisText")+
'"></div></div><div class="'+Q("videoAdUiBottomBar")+'"><div class="'+Q("videoAdUiBottomBarText")+'"><div class="'+Q("videoAdUiAttributionContainer")+'"><div class="'+Q("videoAdUiAttributionWithBadge")+'"><div class="'+Q("videoAdUiAttributionBadge")+" "+Q("yt-badge")+" "+Q("yt-badge-ad")+'">Ad</div><div class="'+Q("videoAdUiAttributionText")+'" '+Q(mp(a.attributionText))+">"+Q(a.attributionText)+'</div></div><div class="'+Q("videoAdUiAttribution")+'" '+Q(mp(a.attributionText))+">"+Q(a.attributionText)+
'</div><div class="'+Q("videoAdUiAttributionIconContainer")+'"><div class="'+Q("videoAdUiAttributionIcon")+'" id="videoAdUiAttributionIcon"></div><div class="'+Q("videoAdUiAdInfoPopup")+'"><div class="'+Q("videoAdUiAdInfoPopupCallout")+'"></div><div class="'+Q("videoAdUiAdInfoPopupText")+'" '+Q(mp(a.re))+">"+Q(a.re)+'</div></div></div></div><div class="'+Q("videoAdUiVisitAdvertiserLink")+'"><div class="'+Q("videoAdUiVisitAdvertiserLinkText")+'"></div><div class="'+Q("videoAdUiVisitAdvertiserIcon")+
'"></div></div></div><div class="'+Q("videoAdUiBottomBarMessage")+'"></div></div><div class="'+Q("videoAdUiProgressBar")+'" dir="ltr"><div class="'+Q("videoAdUiBuffer")+'"></div><div class="'+Q("videoAdUiProgress")+'"></div></div></div>'});
Xo("b","",function(a){a=a||{};return""+Ca("You can skip this ad in {$xSeconds}",{xSeconds:Q(a.Mg)})});
Xo("b","redesign2014q4",function(a){a=a||{};return""+Ca("You can skip to video in {$xSeconds}",{xSeconds:Q(a.Mg)})});
Xo("b","forcedlinebreak",function(a){a=a||{};return""+Ca("You can skip to{$newline}video in {$xSeconds}",{newline:Q(a.WN),xSeconds:Q(a.Mg)})});g.D(pr,Jp);var nfa=new g.dd(300,250);pr.prototype.Na=function(){this.F=Math.max(0,this.F-1);rr(this)};
pr.prototype.Ka=function(){this.F=Math.min(this.sa-3,this.F+1);rr(this)};
pr.prototype.wg=function(){return this.O};g.D(ur,Jp);var pfa=new g.dd(300,250);ur.prototype.wg=function(){return this.F};var vr=g.sd&&qfa();var tfa=/(doubleclick.net|googleadservices.com)/,wfa=["ai","sigh"],xfa=["xai","sig"];g.D(Rr,Qp);Sr.prototype.parse=function(a){a=g.Ld(a);var b=Fr(a),c;"skippable"==b?c="skippable":"nonskippable"==b&&(c="nonskippable");if(null==c)throw hn(wra);a=a.getAttribute("offset");a=Pr(a);if("skippable"==c&&null==a)throw hn(vra);return new Rr(c,a)};g.D(Tr,Qp);g.D(Ur,Qp);g.h=Wr.prototype;g.h.md=function(){if(null!=Qs(this))return"application/javascript";if(null!=Rs(this))return"application/x-shockwave-flash";var a=this.g,b="";if(null===a)return b;if(a instanceof Cp)a=a.C,null===a||(b=g.F(a.g));else if(a instanceof Jp)switch(a.N){case "IFrame":case "Html":case "Static":b=g.F(a.pa)}return b};
g.h.getExtension=function(a){return this.G.get(a)};
g.h.isBumper=function(){return-1!=this.getDuration()&&0!=this.getDuration()&&7>=this.getDuration()};
g.h.Wb=function(){return this.ra?this.bb:Ls(this)?!0:Gs(this)?"video"==this.Ab:Ks(this,"linear")};
g.h.isSkippable=function(){return null!=Ns(this)};
g.h.nK=function(){return this.fa};
g.h.getDuration=function(){return Hs(this)+Ps(this)};
g.h.eh=function(){var a=null,b=this.g;null!=b&&(a=b.eh(),E(g.F(a))&&(a=null));return a};
g.h.Gb=function(){return this.Wb()?0:this.ba.width};
g.h.getHeight=function(){return this.Wb()?0:this.ba.height};
g.h.bf=function(){return this.Ta};
g.h.toString=function(){return"Ad: "+this.sa};g.D(Xs,g.Ef);Xs.prototype.o=function(a){switch(a.type){case "companion_impression":this.dispatchEvent(new Dm("companionImpression",this.g));break;case "companion_click":this.dispatchEvent(new Dm("companionClick",this.g))}};g.D(Ys,g.Ef);g.h=Ys.prototype;g.h.Cb=function(a){null==a||this.F||(this.Yh=a,Ofa(this),this.F=!0)};
g.h.Xc=function(){null!=this.Yh&&this.F&&(Zs(this),this.D=this.I=this.F=!1,this.g=0,this.A=[],this.G=!1)};
g.h.KR=function(a){this.I=!0;this.g=a.touches.length;this.o&&(window.clearTimeout(this.o),this.o=0,this.L=!0);(this.G=$s(this,a.touches)||1!=a.touches.length)?this.O=this.N=window.Infinity:(this.N=a.touches[0].clientX,this.O=a.touches[0].clientY);Pfa(this,a.touches)};
g.h.uJ=function(a){this.g=a.touches.length;if(!vn(8)||Math.pow(a.changedTouches[0].clientX-this.N,2)+Math.pow(a.changedTouches[0].clientY-this.O,2)>Math.pow(5,2))this.D=!0};
g.h.IR=function(a){this.C?this.Bq():(!this.I||1!=this.g||this.D||this.L||this.G||!$s(this,a.changedTouches)||(this.o=window.setTimeout((0,g.A)(this.Bq,this),300)),this.g=a.touches.length,0==this.g&&(this.D=this.I=!1,this.A=[]),this.L=!1)};
g.h.ly=function(){this.Bq()};
g.h.Bq=function(){this.o=0;this.dispatchEvent(new g.$e("click"))};
g.h.W=function(){this.Xc();this.B.dispose();this.B=null;Ys.Z.W.call(this)};var Rfa=/#(.)(.)(.)(.)/,Qfa=/^#(?:[0-9a-f]{4}){1,2}$/i;g.D(g.ct,g.Ef);g.h=g.ct.prototype;g.h.xb=function(){return 1==this.g};
g.h.qo=function(){this.Ae("begin")};
g.h.Dl=function(){this.Ae("end")};
g.h.Dd=function(){this.Ae("finish")};
g.h.Ae=function(a){this.dispatchEvent(a)};var Gra=Jf(function(){if(g.sd)return g.oc("10.0");var a=g.zd("DIV"),b=g.ud?"-webkit":g.ph?"-moz":g.sd?"-ms":g.bf?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!Qc.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in cra)throw Error("Tag name <div> is not allowed for SafeHtml.");b=Sc("div",b,void 0);a.innerHTML=g.Nc(b);return""!=qh(a.firstChild,"transition")});g.D(et,g.ct);g.h=et.prototype;g.h.play=function(){if(this.xb())return!1;this.qo();this.Ae("play");this.startTime=(0,g.G)();this.g=1;if(Gra())return g.nh(this.o,this.F),this.B=g.tg(this.yS,void 0,this),!0;this.Ot(!1);return!1};
g.h.yS=function(){g.Gh(this.o);dt(this.o,this.D);g.nh(this.o,this.A);this.B=g.tg((0,g.A)(this.Ot,this,!1),1E3*this.C)};
g.h.stop=function(){this.xb()&&this.Ot(!0)};
g.h.Ot=function(a){g.nh(this.o,"transition","");g.ug(this.B);g.nh(this.o,this.A);this.endTime=(0,g.G)();this.g=0;a?this.Ae("stop"):this.Dd();this.Dl()};
g.h.W=function(){this.stop();et.Z.W.call(this)};
g.h.pause=function(){};g.D(ft,g.Ef);g.h=ft.prototype;g.h.W=function(){null!=this.Ei&&(g.ug(this.Ei),this.Ei=null);null!=this.Ie&&(g.Gd(this.Ie),this.Ie=null);ft.Z.W.call(this)};
g.h.eH=function(){this.Ei=null;gt(this,!1);this.Ei=g.tg((0,g.A)(function(){this.Ei=null;ht(this,!1);null!=this.Ie&&g.O(this.Ie,!1);this.dl("complete")},this),200)};
g.h.show=function(a){this.dl("impression");gt(this,!0);ht(this,!0);null!=this.Ie&&g.O(this.Ie,!0);this.Ei=g.tg(this.eH,a,this)};
g.h.IJ=function(a){P.g()||a.stopPropagation()};
g.h.dl=function(a){a=dq({action:"condor-brand-precap",event:a,ei:"[EID]",cpn:"[CPN]",content_v:"[CONTENT_V]",ad_cpn:"[AD_CPN]",ad_v:"[AD_V]",ad_id:"[AD_ID]",ad_len:"[AD_LEN]"});a=g.xm(a,this.D.D);an(a)};g.D(it,Qp);g.D(kt,Qp);g.h=lt.prototype;
g.h.DB=function(){var a={heading:"",targetingReasons:[],learnMore:"",Jq:"",control:"",mute:""};if(null!=this.B){a.heading=this.B.C;var b=this.B.o;if(b&&3==b.length){var c=b[1],d=b[2];b=To(Q(b[0])+kr()+Q(c)+To("</a>")+Q(d));a.Jq=b}a.targetingReasons=g.sb(this.B.D);a.learnMore=this.B.L;a.close=this.B.A}else a.Jq=lr(),b=Ca("Got It"),a.close=""+b;null!=this.o&&(a.mute=this.o.B);ot(this,jfa,a);nt(this,"videoAdUiWhyThisAdCloseButton",this.Rm);nt(this,"videoAdUiWhyThisAdControl",this.Uw);nt(this,"videoAdUiWhyThisAdMute",
this.sS);a=this.Uw;b=g.I("videoAdUiWhyThisAdGenericMessage",this.g);null!=b&&(b=b.getElementsByTagName("A")[0],null!=b&&this.C.U(b,"click",a))};
g.h.Rm=function(){null!=this.C&&(this.C.dispose(),this.C=null);mt(this)&&null!=this.g&&(null!=this.A&&(pt(this,"why_this_ad_got_it"),this.A.dispose(),this.A=null),this.g.parentElement.removeChild(this.g),this.g=null)};
g.h.Uw=function(){pt(this,"why_this_ad_settings_url")};
g.h.sS=function(){if(null!=this.o){pt(this,"mute_interaction_url");var a=jt(this.o);if(0==a){var b={heading:"",message:"Are you sure you want to stop seeing this ad?",confirm:"YES",cancel:"CANCEL"};ot(this,lfa,b);nt(this,"videoAdUiMuteCancel",this.DB);nt(this,"videoAdUiMuteConfirm",this.yH)}else{pt(this,"mute_url");b={heading:this.o.A,undo:this.o.D,question:this.o.C,options:[],confirm:"SEND",cancel:"CLOSE"};var c=this.o?(c=rp(this.o.g,"mute_undo_url"))&&0<c.length:!1;c||(b.undo="");for(c=0;c<a;c++)b.options.push(this.o.o[c].label);
ot(this,kfa,b);nt(this,"videoAdUiMuteUndo",this.LT);nt(this,"videoAdUiMuteConfirm",this.vT);nt(this,"videoAdUiMuteCancel",this.sq)}}};
g.h.yH=function(){pt(this,"mute_url");this.sq()};
g.h.LT=function(){pt(this,"mute_undo_url");this.Rm()};
g.h.vT=function(){if(null!=this.o){for(var a=jt(this.o),b=!1,c=0;c<a;c++){var d=g.I("videoAdUiMuteOption"+c,this.g);if(null!=d&&d.checked){b=!0;an(this.o.o[c].url);break}}if(!b)return}this.sq()};
g.h.sq=function(){pt(this,"MUTE_AD");this.Rm()};g.D(xt,g.Ef);var Ufa={1:"videoAdUiBrandInteractionHorizontalRect"},Tfa=[1],Yfa=[1],Wfa={1:["videoAdUiBrandInteractionUnitTopBelowTitle"],2:["videoAdUiBrandInteractionUnitTopBelowTitle","videoAdUiBrandInteractionUnitLeft"],3:["videoAdUiBrandInteractionBottom","videoAdUiBrandInteractionUnitLeft"]};xt.prototype.update=function(a){this.V||(this.G=ut(this.o,.5),g.M(this,this.G),this.G.play(),g.O(this.o,!0),this.V=!0,$fa(this));this.N=a};
xt.prototype.fa=function(a){P.g()||a.stopPropagation();var b=a.target.Yh;null!=b&&(this.da++,a=(0,g.G)(),g.Yp(b,"selected")?(g.S(this.o,"optionSelected"),null!=this.A&&g.Vp(this.A,"selected"),this.A=b):(g.Vp(this.o,"optionSelected"),this.A=null),cga(this),this.ha&&(vt(this.o).play(),g.tg(function(){g.O(this.o,!1)},500,this)),aga(this),b=zt(this),this.B.push(b),this.C.push(a.toString()),this.D.push(this.N.toString()))};
xt.prototype.W=function(){null!=this.o&&(g.Gd(this.o),this.o=null);this.A=null;xt.Z.W.call(this)};g.D(Bt,g.Ef);Bt.prototype.D=function(){this.g?this.dispatchEvent("videoUnmuteClicked"):this.dispatchEvent("videoMuteClicked")};
Bt.prototype.W=function(){this.C.dispose();this.C=null;Bt.Z.W.call(this)};g.D(Ct,g.Ef);Ct.prototype.W=function(){null!=this.o&&(g.Gd(this.o),this.o=null);Ct.Z.W.call(this)};
Ct.prototype.update=function(a,b){if(!(0>=b))if(0>a)this.F=1;else if(1==this.F)ut(this.o,.5).play(),g.O(this.o,!0),this.F=2,this.dl("i");else if(this.B){var c=Math.round(b-a);0>c||g.Qd(this.A,hr({Mg:c}))}else this.L&&5<a&&(this.L=!1,g.O(this.A,!1))};
Ct.prototype.O=function(){g.Jh(this.A)||g.O(this.A,!0);this.J++;this.dl("c")};
Ct.prototype.dl=function(a){this.N&&(a=dq({action:"condor-video-preview",event:a,ei:"[EID]",cpn:"[CPN]",content_v:"[CONTENT_V]",ad_v:"[AD_V]",ad_id:"[AD_ID]",ad_len:"[AD_LEN]",m_pos:"[MIDROLL_POS]",show_countdown:Number(this.B),num_clicks:this.J}),a=g.xm(a,this.D.D),an(a))};g.D(Dt,g.Ef);var ega={1:"videoAdUiReasonToWatchBoxWhiteTheme"};Dt.prototype.update=function(a){this.C||fga(this);!this.D&&10<=a&&gga(this)};
Dt.prototype.W=function(){null!=this.g&&(g.Gd(this.g),this.g=null);Dt.Z.W.call(this)};g.D(g.Et,g.L);g.h=g.Et.prototype;g.h.start=function(){this.stop();this.A=!1;var a=Ft(this),b=Gt(this);a&&!b&&this.g.mozRequestAnimationFrame?(this.ya=g.qf(this.g,"MozBeforePaint",this.o),this.g.mozRequestAnimationFrame(null),this.A=!0):this.ya=a&&b?a.call(this.g,this.o):this.g.setTimeout(gba(this.o),20)};
g.h.Ok=function(){this.isActive()||this.start()};
g.h.stop=function(){if(this.isActive()){var a=Ft(this),b=Gt(this);a&&!b&&this.g.mozRequestAnimationFrame?g.zf(this.ya):a&&b?b.call(this.g,this.ya):this.g.clearTimeout(this.ya)}this.ya=null};
g.h.isActive=function(){return null!=this.ya};
g.h.fI=function(){this.A&&this.ya&&g.zf(this.ya);this.ya=null;this.C.call(this.B,(0,g.G)())};
g.h.W=function(){this.stop();g.Et.Z.W.call(this)};g.D(g.Ht,g.L);g.h=g.Ht.prototype;g.h.ya=0;g.h.W=function(){g.Ht.Z.W.call(this);this.stop();delete this.g;delete this.o};
g.h.start=function(a){this.stop();this.ya=g.tg(this.A,g.t(a)?a:this.B)};
g.h.Qd=function(a){this.isActive()||this.start(a)};
g.h.stop=function(){this.isActive()&&g.ug(this.ya);this.ya=0};
g.h.isActive=function(){return 0!=this.ya};
g.h.Ix=function(){this.ya=0;this.g&&this.g.call(this.o)};g.Mt={};g.Kt=null;g.D(Ot,g.Ef);g.h=Ot.prototype;g.h.W=function(){g.Ye(this.B);this.B=null;g.Ye(this.G);this.G=null;null!=this.A&&(g.Gd(this.A),this.A=null);null!=this.skipButton&&(this.skipButton=null);null!=this.o&&(g.Gd(this.o),this.o=null);this.V.dispose();this.V=null;this.ac.dispose();this.ac=null;Ot.Z.W.call(this)};
g.h.update=function(a,b){this.ba=b;this.rq(a);2==this.state&&Nt(this,a)};
g.h.skip=function(){return null==this.config.skipOffset||3!=this.state||this.Y?!1:(this.Y=!0,this.dispatchEvent("PUBLISHER_INVOKED_SKIP"),!0)};
g.h.rq=function(a){if(!(0>=this.ba||null==this.config.skipOffset||0>vp(this.config.skipOffset))){var b=vp(this.config.skipOffset);b>=this.ba||3==this.state||(0>a?this.state=1:a<=b?(2!=this.state&&(Nt(this,0),ut(this.A,.5).play(),g.O(this.A,!0)),this.state=2):(3!=this.state&&this.Vv(),this.state=3,this.dispatchEvent("skipshown")))}};
g.h.Vv=function(){g.O(this.o,!0);this.G=Pt(this.A);this.G.play();this.B=ut(this.o,.5);this.B.play();this.skipButton.autofocus&&this.skipButton.focus()};
g.h.tT=function(a){P.g()||a.stopPropagation();3!=this.state||this.Y||(this.Y=!0,this.dispatchEvent("skip"))};g.D(Vt,Ot);var Rt={fx:0,bx:1},St={fx:1,bx:0},Tt={Ow:15},Ut={Ow:300};g.h=Vt.prototype;g.h.W=function(){Vt.Z.W.call(this);Xt(this);Zt(this)};
g.h.rq=function(a){Vt.Z.rq.call(this,a);if(3==this.state&&!this.fa&&!this.ea){var b=au(this.O,this.g);if(a=$t(a,this.config,this.O))if(this.F==this.J.fx&&a>=b)switch(this.J){case Rt:Wt(this);break;case St:Yt(this,!0)}else if(this.F==this.J.bx&&a<b)switch(this.J){case St:Wt(this);break;case Rt:Yt(this,!0)}}};
g.h.Vv=function(){g.O(this.o,!0);this.G=Pt(this.A);this.G.play();if(this.fa)var a=!1;else{a=au(this.O,this.g);var b=$t(vp(this.config.skipOffset),this.config,this.O);if(null!=b){var c=!1;switch(this.J){case St:c=b<a;break;case Rt:c=b>=a}a=c}else a=!1}a?(this.F=1,this.B=tt(this.o,.5,"ease-in",0,.5)):this.B=ut(this.o,.5);this.B.play();this.skipButton.autofocus&&this.skipButton.focus();this.fa||(this.ac.U(g.Nd(this.o),"mouseover",this.SN),this.ac.U(g.Nd(this.o),"mouseout",this.RN))};
g.h.SN=function(){Zt(this);0!=this.F&&Yt(this,!1);this.ea=!0};
g.h.RN=function(){Zt(this);this.L=g.tg(function(){this.ea=!1;this.L=null},5E3,this)};bu.prototype.getDuration=function(){return this.o};
bu.prototype.Cc=function(){return this.g};
bu.prototype.update=function(a,b){var c=null!=this.F?vp(this.F):0;this.o=0<=this.o?this.o:b;c<=a&&c+this.o>=a?jga(this):g.O(this.g,!1)};var Hra={Ku:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"},1E8:{other:"000M"},1E9:{other:"0B"},1E10:{other:"00B"},1E11:{other:"000B"},1E12:{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},yE:{1E3:{other:"0 thousand"},1E4:{other:"00 thousand"},1E5:{other:"000 thousand"},1E6:{other:"0 million"},1E7:{other:"00 million"},1E8:{other:"000 million"},1E9:{other:"0 billion"},1E10:{other:"00 billion"},1E11:{other:"000 billion"},1E12:{other:"0 trillion"},1E13:{other:"00 trillion"},
1E14:{other:"000 trillion"}}},ou=Hra;ou=Hra;var fu={AED:[2,"dh","\u062f.\u0625.","DH"],ALL:[0,"Lek","Lek"],AUD:[2,"$","AU$"],BDT:[2,"\u09f3","Tk"],BGN:[2,"lev","lev"],BRL:[2,"R$","R$"],CAD:[2,"$","C$"],CDF:[2,"FrCD","CDF"],CHF:[2,"CHF","CHF"],CLP:[0,"$","CL$"],CNY:[2,"\u00a5","RMB\u00a5"],COP:[32,"$","COL$"],CRC:[0,"\u20a1","CR\u20a1"],CZK:[50,"K\u010d","K\u010d"],DKK:[50,"kr.","kr."],DOP:[2,"RD$","RD$"],EGP:[2,"\u00a3","LE"],ETB:[2,"Birr","Birr"],EUR:[2,"\u20ac","\u20ac"],GBP:[2,"\u00a3","GB\u00a3"],HKD:[2,"$","HK$"],HRK:[2,"kn","kn"],HUF:[34,
"Ft","Ft"],IDR:[0,"Rp","Rp"],ILS:[34,"\u20aa","IL\u20aa"],INR:[2,"\u20b9","Rs"],IRR:[0,"Rial","IRR"],ISK:[0,"kr","kr"],JMD:[2,"$","JA$"],JPY:[0,"\u00a5","JP\u00a5"],KRW:[0,"\u20a9","KR\u20a9"],LKR:[2,"Rs","SLRs"],LTL:[2,"Lt","Lt"],MNT:[0,"\u20ae","MN\u20ae"],MVR:[2,"Rf","MVR"],MXN:[2,"$","Mex$"],MYR:[2,"RM","RM"],NOK:[50,"kr","NOkr"],PAB:[2,"B/.","B/."],PEN:[2,"S/.","S/."],PHP:[2,"\u20b1","PHP"],PKR:[0,"Rs","PKRs."],PLN:[50,"z\u0142","z\u0142"],RON:[2,"RON","RON"],RSD:[0,"din","RSD"],RUB:[50,"\u20bd",
"RUB"],SAR:[2,"Rial","Rial"],SEK:[50,"kr","kr"],SGD:[2,"$","S$"],THB:[2,"\u0e3f","THB"],TRY:[2,"TL","YTL"],TWD:[2,"NT$","NT$"],TZS:[0,"TSh","TSh"],UAH:[2,"\u0433\u0440\u043d.","UAH"],USD:[2,"$","US$"],UYU:[2,"$","$U"],VND:[48,"\u20ab","VN\u20ab"],YER:[0,"Rial","Rial"],ZAR:[2,"R","ZAR"]};var Ira={Nu:".",Ep:",",cv:"%",Rp:"0",XF:"+",GF:"-",Ru:"E",dv:"\u2030",Fp:"\u221e",KF:"NaN",Mu:"#,##0.###",gG:"#E0",WF:"#,##0%",OE:"\u00a4#,##0.00",hk:"USD"},eu=Ira;eu=Ira;hu.prototype.parse=function(a,b){var c=b||[0];if(0!=this.J)throw Error("Parsing of compact numbers is unimplemented");a=a.replace(/ /g,"\u00a0");var d=a.indexOf(this.G,c[0])==c[0],e=a.indexOf(this.C,c[0])==c[0];d&&e&&(this.G.length>this.C.length?e=!1:this.G.length<this.C.length&&(d=!1));d?c[0]+=this.G.length:e&&(c[0]+=this.C.length);if(a.indexOf(eu.Fp,c[0])==c[0]){c[0]+=eu.Fp.length;var f=window.Infinity}else{f=a;var k=!1,l=!1,m=!1,n=-1,q=1,r=eu.Nu,w=eu.Ep,z=eu.Ru;if(0!=this.J)throw Error("Parsing of compact style numbers is not implemented");
for(var B="";c[0]<f.length;c[0]++){var C=f.charAt(c[0]),N=nu(C);if(0<=N&&9>=N)B+=N,m=!0;else if(C==r.charAt(0)){if(k||l)break;B+=".";k=!0}else if(C==w.charAt(0)&&("\u00a0"!=w.charAt(0)||c[0]+1<f.length&&0<=nu(f.charAt(c[0]+1)))){if(k||l)break}else if(C==z.charAt(0)){if(l)break;B+="E";l=!0;n=c[0]}else if("+"==C||"-"==C){if(m&&n!=c[0]-1)break;B+=C}else if(1==this.g&&C==eu.cv.charAt(0)){if(1!=q)break;q=100;if(m){c[0]++;break}}else if(1==this.g&&C==eu.dv.charAt(0)){if(1!=q)break;q=1E3;if(m){c[0]++;break}}else break}1!=
this.g&&(q=this.g);f=(0,window.parseFloat)(B)/q}if(d){if(a.indexOf(this.N,c[0])!=c[0])return window.NaN;c[0]+=this.N.length}else if(e){if(a.indexOf(this.I,c[0])!=c[0])return window.NaN;c[0]+=this.I.length}return e?-f:f};
hu.prototype.format=function(a){if((0,window.isNaN)(a))return eu.KF;var b=[];var c=a;if(0==this.J)c=pu;else{c=Math.abs(c);var d=qu(this,1>=c?0:ru(c)).Cq;c=qu(this,d+ru(ku(this,c/Math.pow(10,d)).intValue))}a/=Math.pow(10,c.Cq);b.push(c.prefix);d=0>a||0==a&&0>1/a;b.push(d?this.C:this.G);if((0,window.isFinite)(a))if(a=a*(d?-1:1)*this.g,this.aa){var e=a;if(0==e)lu(this,e,this.o,b),mu(this,0,b);else{a=Math.floor(Math.log(e)/Math.log(10)+2E-15);var f=Math.pow(10,a);(0,window.isFinite)(f)&&0!==f?e/=f:(f=
Math.pow(10,Math.floor(a/2)),e=e/f/f,1==a%2&&(e=0<a?e/10:10*e));f=this.o;if(1<this.O&&this.O>this.o){for(;0!=a%this.O;)e*=10,a--;f=1}else 1>this.o?(a++,e/=10):(a-=this.o-1,e*=Math.pow(10,this.o-1));lu(this,e,f,b);mu(this,a,b)}}else lu(this,a,this.o,b);else b.push(eu.Fp);b.push(d?this.I:this.N);b.push(c.HC);return b.join("")};
var pu={prefix:"",HC:"",Cq:0};g.D(uu,g.Ef);var kga={1:"videoAdUiAttributionYellowBadge",2:"videoAdUiAttributionGreyBadgeYellowText",3:"videoAdUiAttributionWhiteBadgeYellowText",4:"videoAdUiAttributionGreenBadge",5:"videoAdUiAttributionPurpleBadge",6:"videoAdUiAttributionWhiteBadgeGreyText"};g.h=uu.prototype;g.h.show=function(){null!=this.o&&g.O(this.o,!0)};
g.h.skip=function(){var a;if(a=null!=this.B)a=this.B,a=null!=a.config.skipOffset&&3==a.state;return a?this.B.skip():!1};
g.h.W=function(){null!=this.o&&(g.Gd(this.o),this.o=null);wu(this);(0,g.H)(this.aa,function(a){a.Xc()});
this.aa=[];this.C=null;this.A.dispose();this.A=null;this.Ab=!1;uu.Z.W.call(this)};
g.h.update=function(a,b,c,d,e){this.Ab=!0;null!=this.o&&(null!=this.sa&&mga(this,a,c,d,e),null!=this.fa&&g.Eh(this.fa,a/c*100+"%"),null!=this.ub&&g.Eh(this.ub,b/c*100+"%"),0<c&&null!=this.g.skipOffset&&null!=this.B&&(up(this.g.skipOffset,c),this.B.update(a,c)),0<c&&null!=this.pa&&this.pa.update(a),0<c&&null!=this.ra&&this.ra.update(a),0<c&&null!=this.I&&this.I.update(a,c),this.g.O&&0<c&&5>c-a&&g.S(this.da,"videoAdUiTopBarNoFade"),(0,g.H)(this.Ka,function(b){b.update(a,c)},this))};
g.h.hH=function(){this.dispatchEvent("videoAuthorIconClicked")};
g.h.iH=function(){this.dispatchEvent("videoAuthorClicked")};
g.h.mJ=function(a){var b=a.G;a=a.I;E(g.F(b))||this.dispatchEvent(new Dm("videoIconClicked",null,{clickThroughUrl:b}));(0,g.H)(a,function(a){an(a)})};
g.h.Oy=function(){this.dispatchEvent("videoLearnMoreClicked")};
g.h.qT=function(){this.dispatchEvent("videoShareClicked")};
g.h.BT=function(){this.dispatchEvent("videoTitleClicked")};
g.h.JJ=function(a){a.preventDefault()};
g.h.kp=function(){this.dispatchEvent("click")};
g.h.Bb=function(){null!=this.Ka&&(0,g.H)(this.Ka,function(a){cu(a)},this)};
g.h.nT=function(){g.S(this.da,"videoAdUiTopBarTransitions")};
g.h.tS=function(){var a=g.Xd(this.o,"html5-video-player");if(null!=a){var b=this.g.J;null!=a&&(b.C=new g.nm(b),b.A=new g.Ef,b.A.Dh(this),b.D=a,b.DB(),pt(b,"why_this_ad_url"));null!=this.B&&Qt(this.B,!1);null!=this.I&&(a=this.I,null!=a.g&&g.O(a.g,!1))}};
g.h.aU=function(){null!=this.B&&Qt(this.B,!0);if(null!=this.I){var a=this.I;null!=a.g&&g.O(a.g,!0)}};g.D(Cu,g.L);Cu.prototype.J=function(a,b,c){c=g.$b(c||{});if("timeout"==(c.viewability||"")){var d=this.G[a];null!=d&&(c.viewability=d)}if("impression"==a&&!this.I&&null!=this.D&&0<this.D.length){d=P.I&&g.jb(this.F,"impression");var e=Eu(this,this.D,c);Fu(this,e,d);this.I=!0}pga(this,a)&&0<b.length&&(d=P.I&&g.jb(this.F,a),b=Eu(this,b,c),Fu(this,b,d),this.o.set(a,!0))};g.D(Gu,g.Ef);g.h=Gu.prototype;g.h.Jk=function(){if(this.zb()){var a=Us(this.Wc);if(null!=a)return a}return""};
g.h.Ik=function(){if(this.zb()){var a=Vs(this.Wc);if(null!=a)return a}return""};
g.h.Xe=function(){return g.kb(this.ads)?null:this.ads[0]};
g.h.la=function(){if(this.zb()){if(this.Wc.isSkippable()&&!Dn())throw jn(uB,null,"skippablevideo");if(null!=Qs(this.Wc)&&Iu(this,this.Wc.o))throw jn(uB,null,"vpaidWithSkippabilityOverride");return this.Wc}throw jn(Mu,null,"An ad has not been selected.\n"+Error().stack);};
g.h.zb=function(){return null!==this.Wc};
g.h.Pj=function(){var a=(0,g.ib)(this.ads,this.Wc);-1!=a&&++a<this.ads.length?Hu(this,this.ads[a]):Hu(this,null)};
g.h.Sk=function(){var a=(0,g.ib)(this.ads,this.Wc);return-1==a?!1:a+1<this.ads.length};
g.h.Ee=function(){if(!this.Sk())return null;var a=(0,g.ib)(this.ads,this.Wc)+1;return this.ads[a]};
g.h.dh=function(a){var b=a.o;if(b&&b.da&&(b=b.F,!g.kb(b)&&b[0]instanceof Cp))return b[0].dh();b=a.g;return Ku(a)?b.dh():[]};
g.h.Ko=function(){if(!this.zb()){if(g.kb(this.ads))throw jn(hC);Hu(this,this.ads[0]);if(null==this.Wc.g)throw hn(hC);}};
g.h.ia=function(a,b){var c=this.zb()?this.la():null;this.dispatchEvent(new Dm(a,c,b))};
g.h.Hg=function(a){this.Ld=a};
g.h.Wa=function(){null==this.ac&&(this.ac=new g.nm(this));return this.ac};
g.h.XO=function(){};
g.h.Ts=function(){};
g.h.xd=function(a){if(null!=this.Ld){um(this.xe);sm(this.xe,this.Ld,"companion_display_error",function(){});
var b=this.Ld.xd(a);null!=b&&(this.xe.U(b,"companion_impression",this.XO),this.xe.U(b,"companion_click",this.Ts),P.g()&&(a=new Xs(a,b),this.ia("companionInitialized",a)));if(!this.Ld.Xv())throw jn(o2);}};
g.h.destroy=function(){this.dispose()};
g.h.W=function(){this.zb()&&(sq(this.Wc,null),this.Wc=null);g.Ye(this.ac);this.Ld=this.ac=null;this.Vm=!1;P.o?yo(uo(),this.lp):co().F=null;this.Ja&&(g.Ye(this.Ja),this.Ja=null);Gu.Z.W.call(this)};
g.h.We=function(){return[]};
g.h.Lb=function(){return this.ads[0]};
g.h.sj=function(){(0,g.H)(this.ads,function(a){var b;for(b=a.getExtension("sodar");!b&&(a=a.o);)b=a.getExtension("sodar");if(b){var c=b.B;a=b.A;var d=b.C,e=b.o;b="//tpc.googlesyndication.com/sodar/"+(0,window.encodeURIComponent)(c)+".js";var f="//pagead2.googlesyndication.com/bg/"+(0,window.encodeURIComponent)(d)+".js";if(c&&a&&d&&e){d=window;c=d.document;var k={};a&&(k._scs_=a);k._bgu_=f;k._bgp_=e;k._li_="v_h.0.0.0";(a=d.GoogleTyFxhY)&&"function"==typeof a.push||(a=d.GoogleTyFxhY=[]);a.push(k);a=
g.id(c).createElement("SCRIPT");a.type="text/javascript";a.async=!0;g.Vc(a,g.$d(b));c.getElementsByTagName("head")[0].appendChild(a)}}})};
g.h.init=function(a){Nu(this);this.zc(a);this.ge=!0;this.Gj();P.o||(co().F=this.lp)};
g.h.Gj=function(){this.ia("loaded")};
g.h.Rj=function(a){this.zb()&&P.g()&&en(hs(this.la()),a)};
g.h.pC=g.y;g.h.Rc=function(a,b,c){if(!this.Vm){if(null==a)throw jn(io,null,"displayContainer");null!=c&&this.Se(c);this.content=b;this.Ia=a;this.Ko();this.Ha=this.Ia.Uk(Ju(this));this.Vm=!0}};
g.h.Gg=function(a){a=ro(Xr(a),"rm")?a.Y:hs(a);(0,g.H)(a,function(a){g.nb(this.Ob.D,a)},this)};
g.h.jg=function(a,b){(0,g.H)(b,function(b){b=zp(a,b);sp(this.Ob.A,b)},this)};
g.h.Mj=function(a){if(a instanceof Cp){var b=Dp(a);(0,g.H)(b.Db(),function(a){var c=b.get(a);(0,g.H)(c,function(b){tp(this.Ob.A,a,b)},this)},this)}};
g.h.Da=function(a){Du(this.Ob,new g.$e(a))};
g.h.getCurrentTime=function(){return-1};
g.h.getDuration=function(){return-1};
g.h.Lc=function(){return-1};
g.h.xb=function(){return null!=this.Ha?this.Ha.xb():!1};
g.h.Bb=function(a,b,c){this.zc(c)};
g.h.pause=g.y;g.h.resume=g.y;g.h.skip=g.y;g.h.muteAd=g.y;g.h.whyThisAdClicked=g.y;g.h.whyThisAdClosed=g.y;g.h.Se=function(a){if(null==a||!qga(this,a))throw jn(io,null,"adsRenderingSettings should be instance of AdsRenderingSettings");var b=this.Qa;if(null==a.bitrate||0>=a.bitrate)a.bitrate=-1;null==a.mimeTypes&&(a.mimeTypes=[]);rga(a.mimeTypes);if(!g.qa(a.lf)||0>=a.lf)a.lf=Wn();g.dc(b,a)};
g.h.start=function(){Nu(this);if(!this.ge)throw hn(Mu,null,"Must call init before start.");};
g.h.stop=function(){this.destroy()};
g.h.getVolume=function(){return null!=this.volume?this.volume:0};
g.h.setVolume=function(a){((0,window.isNaN)(a)||0>a||1<a)&&mn(this,io,null,"volume",String(a));this.volume=a};
g.h.expand=function(){Nu(this);this.zc("fullscreen")};
g.h.collapse=function(){Nu(this);this.zc("normal")};
g.h.zc=function(a){if(!Ob(tra,a))throw jn(io,null,"view mode",a);this.Zc=a};
g.h.Fc=function(){return this.Vm};
g.h.hasListeners=function(a){return(0,g.Nr)(a,function(a){if(g.ff(this))a=of(this.Be,g.t(a)?String(a):void 0);else{var b=g.tf(this);a=!!b&&of(b,a)}return a},this)};
g.h.eh=function(){return null};
g.h.hj=function(){return null};
g.h.tC=function(){return null};
g.h.De=function(){return null};
g.h.tf=function(){this.Da("abandon")};
g.h.dI=function(){return{currentTime:this.getCurrentTime(),duration:this.getDuration(),isPlaying:this.xb(),isVpaid:this.zb()&&null!=Qs(this.la()),isYouTube:P.g(),volume:this.getVolume()}};
g.h.uj=function(a){do if(Gs(a))return!1;while(a=a.o);return!0};
g.h.Zk=function(){for(var a=0;a<this.ads.length;++a)if(!this.uj(this.ads[a]))return!1;return on()};
g.h.PS=function(a){var b=g.rb(l2,g.Pb(n2));wb(b);(0,g.H)(b,function(b){var c=rp(a.g,b);g.kb(c)||this.xt(b,c)},this);
oga(this.Ob,a.I)};
g.h.xt=function(a,b){(0,g.H)(b,function(a){tp(this.Ob.A,a.Yb(),a.g)},this)};
g.h.GP=function(a){this.Qa.Pw||(a=a.g,null!=a&&(a=a.clickThroughUrl,null!=a&&($m(a),this.pause())))};
g.h.Hj=function(a){var b=a.type;if(g.jb(m2,b)){if("externalActivityEvent"==b&&(b=a.g.eventName,!n2[b]))return;Lu(this,b)}};var Su=["classid","data","movie","type","typemustmatch"];g.sa(g.Tu);g.Tu.prototype.g=0;g.D(g.Uu,g.Ef);g.h=g.Uu.prototype;g.h.qJ=g.Tu.getInstance();g.h.getId=function(){return this.ya||(this.ya=":"+(this.qJ.g++).toString(36))};
g.h.oa=function(){return this.g};
g.h.Dh=function(a){if(this.B&&this.B!=a)throw Error("Method not supported");g.Uu.Z.Dh.call(this,a)};
g.h.En=function(){this.g=this.I.createElement("DIV")};
g.h.aj=function(){this.Je=!0;Wu(this,function(a){!a.Je&&a.oa()&&a.aj()})};
g.h.Ak=function(){Wu(this,function(a){a.Je&&a.Ak()});
this.D&&um(this.D);this.Je=!1};
g.h.W=function(){this.Je&&this.Ak();this.D&&(this.D.dispose(),delete this.D);Wu(this,function(a){a.dispose()});
this.g&&g.Gd(this.g);this.B=this.g=this.F=this.L=null;g.Uu.Z.W.call(this)};
g.h.Cc=function(){return this.g};
g.h.removeChild=function(a,b){if(a){var c=g.u(a)?a:a.getId();a=this.F&&c?Zb(this.F,c)||null:null;if(c&&a){Yb(this.F,c);g.pb(this.L,a);b&&(a.Ak(),a.g&&g.Gd(a.g));c=a;if(null==c)throw Error("Unable to set parent component");c.B=null;g.Uu.Z.Dh.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};g.D(Xu,g.Uu);g.h=Xu.prototype;g.h.fb=null;g.h.pp="window";g.h.Bm="sameDomain";g.h.setSize=function(a,b){this.G=g.u(a)?a:Math.round(a)+"px";this.C=g.u(b)?b:Math.round(b)+"px";this.oa()&&g.Fh(Yu(this),this.G,this.C);return this};
g.h.aj=function(){Xu.Z.aj.call(this);for(var a=this.oa(),b=this.o.Db(),c=this.o.sb(),d=[],e=0;e<b.length;e++){var f=g.Ja(b[e]),k=g.Ja(c[e]);d.push(f+"="+k)}b=d.join("&");if(g.sd&&!g.pc(11)){d=this.J;c={allowFullScreen:"true",AllowScriptAccess:this.Bm,allowNetworking:"all",bgcolor:"#000000",FlashVars:b,quality:"high",SeamlessTabbing:"false",wmode:this.pp};b={"class":"goog-ui-media-flash-object",id:this.getId(),name:this.getId()};sga(b,c);e={allownetworking:"none",allowscriptaccess:"never",movie:d};
d={};for(l in e)d[l]=e[l];for(l in c)f=l.toLowerCase(),f in e&&delete d[f],d[l]=c[l];c=[];for(l in d)c.push(Sc("param",{name:l,value:d[l]}));var l=Tc({classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"},{},b);l=Sc("object",l,c)}else l={AllowScriptAccess:this.Bm,allowFullScreen:"true",allowNetworking:"all",bgcolor:"#000000","class":"goog-ui-media-flash-object",FlashVars:b,id:this.getId(),name:this.getId(),quality:"high",SeamlessTabbing:"false",wmode:this.pp},l=Tc({src:this.J,type:"application/x-shockwave-flash",
pluginspage:"https://www.macromedia.com/go/getflashplayer"},{allownetworking:"none",allowscriptaccess:"never"},l),l=Sc("embed",l);a.innerHTML=g.Nc(l);this.G&&this.C&&this.setSize(this.G,this.C);this.A.U(this.oa(),g.Pb(fra),af)};
g.h.En=function(){if(null!=this.N&&!(0<=g.Va(Xi,this.N)))throw Error("Method not supported");var a=this.I.createElement("DIV");a.className="goog-ui-media-flash";this.g=a};
g.h.W=function(){Xu.Z.W.call(this);this.o=null;this.A.dispose();this.A=null};
g.h.Sb=function(){return this.Je&&this.oa()?g.tO&&Yu(this).readyState&&"complete"==Yu(this).readyState||Yu(this).readyState&&4==Yu(this).readyState||"PercentLoaded"in Yu(this)&&100==Yu(this).PercentLoaded()?!0:!1:!1};g.D(Zu,g.Ef);var Jra=zc(sc(tc("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));zc(sc(tc("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));g.h=Zu.prototype;g.h.dispose=function(){this.g&&(this.g.dispose(),this.o=null);window[this.A]&&delete window[this.A];g.ug(this.B)};
g.h.load=function(a,b,c,d){window[this.A]=(0,g.A)(this.sJ,this);this.g=new Xu(Jra);this.g.setSize(b,c);this.g.Bm="always";this.g.pp="transparent";this.g.o.set("vpaid",a);this.g.o.set("vpaidEventHandler",this.A);Vu(this.g,this.D);this.o=Yu(this.g);this.B=g.tg(this.tJ,d,this)};
g.h.rJ=function(a){if(!this.o)return null;var b=Array.prototype.slice.call(arguments),c=b.shift();if(!this.C&&"handshakeVersion"!=c&&"initAd"!=c)return null;try{if(this.o[c])return this.o[c].apply(this.o,b)}catch(d){}return null};
g.h.sJ=function(a,b){"AdLoaded"==a&&(g.ug(this.B),this.C=!0);this.dispatchEvent(new nn(a,b||null))};
g.h.tJ=function(){this.dispatchEvent("loadError")};g.D(bv,Jp);bv.prototype.wg=function(){var a=this.Er();a=null!=a&&"clicktag"==a.toLowerCase();a={url:Ym(g.F(this.A)),width:this.Gb(),height:this.getHeight(),Ic:this.hf(),capture:this.gw||!a};var b=P.g()&&ro(this.G,"hideMaster")?np:kea;a=Zp(b,a);a.style.width=this.Gb()+"px";a.style.height=this.getHeight()+"px";a.id=this.ya;(0,g.H)(a.getElementsByTagName("object"),this.Si,this);(0,g.H)(a.getElementsByTagName("a"),this.Si,this);return a};g.D(cv,Jp);cv.prototype.wg=function(){var a=g.xd("DIV");a.innerHTML=this.A;this.Si(a);return Np(this,a)};g.D(dv,Jp);dv.prototype.ld=function(){var a=dv.Z.ld.call(this);this.D&&(a=a.replace('src=""','src="'+Ym(g.F(this.A))+'"'));return a};
dv.prototype.Ir=function(){var a=dv.Z.Ir.call(this);this.D&&(a=a.replace('src=""','src="'+Ym(g.F(this.A))+'"'));return a};
dv.prototype.wg=function(a){var b="";this.D||(b=Ym(g.F(this.A)));b={id:this.ya,url:b,Ic:this.hf(),width:this.Gb()+"px",height:this.getHeight()+"px"};a=P.g()&&ro(this.G,"hideMaster")?np:a?mea:lea;a=Zp(a,b);(0,g.H)(a.getElementsByTagName("a"),this.Si,this);return a};
dv.prototype.Wk=function(){return!0};gv.prototype.md=function(){return null!=this.g?Gp[this.g]||"Other":null};g.D(hv,Qp);iv.prototype.parse=function(a){if(null==a)return null;var b,c,d;(0,g.H)(g.Jd(a),function(a){switch(a.nodeName){case "AdFormat":b=a.getAttribute("ad_system"),c=a.getAttribute("ad_type"),d=a.getAttribute("instream_type")}},this);
return null!=b&&null!=c&&null!=d?new hv(b,c,d):null};g.D(kv,Qp);kv.prototype.isPharma=function(){return this.F};lv.prototype.parse=function(a){var b;Gr(a,"config",function(a){null!=b||(b=xga(this,a))},this);
return b};mv.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,f,k,l,m=!1,n=!1;(0,g.H)(g.Jd(a),function(a){switch(a.nodeName){case "AttributionText":c=Fr(a);break;case "AttributionUrl":d=Fr(a);break;case "ConversionUrl":f=Fr(a);break;case "CustomTracking":null!=g.Jd(a)&&(e=Qr(a));break;case "is_pharma":a=Er(a,"bool");n=Kr(g.F(a));break;case "CheckedEvents":a=g.Jd(a);b=(0,g.J)(a,function(a){return Er(a,"id")});
null!=b||(b=[]);break;case "PreviousAdInformation":Fr(a);break;case "VisibleUrl":k=Fr(a);break;case "UI":l=(new lv).parse(a);break;case "ShowYouTubeAnnotations":var q=Fr(a);m=Kr(g.F(q),!1);case "QueryId":Fr(a)}},this);
null!=l||(l=new jv);return new kv(c,d,f,0,k,l,m,0,n,e,b)};nv.prototype.parse=function(a){if(null==a)return null;var b;(0,g.H)(g.Jd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=g.Jd(a)&&(b=Qr(a))}});
a=null;null!=b&&0<rp(b,"skip").length&&(a="Generic");return new Tr(a,b)};ov.prototype.parse=function(a){if(null==a)return null;var b,c;(0,g.H)(g.Jd(a),function(a){switch(a.nodeName){case "SkippableAdType":b=Fr(a);break;case "CustomTracking":null!=g.Jd(a)&&(c=Qr(a))}});
return new Tr(b,c)};pv.prototype.parse=function(a){if(null==a)return null;var b;(0,g.H)(g.Jd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=g.Jd(a)&&(b=Qr(a))}},this);
return new Qp(b)};var r2;g.D(wv,qv);var s2;g.D(xv,qv);var t2,u2;g.D(yv,qv);var Ev;g.D(zv,qv);var Kv;g.D(Av,qv);var v2;g.D(Bv,qv);var w2;g.D(Cv,qv);var x2,y2;g.D(Dv,qv);var z2,A2,B2,Mv;g.D(Cs,qv);var C2,D2,E2,F2,Kfa={AG:0,BG:1,L1:2,U1:3,Hv:4,S1:5,T1:6},G2={AG:0,Q1:1,O1:2,M1:3,N1:4,P1:5,K1:6,R1:7,zG:8,wG:9,xG:10,yG:11};xv.prototype.Yb=function(){return rv(this,"type",0)};
xv.prototype.g=function(){return new Dv(this.data.website_card)};
xv.prototype.Ye=function(){return new yv(this.data.placement)};
zv.prototype.Yb=function(){return rv(this,"type",0)};
zv.prototype.getId=function(){return qr(this,"id")};
zv.prototype.setTitle=function(a){this.data.title=a};
Av.prototype.Yb=function(){return rv(this,"type",0)};
Bv.prototype.nd=function(){return qr(this,"headline")};
Bv.prototype.setDescription=function(a){this.data.description=a};
Cv.prototype.setDescription=function(a){this.data.description=a};
Dv.prototype.nd=function(){return qr(this,"headline")};
Dv.prototype.setDescription=function(a){this.data.description=a};
Dv.prototype.zg=function(){return new Cs(this.data.icon)};
Dv.prototype.un=function(){return new Cs(this.data.banner_image)};
Cs.prototype.getImageUrl=function(){return qr(this,"image_url")};var Qv;
Qv={action:{type:{TYPE_APPLICATION_STORE:4,TYPE_ATTRIBUTION:5,TYPE_CALL_PROMPT:22,TYPE_CHANNEL:2,TYPE_COLLAPSE:17,TYPE_ENGAGEMENT_PANEL:20,TYPE_EXTERNAL:16,TYPE_FUNDRAISING:10,TYPE_GOOGLE_MAP_DIRECTIONS:23,TYPE_GOOGLE_MAP_PLACES:24,TYPE_HEADLINE:1,TYPE_HELPOUTS:15,TYPE_INLINE_APPLICATION_STORE:19,TYPE_INTERNAL:13,TYPE_IRDB:8,TYPE_LETTERMAN:14,TYPE_MERCH:9,TYPE_NONE:0,TYPE_PLAYLIST:7,TYPE_RESPONSE:12,TYPE_RESULTS:11,TYPE_SLAP:21,TYPE_SUBSCRIPTION:6,TYPE_VIDEO:3,TYPE_VOTE:18}},ad_card:{attribution_position:{POSITION_BOTTOM_LEFT:0,POSITION_BOTTOM_RIGHT:3,
POSITION_TOP_LEFT:1,POSITION_TOP_RIGHT:2}},card:{prominence:{PROMINENCE_FEATURE:2,PROMINENCE_HIGHLIGHT:1,PROMINENCE_NONE:0},type:{TYPE_APP:2,TYPE_LOCATION:5,TYPE_NONE:0,TYPE_PRODUCT:1,TYPE_STORE_VISITS:6,TYPE_VOTE:3,TYPE_WEBSITE:4}},event:{type:{TYPE_ACTION:6,TYPE_ACTION_ENDCAP:9,TYPE_COLLAPSE:3,TYPE_COLLAPSE_ENDCAP:10,TYPE_DISMISS:4,TYPE_DISMISS_ENDCAP:11,TYPE_EXPAND:2,TYPE_HEADLINE_CLICK:5,TYPE_IMPRESSION:1,TYPE_IMPRESSION_ENDCAP:8,TYPE_IMPRESSION_GALLERY:7,TYPE_NONE:0}},open_hours:{day_of_week:{DAY_FRIDAY:6,
DAY_MONDAY:2,DAY_SATURDAY:7,DAY_SUNDAY:1,DAY_THURSDAY:5,DAY_TUESDAY:3,DAY_UNKNOWN:0,DAY_WEDNESDAY:4}}};g.D(Ov,Qp);Pv.prototype.parse=function(a){var b=zr(a);if(E(g.F(b)))return null;if(this.g){var c=Rv;if(!r2){var d={};r2={g:d};if(!s2){var e={};s2={g:e};e.type=Fv;if(!t2){var f={};t2={g:f};f.major_version=Nv;f.minor_version=Nv}e.version=Th(t2);e.priority=Nv;e.start_time_ms=Qh("j");e.end_time_ms=Qh("j");e.action=Uh(Jv());e.event=Uh(Iv());z2||(f={},z2={g:f},f.headline=Gv,f.description=Gv,f.attribution_icon_url=Gv,f.skippable_seconds=Nv,f.attribution_position=Fv);e.ad_card=Th(z2);if(!v2){f={};v2={g:f};f.headline=
Gv;f.image=Th(Hv());f.description=Gv;f.rating=e2;f.review_text=Gv;if(!w2){var k={};w2={g:k};k.merchant=Gv;k.price=Gv;k.shipping=Gv;k.shipping_tax=Gv;k.condition=Gv;k.unit_price=Gv;k.energy_label=Gv;k.description=Gv;k.rating=e2;k.review_text=Gv;k.action=Uh(Jv());k.event=Uh(Iv())}f.offer=Uh(w2)}e.product_card=Th(v2);x2||(f={},x2={g:f},f.app_id=Gv,f.app_name=Gv,f.icon=Th(Hv()),f.price=Gv,f.rating_image=Gv,f.review_count=Nv,f.app_store_logo=Th(Hv()),f.button_text=Gv,f.screenshots=Uh(Hv()),f.rating=e2,
f.back_button_text=Gv,f.screenshots_text=Gv,f.cover_photo=Th(Hv()));e.app_card=Th(x2);y2||(f={},y2={g:f},f.headline=Gv,f.description=Gv,f.icon=Th(Hv()),f.banner_image=Th(Hv()));e.website_card=Th(y2);e.prominence=Fv;A2||(f={},A2={g:f},f.call_to_action_text=Gv);e.social_card=Th(A2);B2||(f={},B2={g:f},f.vote_line_1=Gv,f.vote_line_2=Gv,f.confirm_line_1=Gv,f.confirm_line_2=Gv);e.vote_card=Th(B2);e.sponsored=f2;e.teaser_text=Gv;u2||(f={},u2={g:f},f.hide_in_drawer=f2,f.show_in_endcap=f2,f.show_in_companion=
f2,f.show_in_cta=f2,f.override_clickthrough=f2,f.show_in_promotion_shelf=f2);e.placement=Th(u2);C2||(f={},C2={g:f},f.latitude_e6=Nv,f.longitude_e6=Nv,f.address=Gv,f.image=Th(Hv()),f.headline=Gv);e.location_card=Th(C2);D2||(f={},D2={g:f},f.icon=Th(Hv()),f.display_name=Gv,f.latitude_e7=Nv,f.longitude_e7=Nv,F2||(k={},F2={g:k},k.display_address=Gv,k.city_province=Gv),f.address=Th(F2),f.display_phone_number=Gv,E2||(k={},E2={g:k},k.day_of_week=Fv,k.display_day_of_week=Gv,k.display_hours=Gv),f.open_hours=
Uh(E2),f.images=Uh(Hv()),f.distance_to_user_meters=Nv,f.average_rating=Nv,f.num_reviews=Nv);e.merchant_location=Th(D2)}d.card=Uh(s2);d.event=Uh(Iv())}a=c(this,a,r2);a=c=new wv(a);d=new op;for(e=0;e<vv(a,"card");e++)if(f=new xv(uv(a,"card",e)),Bs(f.Ye()))for(k=0;k<vv(f,"event");k++){var l=new Av(uv(f,"event",k)),m=null;switch(l.Yb()){case G2.wG:m="video_card_endcap_action";break;case G2.xG:m="video_card_endcap_collapse";break;case G2.yG:m="video_card_endcap_dismiss";break;case G2.zG:m="video_card_endcap_impression"}m&&
tp(d,m,Sv(m,qr(l,"base_url")))}a=d}else a=yga(this,a);return new Ov(b,c,a)};g.D(Tv,Qp);Tv.prototype.bh=function(){return this.o};g.D(Uv,Qp);Vv.prototype.parse=function(a){if(!a)return null;var b,c;(0,g.H)(g.Jd(a),function(a){switch(a.nodeName){case "FeEventId":b=Fr(a);break;case "AdEventId":c=Fr(a)}},this);
return new Uv(b,c)};Wv.prototype.C=function(a){var b={};(0,g.H)(this.o,function(a){b[a]=[]});
var c=new RegExp("^"+this.A);(0,g.H)(g.Jd(a),function(a){"config"!=a.nodeName||(0,g.H)(g.Jd(a),function(a){"params"!=a.nodeName||(0,g.H)(g.Jd(a),function(a){var d=this.A?a.nodeName.replace(c,""):a.nodeName,e=a.getAttribute("data");null!=e||(e=Fr(a));null!=a.getAttribute("learn_more")&&(e+="|");g.jb(this.o,d)?b[d].push(e):b[d]=e},this)},this)},this);
return b};g.D(Yv,Wv);Yv.prototype.parse=function(a){if(null==a)return null;a=Xv(this,a);var b=a.UI;return new it(b.gone,b.question,b.undo,b.hover_text,a.SurveyOptions||[],a.CustomTracking)};
Yv.prototype.B=function(a){var b=[],c=0;(0,g.H)(g.Jd(a),function(a){if("SurveyOption"==a.nodeName){var d,f;(0,g.H)(g.Jd(a),function(a){switch(a.nodeName){case "DisplayName":d=Fr(a);break;case "URL":f=Fr(a)}},this);
null!=d&&null!=f&&(b.push({label:d,url:f}),c++)}},this);
return b};g.D(Zv,Qp);$v.prototype.parse=function(a){if(null==a)return null;var b=new Zv;(0,g.H)(g.Jd(a),function(a){if("DealId"!=a.nodeName)return null;a=Fr(a);a=g.F(a);E(a)||(b.o=a)},this);
return b};g.D(aw,Qp);bw.prototype.g={oG:"Siub",nG:"Scs",rE:"Bgub",qE:"Bgp"};bw.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;(0,g.H)(g.Jd(a),function(a){switch(a.nodeName){case this.g.oG:b=Fr(a);break;case this.g.nG:c=Fr(a);break;case this.g.rE:d=Fr(a);break;case this.g.qE:e=Fr(a)}},this);
return b&&c&&d&&e?new aw(b,c,d,e):null};g.D(cw,Qp);dw.prototype.g={uG:"TEMPLATE_PARAMETERS",vG:"TEMPLATE_URL"};dw.prototype.parse=function(a){if(null==a)return null;(0,g.H)(g.Jd(a),function(a){switch(a.nodeName){case this.g.uG:zga(this,a)}},this);
return new cw};g.D(ew,Qp);ew.prototype.getImageUrl=function(){return this.B};fw.prototype.g={uF:"Line1",vF:"Line2",wF:"Line3",tF:"ImageUrl"};fw.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,f=0,k=0;(0,g.H)(g.Jd(a),function(a){switch(a.nodeName){case this.g.uF:b=Fr(a,!0);break;case this.g.vF:c=Fr(a,!0);break;case this.g.wF:d=Fr(a,!0);break;case this.g.tF:e=Fr(a);var l=Number(a.getAttribute("width"));f=(0,window.isNaN)(l)?0:l;a=Number(a.getAttribute("height"));k=(0,window.isNaN)(a)?0:a}},this);
return new ew(b,c,d,e,f,k)};g.D(gw,Qp);hw.prototype.parse=function(a){if(null==a)return null;var b;(0,g.H)(g.Jd(a),function(a){switch(a.nodeName){case "ViralExtensionData":a=a.getAttribute("query_id"),E(g.F(a))||(b=a)}},this);
return new gw(b)};g.D(iw,Wv);var Kra=["menu","got_it"],Lra=[["generic_message_left","generic_message_hypertext","generic_message_right"]];iw.prototype.parse=function(a){if(null==a)return null;a=Xv(this,a);var b=a.UI;if(!jw(b,Kra))return null;var c,d=!0,e=!1;(0,g.H)(Lra,function(a){Aga(b,a)&&(jw(b,a)?e=!0:d=!1)});
if(!d||!e)return null;null!=b.generic_message_left&&(c=[b.generic_message_left,b.generic_message_hypertext,b.generic_message_right]);return new kt(b.menu,b.got_it,b.targeting_reason_header,b.targeting_reason,a.CustomTracking,c,b.control,b.learn_more)};kw.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Za(a):window.NaN;a=(0,window.isNaN)(a)?-1:a;return new Ur(a)};g.D(lw,Qp);mw.prototype.parse=function(a){return null!=a?new lw:null};nw.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Za(a):window.NaN;return new Fq(a)};g.D(ow,$u);
ow.prototype.g={fE:"Ad",wp:"AdParameters",jE:"AdSystem",kE:"AdTitle",gE:"Advertiser",nE:"AltText",wE:"ClickThrough",xE:"ClickTracking",zE:"Companion",AE:"CompanionAds",BE:"CompanionClickThrough",CE:"CompanionClickTracking",KE:"Creative",iX:"CreativeExtensions",LE:"Creatives",PE:"CustomClick",TE:"Description",Bp:"Duration",ERROR:"Error",EXTENSION:"Extension",aF:"Extensions",dm:"HTMLResource",iF:"Icon",jF:"Icons",kF:"IconClicks",lF:"IconClickThrough",mF:"IconClickTracking",nF:"IconViewTracking",gm:"IFrameResource",
hm:"Impression",OY:"InLine",LINEAR:"Linear",CF:"MediaFile",DF:"MediaFiles",MF:"NonLinear",NF:"NonLinearAds",OF:"NonLinearClickThrough",PF:"NonLinearClickTracking",YF:"Pricing",jm:"StaticResource",tG:"Survey",E1:"Tracking",Pp:"TrackingEvents",CG:"UniversalAdId",m2:"VAST",EG:"VASTAdTagURI",FG:"VideoClicks",IG:"Wrapper"};
ow.prototype.o={hE:"adId",iE:"adSlotID",mE:"allowMultipleAds",Yl:"apiFramework",Iu:"bitrate",ME:"creativeType",SE:"delivery",Bp:"duration",hY:"event",eF:"followAdditionalWrappers",YE:"expandedHeight",ZE:"expandedWidth",Ue:"height",fm:"id",oF:"idRegistry",pF:"idValue",zF:"maintainAspectRatio",BF:"maxBitrate",HF:"minBitrate",IF:"minSuggestedDuration",QF:"offset",ZF:"program",cG:"required",fG:"scalable",jv:"sequence",lG:"skipoffset",Gv:"type",VERSION:"version",GG:"codec",Df:"width",KG:"xPosition",RG:"yPosition"};
ow.prototype.A=function(){return new av(this.B,Cga(this),null)};g.D(yw,Gu);g.h=yw.prototype;g.h.W=function(){this.F=!1;null===this.g?this.O&&this.dispatchEvent(new Dm("destroyInsecureFlashVpaid",this.la())):this.g.dispose();this.A&&this.ia("contentResumeRequested");this.ia("allAdsCompleted");yw.Z.W.call(this)};
g.h.Lc=function(){var a=this.cd("getAdRemainingTime");return g.qa(a)?a:-1};
g.h.getVolume=function(){var a=this.cd("getAdVolume");return g.qa(a)?a:-1};
g.h.Rc=function(a,b,c){yw.Z.Rc.call(this,a,b,c);this.A=this.la().g instanceof Cp};
g.h.init=function(a){yw.Z.init.call(this,a);a=this.la();var b=Rs(a);b=g.F(b);if(E(b))Cw(this,Error("Flash VPAID ad url is empty."));else{if(Ku(a)){var c=a.g,d=Fp(c);null!=d&&(c.C=d)}this.Wa().U(co(),m2,this.Hj);this.O?this.dispatchEvent(new Dm("initInsecureFlashVpaid",a,{url:g.F(b)})):null===this.Ia.Mf()?Cw(this,Error("Container must be provided for flash VPAID.")):(this.Ia.sd(),null===this.g&&(this.g=new Zu(this.Ia.Mf())),this.Wa().U(this.g,"loadError",this.xP),this.Wa().U(this.g,"vpaidEventType",
this.eg),this.g.load(b,this.L,this.D,this.Qa.lf))}};
g.h.start=function(){if(this.F){yw.Z.start.call(this);var a=this.la();this.Ob.B=a.J;var b=mq(a);this.Ob.g=b;if(b=a.g)this.Gg(a),this.jg(b,l2),this.Mj(b),Ou(this,a);this.Ia.sd();Qu(this);this.Da("show_ad");this.setVolume(this.B);this.o=new g.rg(250);this.Wa().U(this.o,"tick",this.wJ);this.A?this.ia("contentPauseRequested"):(this.ia("contentResumeRequested"),Aw(this));this.o.start();this.cd("startAd")}else this.I=!0};
g.h.stop=function(){this.J||(this.cd("stopAd"),this.Ia.hide(),null!=this.o&&(this.o.stop(),this.o=null),yw.Z.stop.call(this),this.J=!0)};
g.h.Bb=function(a,b,c){yw.Z.Bb.call(this,a,b,c);if(null!==this.g){var d=this.g;d.g&&d.g.setSize(a,b)}this.L=a;this.D=b;this.cd("resizeAd",a,b,c)};
g.h.pause=function(){null!=this.o&&this.o.stop();this.cd("pauseAd")};
g.h.resume=function(){null!=this.o&&this.o.start();this.cd("resumeAd")};
g.h.setVolume=function(a){this.B=a;this.N.getAdVolume=a;this.cd("setAdVolume",a)};
g.h.expand=function(){this.cd("expandAd")};
g.h.collapse=function(){this.cd("collapseAd")};
g.h.Gj=g.y;g.h.Wb=function(){return zw(this)};
g.h.skip=function(){this.cd("skipAd")};
g.h.getDuration=function(){var a=this.cd("getAdDuration");if(g.qa(a))return a;a=this.Lc();return 0<=a?this.C/1E3+a:-2};
g.h.wJ=function(){this.C+=250;var a=this.getDuration(),b=a-this.Lc();Ru(this,b,a)};
g.h.cd=function(a){if(this.J)return null;for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c]);return this.O?(c=b.shift(),this.dispatchEvent(new Dm("callFlashVpaidMethod",this.zb()?this.la():null,{methodName:c,args:b})),this.N[c]):null===this.g?null:this.g.rJ.apply(this.g,b)};
g.h.xP=function(){Cw(this,Error("Flash VPAID loader failed to load."))};
g.h.getCurrentTime=function(){return this.C/1E3};
g.h.eg=function(a){var b=a.data;switch(a.g){case "flashVpaidMethodResults":b&&(this.N[b.methodName]=b.result);break;case "flashReady":this.cd("handshakeVersion","2.0");b=js(this.la());this.cd("initAd",this.L,this.D,this.Zc,this.Qa.bitrate,b);break;case "AdLoaded":this.F=!0;b=this.cd("getAdCompanions");a=g.u(b)?b:"";b=this.la();g.kb(is(b))&&(a=rw(a,b.g.g),g.kb(a)||Vr(b,a));Lu(this,"loaded");this.I&&(this.I=!1,this.start());break;case "AdStarted":this.Da("impression");this.Da("creativeview");this.ia("start");
break;case "AdVideoStart":this.Da("start");break;case "AdClickThru":b&&b.playerHandles&&((b=b.url)||(b=g.F(ls(this.la()))),b&&$m(b));this.Da("click");this.ia("click");break;case "AdDurationChange":this.ia("durationChange");break;case "AdRemainingTimeChange":this.ia("durationChange");Aw(this);break;case "AdError":a="AdError";b&&(a=b.message);Cw(this,Error(a));break;case "AdExpandedChange":this.ia("expandedChanged");break;case "AdImpression":b=this.la();g.kb(is(b))||this.xd(b);this.ia("impression");
break;case "AdLinearChange":b=zw(this);!this.A&&b?(this.ia("contentPauseRequested"),g.ug(this.G)):this.A&&!b&&(this.ia("contentResumeRequested"),Aw(this));this.A=b;a=this.Wc;a.ra=!0;a.bb=b;this.ia("linearChanged");break;case "AdVolumeChange":b=this.getVolume();b!=this.B&&(this.ia("volumeChange"),0==b&&0!=this.B?(this.Da("mute"),this.ia("mute")):0==this.B&&0!=b&&this.Da("unmute"),this.B=b);break;case "AdPaused":Lu(this,"pause");break;case "AdUserClose":Lu(this,"userClose");break;case "AdUserMinimize":this.Da("collapse");
break;case "AdVideoFirstQuartile":Lu(this,"firstquartile");break;case "AdVideoMidpoint":Lu(this,"midpoint");break;case "AdVideoThirdQuartile":Lu(this,"thirdquartile");break;case "AdVideoComplete":Dw(this);break;case "AdUserAcceptInvitation":this.A?this.Da("acceptinvitationlinear"):this.Da("acceptinvitation");break;case "AdStopped":Dw(this);this.Da("stop");this.stop();break;case "AdSkipped":Lu(this,"skip");break;case "AdSkippableStateChange":Lu(this,"skippableStateChanged");break;case "AdPlaying":Lu(this,
"resume");break;case "AdLog":this.ia("log")}};g.D(Ew,Gu);var Mra=zc(sc(tc("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));zc(sc(tc("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));g.h=Ew.prototype;g.h.W=function(){this.F=!1;this.g&&(this.g.dispose(),this.C=null);g.ug(this.G);this.A&&this.ia("contentResumeRequested");this.ia("allAdsCompleted");Ew.Z.W.call(this)};
g.h.Lc=function(){var a=this.jd("getAdRemainingTime");return g.qa(a)?a:-1};
g.h.getVolume=function(){var a=this.jd("getAdVolume");return g.qa(a)?a:-1};
g.h.Rc=function(a,b,c){Ew.Z.Rc.call(this,a,b,c);this.A=this.la().g instanceof Cp};
g.h.init=function(a){Ew.Z.init.call(this,a);window[this.V]=(0,g.A)(this.xJ,this);this.Wa().U(co(),m2,this.Hj);this.g=new Xu(Mra);this.g.setSize(this.N,this.I);this.g.Bm="always";var b=this.la();a=Rs(b);a=g.F(a);if(E(a))Hw(this,Bw,Error("Flash VPAID ad url is empty.")),this.stop();else{if(Ku(b)){b=b.g;var c=Fp(b);null!=c&&(b.C=c)}this.g.o.set("vpaid",a);this.g.pp="transparent";this.g.o.set("vpaidEventHandler",this.V);this.Ia.sd();Vu(this.g,this.Ia.Mf());this.C=Yu(this.g);this.G=g.tg(this.zJ,this.Qa.lf,
this)}};
g.h.start=function(){if(this.F){Ew.Z.start.call(this);var a=this.la();this.Ob.B=a.J;var b=mq(a);this.Ob.g=b;if(b=a.g)this.Gg(a),this.jg(b,l2),this.Mj(b),Ou(this,a);this.Ia.sd();Qu(this);this.Da("show_ad");this.setVolume(this.B);this.o=new g.rg(250);this.Wa().U(this.o,"tick",this.yJ);this.A?this.ia("contentPauseRequested"):(this.ia("contentResumeRequested"),Gw(this));this.o.start();this.jd("startAd")}else this.L=!0};
g.h.stop=function(){this.Y||(this.Y=!0,this.jd("stopAd"),this.Ia.hide(),null!=this.o&&(this.o.stop(),this.o=null),Ew.Z.stop.call(this))};
g.h.Bb=function(a,b,c){Ew.Z.Bb.call(this,a,b,c);this.N=a;this.I=b;null!=this.g&&this.g.setSize(a,b);this.jd("resizeAd",a,b,c)};
g.h.pause=function(){null!=this.o&&this.o.stop();this.jd("pauseAd")};
g.h.resume=function(){null!=this.o&&this.o.start();this.jd("resumeAd")};
g.h.setVolume=function(a){this.B=a;this.jd("setAdVolume",a)};
g.h.expand=function(){this.jd("expandAd")};
g.h.collapse=function(){this.jd("collapseAd")};
g.h.Gj=function(){};
g.h.Wb=function(){return Fw(this)};
g.h.skip=function(){this.jd("skipAd")};
g.h.getDuration=function(){var a=this.jd("getAdDuration");if(g.qa(a))return a;a=this.Lc();return 0<=a?this.D/1E3+a:-2};
g.h.yJ=function(){this.D+=250;var a=this.getDuration(),b=a-this.Lc();Ru(this,b,a)};
g.h.jd=function(a){if(!this.g||!this.C)return null;for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c]);c=b.shift();var d=!1;this.F&&(d=!0);if("handshakeVersion"==c||"initAd"==c)d=!0;if(d)try{if(null!=this.C[c])return this.C[c].apply(this.C,b)}catch(e){}return null};
g.h.zJ=function(){Hw(this,p2,null,(this.Qa.lf/1E3).toString());this.stop()};
g.h.getCurrentTime=function(){return this.D/1E3};
g.h.xJ=function(a,b){switch(a){case "flashReady":this.jd("handshakeVersion","2.0");var c=js(this.la());this.C.initAd(this.N,this.I,this.Zc,this.Qa.bitrate,c);break;case "AdLoaded":g.ug(this.G);this.F=!0;c=this.jd("getAdCompanions");var d=g.u(c)?c:"";c=this.la();g.kb(is(c))&&(d=rw(d,c.g.g),g.kb(d)||Vr(c,d));Lu(this,"loaded");this.L&&(this.L=!1,this.start());break;case "AdStarted":this.Da("impression");this.Da("creativeview");this.ia("start");break;case "AdVideoStart":this.Da("start");break;case "AdClickThru":b&&
b.playerHandles&&((c=b.url)||(c=g.F(ls(this.la()))),null!=c&&$m(c));this.Da("click");this.ia("click");break;case "AdDurationChange":this.ia("durationChange");break;case "AdRemainingTimeChange":this.ia("durationChange");Gw(this);break;case "AdError":c="AdError";b&&(c=b.message);Hw(this,Bw,Error(c));this.stop();break;case "AdExpandedChange":this.ia("expandedChanged");break;case "AdImpression":c=this.la();g.kb(is(c))||this.xd(c);this.ia("impression");break;case "AdLinearChange":c=Fw(this);!this.A&&c?
(this.ia("contentPauseRequested"),g.ug(this.J)):this.A&&!c&&(this.ia("contentResumeRequested"),Gw(this));this.A=c;d=this.Wc;d.ra=!0;d.bb=c;this.ia("linearChanged");break;case "AdVolumeChange":c=this.getVolume();c!=this.B&&(c!=this.B&&this.ia("volumeChange"),0==c&&0!=this.B?(this.Da("mute"),this.ia("mute")):0==this.B&&0!=c&&this.Da("unmute"),this.B=c);break;case "AdPaused":Lu(this,"pause");break;case "AdUserClose":Lu(this,"userClose");break;case "AdUserMinimize":this.Da("collapse");break;case "AdVideoFirstQuartile":Lu(this,
"firstquartile");break;case "AdVideoMidpoint":Lu(this,"midpoint");break;case "AdVideoThirdQuartile":Lu(this,"thirdquartile");break;case "AdVideoComplete":Iw(this);break;case "AdUserAcceptInvitation":this.A?this.Da("acceptinvitationlinear"):this.Da("acceptinvitation");break;case "AdStopped":Iw(this);this.Da("stop");this.stop();break;case "AdSkipped":Lu(this,"skip");break;case "AdSkippableStateChange":Lu(this,"skippableStateChanged");break;case "AdPlaying":Lu(this,"resume");break;case "AdLog":this.ia("log")}};g.D(Jw,Dm);Mw.prototype.g=null;var H2;g.D(Tw,Mw);H2=new Tw;g.D(Vw,g.Ef);Vw.prototype.fb=null;var Nga=/^https?$/i,Nra=["POST","PUT"];g.h=Vw.prototype;
g.h.send=function(a,b,c,d){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.J+"; newUri="+a);b=b?b.toUpperCase():"GET";this.J=a;this.D="";this.o=0;this.aa=b;this.V=!1;this.A=!0;this.g=this.O?Uw(this.O):Uw(H2);this.N=this.O?Sw(this.O):Sw(H2);this.g.onreadystatechange=(0,g.A)(this.Lx,this);try{wm(bx(this,"Opening Xhr")),this.Y=!0,this.g.open(b,String(a),!0),this.Y=!1}catch(f){wm(bx(this,"Error opening Xhr: "+f.message));Zw(this,f);return}a=c||"";var e=this.headers.clone();
d&&rda(d,function(a,b){e.set(b,a)});
d=g.eb(e.Db(),Mga);c=v.FormData&&a instanceof v.FormData;!g.jb(Nra,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,b){this.g.setRequestHeader(b,a)},this);
this.ba&&(this.g.responseType=this.ba);"withCredentials"in this.g&&this.g.withCredentials!==this.G&&(this.g.withCredentials=this.G);try{dx(this),0<this.C&&(this.L=Lga(this.g),wm(bx(this,"Will abort after "+this.C+"ms if incomplete, xhr2 "+this.L)),this.L?(this.g.timeout=this.C,this.g.ontimeout=(0,g.A)(this.Mx,this)):this.F=g.tg(this.Mx,this.C,this)),wm(bx(this,"Sending request")),this.I=!0,this.g.send(a),this.I=!1}catch(f){wm(bx(this,"Send error: "+f.message)),Zw(this,f)}};
g.h.Mx=function(){"undefined"!=typeof $w&&this.g&&(this.D="Timed out after "+this.C+"ms, aborting",this.o=8,bx(this,this.D),this.dispatchEvent("timeout"),this.abort(8))};
g.h.abort=function(a){this.g&&this.A&&(bx(this,"Aborting"),this.A=!1,this.B=!0,this.g.abort(),this.B=!1,this.o=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Yw(this))};
g.h.W=function(){this.g&&(this.A&&(this.A=!1,this.B=!0,this.g.abort(),this.B=!1),Yw(this,!0));Vw.Z.W.call(this)};
g.h.Lx=function(){this.ma()||(this.Y||this.I||this.B?cx(this):this.UQ())};
g.h.UQ=function(){cx(this)};
g.h.isActive=function(){return!!this.g};
g.h.getStatus=function(){try{return 2<ax(this)?this.g.status:-1}catch(a){return-1}};g.p(gx,Bi);gx.prototype.O=function(){if(this.o&&this.N){if(0<this.events.length||0<Aba(this.G)){var a={};200<this.events.length&&(this.events.length=200);(0,g.H)(this.events,function(b){var c="met."+b.type;a[c]?a[c].push(hx(b)):a[c]=[hx(b)]});
Qga(this,a);this.C===this.J&&this.Ej()}this.events.length=0;this.g.clearTimeout(this.B);this.B=0}};
gx.prototype.Do=function(a){this.C<this.J&&(Bi.prototype.Do.call(this,a),200<=this.events.length&&this.O())};
gx.prototype.Ej=function(){Bi.prototype.Ej.call(this);this.g.clearTimeout(this.B);this.B=0;ai(this.g,"unload",this.A);ai(this.g,"load",this.I)};kx.prototype.isLoggingEnabled=function(){return!!this.g};
g.sa(kx);g.D(nx,g.L);nx.prototype.W=function(){this.o.enabled&&this.o.stop();this.g=[];nx.Z.W.call(this)};
nx.prototype.D=function(){var a=1E3*this.J.getCurrentTime(),b=(0,g.G)();this.g.push(new Uga(a,b));for(a=b-this.g[0].g;1E4<a;)this.g.shift(),a=b-this.g[0].g;2>this.g.length?b=!0:(a=this.g.length-1,b=this.g[a].g-this.g[0].g,a=this.g[a].o-this.g[0].o,b<this.G||0>a?b=!0:(b=a/b,b<this.B&&(this.B=b),b=.5<=b));b||(this.I=!0,b=this.J,null!=b.o&&px(b.o),ey(b,zra,jn(zra)))};qx.prototype.isListed=!0;qx.prototype.ig=-1;g.D(sx,g.Ef);g.h=sx.prototype;g.h.start=function(){this.ur();this.A=0;tx(this);this.o=!0;this.C.start()};
g.h.play=function(){this.o||(tx(this),this.o=!0,this.C.start())};
g.h.pause=function(){this.o&&tx(this)};
g.h.stop=function(){this.o&&tx(this);this.dispatchEvent("end")};
g.h.ur=function(){};
g.h.NQ=function(){this.A+=.2;this.tr(this.A,this.N);this.dispatchEvent("timeUpdate");0>=this.N-this.A&&this.stop()};
g.h.tr=g.y;g.h.W=function(){this.o=!1;this.J.dispose();sx.Z.W.call(this)};g.D(vx,sx);g.h=vx.prototype;g.h.start=function(){this.ur();this.B.update(0,this.I);ut(this.g,this.G.A).play();this.J.U(this.B,"skip",this.aH);vx.Z.start.call(this)};
g.h.ur=function(){var a=g.Gh(this.g);if(1==this.F){var b=400>=(0,window.parseInt)(g.rh(this.g,"width"),10)||400>=a.width;g.T(this.g,"videoAdUi-mobile",b)}else if(2==this.F){var c=g.Ld(this.g),d=g.Gh(c),e=65>=(a.height-d.height)/2;g.T(this.g,"fullslotAdUi-mobile",e);b=165>=(a.width-d.width)/2;g.T(this.g,"videoAdUi-mobile",b&&e);c.style.top=Math.max(5,Math.floor((a.height-d.height-65)/2))+"px"}};
g.h.aH=function(){this.pause();this.dispatchEvent("skip")};
g.h.tr=function(a,b){this.B.update(a,b);if(this.D){var c=rx({Mg:ux(b-a)});g.Qd(this.D,c)}};
g.h.W=function(){this.B&&this.B.dispose();g.Dd(this.g);vx.Z.W.call(this)};g.D(yx,sx);var xx=Math.ceil(10*3.14);yx.prototype.F=function(a){P.g()||a.stopPropagation();this.dispatchEvent("click")};
yx.prototype.start=function(){yx.Z.start.call(this);null==this.g?this.stop():this.I&&(this.O&&780<=g.Gh(this.V).width&&this.I.ry(!0),this.I.xr())};
yx.prototype.tr=function(a,b){var c=a/b*xx+" "+xx;null!=this.g&&g.nh(this.g,"stroke-dasharray",c)};g.D(zx,g.L);zx.prototype.show=function(a,b,c){Ax(this);var d=VN&&a&&!0,e=Rm();if(e.g("mweb_disable_iphone_interstitial_for_ios_10")||e.g("mweb_disable_iphone_interstitial_for_ios_10_ads_backend"))d=d&&(!vn(10)||!b);d?(a.appendChild(this.A),this.g=g.tg((0,g.A)(this.o,this,c),2E3)):c()};
zx.prototype.o=function(a){this.g=0;g.Gd(this.A);a()};
zx.prototype.W=function(){Ax(this);zx.Z.W.call(this)};g.D(Cx,g.$e);g.D(Dx,g.Ef);Ex.prototype.muted=function(a,b){return!this.mute&&a||0!=this.volume&&0==b};
var aha={click:3,videoLearnMoreClicked:3,videoShareClicked:8,videoTitleClicked:14,videoAuthorClicked:15,videoAuthorIconClicked:15};g.h=Dx.prototype;g.h.W=function(){this.Xc();Dx.Z.W.call(this)};
g.h.Xc=function(){null!=this.o&&this.o.dispose();null!=this.g&&this.g.Xc();null!=this.D&&this.D.dispose();this.D=null;null!=this.I&&this.I.dispose();this.I=null;this.N.clear();this.J=-1;this.F="";this.G=this.O=!1};
g.h.Cb=function(a,b,c,d){this.Xc();this.B.B=a.J;this.g=b;this.A=d||null;this.g.Cb();this.C=new Ex(this.g);this.L=c||null;this.o=new g.nm(this);this.F=a.J;a=P.o?uo():co();this.o.U(a,"externalActivityEvent",this.vP);this.o.U(a,"measurable_impression",this.YP);this.o.U(a,"viewable_impression",this.dS);this.o.U(this.g,"timeUpdate",this.eK);this.o.U(this.g,"volumeChange",this.fK);this.o.U(this.g,"pause",this.bK);this.o.U(this.g,"play",this.cK);this.o.U(this.g,"end",this.sP);this.o.U(this.g,"beginFullscreen",
this.ZJ);this.o.U(this.g,"endFullscreen",this.uP);this.o.U(this.g,"skip",this.By);this.o.U(this.g,"skipShown",this.tB);this.o.U(this.g,"start",this.dK);this.o.U(this.g,"error",this.YJ);this.o.U(this.g,"mediaLoadTimeout",this.aK);null!=this.A&&(this.o.U(this.A,"videoIconClicked",(0,g.A)(function(a){this.dispatchEvent(a)},this)),this.o.U(this.A,"urlNavigationRequested",(0,g.A)(function(a){this.dispatchEvent(a)},this)),this.o.U(this.A,"videoShareShown",this.cS),this.o.U(this.A,"skipshown",this.tB),this.o.U(this.A,
"skip",this.By),this.o.U(this.A,"PUBLISHER_INVOKED_SKIP",this.RQ),this.o.U(this.A,"MUTE_AD videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoMuteClicked videoTitleClicked videoShareClicked videoUnmuteClicked why_this_ad_url why_this_ad_got_it why_this_ad_settings_url why_this_ad_learn_more mute_interaction_url mute_url mute_undo_url".split(" "),this.UH))};
g.h.YP=function(a){var b=a.g;this.B.G.measurable_impression=null!=b?b.viewabilityString:null;a.g.queryId==this.F&&Fx(this,"measurable_impression",!0,!1)};
g.h.dS=function(a){a=a.g;a.queryId==this.F&&(this.B.G.viewable_impression=null!=a?a.viewabilityString:null,Fx(this,"viewable_impression",!0,!0))};
g.h.vP=function(a){a=a.g;var b=n2[a.eventName];b&&a.queryId==this.F&&(this.B.G[b]=null!=a?a.viewabilityString:null,Fx(this,b,!0,!0))};
g.h.eK=function(){if(this.G){var a=this.g.getDuration();if(-1!=a){this.g.vk(.25*a)&&Fx(this,"firstquartile",!0,!0);this.g.vk(.5*a)&&Fx(this,"midpoint",!0,!0);this.g.vk(.75*a)&&Fx(this,"thirdquartile",!0,!0);var b=this.B,c=this.g.getCurrentTime();if(!Rl(b.o,"skip")){0>b.C&&(nea(b.A,a),b.C=0);a=rp(b.A,"progress");for(var d=[],e=b.C;e<a.length;e++){var f=a[e];if(vp(f.o)>c)break;b.C=e+1;d.push(f.g)}0<d.length&&Du(b,new g.$e("progress"),d)}}Gx(this)}};
g.h.dK=function(){this.G=!0;Fx(this,"impression",!0,!0);Fx(this,"creativeview",!0,!0);null!=this.L||null!=this.A||this.o.U(this.g,"click",this.Jr);null!=this.L&&(this.D=new Ys,this.o.U(this.D,"click",this.Jr,!1),this.D.Cb(this.L));null!=this.A&&(this.I=new Ys,this.o.U(this.I,"click",this.Jr,!1),this.I.Cb(this.A));Fx(this,"start",!0,!0);(this.g.pj()||0==this.g.getVolume())&&Fx(this,"mute",!1,!1)};
g.h.fK=function(){var a=this.g.pj(),b=this.g.getVolume(),c=this.C;c.mute&&!a||!a&&0==c.volume&&0<b?Fx(this,"unmute",!1,!1):this.C.muted(a,b)&&Fx(this,"mute",!1,!1);this.C.mute=a;this.C.volume=b};
g.h.bK=function(){this.g.jh()?Hx(this):this.g.ki()&&!this.g.qy()&&(this.C.paused=!0,Fx(this,"pause",!1,!1))};
g.h.cK=function(){this.C.paused&&(this.C.paused=!1,Fx(this,"resume",!1,!1))};
g.h.sP=function(){Hx(this)};
g.h.Jr=function(){Fx(this,"click",!1,!1)};
g.h.YJ=function(){Fx(this,"error",!1,!1)};
g.h.aK=function(){Fx(this,"mediaLoadTimeout",!1,!1)};
g.h.tB=function(){Fx(this,"skipshown",!0,!1)};
g.h.UH=function(a){Fx(this,a.type,!1,!1)};
g.h.cS=function(){Fx(this,"videoShareShown",!0,!1)};
g.h.By=function(){Fx(this,"skip",!0,!1)};
g.h.RQ=function(){Fx(this,"skip",!0,!1)};
g.h.ZJ=function(){Fx(this,"fullscreen",!1,!1)};
g.h.uP=function(){Fx(this,"exitfullscreen",!1,!1)};g.h=Jx.prototype;g.h.Jc=function(){return this.g.Jc()};
g.h.remove=function(a){return this.g.remove(Kx(a))};
g.h.clear=function(){this.g.clear()};
g.h.isEmpty=function(){return this.g.isEmpty()};
g.h.contains=function(a){return Rl(this.g,Kx(a))};
g.h.sb=function(){return this.g.sb()};
g.h.clone=function(){return new Jx(this)};
g.h.Yd=function(){return this.g.Yd(!1)};g.D(Lx,Gu);g.h=Lx.prototype;g.h.W=function(){Px(this);this.aa.dispose();Nx(this);g.H(this.I.sb(),g.ug);var a=!1;null!=this.Ia&&(a=this.Ia.nj(),this.Ia.hide(),this.Ia=null);this.G&&(this.G=!1,this.Ha.ki()||this.Ha.jh()||this.Ha.pause(),sn()&&!a&&(this.Ha.qj(.001),this.Ha.load("","")),rn()&&this.Ha.oj()&&!a&&this.Ha.wr(),this.ia("contentResumeRequested"),this.ia("allAdsCompleted"));null!=this.Ha&&this.Ha.unload();null!=this.o&&(g.Ye(this.o),this.o=null);Lx.Z.W.call(this)};
g.h.muteAd=function(){P.g()&&(this.Da("mute_interaction_url"),this.Da("mute_url"),this.ia("MUTE_AD"),Mx(this,function(){Ox(this)}))};
g.h.whyThisAdClicked=function(){P.g()&&this.Da("why_this_ad_url")};
g.h.whyThisAdClosed=function(){P.g()&&this.Da("why_this_ad_got_it")};
g.h.Pj=function(){Nx(this);Lx.Z.Pj.call(this);this.zb()&&(this.Ob=new Cu,this.B=new Dx(this.Ob),this.V=!1,this.ia("loaded"))};
g.h.Ts=function(a){Lx.Z.Ts.call(this,a);null!=this.Ha&&this.Ha.Ft(1)};
g.h.Xw=function(a,b){b.preventDefault();this.F||(this.F=!0,Lu(this,"video_card_endcap_action"));a&&(this.g.pause(),$m(a))};
g.h.Yw=function(){Mx(this,function(){Qx(this,"video_card_endcap_dismiss")})};
g.h.LH=function(){Qx(this,"video_card_endcap_collapse")};
g.h.Zr=function(a,b,c,d){var e=bq(b);e&&(a.D=e);var f=a.getExtension("AdSense");null!=f&&null!=f.o&&f.o.o&&this.setVolume(0);if(this.Qa.ZC){e=a.getExtension("AdSense");(f=this.da)||(f=null===b?!1:"modules"==(new g.Vl(b)).ci().toLowerCase()||eq(b));var k=f||null!=e&&e.G;e=a.isBumper()?null:Ns(a);if((P.g()||Nk()?0:on()&&(!this.Zk()||null==this.Ia||!this.Ia.zq())||Ts(a)||this.Qa.iu)||!P.g()&&k)this.Qa.fu=!0,this.Qa.iu=!0;f=mq(a,this.Ha);if(P.g()||this.Qa.iu){var l=E(g.F(ls(a)))?!1:this.Qa.fu,m=a.D,n=
a.isBumper(),q=this.Qa,r=P.g()||!1,w=P.g();this.uj(a);var z=ks(a,"feedbackLike"),B=ks(a,"feedbackDislike");z=1!=z.length||1!=B.length?null:{feedbackLike:z[0],feedbackDislike:B[0]};e=rt(k,m,e,n,q,f);e.A=l;e.ka=q.UT;e.Va=r;e.fa=!0;e.ea=w;e.I=q.cu;e.pa=q.hu;e.bb=q.VT;e.C=q.gy;e.aa=0;q.cu&&(e.ph=""+Ca("Visit Advertiser"));e.Ra=z}else es(a)?(l=a.D,q=a.isBumper(),!E(g.F(l))&&null!==e&&0<vp(e)&&(k=!0),e=rt(k,l,e,q,this.Qa,f),e.Y=k?Zea:Yea):(l=a.isBumper(),e=rt(k,a.D,e,l,this.Qa,f),e.C=!1,e.F=!1,e.o=!1);
Tm(Qm(),420706069)&&(P.D=!0);!P.g()&&P.D&&(e.N=!0);f=e;k=this.Ia.Nk();null===k?k=window.document.body:g.Dd(k);l=this.la();q=1E3*l.getDuration();r=l.getExtension("why_this_ad");w=l.getExtension("mute");f.J=new lt(r,w);mt(f.J)&&(w=null!=r?r.B:void 0,r="<span class='"+R("videoAdUiAdSettingsShortTooltip")+"'>",w?r+=Q(w):(w=Ca("Click for Ad Settings"),r+=w),r=To(r+"</span>"),f.re=r);this.Ja=new uu(f,k,q,l.bf());k=l.D;null!=k&&Tx(this,k,f.bb);f=this.Ja;f.V&&(f=f.V,k=0==this.D,f.g!=k&&(f.g=k,At(f)));this.da&&
(k=a.getExtension("AdSense"),null!=k?(f=this.Ja,k=g.F(k.A),null!=f.J&&(g.O(f.J,!0),k=new g.Vl(k),k=Ma((k.o+k.A).replace(/^www\./i,""),35),E(g.F(k))?yu(f):g.Qd(f.J,k)),null!=f.ba&&g.O(f.ba,!0)):yu(this.Ja));f=[];e.F&&f.push("adAttribution");e.o&&f.push("countdown")}else e&&Tx(this,e,this.Qa.aq);if(d=d?this.Ia.In():this.Ha)Yx(this)?(d.Cb(),this.Wa().U(d,"error",this.lB),this.Wa().U(d,"loaded",g.y)):this.To(a),d.Mo(fha(this,a)),d.load(b,c)};
g.h.Rv=function(a){var b=this.zb()?this.la().D:null;if(b){var c=this.Jk();Rx(this)&&a&&(c=qha(this,c,a));a=this.Ik();c||a||!Rx(this)||(c=" ");(c||a)&&this.Ha.vr(b,c||null,a||null)}};
g.h.xS=function(a,b,c){null!==a.L&&Vn(Sn.getInstance(),34,{evt:"filled"},!0);this.ea||(this.ea=!0,this.ia("contentPauseRequested"));$x(this)&&!this.L||Yx(this)||this.Zr(a,b,c);this.G=!0;this.setVolume(this.D);this.Ja&&(E(g.F(Wx(a)))?(b=this.Ja,null!=b.C&&(b.A.Ca(b.C,"click",b.kp),g.nh(b.C,"cursor","default"))):(b=this.Ja,null!=b.C&&(b.A.U(b.C,"click",b.kp),null!=b.F&&!g.Jh(b.F)&&g.nh(b.C,"cursor","pointer"))),b=a.g.ra,g.kb(b)||xu(this.Ja,b),this.Ja.show());Yx(this)&&(b=this.Ia instanceof Bm?this.Ia.g:
this.Ia,this.L&&(b.hide(),b.Jn(),this.Ha=b.Uk(Ju(this))),this.To(a),this.Ia instanceof Bm&&b.Sf());this.N=!1;this.Da("show_ad");this.Ia.Sf();if(!P.A)try{this.xd(a)}catch(d){ey(this,o2,d);return}mx("pi");if(b=null!=this.Ja)b=this.Ja,b=on()?!1:null!=b.g.L?b.g.G&&b.g.L==ns(a):b.g.G;b?eha(this):this.aa.show(this.Ia.Nk(),this.Qa.eu,(0,g.A)(this.Ha.play,this.Ha))};
g.h.To=function(a){this.B.Cb(a,this.Ha,this.Ia.Mq(),this.Ja);this.Wa().U(this.B,"engagedview urlNavigationRequested videoAuthorIconClicked videoAuthorClicked videoClicked videoIconClicked videoLearnMoreClicked videoMuteClicked videoShareClicked videoShareShown videoTitleClicked videoUnmuteClicked start".split(" "),this.yB);this.Wa().U(this.Ha,"loaded",this.aS);this.Wa().U(this.Ha,"cardsStateChange",this.DJ);this.Wa().U(this.Ha,"timeUpdate",this.CB);this.Wa().U(this.Ha,"volumeChange",this.GJ);this.Wa().U(this.Ha,
"shareClicked",this.oC);this.Gg(a);var b=mq(a,this.Ha);this.Ob.g=b;b=a.g;null!=b&&b instanceof Cp&&(this.jg(b,l2),this.Mj(b),b=this.Wa(),pm(b,this.B,"error",this.EJ,this),pm(b,this.B,"mediaLoadTimeout",this.FJ,this));Ou(this,a);a.isSkippable()&&(this.B.J=30)};
g.h.Gj=function(){$x(this)&&cy(this);this.ia("loaded");this.dispatchEvent(new Jw(this.la()))};
g.h.skip=function(){this.zb()&&this.la().isSkippable()&&(null!=this.Ja?this.Ja.skip():(this.Da("skip"),ky(this)))};
g.h.pC=function(){Lu(this,"skipshown")};
g.h.start=function(){Lx.Z.start.call(this);this.O=[];try{var a=this.la();this.A=Zx(this,a);mx("am");Mx(this,(0,g.A)(Lx.prototype.xS,this,a,this.A.o,this.A.g))}catch(b){ay(this,b),this.Pj(),this.zb()?(ln(this,by,b),this.start()):(this.G?ln(this,by,b):(null!=this.Ld&&this.Ld.xd(SA()),mn(this,by,b)),this.stop())}};
g.h.getVolume=function(){Nu(this);return this.Ha.pj()?0:this.Ha.getVolume()};
g.h.setVolume=function(a){Nu(this);this.G?this.Ha.setVolume(a):this.D=a};
g.h.pause=function(){Nu(this);this.g?this.g.pause():this.Ha.pause();if(null!=this.o){var a=this.o;a.o.enabled&&a.o.stop();a.g=[]}};
g.h.resume=function(){Nu(this);this.g?this.g.play():this.Ha.play();null!=this.o&&ox(this.o)};
g.h.getCurrentTime=function(){Nu(this);var a=this.g?this.g.A:0;return this.Ha.getCurrentTime()+a};
g.h.getDuration=function(){Nu(this);var a=this.zb()?Ps(this.la()):0;return this.Ha.getDuration()+a};
g.h.Lc=function(){Nu(this);var a=this.getDuration(),b=this.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};
g.h.De=function(){return this.Ha.De()};
g.h.EJ=function(){$x(this)&&!this.L&&this.lB();ey(this,by,jn(by,this.Ha.getError()))};
g.h.lB=function(){this.N=!0};
g.h.FJ=function(){kha(this);ey(this,p2,jn(p2,null,(this.Qa.lf/1E3).toString()))};
g.h.xt=function(a,b){Lx.Z.xt.call(this,a,b);gy(this,a)};
g.h.yB=function(a){switch(a.type){case "start":mx("ff");this.ia("start");P.g()&&P.A&&this.la()&&this.la().I&&this.ia("youtubeKevlarCompanionShow");this.sj();null!=this.o&&(g.Ye(this.o),this.o=null);Tm(Qm(),420706029)&&(P.aa=5E3);!Tm(Qm(),420706025)&&!Tm(Qm(),420706029)||P.g()||(this.o=new nx(this),ox(this.o));this.J=!0;this.Ja&&(P.D&&!P.g()&&(this.Ja.uc=!0),Bu(this.Ja));break;case "impression":this.ia("impression");this.L=!0;Yx(this)&&jha(this);break;case "viewable_impression":this.ia("viewable_impression");
break;case "why_this_ad_url":this.fa=this.Ha.ki();dy(this,"why_this_ad_url");this.pause();break;case "pause":this.ia("pause");break;case "why_this_ad_got_it":dy(this,"why_this_ad_got_it");this.fa||this.resume();break;case "resume":this.ia("resume");break;case "firstquartile":this.ia("firstquartile");break;case "midpoint":this.ia("midpoint");break;case "thirdquartile":this.ia("thirdquartile");break;case "complete":this.Ja&&vu(this.Ja,"complete",this.getCurrentTime(),Hs(this.la()));dha(this)||(this.ia("complete"),
this.Da("instreamAdComplete"),Ox(this));break;case "click":this.Ja&&this.Ja.g.A?this.Ha.ki()?this.resume():this.pause():fy(this);break;case "engagedview":hy(this);this.ia("engagedview");break;case "urlNavigationRequested":this.dispatchEvent(a);break;case "videoAuthorIconClicked":my(this);break;case "videoAuthorClicked":my(this);break;case "videoClicked":this.ia("videoClicked");break;case "videoIconClicked":this.dispatchEvent(a);break;case "videoLearnMoreClicked":this.g&&!this.F&&(this.F=!0,Lu(this,
"video_card_endcap_action"));!P.g()&&hy(this);fy(this);this.Ha.pause();break;case "videoShareClicked":mha(this);break;case "videoShareShown":nha(this);break;case "videoTitleClicked":oha(this);break;case "videoMuteClicked":this.ba=this.D;this.setVolume(0);break;case "videoUnmuteClicked":this.setVolume(this.ba);break;case "skipshown":this.ia("skippableStateChanged");break;case "skip":this.Ja&&vu(this.Ja,"skip",this.getCurrentTime(),Hs(this.la()));this.g?this.Yw():ky(this);break;case "MUTE_AD":this.ia("MUTE_AD"),
Mx(this,function(){Ox(this)})}};
g.h.tf=function(){Lx.Z.tf.call(this);this.Ja&&vu(this.Ja,"abandon",this.getCurrentTime(),Hs(this.la()));this.C&&(g.Ye(this.C),this.C=null)};
g.h.oC=function(){var a=iy(this)||jy(this);null!=a&&bn(a,"sharebuttonclicked")};
g.h.Gg=function(a){Lx.Z.Gg.call(this,a);gy(this,"impression")};
g.h.jg=function(a,b){Lx.Z.jg.call(this,a,b);(0,g.H)(b,function(a){gy(this,a)},this)};
g.h.Mj=function(a){Lx.Z.Mj.call(this,a);a instanceof Cp&&(a=Dp(a),(0,g.H)(a.Db(),function(a){gy(this,a)},this))};
g.h.hj=function(){if(!this.zb())return null;try{var a=this.la();if(null==a)return null;var b=Zx(this,a);return null!=b?b.o:null}catch(c){return null}};
g.h.eh=function(){if(!this.zb())return null;var a=this.la();if(!Ku(a))throw jn(Xx);a=a.g.dh();return g.kb(a)?null:a[0].o};
g.h.aS=function(){this.ia("adCanPlay")};
g.h.DJ=function(){var a=this.Ja;null!=a.o&&g.T(a.o,"ytp-iv-drawer-open",this.Ha.oy())};
g.h.CB=function(){var a=this.getDuration();Nu(this);var b=this.g?this.getDuration():this.Ha.vx();var c=this.getCurrentTime(),d=0,e=0;this.zb()&&(e=this.la(),d=e.C.g,e=e.C.mg);if(null!=this.Ja&&0<=a&&0<=c){if(!this.Y&&3==this.la().Ra){var f=this.Ha.getDuration(),k=Hs(this.la());f=Math.abs(f-k);2<f&&(f=jn(Ara,null,Number(f).toFixed(2)),f=lq(f,this.la(),this.Ha),k=gs(this.la()),en(k,f));this.Y=!0}this.Ja.update(c,b,a,d,e)}};
g.h.GJ=function(){var a=this.Ha.getVolume();if(a!=this.D&&(this.D=a,this.ia("volumeChange",{volume:a}),0==a&&this.ia("mute"),this.Ja)){var b=this.Ja;b.V&&(b=b.V,a=0==a,b.g!=a&&(b.g=a,At(b)))}};
g.h.US=function(a){var b=this.zb()&&Ws(this.la());return!a||E(g.F(a.channelId))||!a.isListed&&!b?cg():new g.Yf(function(b,d){Pga(a.channelId,function(a){a=new Fo(a);b(a)},function(){d()},this)},this)};
g.h.zH=function(a){var b=Rm(),c=this.la();if((g.kb(is(c))||!is(c)[0].B)&&!b.g("website_actions_holdback")&&P.g()&&Ts(c)){var d=Ifa(c,a);if(d)if(ms(c,[d]),P.A)this.J&&c.I&&this.ia("youtubeKevlarCompanionShow");else try{this.xd(c)}catch(n){ey(this,o2,n)}}if(d=this.Ja){d=this.la();var e=d.O;d=P.g()&&g.kb(is(d))&&null!=d.ha&&null!=e&&e.isListed}P.A&&(d=d&&!c.I);if(d){this.Wa().U(window,"message",this.CJ);d=this.la();e=d.ha.channelId;var f=qq(d),k=this.Qa.contentId,l=this.Qa.Vi;l=new g.Vl((null!=l?l:"//www.youtube.com/")+
"ad_companion");var m=l.g;m.set("adformat",f);m.set("p",e);m.set("render","video_wall_companion");k&&m.set("content",k);e=new Jp("1",new g.dd(300,250),"IFrame",null,l.toString());e.I=d;e.D=!0;d=new Sq(e,[],null,!0);P.A?(P.g()&&P.A&&"IFrame"===d.g.N&&(e=d.Ln(),c.I={iframeCompanionRenderer:{width:e.width,height:e.height,url:d.g.A}}),this.J&&c.I&&this.ia("youtubeKevlarCompanionShow")):(Fs(c,d),this.xd(c))}Is(c)||b.g("website_actions_holdback")||b.g("website_actions_endcap_holdback")||!Ts(c)||Gfa(c,a);
return a};
g.h.CJ=function(a){var b=a.g;if("companion-setup-complete"==b.data){a=this.la();var c=(0,window.encodeURIComponent)(g.F(ls(a)))+","+(0,window.encodeURIComponent)((iy(this)||jy(this)).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=ls(a)?210:185}else"pause-video"==b.data&&this.pause()};
g.h.pT=function(a){if(null!=this.Ja&&a.isListed){var b=this.Ja,c=a.title;b.g.O=!E(g.F(c));b.g.title=c;null!=b.G&&g.Qd(b.G,b.g.title);tu(b);b=this.Ja;null!=b.ib?g.Qd(b.ib,""+Ca("Share")):null!=b.N&&g.Qd(b.N,""+Ca("Share"));b=this.Ja;c=a.ig;null!=c&&(b.g.ig=c);tu(b)}this.zb()&&(this.la().O=a,this.ia("youTubeVideoMetadata"));return a};
g.h.oT=function(a){if(null!=this.Ja&&ly(this)){var b=this.Ja,c=a.authorName;b.g.Aa=!E(g.F(c));b.g.authorName=c;null!=b.D&&(c=Ca("by {$userDisplayName}",{userDisplayName:""+b.g.authorName}),g.Qd(b.D,(new Jo(""+c,void 0)).ld()));tu(b);b=this.Ja;c=a.channelIconThumbnailUrl;b.g.sa=!E(g.F(c));if(null!=b.O){var d=g.zd("img");d.setAttribute("src",c);g.S(d,"videoAdUiAuthorIconImage");b.O.appendChild(d);null!=b.G&&g.S(b.G,"videoAdUiTitleWithAuthorIcon");null!=b.D&&g.S(b.D,"videoAdUiAuthorNameWithAuthorIcon")}tu(b)}this.zb()&&
(this.la().ha=a,this.ia("youTubeChannelMetadata"));return a};
g.h.Bb=function(a,b,c){Lx.Z.Bb.call(this,a,b,c);null!=this.Ja&&this.Ja.Bb()};g.D(ny,g.Ef);ny.prototype.g=!1;ny.prototype.connect=function(){for(this.g=!0;!g.kb(this.o);){var a=this.o.shift();this.sendMessage(a.name,a.type,a.data)}};
ny.prototype.isConnected=function(){return this.g};
ny.prototype.send=function(a,b,c){this.g?this.sendMessage(a,b,c):this.o.push({name:a,type:b,data:c})};
g.D(oy,g.$e);oy.prototype.getOrigin=function(){return this.A};
oy.prototype.toString=function(){return""};g.D(py,ny);py.prototype.sendMessage=function(a,b,c){null!=this.uf&&null!=this.uf.postMessage&&this.uf.postMessage(rha(this,a,b,c),"*");null!=this.uf&&null==this.uf.postMessage&&Vn(Sn.getInstance(),11)};
py.prototype.W=function(){this.B.dispose();py.Z.W.call(this)};
py.prototype.receive=function(a){a=a.g;var b=qy(a.data);if(ry(this,b)){if(null==this.uf)this.uf=a.source,this.isConnected()||this.connect();else if(this.uf!=a.source)return;ry(this,b)&&this.dispatchEvent(new oy(b.name,b.type,b.data||{},b.sid,a.origin))}};g.D(sy,g.$e);g.D(ty,Gu);g.h=ty.prototype;
g.h.init=function(a){ty.Z.init.call(this,a);this.V=g.tg(this.HJ,this.Qa.lf,this);this.Wa().U(window,"message",this.fS);this.Wa().U(this.I,"tick",this.BS);a=P.o?uo():co();this.Wa().U(a,m2,this.Hj);if(yy())this.dispatchEvent(new sy(0,this.C));else{a=Qs(this.la());if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="en".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.Qa.contentId&&(a=Ug(a,"v",this.Qa.contentId));P.g()&&(b=Sg(a,"st"),b=uha(this,
b?b+" yt":"yt"),a=Ug(a,"st",b))}a=g.F(a)}else{b=new g.Vl(a);var c=new g.Vl("http://tpc.googlesyndication.com/pagead/js/loader13.html");"https"==b.B&&Wl(c,"https");this.Y=b.o;a=$l(c,a||"",void 0).toString()}this.A=g.xd("IFRAME",{src:Ym(a),allowFullscreen:!0,allowtransparency:!0,background:"transparent",style:"border:0; opacity:1; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;display:none;"});this.Wa().U(this.A,"load",this.BH);this.Ia.Mf().appendChild(this.A)}};
g.h.Rc=function(a,b,c){ty.Z.Rc.call(this,a,b,c);this.o=this.la().g instanceof Cp;this.g=a.Uk(!1);yy()||(this.Wa().U(this.g,"click end error loaded mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.bR),this.Wa().U(this.g,nA,this.VO))};
g.h.stop=function(){this.I.stop();this.Ia.hide();ty.Z.stop.call(this)};
g.h.Wb=function(){return 1==this.o};
g.h.start=function(){ty.Z.start.call(this);if(!P.g()){var a={};a.pid=kx.getInstance().o;a.dn=this.Y;a["if"]=yy();Vn(Sn.getInstance(),29,a,!0)}a=this.la();this.Ob.B=a.J;var b=mq(a,this.g);this.Ob.g=b;if(b=a.g)this.Gg(a),this.jg(b,l2),this.Mj(b),Ou(this,a);this.g.Cb();this.Da("show_ad");this.Ia.sd();Qu(this);null!=this.A&&(this.A.style.display="block");this.g.setVolume(this.B);this.ba=!0;this.o&&this.ia("contentPauseRequested");By(this)};
g.h.Bb=function(a,b,c){ty.Z.Bb.call(this,a,b,c);wy(this,"resizeAd",{width:a,height:b,viewMode:c})};
g.h.pause=function(){this.D||wy(this,"pauseAd")};
g.h.resume=function(){this.D&&(wy(this,"resumeAd"),Dy(this,"play"))};
g.h.setVolume=function(a){this.B=a;ty.Z.setVolume.call(this,a);wy(this,"setAdVolume",{value:a})};
g.h.W=function(){yy()&&this.dispatchEvent(new sy(0,this.C));g.Gd(this.A);this.o&&(!this.N||this.g.ki()||this.g.jh()||this.g.pause(),this.ia("contentResumeRequested"));this.ia("allAdsCompleted");this.Tc=!1;this.G=[];g.ug(this.V);this.I.dispose();ty.Z.W.call(this)};
g.h.Gj=function(){};
g.h.BH=function(){if(!yy()){var a=this.g.Sq();g.kb(a)&&(a=this.Qa.mimeTypes);wy(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a})}vy(this)};
var tha={use_fast_fade_in_0s:"ffi-0",use_fast_fade_in_1s:"ffi-1",use_new_style:"new",hide_preskip:"nps",use_sound:"snd",hide_progress_bar:"npb",use_survey_skip_in_2s:"skip-2",use_survey_skip_in_3s:"skip-3",use_survey_skip_in_10s:"skip-10",use_survey_skip_in_15s:"skip-15",use_survey_skip_in_20s:"skip-20",use_survey_length_15s:"time-15",use_survey_length_45s:"time-45",use_survey_skip_in_0s:"sec-0",use_survey_length_unlimited:"time-ul",hide_advertisement_text:"nat",use_skip_survey_text:"skip_survey",
show_interstitial_white:"intr-white",show_interstitial_blue:"intr-blue",show_interstitial_for_3s:"intr-time-3",show_interstitial_for_5s:"intr-time-5",show_interstitial_close_icon:"intr-close-icon",set_interstitial_survey_text:"intr-txt-survey",set_interstitial_question_text:"intr-txt-question",set_interstitial_start_button:"intr-start-button"};g.h=ty.prototype;
g.h.fS=function(a){a=a.g;if(yy()){if(a=qy(a.data),null!=a){try{var b=g.xg(a.data)}catch(c){return}null!=b&&b.session==this.C&&Cy(this,b)}}else if(a.source==this.A.contentWindow){try{b=g.xg(a.data)}catch(c){return}b.session==this.C&&Cy(this,b)}};
g.h.HJ=function(){zy(this,p2,null,(this.Qa.lf/1E3).toString());this.stop()};
g.h.bR=function(a){switch(a.type){case "timeUpdate":a=this.g.getDuration();var b=this.g.getCurrentTime();uy(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":Dy(this,"ended");break;case "loaded":Dy(this,"loadstart");break;case "mediaLoadTimeout":Dy(this,"stalled");break;case "play":Dy(this,"playing");break;default:Dy(this,a.type)}};
g.h.VO=function(a){a=a.type;"loadedmetadata"==a?(a=this.g.getDuration(),uy(this,"wrapperCall",{messageType:"loadedmetadata",duration:a})):Dy(this,a)};
g.h.getCurrentTime=function(){return-1==this.getDuration()||-1==this.Lc()?-1:this.getDuration()-this.Lc()};
g.h.getDuration=function(){return this.F};
g.h.Lc=function(){return this.J};
g.h.xb=function(){return!this.D};
g.h.BS=function(){wy(this,"getAdRemainingTime")};g.D(Ey,Gu);g.h=Ey.prototype;g.h.Jk=function(){return this.Fc()?this.g.Jk():""};
g.h.Ik=function(){return this.Fc()?this.g.Ik():""};
g.h.Xe=function(){return this.Fc()?this.g.Xe():null};
g.h.la=function(){if(this.g)return this.g.Xe();throw jn(Mu,null,"Proxied ads manager not available.\n"+Error().stack);};
g.h.zb=function(){return null!=this.g&&null!=this.g.Xe()};
g.h.Sk=function(){return!1};
g.h.Ee=function(){return null};
g.h.Ko=function(){this.zb()&&(this.ads=[this.la()],this.Wc=this.la())};
g.h.destroy=function(){this.g&&(this.g.destroy(),this.g=null);Ey.Z.destroy.call(this)};
g.h.Lb=function(){return this.g?this.g.Lb():null};
g.h.sj=function(){this.F=!0;this.g&&this.g.sj()};
g.h.init=function(a){this.zc(a);this.Fc()&&this.g.init(a)};
g.h.Rc=function(a,b,c){a&&a instanceof Bm&&(a=a.g);Ey.Z.Rc.call(this,a,b,c);Gy(this,a,b,c)};
g.h.W=function(){this.ia("allAdsCompleted");Hy(this);Ey.Z.W.call(this)};
g.h.getCurrentTime=function(){return this.Fc()?this.g.getCurrentTime():-1};
g.h.getDuration=function(){return this.Fc()?this.g.getDuration():-1};
g.h.Lc=function(){return this.Fc()?this.g.Lc():-1};
g.h.Bb=function(a,b,c){this.ae=a;this.Zd=b;this.zc(c);this.Fc()&&this.g.Bb(a,b,c)};
g.h.pause=function(){this.Fc()&&this.g.pause()};
g.h.resume=function(){this.Fc()&&this.g.resume()};
g.h.skip=function(){this.Fc()&&this.g.skip()};
g.h.muteAd=function(){this.Fc()&&this.g.muteAd()};
g.h.whyThisAdClicked=function(){this.Fc()&&this.g.whyThisAdClicked()};
g.h.whyThisAdClosed=function(){this.Fc()&&this.g.whyThisAdClosed()};
g.h.start=function(){if(this.Fc()){var a=this.g,b=this.Ia;a&&b&&(null!=a&&a instanceof Lx?b.Sf():null!=a&&a instanceof ty?(b.sd(),b.Sf()):null!=a&&(a instanceof Ew||a instanceof yw)&&b.sd());null!=this.volume&&!(0,window.isNaN)(this.volume)&&this.g.setVolume(this.volume);this.g.start()}};
g.h.stop=function(){this.Lb()&&this.Lb().Wb()&&this.ia("contentResumeRequested");this.destroy()};
g.h.getVolume=function(){return this.Fc()?this.g.getVolume():0};
g.h.setVolume=function(a){a=(0,window.isNaN)(a)||0>a?0:a;Ey.Z.setVolume.call(this,a);this.Fc()&&this.g.setVolume(a)};
g.h.zc=function(a){Ey.Z.zc.call(this,a);this.g&&this.g.zc(a)};
g.h.De=function(){return this.g?this.g.De():null};
g.h.tf=function(){this.g&&this.g.tf()};
g.h.uj=function(a){return this.g?this.g.uj(a):!1};
g.h.Zk=function(){return this.g?this.g.Zk():!1};
g.h.hj=function(){return this.g?this.g.hj():null};
g.h.LA=function(a){this.dispatchEvent(a)};
g.h.SA=function(a){this.dispatchEvent(a)};
g.h.Vs=function(a){this.dispatchEvent(a)};
g.h.Hg=function(a){Ey.Z.Hg.call(this,a);this.g&&this.g.Hg(a)};
g.h.Di=function(){this.ia("userClose")};
g.h.Ci=function(){this.ia("autoClose")};
g.h.eg=function(a){this.g&&this.g instanceof yw&&this.g.eg(a)};
g.h.Fc=function(){return null!=this.g&&this.g.Fc()};g.D(Jy,Ey);g.h=Jy.prototype;g.h.Lb=function(){return this.A};
g.h.dispatchEvent=function(a){if(a instanceof Dm){if("loaded"==a.type&&this.C)return a.stopPropagation(),!1;"loaded"==a.type&&(this.C=!0)}return Jy.Z.dispatchEvent.call(this,a)};
g.h.Sk=function(){return null!=ys(this.A)&&ys(this.A).Qf()};
g.h.LA=function(a){if(this.B)this.dispatchEvent(a);else{var b=a.getError()||jn(by);a=a.target.Lb();xs(a);Ly(this,ys(a),Error(b.Ad()))}};
g.h.Vs=function(a){this.B&&(Jy.Z.Vs.call(this,a),this.destroy())};
g.h.SA=function(a){this.D||(this.D=!0,this.dispatchEvent(a))};
g.h.hO=function(){this.o&&this.o.dispose();this.B=!0};g.D(My,Gu);g.h=My.prototype;g.h.Jk=function(){return this.g?this.g.Jk():""};
g.h.Ik=function(){return this.g?this.g.Ik():""};
g.h.Xe=function(){return this.g?this.g.Xe():null};
g.h.la=function(){if(this.g)return this.g.Xe();throw jn(Mu,null,"Current ads manager not available.\n"+Error().stack);};
g.h.zb=function(){return null!=this.g&&null!=this.g.Xe()};
g.h.Sk=function(){return this.A+1<this.o.length};
g.h.Ee=function(){return this.Sk()?this.o[this.A+1].Xe():null};
g.h.Ko=function(){this.zb()&&(this.ads=[this.la()],this.Wc=this.la())};
g.h.Wa=function(){};
g.h.destroy=function(){this.g&&this.g.destroy();My.Z.destroy.call(this)};
g.h.Lb=function(){return this.g?this.g.Lb():null};
g.h.sj=function(){this.g&&this.g.sj()};
g.h.init=function(a){this.zc(a);this.g&&this.g.init(a)};
g.h.Rc=function(a,b,c){a&&a instanceof Bm&&(a=a.g);My.Z.Rc.call(this,a,b,c);Ny(this,a,b,c)};
g.h.W=function(){(0,g.H)(this.o,function(a){a!==this.g&&a.destroy()},this);
Qy(this);this.D&&(this.D.dispose(),this.D=null);this.B&&(this.B.destroy(),this.B=null);this.ia("allAdsCompleted");My.Z.W.call(this)};
g.h.getCurrentTime=function(){return this.g?this.g.getCurrentTime():-1};
g.h.getDuration=function(){return this.g?this.g.getDuration():-1};
g.h.Lc=function(){return this.g?this.g.Lc():-1};
g.h.Bb=function(a,b,c){this.ae=a;this.Zd=b;this.zc(c);this.g&&this.g.Bb(a,b,c)};
g.h.pause=function(){this.g&&this.g.pause()};
g.h.resume=function(){this.g&&this.g.resume()};
g.h.skip=function(){this.g&&this.g.skip()};
g.h.muteAd=function(){this.g&&this.g.muteAd()};
g.h.whyThisAdClicked=function(){this.g&&this.g.whyThisAdClicked()};
g.h.whyThisAdClosed=function(){this.g&&this.g.whyThisAdClosed()};
g.h.start=function(){if(this.g){var a=this.g,b=this.Ia;a&&b&&(null!=a&&a instanceof Lx?b.Sf():null!=a&&a instanceof ty?(b.sd(),b.Sf()):null!=a&&(a instanceof Ew||a instanceof yw)&&b.sd());null!=this.volume&&!(0,window.isNaN)(this.volume)&&this.g.setVolume(this.volume);this.g.start()}};
g.h.Se=function(a){My.Z.Se.call(this,a);null!=this.g&&this.g.Se(a);null!=this.B&&this.B.Se(a);(0,g.H)(this.o,function(b){b.Se(a)})};
g.h.stop=function(){this.destroy();this.ia("contentResumeRequested")};
g.h.getVolume=function(){return this.g?this.g.getVolume():0};
g.h.setVolume=function(a){a=(0,window.isNaN)(a)||0>a?0:a;My.Z.setVolume.call(this,a);this.g&&this.g.setVolume(a)};
g.h.zc=function(a){My.Z.zc.call(this,a);this.g&&this.g.zc(a)};
g.h.De=function(){return this.g?this.g.De():null};
g.h.tf=function(){this.g&&this.g.tf()};
g.h.uj=function(a){return this.g?this.g.uj(a):!1};
g.h.Zk=function(){return this.g?this.g.Zk():!1};
g.h.hj=function(){return this.g?this.g.hj():null};
g.h.gO=function(a){var b=a.getError()||jn(by);Py(this,a.target,b)};
g.h.xh=function(){this.F||(this.ia("contentPauseRequested"),this.F=!0)};
g.h.dg=function(a){Oy(this,a.target)};
g.h.AJ=function(){};
g.h.Hg=function(a){(0,g.H)(this.o,function(b){b.Hg(a)},this)};
g.h.Di=function(){this.ia("userClose")};
g.h.Ci=function(){this.ia("autoClose")};
g.h.eg=function(a){this.g&&this.g instanceof yw&&this.g.eg(a)};g.D(Ry,g.L);g.h=Ry.prototype;g.h.Vk=!1;g.h.rr=1E3;g.h.Xy=30;g.h.Yy=45E3;g.h.SB=15E3;g.h.fD=!1;g.h.tq=function(){var a=Sy(this);this.g.appendChild(this.J);Ty(this.J);this.play();return a};
g.h.oa=function(){null==this.N&&(this.N=this.tq());return this.N};
g.h.play=function(){null==this.o&&(this.o=g.tg(function(){this.Vk||(this.hide(),this.fD=!0);this.o=null},this.fD?this.SB:this.Yy,this))};
g.h.stop=function(){null!=this.o&&(g.ug(this.o),this.o=null)};
g.h.show=function(){g.Ih(this.oa(),1);null!=this.A&&(g.ug(this.A),this.A=null)};
g.h.hide=function(){g.Ih(this.oa(),this.Xy/100);null==this.A&&(this.A=g.tg(function(){this.Y();this.A=null},400,this))};
g.h.jJ=function(){this.show();this.Vk=!0;this.D=g.tg(function(){this.Vk&&this.stop();this.D=null},this.rr,this)};
g.h.NT=function(){null!=this.D&&(g.ug(this.D),this.D=null);this.Vk&&this.play();this.Vk=!1};
g.h.W=function(){Ry.Z.W.call(this);this.stop();g.Ye(this.Of)};g.D(Uy,Gu);g.h=Uy.prototype;g.h.start=function(){Uy.Z.start.call(this);this.Ia.sd();this.containerElement=this.Ia.Mf();if(null!=this.containerElement){this.Da("show_ad");g.Dd(this.containerElement);var a=this.dw(),b=this.zb()?this.la().g.Cc():a,c;P.o?c=uo():c=co();c.Tj(b);this.containerElement.appendChild(a);this.Om();(0,g.H)(this.F,function(a){a()});
lb(this.F);this.B=!0}};
g.h.init=function(a){Uy.Z.init.call(this,a);var b;P.o?b=uo():b=co();this.Wa().U(b,m2,this.Hj)};
g.h.expand=function(){null!=this.g&&this.g.show();this.Da("expand")};
g.h.collapse=function(){null!=this.g&&this.g.hide();this.Da("collapse")};
g.h.Bb=function(a,b,c){Uy.Z.Bb.call(this,a,b,c);this.Om();this.B&&this.Da("overlay_resize")};
g.h.W=function(){g.Ye(this.g);this.Ia=this.g=null;this.B=!1;P.o?uo().Tj(null):co().Tj(null);null!=this.containerElement&&(g.Dd(this.containerElement),this.containerElement=null);Uy.Z.W.call(this)};
g.h.dw=function(){var a=this.la().g;if(null==a)throw a=jn(hC),Wy(this,a),a;var b=this.la();Mp(a,this.Wa());Kp(a,this.BJ);a.D||Lp(a,g.Aa(this.kr,b,a));try{this.xd(b)}catch(d){throw Wy(this,d),d;}this.Gg(b);var c=mq(b,this.Ha);this.Ob.g=c;b.g&&(this.Gg(b),c=b.g)&&(this.jg(c,sra),Ou(this,b));this.jg(a,["start"]);Vy(this,a);return this.Em([a.Cc()])};
g.h.my=function(a,b){return new Ry(a[0],b)};
g.h.Em=function(a){null!=this.g&&this.g.stop();this.g=this.my(a,(0,g.A)(this.jn,this));a=this.g.oa();g.T(a,"autoalign",this.Qa.Zv);P.g()&&g.T(a,"viewmode-fullscreen","fullscreen"==this.Zc);a.appendChild(this.J);this.Wa().U(a,"click",af);(this.zb()&&Gs(this.la())||this.Qa.YC)&&this.cq(this.g.g);return a};
g.h.cq=function(a){var b=this.Wa();this.D=Zp(zha);b.U(this.D,"click",this.BI);var c=Ca("Close");c=Zp(yha,{close:""+c});b.U(c,"click",this.Fn);g.S(a,"extra-padding");null!=this.L&&728<=this.L.Gb()&&g.S(a,"wide-overlay-ad");a.appendChild(c)};
g.h.Om=function(a,b){if(null!=this.g){var c=a?a:0,d=b?b:0,e=g.Gh(this.Ia.Mf());var f=P.g()?g.Gh(g.Ld(this.g.g)):g.Gh(this.g.g);if(f.width+c>e.width||f.height+d>e.height)throw c=jn(xra,null),Wy(this,c),d={},this.ads[0].A&&(d.pid=kx.getInstance().o),d.cz=f.width+"x"+f.height,d.sz=e.width+"x"+e.height,d.ct=this.la().g.md(),d.vm=this.Zc,Vn(Sn.getInstance(),38,d,!0),this.stop(),c;}};
g.h.BJ=function(a){Lu(this,"click");af(a)};
g.h.Fn=function(){this.Da("close");this.jn(!0)};
g.h.kr=function(a,b){Lp(b,g.y);this.B?this.Jl(a,b):this.F.push((0,g.A)(this.Jl,this,a,b))};
g.h.Jl=function(a){a=mq(a,this.Ha);this.Ob.g=a;Lu(this,"impression");this.Da("creativeview");Lu(this,"start")};
g.h.jn=function(a){null!=this.g&&(this.g.stop(),null!=this.D&&g.Hd(this.D,this.g.g),a?this.ia("userClose"):this.ia("autoClose"))};
g.h.BI=function(a){af(a);this.g.show();this.g.play();g.Hd(this.g.g,this.D);g.tg(function(){g.O(this.J,!1)},500,this);
g.O(this.J,!0);this.ia("userRecall")};
g.h.Hj=function(a){this.zb()&&this.la().J==a.g.queryId&&Uy.Z.Hj.call(this,a)};g.D(Xy,g.Ef);g.h=Xy.prototype;g.h.init=function(a,b,c){Yy(this,a,b,c);null==this.J&&(this.J=new g.nm(this),pm(this.J,this.kb,"adsLoaderSdkAdError",this.dO,this));ez(this)};
g.h.start=function(){this.V=!0;az(this);0<this.A.length?lz(this):("always"==P.B&&(null!=this.ba&&this.ba.xd(SA()),P.g()&&5!=this.bf()&&this.dispatchEvent(new Dm("companionBackfill",null))),kn(hn,this,xq,void 0,void 0),0==this.Ac&&this.dispatchEvent("contentResumeRequested"),mz(this))};
g.h.destroy=function(){null!=this.J&&(this.J.dispose(),this.J=null);gz(this);oz(this);P.B=this.aa;this.V=!1};
g.h.Lb=function(){return this.o<this.A.length?this.A[this.o].g[0]:null};
g.h.xb=function(){return this.V};
g.h.pause=function(){null!=this.g&&this.g.pause()};
g.h.resume=function(){null!=this.g&&this.g.resume()};
g.h.skip=function(){null!=this.g&&this.g.skip()};
g.h.tf=function(){null!=this.g&&this.g.tf()};
g.h.getCurrentTime=function(){return null!=this.g?this.g.getCurrentTime():-1};
g.h.getDuration=function(){return null!=this.g?this.g.getDuration():-1};
g.h.Lc=function(){return null!=this.g?this.g.Lc():-1};
g.h.setVolume=function(a){null!=a&&(this.Y=a,null!=this.g&&this.g.setVolume(this.Y))};
g.h.Se=function(a){this.O=a;null!=this.g&&this.g.Se(a);null!=this.C&&this.C.Se(a)};
g.h.JA=function(a){P.B=this.aa;var b=a.F;g.kb(b)?this.I++:(a=a.D,(0,g.H)(b,g.Aa(function(a,b){null!=a.A&&(b.Ta=a.A);a.isBumper&&(b.Fa=!1)},a)),this.N=Dha(this,b),g.nb(this.A,new Am(b,a.isBumper,a.g)),this.I++,this.J.Ca(this.kb,"adsLoaderSdkAdLoaded",this.JA,!1,this));
ez(this)};
g.h.dO=function(a){a=a.g;P.B=this.aa;a.Ad();kn(hn,this,xq,void 0,void 0);this.I++;if(!Zy(this)||2<=this.A.length-this.o)a=hn(xq),this.dispatchEvent(new Cm(a));ez(this)};
g.h.wQ=function(){gz(this);oz(this);mz(this)};
g.h.eO=function(a){a=a.getError().Rb();try{var b={};b.ec=a;Vn(Sn.getInstance(),44,b)}catch(c){}this.o++;lz(this)};
g.h.Di=function(){this.dispatchEvent("userClose")};
g.h.Ci=function(){this.dispatchEvent("autoClose")};
g.h.dg=function(){this.o++;lz(this)};
g.h.xh=function(){this.da||(this.dispatchEvent("contentPauseRequested"),this.da=!0)};
g.h.bf=function(){return g.kb(this.F)?null:this.F[0].A};
g.h.eg=function(a){this.g instanceof yw?this.g.eg(a):jz(this.g)&&this.g.eg(a)};
g.h.KA=function(a){switch(a.type){case "impression":try{Vn(Sn.getInstance(),44,{imp:!0})}catch(c){}break;case "start":var b;if(b=this.gg()&&bz(this,this.o+1)&&1<kz(this))b=a.Mb(),b=null===b||null===this.g||g.kb(this.g.ads)?!1:this.g.ads[this.g.ads.length-1]===b;b&&dz(this,this.o+1)}"vpaidEvent"!=a.type&&Fha(this,a.type,a.Mb());this.dispatchEvent(a)};
g.h.gg=function(){return null===this.B?!1:Fn(this.B)&&this.O.Tk};g.D(pz,Gha);g.D(sz,$u);sz.prototype.A=function(){return new av(this.g,null,Iha(this))};g.D(wz,g.$e);wz.prototype.setDescription=function(){};g.D(xz,g.Ef);g.D(zz,g.Ef);g.h=zz.prototype;g.h.Cb=function(){this.A||(null==this.B&&(this.B=new g.nm(this)),this.B.U(this.o,"currentTimeUpdate",this.hy,!1),this.B.U(this.o,"contentWrapperError",this.HQ,!1));this.o.start();this.A=!0};
g.h.getCurrentTime=function(){return this.o.currentTime};
g.h.Xc=function(){null!=this.B&&(this.B.dispose(),this.B=null);this.o.stop();this.A=!1};
g.h.hy=function(){if(this.A){var a=this.o.currentTime;if((0,window.isNaN)(a)||0>a)Gz(this,"The currentTime is not a valid time value:"+a);else{var b=Lha(this,a);this.D?(0,g.H)(b,function(a){Dz(this,!0,a)},this):(0,g.H)(Mha(b),function(a){Dz(this,!0,a)},this);
Dz(this,!1,Nha(this,a));Oha(this,a)}}};
g.h.HQ=function(){Gz(this,"There was an error while tracking the content:The content current time is invalid.")};g.D(Iz,xz);Iz.prototype.start=function(){this.g.start()};
Iz.prototype.stop=function(){this.g.stop()};
Iz.prototype.W=function(){Iz.Z.W.call(this);this.A.dispose();this.g.dispose()};
Iz.prototype.B=function(){if("currentTime"in this.o&&!(0,window.isNaN)(this.o.currentTime)){var a=this.currentTime;this.currentTime=this.o.currentTime;a!=this.currentTime&&this.dispatchEvent(new g.$e("currentTimeUpdate"))}else this.dispatchEvent(new g.$e("contentWrapperError")),this.stop()};g.h=Kz.prototype;g.h.get=function(a){a=Lz(this,a);return this.g[a]};
g.h.set=function(a,b){a=Lz(this,a);this.g[a]=b};
g.h.Jc=function(){return this.g.length};
g.h.isEmpty=function(){return 0==this.g.length};
g.h.clear=function(){this.o=this.g.length=0};
g.h.sb=function(){var a=this.Jc(),b=this.Jc(),c=[];for(a=this.Jc()-a;a<b;a++)c.push(this.get(a));return c};
g.h.Db=function(){for(var a=[],b=this.Jc(),c=0;c<b;c++)a[c]=c;return a};g.D(Mz,$n);g.h=Mz.prototype;g.h.fC=function(a,b,c,d){if(d&&(d=g.eb(a,function(a){return null!==bq(a.o)}),null!==d))return d;
a=(0,g.Id)(a,function(a){var b=a.g;E(g.F(a.o))||"progressive"!=a.B&&"application/x-mpegurl"!=g.F(b).toLowerCase()?a=!1:(b=g.F(b).toLowerCase(),a=E(b)||yn(2.3)&&Na(b,"application/ogg")?!1:g.wn&&(Na(b,"video/mp4")||Na(b,"video/3gpp"))||sn()&&(Na(b,"application/x-mpegurl")||Na(b,"application/vnd.apple.mpegurl"))?!0:!E(this.g.canPlayType(b)));return a},this);
return Jz(a,b,c)};
g.h.Sq=function(){return(0,g.Id)(g.Pb(Pu),function(a){return!E(this.g.canPlayType(a))},this)};
g.h.Mo=function(a){this.Y=0<a.timeout?a.timeout:Wn()};
g.h.load=function(a){Oz(this);a&&(this.g.src=a);this.g.load()};
g.h.unload=function(){Oz(this);this.g.src="";this.g.load()};
g.h.getVideoUrl=function(){return this.g.src};
g.h.setVolume=function(a){this.g.volume=a;this.g.muted=0==a?!0:!1};
g.h.getVolume=function(){return this.g.volume};
g.h.play=function(){this.N=!1;this.g.play();this.I||(this.I=g.tg(this.sH,this.Y,this))};
g.h.pause=function(){this.N=!0;this.g.pause();Nz(this)};
g.h.ki=function(){return this.g.paused?sn()||g.tF?this.g.currentTime<this.g.duration:!0:!1};
g.h.pj=function(){return this.g.muted};
g.h.wr=function(){rn()&&this.g.webkitDisplayingFullscreen&&this.g.webkitExitFullscreen()};
g.h.oj=function(){return wo(this.g)};
g.h.vk=function(a){var b;a:{for(b=this.V.sb();b.length;){var c=b.pop();if(0<c){b=c;break a}}b=-1}return b>=a};
g.h.qj=function(a){this.g.currentTime=a};
g.h.getCurrentTime=function(){return this.g.currentTime};
g.h.vx=function(){return Qz(this)};
g.h.getDuration=function(){return(0,window.isNaN)(this.g.duration)?-1:this.g.duration};
g.h.jh=function(){return this.g.ended};
g.h.ih=function(){return new g.dd(this.g.offsetWidth,this.g.offsetHeight)};
g.h.qy=function(){return this.g.seeking};
g.h.W=function(){this.Xc();Mz.Z.W.call(this)};
g.h.getError=function(){return null};
g.h.Cb=function(){this.Xc();this.o=new g.nm(this);this.o.U(this.g,nA,this.FQ);this.o.U(this.g,"canplay",this.EO);this.o.U(this.g,"ended",this.LJ);this.o.U(this.g,"webkitbeginfullscreen",this.zr);this.o.U(this.g,"webkitendfullscreen",this.uy);this.o.U(this.g,"pause",this.OJ);this.o.U(this.g,"playing",this.MQ);this.o.U(this.g,"timeupdate",this.PJ);this.o.U(this.g,"volumechange",this.QJ);this.o.U(this.g,"error",this.ty);this.o.U(this.g,WN||sn()&&!vn(8)?"loadeddata":"canplay",this.NJ);this.D=new Ys;this.o.U(this.D,
"click",this.KJ);this.D.Cb(this.g);this.G=new g.rg(1E3);this.o.U(this.G,"tick",this.MJ);this.G.start()};
g.h.Xc=function(){null!=this.D&&(this.D.Xc(),this.D=null);null!=this.G&&this.G.dispose();null!=this.o&&(this.o.dispose(),this.o=null);Oz(this)};
g.h.FQ=function(a){this.dispatchEvent(a.type)};
g.h.EO=function(){var a;if(a=g.Wi)a=g.Ib,a=!(a&&(Oa(a,"SMART-TV")||Oa(a,"SmartTV")));a&&!this.O&&(this.qj(.001),this.O=!0)};
g.h.NJ=function(){this.Tc||(this.Tc=!0,this.dispatchEvent("loaded"))};
g.h.MQ=function(){this.dispatchEvent("play");sn()||WN||Pz(this)};
g.h.PJ=function(){if(!this.B&&(sn()||WN)){if(0>=this.getCurrentTime())return;if(WN&&this.jh()&&1==this.getDuration()){this.ty();return}Pz(this)}if(sn()||Cn()){if(1.5<this.getCurrentTime()-this.A){this.F=!0;this.qj(this.A);return}this.F=!1;this.getCurrentTime()>this.A&&(this.A=this.getCurrentTime())}var a=this.V;a.g[a.o]=this.g.currentTime;a.o=(a.o+1)%a.A;this.dispatchEvent("timeUpdate")};
g.h.QJ=function(){this.dispatchEvent("volumeChange")};
g.h.OJ=function(){if(this.B&&sn()&&!this.N&&(2>Qz(this)-this.g.currentTime||this.F)){this.C=new g.rg(250);this.o.U(this.C,"tick",this.AO);this.C.start();var a=!0}else a=!1;a||this.dispatchEvent("pause")};
g.h.LJ=function(){var a=!0;if(sn()||Cn())a=this.A>=this.g.duration-1.5;!this.F&&a&&this.dispatchEvent("end")};
g.h.zr=function(){this.dispatchEvent("beginFullscreen")};
g.h.uy=function(){this.dispatchEvent("endFullscreen")};
g.h.ty=function(){Nz(this);this.dispatchEvent("error")};
g.h.KJ=function(){this.dispatchEvent("click")};
g.h.MJ=function(){var a=this.ih(),b=this.oj();if(a.width!=this.L.width||a.height!=this.L.height)!this.J&&b?this.zr():this.J&&!b&&this.uy(),this.L=a,this.J=b};
g.h.sH=function(){if(!this.B){try{Vn(Sn.getInstance(),16)}catch(a){}Oz(this);this.dispatchEvent("mediaLoadTimeout")}};
g.h.AO=function(){if(this.jh()||!this.ki())g.Ye(this.C);else{var a=this.g.duration-this.g.currentTime,b=Qz(this)-this.g.currentTime;0<b&&(2<=b||2>a)&&(g.Ye(this.C),this.play())}};g.D(Sz,g.Ef);var Ora=new Pl;Rz.prototype.start=function(a){return this.g[a].startTime};
Rz.prototype.end=function(a){return this.g[a].endTime};
g.h=Sz.prototype;g.h.Nn=0;g.h.currentTime=0;g.h.duration=window.NaN;g.h.paused=!0;g.h.Ay=!1;g.h.autoplay=!1;g.h.loop=!1;g.h.controls=!1;g.h.volume=1;g.h.muted=!1;g.h.src="";g.h.XJ=1;g.h.playbackRate=0;g.h.Jg=null;g.h.Xn=0;g.h.AS=4;g.h.nk=null;g.h.On=null;
g.h.play=function(){this.Ay&&(this.currentTime=0,this.dispatchEvent("timeupdate"));this.paused&&(this.paused=!1,this.dispatchEvent("play"),this.Nn=this.AS,2>=this.Nn?this.dispatchEvent("waiting"):this.dispatchEvent("playing"));if(null===this.Jg||this.Jg.ma())this.Jg=new g.rg(10),this.Jg.U("tick",(0,g.A)(this.NC,this));this.Xn=(0,g.G)();this.Jg.start();this.autoplay=!1};
g.h.pause=function(){this.autoplay=!1;this.paused||(this.Jg.stop(),this.paused=!0,this.dispatchEvent("timeupdate"),this.dispatchEvent("pause"))};
g.h.load=function(){this.Nn=0;this.paused=!0;this.dispatchEvent("loadstart");this.setProperty("duration",(0,window.isNaN)(this.duration)?10+20*Math.random():this.duration);var a=this.o;a.g.push(new Vha(this.duration));a.length=a.g.length;this.dispatchEvent("loadedmetadata");0<this.currentTime&&this.dispatchEvent("timeupdate");this.dispatchEvent("loadeddata");this.dispatchEvent("canplay");this.dispatchEvent("canplaythrough");this.dispatchEvent("progress");this.playbackRate=this.XJ};
g.h.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.dispatchEvent("seeking");this.currentTime=c;this.dispatchEvent("seeked");this.NC();break;case "duration":this.duration=Number(b);this.dispatchEvent("durationchange");break;case "volume":this.volume=Number(b),this.dispatchEvent("volumechange")}};
g.h.setAttribute=function(a,b){null!=a&&Ora.set(a,b)};
g.h.getAttribute=function(a){return Ora.get(a)};
g.h.NC=function(){var a=(0,g.G)()-this.Xn,b=this.currentTime+a/1E3;this.Xn+=a;2<this.Nn&&(this.currentTime=Math.min(b,this.duration));this.dispatchEvent("timeupdate");this.currentTime==this.duration&&(this.Ay=this.paused=!0,this.Jg.stop(),this.dispatchEvent("ended"))};
g.h.W=function(){this.Jg&&this.Jg.dispose();this.g.dispose()};
g.h.YR=function(a){var b=null,c=null;switch(a.type){case "loadeddata":b="Loaded";break;case "playing":b="Playing";c="#00f";break;case "pause":b="Paused";break;case "ended":b="Ended",c="#000"}b&&this.On&&(this.On.innerText=b);c&&this.nk&&(this.nk.style.backgroundColor=c)};g.D(Tz,g.L);Tz.prototype.initialize=function(){this.o&&on()&&this.o.load()};
Tz.prototype.W=function(){g.Gd(this.g);Tz.Z.W.call(this)};
Tz.prototype.show=function(){var a=this.g;null!=a&&(a.style.display="block")};
Tz.prototype.hide=function(){var a=this.g;null!=a&&(a.style.display="none")};g.D(Uz,g.L);Uz.prototype.G=function(a){if(!("*"!=this.o&&a.origin!=this.o||this.B&&a.source!=this.B)&&g.u(a.data)){try{var b=g.xg(a.data)}catch(c){return}if(!(null==b||this.J&&(this.sessionId&&this.sessionId!=b.id||this.channel&&this.channel!=b.channel))&&b)switch(b.event){case "syn":Vz(this,a);Xz(this);this.sendMessage({event:"ack"});break;case "ack":Vz(this,a);Xz(this);break;case "command":a=b.func,a in this.g&&this.g[a].apply(null,b.args)}}};
Uz.prototype.sendMessage=function(a,b){var c=b||this.B;if(c){this.sessionId&&(a.id=this.sessionId);this.channel&&(a.channel=this.channel);try{var d=g.zg(a);c.postMessage(d,this.F)}catch(e){}}};
Uz.prototype.W=function(){window.removeEventListener("message",this.C);Uz.Z.W.call(this)};g.D(Wz,Uz);Wz.prototype.I=function(a,b){var c={event:"command",func:a},d=Array.prototype.slice.call(arguments,1);0<d.length&&(c.args=d);this.D?this.sendMessage(c):100>this.A.length&&this.A.push(c)};g.D(Yz,g.L);Yz.prototype.G=function(a){a=a.type;var b=new Wha;b.duration=this.g.duration;b.currentTime=this.g.currentTime;b.o=this.g.readyState;this.g.error&&(b.errorCode=this.g.error.code);b.muted=this.g.muted;b.paused=this.g.paused;b.g=this.g.ended;b.volume=this.g.volume;this.o.I("notify",a,b)};
Yz.prototype.D=function(a){Ix(this.C,a);this.A.U(this.g,a,this.F)};
Yz.prototype.I=function(a){this.C.remove(a);this.A.Ca(this.g,a)};
Yz.prototype.B=function(a,b){this.g[a]=b};g.D(aA,$n);var Pra=["video/mp4","video/webm"],Qra={el:"adunit",controls:0,html5:1,playsinline:1,ps:"gvn",showinfo:0},$z=[],Zz=!1;g.h=aA.prototype;g.h.fC=function(a,b,c){var d=g.eb(a,function(a){return null!==bq(a.o)});
if(null!==d)return d;a=(0,g.Id)(a,function(a){a=g.F(a.g);return this.A?this.g.canPlayType(a):g.jb(Pra,a)},this);
g.kb(c)||(d=Jz(a,b,c));return null!=d?d:Jz(a,b,[])};
g.h.Mo=function(a){this.o=a};
g.h.load=function(a,b){cA(this,a,b)};
g.h.unload=function(){cA(this,"","")};
g.h.getVideoUrl=function(){return this.aa};
g.h.setVolume=function(a){this.fa?this.dispatchEvent("volumeChange"):this.A?(a=g.Xc(100*a,0,100),this.g.setVolume(a),this.F=-1,this.dispatchEvent("volumeChange")):this.F=a};
g.h.getVolume=function(){return this.A?this.g.getVolume()/100:this.F};
g.h.play=function(){if(!E(g.F(this.aa))){if(!this.B){eA(this);var a=Wn();null!=this.o&&0<this.o.timeout&&(a=this.o.timeout);this.Aa=g.tg(this.IQ,a,this)}this.A?(this.ea=!1,!this.B&&this.o&&this.o.B?this.g.loadVideoByPlayerVars(this.ka):this.g.playVideo()):this.ea=!0}};
g.h.pause=function(){this.A&&this.B&&this.g.pauseVideo()};
g.h.ki=function(){return this.A?2==this.g.getPlayerState(this.C):!1};
g.h.pj=function(){return this.A?this.g.isMuted():0==this.getVolume()};
g.h.wr=function(){};
g.h.oj=function(){var a=P.o?P.G:window.document.getElementById(this.O);return a?wo(a):!1};
g.h.vk=function(a){return this.A?this.g.getCurrentTime(this.C)>=a:!1};
g.h.qj=function(a){this.A?this.g.seekTo(a,!1):this.J=a};
g.h.getCurrentTime=function(a){return this.A?this.g.getCurrentTime(a||this.C):-1};
g.h.vx=function(){return this.A&&this.B?this.g.getVideoLoadedFraction(this.C)*this.g.getDuration(this.C):0};
g.h.getDuration=function(){return this.A&&this.B?this.g.getDuration(this.C):-1};
g.h.getError=function(){return null};
g.h.Sq=function(){return g.Pb(Pu)};
g.h.jh=function(){return this.A?0==this.g.getPlayerState(this.C):!1};
g.h.ih=function(){var a=P.o?P.G:window.document.getElementById(this.O);return a?new g.dd(a.offsetWidth,a.offsetHeight):new g.dd(0,0)};
g.h.qy=function(){return!1};
g.h.oy=function(){return 1==this.sa};
g.h.xb=function(){return this.A?1==this.g.getPlayerState(this.C):!1};
g.h.SJ=function(){var a=this.ih(),b=this.oj();if(a.width!=this.pa.width||a.height!=this.pa.height)!this.ha&&b?this.dispatchEvent("beginFullscreen"):this.ha&&!b&&this.dispatchEvent("endFullscreen"),this.pa=a,this.ha=b};
g.h.Cb=function(){this.da=(0,g.A)(this.fB,this);this.N=(0,g.A)(this.Ar,this);this.ra=(0,g.A)(this.gB,this);this.Fa=(0,g.A)(this.tR,this);this.fa&&(this.g.addEventListener("onAdStateChange",this.N),this.g.addEventListener("onReady",this.da),this.g.addEventListener("onStateChange",this.N),this.g.addEventListener("onVolumeChange",this.ra),this.g.addEventListener("onSharePanelOpened",this.Fa));this.Y=new g.rg(1E3);this.V.U(this.Y,"tick",this.SJ);this.Y.start()};
g.h.Xc=function(){this.fa&&(this.g.removeEventListener("onAdStateChange",this.N),this.g.removeEventListener("onReady",this.da),this.g.removeEventListener("onStateChange",this.N),this.g.removeEventListener("onVolumeChange",this.ra),this.g.removeEventListener("onSharePanelOpened",this.Fa));null!=this.Y&&this.Y.dispose()};
g.h.AH=function(){var a=g.$b(Qra);P.C&&(a.ps="gvn",a.remoteve=Tn.ea,a.remotevewin="discover");var b=this.O;a={playerVars:a,events:{cardstatechange:(0,g.A)(this.RJ,this),onError:(0,g.A)(this.TJ,this),onReady:(0,g.A)(this.fB,this),onAdStateChange:(0,g.A)(this.Ar,this),onStateChange:(0,g.A)(this.Ar,this),onVolumeChange:(0,g.A)(this.gB,this)}};var c=g.x("YT");this.g=null!=c&&null!=c.Player?new c.Player(b,a):null};
g.h.TJ=function(){this.dispatchEvent("error")};
g.h.fB=function(){this.A=!0;this.I&&this.vr(this.I.videoId,this.I.Sh,this.I.ak);-1!=this.F&&(this.setVolume(this.F),this.F=-1);null!=this.L&&(bA(this,this.L,this.ba),this.ba=this.L=null);-1!=this.J&&(this.qj(this.J),this.J=-1);this.ea&&this.play()};
g.h.RJ=function(a){this.sa=a.data;this.dispatchEvent("cardsStateChange")};
g.h.Ar=function(a){switch(a.data){case 0:this.B?this.dispatchEvent("end"):this.dispatchEvent("error");break;case 1:this.B||(eA(this),this.B=!0,this.G=0,this.dispatchEvent("start"));this.dispatchEvent("play");dA(this);this.D=new g.rg(100);this.V.U(this.D,"tick",this.VA);this.D.start();break;case 2:this.dispatchEvent("pause"),dA(this)}};
g.h.gB=function(){this.dispatchEvent("volumeChange")};
g.h.tR=function(){this.dispatchEvent("shareClicked")};
g.h.VA=function(){var a=Rm();if(a.g("seek_back_for_all")||a.g("seek_back_for_all_no_leanback")&&!Nk()||a.g("seek_back_for_safari")&&Vi&&tn(Cra,10)&&Oa(g.Ib,"Safari")||VN||Cn()){if(1.5<this.getCurrentTime()-this.G){this.A&&this.g.seekTo(this.G,!0);return}this.getCurrentTime()>this.G&&(this.G=this.getCurrentTime())}this.dispatchEvent("timeUpdate")};
g.h.IQ=function(){this.dispatchEvent("mediaLoadTimeout")};
g.h.vr=function(a,b,c){if(b||c)this.A?this.g.addInfoCardXml(a,b,c):this.I={videoId:a,Sh:b,ak:c}};
g.h.De=function(){if(!this.A)return null;var a=this.g.getVideoData();return a?a.cpn:null};
g.h.Ft=function(a){this.A&&bq(this.getVideoUrl())&&this.g.sendVideoStatsEngageEvent(a)};
g.h.ry=function(a){this.A&&this.g.setCardsVisible(a,!1,"YOUTUBE_DRAWER_AUTO_OPEN")};
g.h.yr=function(){this.A&&this.g.showControls()};
g.h.xr=function(){this.A&&this.g.hideControls()};
g.h.W=function(){dA(this);eA(this);this.Xc();this.A=!1;this.V.dispose();this.J=-1;this.ba=null;this.ea=!1;this.L=null;this.F=-1;this.da=this.g=this.o=null;this.B=!1;this.aa="";aA.Z.W.call(this)};
g.ra("onYouTubeIframeAPIReady",function(){Zz=!0;(0,g.H)($z,function(a){a()});
lb($z)},window);g.D(fA,g.Ef);fA.prototype.send=function(a){var b=a.g;this.g.hasOwnProperty(b)&&this.g[b].send(a.type,a.Td,a.Xf)};
fA.prototype.W=function(){this.o.dispose();for(var a in this.g)g.Ye(this.g[a]);fA.Z.W.call(this)};
fA.prototype.C=function(a){a=a.g;var b=qy(a.data);if(null!=b){var c=b.channel;if(this.A&&!this.g.hasOwnProperty(c)){var d=b.sid;hA(this,c,d,a.source);this.dispatchEvent(new gA(b.name,b.type,b.data||{},d,a.origin,c))}}};
g.D(gA,oy);g.D(jA,g.nm);
jA.prototype.D=function(a){var b=a.getOrigin(),c=g.Fg("//imasdk.googleapis.com");b=g.Fg(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.g)hA(this.g,a.g,a.iy,vd().parent),null!=this.g&&this.g.send(a);else if(c=a.Xf,null!=c&&g.t(c.scope)){b=c.scope;c=c.args;var d;if("proxy"==b)c=a.Td,"isGptPresent"==c?d=iA():"isConsolePresent"==c&&(d=null!=kA());else if(iA())if("pubads"==b||"companionAds"==b){d=a.Td;var e=vd().googletag;if(null!=e&&null!=e[b]&&(e=e[b](),null!=e&&(d=e[d],null!=d)))try{var f=d.apply(e,c)}catch(k){}d=
f}else if("console"==b){if(e=a.Td,f=kA(),null!=f&&(e=f[e],null!=e))try{e.apply(f,c)}catch(k){}}else if(null===b){f=a.Td;d=vd();if(g.jb(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],f)&&(f=d[f],null!=f))try{e=f.apply(d,c)}catch(k){}d=e}g.t(d)&&(a.Xf.returnValue=d,this.A.send(a))}};
jA.prototype.C=function(a){this.A.send(a)};var lA={s:function(a,b,c){return(0,window.isNaN)(c)||""==c||a.length>=Number(c)?a:a=-1<b.indexOf("-",0)?a+Qa(" ",Number(c)-a.length):Qa(" ",Number(c)-a.length)+a},
f:function(a,b,c,d,e){d=a.toString();(0,window.isNaN)(e)||""==e||(d=(0,window.parseFloat)(a).toFixed(e));var f=0>Number(a)?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=Number(a)&&(d=f+d);if((0,window.isNaN)(c)||d.length>=Number(c))return d;d=(0,window.isNaN)(e)?Math.abs(Number(a)).toString():Math.abs(Number(a)).toFixed(e);a=Number(c)-d.length-f.length;return d=0<=b.indexOf("-",0)?f+d+Qa(" ",a):f+Qa(0<=b.indexOf("0",0)?"0":" ",a)+d},
d:function(a,b,c,d,e,f,k,l){return lA.f((0,window.parseInt)(a,10),b,c,d,0,f,k,l)}};
lA.i=lA.d;lA.u=lA.d;g.D(oA,g.Ef);g.h=oA.prototype;g.h.W=function(){this.o.dispose();null!==this.B&&(this.B.dispose(),this.B=null);g.Ol(this.G.Yd(!1),function(a){a.dispose()});
this.G.clear();g.Gd(this.A);oA.Z.W.call(this)};
g.h.sI=function(a){var b=a.Xf,c=g.yh(this.A),d=window.document.createEvent("MouseEvent");d.initMouseEvent(a.Td,!0,!0,window,b.detail,b.screenX,b.screenY,b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,null);if(!g.Wi||sn()||0==window.document.webkitIsFullScreen)this.A.blur(),window.focus();this.A.dispatchEvent(d)};
g.h.HI=function(a){var b=a.Xf,c=g.yh(this.A);if("TouchEvent"in window&&0<window.TouchEvent.length){var d={bubbles:!0,cancelable:!0,view:window,detail:b.detail,ctrlKey:b.ctrlKey,altKey:b.altKey,shiftKey:b.shiftKey,metaKey:b.metaKey,touches:pA(this,b.touches),targetTouches:pA(this,b.targetTouches),changedTouches:pA(this,b.changedTouches)};d=new window.TouchEvent(a.Td,d);this.A.dispatchEvent(d)}else d=window.document.createEvent("TouchEvent"),d.initTouchEvent(a.Td,!0,!0,window,b.detail,b.screenX,b.screenY,
b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,pA(this,b.touches),pA(this,b.targetTouches),pA(this,b.changedTouches),b.scale,b.rotation),this.A.dispatchEvent(d)};
g.h.EI=function(a){if(null!=this.g){var b=a.Xf;switch(a.Td){case "startTracking":this.g.Cb();break;case "stopTracking":this.g.Xc();break;case "exitFullscreen":this.g.wr();break;case "play":this.g.play();break;case "pause":this.g.pause();break;case "load":this.g.load(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.g.qj(b.currentTime);break;case "setPlaybackOptions":this.g.Mo(qA(b));break;case "setVolume":this.g.setVolume(b.volume)}}};
g.h.yI=function(a){if(null!=this.C){var b=a.Xf;switch(a.Td){case "startTracking":this.C.Cb();break;case "stopTracking":this.C.Xc();break;case "setPlaybackOptions":this.C.Mo(qA(b));break;case "load":this.C.load(b.videoUrl,b.mimeType)}}};
g.h.fg=function(a){var b={};switch(a.type){case "beginFullscreen":a="fullscreen";break;case "endFullscreen":a="exitFullscreen";break;case "click":a="click";break;case "end":a="end";break;case "error":a="error";break;case "loaded":a="loaded";break;case "mediaLoadTimeout":a="mediaLoadTimeout";break;case "pause":a="pause";b.ended=this.g.jh();break;case "play":a="play";break;case "skip":a="skip";break;case "start":a="start";break;case "timeUpdate":a="timeupdate";b.currentTime=this.g.getCurrentTime();
b.duration=this.g.getDuration();break;case "volumeChange":a="volumeChange";b.volume=this.g.getVolume();break;case "loadedmetadata":a=a.type;b.duration=this.g.getDuration();break;case "abort":case "canplay":case "canplaythrough":case "durationchange":case "emptied":case "loadstart":case "loadeddata":case "progress":case "ratechange":case "seeked":case "seeking":case "stalled":case "suspend":case "waiting":a=a.type;break;default:return}this.F.send("videoDisplay",a,b)};
g.h.nI=function(a){switch(a.Td){case "showVideo":null!=this.B?this.B.Xc():(this.B=new Ys,this.o.U(this.B,"click",this.VR));this.B.Cb(sA(this.D));a=this.D;null!=a.g&&a.g.show();break;case "hide":null!==this.B&&(this.B.dispose(),this.B=null);this.D.hide();break;case "getPreloadDisplay":null!=this.g&&null==this.C&&(this.C=this.D.C);break;case "swapVideoDisplays":if(null!=this.g&&null!=this.C){this.o.Ca(this.g,g.Pb(mA),this.fg);this.o.Ca(this.g,nA,this.fg);a=this.D;if(a.g&&a.o&&a.B&&a.C){var b=a.o;a.o=
a.C;a.C=b;b=a.g;a.g=a.B;a.B=b;if(a.J&&a.o instanceof Mz){b=a.J;var c=a.o.g;um(b.A);b.g=c;(0,g.H)(b.C.sb(),b.D,b)}null!=a.I&&(b=a.I,a=a.o,null!=b.g&&(b.o.Ca(b.g,g.Pb(mA),b.fg),b.o.Ca(b.g,nA,b.fg)),b.g=a,b.o.U(b.g,g.Pb(mA),b.fg),b.o.U(b.g,nA,b.fg))}this.g=this.D.o;this.C=this.D.C;this.o.U(this.g,g.Pb(mA),this.fg);this.o.U(this.g,nA,this.fg)}}};
g.h.VR=function(){this.F.send("displayContainer","videoClick")};
g.h.WH=function(){g.Ol(this.G.Yd(!1),function(a){a.uf=Pd(this.A);a.connect()},this);
this.I=!0};rA.prototype.initialize=function(){null!=this.g&&this.g.initialize();null!=this.B&&this.B.initialize()};
rA.prototype.destroy=function(){g.Ye(this.g);g.Ye(this.B);g.Ye(this.I);g.Ye(this.o);g.Ye(this.C);g.Ye(this.J);g.Gd(this.A)};
rA.prototype.hide=function(){null!=this.g&&this.g.hide()};
rA.prototype.setSize=function(a,b){var c=this.A;null!=c&&(-1==a?(c.style.right="0",c.style.left="0"):c.style.width=a+"px",-1==b?(c.style.bottom="0",c.style.top="0"):c.style.height=b+"px");null!=this.I&&(c=this.I,c.A.width=-1==a?"100%":a,c.A.height=-1==b?"100%":b)};g.h=tA.prototype;g.h.Mq=function(){return sA(this.g)};
g.h.Nk=function(){return this.g.D};
g.h.Mf=function(){return this.g.D};
g.h.Uk=function(){var a=this.g.o;return null!=a?a:new aA};
g.h.Sf=function(){var a=this.g;null!=a.g&&a.g.show()};
g.h.sd=function(){};
g.h.zq=function(){return null!=this.g.G};
g.h.nj=function(){return this.g.F};
g.h.sr=function(){return!1};
g.h.Kn=function(){return this.g.L};
g.h.setSize=function(a,b){this.g.setSize(a,b)};
g.h.hide=function(){};
g.h.In=function(){return null};
g.h.Jn=function(){};g.D(uA,g.$e);g.h=wA.prototype;
g.h.clone=function(){var a=new wA;"auto"==this.Qi?a.Qi="auto":"click"==this.Qi&&(a.Qi="click");a.g=this.g;a.Ph=g.$b(this.Ph);a.o=this.o;a.Im=this.Im;a.D=this.D;a.B=this.B?g.sb(this.B):null;a.F=this.F;a.oc=g.$b(this.oc);a.C=this.C;a.location=this.location;a.referrer=this.referrer;a.G=this.G;a.language=this.language;a.mj=this.mj;a.lj=this.lj;a.gf=this.gf;a.ff=this.ff;a.Te=this.Te;a.Uo=this.Uo;a.gu=this.gu;a.Pt=this.Pt;a.A=this.A;a.sp=this.sp;a.containerElement=this.containerElement;a.afcRmFallback=
this.afcRmFallback;a.L=this.L;a.J=this.J;a.cj=this.cj;a.rp=this.rp;a.Qy=this.Qy;a.Fy=this.Fy;a.Tp=this.Tp?this.Tp.clone():null;return a};
g.h.Ph=null;g.h.Im=null;g.h.oc=null;g.h.Qi="unknown";g.h.Qy=0;g.h.mj=0;g.h.lj=0;g.h.gf=0;g.h.ff=0;g.h.cj=!1;g.h.Te=null;g.h.Uo=!1;g.h.gu=!1;g.h.Pt=!0;g.h.rp=new Km;g.h.sp=0;g.h.Vw=!0;g.h.containerElement=null;g.h.afcRmFallback=!1;g.h.Fy=!0;g.h.Tp=null;g.D(xA,g.Ef);g.D(yA,g.$e);yA.prototype.getError=function(){return this.A};g.D(AA,g.Ef);AA.prototype.o=null;AA.prototype.Sb=function(){return this.B};
AA.prototype.W=function(){delete this.g;BA(this);g.zf(this.o);AA.Z.W.call(this)};
AA.prototype.C=function(){zA(this)&&(BA(this),g.zf(this.o),this.o=null,this.B=!0,this.dispatchEvent("ifload"))};g.D(CA,xA);g.sa(CA);g.h=CA.prototype;g.h.W=function(){this.o&&this.o.dispose();CA.Z.W.call(this)};
g.h.initialize=function(){if(!this.ge){var a=g.Zd(new fd);try{g.x("googletag");DA([a,a.top]);var b=!0}catch(c){b=!1}b?PA(this):(this.ge=!0,this.A="not_available")}};
g.h.xd=function(a){try{this.g.googleSetCompanionAdContents((0,g.J)(a,this.bH,this)),this.Rj()}catch(b){this.dispatchEvent(new yA("companion_display_error",b))}};
g.h.hB=function(){0<this.B&&(0,g.G)()>=this.B?(this.ge=!0,LA(this),OA(this)):PA(this)};
g.h.iT=function(a){var b=(0,g.J)(a.adSizes,function(a){return new g.dd(a.adWidth,a.adHeight)});
return new Bo(a.slotId,b)};
g.h.bH=function(a){var b={};b.slotId=a.I;b.adContent=a.ld();b.adWidth=a.B;b.adHeight=a.o;b.friendlyIframeRendering=a.A;null==a.g&&g.kb(a.C)||(b.onAdContentSet=(0,g.A)(this.ZO,this,a));return b};
g.h.ZO=function(a,b){if(null!=a.g){var c=g.Ld(b);c||(c=g.zd("div"),b.appendChild(c));var d=a.Cc();c.appendChild(d);QA(this,a,c)}else c=a.A?b.querySelector("iframe"):(c=g.Ld(b))?g.Ld(c):null,(c=c&&"IFRAME"==c.tagName?c:null)&&$ha(this,c,a)};
g.h.YO=function(a){this.dispatchEvent(new yA("companion_click",null,a))};
g.h.Rj=function(a){en(this.impressionUrls,a)};g.D(RA,g.Ef);RA.prototype.Xv=function(){return!0};
RA.prototype.bi=function(){return null};g.D(TA,RA);g.h=TA.prototype;g.h.W=function(){this.destroy();TA.Z.W.call(this)};
g.h.destroy=function(){null!=this.C&&this.C.dispose();this.B=null;(0,g.H)(this.A,function(a){Do(a)},this);
this.o=null};
g.h.xd=function(a){g.Ye(this.o);this.o=new g.Ef;this.B=a;this.D=!0;this.F?VA(this):(this.D=XA(WA(a),[]),this.D||(this.o=this.B=null));return this.o};
g.h.Xv=function(){return this.D};
g.h.qR=function(){null!=this.G&&(this.G.stop(),this.G.dispose(),this.G=null);if(null!=this.g){var a=EA(this.g);null!=a&&(this.A=a)}this.F=!0;null!=this.B&&VA(this);this.dispatchEvent(new g.$e("initialized"))};
g.h.aP=function(a){UA(this,a.getError())};
g.h.WO=function(a){if(null!=a.g){var b=a.g;"companion_slot_init"==a.type?(en(b.D),Mf(function(){null!=this.o&&this.o.dispatchEvent(new Eo("companion_impression"))},this)):"companion_click"==a.type&&(en(b.C),null!=this.o&&this.o.dispatchEvent(new Eo("companion_click")))}};
g.h.bi=function(){return this.g};g.D(YA,$u);
YA.prototype.A=function(){if(null===this.g){for(var a=this.B,b=new qz,c=g.Jd(g.Ld(this.B)),d=0,e=c.length;d<e;d++){var f=c[d];if("vmap:AdBreak"==f.nodeName){var k=f;var l=[];for(var m="",n=null,q=!1,r=!1,w=null,z=!1,B=g.Jd(k),C=0,N=B.length;C<N;C++){var da=B[C];switch(da.nodeName){case "vmap:AdSource":if(!n&&(n=gia(da),!n)){m=Dr(da,"vmap:AdTagURI");var Ga="";m.length&&(Ga=g.F(Fr(m[0])));if(E(Ga))throw hn(Bra,null,da.parentNode.nodeName,da.nodeName);m=Ga}break;case "vmap:Extensions":w=Dr(da,"vmap:Extension"),
z=g.eb(w,g.Aa(ZA,"type","bumper")),null!=z&&(q=!0,r=Er(z,"suppress_bumper"),r=null!=r?"true"==r:!0),z=hia(w),w=z.breakType,z=z.cn}}B=null;if(n){B=n;n=null;try{n=Cr(B)}catch(Da){n=zr(B)}B=this.o.clone();B.o=n;B.g=""}else E(m)||(n=m,B=this.o.clone(),B.o="",B.g=n);B&&(P.g()&&(n=B,k=Er(k,"timeOffset"),C=Ir(k),n.sp="start"==k||0==C?0:"end"==k||-1==C?-1:1E3*C),k=new pz(B),k.isBumper=q,k.g=q&&!r,k.A=w,k.cn=z,g.nb(l,k));f=eia(f);q=0;for(r=f.length;q<r;q++)if(k=f[q],w=Ir(k),0<q&&(l=fia(this,l)),"start"==k||
0==w)rz(b,l,0);else if("end"==k)rz(b,l,-1);else{if(-1==w)throw hn(uz,null,"timeOffset",g.F(k));rz(b,l,w)}}}if(0==b.g.Db().length)throw hn(xq);this.g=new av(a,null,b)}return this.g};bB.prototype.G=function(){var a=this.B(this.C());return Wf(a)?a.then(function(a){return a.toString()}):a instanceof Error?a:a.toString()};
bB.prototype.D=function(){var a=1;Dn()&&(a+=4);if(!P.g()){var b=15360;P.ba&&(b+=8);a+=b}return a};var BB={V1:"ultrahigh",EY:"high",EF:"medium"},oia={UV:1E3,VV:1001,WV:1002,XV:1003,YV:1004,ZV:1005,aW:1006},pia={AF:1,bF:2},qia={FE:"content",I0:"site",J0:"site_content"};g.h=hB.prototype;g.h.Am="high";g.h.Br=!1;g.h.Vp=1;g.h.Wp=null;g.h.adType="video";g.h.adBlock=1;g.h.Cr=null;g.h.Yp=!0;g.h.Zp=null;g.h.wq=null;g.h.xk=null;g.h.experimentIds=null;g.h.gender=null;g.h.host=null;g.h.hostTierId=null;g.h.isLiveStream=!1;g.h.language=null;g.h.wy=null;g.h.vy=null;g.h.Zn=1E5;g.h.ao=null;g.h.zy=null;g.h.yy=null;
g.h.ls=0;g.h.Lj=null;g.h.Ao=null;g.h.Jo=null;g.h.targeting=null;g.h.tagForChildDirectedTreatment=-1;g.h.xo=null;g.h.url=null;g.h.Mn=null;g.h.ku=null;g.h.Dr=null;g.h.ru=null;g.h.ou=null;g.h.pu=null;g.h.qu=null;g.h.hq=null;g.h.ju=null;g.h.qp=null;g.h.UJ=null;g.h.VJ=null;g.h.WJ=null;var mia={DW:"bumpervideo",cF:"flash",sF:"image",O0:"skippablevideo",U0:"standardvideo",Y0:"staticimage",TEXT:"text",VIDEO:"video"},tB=["flash","image","staticimage"],nia=[new g.dd(200,200),new g.dd(250,250),new g.dd(300,250),new g.dd(336,280),new g.dd(450,50),new g.dd(468,60),new g.dd(480,70),new g.dd(728,90)];g.D(CB,bB);var ria=["bumpervideo","skippablevideo","standardvideo","video"];CB.prototype.F={lE:"allow",Qu:"exclude",e0:"require"};CB.prototype.D=function(){var a=CB.Z.D.call(this);P.g()&&this.g.Jo&&(a|=this.g.Jo);return a};
CB.prototype.B=function(a){var b=new g.Vl(this.o.g),c=new g.Vl("//"+b.o+b.A);b=a.Db();(0,g.H)(b,function(b){g.dm(c,b,a.get(b))});
Wl(c,"https");return c};
CB.prototype.C=function(){var a=new Pl;a.set("sdkv",gB(this));a.set("sdki",this.D().toString(16));a.set("video_product_type",null!=this.g.Lj?P.g()?5:g.Ha(this.g.Lj,"ca-games-")?4:g.Ha(this.g.Lj,"ca-video-")?0:-1:-1);a.set("correlator",this.I.g);a.set("client",this.g.Lj);P.g()&&!E(g.F(this.g.url))?a.set("url",this.g.url):a.set("url",this.o.location?this.o.location:this.o.referrer);null!=this.o.Te&&a.set("adk",this.o.Te);a.set("num_ads",DB(this));a.set("channel",tia(this));a.set("output","xml_vast3");
this.g.Br&&a.set("adtest","on");no&&a.set("flash",Xi);sB("alternate_ad_url",this.g.Zp,a);sB("cpm",this.g.wq,a);iB(a,this.o);P.g()||Ob(BB,this.g.Am)&&a.set("adsafe",this.g.Am);this.g.host&&(a.set("host",this.g.host),sB("ht_id",this.g.hostTierId,a),null!=this.g.A&&sB("h_ch",this.g.A.join("+"),a));sB("hl",this.g.language,a);sB("cust_age",this.g.Cr,a);sB("cust_gender",this.g.gender,a);-1!=this.g.tagForChildDirectedTreatment&&sB("tfcd",this.g.tagForChildDirectedTreatment,a);null!=this.g.xo&&sB("pucrd",
this.g.xo,a);sB("slotname",this.g.Wp,a);if(nB(this.g)&&(a.set("ea","0"),null!=this.o.gf&&null!=this.o.ff)){var b=oB(this.g,this.o.gf,this.o.ff,this.o.cj);a.set("image_size",b);E(b)&&(this.g.g=vB(this.g.g,this.g.adType,!0),this.g.adType=this.g.g.join("_"))}a.set("ad_type",this.g.adType);b=Um(Qm());E(g.F(b))||a.set("eid",b);kB(a);b=this.I;var c=this.g,d=this.g.xk;if(null!=d){var e=Qn(b);c=null!=c.qp?c.qp:Hn(e,d);1!=c&&a.set("ad_block",c);null==b.N&&(b.N=new Nn);c=b.N;var f=d!=b.O;(e=0==e.g%100||f)||
(e=36E5<(null===c.g?0:(new g.Ln).getTime()-c.g));e&&c.reset();b.O=d;b=c.o;null!==b&&a.set("tok",b)}a.set("unviewed_position_start","1");b=this.g.Vp;a.set("videoad_start_delay",null!=b?b:1);eB(this,a);fB(this,a);cB(this,a);sia(this)&&a.set("video_format",null!=this.g.Mn&&P.g()?this.g.Mn:g.tF&&g.Ui(6)||g.KM&&g.Ui(4)||yn(2.3)?43:18);b=null!=this.g.Ao?this.g.Ao:g.jb(this.g.adType.split("_"),"text")?P.g()&&Rm().g("exclude_pyv_overlays_on_desktop_watch")?this.F.Qu:this.F.lE:this.F.Qu;a.set("t_pyv",b);sB("min_ad_duration",
this.g.ls,a);0<this.g.Zn&&a.set("max_ad_duration",EB(this.g.Zn,DB(this)));0<this.g.ao&&a.set("sdmax",EB(this.g.ao,DB(this)));pB(a,this.J);P.g()&&(b=bq(this.g.xk),null!=b&&a.set("video_doc_id","yt_"+b));sB("description_url",this.g.xk,a);P.g()&&(sB("lact",lB(this.o),a),sB("loeid",this.g.Dr,a),sB("lsv",this.g.isLiveStream,a),this.g.Yp||sB("scs","false",a),sB("targeting",this.g.targeting,a),sB("video_cpm",this.g.ku,a),sB("yt_pt",this.g.ru,a),sB("ytdevice",this.g.ou,a),sB("ytdevicever",this.g.pu,a),sB("yt_vis",
mB(this.o),a),sB("dbp",this.g.qu,a),sB("avo",this.g.hq,a),sB("v_p",this.g.ju,a));null!=a.get("ms")||sB("ms",this.g.B,a);sB("vid_kw",this.o.B?this.o.B.join(","):null,a);sB("vid_d",this.o.D,a);sB("vid_t",this.o.F,a);dB(a);qB(this.o,a,!1);null!=this.o.Ph&&sB("loc",this.o.Ph.page_location,a);return a};g.D(GB,bB);GB.prototype.B=function(a){var b=new g.Vl(this.o.g);(0,g.H)(a.Db(),function(c){E(a.get(c))?b.g.remove(c):g.dm(b,c,a.get(c))});
Wl(b,"https");return b};
GB.prototype.C=function(){var a=new Pl;a.set("sdkv",gB(this));fB(this,a);cB(this,a);dB(a);null!=this.o.Te&&a.set("adk",this.o.Te);return a};g.D(HB,bB);HB.prototype.C=function(){return new Pl};
HB.prototype.B=function(){var a=new Iq(this.o.g),b=gB(this);b&&Kq(a,"dc_sdkv",[b]);(b=this.D().toString(16))&&Kq(a,"dc_sdki",[b]);(b=this.A.J)&&Kq(a,"dc_submodel",[b]);null!=this.o.Te&&Kq(a,"dc_adk",[this.o.Te]);b=Um(Qm());E(g.F(b))||Kq(a,"dc_eid",[b]);b=P.ea;null!=b&&Kq(a,"dc_rfl",[ui(b)]);b=new Pl;eB(this,b);fB(this,b);cB(this,b);dB(b);Rl(b,"js")&&Kq(a,"dc_js",[b.get("js")]);Rl(b,"msid")&&Kq(a,"dc_msid",[b.get("msid")]);Rl(b,"frm")&&Kq(a,"dc_frm",[b.get("frm")]);Rl(b,"osd")&&Kq(a,"dc_osd",[b.get("osd")]);
Rl(b,"sdr")&&Kq(a,"dc_sdr",[b.get("sdr")]);Kq(a,"dcmt",["text/xml"]);Rl(b,"vpa")&&Kq(a,"vpa",[b.get("vpa")]);Rl(b,"mpt")&&Kq(a,"mpt",[b.get("mpt")]);Rl(b,"mpv")&&Kq(a,"mpv",[b.get("mpv")]);b=Jq(a,"dc_output");null!=b&&(g.jb(b,"vast")||g.jb(b,"xml_vast2"))&&Kq(a,"dc_output",["xml_vast3"]);Wl(a,"https");return a};g.D(IB,bB);IB.prototype.B=function(a){a=new g.Vl(a.get("adTagUrl"));Wl(a,"https");return a};
IB.prototype.G=function(){var a=g.F(this.C().get("adTagUrl"));return a=a.replace(/^http:/i,"https:")};
IB.prototype.C=function(){var a=new Pl;a.set("adTagUrl",this.o.g);a.set("adsResponse",this.o.o);return a};g.D(JB,bB);JB.prototype.B=function(a){return new g.Vl(a.get("adTagUrl"))};
JB.prototype.C=function(){var a=new Pl;a.set("adTagUrl",this.o.g);a.set("adsResponse",this.o.o);return a};g.D(KB,bB);KB.prototype.B=function(a){var b=new g.Vl(this.o.g);(0,g.H)(a.Db(),function(c){E(a.get(c))?b.g.remove(c):g.dm(b,c,a.get(c))});
Wl(b,"https");return b};
KB.prototype.C=function(){var a=new Pl,b=Um(Qm());E(g.F(b))||a.set("eid",b);a.set("sdkv",gB(this));a.set("sdki",this.D().toString(16));a.set("correlator",this.A.B);a.set("scor",this.A.g);null!=this.o.Te&&a.set("adk",this.o.Te);eB(this,a);fB(this,a);cB(this,a);dB(a);b=(new g.Vl(this.o.g)).g;var c=new hB;c.o=zB(c.o,b.get("overlay"));a.set("afvsz",oB(c,this.o.gf,this.o.ff,this.o.cj));b=this.A.A;null!=b&&(this.A.A=null,a.set("fbidx",b));b=this.A.V;null!=b&&a.set("ppid",b);b="null";c=this.A.o;null!=c?
b=c:Zm(this.o.location)?b=this.o.location:Zm(this.o.referrer)&&(b=this.o.referrer);a.set("url",b);b=this.A.J;null!=b&&a.set("submodel",b);b=this.A.G;null==b||P.g()||(b=yia(b),a.set("ciu_szs",b));b=(new g.Vl(this.o.g)).g.get("output");null!=b&&("vast"!=b&&"xml_vast2"!=b||a.set("output","xml_vast3"));a.set("impl","");a.set("unviewed_position_start","1");return a};g.D(LB,KB);LB.prototype.B=function(a){a=LB.Z.B.call(this,a);this.I||Aia(this,a);return a};g.D(MB,HB);MB.prototype.B=function(a){a=MB.Z.B.call(this,a);this.I||Cia(this,a);return a};g.D(NB,bB);var Eia="CA_TYPE CPN DT FLASH FRM LACT MT P_H P_W TSLA U_AH U_AW U_CD U_H U_HIS U_JAVA U_NMIME U_NPLUG U_TZ U_W VIS".split(" ");NB.prototype.B=function(){if(!/\[BISCOTTI_ID\]/.test(this.o.g))return OB(this);var a=this.o.Im();return Wf(a)?a.then(function(a){return OB(this,a)},function(a){throw hn(ura,a);
},this):a instanceof Error?hn(ura,a):OB(this,a)};
NB.prototype.C=function(){return new Pl};PB.prototype.fetch=function(a,b,c){null!=a.o&&(g.u(a.o)&&!E(a.o)||a.o instanceof window.Document)?Hia(this,a,b,c):Qq(a.g)&&null!=this.g&&!this.g.G?this.g.start(a,(0,g.A)(function(){RB(this,a,b,c)},this)):RB(this,a,b,c)};
PB.prototype.o=function(a,b,c,d){var e=Gia(a,this.B).G();Wf(e)?e.then(function(e){TB(this,e,a,b,c,d)},function(a){a instanceof Jm?c(a):c(hn(SB,a))},this):e instanceof Jm?c(e):e instanceof Error?c(hn(SB,e)):TB(this,e,a,b,c,d)};UB.prototype.reset=function(a){this.g=a+(0,g.G)()};VB.prototype.start=function(a,b){this.C=a;this.F=b;Pia(this);this.D.F?this.I():tm(this.o,this.D,"initialized",this.I,this)};
VB.prototype.I=function(){var a=this.D.bi();var b=a.ge&&"retrieved"==a.A?a.D:void 0;a=Yha(a);null!=b&&(this.B.B=b);null!=a&&(this.B.G=a);Oia(this)};g.h=g.XB.prototype;g.h.Jc=function(){return this.g.length+this.o.length};
g.h.isEmpty=function(){return g.kb(this.g)&&g.kb(this.o)};
g.h.clear=function(){this.g=[];this.o=[]};
g.h.contains=function(a){return g.jb(this.g,a)||g.jb(this.o,a)};
g.h.remove=function(a){var b=this.g;var c=Vqa(b,a);0<=c?(g.ob(b,c),b=!0):b=!1;return b||g.pb(this.o,a)};
g.h.sb=function(){for(var a=[],b=this.g.length-1;0<=b;--b)a.push(this.g[b]);var c=this.o.length;for(b=0;b<c;++b)a.push(this.o[b]);return a};g.D(dC,g.Ef);g.D(iC,Ry);g.h=iC.prototype;g.h.tq=function(){var a=Sy(this);g.S(a,"ima-container-rotator");this.G=g.xd("DIV");this.g.appendChild(this.G);(0,g.H)(this.L,function(a,c){g.S(a,"ima-container-highlight");var b=63/this.L.length*(c+.5)-5,e=g.xd("DIV",{id:Xa(),"class":"ima-container-selector"});e.style.top=b+"px";this.Of.U(e,"click",function(a){this.Qj(a.target)});
this.V.set(e.id,a);this.F.appendChild(e)},this);
this.Qj(g.Ld(this.F));this.play();return a};
g.h.play=function(){null==this.B&&(this.B=new g.rg(this.O),this.Of.U(this.B,"tick",this.XS));iC.Z.play.call(this);this.B.start()};
g.h.stop=function(){null!=this.B&&this.B.stop();iC.Z.stop.call(this)};
g.h.XS=function(){var a=this.C;this.Qj((g.t(a.nextElementSibling)?a.nextElementSibling:Kd(a.nextSibling))||g.Ld(this.C.parentNode))};
g.h.Qj=function(a){this.C&&g.Vp(this.C,"ima-container-active");g.S(a,"ima-container-active");var b=this.V.get(a.id);g.Hd(b,this.G);this.C=a;this.G=b;Ty(b)};g.D(jC,Ry);jC.prototype.hide=g.y;jC.prototype.tq=function(){var a=Sy(this);(0,g.H)(this.B,function(a){g.S(a,"ima-container-highlight");this.g.appendChild(a);Ty(a)},this);
this.play();return a};g.D(kC,Uy);g.h=kC.prototype;g.h.my=function(a,b){if(this.C||null==b)b=g.y;if(P.g()&&this.C)var c=new Ry(a[0],b);else 1<a.length?mC(this)||"fullscreen"==this.Zc&&P.g()?c=new jC(a):(c=new iC(a),c.O=15E3):c=new Ry(a[0],b);c.rr=100;this.C&&(c.Xy=30);c.Yy=45E3;c.SB=6E3;g.T(c.g,"scalable",this.C);g.T(c.oa(),"yt-text-overlay",P.g()&&this.C);return c};
g.h.dT=function(a){var b=a.g;null!=b?(null==this.I&&(this.I=a.getExtension("AdSense").o),Lp(b,g.Aa(this.kr,a,b)),Kp(b,g.Aa(this.jI,a,b)),"Text"==b.md()&&(this.C=!0),this.A.push(b)):(b=hn(hC),b=lq(b,a),en(gs(a),b))};
g.h.Rc=function(a,b,c){kC.Z.Rc.call(this,a,b,c);this.Qa.Zv=!0;a=this.la();g.kb(is(a))?P.g()&&this.ia("companionBackfill"):this.xd(a)};
g.h.dw=function(){null==this.A&&(this.A=[],(0,g.H)(this.ads,this.dT,this));if(0==this.A.length)throw jn(hC);var a=[];(0,g.H)(this.A,function(b){Mp(b,this.Wa());"Flash"!=b.md()||b.Mb().getExtension("TemplateAd")||(b.gw=!0);a.push(b.Cc());rea(b,this.I.F)},this);
if(0==a.length)throw jn(hC);Via(this);return this.Em(a)};
g.h.start=function(){kC.Z.start.call(this);!this.G&&mC(this)&&(this.G=!0,this.ia("contentPauseRequested"));null!=this.o&&this.o.start();if(this.B){var a=nC(this);Vn(Sn.getInstance(),33,a)}};
g.h.Fn=function(a){kC.Z.Fn.call(this,a);(0,g.H)(this.A,function(a){var b=mq(a.Mb(),this.Ha);this.Ob.g=b;this.jg(a,["close"]);this.Da("close");this.Ob=new Cu},this)};
g.h.jn=function(a){kC.Z.jn.call(this,a);mC(this)&&(null!=this.containerElement&&g.Dd(this.containerElement),P.o?uo().Tj(null):co().Tj(null),this.G&&(this.G=!1,this.ia("contentResumeRequested")))};
g.h.Em=function(a){a=kC.Z.Em.call(this,a);if(mC(this)){var b=Kw(2);g.S(this.g.g,b);g.S(a,b)}return a};
g.h.cq=function(a){if(mC(this)){var b=g.Nd(a);b&&((a=g.Jd(a)[0])&&g.nh(a,{margin:"0 auto"}),a=this.ads[0].getExtension("AdSense").o||new jv,this.o=new vx(b,a,2,lC(this),!0),this.Wa().U(this.o,"skip",this.FI),this.Wa().U(this.o,"end",this.vJ))}else kC.Z.cq.call(this,a),b=Zp(Aha,lC(this)),a.appendChild(b)};
g.h.kr=function(a,b){this.B?this.Jl(a,b):this.F.push((0,g.A)(this.Jl,this,a,b));Lp(b,g.y);this.ia("impression")};
g.h.Jl=function(a,b){var c=mq(a,this.Ha);this.Ob.g=c;this.Gg(a);this.jg(b,["creativeview"]);this.Da("impression");this.Da("creativeview");Lu(this,"start");this.Ob=new Cu};
g.h.jI=function(a,b,c){a=a.getExtension("AdSense");a=new g.Vl(a.B);var d=b.Gb();(0,window.isNaN)(d)&&(d=g.Gh(b.Cc()).width);var e=b.getHeight();(0,window.isNaN)(e)&&(e=g.Gh(b.Cc()).height);var f=g.Ch(c),k=c instanceof df;b=k&&g.t(c.B)?c.B:f.x;c=k&&g.t(c.C)?c.C:f.y;f=Qm();c=["0","aw="+d,"ah="+e,"nx="+b,"ny="+c,"viewMode="+this.Zc,"sdkv=h.0.0.0","eids="+Um(f)];P.g()||(d=g.Gh(this.Ia.Mf()),e=this.o?Xga(this.o):new g.ad(-1,-1),c=c.concat(["bw="+d.width,"bh="+d.height,"sx="+e.x,"sy="+e.y]));bn(a,"elementclick",
c);(0,g.H)(this.A,function(a){var b=mq(a.Mb(),this.Ha);this.Ob.g=b;Vy(this,a);this.Da("click");this.Ob=new Cu},this);
this.ia("click")};
g.h.zc=function(a){this.Zc!=a&&(kC.Z.zc.call(this,a),this.ia("expandedChanged"))};
g.h.Om=function(){kC.Z.Om.call(this,this.o?15:0,this.o?65:0)};
g.h.FI=function(){oC(this,"skip")};
g.h.vJ=function(){oC(this,"close")};g.D(pC,g.L);pC.prototype.o=function(a){if(0==a.Ac||Rm().g("disable_freqcap_for_hummingbird")&&(g.kb(a.F)?0:a.F[0].cn)||0>=this.A||0>=this.g)return!1;var b=(0,g.G)()/1E3;a=a.Ac-this.B.currentTime;0<a&&(b+=a);return b-this.g<=this.A};g.D(qC,pC);qC.prototype.o=function(a){return 5==a.bf()?!1:qC.Z.o.call(this,a)};g.D(gC,Gu);g.h=gC.prototype;
g.h.Rc=function(a,b,c){null!=this.Qb&&(this.Qb.Xc(),this.Qb.dispose(),this.Qb=null);gC.Z.Rc.call(this,a,b,c);a=this.Ef.g.Db();b=new Iz(b);var d=4;c&&0<=c.lt&&(d=c.lt);var e=new yz,f=Rm(),k=f.o("sdk_ad_prefetch_time_seconds");0<=k&&(d=k);e.D=d;e.C=f.g("enable_prefetch_for_postrolls");e.g=f.g("enable_midroll_notify");e.A=f.g("enable_postroll_notify");e.o=f.o("midroll_notify_time_seconds");e.B=f.o("postroll_notify_time_seconds");this.qt=null!=c?c.KB:0;Xia(this,a);this.Qb=new zz(b,this.Eb.sb(),e);a=this.Ef.g.Db();
Yia(this,a);Zia(this);c=g.eb(this.Eb.sb(),function(a){return 0==a.Ac});
null!=c&&this.gg()&&wC(this,c);try{c={cfg:!0},c.ads=this.mg,Vn(Sn.getInstance(),44,c)}catch(l){}};
g.h.init=function(a){gC.Z.init.call(this,a);this.To()};
g.h.Gj=function(){this.We();this.dispatchEvent(new Jw(null))};
g.h.destroy=function(){this.dispose()};
g.h.W=function(){this.kb.g=!0;if(0<this.Eb.Jc()){var a=this.Eb.sb();(0,g.H)(a,this.Zi,this);this.Eb.clear()}uC(this);xC(this);null!=this.Ia&&(this.Ia.hide(),this.Ia=null);gC.Z.W.call(this)};
g.h.start=function(){gC.Z.start.call(this)};
g.h.stop=function(){null!=this.wb&&(this.Zi(this.wb),this.dg())};
g.h.Bb=function(a,b,c){gC.Z.Bb.call(this,a,b,c);this.ae=a;this.Zd=b;this.Zc=c;null!=this.wb&&Yy(this.wb,this.ae,this.Zd,this.Zc)};
g.h.pause=function(){null!=this.wb&&this.wb.pause()};
g.h.resume=function(){null!=this.wb&&this.wb.resume()};
g.h.skip=function(){null!=this.wb&&this.wb.skip()};
g.h.tf=function(){null!=this.wb&&this.wb.tf()};
g.h.setVolume=function(a){gC.Z.setVolume.call(this,a);null!=this.wb&&this.wb.setVolume(a)};
g.h.getCurrentTime=function(){return null!=this.wb?this.wb.getCurrentTime():-1};
g.h.getDuration=function(){return null!=this.wb?this.wb.getDuration():-1};
g.h.Lc=function(){return null!=this.wb?this.wb.Lc():-1};
g.h.We=function(){var a=g.sb(this.Ef.g.Db());(0,g.H)(this.Eb.sb(),g.Aa(function(a,c){5==c.bf()&&g.pb(a,c.Ac)},a));
return a};
g.h.Lb=function(){return null!=this.wb?this.wb.Lb():null};
g.h.Ko=function(){};
g.h.Se=function(a){gC.Z.Se.call(this,a);null!=this.Eb&&(0,g.H)(this.Eb.sb(),function(b){b.Se(a)})};
g.h.To=function(){this.Qb.Cb();this.Qb.hy();var a=g.qa(0)&&!(0,window.isNaN)(0)?this.Ef.g.get(0,[]):[];g.kb(a)&&this.ia("contentResumeRequested")};
g.h.handleEvent=function(a){switch(a.type){case "contentTrackingError":break;case "discardAdBreak":tC(this,this.Eb.get(a.g));break;default:g.ZB(this.zk,a),vC(this)}};
g.h.Di=function(){this.ia("userClose")};
g.h.Ci=function(){this.ia("autoClose")};
g.h.Zi=function(a){a.destroy();this.Eb.remove(g.za(a));this.wb=null;null!=this.ac&&(this.ac.Ca(a,Fy,this.dispatchEvent,!1,this),this.ac.Ca(a,"adError",this.qx,!1,this),this.ac.Ca(a,"allAdsCompleted",this.EA,!1,this),this.ac.Ca(a,"contentPauseRequested",this.xh,!1,this),this.ac.Ca(a,"contentResumeRequested",this.dg,!1,this),this.ac.Ca(a,"adBreakInitialized",this.FA,!1,this))};
g.h.cP=function(a){this.Wm=!0;-1==this.ni?a.A=!1:P.g()&&!rC(this)||sC(this);Kha(this.Qb)};
g.h.Al=function(a){if(null!=a.A){var b={};b.adBreakTime=a.A;this.dispatchEvent(new Dm("adNotify",null,b))}};
g.h.Cl=function(){this.dispatchEvent(new Dm("discardAdNotify",null))};
g.h.bO=function(a){var b=a.A,c=0==b,d=-1==b;this.yk?(c?this.ia("contentResumeRequested"):!d||P.g()&&!rC(this)||sC(this),this.yk=!1):(d?g.tg(function(){var b=this.Eb.get(a.g);b&&this.Zi(b);P.g()&&!rC(this)||sC(this)},500,this):c&&g.tg(function(){this.ia("contentResumeRequested")},100,this),c={},c.adBreakTime=b,this.dispatchEvent(new Dm("adBreakReady",null,c)))};
g.h.qx=function(a){var b=a.getError(),c=b.Rb();try{var d={};d.ec=c;Vn(Sn.getInstance(),44,d)}catch(e){}if(P.g()&&b&&"adLoadError"==b.Yb()&&(this.dispatchEvent(a),null!=this.Qb))for(b=this.Qb,a=a.target.Ac,c=0;c<b.g.length;c++)b.g[c].g==a&&(b.g[c].B=!0)};
g.h.EA=function(a){this.Zi(a.target);(rC(this)||!P.g()&&this.Wm)&&sC(this);this.Md=null;vC(this)};
g.h.xh=function(){var a=this.Qb;a.o.stop();a.A=!1;this.ia("contentPauseRequested")};
g.h.dg=function(){this.ia("contentResumeRequested");this.Xp||Cz(this.Qb);this.Md=null};
g.h.FA=function(a){this.Md=null;var b=a.target;a={};a.adBreakTime=b.Ac;this.dispatchEvent(new Dm("prefetched",b.Lb(),a));if(null!=this.Qb){a=this.Qb;b=b.Ac;for(var c=0;c<a.g.length;c++)a.g[c].g==b&&(a.g[c].ge=!0)}vC(this)};
g.h.ia=function(a){var b=null;null!=this.wb&&(b=this.wb.Lb());this.dispatchEvent(new Dm(a,b))};
g.h.dj=function(a){return g.eb(this.Eb.sb(),g.Aa(function(a,c){return c.Ac==a},a))};
g.h.tC=function(a,b){P.g()?this.kd=new qC(a,b):this.kd=new pC(a,b);return this.kd};
g.h.De=function(){return P.g()&&null!=yC(this)&&null!=yC(this).g?yC(this).g.De():null};
g.h.eg=function(a){null!=yC(this)&&yC(this).eg(a)};
g.h.gg=function(){return null===this.Ia?!1:this.Qa.Tk&&Fn(this.Ia)};g.D(AC,g.Ef);AC.prototype.W=function(){null!=this.g&&(this.g.Ca("adsManagerLoaded",this.dispatchEvent),this.g.Ca("adError",this.dispatchEvent),this.g.Ca("adLoadError",this.dispatchEvent),this.g=null);AC.Z.W.call(this)};fc("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));(function(){for(var a=["ms","moz","webkit","o"],b=0,c;c=a[b]&&!v.requestAnimationFrame;++b)v.requestAnimationFrame=v[c+"RequestAnimationFrame"],v.cancelAnimationFrame=v[c+"CancelAnimationFrame"]||v[c+"CancelRequestAnimationFrame"];if(!v.requestAnimationFrame){var d=0;v.requestAnimationFrame=function(a){var b=(new Date).getTime(),c=Math.max(0,16-(b-d));d=b+c;return v.setTimeout(function(){a(b+c)},c)};
v.cancelAnimationFrame||(v.cancelAnimationFrame=function(a){(0,window.clearTimeout)(a)})}})();CC.prototype.stringify=function(a){return v.JSON.stringify(a,this.g)};
CC.prototype.parse=function(a){return v.JSON.parse(a,this.o)};DC.prototype.clone=function(){return new DC(this.g,this.F,this.A,this.C,this.B,this.D,this.o,this.G)};FC.prototype.o=0;FC.prototype.reset=function(){this.g=this.A=this.B;this.o=0};
FC.prototype.getValue=function(){return this.A};g.h=GC.prototype;g.h.hi=null;g.h.vf=!1;g.h.fk=null;g.h.mu=null;g.h.Kl=null;g.h.jj=null;g.h.hh=null;g.h.Ch=null;g.h.Gi=null;g.h.Pc=null;g.h.Ul=0;g.h.xf=null;g.h.ip=null;g.h.ii=null;g.h.Rk=-1;g.h.gC=!0;g.h.Rh=!1;g.h.fr=0;g.h.Bo=null;var NC={},LC={};g.h=GC.prototype;g.h.setTimeout=function(a){this.C=a};
g.h.LS=function(a){a=a.target;var b=this.Bo;b&&3==ax(a)?b.ij():this.gD(a)};
g.h.gD=function(a){try{if(a==this.Pc)a:{var b=ax(this.Pc),c=this.Pc.o,d=this.Pc.getStatus();if(g.sd&&!g.pc(10)||g.ud&&!g.oc("420+")){if(4>b)break a}else if(3>b||3==b&&!g.bf&&!ex(this.Pc))break a;this.Rh||4!=b||7==c||(8==c||0>=d?this.g.qf(3):this.g.qf(2));XC(this);var e=this.Pc.getStatus();this.Rk=e;var f=ex(this.Pc);(this.vf=200==e)?(4==b&&PC(this),this.D?(RC(this,b,f),g.bf&&this.vf&&3==b&&(this.B.U(this.o,"tick",this.CS),this.o.start())):OC(this,f),this.vf&&!this.Rh&&(4==b?this.g.so(this):(this.vf=
!1,KC(this)))):(this.ii=400==e&&0<f.indexOf("Unknown SID")?3:0,MC(),PC(this),QC(this))}}catch(k){this.Pc&&ex(this.Pc)}finally{}};
g.h.CS=function(){var a=ax(this.Pc),b=ex(this.Pc);this.Ul<b.length&&(XC(this),RC(this,a,b),this.vf&&4!=a&&KC(this))};
g.h.PR=function(a){WC((0,g.A)(this.OR,this,a),0)};
g.h.OR=function(a){this.Rh||(XC(this),OC(this,a),KC(this))};
g.h.xB=function(a){WC((0,g.A)(this.NR,this,a),0)};
g.h.NR=function(a){this.Rh||(PC(this),this.vf=a,this.g.so(this),this.g.qf(4))};
g.h.cancel=function(){this.Rh=!0;PC(this)};
g.h.gS=function(){this.fk=null;var a=(0,g.G)();0<=a-this.mu?(2!=this.jj&&this.g.qf(3),PC(this),this.ii=2,MC(),QC(this)):VC(this,this.mu-a)};g.h=aD.prototype;g.h.Zq=null;g.h.pe=null;g.h.Co=!1;g.h.Kx=null;g.h.mn=null;g.h.ar=null;g.h.dr=null;g.h.He=null;g.h.Ag=-1;g.h.Qk=null;g.h.pk=null;g.h.connect=function(a){this.dr=a;a=bD(this.g,null,this.dr);MC();this.Kx=(0,g.G)();var b=this.g.I;null!=b?(this.Qk=b[0],(this.pk=b[1])?(this.He=1,cD(this)):(this.He=2,eD(this))):(fm(a,"MODE","init"),this.pe=new GC(this,0,void 0,void 0,void 0),this.pe.hi=this.Zq,JC(this.pe,a,!1,null,!0),this.He=0)};
g.h.qH=function(a){if(a)this.He=2,eD(this);else{MC();var b=this.g;b.cf=b.Yg.Ag;yD(b,9)}a&&this.qf(2)};
g.h.yq=function(a){return this.g.yq(a)};
g.h.abort=function(){this.pe&&(this.pe.cancel(),this.pe=null);this.Ag=-1};
g.h.Jx=function(){return!1};
g.h.qB=function(a,b){this.Ag=a.Rk;if(0==this.He)if(b){try{var c=this.o.parse(b)}catch(d){c=this.g;c.cf=this.Ag;yD(c,2);return}this.Qk=c[0];this.pk=c[1]}else c=this.g,c.cf=this.Ag,yD(c,2);else if(2==this.He)if(this.Co)MC(),this.ar=(0,g.G)();else if("11111"==b){if(MC(),this.Co=!0,this.mn=(0,g.G)(),c=this.mn-this.Kx,!g.sd||g.pc(10)||500>c)this.Ag=200,this.pe.cancel(),MC(),dD(this.g,this,!0)}else MC(),this.mn=this.ar=(0,g.G)(),this.Co=!1};
g.h.so=function(){this.Ag=this.pe.Rk;if(this.pe.vf)0==this.He?this.pk?(this.He=1,cD(this)):(this.He=2,eD(this)):2==this.He&&((!g.sd||g.pc(10)?!this.Co:200>this.ar-this.mn)?(MC(),dD(this.g,this,!1)):(MC(),dD(this.g,this,!0)));else{0==this.He?MC():2==this.He&&MC();var a=this.g;a.cf=this.Ag;yD(a,2)}};
g.h.Ol=function(){return this.g.Ol()};
g.h.isActive=function(){return this.g.isActive()};
g.h.qf=function(a){this.g.qf(a)};g.h=fD.prototype;g.h.Bk=null;g.h.Od=null;g.h.wc=null;g.h.Yq=null;g.h.sn=null;g.h.bw=null;g.h.Dn=null;g.h.yl=0;g.h.XN=0;g.h.od=null;g.h.ah=null;g.h.vg=null;g.h.Vh=null;g.h.Yg=null;g.h.hp=null;g.h.wj=-1;g.h.Ny=-1;g.h.cf=-1;g.h.Ek=0;g.h.Ui=0;g.h.Th=8;var zD=new g.Ef;g.D(gD,g.$e);g.D(hD,g.$e);g.D(iD,g.$e);g.h=fD.prototype;g.h.connect=function(a,b,c,d,e){MC();this.Yq=b;this.Bk=c||{};d&&g.t(e)&&(this.Bk.OSID=d,this.Bk.OAID=e);this.D?(WC((0,g.A)(this.Bw,this,a),100),oD(this)):this.Bw(a)};
g.h.Bw=function(a){this.Yg=new aD(this);this.Yg.Zq=null;this.Yg.o=this.C;this.Yg.connect(a)};
g.h.Jx=function(){return 0==this.g};
g.h.vB=function(a){this.ah=null;tD(this,a)};
g.h.uB=function(){this.vg=null;this.wc=new GC(this,0,this.A,"rpc",this.F);this.wc.hi=null;this.wc.fr=0;var a=this.bw.clone();g.dm(a,"RID","rpc");g.dm(a,"SID",this.A);g.dm(a,"CI",this.hp?"0":"1");g.dm(a,"AID",this.wj);kD(this,a);if(!g.sd||g.pc(10))g.dm(a,"TYPE","xmlhttp"),JC(this.wc,a,!0,this.Dn,!1);else{g.dm(a,"TYPE","html");var b=this.wc,c=!!this.Dn;b.jj=3;b.hh=gm(a.clone());UC(b,c)}};
g.h.qB=function(a,b){if(0!=this.g&&(this.wc==a||this.Od==a))if(this.cf=a.Rk,this.Od==a&&3==this.g)if(7<this.Th){try{var c=this.C.parse(b)}catch(f){c=null}if(g.ua(c)&&3==c.length)if(0==c[0])a:{if(!this.vg){if(this.wc)if(this.wc.Kl+3E3<this.Od.Kl)pD(this),this.wc.cancel(),this.wc=null;else break a;wD(this);MC()}}else this.Ny=c[1],0<this.Ny-this.wj&&37500>c[2]&&this.hp&&0==this.Ui&&!this.Vh&&(this.Vh=WC((0,g.A)(this.BO,this),6E3));else yD(this,11)}else b!=gra.nX.g&&yD(this,11);else if(this.wc==a&&pD(this),
!E(b)){c=this.C.parse(b);g.ua(c);for(var d=0;d<c.length;d++){var e=c[d];this.wj=e[0];e=e[1];2==this.g?"c"==e[0]?(this.A=e[1],this.Dn=e[2],e=e[3],null!=e?this.Th=e:this.Th=6,this.g=3,this.od&&this.od.mw(this),this.bw=bD(this,this.Ol()?this.Dn:null,this.Yq),uD(this)):"stop"==e[0]&&yD(this,7):3==this.g&&("stop"==e[0]?yD(this,7):"noop"!=e[0]&&this.od&&this.od.lw(this,e),this.Ui=0)}}};
g.h.BO=function(){null!=this.Vh&&(this.Vh=null,this.wc.cancel(),this.wc=null,wD(this),MC())};
g.h.so=function(a){if(this.wc==a){pD(this);this.wc=null;var b=2}else if(this.Od==a)this.Od=null,b=1;else return;this.cf=a.Rk;if(0!=this.g)if(a.vf)1==b?((0,g.G)(),zD.dispatchEvent(new hD(zD,a.Gi?a.Gi.length:0)),nD(this),this.B.length=0):uD(this);else{var c=a.ii,d;if(!(d=3==c||7==c||0==c&&0<this.cf)){if(d=1==b)this.Od||this.ah||1==this.g||2<=this.Ek?d=!1:(this.ah=WC((0,g.A)(this.vB,this,a),vD(this,this.Ek)),this.Ek++,d=!0);d=!(d||2==b&&wD(this))}if(d)switch(c){case 1:yD(this,5);break;case 4:yD(this,
10);break;case 3:yD(this,6);break;case 7:yD(this,12);break;default:yD(this,2)}}};
g.h.MH=function(a){if(!g.jb(arguments,this.g))throw Error("Unexpected channel state: "+this.g);};
g.h.yT=function(a){a?MC():(MC(),xD(this,8))};
g.h.yq=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new Vw;a.G=!1;return a};
g.h.isActive=function(){return!!this.od&&this.od.isActive(this)};
g.h.qf=function(){zD.dispatchEvent(new iD(zD))};
g.h.Ol=function(){return!(!g.sd||g.pc(10))};
g.h=AD.prototype;g.h.mw=function(){};
g.h.lw=function(){};
g.h.kw=function(){};
g.h.pq=function(){};
g.h.rx=function(){return{}};
g.h.isActive=function(){return!0};g.D(g.CD,g.L);g.h=g.CD.prototype;g.h.subscribe=function(a,b,c){var d=this.o[a];d||(d=this.o[a]=[]);var e=this.Sd;this.g[e]=a;this.g[e+1]=b;this.g[e+2]=c;this.Sd=e+3;d.push(e);return e};
g.h.unsubscribe=function(a,b,c){if(a=this.o[a]){var d=this.g;if(a=g.eb(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Xd(a)}return!1};
g.h.Xd=function(a){var b=this.g[a];if(b){var c=this.o[b];0!=this.B?(this.A.push(a),this.g[a+1]=g.y):(c&&g.pb(c,a),delete this.g[a],delete this.g[a+1],delete this.g[a+2])}return!!b};
g.h.X=function(a){var b=this.o[a];if(b){for(var c=Array(arguments.length-1),d=1,e=arguments.length;d<e;d++)c[d-1]=arguments[d];if(this.C)for(d=0;d<b.length;d++){var f=b[d];fja(this.g[f+1],this.g[f+2],c)}else{this.B++;try{for(d=0,e=b.length;d<e;d++)f=b[d],this.g[f+1].apply(this.g[f+2],c)}finally{if(this.B--,0<this.A.length&&0==this.B)for(;f=this.A.pop();)this.Xd(f)}}return 0!=d}return!1};
g.h.clear=function(a){if(a){var b=this.o[a];b&&((0,g.H)(b,this.Xd,this),delete this.o[a])}else this.g.length=0,this.o={}};
g.h.Jc=function(a){if(a){var b=this.o[a];return b?b.length:0}a=0;for(b in this.o)a+=this.Jc(b);return a};
g.h.W=function(){g.CD.Z.W.call(this);this.clear();this.A.length=0};g.DD.prototype.set=function(a,b){g.t(b)?this.g.set(a,g.zg(b)):this.g.remove(a)};
g.DD.prototype.get=function(a){try{var b=this.g.get(a)}catch(c){return}if(null!==b)try{return g.xg(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.DD.prototype.remove=function(a){this.g.remove(a)};g.D(HD,g.DD);HD.prototype.set=function(a,b){HD.Z.set.call(this,a,ND(b))};
HD.prototype.o=function(a){a=HD.Z.get.call(this,a);if(!g.t(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
HD.prototype.get=function(a){if(a=this.o(a)){if(a=a.data,!g.t(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.D(OD,HD);OD.prototype.set=function(a,b,c){if(b=ND(b)){if(c){if(c<(0,g.G)()){OD.prototype.remove.call(this,a);return}b.expiration=c}b.creation=(0,g.G)()}OD.Z.set.call(this,a,b)};
OD.prototype.o=function(a,b){var c=OD.Z.o.call(this,a);if(c)if(!b&&g.PD(c))OD.prototype.remove.call(this,a);else return c};g.D(g.QD,OD);g.D(RD,gja);RD.prototype.Jc=function(){var a=0;g.Ol(this.Yd(!0),function(){a++});
return a};
RD.prototype.clear=function(){var a=qda(this.Yd(!0)),b=this;(0,g.H)(a,function(a){b.remove(a)})};g.D(SD,RD);g.h=SD.prototype;g.h.isAvailable=function(){if(!this.g)return!1;try{return this.g.setItem("__sak","1"),this.g.removeItem("__sak"),!0}catch(a){return!1}};
g.h.set=function(a,b){try{this.g.setItem(a,b)}catch(c){if(0==this.g.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.h.get=function(a){a=this.g.getItem(a);if(!g.u(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.g.removeItem(a)};
g.h.Jc=function(){return this.g.length};
g.h.Yd=function(a){var b=0,c=this.g,d=new Ll;d.next=function(){if(b>=c.length)throw Ml;var d=c.key(b++);if(a)return d;d=c.getItem(d);if(!g.u(d))throw"Storage mechanism: Invalid value was encountered";return d};
return d};
g.h.clear=function(){this.g.clear()};
g.h.key=function(a){return this.g.key(a)};g.D(TD,SD);g.D(UD,SD);g.D(VD,RD);VD.prototype.set=function(a,b){this.o.set(this.g+a,b)};
VD.prototype.get=function(a){return this.o.get(this.g+a)};
VD.prototype.remove=function(a){this.o.remove(this.g+a)};
VD.prototype.Yd=function(a){var b=this.o.Yd(!0),c=this,d=new Ll;d.next=function(){for(var d=b.next();d.substr(0,c.g.length)!=c.g;)d=b.next();return a?d.substr(c.g.length):c.o.get(d)};
return d};XD.prototype.getValue=function(){return this.g};
XD.prototype.clone=function(){return new XD(this.Sd,this.g)};g.h=YD.prototype;g.h.remove=function(){var a=this.g,b=a.length,c=a[0];if(!(0>=b)){if(1==b)lb(a);else{a[0]=a.pop();a=0;b=this.g;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,k=2*a+2;f=k<d&&b[k].Sd<b[f].Sd?k:f;if(b[f].Sd>e.Sd)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.h.sb=function(){for(var a=this.g,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.h.Db=function(){for(var a=this.g,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].Sd);return b};
g.h.clone=function(){return new YD(this)};
g.h.Jc=function(){return this.g.length};
g.h.isEmpty=function(){return g.kb(this.g)};
g.h.clear=function(){lb(this.g)};g.D($D,YD);/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
aE.prototype.cancel=function(a){if(this.g)this.A instanceof aE&&this.A.cancel();else{if(this.o){var b=this.o;delete this.o;a?b.cancel(a):(b.G--,0>=b.G&&b.cancel())}this.N?this.N.call(this.L,this):this.I=!0;this.g||(a=new kE,eE(this),cE(this,!1,a))}};
aE.prototype.J=function(a,b){this.F=!1;cE(this,a,b)};
aE.prototype.qk=function(a){eE(this);cE(this,!0,a)};
aE.prototype.then=function(a,b,c){var d,e,f=new g.Yf(function(a,b){d=a;e=b});
fE(this,d,function(a){a instanceof kE?f.cancel():e(a)});
return f.then(a,b,c)};
Vf(aE);aE.prototype.isError=function(a){return a instanceof Error};
g.D(dE,Fa);dE.prototype.message="Deferred has already fired";dE.prototype.name="AlreadyCalledError";g.D(kE,Fa);kE.prototype.message="Deferred was canceled";kE.prototype.name="CanceledError";jE.prototype.o=function(){delete iE[this.ya];throw this.g;};
var iE={};g.D(lE,te);g.D(mE,te);var ija=[2,11];var Bna={uV:0,sV:1,qV:2,uX:3,tV:4,zX:5,yX:6,wX:7,vX:8,sX:9,tX:10,xX:11,rX:12,vV:13,wV:14,rV:15,xV:16,yV:17},Cna={NV:0,LV:1,KV:2,MV:3,JV:4,EV:5,HV:6,IV:7,GV:8,CV:9,RV:10,BV:11,FV:12,AV:13,PV:14,zV:15,QV:16,OV:17},Dna={UY:0,VY:1,XY:2,WY:3,SY:4,TY:5,AX:6};g.ZG=window.performance&&window.performance.timing&&window.performance.now?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};g.oE=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};g.ra("yt.config_",g.oE,void 0);var rE=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.ra("yt.msgs_",rE,void 0);Ca=function(a,b){b=void 0===b?{}:b;var c=a in rE?rE[a]:a,d;for(d in b){var e=(""+b[d]).replace(/\$/g,"$$$$");c=c.replace(new RegExp("\\{\\$"+d+"\\}","gi"),e);c=c.replace(new RegExp("\\$"+d,"gi"),e)}return c};g.uE=void 0;var RE={km:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},
rf:function(a,b){a.splice(0,b)},
JR:function(a){a.reverse()}};var Rra,yka,xka,Sra,dQ,Zma,sla,Tra,KL,RN,tla;Rra=/^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\/)/;yka=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|googleapis\.com|prod\.google\.com|staging\-www\.sandbox\.googleapis\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b))/;
xka=/^http:\/\/0\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.l2gfe\.[a-z0-9_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|^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(education|-nocookie)?\.com\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|[A-Za-z0-9]+(-v6)?\.prod\.google\.com(:[0-9]+)?\/|m?web-ppg\.corp\.google\.com\/|play\.google\.com\/)/;
Sra=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.google\.com\/pagead\/xsul|www\.youtube\.com\/pagead\/psul|www\.youtube\.com\/pagead\/slav|www\.youtube\.com\/pagead\/sul)/;dQ=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|docs\.google\.com|drive\.google\.com|prod\.google\.com|plus\.google\.com|mail\.google\.com|youtube\.com|youtube\-nocookie\.com|youtubeeducation\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b))/;Zma=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|youtube\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b))/;
sla=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|video\.google\.com|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubeeducation\.com)(:[0-9]+)?\/\/*embed(\/+|\?|#|$)/;g.gP=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((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}\.)*(corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|plus\.google\.com|video\.google\.com|youtube\.com|ytimg\.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\/)/;
Tra=/^https?.*#ocr$|^https?:\/\/(aksecure\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|secure\-..\.imrworldwide\.com\/)/;g.I2=/^https?:\/\/(googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion)|www\.google\.com\/(aclk|pagead\/conversion)|www\.googleadservices\.com\/(aclk|pagead\/(aclk|conversion)))/;KL=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((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}\.)*(ba\.l\.google\.com|c\.googlesyndication\.com|corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|googlevideo\.com|play\.google\.com|prod\.google\.com|plus\.google\.com|mail\.google\.com|ed\.video\.google\.com|vp\.video\.l\.google\.com|youtube\.com|youtubeeducation\.com|xfx7\.com|yt\.akamaized\.net|chat\.google\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b))/;
RN=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|googlesyndication\.com|corp\.google\.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|youtubeeducation\.com|ytimg\.com)(:[0-9]+)?\/|lightbox-(demos|builder)\.appspot\.com\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|tpc\.googlesyndication\.com\/safeframe\/|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer)/;
tla=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|corp\.google\.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|picasaweb\.google\.com|get\.google\.com|lh2\.google\.com|plus\.google\.com|spaces\.google\.com|books\.googleusercontent\.com|blogger\.com|mail\.google\.com|play\-books\-internal\-sandbox\.googleusercontent\.com|talkgadget\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubeeducation\.com|vevo\.com|jamboard\.google\.com|chat\.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)\?|24e12c4a-a-95274a9c-s-sites\.googlegroups\.com\/a\/google\.com\/flash-api-test-harness\/apiharness\.swf|lightbox-(demos|builder)\.appspot\.com\/|s0\.2mdn\.net\/instream\/html5\/native\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|tpc\.googlesyndication\.com\/safeframe\/|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris)/;(0,g.G)();var VE=g.t(window.XMLHttpRequest)?function(){return new window.XMLHttpRequest}:g.t(window.ActiveXObject)?function(){return new window.ActiveXObject("Microsoft.XMLHTTP")}:null;var kF={"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-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"},lF=!1;var hN=VN||UN,TN=qF;var BF={},qja=0;var sja={nW:"net.badstatus",o0:"net.retryexhausted",TIMEOUT:"net.timeout",UNKNOWN:"net.unknown"};g.p(EF,Fa);var rja=EF;HF.prototype.then=function(a,b,c){return this.A?this.A.then(a,b,c):1===this.o&&a?(a=a.call(c,this.g),Wf(a)?a:JF(a)):2===this.o&&b?(a=b.call(c,this.g),Wf(a)?a:IF(a)):this};
HF.prototype.getValue=function(){return this.g};
Vf(HF);g.p(LF,Fa);LF.prototype.name="BiscottiError";g.p(KF,Fa);KF.prototype.name="BiscottiMissingError";var OF={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},NF=null;var UF={};var Ura,ZF;Ura=0;ZF=g.ud?"webkit":g.ph?"moz":g.sd?"ms":g.bf?"o":"";g.Vra=g.x("ytDomDomGetNextId")||function(){return++Ura};
g.ra("ytDomDomGetNextId",g.Vra,void 0);var vja={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};eG.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
eG.prototype.Gy=function(){return this.event?!1===this.event.returnValue:!1};
eG.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
eG.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var gG=g.x("ytEventsEventsListeners")||{};g.ra("ytEventsEventsListeners",gG,void 0);var hG=g.x("ytEventsEventsCounter")||{count:0};g.ra("ytEventsEventsCounter",hG,void 0);var Wra=Jf(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});g.sG.prototype.U=function(a,b,c,d){c=(0,g.A)(c,d||this.o);a=g.iG(a,b,c);this.g.push(a);return a};
g.sG.prototype.Ca=function(a){g.jG(a);g.pb(this.g,a)};g.p(g.uG,g.L);g.uG.prototype.P=function(a,b,c,d,e){c=UE((0,g.A)(c,d||this.Ib));c={target:a,name:b,qk:c};var f;e&&Wra()&&(f={passive:!0});a.addEventListener(b,c.qk,f);this.N.push(c);return c};
g.uG.prototype.Ca=function(a){for(var b=0;b<this.N.length;b++)if(this.N[b]==a){this.N.splice(b,1);a.target.removeEventListener(a.name,a.qk);break}};
g.uG.prototype.W=function(){g.wG(this);g.L.prototype.W.call(this)};g.D(g.xG,g.L);g.xG.prototype.subscribe=function(a,b,c){return this.ma()?0:this.ea.subscribe(a,b,c)};
g.xG.prototype.unsubscribe=function(a,b,c){return this.ma()?!1:this.ea.unsubscribe(a,b,c)};
g.xG.prototype.Xd=function(a){return this.ma()?!1:this.ea.Xd(a)};
g.xG.prototype.X=function(a,b){return this.ma()?!1:this.ea.X.apply(this.ea,arguments)};g.p(g.zG,g.xG);g.h=g.zG.prototype;g.h.cancel=function(){this.B&&(this.B=!1,this.X("dragend",0,0,null));this.o&&(this.o=!1,this.X("hoverend",0,0,null),g.wG(this.g),yG(this))};
g.h.iz=function(a){g.wG(this.g);AG(this,BG("move"),this.gz);AG(this,BG("out"),this.hz);AG(this,"touchstart",this.rs);this.A&&AG(this,BG("down"),this.qs);var b=g.kG(a);a=mG(a);this.o=!0;this.X("hoverstart",a.x,a.y,b);this.X("hovermove",a.x,a.y,b)};
g.h.gz=function(a){var b=g.kG(a);a=mG(a);if(this.C){var c=this.C;this.C=null;if(nG(c)==b&&bd(mG(c),a))return}this.X("hovermove",a.x,a.y,b)};
g.h.hz=function(a){var b=mG(a),c=nG(a);c&&g.Od(this.D,c)?(this.C=a,this.X("hovermove",b.x,b.y,c)):(g.wG(this.g),yG(this),this.o=!1,this.X("hoverend",b.x,b.y,c))};
g.h.PN=function(a){this.iz(a);this.qs(a)};
g.h.qs=function(a){if(!g.qa(a.button)||0==a.button){g.wG(this.g);this.g.P(window.document,BG("move"),this.ON);this.g.P(window.document,BG("up"),this.JK);var b=g.kG(a);if(g.ud)AG(this,"dragstart",this.GH);else if(g.rG(a),(g.tO||g.ph)&&b)a:{for(var c=b;c;){if(g.Ud(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}window.document.activeElement.blur()}this.B=!0;a=mG(a);this.X("dragstart",a.x,a.y,b);this.X("dragmove",a.x,a.y,b)}};
g.h.GH=function(a){g.rG(a)};
g.h.ON=function(a){var b=g.kG(a);b==window.document&&(b=null);a=mG(a);this.X("hovermove",a.x,a.y,b);this.X("dragmove",a.x,a.y,b)};
g.h.JK=function(a){g.wG(this.g);this.B=!1;var b=oG(a),c=g.kG(a);a=mG(a);b&&g.Od(this.D,b)?(AG(this,BG("move"),this.gz),AG(this,BG("out"),this.hz),AG(this,BG("down"),this.qs),AG(this,"touchstart",this.rs),this.X("dragend",a.x,a.y,c)):(yG(this),this.o=!1,this.X("dragend",a.x,a.y,c),this.X("hoverend",a.x,a.y,c))};
g.h.rs=function(a){var b=a.changedTouches[0];b&&(g.wG(this.g),AG(this,"touchmove",this.KK),AG(this,"touchend",this.jz),AG(this,"touchcancel",this.jz),this.F=b.identifier,a=g.kG(a),this.o||(this.o=!0,this.X("hoverstart",b.pageX,b.pageY,a)),this.X("hovermove",b.pageX,b.pageY,a),this.A&&(this.B=!0,this.X("dragstart",b.pageX,b.pageY,a),this.X("dragmove",b.pageX,b.pageY,a)))};
g.h.KK=function(a){var b=CG(this,a);b&&(this.A&&g.rG(a),a=g.kG(a),this.X("hovermove",b.pageX,b.pageY,a),this.A&&this.X("dragmove",b.pageX,b.pageY,a))};
g.h.jz=function(a){var b=CG(this,a);if(b){g.wG(this.g);yG(this);this.o=!1;var c=g.kG(a);this.A&&(this.G||g.rG(a),this.B=!1,this.X("dragend",b.pageX,b.pageY,c));this.X("hoverend",b.pageX,b.pageY,c)}};
g.h.W=function(){this.A&&(g.ud&&this.D.removeAttribute("draggable"),this.D.style.touchAction="");g.wG(this.g);g.xG.prototype.W.call(this)};var xja={enablejsapi:1},yja={},zja={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};DG.prototype.clone=function(){var a=new DG,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==ta(c)?a[b]=g.$b(c):a[b]=c}return a};var oH=0,pH={};var Hja={jW:"atp",L0:"ska",Z_:"que",l_:"mus",H0:"sus"};var Xra=g.x("ytPubsubPubsubInstance")||new g.CD;g.CD.prototype.subscribe=g.CD.prototype.subscribe;g.CD.prototype.unsubscribeByKey=g.CD.prototype.Xd;g.CD.prototype.publish=g.CD.prototype.X;g.CD.prototype.clear=g.CD.prototype.clear;g.ra("ytPubsubPubsubInstance",Xra,void 0);g.HG=g.x("ytPubsubPubsubSubscribedKeys")||{};g.ra("ytPubsubPubsubSubscribedKeys",g.HG,void 0);g.JG=g.x("ytPubsubPubsubTopicToKeys")||{};g.ra("ytPubsubPubsubTopicToKeys",g.JG,void 0);var IG=g.x("ytPubsubPubsubIsSynchronous")||{};
g.ra("ytPubsubPubsubIsSynchronous",IG,void 0);var Bja={log_event:"events",log_event2:"events",log_interaction:"interactions"},J2=Object.create(null);J2.log_event="GENERIC_EVENT_LOGGING";J2.log_event2="GENERIC_EVENT_LOGGING";J2.log_interaction="INTERACTION_LOGGING";var XG={},PG={},VG=0,WG=g.x("ytLoggingTransportLogPayloadsQueue_")||{};g.ra("ytLoggingTransportLogPayloadsQueue_",WG,void 0);var QG=g.x("ytLoggingTransportTokensToCttTargetIds_")||{};g.ra("ytLoggingTransportTokensToCttTargetIds_",QG,void 0);
var YG=g.x("ytLoggingTransportDispatchedStats_")||{};g.ra("ytLoggingTransportDispatchedStats_",YG,void 0);var Yra=g.x("ytLoggingTransportCapturedTime_")||{};g.ra("ytytLoggingTransportCapturedTime_",Yra,void 0);var Zra=bH;var mH=g.x("ytLoggingLatencyUsageStats_")||{};g.ra("ytLoggingLatencyUsageStats_",mH,void 0);var nH=0;var $ra;$ra=new TD;g.qH=$ra.isAvailable()?new g.QD($ra):null;var rH,asa=new UD;rH=asa.isAvailable()?new g.QD(asa):null;wH.prototype.Xm=function(){var a=new wH({id:this.id,name:this.name,app:this.app,type:this.type,user:this.username,userAvatarUri:this.avatar,obfuscatedGaiaId:this.obfuscatedGaiaId,theme:this.theme,capabilities:Array.from(this.capabilities.values()).join(","),experiments:Array.from(this.experiments.values()).join(",")});a.A=this.A;a.o=this.o;a.g=this.g;return a};g.D(yH,g.L);yH.prototype.C=function(){500<this.g&&24E4>2*this.g&&(this.g*=2);this.B();this.A&&this.start()};
yH.prototype.start=function(){this.o.Qd(this.g);this.A=(0,g.G)()+this.g};
yH.prototype.stop=function(){this.o.stop();this.A=0};
yH.prototype.isActive=function(){return this.o.isActive()};g.D(zH,AD);g.h=zH.prototype;g.h.subscribe=function(a,b,c){return this.A.subscribe(a,b,c)};
g.h.unsubscribe=function(a,b,c){return this.A.unsubscribe(a,b,c)};
g.h.Xd=function(a){return this.A.Xd(a)};
g.h.X=function(a,b){return this.A.X.apply(this.A,arguments)};
g.h.dispose=function(){this.J||(this.J=!0,g.Ye(this.A),AH(this),g.Ye(this.o),this.o=null)};
g.h.ma=function(){return this.J};
g.h.connect=function(a,b,c){if(!this.g||2!=this.g.g){this.I="";this.o.stop();this.C=a||null;this.B=b||0;a=this.L+"/test";b=this.L+"/bind";var d=new fD("1",c?c.firstTestResults:null,c?c.secondTestResults:null,this.N),e=this.g;e&&(e.od=null);d.od=this;this.g=d;e?this.g.connect(a,b,this.D,e.A,e.wj):c?this.g.connect(a,b,this.D,c.sessionId,c.arrayId):this.g.connect(a,b,this.D)}};
g.h.sendMessage=function(a,b){var c={_sc:a};b&&g.dc(c,b);this.o.isActive()||2==(this.g?this.g.g:0)?this.F.push(c):BH(this)&&qD(this.g,c)};
g.h.mw=function(){xH(this.o);this.C=null;this.B=0;if(this.F.length){var a=this.F;this.F=[];for(var b=0,c=a.length;b<c;++b)qD(this.g,a[b])}this.X("handlerOpened")};
g.h.kw=function(a,b){var c=2==b&&401==this.g.cf;if(4!=b&&!c){if(6==b||410==this.g.cf)c=this.o,c.o.stop(),c.g=500;this.o.start()}this.X("handlerError",b)};
g.h.pq=function(a,b,c){if(!this.o.isActive())this.X("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a){var d=c[a].map;d&&this.F.push(d)}};
g.h.rx=function(){var a={v:2};this.I&&(a.gsessionid=this.I);0!=this.B&&(a.ui=""+this.B);0!=this.G&&(a.ui=""+this.G);this.C&&g.dc(a,this.C);return a};
g.h.lw=function(a,b){"S"==b[0]?this.I=b[1]:"gracefulReconnect"==b[0]?(xH(this.o),this.o.start(),mD(this.g)):this.X("handlerMessage",new Eja(b[0],b[1]))};
g.h.kU=function(){this.o.isActive();var a=this.g,b=0;a.wc&&b++;a.Od&&b++;0!=b?this.o.start():this.connect(this.C,this.B)};var Nja=(0,g.G)(),EH=null,IH=Array(50),HH=-1,JH=!1;g.D(g.TH,g.xG);g.TH.prototype.fe=function(){return this.g};
g.TH.prototype.contains=function(a){return!!g.RH(this.g,a)};
g.TH.prototype.get=function(a){return a?g.SH(this.g,a):null};
g.TH.prototype.info=function(a){g.GH(this.F,a)};g.D(VH,g.xG);var bsa=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];g.h=VH.prototype;g.h.start=function(){!this.g&&(0,window.isNaN)(this.o)&&this.kD()};
g.h.stop=function(){this.g&&(this.g.abort(),this.g=null);(0,window.isNaN)(this.o)||(g.YE(this.o),this.o=window.NaN)};
g.h.W=function(){this.stop();VH.Z.W.call(this)};
g.h.kD=function(){this.o=window.NaN;this.g=g.nF(this.F.fi("/pairing/get_screen"),{method:"POST",Nb:{pairing_code:this.D},timeout:5E3,Vb:(0,g.A)(this.pU,this),onError:(0,g.A)(this.oU,this),Ed:(0,g.A)(this.qU,this)})};
g.h.pU=function(a,b){this.g=null;var c=b.screen||{};c.dialId=this.B;c.name=this.C;this.X("pairingComplete",new KH(c))};
g.h.oU=function(a){this.g=null;a.status&&404==a.status?this.A>=bsa.length?this.X("pairingFailed",Error("DIAL polling timed out")):(a=bsa[this.A],this.o=g.$E((0,g.A)(this.kD,this),a),this.A++):this.X("pairingFailed",Error("Server error "+a.status))};
g.h.qU=function(){this.g=null;this.X("pairingFailed",Error("Server not responding"))};var hI,cI="";g.D(kI,g.TH);g.h=kI.prototype;g.h.start=function(){jI(this)&&this.X("screenChange");!g.tH("yt-remote-lounge-token-expiration")&&lI(this);g.YE(this.o);this.o=g.$E((0,g.A)(this.start,this),1E4)};
g.h.tp=function(a,b){jI(this);UH(this,a);mI(this,!1);this.X("screenChange");b(a);a.token||lI(this)};
g.h.remove=function(a,b){var c=jI(this);Qja(this,a)&&(mI(this,!1),c=!0);b(a);c&&this.X("screenChange")};
g.h.cp=function(a,b,c,d){var e=jI(this),f=this.get(a.id);f?(f.name!=b&&(f.name=b,mI(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.X("screenChange")};
g.h.W=function(){g.YE(this.o);kI.Z.W.call(this)};
g.h.qI=function(a){jI(this);var b=this.g.length;a=a&&a.screens||[];for(var c=0,d=a.length;c<d;++c){var e=a[c],f=this.get(e.screenId);f&&(f.token=e.loungeToken,--b)}mI(this,!b);b&&g.GH(this.F,"Missed "+b+" lounge tokens.")};
g.h.pI=function(a){g.GH(this.F,"Requesting lounge tokens failed: "+a)};g.D(oI,g.xG);g.h=oI.prototype;g.h.start=function(){var a=(0,window.parseInt)(g.tH("yt-remote-fast-check-period")||"0",10);(this.B=(0,g.G)()-144E5<a?0:a)?rI(this):(this.B=(0,g.G)()+3E5,g.sH("yt-remote-fast-check-period",this.B),this.At())};
g.h.isEmpty=function(){return g.Wb(this.g)};
g.h.update=function(){nI("Updating availability on schedule.");var a=this.D(),b=g.Lb(this.g,function(b,d){return b&&!!g.SH(a,d)},this);
qI(this,b)};
g.h.W=function(){g.YE(this.A);this.A=window.NaN;this.o&&(this.o.abort(),this.o=null);oI.Z.W.call(this)};
g.h.At=function(){g.YE(this.A);this.A=window.NaN;this.o&&this.o.abort();var a=sI(this);if(g.Nb(a)){var b=this.C.fi("/pairing/get_screen_availability");this.o=this.C.tu(b,{lounge_token:g.Rb(a).join(",")},(0,g.A)(this.oR,this,a),(0,g.A)(this.nR,this))}else qI(this,{}),rI(this)};
g.h.oR=function(a,b){this.o=null;var c=g.Rb(sI(this));if(g.Db(c,g.Rb(a))){c=b.screens||[];for(var d={},e=0,f=c.length;e<f;++e)d[a[c[e].loungeToken]]="online"==c[e].status;qI(this,d);rI(this)}else this.hc("Changing Screen set during request."),this.At()};
g.h.nR=function(a){this.hc("Screen availability failed: "+a);this.o=null;rI(this)};
g.h.hc=function(a){g.GH("OnlineScreenService",a)};g.D(g.tI,g.TH);g.h=g.tI.prototype;g.h.start=function(){this.A.start();this.o.start();this.g.length&&(this.X("screenChange"),this.o.isEmpty()||this.X("onlineScreenChange"))};
g.h.tp=function(a,b,c){this.A.tp(a,b,c)};
g.h.remove=function(a,b,c){this.A.remove(a,b,c);this.o.update()};
g.h.cp=function(a,b,c,d){this.A.contains(a)?this.A.cp(a,b,c,d):(a="Updating name of unknown screen: "+a.name,g.GH(this.F,a),d(Error(a)))};
g.h.fe=function(a){return a?this.g:g.rb(this.g,(0,g.Id)(this.B,function(a){return!this.contains(a)},this))};
g.h.lD=function(){return(0,g.Id)(this.fe(!0),function(a){return!!this.o.g[a.id]},this)};
g.h.mD=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var f=new VH(this.D,a,b,c);f.subscribe("pairingComplete",(0,g.A)(function(a){g.Ye(f);d(uI(this,a))},this));
f.subscribe("pairingFailed",function(a){g.Ye(f);e(a)});
f.start();return(0,g.A)(f.stop,f)};
g.h.sU=function(a,b,c,d){g.nF(this.D.fi("/pairing/get_screen"),{method:"POST",Nb:{pairing_code:a},timeout:5E3,Vb:(0,g.A)(function(a,d){var e=new KH(d.screen||{});if(!e.name||wI(this,e.name)){a:{var f=e.name;for(var m=2,n=b(f,m);wI(this,n);){m++;if(20<m)break a;n=b(f,m)}f=n}e.name=f}c(uI(this,e))},this),
onError:(0,g.A)(function(a){d(Error("pairing request failed: "+a.status))},this),
Ed:(0,g.A)(function(){d(Error("pairing request timed out."))},this)})};
g.h.W=function(){g.Ye(this.A);g.Ye(this.o);g.tI.Z.W.call(this)};
g.h.CI=function(){xI(this);this.X("screenChange");this.o.update()};
g.tI.prototype.dispose=g.tI.prototype.dispose;g.D(zI,g.xG);g.h=zI.prototype;g.h.to=function(a){this.A=a;this.X("sessionScreen",this.A)};
g.h.ne=function(a){this.ma()||(a&&AI(this,""+a),this.A=null,this.X("sessionScreen",null))};
g.h.info=function(a){g.GH(this.N,a)};
g.h.oD=function(){return null};
g.h.Ht=function(a){var b=this.o;a?(b.displayStatus=new window.chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;window.chrome.cast.setReceiverDisplayStatus(b,(0,g.A)(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),(0,g.A)(function(){AI(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
g.h.W=function(){this.Ht("");zI.Z.W.call(this)};g.D(CI,zI);g.h=CI.prototype;g.h.Gt=function(a){if(this.g){if(this.g==a)return;AI(this,"Overriding cast sesison with new session object");this.g.removeUpdateListener(this.D);this.g.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.C)}this.g=a;this.g.addUpdateListener(this.D);this.g.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.C);Xja(this)};
g.h.xj=function(a){this.info("launchWithParams no-op for Cast: "+g.zg(a))};
g.h.stop=function(){this.g?this.g.stop((0,g.A)(function(){this.ne()},this),(0,g.A)(function(){this.ne(Error("Failed to stop receiver app."))},this)):this.ne(Error("Stopping cast device witout session."))};
g.h.Ht=g.y;g.h.W=function(){this.info("disposeInternal");g.YE(this.B);this.B=0;this.g&&(this.g.removeUpdateListener(this.D),this.g.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.C));this.g=null;CI.Z.W.call(this)};
g.h.qS=function(a,b){if(!this.ma())if(b){a:{var c;if(v.JSON)try{var d=c=v.JSON.parse(b);break a}catch(e){}d=c=g.xg(b)}if(d)switch(c=""+d.type,d=d.data||{},this.info("onYoutubeMessage_: "+c+" "+g.zg(d)),c){case "mdxSessionStatus":BI(this,d.screenId);break;default:AI(this,"Unknown youtube message: "+c)}else AI(this,"Unable to parse message.")}else AI(this,"No data in message.")};
g.h.Cx=function(a,b,c,d){vI(this.I,this.o.label,a,this.o.friendlyName,(0,g.A)(function(e){e?b(e):0<=d?(AI(this,"Screen "+a+" appears to be offline. "+d+" retries left."),g.$E((0,g.A)(this.Cx,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)};
g.h.oD=function(){return this.g};
g.h.tU=function(a){this.ma()||a||(AI(this,"Cast session died."),this.ne())};g.D(DI,zI);g.h=DI.prototype;g.h.Gt=function(a){this.B=a;this.B.addUpdateListener(this.L)};
g.h.xj=function(a){this.C=a;this.F()};
g.h.stop=function(){this.g();this.g=g.y;g.YE(this.D);this.B?this.B.stop((0,g.A)(this.ne,this,null),(0,g.A)(this.ne,this,"Failed to stop DIAL device.")):this.ne()};
g.h.W=function(){this.g();this.g=g.y;g.YE(this.D);this.B&&this.B.removeUpdateListener(this.L);this.B=null;DI.Z.W.call(this)};
g.h.wU=function(a){this.ma()||a||(AI(this,"DIAL session died."),this.g(),this.g=g.y,this.ne())};
g.h.Lr=function(a){this.J=g.QH();if(this.C){var b=new window.chrome.cast.DialLaunchResponse(!0,FI(this));a(b);EI(this)}else this.F=(0,g.A)(function(){g.YE(this.D);this.F=g.y;this.D=window.NaN;var b=new window.chrome.cast.DialLaunchResponse(!0,FI(this));a(b);EI(this)},this),this.D=g.$E((0,g.A)(function(){this.F()},this),100)};
g.h.iK=function(a,b){vI(this.I,this.G.receiver.label,a,this.o.friendlyName,(0,g.A)(function(a){a&&a.token?(this.to(a),b(new window.chrome.cast.DialLaunchResponse(!1))):this.Lr(b)},this),(0,g.A)(function(a){AI(this,"Failed to get DIAL screen: "+a);
this.Lr(b)},this))};g.D(GI,zI);GI.prototype.stop=function(){this.ne()};
GI.prototype.Gt=g.y;GI.prototype.xj=function(){g.YE(this.g);this.g=window.NaN;var a=g.SH(this.I.fe(),this.o.label);a?this.to(a):this.ne(Error("No such screen"))};
GI.prototype.W=function(){g.YE(this.g);this.g=window.NaN;GI.Z.W.call(this)};g.D(g.HI,g.xG);g.h=g.HI.prototype;
g.h.init=function(a,b){window.chrome.cast.timeout.requestSession=3E4;var c=new window.chrome.cast.SessionRequest(this.D);this.F||(c.dialRequest=new window.chrome.cast.DialRequest("YouTube"));var d=window.chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED,e=a?window.chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:window.chrome.cast.DefaultActionPolicy.CREATE_SESSION;c=new window.chrome.cast.ApiConfig(c,(0,g.A)(this.rB,this),(0,g.A)(this.ZQ,this),d,e);c.customDialLaunchCallback=(0,g.A)(this.lP,this);window.chrome.cast.initialize(c,
(0,g.A)(function(){this.ma()||(window.chrome.cast.addReceiverActionListener(this.B),Kja(),this.o.subscribe("onlineScreenChange",(0,g.A)(this.nD,this)),this.A=MI(this),window.chrome.cast.setCustomReceivers(this.A,g.y,(0,g.A)(function(a){this.hc("Failed to set initial custom receivers: "+g.zg(a))},this)),this.X("yt-remote-cast2-availability-change",KI(this)),b(!0))},this),(0,g.A)(function(a){this.hc("Failed to initialize API: "+g.zg(a));
b(!1)},this))};
g.h.kT=function(a,b){JI("Setting connected screen ID: "+a+" -> "+b);if(this.g){var c=this.g.A;if(!a||c&&c.id!=a)JI("Unsetting old screen status: "+this.g.o.friendlyName),LI(this,null)}if(a&&b){if(!this.g){c=g.SH(this.o.fe(),a);if(!c){JI("setConnectedScreenStatus: Unknown screen.");return}var d=II(this,c);d||(JI("setConnectedScreenStatus: Connected receiver not custom..."),d=new window.chrome.cast.Receiver(c.uuid?c.uuid:c.id,c.name),d.receiverType=window.chrome.cast.ReceiverType.CUSTOM,this.A.push(d),
window.chrome.cast.setCustomReceivers(this.A,g.y,(0,g.A)(function(a){this.hc("Failed to set initial custom receivers: "+g.zg(a))},this)));
JI("setConnectedScreenStatus: new active receiver: "+d.friendlyName);LI(this,new GI(this.o,d),!0)}this.g.Ht(b)}else JI("setConnectedScreenStatus: no screen.")};
g.h.lT=function(a){this.ma()?this.hc("Setting connection data on disposed cast v2"):this.g?this.g.xj(a):this.hc("Setting connection data without a session")};
g.h.vU=function(){this.ma()?this.hc("Stopping session on disposed cast v2"):this.g?(this.g.stop(),LI(this,null)):JI("Stopping non-existing session")};
g.h.requestSession=function(){window.chrome.cast.requestSession((0,g.A)(this.rB,this),(0,g.A)(this.sR,this))};
g.h.W=function(){this.o.unsubscribe("onlineScreenChange",(0,g.A)(this.nD,this));window.chrome&&window.chrome.cast&&window.chrome.cast.removeReceiverActionListener(this.B);var a=CH,b=g.x("yt.mdx.remote.debug.handlers_");g.pb(b||[],a);g.Ye(this.g);g.HI.Z.W.call(this)};
g.h.hc=function(a){g.GH("Controller",a)};
g.h.sB=function(a,b){this.g==a&&(b||LI(this,null),this.X("yt-remote-cast2-session-change",b))};
g.h.VQ=function(a,b){if(!this.ma())if(a)switch(a.friendlyName=window.chrome.cast.unescape(a.friendlyName),JI("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case window.chrome.cast.ReceiverAction.CAST:if(this.g)if(this.g.o.label!=a.label)JI("onReceiverAction_: Stopping active receiver: "+this.g.o.friendlyName),this.g.stop();else{JI("onReceiverAction_: Casting to active receiver.");this.g.A&&this.X("yt-remote-cast2-session-change",this.g.A);break}switch(a.receiverType){case window.chrome.cast.ReceiverType.CUSTOM:LI(this,
new GI(this.o,a));break;case window.chrome.cast.ReceiverType.DIAL:LI(this,new DI(this.o,a));break;case window.chrome.cast.ReceiverType.CAST:LI(this,new CI(this.o,a));break;default:this.hc("Unknown receiver type: "+a.receiverType)}break;case window.chrome.cast.ReceiverAction.STOP:this.g&&this.g.o.label==a.label?this.g.stop():this.hc("Stopping receiver w/o session: "+a.friendlyName)}else this.hc("onReceiverAction_ called without receiver.")};
g.h.lP=function(a){if(this.ma())return window.Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=window.chrome.cast.ReceiverType.DIAL&&(this.hc("Not DIAL receiver: "+b.friendlyName),b.receiverType=window.chrome.cast.ReceiverType.DIAL);var c=this.g?this.g.o:null;if(!c||c.label!=b.label)return this.hc("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),window.Promise.reject(Error("illegal DIAL launch"));if(c&&c.label==b.label&&c.receiverType!=window.chrome.cast.ReceiverType.DIAL){if(this.g.A)return JI("Reselecting dial screen."),
this.X("yt-remote-cast2-session-change",this.g.A),window.Promise.resolve(new window.chrome.cast.DialLaunchResponse(!1));this.hc('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);LI(this,new DI(this.o,b))}b=this.g;b.G=a;return b.G.appState==window.chrome.cast.DialAppState.RUNNING?new window.Promise((0,g.A)(b.iK,b,(b.G.extraData||{}).screenId||null)):new window.Promise((0,g.A)(b.Lr,b))};
g.h.rB=function(a){if(!this.ma()){JI("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=window.chrome.cast.ReceiverType.CUSTOM){if(!this.g)if(b.receiverType==window.chrome.cast.ReceiverType.CAST)JI("Got resumed cast session before resumed mdx connection."),b.friendlyName=window.chrome.cast.unescape(b.friendlyName),LI(this,new CI(this.o,b),!0);else{this.hc("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.g.o,d=g.SH(this.o.fe(),c.label);
d&&g.LH(d,b.label)&&c.receiverType!=window.chrome.cast.ReceiverType.CAST&&b.receiverType==window.chrome.cast.ReceiverType.CAST&&(JI("onSessionEstablished_: manual to cast session change "+b.friendlyName),g.Ye(this.g),this.g=new CI(this.o,b),this.g.subscribe("sessionScreen",(0,g.A)(this.sB,this,this.g)),this.g.xj(null));this.g.Gt(a)}}};
g.h.uU=function(){return this.g?this.g.oD():null};
g.h.sR=function(a){this.ma()||(this.hc("Failed to estabilish a session: "+g.zg(a)),a.code!=window.chrome.cast.ErrorCode.CANCEL&&LI(this,null))};
g.h.ZQ=function(a){JI("Receiver availability updated: "+a);if(!this.ma()){var b=KI(this);this.C=a==window.chrome.cast.ReceiverAvailability.AVAILABLE;KI(this)!=b&&this.X("yt-remote-cast2-availability-change",KI(this))}};
g.h.nD=function(){this.ma()||(this.A=MI(this),JI("Updating custom receivers: "+g.zg(this.A)),window.chrome.cast.setCustomReceivers(this.A,g.y,(0,g.A)(function(){this.hc("Failed to set custom receivers.")},this)),this.X("yt-remote-cast2-availability-change",KI(this)))};
g.HI.prototype.setLaunchParams=g.HI.prototype.lT;g.HI.prototype.setConnectedScreenStatus=g.HI.prototype.kT;g.HI.prototype.stopSession=g.HI.prototype.vU;g.HI.prototype.getCastSession=g.HI.prototype.uU;g.HI.prototype.requestSession=g.HI.prototype.requestSession;g.HI.prototype.init=g.HI.prototype.init;g.HI.prototype.dispose=g.HI.prototype.dispose;g.NI.prototype.reset=function(a){this.listId="";this.index=-1;this.videoId="";g.OI(this);this.volume=-1;this.muted=!1;a&&(this.index=a.index,this.listId=a.listId,this.videoId=a.videoId,this.g=a.playerState,this.volume=a.volume,this.muted=a.muted,this.audioTrackId=a.audioTrackId,this.o=a.trackData,this.Rf=a.hasPrevious,this.hasNext=a.hasNext,this.G=a.playerTime,this.A=a.playerTimeAt,this.D=a.seekableStart,this.B=a.seekableEnd,this.I=a.duration,this.J=a.loadedTime,this.C=a.liveIngestionTime,this.F=
!(0,window.isNaN)(this.C))};
g.NI.prototype.xb=function(){return 1==this.g};
g.NI.prototype.getDuration=function(){return this.F?this.I+((0,g.G)()-this.A)/1E3:this.I};
g.NI.prototype.clone=function(){return new g.NI(g.SI(this))};TI.prototype.o=function(){return this.name};
TI.prototype.getId=function(){return this.id};
TI.prototype.g=function(){return this.isDefault};
TI.prototype.toString=function(){return this.name};
TI.prototype.getName=TI.prototype.o;TI.prototype.getId=TI.prototype.getId;TI.prototype.getIsDefault=TI.prototype.g;g.UI.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.g+"_"+this.id+"_"+this.isDefault};g.VI.prototype.toString=function(){return this.o+": "+g.WI(this)+" - "+this.F};
g.VI.prototype.J=ba(0);g.VI.prototype.ed=function(){return!(!this.o||this.g&&!this.g.languageCode)};XI.prototype.o=function(){return this.Sc};
XI.prototype.toString=function(){return this.Sc.name};
XI.prototype.getLanguageInfo=XI.prototype.o;g.D(g.YI,g.xG);g.h=g.YI.prototype;g.h.connect=function(a,b){if(b){var c=b.listId,d=b.videoId,e=b.index,f=b.currentTime||0;5>=f&&(f=0);var k={videoId:d,currentTime:f};c&&(k.listId=c);g.t(e)&&(k.currentIndex=e);c&&(this.jb.listId=c);this.jb.videoId=d;this.jb.index=e||0;this.jb.state=3;g.PI(this.jb,f);this.B="UNSUPPORTED";ZI("Connecting with setPlaylist and params: "+g.zg(k));this.g.connect({method:"setPlaylist",params:g.zg(k)},a,dI())}else ZI("Connecting without params"),this.g.connect({},a,dI());Zja(this)};
g.h.dispose=function(){this.ma()||(this.X("beforeDispose"),$I(this,3));g.YI.Z.dispose.call(this)};
g.h.W=function(){aJ(this);cJ(this);bJ(this);g.YE(this.I);this.I=window.NaN;g.YE(this.J);this.J=window.NaN;this.A=null;g.jG(this.V);this.V.length=0;this.g.dispose();g.YI.Z.W.call(this);this.B=this.F=this.o=this.jb=this.g=null};
g.h.iI=function(){this.D(2)};
g.h.LO=function(){ZI("Channel opened");this.O&&(this.O=!1,bJ(this),this.N=g.$E((0,g.A)(function(){ZI("Timing out waiting for a screen.");this.D(1)},this),15E3));
Tja(Ija(this.g),this.aa)};
g.h.IO=function(){ZI("Channel closed");(0,window.isNaN)(this.C)?g.gI(!0):g.gI();this.dispose()};
g.h.JO=function(a){g.gI();(0,window.isNaN)(this.G())?(ZI("Channel error: "+a+" without reconnection"),this.dispose()):(this.O=!0,ZI("Channel error: "+a+" with reconnection in "+this.G()+" ms"),$I(this,2))};
g.h.KO=function(a){a.params?ZI("Received: action="+a.action+", params="+g.zg(a.params)):ZI("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=g.xg(a.params.devices);this.o=(0,g.J)(a,function(a){return new wH(a)});
a=!!g.eb(this.o,function(a){return"LOUNGE_SCREEN"==a.type});
fJ(this,a);break;case "loungeScreenDisconnected":qb(this.o,function(a){return"LOUNGE_SCREEN"==a.type});
fJ(this,!1);break;case "remoteConnected":var b=new wH(g.xg(a.params.device));g.eb(this.o,function(a){return b?a.id==b.id:!1})||g.nb(this.o,b);
break;case "remoteDisconnected":b=new wH(g.xg(a.params.device));qb(this.o,function(a){return b?a.id==b.id:!1});
break;case "gracefulDisconnect":break;case "playlistModified":gJ(this,a);break;case "nowPlaying":bka(this,a);break;case "onStateChange":hJ(this,a);break;case "onAdStateChange":cka(this,a);break;case "onVolumeChanged":dka(this,a);break;case "onSubtitlesTrackChanged":aka(this,a);break;case "nowAutoplaying":eka(this,a);break;case "autoplayDismissed":this.X("autoplayDismissed");break;case "autoplayUpNext":this.F=a.params.videoId||null;this.X("autoplayUpNext",this.F);break;case "onAutoplayModeChanged":this.B=
a.params.autoplayMode;this.X("autoplayModeChange",this.B);"DISABLED"==this.B&&this.X("autoplayDismissed");break;case "onHasPreviousNextChanged":fka(this,a);break;default:ZI("Unrecognized action: "+a.action)}};
g.h.WS=function(){if(this.A){var a=this.A;this.A=null;this.jb.videoId!=a&&dJ(this,"getNowPlaying")}};
g.YI.prototype.subscribe=g.YI.prototype.subscribe;g.YI.prototype.unsubscribeByKey=g.YI.prototype.Xd;g.YI.prototype.ha=function(){var a=3;this.ma()||(a=0,(0,window.isNaN)(this.G())?BH(this.g)&&(0,window.isNaN)(this.C)&&(a=1):a=2);return a};
g.YI.prototype.getProxyState=g.YI.prototype.ha;g.YI.prototype.D=function(a){ZI("Disconnecting with "+a);aJ(this);this.X("beforeDisconnect",a);1==a&&g.gI();AH(this.g,a);this.dispose()};
g.YI.prototype.disconnect=g.YI.prototype.D;g.YI.prototype.fa=function(){var a=this.jb;this.A&&(a=this.jb.clone(),g.RI(a,this.A,a.index));return g.SI(a)};
g.YI.prototype.getPlayerContextData=g.YI.prototype.fa;
g.YI.prototype.pa=function(a){var b=new g.NI(a);b.videoId&&b.videoId!=this.jb.videoId&&(this.A=b.videoId,g.YE(this.I),this.I=g.$E((0,g.A)(this.WS,this),5E3));var c=[];this.jb.listId==b.listId&&this.jb.videoId==b.videoId&&this.jb.index==b.index||c.push("remoteQueueChange");this.jb.g==b.g&&this.jb.volume==b.volume&&this.jb.muted==b.muted&&g.QI(this.jb)==g.QI(b)&&g.zg(this.jb.o)==g.zg(b.o)||c.push("remotePlayerChange");this.jb.reset(a);(0,g.H)(c,function(a){this.X(a)},this)};
g.YI.prototype.setPlayerContextData=g.YI.prototype.pa;g.YI.prototype.Y=function(){var a=this.g.D.id,b=g.eb(this.o,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});
return b?b.id:""};
g.YI.prototype.getOtherConnectedRemoteId=g.YI.prototype.Y;g.YI.prototype.G=function(){var a=this.g;return a.o.isActive()?a.o.A-(0,g.G)():window.NaN};
g.YI.prototype.getReconnectTimeout=g.YI.prototype.G;g.YI.prototype.ba=function(){return this.B||"UNSUPPORTED"};
g.YI.prototype.getAutoplayMode=g.YI.prototype.ba;g.YI.prototype.da=function(){return this.F||""};
g.YI.prototype.getAutoplayVideoId=g.YI.prototype.da;g.YI.prototype.sa=function(){if(!(0,window.isNaN)(this.G())){var a=this.g.o;g.It(a.o);a.start()}};
g.YI.prototype.reconnect=g.YI.prototype.sa;g.YI.prototype.ka=function(a,b){dJ(this,a,b);eJ(this)};
g.YI.prototype.sendMessage=g.YI.prototype.ka;g.tI.prototype.$_st=g.tI.prototype.start;g.tI.prototype.$_gspc=g.tI.prototype.sU;g.tI.prototype.$_gsppc=g.tI.prototype.mD;g.tI.prototype.$_c=g.tI.prototype.contains;g.tI.prototype.$_g=g.tI.prototype.get;g.tI.prototype.$_a=g.tI.prototype.tp;g.tI.prototype.$_un=g.tI.prototype.cp;g.tI.prototype.$_r=g.tI.prototype.remove;g.tI.prototype.$_gs=g.tI.prototype.fe;g.tI.prototype.$_gos=g.tI.prototype.lD;g.tI.prototype.$_s=g.tI.prototype.subscribe;g.tI.prototype.$_ubk=g.tI.prototype.Xd;var VZ=16/9,csa=[.25,.5,.75,1,1.25,1.5,2];var gka={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",140:"a",327:"sa",258:"m",161:"H",142:"H",143:"H",144:"H",222:"H",223:"H",145:"H",224:"H",225:"H",146:"H",226:"H",147:"H",376:"H",377:"H",149:"A",261:"M",278:"9",242:"9",243:"9",244:"9",247:"9",248:"9",271:"9",313:"9",272:"9",302:"9",303:"9",308:"9",315:"9",330:"9h",331:"9h",332:"9h",333:"9h",334:"9h",335:"9h",336:"9h",337:"9h",171:"v",338:"so",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",
196:"*",197:"*",198:"V",279:"(",280:"(",273:"(",274:"(",275:"(",276:"(",314:"(",277:"(",362:"(h",363:"(h",364:"(h",365:"(h",366:"(h",367:"(h",368:"(h"};var tN={name:"width",video:!0,valid:640,li:99999},uN={name:"height",video:!0,valid:360,li:99999},rN={name:"framerate",video:!0,valid:30,li:9999},vN={name:"bitrate",video:!0,valid:3E5,li:2E9},sN={name:"eotf",video:!0,valid:"bt709",li:"catavision"},lN={name:"channels",video:!1,valid:2,li:99},wN={name:"cryptoblockformat",video:!0,valid:"subsample",li:"invalidformat"},xN={Df:tN,Ue:uN,rY:rN,Iu:vN,eY:sN,RW:lN,jX:wN};var hka={iW:"auto",r1:"tiny",mZ:"light",P0:"small",EF:"medium",jZ:"large",BY:"hd720",xY:"hd1080",yY:"hd1440",zY:"hd2160",AY:"hd2880",GY:"highres",UNKNOWN:"unknown"};var K2;K2={};g.kJ=(K2.auto=0,K2.tiny=144,K2.light=144,K2.small=240,K2.medium=360,K2.large=480,K2.hd720=720,K2.hd1080=1080,K2.hd1440=1440,K2.hd2160=2160,K2.hd2880=2880,K2.highres=4320,K2);var nJ="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");lJ.prototype.B=1.3;wJ.prototype.g=function(a){return"true"==this.flags[a]};
wJ.prototype.o=function(a){return(0,window.parseFloat)(this.flags[a])||0};
wJ.prototype.A=function(a){return this.flags[a]?this.flags[a].toString():""};xJ.prototype.dispose=function(){if(!this.A){if(this.o)try{window.URL.revokeObjectURL(this.g)}catch(a){}this.A=!0}};
xJ.prototype.ma=function(){return this.A};var dla={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};yJ.prototype.g=function(){return null};
yJ.prototype.A=function(){return!1};var AU=BJ("auto","large",!1),DJ=BJ("auto","auto",!1);BJ("small","auto",!1);zJ.prototype.isLocked=function(){return this.A&&!!this.o&&this.o==this.g};
zJ.prototype.B=function(a){return a.video?GJ(this,a.video.quality):!1};var L2={},dsa=(L2["api.invalidparam"]=2,L2.auth=150,L2["drm.auth"]=150,L2["heartbeat.net"]=150,L2["heartbeat.servererror"]=150,L2["heartbeat.stop"]=150,L2["html5.unsupportedads"]=5,L2["fmt.noneavailable"]=5,L2["fmt.decode"]=5,L2["fmt.unplayable"]=5,L2["html5.missingapi"]=5,L2["html5.unsupportedlive"]=5,L2["drm.unavailable"]=5,L2);g.p(OJ,g.L);g.h=OJ.prototype;g.h.ZK=function(){return g.Rb(this.B)};
g.h.aL=function(){return g.Rb(this.C)};
g.h.oa=function(){return this.o};
g.h.addEventListener=function(a,b){if(g.u(b)){var c=function(){g.x(b).apply(window,arguments)};
this.F[b]=c}else c=b;this.app.aa.subscribe(a,c)};
g.h.NH=function(a,b){var c=this,d=g.u(b)?a+b:a+g.za(b);if(!this.D[d]){var e;g.u(b)?e=function(){g.x(b).apply(window,arguments)}:e=b;
var f=function(a){e({target:c.A,data:a})};
this.D[d]=f;this.app.aa.subscribe(a,f)}};
g.h.removeEventListener=function(a,b){if(g.u(b)){var c=this.F[b];Yb(this.F,b);b=c}this.app.aa.unsubscribe(a,b)};
g.h.OH=function(a,b){var c=g.u(b)?a+b:a+g.za(b),d=this.D[c];d&&(this.app.aa.unsubscribe(a,d),Yb(this.D,c))};
g.h.ll=function(){return Fqa(this.app)};
g.h.tc=function(a,b){this.g&&Q1(this.app,!0,this.playerType);Qqa(this.app,a,b,void 0,this.playerType)};
g.h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.h.bL=function(){var a=g.ZV(this.app,this.playerType);if(!a)return 0;a=MV(a);return(0,window.isNaN)(a)?this.getCurrentTime():a};
g.h.getDuration=function(){return this.app.getDuration(this.playerType)};
g.h.getVolume=function(){return this.app.L.volume};
g.h.setVolume=function(a){SJ(this,a)};
g.h.Le=function(){return this.app.L.muted};
g.h.mute=function(){TJ(this)};
g.h.cg=function(){UJ(this)};
g.h.fd=function(){this.g&&Q1(this.app,!0,this.playerType);var a=XV(this.app);2==a?(a=this.app.B.o)&&a.X("control_play"):3==a?g.YV(this.app.B).sl("control_play"):IZ(this.app,this.playerType)};
g.h.qd=function(){var a=XV(this.app);2==a?(a=this.app.B.o)&&a.X("control_pause"):3==a?g.YV(this.app.B).sl("control_pause"):KZ(this.app,this.playerType)};
g.h.ag=function(){var a=this.app;a.g.ka&&(a.o.isFullscreen()&&!a.g.experiments.g("player_external_control_on_classic_desktop")&&g.cW(a.o),a.o.X("pageTransition"));Pqa(a)};
g.h.WK=function(){};
g.h.Uc=function(){return g.ZV(this.app,1).Aa};
g.h.Zf=function(a){J1(this.app,a)};
g.h.zj=function(){return this.app.g.Na?csa:[1]};
g.h.kl=function(){var a=g.ZV(this.app,this.playerType);if(a){var b="unknown";a.g.Oa&&(b=a.g.Oa.video.quality,!a.C.experiments.g("disable_video_quality_from_size")&&"auto"==b&&a.o&&(a=a.o?a.o.oa():null)&&0<a.videoHeight&&(b=jJ(a.videoWidth,a.videoHeight)))}else b="unknown";return b};
g.h.pl=function(a){if(!this.app.g.isMobile){var b=g.ZV(this.app,this.playerType);b&&(a=BJ(a,a,!0),GV(b,"p",a))}};
g.h.xs=function(){var a=g.ZV(this.app,this.playerType);return a?(a=(0,g.J)(EV(a),function(a){return a.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.h.dL=function(){return this.ys()};
g.h.eL=function(){return 1};
g.h.ys=function(){return Aqa(this.app)};
g.h.fL=function(){return 0};
g.h.setSize=function(){this.app.G.qg()};
g.h.uz=function(a){Kqa(this.app,a?2:1)};
g.h.vz=function(a){Kqa(this.app,a)};
g.h.UK=function(){this.app.o.za("SUBSCRIBE")};
g.h.VK=function(){this.app.o.za("UNSUBSCRIBE")};
g.h.nl=function(a){"captions"==a&&(a=this.app.B.g)&&!a.loaded&&a.load()};
g.h.bo=function(a){"captions"==a&&(a=this.app.B.g)&&a.loaded&&a.OT()};
g.h.jL=function(a,b,c){a=LJ(a,b,c);a=O1(this.app,a,this.playerType);this.g&&Q1(this.app,a,this.playerType)};
g.h.mz=function(a,b,c){a=LJ(a,b,c);S1(this.app,a,this.playerType)};
g.h.kL=function(a,b,c){a=MJ(a,b,c);b=O1(this.app,a,this.playerType);this.g&&Q1(this.app,b,this.playerType);b=this.app;(a=(new g.Vl(a.mediaContentUrl)).g)&&fO(b.g,a)};
g.h.YK=function(a,b,c){b=MJ(a,b,c);S1(this.app,b,this.playerType);a=this.app;(b=(new g.Vl(b.mediaContentUrl)).g)&&fO(a.g,b)};
g.h.getVideoUrl=function(){var a=this.app.g;if(a.I)return"";var b=this.app.A.g,c=void 0;b.Ba||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.h.jl=function(){return K1(this.app)};
g.h.pz=function(){var a=this.app.g;if(a.I)var b="";else{var c=this.app.A.g.videoId;b=this.app.G.Xa();var d=this.getPlaylistId()||void 0;c="https://"+kO(a)+"/embed/"+c;d&&(c=g.Pg(c,{list:d}));d=!a.experiments.g("enable_responsive_embed_snippet");a.experiments.g("embed_snippet_includes_version")&&(c=g.Pg(c,{ecver:d?"1":"2"}));a=b.width;b=b.height;d?(d=La(c),b='<iframe width="'+a+'" height="'+b+'" src="'+d+'" frameborder="0" allowfullscreen></iframe>'):(d=Math.round(360*a/b),b='<div style="position:relative;height:0;padding-bottom:'+
Math.round(1E4*b/a)/100+'%"><iframe src="'+La(c)+'" style="position:absolute;width:100%;height:100%;left:0" width="'+d+'" height="360" frameborder="0" allowfullscreen></iframe></div>')}return b};
g.h.lz=function(a,b,c){return Mqa(this.app,a,b,c)};
g.h.rz=function(a){a:{for(var b=this.app,c=b.A.F.g.g||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.A.F.D(e);oW(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
g.h.iL=function(a,b,c,d){var e=this.app;e.fa=!1;T1(e,a,b,c,d);this.g&&Q1(this.app,!0,this.playerType)};
g.h.XK=function(a,b,c,d){var e=this.app;e.fa=!0;T1(e,a,b,c,d)};
g.h.Aj=function(){W1(this.app);this.g&&Q1(this.app,!0,this.playerType)};
g.h.ol=function(){Lqa(this.app);this.g&&Q1(this.app,!0,this.playerType)};
g.h.qz=function(a){var b=this.app;!b.Y||b.o.isFullscreen()&&!b.Aa?b.C&&(b.C.Tc?N1(b,b.C.dc(a),1):b.fa=!1,dS(b.C,a)):b.o.za("onPlaylistIndex",a);this.g&&Q1(this.app,!0,this.playerType)};
g.h.setShuffle=function(a){var b=this.app.C;b&&b.setShuffle(a)};
g.h.mL=function(a){var b=this.app.C;b&&(b.loop=a)};
g.h.Yf=function(){var a=this.app.C;if(!a)return null;for(var b=[],c=0;c<a.getLength();c++){var d=a.dc(c);d&&b.push(d.videoId)}return b};
g.h.oz=function(){var a=this.app.C;return a?a.ce():-1};
g.h.getPlaylistId=function(){var a=this.app.C;return a&&a.listId?a.listId.toString():null};
g.h.Cd=function(a,b,c){if(!b)return null;var d=this.app.B;return"captions"==a?(a=d.g)&&a.Ds(b,c):null};
g.h.xc=function(a,b,c){return this.Cd(a,b,c)};
g.h.si=function(a){var b=this.app.B;return"captions"==a?(b=b.g)&&b.lM():a?null:(a=[],b.g&&a.push("captions"),a)};
g.h.ga=function(){var a={},b=g.ZV(this.app,this.playerType);if(b&&(b=b.g,a.video_id=b.videoId,a.author=b.author,a.title=b.title,b.Oa)){a.video_quality=b.Oa.video.quality;b=b.Oa.video;var c=[];32<b.fps&&c.push("hfr");mJ(b)&&c.push("hdr");"bt2020"==b.primaries&&c.push("wcg");a.video_quality_features=c}(b=this.getPlaylistId())&&(a.list=b);return a};
g.h.wz=function(){xqa(this.app,!0)};
g.h.gL=function(){xqa(this.app,!1)};
g.h.nz=function(){var a=this.app.B.o;return a?a.zu():-1};
g.h.hL=function(a){if(a!=this.app.ea.args.video_id)return!1;a=(a=g.ZV(this.app,1))?a.A:null;return!(!a||!g.W(a,128)||5!=dsa[a.g.errorCode])};
g.h.cL=function(){var a=this.app.ea.clone();g.Ba(a.args,yQ(this.app.A.g));return a};
g.h.nL=function(){this.app.g.ea&&this.app.da.resume()};
g.h.destroy=function(){this.app.dispose()};
g.h.lL=function(){var a=g.ZV(this.app);a&&!g.W(a.A,128)&&(a.X("internalAbandon"),ZU(a),XU(a))};
g.h.W=function(){if(this.o){for(var a in this.B)this.o[a]=null;for(a in this.C)this.o[a]=null;this.o=null}this.F=this.D=null;g.L.prototype.W.call(this)};var jka=1;g.VJ.prototype.getId=function(){return this.ya};
g.VJ.prototype.getId=g.VJ.prototype.getId;g.VJ.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 M2={UNKNOWN:"UNKNOWN",NG:"YOUTUBE_DRAWER_MANUAL_OPEN",MG:"YOUTUBE_DRAWER_AUTO_OPEN",OG:"YOUTUBE_SHELF_SHOW"};g.HY={Fv:"TRIGGER_TYPE"};g.IY={Jv:M2.NG,Zl:M2.MG,hG:M2.OG};g.N2={NONE:0,RAISED:1,DEPRESSED:2,Iv:3,DROP_SHADOW:4};g.O2={Qp:"#fff",LG:"#ff0",gF:"#0f0",QE:"#0ff",pE:"#00f",yF:"#f0f",gv:"#f00",yp:"#080808"};g.P2={Ou:0,av:1,fv:2,Zu:3,Kp:4,CASUAL:5,CURSIVE:6,Np:7};g.h=g.YJ.prototype;g.h.Cz=function(a){this.segments.push(a)};
g.h.getDuration=function(a){return(a=this.Zh(a))?a.duration:0};
g.h.Oq=function(a){return this.getDuration(a)};
g.h.yg=function(){return this.segments.length?this.segments[0].wa:-1};
g.h.Cs=function(a){return(a=this.Zh(a))?a.ingestionTime:window.NaN};
g.h.Dc=function(){return this.segments.length?this.segments[this.segments.length-1].wa:-1};
g.h.wn=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:window.NaN};
g.h.Kc=function(){return this.segments[0].startTime};
g.h.fj=function(){return this.segments.length};
g.h.ho=function(){return 0};
g.h.gh=function(a){return(a=this.kn(a))?a.wa:-1};
g.h.Dx=function(a){return(a=this.Zh(a))?a.sourceURL:""};
g.h.mf=function(a){return(a=this.Zh(a))?a.startTime:0};
g.h.zn=ba(2);g.h.Sb=function(){return 0<this.segments.length};
g.h.Zh=function(a){a=g.zb(this.segments,new XJ(a,0,0,0,""),function(a,c){return a.wa-c.wa});
return 0<=a?this.segments[a]:null};
g.h.kn=function(a){a=g.zb(this.segments,{startTime:a},function(a,c){return a.startTime-c.startTime});
return 0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.h.zx=function(){return 0};$J.prototype.skip=function(a){this.o+=a};dK.prototype.Xm=function(a,b,c){(new window.Uint8Array(this.data.buffer,this.g,c)).set(new window.Uint8Array(a.buffer,b+a.byteOffset,c));this.g+=c};var esa=oK;var fsa={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},Q2;var R2=g.Ib;R2=R2.toLowerCase();if(Na(R2,"android")){var gsa=R2.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(gsa)Q2=(0,window.parseFloat)(gsa[1]);else{var hsa=R2.match("("+g.Rb(fsa).join("|")+")");Q2=hsa?fsa[hsa[0]]:0}}else Q2=void 0;var dN=Q2,mN=0<=dN;var oka=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],pka=['audio/mp4; codecs="mp4a.40.2"'];EK.prototype.start=function(){return 0};
EK.prototype.end=function(){return window.Infinity};g.h=FK.prototype;g.h.addEventListener=function(){};
g.h.removeEventListener=function(){};
g.h.dispatchEvent=function(){return!1};
g.h.abort=function(){};
g.h.remove=function(){};
g.h.appendBuffer=function(){};g.h=GK.prototype;g.h.append=function(a){this.o.webkitSourceAppend(this.A,a)};
g.h.abort=function(){this.o.webkitSourceAbort(this.A)};
g.h.bU=function(){return this.o.webkitSourceState==this.o.SOURCE_CLOSED?new qka:this.o.webkitSourceBuffered(this.A)};
g.h.dU=function(){return this.B};
g.h.hU=function(a){this.B=a;this.o.webkitSourceTimestampOffset(this.A,a)};g.h=HK.prototype;g.h.addEventListener=function(a,b,c){this.g.addEventListener(a,b,c)};
g.h.removeEventListener=function(a,b,c){this.g.removeEventListener(a,b,c)};
g.h.hV=function(){return this.g.webkitMediaSourceURL};
g.h.addSourceBuffer=function(a){var b=(this.A++).toString();this.g.webkitSourceAddId(b,a);a=new GK(this.g,b);this.sourceBuffers.push(a);return a};
g.h.removeSourceBuffer=function(a){for(var b=0;b<this.sourceBuffers.length;b++)if(a===this.sourceBuffers[b]){this.g.webkitSourceRemoveId(a.A);for(a=b+1;a<this.sourceBuffers.length;a++)this.sourceBuffers[a-1]=this.sourceBuffers[a];this.sourceBuffers.pop();break}};
g.h.eU=function(){switch(this.g.webkitSourceState){case this.g.SOURCE_CLOSED:return"closed";case this.g.SOURCE_OPEN:return"open";case this.g.SOURCE_ENDED:return"ended"}return""};
g.h.endOfStream=function(){this.g.webkitSourceEndOfStream(this.g.EOS_NO_ERROR)};
g.h.fU=function(){lb(this.sourceBuffers)};
g.h.cU=function(){return this.o};
g.h.gU=function(a){this.o=a;this.g.webkitSourceSetDuration&&this.g.webkitSourceSetDuration(a)};g.D(JK,g.L);JK.prototype.J=function(){if(!this.ma()&&LK(this))try{this.B&&(this.B(this),this.B=null)}catch(a){this.F&&this.F(a)}};
JK.prototype.I=function(){this.dispose()};g.SK.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};tL.prototype.verify=function(){if(this.info.gb!=this.range.length)return!1;if(1==this.info.na.info.containerType){if(8>this.info.gb||4==this.info.type)return!0;var a=uL(this),b=a.getUint32(0,!1);a=a.getUint32(4,!1);if(2==this.info.type)return b==this.info.gb&&1936286840==a;if(3==this.info.type&&0==this.info.Ua)return 1836019558==a||1936286840==a||1937013104==a||1718909296==a||1701671783==a||1936419184==a}else if(2==this.info.na.info.containerType){if(4>this.info.gb||4==this.info.type)return!0;b=uL(this).getUint32(0,
!1);if(3==this.info.type&&0==this.info.Ua)return 524531317==b||440786851==b}return!0};g.EL.prototype.set=function(a,b){this.g[a]!==b&&(this.g[a]=b,this.A="")};
g.EL.prototype.get=function(a){GL(this);return this.g[a]||null};
g.EL.prototype.clone=function(){var a=new g.EL(this.B);a.D=this.D;a.o=this.o;a.C=this.C;a.g=g.$b(this.g);a.A=this.A;return a};OL.prototype.set=function(a,b){this.g.get(a);this.o[a]=b;this.A=""};
OL.prototype.get=function(a){return this.o[a]||this.g.get(a)};var isa=0;g.h=YL.prototype;g.h.we=function(){};
g.h.pd=function(){};
g.h.Sr=function(){return!1};
g.h.Bd=function(){return!!this.g&&!!this.index&&this.index.Sb()};
g.h.zi=function(){};
g.h.Fz=function(){return!1};
g.h.xn=function(){};
g.h.yi=function(){};
g.h.rl=function(){};
g.h.fh=function(){};
g.h.lr=function(){};
g.h.Gz=function(a){return[a]};
g.h.Go=function(a){return[a]};g.p($L,YL);g.h=$L.prototype;g.h.we=function(){return!1};
g.h.pd=function(){return!1};
g.h.Fz=function(){return this.C};
g.h.xn=function(){if(this.C)return[];var a=new WK(1,this,this.initRange);return[new VL([a],this.I)]};
g.h.yi=function(){};
g.h.rl=function(a){this.zi(a);return this.Ym(a.g?a.wa+1:a.wa,!1)};
g.h.fh=function(a,b){b=void 0===b?!1:b;var c=this.index.gh(a);b&&(c=Math.min(this.index.Dc(),c+1));return this.Ym(c,!0)};
g.h.lr=function(a){this.g=new window.Uint8Array(uL(a).buffer)};
g.h.Sr=function(){return!1};
g.h.zi=function(a){return 0==a.gb?!0:this.index.Dc()>a.wa&&this.index.yg()<=a.wa+1};
g.h.update=function(a,b,c){var d=this.index;if(0!=a.length)if(a=g.sb(a),0==d.segments.length)d.segments=a;else{var e=d.segments.length?g.bb(d.segments).endTime:0,f=a[0].wa-d.Dc();1<f&&lb(d.segments);for(f=0<f?0:-f+1;f<a.length;f++){var k=a[f];k.startTime=e;k.endTime=k.startTime+k.duration;e+=a[f].duration;d.segments.push(a[f])}}ZJ(this.index,c);this.G=b};
g.h.Bd=function(){return this.C?!0:YL.prototype.Bd.call(this)};
g.h.Ym=function(a,b){var c=this.index.Dx(a),d=this.index.mf(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.g?this.info.g*e:1E3;d=new WK(3,this,null,a,d,e,0,f,a==this.index.Dc()&&!this.G&&0<f);return new VL([d],c)};g.p(aM,g.YJ);g.h=aM.prototype;g.h.yg=function(){return this.g?this.segments.length?this.kn(this.Kc()).wa:-1:g.YJ.prototype.yg.call(this)};
g.h.Kc=function(){return this.g?this.segments.length?Math.max(g.bb(this.segments).endTime-this.A,0):0:g.YJ.prototype.Kc.call(this)};
g.h.fj=function(){return this.g?this.segments.length?this.Dc()-this.yg()+1:0:g.YJ.prototype.fj.call(this)};
g.h.Cz=function(a){var b=bM(this,a.wa);0<=b?this.segments[b]=a:this.segments.splice(-(b+1),0,a)};
g.h.kn=function(a){if(!this.g)return g.YJ.prototype.kn.call(this,a);if(!this.segments.length)return null;var b=g.zb(this.segments,{startTime:a},function(a,b){return a.startTime-b.startTime}),c=this.segments[0<=b?b:Math.max(-(b+2),0)];
return c.startTime+c.duration>a&&c.startTime<=a?c:-1==b?dM(this,c.wa-Math.ceil((c.startTime-a)/this.o),c):dM(this,c.wa+Math.ceil((a-c.endTime)/this.o),c)};
g.h.Zh=function(a){if(!this.g)return g.YJ.prototype.Zh.call(this,a);if(!this.segments.length)return null;var b=bM(this,a);return 0<=b?this.segments[b]:dM(this,a,this.segments[Math.max(-(b+2),0)])};g.p(eM,$L);g.h=eM.prototype;g.h.pd=function(){return!0};
g.h.Bd=function(){return!0};
g.h.zi=function(){return!0};
g.h.xn=function(){return[]};
g.h.fh=function(a,b){if(g.qa(a)&&!(0,window.isFinite)(a)){var c=new WK(3,this,null,-1,void 0,this.A,void 0,this.A*this.info.g);return new VL([c],"")}return $L.prototype.fh.call(this,a,b)};
g.h.Ym=function(a,b){if(cM(this.index,a))return $L.prototype.Ym.call(this,a,b);var c=this.index.mf(a);c=new WK(3,this,null,a,c,void 0,void 0,b?0:this.A*this.info.g);return new VL([c],0<=a?"sq/"+a:"")};jM.prototype.update=function(a,b){var c=void 0;this.o&&(c=this.o);var d=new jM,e=a.getElementsByTagName("S");if(e.length){var f=+gM(a,"timescale")||1,k=(+e[0].getAttribute("t")||0)/f,l=+gM(a,"startNumber")||0;var m=k;var n=+gM(a,"presentationTimeOffset")||0;m=c?c.Re+c.durationSecs:b?m-n/f:0;n=Date.parse(fM(gM(a,"yt:segmentIngestTime")))/1E3;d.A="SegmentTemplate"==a.parentNode.tagName;d.A&&(d.D=gM(a,"media"));var q=c?l-c.wa:1;d.C=0<q?0:-q+1;e=g.la(e);for(q=e.next();!q.done;q=e.next()){q=q.value;for(var r=
+q.getAttribute("d")/f,w=(+q.getAttribute("yt:sid")||0)/f,z=+q.getAttribute("r")||0,B=0;B<=z;B++)if(c&&l<=c.wa)l++;else{var C=new Dka(l,m,r,n+w,k);d.g.push(C);var N=C.Re,da=q.getAttribute("yt:cuepointTimeOffset");C=q.getAttribute("yt:cuepointDuration");da&&C?(N=+da/f+N,C=+C/f,da=q.getAttribute("yt:cuepointContext")||null,C=new hK(N,C,da)):C=null;C&&d.B.push(C);l++;m+=r;k+=r;n+=r+w}}d.g.length&&(d.o=g.bb(d.g))}this.C=d.C;this.o=d.o||this.o;tb(this.g,d.g);tb(this.B,d.B);this.A=d.A;this.D=d.D};
jM.prototype.eh=function(a,b,c,d){for(var e=this.D.split("$$"),f=0;f<e.length;f++)e[f]=e[f].replace("$RepresentationID$",a),e[f]=e[f].replace("$Number$",c.toString()),e[f]=e[f].replace("$Bandwidth$",b.toString()),e[f]=e[f].replace("$Time$",d.toString());return e.join("$")};g.h=g.kM.prototype;g.h.ho=function(a){return this.g[a]};
g.h.mf=function(a){return this.o[a]/this.B};
g.h.zn=ba(1);g.h.Cs=function(){return window.NaN};
g.h.getDuration=function(a){a=this.Oq(a);return 0<=a?a/this.B:-1};
g.h.Oq=function(a){return a+1<this.Ma||this.A?this.o[a+1]-this.o[a]:-1};
g.h.yg=function(){return 0};
g.h.Dc=function(){return this.Ma-1};
g.h.wn=function(){return this.A?this.o[this.Ma]/this.B:window.NaN};
g.h.Kc=function(){return 0};
g.h.fj=function(){return this.Ma};
g.h.Dx=function(){return""};
g.h.gh=function(a){a=g.zb(this.o.subarray(0,this.Ma),a*this.B);return 0<=a?a:Math.max(0,-a-2)};
g.h.Sb=function(){return 0<=this.Dc()};
g.h.zx=function(a,b){if(a>=this.Dc())return 0;for(var c=0,d=this.mf(a)+b,e=a;e<this.Dc()&&d>this.mf(e);e++)c=Math.max(c,(e+1<this.Ma||this.A?this.g[e+1]-this.g[e]:-1)/this.getDuration(e));return c};
g.h.cap=function(a,b){lM(this);this.A=!0;this.o[this.Ma]=b;this.g[this.Ma]=a};g.p(g.mM,YL);g.h=g.mM.prototype;g.h.xn=function(a,b){var c=new WK(1,this,this.initRange),d=new WK(2,this,this.indexRange),e=[],f=[c];YK(c,d)?f.push(d):(e.push(new VL([d])),b=!1);(0,window.isNaN)(this.A)&&(b=!1);c=f[f.length-1];d=c.range.end-f[0].range.start+1;var k=0;if(b){k=a.iq;var l=this.info.video?2:a.Jb;0<l&&(k=Math.floor(Math.max(k,l*this.info.g)));k=Math.min(a.G,k,this.A);k=a.Lh?Math.min(k,this.A-d):k-d}0<k&&(c=UK(c.range.end+1,k),f.push(new WK(4,this,c)));e.push(new VL(f));return e};
g.h.lr=function(a){if(1==a.info.type){if(this.g)return;if(a.g.slice)var b=new window.Uint8Array(a.g.slice(a.range.start,a.range.end+1));else b=new window.Uint8Array(a.g,a.range.start,a.range.end+1),b=new window.Uint8Array(b);this.g=b}else if(2==a.info.type){if(this.C||0<=this.index.Dc())return;if(1==this.info.containerType){b=this.index;var c=uL(a),d=a.info.range.start;a=0;var e=c.getUint32(0,!1),f=c.getUint8(a+8);a+=12;var k=c.getUint32(a+4,!1);b.B=k;a+=8;0==f?(f=c.getUint32(a,!1),k=c.getUint32(a+
4,!1),a+=8):(f=4294967296*c.getUint32(a,!1)+c.getUint32(a+4,!1),k=4294967296*c.getUint32(a+8,!1)+c.getUint32(a+12,!1),a+=16);b.g[0]=k+(e+d);b.o[0]=f;b.A=!0;d=c.getUint16(a+2,!1);a+=4;for(e=0;e<d;e++){f=c.getUint32(a,!1);k=c.getUint32(a+4,!1);a+=12;var l=b;l.Ma++;lM(l);l.g[l.Ma]=l.g[l.Ma-1]+f;l.o[l.Ma]=l.o[l.Ma-1]+k}}else this.C=uL(a)}if(2==this.info.containerType&&this.g&&this.C){a=new window.DataView(this.g.buffer);b=this.index;k=this.C;c=this.indexRange.end;a=new dL(a);if(hL(a,440786851)&&(nL(a),
hL(a,408125543)&&(e=a,f=e.g,d=iL(e,!0),e.g=f,a=gL(a),e=a.A+a.g,hL(a,357149030)))){a=gL(a);l=1E6;var m=1E9;for(f=0;!eL(a);){var n=iL(a,!1);2807729==n?l=mL(a):2807730==n?m=mL(a):17545==n?f=oL(a):nL(a)}b.B=m/l;a=new dL(k);if(hL(a,475249515)){a=gL(a);k=!0;for(l=!1;hL(a,187);){m=gL(a);if(hL(m,179))if(n=mL(m),hL(m,183)){m=gL(m);for(var q=e;hL(m,241);)q=mL(m)+e;m=[q,n]}else m=null;else m=null;q=m;k&&c==q[0]&&(l=!0);k=!1;l&&(q[0]+=1);m=b;n=q[0];q=q[1];lM(m);m.g[m.Ma]=n;m.o[m.Ma]=q;m.Ma++}b.cap(d+e,f)}}this.C=
null}};
g.h.Gz=function(a){for(var b=this.Go(a.info),c=[],d=a.ke,e=0;e<b.length;e++){var f=UK(b[e].range.start+b[e].Ua-a.info.range.start+a.range.start,b[e].gb);c.push(new tL(b[e],a.g,f,a.A,d));d=!1}return c};
g.h.Go=function(a){for(var b=0;b<this.index.Dc()&&a.range.start>=this.index.ho(b+1);)b++;return nM(this,b,a.range.start,a.range.length).g};
g.h.zi=function(a){return this.Bd()?!0:(0,window.isNaN)(this.A)?!1:a.range.end+1<this.A};
g.h.yi=function(a,b){this.zi(a);if(!this.Bd()){var c=UK(a.range.end+1,b);c.end+1>this.A&&(c=new g.SK(c.start,this.A-1));c=[new WK(4,a.na,c)];return new VL(c)}4==a.type&&(c=this.Go(a),a=c[c.length-1]);c=0;var d=a.range.start+a.Ua+a.gb;3==a.type&&(c=a.wa,d==a.range.end+1&&(c+=1));return nM(this,c,d,b)};
g.h.rl=function(){return null};
g.h.fh=function(a,b){var c=this.index.gh(a);b&&(c=Math.min(this.index.Dc(),c+1));return nM(this,c,this.index.ho(c),0)};
g.h.Sr=function(){var a;if(a=this.Bd()&&!(0,window.isNaN)(this.A))a=this.index,a=(a.A?a.g[a.Ma]:-1)!=this.A;return a};
g.h.we=function(){return!0};
g.h.pd=function(){return!1};g.p(pM,g.xG);g.h=pM.prototype;g.h.lh=function(){return Mb(this.g,function(a){return a.info.video?2==a.info.video.projectionType:!1})};
g.h.mh=function(){return Mb(this.g,function(a){return a.info.video?3==a.info.video.projectionType:!1})};
g.h.Pf=function(){return Mb(this.g,function(a){return a.info.video?4==a.info.video.projectionType:!1})};
g.h.mi=function(){return Mb(this.g,function(a){return a.info.video?1==a.info.video.stereoLayout:!1})};
g.h.wS=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.B=!0;this.C||(this.C=new Fka);Jka(this.C,a,this.ka);this.X("refresh");for(a=0;a<b.length;a++){var c=wM(this,b[a]),d=this.isLive&&1==c.containerType&&this.pa;if(!this.g[c.id]){var e=tM(hM(b[a],"BaseURL").textContent,c),f=hM(b[a],"Initialization"),k=gM(f,"sourceURL");f=TK(gM(f,"range"));d&&(k="",f=void 0);this.g[c.id]=new $L(e,
c,k,null===f?void 0:f)}c=this.g[c.id];e=gM(b[a],"id","AdaptationSet");e=""!=e?e:gM(b[a],"mimetype","AdaptationSet");k=this.C;e=k.A[c.info.id]||k.o[e]||k.g||null;k=e.g;if(e.A)for(d=[],k=g.la(k),f=k.next();!f.done;f=k.next()){f=f.value;var l=e.eh(c.info.id,8*c.info.g,f.wa,f.Re);d.push(new XJ(f.wa,f.Re,f.durationSecs,f.g,l,null,f.o))}else{e=g.ub(hM(b[a],"SegmentList").getElementsByTagName("SegmentURL"),e.C);f=[];for(l=0;l<e.length;l++)f.push(Rka(e[l],k[l],d));d=f}c.update(d,this.isLive,this.V)}Kka(this.C);
return!0}this.duration=iM(gM(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){k=b[a];c=wM(this,k);e=hM(k,"BaseURL");d=tM(e.textContent,c);f=hM(k,"SegmentBase");k=TK(f.attributes.indexRange.value);f=TK(f.getElementsByTagName("Initialization")[0].attributes.range.value);e=(0,window.parseInt)(e.getAttribute(uM(this,"contentLength")),10);c=new g.mM(d,c,f,k,e,window.NaN);if(!c){b=!1;break a}this.g[c.info.id]=c}b=!0}return b};
g.h.We=function(a){return this.C?g.ub(this.C.B,a):this.L.length?g.ub(this.L,a):[]};
g.h.lI=function(a){if(this.ma())return this;this.N=a.status;a=a.responseText;a=(new window.DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.D=1E3*iM(gM(a,"minimumUpdatePeriod"))||window.Infinity;if(!this.O){var b;a:{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.ba=b}this.isLive=window.Infinity>this.D&&this.ra;this.V=(0,window.parseInt)(gM(a,uM(this,"earliestMediaSequence")),
10)||0;if(b=Date.parse(fM(gM(a,uM(this,"mpdResponseTime")))))this.G=((0,g.G)()-b)/1E3;a=this.isLive&&0>=a.getElementsByTagName("SegmentTimeline").length?!1:(0,g.Nr)(a.getElementsByTagName("Period"),this.wS,this);this.F=2;this.X("loaded");AM(this,a);return this};
g.h.oI=function(a){this.N=a.g.status;this.F=3;this.X("loaderror");return cg(a.g)};
g.h.Ez=function(){if(1!=this.F&&!this.ma()){var a=this.Y;a:{var b=this.g;for(var c in b){var d=b[c].index;if(d&&d.Sb()){b=d.Dc()+1;break a}}b=0}a=g.Pg(a,{start_seq:b.toString()});xM(this,a)}};
g.h.resume=function(){AM(this,!0)};
g.h.Kk=function(){var a=this.g,b=window.NaN,c;for(c in a){var d=a[c].index;d&&d.Sb()&&((0,window.isNaN)(b)||d.wn()<b)&&(b=d.wn())}return this.da?Math.floor(b):b};
g.h.Kc=function(){var a=this.g,b;for(b in a){var c=a[b].index;if(c&&c.Sb())return c.Kc()}return 0};
g.h.NL=function(){return this.G};
var DM=null,vM={commentary:1,alternate:2,dub:3,main:4};var S2={},NM=(S2.playready=["com.youtube.playready","com.microsoft.playready"],S2.widevine=["com.widevine.alpha"],S2),Vka=g.rb(NM.widevine,NM.playready);g.p(MM,g.L);
MM.prototype.D=function(){if(!this.ma())if(0==this.A.length)this.B(null);else{var a=this.A.shift(),b=this.o[a],c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};HM(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d in this.g[b.g]){var e=0==d.indexOf("audio/"),f=e?c.audioCapabilities:c.videoCapabilities;this.C.g("html5_widevine_robustness_strings")&&"widevine"==b.g?e?f.push({contentType:d,robustness:"SW_SECURE_CRYPTO"}):(f.push({contentType:d,robustness:"HW_DECODE_ALL"}),f.push({contentType:d,
robustness:"SW_SECURE_DECODE"})):f.push({contentType:d})}window.navigator.requestMediaKeySystemAccess(a,[c]).then(UE((0,g.A)(this.F,this,b)),UE((0,g.A)(this.D,this)))}};
MM.prototype.F=function(a,b){this.ma()||(a.A=b,Wka(this,a),this.B(a))};var vla={gv:"red",Qp:"white"};OM.prototype.g=function(a,b){var c=Math.pow(this.C,a);this.A=b*(1-c)+c*this.A;this.B+=a};
OM.prototype.o=function(){return this.A/(1-Math.pow(this.C,this.B))};PM.prototype.g=function(a,b){QM(this,"index");this.B.push({index:this.I++,weight:a,value:b});this.A+=a;for(QM(this,"index");this.A>this.F;){var c=this.A-this.F,d=this.B[0];d.weight<=c?(this.A-=d.weight,this.B.shift()):(this.A-=c,d.weight-=c)}};
PM.prototype.o=function(){return this.D?(RM(this,this.C-this.D)+RM(this,this.C)+RM(this,this.C+this.D))/3:RM(this,this.C)};SM.prototype.g=function(a,b){this.A.push(b);this.A.length>this.B&&this.A.shift()};
SM.prototype.o=function(){return Naa.apply(null,this.A)};var ula={SV:"adunit",BX:"detailpage",ZX:"editpage",aY:"embedded",kZ:"leanback",S_:"previewpage",T_:"profilepage",a2:"unplugged"};var kla="9h 9 h 8 (h ( H *".split(" "),jla="9h 9 h 8 ( H *".split(" "),nN="h98H(*".split(""),mla="oMavAV".split(""),pla=["so","sa"],ola="moMavAV".split(""),nla="aoMvAV".split(""),lla=["f"],fla={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},gla={"application/x-mpegURL":"maybe"},ela={"application/x-mpegURL":"maybe"};var dO={vZ:1,wZ:2,xZ:3};g.D(zN,g.xG);zN.prototype.remove=function(a){var b=this.get(a);delete this.La[a];return b};
zN.prototype.get=function(a){return this.La[a]||null};
zN.prototype.isEmpty=function(){return g.Wb(this.La)};var BN={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},CN={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},DN=/^(\d*)_((\d*)_?(\d*))$/;var rla=/^([0-9\.]+)\:([0-9\.]+)$/;var NN=(0,g.G)().toString();var SN="blogger books docs google-live play chat picasaweb gmail jamboard".split(" ");g.p(eO,g.L);
eO.prototype.ng=function(a){var b=FN(a,this.A,this.Hb),c=!0;b&&(this.N.adformat=a.adformat,EN(b)||(this.ha="adunit"==this.D?this.ha:this.D,this.D="adunit",c=!1));c&&this.ha&&(this.D=this.ha,this.ha=null);if(b=a.video_id&&a.video_id!=this.Rg)this.Rg=a.video_id;if(a.adpings||b)this.Up=a.adpings?g.bF(a.adpings):null;var d;this.Qg?d=a.videostats_playback_base_url&&a.videostats_playback_base_url.split("/")[2]||"s.youtube.com":d="video.google.com";this.kk="//"+d+"/api/stats/qoe";this.experiments.g("www_for_videostats")&&
"s.youtube.com"==d&&(d="www.youtube.com");this.wT=d;if(a.feature||b)this.Bh=d=a.feature,this.N.feature=d;if(a.referrer||b)this.referrer=d=a.referrer,this.N.referrer=d;for(var e in jsa)d=jsa[e],b=a[d],void 0!=b&&(this.o[d]=b);!this.Ya&&a.cl&&(this.Ya=+a.cl);this.userAge=KN(this.userAge,a.user_age);this.userDisplayImage=MN(this.userDisplayImage,a.user_display_image);g.gP.test(this.userDisplayImage)||(this.userDisplayImage="");this.userDisplayName=MN(this.userDisplayName,a.user_display_name);this.userGender=
MN(this.userGender,a.user_gender);this.yc=MN(this.yc,a.eventid);this.csiPageType=MN(this.csiPageType,a.csi_page_type);this.ob=MN(this.ob,a.csi_service_name);this.Gc=IN(this.Gc,a.enablecsi);a.enabled_engage_types&&(this.Jb=new window.Set(a.enabled_engage_types.split(",")))};
eO.prototype.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=kO(this);d&&"www.youtube.com"==c?d="https://youtu.be/"+a:g.YN(this)?(d="https://"+c+"/fire",b.v=a):(d=this.fa+"://"+c+"/watch",b.v=a,hN&&(a=g.x("yt.ads.biscotti.lastId_")||"")&&(b.ebc=a));return g.Pg(d,b)};
eO.prototype.isAd=function(){return"adunit"==this.D};
var jsa={yW:"cbrand",zW:"cbr",AW:"cbrver",ZY:"c",cZ:"cver",bZ:"ctheme",aZ:"cplayer",JZ:"cmodel",p_:"cnetwork",z_:"cos",A_:"cosver",F_:"cplatform"};var xla=new window.Set("BASE_URL BASE_YT_URL abd allow_embed authuser autoplay captions_load_policy cc_load_policy cc3_module dash dashmpd docid el enable_cardio enablecastapi enablepostapi fmt_list fmt_stream_map hl hlsdvr hlsrange hlsvp html5 iurl iurlhq iurlmq length_seconds live_playback nohtml5 origin override_hl partnerid plid postid ps public rel reload_count reload_reason reportabuseurl resume start status streaminglib_load_policy streaminglib_preroll t timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoid wmode".split(" "));g.p(AO,yJ);
AO.prototype.g=function(){if(!this.o||this.o.ma()){var a=this.B;zla(a);for(var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={},d=0,e=a.o.length;d<e;++d){var f=a.o[d];c[f.itag]=f;b.push('#EXT-X-MEDIA:TYPE=AUDIO,NAME="audio",DEFAULT=YES,AUTOSELECT=YES,GROUP-ID="'+f.itag.toString()+'",URI="'+f.url+'"')}d=0;for(e=a.g.length;d<e;++d){var k=a.g[d];f=c[k.audioItag];b.push("#EXT-X-STREAM-INF:BANDWIDTH="+(k.bitrate+f.bitrate)+',CODECS="'+(k.Aw+","+f.Aw)+'",RESOLUTION='+(k.width+"x"+k.height)+',AUDIO="'+f.itag.toString()+
'",CLOSED-CAPTIONS=NONE');b.push(k.url)}a="data:application/x-mpegurl;charset=utf-8,"+(0,window.encodeURIComponent)(b.join("\n"));this.o=new xJ(a)}return this.o};var ksa={UNKNOWN:"UNKNOWN",NORMAL:"NORMAL",DZ:"LOW",W1:"ULTRALOW"};g.p(CO,yJ);CO.prototype.g=function(){return new xJ(FL(this.o))};
CO.prototype.A=function(){this.o=JL(this.o,1);return!0};g.D(TO,g.xG);TO.prototype.J=function(a,b){this.o=this.o.onload=null;var c=this.g[a];c.Tc[b]=!0;XO(this);var d=c.columns*c.rows;var e=b*d;c=Math.min(e+d-1,c.Pq()-1);e=[e,c];this.X("l",e[0],e[1])};
TO.prototype.W=function(){this.o&&(this.o=this.o.onload=null);TO.Z.W.call(this)};g.h=$O.prototype;g.h.Gb=function(){return this.F};
g.h.getHeight=function(){return this.D};
g.h.Pq=function(){return this.o};
g.h.isDefault=function(){return-1!=this.A.indexOf("default")};
g.h.Sb=function(a){return!!this.Tc[a]};
g.h.vp=function(a){var b=this.Pq()-1;return g.Xc(0==this.B?Math.round(a*this.o/this.J):Math.round(1E3*a/this.B),0,b)};
g.h.Du=function(){return this.o-1};
g.h.TD=function(){return this.o?0:-1};
g.h.UD=function(){};g.D(aP,TO);aP.prototype.A=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var k=this.D(f-1,e,d[f],b);180>k.getHeight()&&c.push(k)}return c};
aP.prototype.D=function(a,b,c,d){return new $O(a,b,c,d)};
aP.prototype.I=function(){};g.D(bP,$O);g.h=bP.prototype;g.h.Pq=function(){return this.g?this.g.fj():-1};
g.h.vp=function(a){var b=this.rows*this.columns*this.G,c=-1,d=-1,e=this.g;e&&(c=e.Dc(),d=e.gh(a));return d>c-b?-1:d};
g.h.Du=function(){return this.g?this.g.Dc():-1};
g.h.TD=function(){return this.g?this.g.yg():-1};
g.h.UD=function(a){this.g=a?a.index:null};g.D(cP,aP);cP.prototype.A=function(a,b){return cP.Z.A.call(this,"$N|"+a,b)};
cP.prototype.D=function(a,b,c){return new bP(a,b,c,this.L.isLive)};
cP.prototype.I=function(a){for(var b=0;b<this.g.length;b++)this.g[b].UD(a)};g.p(dP,yJ);dP.prototype.g=function(){return new xJ(this.o)};var fP={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Ela={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};g.jP.prototype.toString=function(){return this.topic};var lsa=g.x("ytPubsub2Pubsub2Instance")||new g.CD;g.CD.prototype.subscribe=g.CD.prototype.subscribe;g.CD.prototype.unsubscribeByKey=g.CD.prototype.Xd;g.CD.prototype.publish=g.CD.prototype.X;g.CD.prototype.clear=g.CD.prototype.clear;g.ra("ytPubsub2Pubsub2Instance",lsa,void 0);var mP=g.x("ytPubsub2Pubsub2SubscribedKeys")||{};g.ra("ytPubsub2Pubsub2SubscribedKeys",mP,void 0);var oP=g.x("ytPubsub2Pubsub2TopicToKeys")||{};g.ra("ytPubsub2Pubsub2TopicToKeys",oP,void 0);
var nP=g.x("ytPubsub2Pubsub2IsAsync")||{};g.ra("ytPubsub2Pubsub2IsAsync",nP,void 0);g.ra("ytPubsub2Pubsub2SkipSubKey",null,void 0);g.p(uP,g.iP);g.p(vP,g.iP);var Pla=new g.jP("aft-recorded",uP),rP=new g.jP("timing-sent",vP);var JP=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{};yP.prototype.toString=function(){return this.region.toString()+": "+this.timing+" => "+this.url};
zP.prototype.toString=function(){return["progress",this.progress,"timing",this.timing,"area",this.Qc].join(": ")};
xP.o=.1;xP.g=/url\(["']?(http[^'"\)]+)['"]?\)/i;xP.A="mark_iframe_loaded: ";xP.B=20;var Qla={vc:!0},MP={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'link[rel="import"][name="desktop_polymer_selective_initialization_home"]':"dpsihh",'link[rel="import"][name="desktop_polymer_selective_initialization_watch"]':"dpsiwh",'script[name="mobile_polymer/mobile_polymer"]':"mpj",
'link[rel="import"][name="mobile_polymer"]':"mph",'script[name="player-plasma-phone/base"]':"mpppj",'script[name="player-plasma-tablet/base"]':"mpptj",'link[rel="stylesheet"][name="mobile-polymer-player"]':"mppc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",
'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",'script[name="mobile_blazer_watch_mod"]':"mbwj"},VP={ad_at:"adType",ad_cpn:"adClientPlaybackNonce",ad_docid:"adVideoId",cpn:"clientPlaybackNonce",csn:"clientScreenNonce",docid:"videoId",is_nav:"isNavigation",yt_lt:"loadType",yt_ad:"isMonetized",plid:"videoId",fmt:"playerInfo.itag",yt_ad_pr:"prerollAllowed",yt_red:"isRedSubscriber",st:"serverTimeMs",yt_vis:"isVisible"},Ola="ap c cver ei srt yt_fss yt_li GetBrowse_rid GetPlayer_rid GetSearch_rid GetWatchNext_rid ad_allowed ad_docid ba cmt ncnp nr p pa paused pc prerender psc rc start vpil vpni vps yt_abt yt_ad_an yt_eil yt_fn yt_fs yt_pft yt_pl yt_pre yt_pt yt_pvis yt_ref yt_sts".split(" "),
Mla={ad_to_ad:"LATENCY_ACTION_AD_TO_AD",ad_to_video:"LATENCY_ACTION_AD_TO_VIDEO",browse:"LATENCY_ACTION_BROWSE",channels:"LATENCY_ACTION_CHANNELS","channel.analytics":"LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS","channel.videos":"LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",embed:"LATENCY_ACTION_EMBED",home:"LATENCY_ACTION_HOME",library:"LATENCY_ACTION_LIBRARY",live:"LATENCY_ACTION_LIVE",results:"LATENCY_ACTION_RESULTS",search:"LATENCY_ACTION_RESULTS",video_to_ad:"LATENCY_ACTION_VIDEO_TO_AD",watch:"LATENCY_ACTION_WATCH",
"watch,watch7":"LATENCY_ACTION_WATCH","watch,watch7_html5":"LATENCY_ACTION_WATCH","watch,watch7ad":"LATENCY_ACTION_WATCH","watch,watch7ad_html5":"LATENCY_ACTION_WATCH","video.analytics":"LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS","video.comments":"LATENCY_ACTION_CREATOR_VIDEO_COMMENTS"},Nla=["isNavigation","isMonetized","prerollAllowed","isRedSubscriber","isVisible"],XP=!1,Jla=(0,g.A)(JP.clearResourceTimings||JP.webkitClearResourceTimings||JP.mozClearResourceTimings||JP.msClearResourceTimings||JP.oClearResourceTimings||
g.y,JP);var T2;var msa=g.Ib,nsa=msa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!nsa||2>nsa.length)T2=void 0;else{var U2=msa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);T2=U2&&6==U2.length?Number(U2[5].replace("_",".")):0}var f_=T2,V2=0<=f_;V2&&0<=g.Ib.search("Safari")&&g.Ib.search("Version");var ama={0:"UNKNOWN",1:"OFF",2:"ON",3:"FORCED_ON"},W2={},osa=(W2.ALWAYS=1,W2.BY_REQUEST=3,W2),Yla,bQ;g.p(g.aQ,g.xG);g.h=g.aQ.prototype;g.h.ng=function(a,b){b?(this.setData(a),uQ(this)&&iQ(this)):(eQ(this,a,!0),this.X("dataupdated"))};
g.h.setData=function(a){a=a||{};a.player_response&&(this.yb=g.xg(a.player_response));this.ug="1"!=a.hlsdvr?!1:gN()?!0:UN&&5>f_?!1:!0;this.ZG=a.ad_query_id;this.adSafetyReason=a.encoded_ad_safety_reason;this.Ri=a.agcid;this.Fm="1"==a.infringe||"1"==a.muted;this.Yv=a.authkey;this.Bc=a.authuser;this.clientPlaybackNonce||(this.clientPlaybackNonce=a.cpn||QN());this.enableCardio=IN(this.enableCardio,a.enable_cardio);this.enableCardioBeforePlayback=IN(this.enableCardioBeforePlayback,a.enable_cardio_before_playback);
this.endSeconds=KN(this.endSeconds,a.end||a.endSeconds);this.Qn=MN(this.Qn,a.itct);this.Rr=IN(this.Rr,a.noiba);this.al="1"==a.livemonitor;this.Ba="1"==a.live_playback||!!a.fresca_preroll||!!a.heartbeat_preroll;this.isLiveDestination=IN(this.isLiveDestination,a.is_live_destination);this.isLiveDefaultBroadcast="1"==a.live_default_broadcast;this.isLowLatencyLiveStream="1"==a.is_low_latency_live_stream;a.latency_class&&(this.latencyClass=JN("UNKNOWN",a.latency_class,ksa));this.isMdxPlayback=IN(this.isMdxPlayback,
a.mdx);a.mdx_control_mode&&(this.mdxControlMode=Za(a.mdx_control_mode));this.Hi=KN(this.Hi,a.reload_count);this.zt=MN(this.zt,a.reload_reason);this.BC=IN(this.BC,a.show_content_thumbnail);this.Ur=IN(this.Ur,a.utpsa);this.cycToken=a.cyc;this.PC=a.tkn;this.Zj="1"==a.innertube_thumbnail&&this.yb.videoDetails.thumbnail?Fla(this.yb.videoDetails.thumbnail):hP(a);this.pg=MN(this.pg,a.vvt);this.mdxEnvironment=MN(this.mdxEnvironment,a.mdx_environment);this.ZN=a.osig;this.FB=a.ptchn;this.GB=a.oid;this.Fl=a.ptk;
this.HB=a.pltype;this.playbackId=a.plid;this.eventId=a.eventid;this.osid=a.osid;this.videoMetadata=a.vm;this.ht=a.of;this.Zo=a.upt;this.playlistId=MN(this.playlistId,a.list);this.QB=a.pyv_view_beacon_url;this.FS=a.pyv_quartile25_beacon_url;this.GS=a.pyv_quartile50_beacon_url;this.HS=a.pyv_quartile75_beacon_url;this.ES=a.pyv_quartile100_beacon_url;a.remarketing_url&&(this.remarketingUrl=a.remarketing_url);this.yb&&this.yb.Hl&&this.yb.Hl.jU&&(this.youtubeRemarketingUrl=this.yb.Hl.jU.kH);this.yb&&this.yb.Hl&&
this.yb.Hl.hI&&(this.googleRemarketingUrl=this.yb.Hl.hI.kH);a.ppv_remarketing_url&&(this.ppvRemarketingUrl=a.ppv_remarketing_url);this.Eo=a.sdetail;!this.wt&&a.session_data&&(this.wt=g.aF(a.session_data).feature);this.isFling=1==KN(this.isFling?1:0,a.is_fling);this.vnd=KN(this.vnd,a.vnd);this.Hq=MN(this.Hq,a.force_ads_url);this.kg=MN(this.kg,a.ctrl);this.sf=MN(this.sf,a.ytr);this.Um=a.ytrcc;this.TB=a.ytrexp;this.Ll=LN(this.Ll,a.vq);this.Ql=LN(this.Ql,a.suggestedQuality);this.Ro=IN(this.Ro,a.ssrt);
this.videoId=GN(a)||this.videoId;this.vssCredentialsToken=MN(this.vssCredentialsToken,a.vss_credentials_token);this.dk=MN(this.dk,a.vss_credentials_token_type);this.ypcGid=MN(this.ypcGid,a.ypc_gid);this.heartbeatToken=MN(this.heartbeatToken,a.heartbeat_token);this.heartbeatInterval=KN(this.heartbeatInterval,a.heartbeat_interval);this.heartbeatRetries=KN(this.heartbeatRetries,a.heartbeat_retries);this.heartbeatSoftFail=IN(this.heartbeatSoftFail,a.heartbeat_soft_fail);this.Qr=IN(this.Qr,a.ithb);this.Ey=
IN(this.Ey,a.strpro);if(a.ad3_module||a.ad_module)"1"==a.allow_html5_ads?(this.adModule=!0,"1"==a.ad_preroll&&this.oe.push("ad")):"1"!=a.supported_without_ads&&(this.Zx=!0);a.adaptive_fmts&&(this.adaptiveFormats=a.adaptive_fmts);this.yb&&this.yb.attestation&&this.yb.attestation.playerAttestationRenderer?this.mk=this.yb.attestation.playerAttestationRenderer.challenge:void 0!=a.atc&&(this.mk=a.atc);a.license_info&&(this.bd=$la(a.license_info));a.allow_embed&&(this.allowEmbed="1"==a.allow_embed);a.backgroundable&&
(this.backgroundable="1"==a.backgroundable);a.autonav&&(this.Tn="1"==a.autonav);a.autoplay&&(this.Ah="1"==a.autoplay);if(a.iv_load_policy)this.Ug=JN(this.Ug,a.iv_load_policy,dO);else{var b=cQ(this.yb);b&&b.loadPolicy&&(this.Ug=osa[b.loadPolicy])}a.cc_lang_pref&&(this.Wg=MN(a.cc_lang_pref,this.Wg));a.cc_load_policy&&(this.Xg=JN(this.Xg,a.cc_load_policy,dO));"0"==a.dash&&(this.Qw=!0);if(a.dashmpd){this.ze=g.Pg(a.dashmpd,{cpn:this.clientPlaybackNonce});b=/\/s\/([0-9A-F.]+)/;var c=b.exec(this.ze);c&&
(c=SE(c[1]),this.ze=this.ze.replace(b,"/signature/"+c))}a.delay&&(this.Jf=Za(a.delay));a.drm_session_id&&(this.drmSessionId=a.drm_session_id);void 0!=a.end&&(this.clipEnd=a.end);a.fair_play_cert&&window.atob&&(this.fairPlayCert=(0,window.atob)(a.fair_play_cert));a.fmt_list&&(this.fmtList=a.fmt_list);a.fresca_preroll&&this.oe.push("fresca");a.heartbeat_preroll&&this.oe.push("heartbeat");a.idpj&&(this.tj=Za(a.idpj));a.ismb&&(this.Cg=Za(a.ismb));a.is_listed&&(this.isListed=IN(this.isListed,a.is_listed));
a.paid_content_overlay_duration_ms&&(this.EB=Za(a.paid_content_overlay_duration_ms));a.paid_content_overlay_text&&(this.vS=a.paid_content_overlay_text);a.url_encoded_fmt_stream_map&&(this.Hh=a.url_encoded_fmt_stream_map);a.hls_formats&&(this.hlsFormats=a.hls_formats);a.hlsvp&&(this.hlsvp=a.hlsvp);a.length_seconds&&(this.lengthSeconds=Za(a.length_seconds));a.live_chunk_readahead&&(this.liveChunkReadahead=KN(this.liveChunkReadahead,a.live_chunk_readahead));a.live_start_walltime&&(this.liveStartWalltime=
Za(a.live_start_walltime));a.live_manifest_duration&&(this.Yr=Za(a.live_manifest_duration));a.ldpj&&(this.fl=Za(a.ldpj));a.player_params&&(this.playerParams=a.player_params);a.relative_loudness&&(this.relativeLoudness=Za(a.relative_loudness),(0,window.isFinite)(this.relativeLoudness)&&(this.hd=Math.min(1,Math.pow(10,-this.relativeLoudness/20))));a.partnerid&&(this.zh=Za(a.partnerid));a.probe_url&&(this.probeUrl=DL(g.Pg(a.probe_url,{cpn:this.clientPlaybackNonce})));a.profile_picture&&(this.profilePicture=
MN(a.profile_picture,this.profilePicture));a.pyv_billable_url&&g.I2.test(a.pyv_billable_url)&&(this.zo=a.pyv_billable_url);a.pyv_conv_url&&g.I2.test(a.pyv_conv_url)&&(this.Kj=a.pyv_conv_url);a.video_masthead_ad_quartile_urls&&(b=a.video_masthead_ad_quartile_urls,this.ms=b.quartile_0_url,this.az=b.quartile_25_url,this.bz=b.quartile_50_url,this.dz=b.quartile_75_url,this.Zy=b.quartile_100_url);"1"==a.spacecast_playback&&(this.oe.push("spacecast"),this.spacecastModule=!0,this.Li.zS=!0);a.spacecast_addrs&&
(this.spacecastModule=!0,b={},b.addresses=a.spacecast_addrs.split(","),b.probe=!0,a.spacecast_query_params&&(b.applianceQueryParams=a.spacecast_query_params),this.Li.init=b);0<this.startSeconds||(this.Dy=this.startSeconds=KN(this.startSeconds,a.start||a.startSeconds));void 0==a.start||"1"==a.resume||this.Ba||(this.clipStart=a.start);a.two_stage_token&&(this.Gh=a.two_stage_token);a.url_encoded_third_party_media&&(this.Yj=iF(a.url_encoded_third_party_media));a.watch_ajax_token&&(this.watchAjaxToken=
a.watch_ajax_token);a.ypc_module&&this.oe.push("ypc");a.ypc_clickwrap_module&&this.oe.push("ypc_clickwrap");this.Sl=MN(this.Sl,a.ucid);(0,g.H)("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(b){a[b]&&(this.ye[b]=a[b])},this);
this.ye.focEnabled=IN(this.ye.focEnabled,a.focEnabled);this.ye.rmktEnabled=IN(this.ye.rmktEnabled,a.rmktEnabled);this.Xb=a;eQ(this,a,!1);gQ(this)||(this.adaptiveFormats&&!this.Ba?(jQ(this,rM(kQ(this,this.adaptiveFormats),this.bd,this.lengthSeconds,void 0)),qM(this.ua)&&(this.vj=!0)):this.ze&&(this.wk=!0));a.adpings&&(this.Up=a.adpings?g.bF(a.adpings):null);a.feature&&(this.Bh=a.feature);a.referrer&&(this.referrer=a.referrer);a.multifeed_metadata_list&&(this.Qh=iF(a.multifeed_metadata_list));this.clientScreenNonce=
MN(this.clientScreenNonce,a.csn);this.rootVeType=KN(this.rootVeType,a.root_ve_type);a.unplugged_location_info&&(this.Oi=a.unplugged_location_info);a.unplugged_partner_opt_out&&(this.ck=MN("",a.unplugged_partner_opt_out));a.partial_spherical&&(this.partialSpherical="1"==a.partial_spherical);a.fflags&&(b=g.aF(a.fflags),b.enable_spherical_kabuki&&(this.Ww="true"==b.enable_spherical_kabuki));this.Yk=MN(this.Yk,a.internal_ip_override);this.innertubez=MN(this.innertubez,a.innertubez)};
g.h.Rd=function(){return!this.Ba||this.ug};
g.h.sK=function(a){(this.Uf=a)&&"fairplay"==this.Uf.g&&(this.Uf.fairPlayCert=this.fairPlayCert);iQ(this)};
g.h.pd=function(){return!(!this.ua||!this.ua.o)};
g.h.hP=function(a){if(!this.ma()){if(this.So){var b=yM(a,this.So);b&&(a=b)}jQ(this,a);this.Ba&&this.ua.subscribe("refresh",this.WA,this);g.EP("mrc");qM(this.ua)&&(this.vj=!0);iQ(this)}};
g.h.gP=function(a){this.ma()||(this.rh=!1,this.X("dataloaderror",new g.xO("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
g.h.WA=function(){this.ma()||(this.ua.isLive||this.ua.unsubscribe("refresh",this.WA,this),this.qw())};
g.h.qw=function(){var a=this.ua.We(this.Xr);0<a.length&&(this.X("cuepointupdated",a),this.Xr+=a.length)};
g.h.DK=function(a){if(this.spacecastFormatMap){var b=kQ(this,this.spacecastFormatMap);return SO(a,b,mQ(this,a)).then(this.Oo,void 0,this).then(this.kx,void 0,this)}return IF()};
g.h.AK=function(a,b){var c=b||gQ(this);if(this.ua&&!c){if(!a.C){c=this.ua;var d=this.Ba;if(!c.g["0"]){var e=new lJ(0,0,0,void 0,void 0,"auto");e=new pJ("0","",void 0,e);c.g["0"]=d?new $L(new g.EL("http://www.youtube.com/videoplayback"),e,"fake"):new g.mM(new g.EL("http://www.youtube.com/videoplayback"),e,new g.SK(0,0),new g.SK(0,0),0,window.NaN)}}return qN(a.L,this.ua,this.Uf,!1,wla(a)).then(this.Jt,void 0,this)}return IF()};
g.h.BK=function(a){if(this.hlsFormats){var b=kQ(this,this.hlsFormats);return Cla(a,b,this.Cg).then(this.Oo,void 0,this)}return IF()};
g.h.EK=function(a){if(this.Yj&&this.Ky){var b=Dla(this.Yj);a=fN(a.L,b,iO(a)).then(this.Oo,void 0,this)}else a=IF();return a};
g.h.CK=function(a){var b=kQ(this,this.Hh,this.fmtList);if(this.hlsvp){var c=this.hlsvp,d=this.Cg,e={cpn:this.clientPlaybackNonce};-1==c.indexOf("/ibw/")&&(e.ibw=d?String(d):"1369843");c={url:g.Pg(c,e),type:"application/x-mpegURL",quality:"auto",itag:"93"};b.push(c)}return SO(a,b,mQ(this,a)).then(this.Oo,void 0,this)};
g.h.Jt=function(a){this.tb=a;this.kh=this.kh||/^r/.test(this.clientPlaybackNonce)&&!!this.tb.videoInfos.length&&1080<this.tb.videoInfos[0].video.o;a=this.tb?this.tb.audioTracks:[];a=a.concat(this.bn);for(var b=0;b<this.rk.length;b++)for(var c=this.rk[b],d=0;d<a.length;d++){var e=a[d],f=e.Sc.id==c.audioTrackId;if(e.Sc.isDefault&&b==this.mq||f){if(c.captionTrackIndices)for(f=0;f<c.captionTrackIndices.length;f++)e.captionTracks[f]=this.captionTracks[c.captionTrackIndices[f]];g.t(c.defaultCaptionTrackIndex)&&
(e.Aq=this.captionTracks[c.defaultCaptionTrackIndex]);g.t(c.forcedCaptionTrackIndex)&&(e.Dk=this.captionTracks[c.forcedCaptionTrackIndex]);e.ew=c.visibility||"UNKNOWN"}}};
g.h.Oo=function(a){this.Jj=a;this.Jt(new cN((0,g.J)(this.Jj,function(a){return a.Ce})))};
g.h.kx=function(){var a=$c(this.tb.videoInfos,function(a,c){return c.video.isAccelerated&&(!a||a.height<c.video.height)?c.video:a},null);
a&&(this.Ql=this.Ll=a=BJ(a.quality,a.quality,!0))};
g.h.zd=function(){var a={};this.Oa&&(a.fmt=oJ(this.Oa),this.wd&&oJ(this.wd)!=oJ(this.Oa)&&(a.afmt=oJ(this.wd)));a.plid=this.playbackId;a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Fm&&(a.infringe=1);this.Tf&&(a.splay=1);this.Ba&&(a.live=this.ug?"dvr":"live");this.Ah&&(a.autoplay=1);this.Eo&&(a.sdetail=this.Eo);this.zh&&(a.partnerid=this.zh);this.osid&&(a.osid=this.osid);return a};
g.h.getStoryboardFormat=function(){if(this.yb&&this.yb.storyboards){var a=this.yb.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.Xb.storyboard_spec||this.Xb.live_storyboard_spec};
g.h.Kk=function(){return this.ua&&!(0,window.isNaN)(this.ua.Kk())?this.ua.Kk():this.lengthSeconds};
g.h.Kc=function(){return this.ua&&!(0,window.isNaN)(this.ua.Kc())?this.ua.Kc():0};
g.h.ed=function(){return!this.ma()&&!(!this.videoId&&!this.Yj)};
g.h.Sb=function(){return uQ(this)&&!this.wk&&!this.vj};
g.h.jC=function(){var a={format:"RAW",method:"GET",withCredentials:this.ZB};this.Sj&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData});0<this.Vq&&(a.timeout=this.Vq);var b=this.Wq;0<this.Ho&&(b=g.dF(b,{playerretry:this.Ho}));this.Gx?oM(FF,b,a).then(UE(this.ZA),UE(this.BP),this):(a.context=this,a.Vb=this.ZA,a.onError=this.jr,g.nF(b,a));g.EP("vir");g.EP("vir",void 0,"video_to_ad");this.Fx=(0,g.ZG)()};
g.h.bc=function(a,b){if(30==this.zh){var c=this.Zj["default.jpg"];return c?c:this.videoId?g.Pg("//docs.google.com/vt",{id:this.videoId,authuser:this.Bc,authkey:this.Yv}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=this.Zj[b])||a.I||"pop1.jpg"==b||"pop2.jpg"==b||"sddefault.jpg"==b||"hq720.jpg"==b||"maxresdefault.jpg"==b?c:lO(a,this.videoId,b)};
g.h.ZA=function(a){if(!this.ma()){var b=a.responseText;if(b){this.rh=!1;var c=g.bF(b);this.Hy&&zO(c);"fail"==c.status?this.X("onStatusFail",c):(g.EP("virc"),g.EP("virc",void 0,"video_to_ad"),(0,g.H)(g.psa,function(a){a in this.Xb&&(c[a]=this.Xb[a])},this),this.setData(c),uQ(this)?iQ(this):this.X("dataloaderror",new g.xO("manifest.net.retryexhausted",!0,{successButUnplayable:"1"})))}else this.jr(a)}};
g.h.BP=function(a){this.jr(a.g)};
g.h.jr=function(a){if(!this.ma()){var b=a?a.status:-1;a=this.Ho>=this.Bt||400==b;var c=200<b?"manifest.net.badstatus":"manifest.net.connect",d=(((0,g.ZG)()-this.Fx)/1E3).toFixed(3);b={backend:"gvi",rc:b,rt:d};a&&this.Bt?(c="manifest.net.retryexhausted",b.urllen=this.Wq.length):a||(this.Ho++,this.iC.start());this.X("dataloaderror",new g.xO(c,a,b))}};
g.h.getPlayerResponse=function(){return this.yb};
g.h.getPlaylistId=function(){return null};
g.h.dc=function(){return this};
g.h.Bn=function(a){return a.getVideoUrl(this.videoId)};
g.h.lh=function(){return!!this.ua&&this.ua.lh()};
g.h.mh=function(){return!!this.ua&&this.ua.mh()};
g.h.Pf=function(){return!!this.ua&&this.ua.Pf()};
g.h.mi=function(){return!!this.ua&&this.ua.mi()};
g.psa="ypc_buy_url ypc_full_video_message ypc_item_thumbnail ypc_item_title ypc_item_url ypc_module ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_offer_type ypc_overlay_timeout ypc_preview ypc_signin_message ypc_vid".split(" ");Yla="author cc_asr cc_load_policy iv_load_policy iv_new_window keywords oauth_token requires_purchase rvs subscribed title ttsurl ypc_buy_url ypc_full_video_length ypc_item_thumbnail ypc_item_title ypc_item_url ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_preview ypc_price_string ypc_video_rental_bar_text".split(" ");
bQ=["annotations","captions","storyboard"];DQ.prototype.update=function(){var a=this.g.o()||0,b=g.CQ(this.g);if(a!=this.o||HQ(this,a,b)){if(a<this.o||a-this.o>b-this.D+2||HQ(this,a,b)||cma(this,b))g.EQ(this),this.B=a;this.D=b;this.o=a}};IQ.prototype.o=function(){return{ps:this.g.g,el:gO(this.videoData,this.g)}};
IQ.prototype.send=function(){if(!this.A){var a=this.o();a=g.Pg(this.g.baseYtUrl+"set_awesome",a);this.g.Ta&&this.videoData.visitorData&&gF(a)?g.nF(a,{headers:{"X-Goog-Visitor-Id":this.videoData.visitorData}}):g.AF(a);this.A=!0}};g.D(JQ,IQ);
JQ.prototype.o=function(){var a=JQ.Z.o.call(this);g.Ba(a,this.g.o);g.Ba(a,{html5:"1",video_id:this.videoData.videoId,eurl:this.g.pa,framer:this.g.xm,list:this.videoData.St||this.videoData.playlistId,w:g.Xc(this.videoData.If/this.videoData.lengthSeconds,0,1),l:this.videoData.lengthSeconds,plid:this.videoData.playbackId,ei:this.videoData.eventId,access_token:this.videoData.oauthToken,tpmt:FQ(this.B),cpn:this.videoData.clientPlaybackNonce,feature:this.videoData.Bh});this.videoData.adFormat&&(a.adformat=
this.videoData.adFormat);var b;(b=(b=this.videoData.referrer)?b.slice(0,128):"")&&(a.referrer=b);if(this.g.experiments.g("legacy_autoplay_flag")?this.g.ba:this.videoData.Ah)a.autoplay="1";this.g.Bc&&(a.authuser=this.g.Bc);this.g.pageId&&(a.pageid=this.g.pageId);this.videoData.Tf&&(a.splay="1");this.videoData.subscribed&&(a.subscribed=this.videoData.subscribed);g.Ba(a,JQ.Z.o.call(this));g.Ba(a,this.g.o);return a};var jna={cW:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"ERROR_AUTHENTICATION_EXPIRED",gW:"ERROR_AUTHENTICATION_MALFORMED",hW:"ERROR_AUTHENTICATION_MISSING",mW:"ERROR_BAD_REQUEST",EW:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",OW:"ERROR_CGI_PARAMS_MALFORMED",PW:"ERROR_CGI_PARAMS_MISSING",EX:"YTP_DEVICE_FALLBACK",fY:"YTP_ERROR_LICENSE",gY:"YTP_ERROR_VIDEO_UNAVAILABLE",qY:"YTP_ERROR_FORMAT_UNAVALIABLE",tY:"YTP_ERROR_GEO_FAILURE",JY:"YTP_ERROR_GENERIC_WITHOUT_LINK",KY:"YTP_HTML5_FLASH_DEPRECATED",
LY:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",dZ:"YTP_ERROR_INVALID_DRM_MESSAGE",lZ:"LEARN_MORE",r_:"YTP_ERROR_NOT_SIGNED_IN",X_:"YTP_ERROR_PURCHASE_NOT_FOUND",Y_:"YTP_ERROR_PURCHASE_REFUNDED",d0:"YTP_ERROR_RENTAL_EXPIRED",JW:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",KW:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",MW:"YTP_ERROR_CAST_TOKEN_FAILED",LW:"YTP_ERROR_CAST_TOKEN_EXPIRED",NW:"YTP_ERROR_CAST_TOKEN_MALFORMED",A0:"YTP_ERROR_SERVER_ERROR",a1:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",f1:"YTP_ERROR_STREAM_LICENSE_NOT_FOUND",
c1:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",d1:"YTP_ERROR_STREAMING_NOT_ALLOWED",e1:"YTP_ERROR_STREAMING_UNAVAILABLE",n0:"YTP_ERROR_RETRYABLE_ERROR",z1:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",w1:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",c2:"YTP_ERROR_UNSUPPORTED_DEVICE",d2:"YTP_ERROR_UNUSUAL_ACTIVITY",s2:"YTP_ERROR_VIDEO_FORBIDDEN",u2:"YTP_ERROR_VIDEO_NOT_FOUND"},dma={300:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",303:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",
304:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",305:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"YTP_ERROR_VIDEO_NOT_FOUND",401:"YTP_ERROR_GEO_FAILURE",402:"YTP_ERROR_STREAMING_NOT_ALLOWED",403:"YTP_ERROR_UNSUPPORTED_DEVICE",405:"YTP_ERROR_VIDEO_FORBIDDEN",500:"YTP_ERROR_PURCHASE_NOT_FOUND",501:"YTP_ERROR_RENTAL_EXPIRED",502:"YTP_ERROR_PURCHASE_REFUNDED",5E3:"ERROR_BAD_REQUEST",5001:"ERROR_CGI_PARAMS_MISSING",5002:"ERROR_CGI_PARAMS_MALFORMED",5100:"ERROR_AUTHENTICATION_MISSING",5101:"ERROR_AUTHENTICATION_MALFORMED",
5102:"ERROR_AUTHENTICATION_EXPIRED",5200:"YTP_ERROR_CAST_TOKEN_MALFORMED",5201:"YTP_ERROR_CAST_TOKEN_EXPIRED",5202:"YTP_ERROR_CAST_TOKEN_FAILED",5203:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",5204:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",6E3:"YTP_ERROR_INVALID_DRM_MESSAGE",7E3:"YTP_ERROR_SERVER_ERROR",8E3:"YTP_ERROR_RETRYABLE_ERROR"};var qsa=V2&&4>f_?.1:0,dpa=new SQ;SQ.prototype.g=null;SQ.prototype.getDuration=function(){return this.duration||0};
SQ.prototype.getCurrentTime=function(){return this.currentTime||0};
SQ.prototype.o=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};g.D(TQ,g.L);g.h=TQ.prototype;g.h.fd=function(){this.g.ended&&this.tc(0);!this.Pd()&&this.o&&(g.TE(Error("playVideo without src")),VQ(this,this.o.g),this.o.o||this.load());this.play();V2&&7<=f_&&g.qG(this,"playing",(0,g.A)(function(){g.$E((0,g.A)(this.ox,this,this.getCurrentTime(),0),500)},this))};
g.h.ox=function(a,b){this.g.paused||this.getCurrentTime()>a||10<b||(this.play(),g.$E((0,g.A)(this.ox,this,this.getCurrentTime(),b+1),500))};
g.h.tc=function(a){0<this.g.readyState&&(V2&&4>f_&&(a=Math.max(.1,a)),this.g.currentTime=a)};
g.h.ag=function(){!this.A&&this.Pd()&&(hN&&0<this.getCurrentTime()&&this.tc(0),this.g.removeAttribute("src"),this.load(),UQ(this,null))};
g.h.addEventListener=function(a,b){this.C.U(a,b,!1,this);if(!this.B[a]){var c=(0,g.A)(this.gV,this);this.g.addEventListener(a,c);this.B[a]=c}};
g.h.removeEventListener=function(a,b){this.C.Ca(a,b,!1,this)};
g.h.dispatchEvent=function(a){return this.C.dispatchEvent(a)};
g.h.uw=function(){this.D&&!this.g.muted&&(CK(),this.g.muted=!0)};
g.h.W=function(){this.F&&this.removeEventListener("volumechange",this.uw);TQ.Z.W.call(this)};g.p(cR,g.$e);cR.prototype.preventDefault=function(){g.$e.prototype.preventDefault.call(this);this.g&&this.g.preventDefault()};
cR.prototype.stopPropagation=function(){g.$e.prototype.stopPropagation.call(this);this.g&&this.g.stopPropagation()};var gV=Jf(function(){var a="";try{var b=g.zd("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.dR.prototype.xb=function(){return g.W(this,8)&&!g.W(this,64)&&!g.W(this,2)};
g.dR.prototype.isError=function(){return g.W(this,128)};qR.prototype.isEmpty=function(){return this.endTime==this.startTime};var tR={other:1,none:2,wifi:3,cellular:7};g.p(wR,g.L);
wR.prototype.C=function(a){if(!this.ma()&&(a=0<=a?a:g.CQ(this.g),"PL"==this.A&&(!g.Wb(this.o)||a>=this.B+30)&&(g.vR(this,a,"vps",[this.A]),this.B=a),!g.Wb(this.o)&&!this.O)){zR(this,a);var b=a,c=this.g.F(),d=c.droppedVideoFrames,e=d-this.ba;if(d>c.totalVideoFrames||5E3<e)this.onError("html5.badframedropcount","df."+d+";tf."+c.totalVideoFrames);else 0<e&&g.vR(this,b,"df",[e]);this.ba=d;!this.g.g.experiments.g("disable_webgl_reporting")&&0<this.D&&(g.vR(this,a,"glf",[this.D]),this.D=0);a=AR(this);g.dc(a,
this.g.g.o);a=g.Pg(this.g.g.kk,a);for(var f in this.o)null==this.o[f]?g.TE(Error("Stats report key has invalid value: "+f),"WARNING"):a+="&"+f+"="+this.o[f].join(",");BR(this,a);this.o={}}};
wR.prototype.ka=function(){this.g.videoData.Uf&&FR(this,"drm-"+this.g.videoData.Uf.g)};
wR.prototype.onError=function(a,b){var c=g.CQ(this.g);DR(this,c,a,b);zR(this,c);CR(this)};
wR.prototype.W=function(){g.L.prototype.W.call(this);g.XE(this.Y)};
var X2={},kma=(X2[5]="N",X2[-1]="N",X2[3]="B",X2[0]="EN",X2[2]="PA",X2[1]="PL",X2);GR.prototype.send=function(a){if(!this.aa){var b=JR(this);b=g.Pg(this.ka,b);if(this.I)this.N&&(a={method:"POST",Nb:{atr:this.N}},this.Sj&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),g.nF(b,a));else{var c=HR(this,a);c?g.nF(b,c):this.F.experiments.g("html5_beacon")&&!a?CF(b):g.AF(b,a)}this.aa=!0}};
GR.prototype.g=function(a){void 0==a&&(a=window.NaN);return(1*a.toFixed(3)).toString()};g.D(KR,g.L);g.h=KR.prototype;g.h.jP=function(a,b){if(!this.ma()){this.F=window.NaN;this.A.update();var c=GQ(this.A),d=NR(this,c);b&&(d.D=a);var e=400<this.J;!(1<c.length)&&c[0].isEmpty()||e||(d.o=LR(this,!0,a));d.send();this.J++}};
g.h.onError=function(a,b){if(!this.ma())this.o.onError(a,b)};
g.h.Lo=function(a){var b=this.g.g,c=this.g.videoData,d={ns:b.ib,el:gO(c,b),eurl:b.pa,fmt:c.Oa?oJ(c.Oa):0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.g,noflv:1,st:this.g.o(),video_id:c.videoId,metric:a};if(b.experiments.g("legacy_autoplay_flag")?b.ba:c.Ah)d.autoplay="1";"heartbeat"==a&&(d.tpmt=FQ(this.A));g.Ba(d,b.o);PR(this,g.Pg("//www.youtube.com/live_204",d))};
g.h.fb=function(){};
g.h.W=function(){KR.Z.W.call(this);g.YE(this.F);this.F=window.NaN;var a=this.A;g.XE(a.F);a.F=window.NaN};g.p(TR,OJ);g.h=TR.prototype;g.h.Za=function(){return XV(this.app)};
g.h.lz=function(a,b,c,d,e){return Mqa(this.app,a,b,c,d,e)};
g.h.oL=function(a,b,c){AN(this.app.g.G,a,{Sh:b,ak:c})};
g.h.qL=function(a,b){S1(this.app,a,b||this.playerType)};
g.h.ll=function(a){return Fqa(this.app,a)};
g.h.eo=function(a,b,c,d){O1(this.app,a,c||this.playerType,b,d)};
g.h.zz=function(a,b,c){var d=this.app;b=b||this.playerType||1;c=c||!1;d.ra.get(b+GN(a))||(a=new g.aQ(a),Jqa(d,a,b,c))};
g.h.Aj=function(a,b){W1(this.app,a,b)};
g.h.ol=function(a){Lqa(this.app,a)};
g.h.ie=function(a,b,c){Qqa(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.h.LL=function(a){if(a){var b=this.getPlaylistId();if(!b||b==a.list){var c=a.video;(b=this.app.C)?this.app.I.isFullscreen()&&((c=c[b.ce()])&&c.encrypted_id!=b.dc().videoId||(a.index=b.ce())):D1(this.app,{list:a.list,index:a.index,playlist_length:c.length});eS(this.app.C,a);this.za("onPlaylistUpdate")}}else a=this.app,E1(a),a.o.za("onPlaylistUpdate")};
g.h.KL=function(){Zra()};
g.h.ML=function(a,b){var c=g.ZV(this.app,this.playerType||1);c&&c.g.ng(a,b)};
g.h.getPlayerResponse=function(){var a=g.ZV(this.app,this.playerType);return a?a.g.getPlayerResponse():null};
g.h.getStoryboardFormat=function(){return A1(this.app).getStoryboardFormat()};
g.h.tL=function(){var a=this.app.g;return{sc:a.sc,Hb:a.Hb}};
g.h.ga=function(){var a=OJ.prototype.ga.call(this),b=g.ZV(this.app,this.playerType);b&&(b=b.g,a.backgroundable=b.backgroundable,a.cpn=b.clientPlaybackNonce,a.isLive=b.Ba,a.itct=b.Qn,a.paidContentOverlayText=oQ(b),a.paidContentOverlayDurationMs=pQ(b));return a};
g.h.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):OJ.prototype.getCurrentTime.call(this)};
g.h.getDuration=function(a){return a?this.app.getDuration(a):OJ.prototype.getDuration.call(this)};
g.h.th=function(){if(3==this.Za())return g.YV(this.app.B).hM();var a=A1(this.app),b=g.ZV(this.app),c=this.app.Rd(),d=a.clipEnd;a=a.clipStart;var e=this.getCurrentTime(),f=this.getDuration(),k=MV(b),l=b.isPeggedToLive(),m=g.ZV(this.app,void 0),n;m?(m.o&&(n=$Q(m.o)),n=0<=n?n:m.getCurrentTime()):n=0;return{allowSeeking:c,clipEnd:d,clipStart:a,current:e,displayedStart:-1,duration:f,ingestionTime:k,isPeggedToLive:l,loaded:n,seekableEnd:KV(b,!0),seekableStart:b.Kc()}};
g.h.ys=function(a){return Aqa(this.app,a)};
g.h.pL=function(a){return!!AK().canPlayType(a)};
g.h.Az=function(a,b){var c=g.ZV(this.app,this.playerType);if(c){b=b||a;var d=BJ(a,b,!0);g.sH("yt-player-quality",b,2592E3);GV(c,"m",d)}};
g.h.sL=function(){return sQ(A1(this.app),this.app.getCurrentTime())};
g.h.wi=function(a){var b=this.app,c=g.ZV(b,this.playerType);c&&b.g.Jb.has(a.toString())&&c.D&&(b=MR(c.D,"engage"),b.A=a,b.send(void 0))};
g.h.ql=function(a,b,c){var d=this.app.B.A;d&&d.Vl()&&d.xu(a,b,c)};
g.h.wL=function(a,b){var c=this.app.B.F;c&&c.ea&&ypa(c.ea,a,b)};
g.h.sh=function(){var a=g.ZV(this.app,this.playerType);return a?a.ws():A1(this.app).bn};
g.h.Bs=function(a){3==this.Za()&&g.YV(this.app.B).sl("control_set_audio_track",a);var b=g.ZV(this.app,this.playerType),c;if(c=b)if(c=!b.ma()&&!g.W(b.A,128)&&!!b.g.tb.g){c=b.B;if(c.ma())a=!0;else{var d=c.F;a=a.id;d.F="m";d.B=d.G.g[a];d.N=d.B;c.X("audioformatchange",new fS(d.N,d.o,d.F));c.o&&!c.o.g.remove?a=!1:(QT(c),mT(c.g),mT(c.B),fU(c),a=!0)}c=!a}c&&(DV(b),BV(b))};
g.h.zs=function(){var a=g.ZV(this.app,this.playerType);return a.g.tb?a.g.tb.audioTracks:[]};
g.h.uL=function(){var a=g.ZV(this.app,this.playerType);return a&&a.g.Oa?g.FJ(HU(a.ra,a.g)):"unknown"};
g.h.GL=function(a,b){Rqa(this.app,a,b)};
g.h.rL=function(){var a=this.app.B.D;a&&a.TH()};
g.h.JL=function(){var a=this.app.B.F;a&&(a.sa=!1,a.Lg())};
g.h.xL=function(){var a=this.app.B.F;a&&(a.sa=!0,a.Lg())};
g.h.co=function(){return this.app.il()};
g.h.IL=function(){return!0};
g.h.yz=function(a){a=g.UZ(this.app.G,a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.h.FL=function(a){this.app.g.enableSafetyMode=a};
g.h.BL=function(a){aG();Y1(this.app,a?2:0)};
g.h.lq=function(){var a=this.app.B.o;a&&a.C&&a.destroy();(a=g.ZV(this.app))&&JV(a);(a=this.app.B.I)&&a.jK()&&g.WV(this.app.I,!0)};
g.h.ag=function(){var a=this.app.g;!a.experiments.g("disable_new_pause_state3")&&pO(a)&&"blazer"!=a.g?this.lq():OJ.prototype.ag.call(this)};
g.h.Hx=function(){return NV(g.ZV(this.app,this.playerType),!0)};
g.h.fo=function(a){this.app.B.g.bu(a,!0)};
g.h.ti=function(){var a=this.app.B.g;return a?a.Tq():null};
g.h.As=function(){this.app.B.g.cC()};
g.h.yL=function(){var a=g.ZV(this.app,this.playerType);if(!a)return!1;a=a.g;return!!a&&a.ed()&&!!a.Oa&&a.Oa.video.isAccelerated&&a.Oa.video.A};
g.h.isPeggedToLive=function(){return this.app.isPeggedToLive()};
g.h.DL=function(a){var b=this.app;b.yc=a;b.o.X("minimized")};
g.h.jl=function(a){return K1(this.app,a)};
g.h.vL=function(){var a=this.app.B.B;if(!a)return{};a=a.Kz();return"Spherical"!=a.shader&&"Spherical3D"!=a.shader?{}:{yaw:g.Yc(180*(a.yaw||0)/Math.PI,360),pitch:180*(a.pitch||0)/Math.PI}};
g.h.HL=function(a){var b=this.app.B.B;if(b){var c={shader:"Spherical"};g.qa(a.yaw)&&!(0,window.isNaN)(a.yaw)&&(c.yaw=g.Yc(a.yaw,360)*Math.PI/180);g.qa(a.pitch)&&!(0,window.isNaN)(a.pitch)&&(c.pitch=g.Xc(a.pitch,-90,90)*Math.PI/180);b.Lz(c)}};
g.h.AL=function(a){var b=this.app;b.g.Vg=a;b.F&&(a=b.F,a.D&&g.EQ(a.D.A),b.g.J&&Sqa(b))};
g.h.X=function(a,b){for(var c=1;c<arguments.length;++c);this.app.g.Hb&&("videodatachange"==a||"audiotrackchanged"==a||"resize"==a||"cardstatechange"==a)&&this.app.aa.X.apply(this.app.aa,arguments);this.app.V.X.apply(this.app.V,arguments)};
g.h.za=function(a,b){this.app.aa.X.apply(this.app.aa,arguments);this.app.V.X.apply(this.app.V,arguments)};
g.h.zL=function(){};
g.h.setVolume=function(a,b){SJ(this,a,b)};
g.h.mute=function(a){TJ(this,a)};
g.h.cg=function(a){UJ(this,a)};
g.h.kK=function(){return this.app.ha};
g.h.nl=function(a){if("annotations_module"==a){var b=this.app.B.A;b&&!b.loaded&&b.load()}OJ.prototype.nl.call(this,a)};
g.h.bo=function(a){if("annotations_module"==a){var b=this.app.B.A;b&&b.loaded&&b.unload()}OJ.prototype.bo.call(this,a)};
g.h.Cd=function(a,b,c){if(!b)return null;var d=this.app.B;switch(a){case "ad":return(c=d.o)&&c.zD&&c.zD(b);case "remote":return(a=g.YV(d))&&a.gM(b,c);case "unplugged":return(a=g.X(d.T).Aa?d.C:null)&&a.A(b,c);case "spacecast":return(c=d.N)&&c.C(b);case "annotations_module":return(a=d.A)&&a.xU(b,c);case "creatorendscreen":return(a=d.G)&&a.Y(b,c)}return OJ.prototype.Cd.call(this,a,b,c)};
g.h.si=function(a){var b=this.app.B;switch(a){case "ad":return(b=b.o)&&b.IU&&"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ");case "remote":return g.YV(b)&&["casting","receivers","currentReceiver","quickCast"];case "annotations_module":return(b=b.A)&&b.yU();case "unplugged":return(g.X(b.T).Aa?b.C:null)&&["settingsMenuShown","hideSettingsMenu","showSettingsMenu"]}return a?OJ.prototype.si.call(this,a):(a=OJ.prototype.si.call(this),b.o&&a.push("ad"),
g.YV(b)&&a.push("remote"),b.A&&a.push("annotations_module"),b.G&&a.push("creatorendscreen"),g.X(b.T).Aa&&b.C&&a.push("unplugged"),a)};
g.h.xz=function(){var a=this.app.G.Xa();return{width:a.width,height:a.height}};
g.h.CL=function(a){var b=this.app.G;b.I=HN(a,!0);b.qg()};
g.h.ZT=function(){var a=this.app.B.F;a&&a.B.jc(2,!0)};g.p(UR,TR);g.h=UR.prototype;g.h.fd=function(){Q1(this.app,!0,this.playerType);IZ(this.app,this.playerType)};
g.h.qd=function(){KZ(this.app,this.playerType)};
g.h.ie=function(a,b,c){Q1(this.app,!0,this.playerType);var d=this.app,e=this.playerType;LZ(d,d.getCurrentTime()+a,b,c,e)};
g.h.tc=function(a,b){Q1(this.app,!0,this.playerType);LZ(this.app,a,b,void 0,this.playerType)};
g.h.ag=function(){Pqa(this.app)};VR.prototype.reset=function(){CP(this.g)};
VR.prototype.o=function(a,b){g.EP(a,b,this.g)};
VR.prototype.info=function(a,b){g.FP(a,b,this.g)};XR.prototype.toString=function(){return this.type+this.id};g.D(g.$R,g.xG);g.h=g.$R.prototype;g.h.hasNext=function(a){return this.loop||!!a||this.gc+1<this.qh};
g.h.Rf=function(a){return this.loop||!!a||0<=this.gc-1};
g.h.dc=function(a,b){var c=void 0!=a?a:this.gc;c=this.La&&c in this.La?this.La[this.Vd[c]]:null;var d=null;c&&(b&&(c.autoplay="1"),d=new g.aQ(c),d.startSeconds=this.startSeconds||d.clipStart||0,this.listId&&(d.playlistId=this.listId.toString()));return d};
g.h.setShuffle=function(a){this.DC=a;a=this.Vd&&null!=this.Vd[this.gc]?this.Vd[this.gc]:this.gc;this.Vd=[];for(var b=0;b<this.La.length;b++)this.Vd.push(b);this.gc=a;this.Wn++;if(this.DC){a=this.Vd[this.gc];for(b=1;b<this.Vd.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.Vd[b];this.Vd[b]=this.Vd[c];this.Vd[c]=d}for(b=0;b<this.Vd.length;b++)this.Vd[b]==a&&(this.gc=b);this.Wn++}this.X("shuffle")};
g.h.bc=function(a,b){b=b||"hqdefault.jpg";var c=this.Zj[b];if(c||a.I||"sddefault.jpg"==b||"hq720.jpg"==b||"maxresdefault.jpg"==b)return c;if(this.LC.length)return lO(a,this.LC[0],b)};
g.h.ce=function(){return this.gc};
g.h.getLength=function(){return this.qh};
g.h.Ck=function(a){if(a&&(a=a.videoId,!this.La[this.gc]||this.La[this.gc].video_id!=a))for(var b=0;b<this.La.length;b++)if(this.La[b].video_id==a){this.gc=b;break}};
g.h.onReady=function(a){this.Il=a;this.Tc&&g.$E(this.Il,0)};
g.h.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.h.Bn=function(a){return a.getVideoUrl(this.dc().videoId,this.getPlaylistId())};
g.h.W=function(){this.Il=null;g.Ze(this.La);g.$R.Z.W.call(this)};gS.prototype.forEach=function(a){for(var b=this.o+1;b<this.g.length;b++)a(this.g[b]||0);for(b=0;b<=this.o;b++)a(this.g[b]||0)};
gS.prototype.sb=function(){var a=[];this.forEach((0,g.A)(a.push,a));return a};
gS.prototype.clear=function(){for(var a=this.g.length,b=0;b<a;b++)this.g[b]=0;this.o=this.g.length-1};kS.prototype.reset=function(){this.N=mS(this);this.F=window.NaN;this.J=0;this.g=new jS(0,0,null);this.B=8;this.D=[];this.A=[];this.C=this.G=window.NaN;this.o=this.I=0};
kS.prototype.process=function(a){if(this.D.length){if(pS(this)&&this.D.length+a.byteLength<this.B){qS(this,a,0);return}var b=this.D.length,c=new window.Uint8Array(b+a.byteLength);c.set(this.D,0);c.set(new window.Uint8Array(a.buffer,a.byteOffset,a.byteLength),b);this.D=[];a=new window.DataView(c.buffer)}for(b=0;b<a.byteLength;){c=a.byteLength-b;var d=window.NaN;if(pS(this)){if(c<this.B){qS(this,a,b);return}switch(this.g.type){case 0:case 1836019574:case 1836019558:d=nS(this,a,b);break;case 1953653094:c=
a;d=b;this.I||(this.I=mK(rS(this,c,d),this.o));d=nS(this,c,d);break;case 1836476516:this.o=esa(rS(this,a,b));oS(this);d=this.g.size-8;break;case 1952867444:(0,window.isNaN)(this.C)||(c=rS(this,a,b),d=this.L?this.C:uK(c),this.L&&tK(c,d),(0,window.isNaN)(this.F)&&(this.F=d),this.C+=this.I,this.J+=this.I);d=this.g.size-8;break;case 1936286840:c=rS(this,a,b),d=wK(c),this.o=vK(c),oS(this),this.I=d,d=this.g.size-8}}else d=Math.min(this.B,c);this.g.offset+=d;this.B-=d;b+=d;if(0==this.B){for(;0!=this.g.type&&
this.g.offset==this.g.size&&this.g.g;)this.g.g.offset+=this.g.size,this.g=this.g.g;switch(this.g.type){case 0:case 1836019574:case 1836019558:case 1953653094:this.B=8;break;default:this.B=this.g.size-8}}}0<a.byteLength&&this.A.push(a)};var xma=0;g.h=yS.prototype;g.h.KS=function(a){this.status=a.status;a.ok?(this.C=a.body.getReader(),this.D?(this.G=a.headers,this.V(),this.B=new window.Uint8Array(zS(this)),CS(this)):this.C.cancel("Cancelling")):this.jo()};
g.h.MO=function(a){if(this.D)if((0,g.G)(),a.done)this.C=null,this.jo();else{a=a.value;this.D({timeStamp:(0,g.G)(),loaded:this.A});this.A+=a.length;var b=a.length>=(!this.Gk()&&this.N.V?1:Math.max(zS(this)/2,16384)),c=a.length+this.g>zS(this);this.J?((b||c)&&0!==this.g&&AS(this),b?this.o.push(a):BS(this,a)):(BS(this,a),this.A>=(!this.Gk()&&this.N.V?1:16384)&&AS(this));CS(this)}};
g.h.jo=function(){this.D&&(this.F=!0,this.L())};
g.h.TQ=function(){this.I=!0;this.jo()};
g.h.xi=function(a){return this.G.get(a)};
g.h.Yx=function(){return!!this.G};
g.h.Kq=function(){return this.A};
g.h.Gk=function(){return+this.xi("content-length")};
g.h.Wx=function(){return 200<=this.status&&300>this.status&&!!this.A};
g.h.Tr=function(){return!!this.o.length||this.F&&0<this.g};
g.h.AC=function(){this.o.length||AS(this);return this.o.shift()};
g.h.Bz=function(){this.o.length||AS(this);return this.o[0]};
g.h.abort=function(){this.C&&this.C.cancel("Cancelling");this.L=this.D=null};
g.h.IC=function(){return!0};
g.h.RB=function(){return this.I};g.h=DS.prototype;g.h.OL=function(a){if(!this.o){this.status=this.g.status;try{this.response=this.g.response}catch(b){}this.A=!0;this.B(a)}};
g.h.QL=function(){2==this.g.readyState&&this.C()};
g.h.PL=function(a){this.o||(this.status=this.g.status,this.D(a))};
g.h.Yx=function(){return 2<=this.g.readyState};
g.h.xi=function(a){try{return this.g.getResponseHeader(a)}catch(b){return g.TE(b),""}};
g.h.Gk=function(){return+this.xi("content-length")};
g.h.Kq=function(){return this.response.byteLength};
g.h.Wx=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
g.h.Tr=function(){return this.A&&!!this.response&&!!this.response.byteLength};
g.h.AC=function(){var a=this.response;this.response=null;return new window.Uint8Array(a)};
g.h.Bz=function(){return new window.Uint8Array(this.response)};
g.h.abort=function(){this.o=!0;this.g.abort()};
g.h.IC=function(){return!1};
g.h.RB=function(){return!1};g.h=ES.prototype;g.h.Rb=function(){return this.F};
g.h.start=function(a){JS(this,2);this.L=isa++;if(this.o){var b=this.info,c=this.o.g,d=this.o.length;this.G=b.range?new g.SK(b.range.start+c,b.range.end):UK(c,d);this.A=g.WL(this.info,this.V,this.G)}else this.G=this.info.range,this.A=g.WL(this.info,this.V);this.A.set("rn",this.L.toString());0<=a&&this.A.set("rbuf",(1E3*a).toFixed().toString());a=g.PL(this.A);try{var e=(0,g.A)(this.mS,this),f=(0,g.A)(this.pS,this),k=(0,g.A)(this.oS,this),l=(0,g.A)(this.nS,this);this.g=this.C.O&&"function"==typeof window.fetch&&
window.ReadableStream&&KS(this)?new yS(a,f,k,e,l,this.C):new DS(a,f,k,e,l)}catch(m){this.F="net.ssl";JS(this,7);return}0<this.C.L&&(this.D=g.$E((0,g.A)(this.XB,this),this.C.L))};
g.h.pS=function(){this.N=0;this.info.o.C=(0,g.ZG)();var a=HS(this);a.A=(0,g.ZG)();a.o+=1;a=this.timing;a.o=(0,g.G)();a.D=a.o;a.A=0;a.L=a.o;a.J=0;a.F&&(a.F=[]);a.Y=!1;a.aa=!1;a.C=0;a.G=aN(a.g);xS(a);a.N=(a.O-a.o)/1E3};
g.h.oS=function(a){if(!this.ma()){this.B=this.g.status;PS(this,!1);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.o&&4E12>c?c:(0,g.G)();uS(b,c,a);50>c-b.D&&(vS(b)||!b.g.policy.I)||tS(b,c,a);b=this.timing;b.A>b.fa&&b.A>b.g.policy.g&&4>this.state?JS(this,4):MS(this)&&OS(this)&&JS(this,Math.max(3,this.state))}};
g.h.nS=function(){if(!this.ma()&&!this.J&&this.g.Yx()&&this.g.xi("X-Walltime-Ms")){var a=(0,window.parseInt)(this.g.xi("X-Walltime-Ms"),10);this.J=((0,g.G)()-a)/1E3}};
g.h.mS=function(){var a=this.g;if(!this.ma()&&a){this.D&&(g.YE(this.D),this.D=window.NaN);this.B=a.status;var b=!1;if(400<=a.status)b=!0,this.F="net.badstatus";else if(a.Wx()){var c="";NS(this)&&(c=a.Bz(),2048<c.length?c="":(c=String.fromCharCode.apply(String,c),c=KL.test(c)?c:""));if(c){a=HS(this);(0,g.ZG)();a.o=0;a.wf=0;a.g=0;a=this.info;var d=this.A,e=a.o;d.g===e.A&&(e.A=QL(d,c));d.g===e.o&&(e.o=QL(d,c));a.requestId=d.get("req_id");JS(this,5)}else if(c=a.Kq(),(d=!!this.G&&this.G.length)&&d!=c||
a.RB())b=!0,this.F="net.closed";else{PS(this,!0);e=KS(this)?this.g.xi("X-Bandwidth-Est"):0;a=this.timing;d=(0,g.G)();e=e?(0,window.parseInt)(e,10):0;if(!a.Y){a.Y=!0;d=d>a.o&&4E12>d?d:(0,g.G)();uS(a,d,c);tS(a,d,c);a.I&&e?TM(a.g,a.A/e,a.A):(e=(d-a.o)/1E3,(e<=a.g.policy.A||!a.g.policy.A)&&!a.aa&&vS(a)&&TM(a.g,e,c),vS(a)&&VM(a.g,c,a.C));c=a.g;d=(d-a.o)/1E3;e=a.N;var f=a.da;c.C.g(d,a.A/d);c.F=(0,g.ZG)();f||c.o.g(1,d-e);a.B&&(a.B=!1)}a=HS(this);(0,g.ZG)();a.o=0;a.wf=0;a.g=0;this.info.o.g=0;JS(this,6)}}else b=
!0,this.F="net.connect";b&&(IS(this),(0,g.G)(),"net.connect"==this.F?(b=HS(this),b.wf+=1):(b=HS(this),b.g+=1),this.info.o.g++,JS(this,7))}};
g.h.XB=function(){this.D=window.NaN;if(!this.ma()){var a=(0,g.G)(),b=!1;if(vS(this.timing)){var c=this.timing.O;xS(this.timing);this.timing.O-c>=.8*this.C.L?(this.N++,b=this.N>=this.C.sa):this.N=0}else b=this.timing,b=5E3<a-(b.o+1E3*b.G.delay);if(b){b=this.timing;a=a>b.o&&4E12>a?a:(0,g.G)();uS(b,a,1024*b.J);c=(a-b.o)/1E3;if(!b.I)if(vS(b))b.C+=(a-b.D)/1E3,VM(b.g,b.ba,b.C);else{var d=b.g;d.D.g(1,c);UM(d);b.V=a}d=b.g;var e=b.N,f=b.da;d.C.g(c,b.A/c);d.F=(0,g.ZG)();f||d.o.g(1,c-e);XM(b.g,(a-b.D)/1E3,0);
b=HS(this);b.wf+=1;this.info.o.g+=1;LS(this);this.F="net.timeout";JS(this,7)}else this.D=g.$E((0,g.A)(this.XB,this),this.C.L)}};
g.h.ma=function(){return-1==this.state};
g.h.dispose=function(){XK(this.info.g[0])&&6!=this.state&&(this.info.g[0].na.o=!1);JS(this,-1);this.I=null;LS(this);g.YE(this.D);this.D=window.NaN};
ES.DEBUG=!1;g.p(QS,g.xG);aT.prototype.start=function(){this.o=!0};
aT.prototype.reset=function(){this.g=this.o=!1};bT.prototype.Y=function(a,b){switch(b.info.type){case 1:case 2:this.V(b);break;case 4:var c=b.info.na.Gz(b),d=b.info,e=this.g;e&&e.na==d.na&&e.type==d.type&&(d.range&&e.range?e.range.start==d.range.start&&e.range.end==d.range.end:e.range==d.range)&&e.wa==d.wa&&e.Ua==d.Ua&&e.gb==d.gb&&(this.g=g.bb(c).info);(0,g.H)(c,(0,g.A)(this.Y,this,a));break;case 3:zma(this.o,a,b)}};
bT.prototype.V=function(a){if(1==a.info.type){var b=uL(a);qJ(a.info.na.info)&&!rJ(a.info.na.info)&&(kL(new dL(b)),jL([408125543,374648427,174,224],21936,b));a.info.na.info.video&&ZL(a.info.na,b);2==a.info.na.info.containerType&&a.info.na.info.video&&lL(b)}a.info.na.lr(a)};
bT.prototype.ba=function(a){this.B=a=a.info;this.G&&this.B.g&&(this.G=!1);a.na.info.g>=this.I&&(this.I=a.na.info.g)};
bT.prototype.getDuration=function(){return this.Sa.index.wn()};IT.prototype.send=function(){g.nF(this.o,{format:"RAW",responseType:"arraybuffer",timeout:1E4,Dd:this.A,Ed:this.A,context:this});this.g=(0,g.ZG)()};
IT.prototype.A=function(a){var b={rc:a.status,lb:a.response?a.response.byteLength:0,rt:(((0,g.ZG)()-this.g)/1E3).toFixed(3),shost:g.Hg(this.o),trigger:this.D};204==a.status||a.response?this.B&&this.B(yO(b)):this.C(new g.xO("pathprobe.net",!1,b))};var rsa=1024/48E3;g.D(NT,g.L);NT.prototype.D=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){g.pb(this.o,c);var d=this.g,e=d.g;c=g.zb(e,c,d.o);0<=c&&g.ob(e,c)}}this.A()};
NT.prototype.reset=function(){this.C=this.I=!1;this.F.stop();this.g.g=[];this.o=[];this.A();this.G=null};
NT.prototype.A=function(){this.J=!0;if(!this.L){for(var a=3;this.J&&a;){this.J=!1;this.L=!0;if(this.C&&!this.I){this.F.stop();var b=this.N();g.W(b,32)&&this.O.start();for(var c=g.W(this.N(),2)?0x8000000000000:1E3*this.aa(),d=g.W(b,2),e=[],f=[],k=0;k<this.o.length;k++){var l=this.o[k];l.active&&(d?0x8000000000000>l.end:!l.contains(c))&&f.push(l)}e=e.concat(Pma(this,f));if(d)b=KT(this.g,0x7ffffffffffff),b=b.concat(Mma(this.g));else if(this.B<=c&&b.xb()&&!g.W(b,16)&&!g.W(b,32)){b=this.g;d=c;f=[];for(k=
LT(b,this.B);k<b.g.length&&!(l=b.g[k],(l.end<=d||l.contains(d))&&f.push(l),l.start>d);++k);b=f}else b=KT(this.g,c);e=e.concat(Oma(this,b));this.B=c;!this.I&&this.G&&(this.G=null);c=e;for(e=0;e<c.length;e++)b=c[e],d=b[1],1==b[0]?(d.g&&d.g.X("onEnter",d),this.V("crn_"+d.namespace,d)):(d.g&&d.g.X("onExit",d),this.V("crx_"+d.namespace,d))}this.L=!1;a--}this.N().xb()&&(a=MT(this.g,this.B),null!=a&&0x7ffffffffffff>a&&(a=(a-this.B)/this.Y(),this.F.start(a)))}};
NT.prototype.W=function(){this.G=this.g=this.o=null;NT.Z.W.call(this)};g.p(PT,g.xG);g.h=PT.prototype;g.h.initialize=function(a,b,c,d){a=a||0;var e=this.F;d=d&&d.id;e.F="i";"auto"!=IJ()&&(e.F="s");zT(e,b);Hma(e,d);e.N=e.B;Ima(e);e.o=e.g;b=GT(e);this.B=new bT(this.A,b.audio);this.g=new bT(this.A,b.video);lU(this,this.B);lU(this,this.g);this.g.o.O=this.B.o;this.X("videoformatchange",b);this.V=this.g.D;this.C=a;c?(this.G=!0,gU(this)):this.A.D?TT(this):(a=0==this.C,RT(this,this.g,a),RT(this,this.B,a),this.seek(this.C),ST(this,"gv"))};
g.h.resume=function(){if(this.G||this.ba)this.ba=this.G=!1};
g.h.eR=function(a){if(!this.ma()&&3<=a.state){var b=a.info.g[0].na,c=!this.fa&&b.info.video,d=!this.Y&&b.info.audio,e=Math.max(0,a.info.g[0].A-this.C);if(this.A.pa&&5<=a.state){var f=sS(a.timing),k=a.timing;f={rn:a.L.toString(),rt:f.rt,pt:f.pt,stall:f.stall,elt:f.elbowTime,elb:f.elbowBytes,rqd:k.F?k.F.join(""):""};k=f.rqd;delete f.rqd;if(k)for(var l=0;256*l<k.length;l++)this.pi("rqd",yO({rn:f.rn,ix:l,d:k.substring(256*l,256*(l+1))}));this.pi("rqs",yO(f))}if(5<=a.state&&5==a.info.g[0].type)a.dispose();
else{if(5==a.state)c?ST(this,"vrr"):d&&ST(this,"arr"),a.start(e);else if(6==a.state||this.A.O&&3<=a.state&&!(5<=a.state)){c?(this.fa=a.A?g.PL(a.A):"",jH(4)):d&&(this.Y=a.A?g.PL(a.A):"");b=b.info.video?this.g:this.B;this.D.o&&(b.D=!1,a.J&&this.Aa.g(1,a.J));if(c=XK(a.info.g[0]))c=a.info,c=!!XK(c.g[c.g.length-1]);c&&(0,g.H)(a.o.A,b.V,b);this.je()}else if(4==a.state)this.je(),c&&jH(4);else if(7==a.state&&IS(a)){d=(b.info.video&&1<b.B.g||410==a.B||500==a.B||503==a.B)&&10&&!DT(this.F);e=GS(a);c=b.info.video?
this.g:this.B;d&&(e.stun="1");kU(this,!1,a.Rb(),e);if(this.ma())return;d&&(d=this.F,b=b.info,DT(d),d.da=b,d.V=(0,g.ZG)(),d.O=-1,zT(d,d.D));for(b=0;b<c.A.length&&a!==c.A[b];b++);if(b==c.A.length)iT(c,a);else{for(;b<c.A.length;)iT(c,c.A.pop());3==a.info.g[0].type?(a.o&&a.o.B?(b=a.o.B,b=new WK(b.type,b.na,b.range,b.wa,b.startTime+b.duration,0,b.Ua+b.gb,0,!1)):(b=a.info.g[0],b=new WK(b.type,b.na,b.range,b.wa,b.startTime,0,b.Ua,0,!1)),c.g=b):c.g=null}this.je()}else XK(a.info.g[0])?(b.D=!0,this.je()):kU(this,
!0,"net.retryexhausted",GS(a));this.A.Na&&5<=a.state&&IS(a)&&SL(a.info.o,this.Fa)&&(b=zL(this.Fa,HL(a.info.o.A)),c=this.A.Na*Math.pow(1.6,b.o),b.g||b.A+c>(0,g.ZG)()||(a=a.info,a.range?(b=UK(a.range.start,Math.min(4096,a.range.length)),a=new WK(5,a.g[0].na,b),a=new VL([a]),a.C=!1):a=null,a&&dU(this,a)))}}};
g.h.je=function(){this.Ka=window.NaN;this.Na.stop();XT(this);if(this.o&&LK(this.o)&&!NK(this.o))if(this.D.isLive)(0,window.isNaN)(this.I)?(this.I=this.C+3600,this.o.A.duration=this.I):this.I<=this.C+1800&&(this.I=Math.max(this.I+1800,this.C+3600),this.o.A.duration=this.I);else{var a=Math.max(this.B.getDuration(),this.g.getDuration());(!(0,window.isFinite)(this.I)||this.I!=a)&&0<a&&(this.I=this.o.A.duration=a)}if(!this.ma())if(zM(this.D)&&3==this.D.F)kU(this,!0,"manifest.net.retryexhausted",{rc:this.D.N.toString()});
else if(this.D.isLive&&(tT(this.g)||tT(this.B)))this.X("seekplayerrequired",window.Infinity);else if("prerender"==window.document.webkitVisibilityState)gU(this);else if(XT(this),eT(this.g,this.C),!this.ma()&&(eT(this.B,this.C),!this.ma())){if(this.D.o){uT(this.g);uT(this.B);var b=-1!=this.g.C;a=-1!=this.B.C;if(!b||!a)if(b=!b&&RS(this.g.o),a=!a&&RS(this.B.o),b||a){a=b?this.g:this.B;b=b?this.B:this.g;var c=RS(a.o).info.wa;if(-1!=b.C&&b.C!=c){var d=b.C;lT(a,0);hT(a,window.Infinity);a.g.wa=d-1;kU(this,
!1,"qoe.avsync",{start:"1",target:b.C,actual:c})}else a.C=c}(a=RS(this.g.o))&&a.o&&(this.ra=RS(this.g.o).o.D)}this.A.D&&(this.B.Sa.o&&this.g.Sa.o||(!this.G||bN(this.L)?TT(this):gU(this)));if(this.o&&!ZT(this,this.B,this.o.g)&&!ZT(this,this.g,this.o.o)&&!Rma(this)){if(this.N){a=!!this.N.g;b=this.N;var e=this.B;c=OQ(this.o.o.buffered);if(b.g)b:if((d=(0,g.G)()/1E3-b.B<b.o.ob)&&!b.g.ma()&&!(5<=b.g.state)&&wS(b.g.timing)<b.A)b=window.NaN;else{e=JT(b,b.C,b.D);if(!(0,window.isNaN)(e)&&((0,window.isNaN)(c)||
c<e)){if(d){b.F=!0;b=window.NaN;break b}e=window.NaN}b.g=null;b.C=null;b.D=null;b.A=window.NaN;b.B=window.NaN;b.F=!1;b=e}else{if((c=RS(e.o))&&(d=c.o)&&d.D&&d.C&&(e=e.A.length?e.A[0]:null)&&3<=e.state&&7!=e.state&&MS(e)&&0==e.info.A&&JT(b,d,c.info)){var f=b.o.qm*rsa;b.g=e;b.C=d;b.D=c.info;b.A=f;b.B=(0,g.G)()/1E3}b=window.NaN}c=!!this.N.g;a!=c&&this.pi("ssr",c?"start":"stop."+b);b&&this.X("seekplayerrequired",b,!0)}(a=iU(this,this.g,this.o.o,null))&&!this.ka&&(this.ka=(0,g.G)(),ST(this,"vda"),g.EP("vda",
void 0,"video_to_ad"),this.ha&&jH(4));if(!MK(this.o)){b=NQ(this.o.o.buffered,this.C+cU);if(!(0,window.isNaN)(b)||gT(this.g)||!this.o.g.buffered.length){if(gT(this.g)||this.A.Pg)b=window.NaN;b=iU(this,this.B,this.o.g,b);a=a||b;b&&!this.ha&&(this.ha=(0,g.G)(),ST(this,"ada"),g.EP("ada",void 0,"video_to_ad"),this.ka&&jH(4))}gT(this.g)&&gT(this.B)&&LK(this.o)&&!NK(this.o)&&(b=this.o,LK(b)&&b.A.endOfStream(),b=this.L,HJ(aN(b)),b.B=(0,g.ZG)());a&&!PK(this.o)&&fU(this)}}QT(this);this.A.D||(RT(this,this.g,
!1),RT(this,this.B,!1));this.g.Sa.D||this.B.Sa.D?kU(this,!0,"net.retryexhausted",{metadata:"1",video:this.g.Sa.D?"1":"0",audio:this.B.Sa.D?"1":"0"}):(aU(this,this.g,this.B)&&eU(this,this.g,this.B),aU(this,this.B,this.g)&&eU(this,this.B,this.g),this.A.Qg&&this.aa&&!this.G&&bN(this.L)&&(mU(this,this.aa,"cms"),this.aa="",this.A.Mh&&(a=FL(JL(this.B.Sa.B.B,0)),mU(this,a,"redir"),mU(this,a.replace("redirector.googlevideo.com","www.youtube.com"),"www-redir"))),this.D.B&&gU(this),this.N&&(a=this.N,a.g?(b=
0,a.g.ma()||5<=a.g.state||(b=1E3*(a.A-wS(a.g.timing))),a=0<b?b+1:a.F?Math.max(0,1E3*(a.B+a.o.ob)-(0,g.G)()):0):a=window.NaN,(0,window.isNaN)(a)||this.Na.Qd(a)))}};
g.h.po=function(a){a=(a=a?this.B:this.g)&&a.B;kU(this,!0,"fmt.unplayable",a?$K(a):void 0)};
g.h.cQ=function(a){kU(this,!0,"fmt.unparseable",a)};
g.h.gQ=function(a){kU(this,!1,"qoe.avsync",a)};
g.h.dQ=function(a,b){this.D.o&&jU(this,b,a==this.g)};
g.h.eQ=function(a,b){if(this.D.o){var c=this.D,d=a==this.g,e;for(e in c.g)if(!!c.g[e].info.video==d){var f=c.g[e].index,k=bM(f,b.wa);0<=k&&f.segments.splice(k,1)}}};
g.h.fQ=function(a,b){this.D.o&&jU(this,b,a==this.g)};
g.h.bQ=function(a,b){if(this.g.Sa.index.Dc()<=b){var c=this.D;c.L.push(a);c.X("cuepointsadded")}};
g.h.seek=function(a){if(this.ma())return cg();if(this.g.D||this.B.D)return bg();XT(this);this.Ya=(0,g.ZG)();QT(this,a);var b=this.g.g,c=nU(this,this.g,a,this.o&&this.o.o),d=nU(this,this.B,c,this.o&&this.o.g);this.C=Math.max(a,c,d);this.O=!0;this.D.o&&this.A.ha&&(c=this.g.g.wa,cM(this.g.Sa.index,c)||b&&b.wa==c||(this.V=!0));fU(this);return bg(a)};
g.h.W=function(){WT(this);this.B&&(jT(this.B),jT(this.g));g.XE(this.Ra);g.YE(this.da);this.Na.dispose();g.xG.prototype.W.call(this)};
g.h.Dz=function(){return this.Aa.o()||0};
g.h.pi=function(a,b,c){this.X("ctmp",a,b,void 0===c?!1:c)};
var cU=2/24;g.p(qU,g.L);g.h=qU.prototype;g.h.VL=function(a){this.F.call(this.A,new window.Uint8Array(a.message))};
g.h.WL=function(){this.J.call(this.A,this.g.keyStatuses)};
g.h.NA=function(a,b){g.TE(b);var c=a;b instanceof window.DOMException&&(c+=";n."+b.name+";m."+b.message);this.D.call(this.A,c)};
g.h.kB=function(a){this.F.call(this.A,a.message)};
g.h.jB=function(a){if(this.o){var b=this.o.error.code;a=this.o.error.systemCode}else b=a.errorCode&&a.errorCode.code,a=a.systemCode;this.D.call(this.A,";c."+b+";sc."+a)};
g.h.iB=function(){this.I.call(this.A)};
g.h.update=function(a){if(this.g)return this.g.update(a).then(null,UE((0,g.A)(this.NA,this,"t.u")));this.o?this.o.update(a):this.C.addKey?this.C.addKey(this.L.o,a,this.G,this.sessionId):this.C.webkitAddKey(this.L.o,a,this.G,this.sessionId);return JF()};
g.h.W=function(){this.g&&this.g.close();this.C=null;g.L.prototype.W.call(this)};g.p(tU,g.L);tU.prototype.J=function(a){var b=vU(this,a);b&&b.kB(a)};
tU.prototype.I=function(a){var b=vU(this,a);b&&b.jB(a)};
tU.prototype.G=function(a){(a=vU(this,a))&&a.iB()};
tU.prototype.W=function(){this.o=null;g.L.prototype.W.call(this)};g.p(xU,g.L);g.h=xU.prototype;g.h.Hz=function(a){this.N=a};
g.h.TL=function(a){if(!this.ma()){this.J||(g.EP("drm_gk_f"),this.J=!0,this.o.X("newsession",this));if(HM(this.B)){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=(new window.DOMParser).parseFromString(b,"text/xml").querySelector("Challenge");a=new window.Uint8Array(ge(a.childNodes[0].data))}if(IM(this.B))for(b=g.ee(a),a=new window.Uint8Array(new window.ArrayBuffer(b.length)),c=0;c<b.length;c++)a[c]=b.charCodeAt(c);a=new Uma(a,++this.O);this.nC(a)}};
g.h.RL=function(){this.ma()||this.D||(this.o.X("sessionready"),this.D=!0)};
g.h.UL=function(a){var b=this;this.ma()||(a.forEach(function(a,d){var c=HM(b.B)?d:a,f=g.ee(new window.Uint8Array(HM(b.B)?a:d),!0).replace(/[\.]{1,2}$/,"");b.g[f]?b.g[f].status=c:b.g[f]={type:"",status:c}}),this.o.X("keystatuseschange",this))};
g.h.nC=function(a){g.EP("drm_net_s");a={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,Vb:(0,g.A)(this.OP,this,a),onError:(0,g.A)(this.aB,this,a)};var b=this.I;this.N&&(b=Ug(b,"access_token",this.N));g.nF(b,a)};
g.h.OP=function(a,b){if(!this.ma())if(0!=b.status&&b.response){g.EP("drm_net_r");var c=new window.Uint8Array(b.response);if(c=Wma(c))if(0!=c.statusCode)yU(this,"drm.auth",!0,"t.f;c."+c.statusCode,g.KQ(c.statusCode));else{g.EP("drm_kr_s");var d=null,e=c.headers["Heartbeat-Url"];e&&(d=new Tma(e,(0,window.parseInt)(c.headers["Heartbeat-Interval-Secs"],10)||60,(0,window.parseInt)(c.headers["Heartbeat-Num-Retries"],10)||4));d&&this.o.X("newlicense",d);!(d=c.headers["Authorized-Format-Types"])||HM(this.B)&&
!this.Y||(this.G=d.split(","),rU(this.A)||this.o.X("keystatuseschange",this));c.headers["Key-Ids"]&&(this.g=$ma(c.headers["Key-Ids"]));IM(this.B)&&(c.message=new window.Uint8Array(ge(String.fromCharCode.apply(null,c.message))));this.A.update(c.message).then(function(){g.EP("drm_kr_f")});
this.D&&(this.L=(0,g.ZG)())}else yU(this,"drm.net",!0,"t.p","YTP_ERROR_SERVER_ERROR")}else this.aB(a,b)};
g.h.SL=function(a){this.ma()||yU(this,"drm.keyerror",!0,"t.s"+a)};
g.h.aB=function(a,b){var c=!1;if(3<=a.g.o||this.V&&36E4<(0,g.ZG)()-this.L){var d="drm.net.retryexhausted";c=!0}else d=b.status?"drm.net.badstatus":"drm.net.connect";yU(this,d,c,"t.r;c."+b.status);if(this.V&&this.D?0:!c&&this.O==a.number)d=a.g.getValue(),d=new g.Ht((0,g.A)(this.nC,this,a),d),g.M(this,d),d.start(),d=a.g,d.g=Math.min(d.C,d.g*d.F),d.A=Math.min(d.C,d.g+(d.D?Math.round(d.D*(Math.random()-.5)*2*d.g):0)),d.o++};
g.h.W=function(){this.o=null;g.L.prototype.W.call(this)};zU.prototype.get=function(a){a=this.Ck(a);return-1!=a?this.values[a]:null};
zU.prototype.remove=function(a){a=this.Ck(a);-1!=a&&(this.keys.splice(a,1),this.values.splice(a,1))};
zU.prototype.set=function(a,b){var c=this.Ck(a);-1!=c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
zU.prototype.Ck=function(a){return g.fb(this.keys,function(b){return g.Db(a,b)})};g.p(BU,g.xG);g.h=BU.prototype;g.h.qP=function(a){a=new sU(new window.Uint8Array(a.initData),a.initDataType);EU(this,a,!0)};
g.h.rQ=function(a){EU(this,new sU(a.initData,a.contentType),!0)};
g.h.ZP=function(){this.ma()||(this.I=!0,DU(this))};
g.h.wO=function(a){if(!this.ma()){g.TE(a);var b="t.a";a instanceof window.DOMException&&(b+=";n."+a.name+";m."+a.message);this.X("licenseerror","drm.unavailable",!0,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
g.h.uQ=function(a){this.ma()||!a||this.V||(this.V=a,this.X("heartbeatparams",a))};
g.h.vQ=function(){this.ma()||(this.o.shift(),DU(this))};
g.h.rR=function(){if(GM(this.g)&&(this.aa--,0==this.aa)){var a=this.C;a.o.msSetMediaKeys(a.A)}};
g.h.XL=function(a){if(!this.ma()){var b=[];if(rU(a.A))for(var c in a.g)"usable"==a.g[c].status&&b.push(a.g[c].type);else b=a.G;a=b;a=g.jb(a,"UHD2")?"highres":g.jb(a,"UHD1")?"hd2160":g.jb(a,"HD")?"hd1080":g.jb(a,"HD720")?"hd720":"large";GJ(this.G,a)||(this.G=BJ("auto",a,!1),this.X("qualitychange"))}};
g.h.W=function(){this.g.A&&this.J.setMediaKeys(null);this.J=null;this.o=[];for(var a=g.la(this.A.values),b=a.next();!b.done;b=a.next())b.value.dispose();a=this.A;a.keys=[];a.values=[];this.B&&(this.B.dispose(),this.B=null);this.D=null;g.xG.prototype.W.call(this)};FU.prototype.C=function(){var a=g.x("yt.abuse.botguardInitialized");return a&&a()?(a=g.x("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};
FU.prototype.D=function(a){return"r3a="+Math.floor(this.g.lengthSeconds%Za(a.c3a))};
FU.prototype.B=function(a){a=Za(a.c);var b=g.x("yt.abuse.dclkstatus.checkDclkStatus")();return"r6a="+(a^b)};IU.prototype.then=function(a,b){return this.PB.then(a,b)};
IU.prototype.resolve=function(a){this.g(a)};
IU.prototype.reject=function(a){this.o(a)};
g.p(JU,g.xG);JU.prototype.getCurrentTime=function(){return(0,window.isNaN)(this.A)?this.o?this.o.getCurrentTime():window.NaN:this.A};g.D(NU,TQ);g.h=NU.prototype;g.h.oa=function(){return this.g};
g.h.Pd=function(){return this.g.src};
g.h.Uc=function(){try{return 0<=this.g.playbackRate?this.g.playbackRate:1}catch(a){return 1}};
g.h.Zf=function(a){this.Uc()!=a&&(this.g.playbackRate=a);return a};
g.h.getCurrentTime=function(){return this.g.currentTime};
g.h.getDuration=function(){return this.g.duration};
g.h.load=function(){var a=this.g.playbackRate;this.g.load();this.g.playbackRate=a};
g.h.pause=function(){this.g.pause()};
g.h.play=function(){var a=this.g.play();a&&a.then&&a.then(void 0,function(a){1E-4>Math.random()&&g.TE(a)})};
g.h.Rb=function(){return this.g.error?this.g.error.code:null};
g.h.setSize=function(a){return g.Fh(this.g,a)};
g.h.getVolume=function(){return this.g.volume};
g.h.setVolume=function(a){CK();this.g.volume=a};
g.h.gV=function(a){this.dispatchEvent(new cR(this,a.type,a))};
g.h.setAttribute=function(a,b){this.g.setAttribute(a,b)};
g.h.removeAttribute=function(a){this.g.removeAttribute(a)};
g.h.hasAttribute=function(a){return this.g.hasAttribute(a)};
g.h.W=function(){for(var a in this.B)this.g.removeEventListener(a,this.B[a]);NU.Z.W.call(this)};g.D(PU,g.L);g.h=PU.prototype;g.h.start=function(){this.o.start()};
g.h.stop=function(){this.o.stop()};
g.h.Cb=function(a,b,c){this.A[a]=b;this.g[a]=new RU(!!c)};
g.h.clear=function(){for(var a in this.g)this.g[a].clear()};
g.h.YS=function(){for(var a in this.A)this.g[a].update(this.A[a]());this.o.start()};
RU.prototype.update=function(a){this.A?(hS(this.g,a-this.o||0),this.o=a):hS(this.g,a)};
RU.prototype.clear=function(){this.g.clear();this.o=0};g.p(WU,g.xG);g.h=WU.prototype;g.h.W=function(){g.YE(this.fa);g.XE(this.ub);g.YE(this.Jb);var a=SU();a&&window.document.removeEventListener(a,this.Ng,!1);ZU(this);$U(this);XU(this);uV(this);g.Ze(this.ha,this.g);this.ba=null;this.Ya=!1};
g.h.tw=function(){if(this.g.Sb())g.W(this.A,128)||(this.g.Sb(),this.uc=this.Fa.g=!0,4!=this.Id&&(this.da=g.sb(this.g.oe)),g.lQ(this.g,this.C,this.Ka).then(this.lx,this.lx,this),this.Kd("loudness",""+this.g.relativeLoudness.toFixed(3),!0));else{var a=this.g;if(a.Ba&&a.adaptiveFormats&&!a.Xx&&(g.wQ(a)||this.C.experiments.g("html5_manifestless_always"))){a=this.g;var b=this.C.experiments;if(!gQ(a)){a.Xx=!0;var c=rM(kQ(a,a.adaptiveFormats),a.bd,a.lengthSeconds,!0,b);!b.g("html5_manifestless_vp9")&&Zla(c)||
a.pr?c.dispose():(a.wk=!1,jQ(a,c),c.subscribe("cuepointsadded",a.qw,a),qM(a.ua)&&(a.vj=!0));iQ(a)}}else if(this.g.wk)a=this.g,b=this.C.experiments,a.rh=!0,a.wk=!1,KL.test(a.ze)||g.TE(Error("DASH MPD Origin invalid: "+a.ze),"WARNING"),c=a.ze,c=g.Pg(c,{mpd_version:b.o("dash_manifest_version")||4}),a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||!b.g("html5_live_disable_dg_pacing")||(c=g.Pg(c,{pacing:0})),xM(new pM(c,b,a.Ba),c).then(a.hP,a.gP,a),g.EP("mrs");else if(this.g.vj)this.D&&(a=this.D.o,
FR(a,"protected"),a.g.videoData.Uf?a.ka():a.g.videoData.subscribe("dataloaded",a.ka,a)),a=this.g,b=this.C.L,c=this.C.experiments,qM(a.ua),b=new MM(jN(b,a.ua),c),g.M(a,b),a.vj=!1,a.rh=!0,a=(0,g.A)(a.sK,a),b.B=a,LM(b.C)?b.D():Yka(b);else if(!this.g.rh&&this.uc){a:{b=this.C;a=this.g;var d=this.ob.Xa(),e=this.Pg(),f=this.C.da;switch(a.zh){case 38:b=a.videoId.indexOf(":");a=g.Pg("//play.google.com/books/volumes/"+a.videoId.slice(0,b)+"/content/media",{aid:a.videoId.slice(b+1),sig:a.ZN});break a;case 30:c=
"https://docs.google.com/get_video_info";b.experiments.g("restore_nonsense_docs_behavior")&&b.baseYtUrl!=eO.prototype.baseYtUrl&&(c=b.baseYtUrl+"get_video_info");a=g.Pg(c,{docid:a.videoId,authuser:a.Bc,authkey:a.Yv,eurl:b.pa});break a;case 33:a=g.Pg("//google-liveplayer.appspot.com/get_video_info",{key:a.videoId});break a;default:c={html5:"1",video_id:a.videoId,cpn:a.clientPlaybackNonce,eurl:b.pa,ps:b.g,el:gO(a,b),hl:b.Ra,list:a.playlistId,agcid:a.Ri,aqi:a.ZG,sts:17353,lact:g.dH()},g.Ba(c,b.o),b.Og&&
(c.ecver=b.Og),b.forcedExperiments&&(c.forced_experiments=b.forcedExperiments),a.pg?(c.vvt=a.pg,a.mdxEnvironment&&(c.mdx_environment=a.mdxEnvironment)):a.oauthToken&&(c.access_token=a.oauthToken),a.adFormat&&(c.adformat=a.adFormat),b.Wg&&(c.cc_lang_pref=b.Wg),b.Xg&&2!=b.Xg&&(c.cc_load_policy=b.Xg),b.mute&&(c.mute=b.mute),a.Ug&&2!=b.Ug&&(c.iv_load_policy=a.Ug),a.Qn&&(c.itct=a.Qn),hO(b,a,f)&&(c.autoplay="1"),a.Tn&&(c.autonav="1"),a.Rr&&(c.noiba="1"),a.isMdxPlayback&&(c.mdx="1",c.ytr=a.sf),a.mdxControlMode&&
(c.mdx_control_mode=a.mdxControlMode),a.Um&&(c.ytrcc=a.Um),a.Ur&&(c.utpsa="1"),a.isFling&&(c.is_fling="1"),a.vnd&&(c.vnd=a.vnd),a.Hq&&(c.force_ad_param_ad_type="video_ad",c.force_ad_param_url=a.Hq,c.force_ad_param_break_type="1",c.force_ad_param_offset_value=0),d.width&&(c.width=d.width),d.height&&(c.height=d.height),a.Tf&&(c.splay="1"),a.ypcPreview&&(c.ypc_preview="1"),b.Ka&&(c.content_v=b.Ka),a.al&&(c.livemonitor=1),b.Bc&&(c.authuser=b.Bc),b.pageId&&(c.pageid=b.pageId),b.yc&&(c.ei=b.yc),b.Mh&&(c.ssl_stream=
"1"),b.A&&(c.iframe="1"),a.Gh&&(c.tst=a.Gh),a.contentCheckOk&&(c.cco="1"),a.racyCheckOk&&(c.rco="1"),b.Hb&&a.liveStartWalltime&&(c.live_start_walltime=a.liveStartWalltime),b.Hb&&a.Yr&&(c.live_manifest_duration=a.Yr),b.Hb&&a.playerParams&&(c.player_params=a.playerParams),b.Hb&&a.cycToken&&(c.cyc=a.cycToken),b.Hb&&a.PC&&(c.tkn=a.PC),0!=e&&(c.vis=e),b.enableSafetyMode&&(c.enable_safety_mode="1"),b.widgetReferrer&&(c.widget_referrer=b.widgetReferrer.substring(0,128)),(d=b.N.embedding_app)&&(c.embedding_app=
d),(d=b.N.developer_api_key)&&(c.developer_api_key=d),(d=g.hQ(a))&&(c.uloc=d),a.Yk&&(c.internalipoverride=a.Yk),a.innertubez&&(c.innertubez=a.innertubez),a.Ey&&(c.strpro="1"),b.Hb&&a.ai&&(c.wpid=a.ai),a=g.Pg(b.baseYtUrl+"get_video_info",c)}}b=2;this.C.isAd()&&(b=0);c=this.g;d=this.C.Ta;e=this.C.experiments;f=this.C.sc;c.ma()||(c.Wq=a,c.Bt=b,c.Sj=!!d,c.Hy=!!f,e&&(c.ZB=!e.g("disable_gvi_cors"),c.Vq=e.o("html5_get_video_info_timeout_ms")||0,c.Gx=e.g("html5_get_video_info_promiseajax")),c.rh=!0,c.jC())}}};
g.h.lx=function(){if(fQ(this.g)){if(this.g.Ba){this.N=new rma;this.O=new tma(this.g,this.C.experiments);if(this.D){var a=iS(this.O);ER(this.D.o,a)}lV(this,KV(this,!1),!0)}this.g.tb.g&&g.HV(this);GV(this,"i");this.N&&(this.g.pd()?(a=(0,g.A)(this.B.Dz,this.B),this.N.A=a):this.g.ua&&(a=(0,g.A)(this.g.ua.NL,this.g.ua),this.N.A=a))}this.Na&&AV(this);a=this.g;a.endSeconds&&a.endSeconds>a.startSeconds&&aV(this,a.endSeconds);bV(this,"dataloaded");this.V.o?iV(this):this.Na&&cV(this,gR(gR(this.A,512),1))};
g.h.logEvent=function(a,b){if(this.D){var c=this.D,d={};d.rt=g.CQ(c.g).toFixed(3);g.Ba(d,sR(c.g));var e=c.g.g,f=c.g.videoData,k=f.wt||e.Bh;k={ns:e.ib,html5:"1",el:gO(f,e),ps:e.g,fexp:e.experiments.experimentIds.join(",")||void 0,feature:k||void 0,ctrl:f.kg||void 0,ytr:f.sf||void 0,list:f.playlistId,d:e.sg,f:e.gd};if(e.experiments.g("legacy_autoplay_flag")?e.ba:f.Ah)k.autoplay="1";f.subscribed&&(k.subscribed=f.subscribed);g.Ba(d,k);delete d.fexp;g.Ba(d,a);d=g.jF(c.g.g.baseYtUrl+"player_204",d);PR(c,
d,b)}};
g.h.isPeggedToLive=function(){return this.sa};
g.h.RK=function(){return this.A};
g.h.getPlayerType=function(){return this.Id};
g.h.ws=function(){var a=this.g,b=a.wd;if(!b)return a.bn;var c=g.eb(this.g.tb?this.g.tb.audioTracks:[],function(a){return a.id==b.id});
return c?c:a.bn};
g.h.eS=function(){this.C.experiments.o("html5_background_quality_cap")&&this.B&&GV(this,"v");this.C.Sp&&!this.g.backgroundable&&this.o&&(TU()&&this.o.o?(this.Kd("bgmobile","suspend"),tV(this,!0)):AV(this)&&this.Kd("bgmobile","resume"))};
g.h.aQ=function(a){if(this.sg)this.Hd=!0;else{var b=this.getDuration();!b&&this.g.pd()&&(b=3600);a.A.duration=b;g.UT(this.B,a)}};
g.h.IP=function(a){if(this.G){var b=this.G;if(GM(b.g)){for(var c=new window.Uint8Array(0),d=new window.DataView(a.buffer,a.byteOffset,a.length),e=0;e<a.length-8;){var f=d.getUint32(e);if(1>=f)break;var k=d.getUint32(e+4);if(1836019574==k)e+=8;else{if(1886614376==k){k=a.subarray(e,e+f);var l=new window.Uint8Array(c.length+k.length);l.set(c);l.set(k,c.length);c=l}e+=f}}a=c;0!=a.length&&EU(b,new sU(a),!1)}}};
g.h.SP=function(a){qV(this,a.reason,a.video.info,a.audio.info);var b=rQ(this.g);b&&b.I(a.video);this.N&&(this.N.o=a.audio.index)};
g.h.RP=function(a){pV(this,a.reason,a.audio.info)};
g.h.yj=function(a){if("html5.invalidstate"==a.errorCode&&this.o){var b=this.o.Rb();a.details.merr=b?b.toString():"0"}b=/^pp/.test(this.g.clientPlaybackNonce);nna(a)?g.W(this.A,4)?(this.rg=!0,$U(this)):xV(this):IV(a)&&this.g.tb.o?(this.Kd("highrepfallback","1",!0),bma(this.g),DV(this),BV(this)):a.g?(b=this.B?this.B.F.D:null,b=IV(a)&&b&&b.isLocked()?"YTP_ERROR_FORMAT_UNAVALIABLE":void 0,g.eV(this,a.errorCode,b,yO(a.details))):this.D&&(this.D.onError(a.errorCode,yO(a.details)),b&&"manifest.net.connect"==
a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.g.clientPlaybackNonce+"&t="+(0,g.ZG)(),(new IT(a,"manifest",(0,g.A)(function(a){this.Kd("pathprobe",a)},this),(0,g.A)(function(a){this.onError(a.errorCode,yO(a.details))},this.D))).send()))};
g.h.us=function(){if(!(0,window.isNaN)(this.Y)&&this.o){var a=this.getDuration(),b=this.C.experiments.g("legacy_html5_seek_end")?Math.floor(a):KV(this,!1);!this.g.Ba&&this.Y>=b?(this.Y=a,this.X("endseeking",this),nV(this,!0),UU(this)):(this.B&&this.B.seek(this.Y),(!this.g.Ba||1<=this.o.g.readyState)&&this.o.tc(this.Y),this.B&&!g.W(this.A,2)&&cV(this,gR(this.A,16)))}this.ha&&(this.ha.dispose(),this.ha=null);g.W(this.A,32)&&(cV(this,gR(hR(this.A,32),16)),this.X("endseeking",this))};
g.h.getCurrentTime=function(){if(this.L&&!(0,window.isNaN)(this.L.getCurrentTime()))return this.L.getCurrentTime();if(!(0,window.isNaN)(this.Y))return this.Y;var a=0;this.o&&1<=this.o.g.readyState?a=this.o.getCurrentTime():this.g&&(a=this.g.If||this.g.startSeconds||0);return a};
g.h.getDuration=function(){return this.g.lengthSeconds?this.g.lengthSeconds:KV(this,!1)?KV(this,!1):0};
g.h.aI=function(){var a=new $ka;if(this.B){var b=this.C.schedule;a.C=b.I;a.G=b.J;a.o=ZM(b);a.g="d."+WM(b).toFixed(2)+";st."+(1E9*YM(b)).toFixed(2)+";bw."+b.A.o().toFixed(0)+";abw."+b.C.o().toFixed(0)+";v50."+RM(b.o,.5).toFixed(2)+";v92."+RM(b.o,.92).toFixed(2)+";v96."+RM(b.o,.96).toFixed(2)+";v98."+RM(b.o,.98).toFixed(2);b.g&&(a.g+=";ltbw."+b.g.o().toFixed(0));b=this.B;b.o&&!MK(b.o)&&(a.A=gT(b.g)?b.g.B.o:QQ(b.o.o.buffered,b.C),a.D=gT(b.B)?b.B.B.o:QQ(b.o.g.buffered,b.C));a.o=xT(b.J)}else this.o&&(a.A=
ZQ(this.o));this.C.experiments.g("html5_new_e2e_latency_tracking")?a.B=this.yx():this.N&&sma(this.N,a);return a};
g.h.XR=function(){this.G&&CU(this.G,this.g.oauthToken);bV(this)};
g.h.WR=function(a){g.eV(this,"auth",(0,window.unescape)(a.reason),a.errordetail||"sec."+a.errorcode)};
g.h.TK=function(a){var b=a.target.Pd();if(this.o&&this.o.Pd()&&this.o.Pd()==b){var c=!1;switch(a.type){case "error":if(!this.Gc&&0<this.o.Rb()){this.Gc=!0;if(a=this.C.experiments.g("html5_progressive_signature_reload"))a=this.g,a=a.hg?+g.hF(a.hg.g().g).expire<Date.now()/1E3+1800:!1;this.D&&(c={e:hma(this.o)},this.J&&(c.msopened=""+ +!!this.J.g),a&&(c.stale="1"),this.D.onError("qoe.restart",yO(c)));if(a){xV(this);return}if(TN("philips"))try{window.close()}catch(n){}this.vt();return}break;case "durationchange":var d=
this.o.getDuration();(!this.J||(0,window.isFinite)(d)&&0<d)&&1!=d&&this.g.lengthSeconds!=d&&(this.g.lengthSeconds=d,bV(this));break;case "ratechange":this.B&&(this.B.J.A=Math.max(1,this.o.Uc()));d=this.F;d.C=!0;d.A();break;case "loadedmetadata":this.g.startSeconds&&(0<(this.o.g.seekable||PQ()).length?this.o.g.currentTime=this.g.startSeconds:(this.pa=this.g.startSeconds,nV(this,!0)));case "loadstart":g.XE(this.ub);this.qq()||(this.ub=g.ZE((0,g.A)(this.qq,this),100));break;case "progress":this.pa&&
this.o&&(d=this.o.g.seekable||PQ(),d.length&&d.end(0)>this.pa&&(this.o.g.currentTime=this.pa,this.pa=window.NaN,this.yc=this.ka.P(this.o,"canplay",this.iP,this)));case "suspend":LV(this);this.X("onLoadProgress",this,ona(this));g.W(this.A,8)&&(this.Lh?c=!0:this.Mh&&((0,window.isNaN)(this.Oc)||this.Oc+1<this.o.getCurrentTime())&&(c=!0,this.Oc=this.o.getCurrentTime()));break;case "seeked":PV(this);break;case "seeking":d=this.C.experiments.g("disable_html5_videoplayer_seeking_time")?this.o.getCurrentTime():
this.getCurrentTime();this.B&&this.B.seek(d);var e=this.ib;e.g=d;e.o=!0;break;case "playing":this.I.o("plev");g.EP("plev",void 0,"video_to_ad");this.Cf&&(this.Cf=!1,zV(this)||lV(this,window.Infinity,!0));g.YE(this.Jb);this.Jb=window.NaN;break;case "timeupdate":d=this.o&&!this.o.getCurrentTime();e=this.o&&0==this.o.g.readyState;if(d&&(!this.Ra||e))return;this.Ra|=!!this.o.getCurrentTime();this.qq();PV(this);LV(this);if(!this.o||this.o.Pd()!=b)return;this.X("onVideoProgress",this,this.o.getCurrentTime());
this.N&&this.sa&&(d=this.N,e=this.o.getCurrentTime(),!d.o||e>=d.B&&e<d.C||(e=d.o.gh(e),-1!=e&&(d.B=d.o.mf(e),d.C=d.B+d.o.getDuration(e),e=(0,g.G)()/1E3-d.o.Cs(e),d.A&&(e-=d.A()),hS(d.D,e),d.g.push(e))));break;case "waiting":if(0<(this.o.g.played||PQ()).length&&0==YQ(this.o).length&&0<this.o.getCurrentTime()&&5>this.o.getCurrentTime()&&this.B)return;break;case "resize":this.g.Oa&&"auto"==this.g.Oa.video.quality&&this.X("internalvideoformatchange",this.g,!1)}if(this.o&&this.o.Pd()==b){this.X("videoelementevent",
a);a:{b=this.A;var f=this.ib,k=this.Nh,l=this.C.experiments.g("html5_timeupdate_readystate_check");if(!g.W(b,128)){d=b.o;e=b.g;var m=a.target;if(!g.W(b,64)||"ended"!=a.type&&"pause"!=a.type)if("pause"==a.type&&m.g.ended||"ended"==a.type&&(m.g.ended||1>Math.abs(m.getCurrentTime()-m.getDuration())))0<m.g.networkState&&m.Pd()&&(d=14,e=null);else if("pause"==a.type)g.W(b,256)?(d^=256)||(d=64):g.W(b,32)||g.W(b,2)||g.W(b,4)||(d=4,g.W(b,1)&&g.W(b,8)&&(d|=1),e=null);else if("playing"==a.type)d=8,e=null,g.W(b,
32)&&(d|=32),k&&g.W(b,1)&&eR(f,m)&&(d|=1);else if("error"==a.type){b:{if(2==m.Rb())f="progressive.net.retryexhausted";else if(3==m.Rb())f="fmt.decode";else if(4==m.Rb())f="fmt.unplayable";else if(5==m.Rb())f="drm.unavailable";else{m=null;break b}l="mediaElem.1";m.g.error&&m.g.error.message&&(l+=";msg."+(m.g.error?m.g.error.message:""));.001>Math.random()&&(l+=";gpu."+gV());m={errorCode:f,errorDetail:l,message:g.U("YTP_ERROR_GENERIC_WITHOUT_LINK"),messageKey:"YTP_ERROR_GENERIC_WITHOUT_LINK"}}m&&(e=
m,d|=128)}else if("progress"==a.type)kR(b)&&eR(f,m)&&(d|=1);else if("seeked"==a.type)d&=-17;else if("seeking"==a.type)d|=16,0>=ZQ(m)&&(d|=1),d&=-3;else if("waiting"==a.type)g.W(b,2)||(d|=1);else if("timeupdate"==a.type)k=2<m.g.readyState,f.A|=k,g.W(b,16)||g.W(b,4)||(eR(f,m)?d|=1:l&&!k&&f.A||(d&=-2)),1<m.g.readyState&&0<m.getCurrentTime()&&(d&=-65);else break a;b=fR(b,d,e)}}!g.W(this.A,1)&&g.W(b,1)&&RV(this,"evt_"+a.type);cV(this,b);c&&this.o.play()}}};
g.h.kO=function(a){a="available"==a.g.availability;a!=this.Hc&&(this.Hc=a,this.X("airplayavailabilitychange"))};
g.h.lO=function(){var a=!!this.o.g.webkitCurrentPlaybackTargetIsWireless;a!=this.Ka&&(this.Ka=a)&&(g.lQ(this.g,this.C,this.Ka),GV(this,"m"));this.X("airplayactivechange")};
g.h.qq=function(){var a=this.o;a&&this.Ra&&!this.g.Zg&&!UP("vfp",this.I.g)&&2<=a.g.readyState&&!a.g.ended&&0<OQ(YQ(a))&&this.I.o("vfp");if((a=this.o)&&!this.g.Zg&&0<a.getDuration()&&(!UP("pbp",this.I.g)&&a.g.paused&&2<=a.g.readyState&&0<OQ(YQ(a))&&this.I.o("pbp"),0<a.getCurrentTime())){g.XE(this.ub);g.YE(this.fa);this.fa=window.NaN;this.g.Zg=!0;OV(this);if(this.D){a=this.D;if(!a.B){var b=MR(a,"playback");a.I=[10+a.g.videoData.tj,10,10,40+a.g.videoData.fl-a.g.videoData.tj,40];var c=a.A;g.XE(c.F);c.F=
window.NaN;c.F=g.ZE((0,g.A)(c.update,c),100);c.D=g.CQ(c.g);c.A=BQ(c.g);b.o=LR(a,!0);b.Ka=!0;b.send();a.g.videoData.Fl&&(b=a.g.g,c=a.g.videoData,b=g.Pg(b.baseYtUrl+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.eventId,ptk:c.Fl,oid:c.GB,ptchn:c.FB,pltype:c.HB,content_v:b.Ka}),PR(a,b));a.g.videoData.enableCardio&&(a.Lo("playback"),a.C||SR(a));a.g.videoData.Jf||RR(a);a.B=!0;a=a.A;a.o=a.g.o();a.D=g.CQ(a.g);!(0==a.B&&5>a.o)&&2<a.o-a.B&&(a.B=a.o)}g.$E((0,g.A)(this.Dt,
this),4500)}this.X("playbackstarted");g.gH()&&((a=g.x("yt.scheduler.instance.clearPriorityThreshold"))?a():jH(0));return!0}return!1};
g.h.iP=function(){this.yc&&(this.ka.Ca(this.yc),delete this.yc,this.o.fd())};
g.h.AI=function(){if(this.o){var a=this.getCurrentTime();if(g.W(this.A,8)&&LQ(this.ib,a,(0,g.ZG)(),ZQ(this.o))){var b=this.getDuration();!this.g.Ba&&b&&1.1>Math.abs(b-a)?this.o.g.loop?lV(this,0,!0):UU(this):(g.mR(this.A)||RV(this,"progress_fix"),cV(this,gR(this.A,1)))}else g.W(this.A,4)&&g.mR(this.A)&&5<ZQ(this.o)&&cV(this,hR(this.A,1));LV(this)}};
g.h.XH=function(){return this.B?xT(this.B.J):ZM(this.C.schedule)};
g.h.tx=function(){return this.o?ZQ(this.o):0};
g.h.ZH=function(){return this.C.schedule.I};
g.h.yx=function(){if(!(this.g.Ba&&this.g.ua&&this.B&&this.sa))return window.NaN;var a=this.g.pd()?this.B.Dz():this.g.ua.G;return(0,g.G)()/1E3-MV(this)-a};
g.h.VS=function(){var a;if(a=g.W(this.A,1)&&this.B){a=this.B;var b=this.getCurrentTime();a=!(!a.o||MK(a.o)||NK(a.o)||pU(b,a.g,a.o.o)&&pU(b,a.B,a.o.g))}a&&(a=oU(this.B),this.Kd("reseek",yO({cur:a.lct,vb:a.lvb,ab:a.lab})),lV(this,this.getCurrentTime(),!0))};
g.h.mI=function(){this.g.Ba||this.X("connectionissue")};
g.h.cT=function(){this.o.tc(this.o.getCurrentTime()+.1)};
g.h.tQ=function(a){var b={};g.Ba(b,this.C.o);b.cpn=this.g.clientPlaybackNonce;this.g.pg&&(b.vvt=this.g.pg,this.g.mdxEnvironment&&(b.mdx_environment=this.g.mdxEnvironment));this.C.Bc&&(b.authuser=this.C.Bc);this.C.pageId&&(b.pageid=this.C.pageId);g.dc(a.F,b);wU(a,a.I)};
g.h.MP=function(a,b,c,d){d=void 0===d?"YTP_ERROR_LICENSE":d;c=c.substr(0,256);"drm.keyerror"==a&&1<this.G.A.keys.length&&96>this.Og&&!this.C.experiments.g("html5_disable_drm_reload")&&(a="drm.sessionlimitexhausted",b=!1);if(b)g.eV(this,a,d,c);else if(this.D)this.D.onError(a,c);"drm.sessionlimitexhausted"==a&&(this.Og++,this.vt())};
g.h.NP=function(){GV(this,"r");bV(this)};
g.h.SK=function(a){this.X("heartbeatparams",a)};
g.h.bB=function(){if(!this.g.Zg&&this.o){var a="0";0<this.o.g.readyState&&5<=ZQ(this.o)&&this.g.tb.g&&(cV(this,gR(this.A,1)),RV(this,"load_soft_timeout"),this.X("playbackstalledatstart"),a="1");this.D&&(a={preroll:""+ +kV(this),restartmsg:a},this.B&&g.Ba(a,oU(this.B)),this.o&&g.Ba(a,bR(this.o)),this.D.onError("qoe.start15s",yO(a)));this.X("loadsofttimeout")}};
g.h.Dt=function(){if(!this.Ya){var a=new FU(this.g);if("c1a"in a.o){var b=g.x("yt.abuse.botguardInitialized");b=!(b&&b())}else b=!1;if(b)g.$E((0,g.A)(this.Dt,this),4500);else{if(a.g&&a.g.mk){b=[a.g.mk];for(var c in a.A)if(a.o[c]&&a.A[c]){var d=a.A[c](a.o);d&&b.push(d)}a=b.join("&")}else a=null;a&&this.D&&(c=this.D,c.L||(b=MR(c,"atr"),b.N=a,b.send(),c.L=!0),this.Ya=!0)}}};
g.h.Kc=function(){return this.g.Kc()};
g.h.kz=function(){return this.Aa};
g.h.Uq=function(){if(this.o)a:{var a=this.o;var b={};if(a.g){if(a.g.getVideoPlaybackQuality){a=a.g.getVideoPlaybackQuality();break a}a.g.webkitDecodedFrameCount&&(b.totalVideoFrames=a.g.webkitDecodedFrameCount,b.droppedVideoFrames=a.g.webkitDroppedFrameCount)}a=b}else a={};return a};
g.h.vt=function(){this.o&&(this.J?DV(this):(this.g.hg&&this.g.hg.A(this.C.experiments),this.o.ag()),BV(this))};
g.h.Kd=function(a,b,c){if(this.D){var d=this.D;d.ma()||xR(d.o,a,b,void 0===c?!1:c)}};g.p(SV,TR);g.h=SV.prototype;g.h.getPlayerType=function(){return this.playerType};
g.h.getRootNode=function(){return g.aW(this).element};
g.h.Yf=function(){return this.app.C};
g.h.ga=function(a){return(a=g.ZV(this.app,a||this.playerType))&&a.g};
g.h.isFullscreen=function(){return this.app.g.da};
g.h.fd=function(a){3==this.Za()?g.YV(this.app.B).sl("control_play"):IZ(this.app,a)};
g.h.ag=function(a){JV(g.ZV(this.app,a))};
g.h.addEventListener=function(a,b){this.app.V.subscribe(a,b)};
g.h.removeEventListener=function(a,b){this.app.V.unsubscribe(a,b)};
g.h.pl=function(a){this.Az(a,a)};
g.h.jl=function(a){return K1(this.app,a)};
g.h.getVideoUrl=function(a,b,c,d){var e=this.Za(),f=2==e;if(d&&f||3==e)f=!1,e=1;d=this.ga(e);if(!d)return"";var k;a||d.Ba||(k=Math.floor(this.getCurrentTime(e)));return this.app.g.getVideoUrl(d.videoId,f?void 0:this.getPlaylistId()||void 0,k,b,c)};
g.h.ql=function(a,b,c){var d=g.TV(this).A;d&&d.xu(a,b,c)};
g.h.Rd=function(){var a=g.ZV(this.app,1);if(!a)return!1;var b=a.g;return b.ed()&&!g.wQ(b)&&2!=this.Za()&&(!kV(a)||3==this.Za())};
g.h.wi=function(a,b){var c=this.app,d=g.ZV(c,this.playerType);d&&c.g.Jb.has(a.toString())?d.D?(c=MR(d.D,"engage"),c.A=a,c.send(b)):b&&b():b&&b()};
g.h.Zf=function(a,b){J1(this.app,a,b)};
g.h.setVolume=function(a){a=g.Xc(a,0,100);RJ(this.app,{volume:a,muted:this.Le()},!0)};
g.h.mute=function(){RJ(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.h.cg=function(){RJ(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};var rna=1;g.D(g.CW,g.L);g.h=g.CW.prototype;g.h.Ea=function(a,b){g.t(b)?Fd(a,this.element,b):a.appendChild(this.element)};
g.h.detach=function(){g.Gd(this.element)};
g.h.update=function(a){for(var b in a)this.Ga(b,a[b])};
g.h.Ga=function(a,b){var c=this.Fa["{{"+a+"}}"];c&&EW(this,c[0],c[1],b)};
g.h.W=function(){this.va={};this.Fa={};this.detach();g.CW.Z.W.call(this)};g.D(g.Y,g.CW);g.h=g.Y.prototype;g.h.Zb=function(a,b){this.Ga(b||"content",a)};
g.h.show=function(){this.g||(g.FW(this.element,""),this.g=!0)};
g.h.hide=function(){this.g&&(g.FW(this.element,"none"),this.g=!1)};
g.h.U=function(a,b,c){return this.P(this.element,a,b,c)};
g.h.P=function(a,b,c,d){c=(0,g.A)(c,d||this);d={target:a,type:b,listener:c};this.aa.push(d);a.addEventListener(b,c);return d};
g.h.Ca=function(a){for(var b=0;b<this.aa.length;b++)if(this.aa[b]==a){a=this.aa.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};
g.h.focus=function(){g.Ud(this.element);this.element.focus()};
g.h.W=function(){for(;this.aa.length;){var a=this.aa.pop();a.target.removeEventListener(a.type,a.listener)}g.Y.Z.W.call(this)};g.p(PW,g.xG);PW.prototype.dispose=function(){this.g.clear();g.xG.prototype.dispose.call(this)};
var QW=null;g.ra("ytads.bulleit.getVideoMetadata",function(a){a=RW().g.get(a);return null!=a?a.g():{}},void 0);
g.ra("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=RW();c=sna(c);null!=c&&d.X(c,{queryId:a,viewabilityString:b})},void 0);var SW=null,UW=null;g.ra("yt.www.ads.eventcache.getLastCompanionData",function(){return SW},void 0);
g.ra("yt.www.ads.eventcache.getLastPlaShelfData",function(){return UW},void 0);g.D(g.XW,g.xG);g.h=g.XW.prototype;g.h.load=function(){this.loaded=!0};
g.h.unload=function(){this.loaded=!1};
g.h.Fd=function(){return!0};
g.h.W=function(){this.loaded&&this.unload();g.XW.Z.W.call(this)};
g.h.rD=function(){return{}};g.D(YW,g.XW);g.h=YW.prototype;g.h.zu=function(){return-1};
g.h.create=function(){this.C||(g.S(this.g.getRootNode(),this.be+"-created"),this.J.P(this.g,"crn_"+this.be,this.Ws),this.J.P(this.g,"crx_"+this.be,this.Xs),this.C=!0)};
g.h.destroy=function(){g.Vp(this.g.getRootNode(),this.be+"-created");g.wG(this.J);this.C=!1;this.X("destroyed",this.be)};
g.h.Ws=function(){};
g.h.Xs=function(){};
g.h.Au=function(){return null};
g.h.W=function(){this.C&&this.destroy();YW.Z.W.call(this)};g.D(g.bX,g.Y);g.bX.prototype.subscribe=function(a,b,c){return this.Y.subscribe(a,b,c)};
g.bX.prototype.unsubscribe=function(a,b,c){return this.Y.unsubscribe(a,b,c)};
g.bX.prototype.Xd=function(a){return this.Y.Xd(a)};
g.bX.prototype.X=function(a,b){return this.Y.X.apply(this.Y,arguments)};g.D(g.cX,g.L);g.h=g.cX.prototype;g.h.show=function(a){1!=this.g&&2!=this.g&&(3==this.g&&this.ep(),4==this.g?(this.o.show(),this.g=null,this.A.stop()):this.o.g||(dX(this,!0),this.g=1,a?this.A.start(a):this.ep()))};
g.h.hide=function(){3!=this.g&&(1==this.g||2==this.g?(this.o.hide(),this.g=null,this.A.stop()):this.o.g&&(dX(this,!0),this.g=3,this.A.start(this.B)))};
g.h.ep=function(){switch(this.g){case 1:this.o.show();this.g=2;this.A.start(10);break;case 2:dX(this,!1);this.g=null;break;case 3:this.o.hide();dX(this,!1);this.g=4;this.A.start(0);break;case 4:this.g=null}};
g.h.stop=function(){for(;null!=this.g&&4!=this.g;)this.A.stop(),this.ep()};
g.h.W=function(){this.o.ma()||this.o.element.removeAttribute("aria-hidden");g.cX.Z.W.call(this)};var hX=(1E9*Math.random()>>>0).toString(),gX={};var jX=[2,5];var lZ=["vmap_enabled_ads_backend"];mX.prototype.g=function(a,b,c){a=a||lZ;(0,g.Ik)(a,function(a){return sX(this.o).experiments.g(a)},this)&&(a=c||{},a.cdp=1,a["var"]=b,a.sdkv="h.3.0",g.hW(this.o.g,"ad",a))};var wX=Error("Timed out while waiting for Biscotti ID");xX.prototype.C=function(){var a=yX(this);a.format="2_3";a.at="2_3";a.trsp="1";YY(this.g,3,a)};g.D(zX,g.L);zX.prototype.W=function(){this.g.reject();zX.Z.W.call(this)};
zX.prototype.D=function(){this.A++;var a=g.x("yt.www.watch.ads.isAfcAdVisible");a&&g.wa(a)&&a()&&this.B++;4<=this.B?this.g.resolve():5<=this.A?this.g.reject("Timed out waiting for MPU to become visible"):this.o.start()};var KX,BX=!1,EX=!1,AX=!1;g.KG("showCompanionAdLoaded",function(){EX&&(FX(),EX=!1)});
g.KG("watchAdsInit",function(){BX&&(BX=!1,CX())});g.D(MX,g.xG);MX.prototype.Af=function(){return this.adSystem+"_"+this.adType};
MX.prototype.di=function(){return this.Af()};
MX.prototype.Lb=function(){return this.o?this.o.Lb():null};
MX.prototype.abort=g.y;g.D(OX,g.Y);OX.prototype.W=function(){OX.Z.W.call(this);g.Dd(PX(this));g.Dd(QX(this));this.A=this.o=null;delete this.B};g.D(WX,g.L);WX.prototype.start=function(){!this.ma()&&(0,window.isNaN)(this.g)&&(this.A=(0,g.G)(),this.g=g.tg(this.C,this.B-this.o,this))};
WX.prototype.stop=function(){(0,window.isNaN)(this.g)||(this.A=this.o=0,g.ug(this.g),this.g=window.NaN)};
WX.prototype.pause=function(){(0,window.isNaN)(this.g)||(this.o=(0,g.G)()-this.A,g.ug(this.g),this.g=window.NaN)};
WX.prototype.W=function(){(0,window.isNaN)(this.g)||g.ug(this.g);WX.Z.W.call(this)};XX.prototype.getLength=function(){return this.g-this.o};$X.prototype.update=function(a,b,c,d){this.width=b;this.A=c;this.C=d;this.g=b-c-d;this.B=g.Xc(a-c,0,this.g);this.position=this.B+c;this.o=this.B/this.g};g.D(cY,MX);cY.g=15;cY.o=-21;g.h=cY.prototype;g.h.abort=function(){VX(this.C,13);this.Y||this.o.destroy();this.D=this.G=!1;iY(this)};
g.h.Af=function(){var a=this.Lb();var b=qq(a);if(4==NX(b).A)return b;if($r(a))a=3;else if(a.isSkippable())a=as(a)?1:2;else return this.adSystem+"_"+this.adType;return this.adSystem+"_"+this.adType+"_"+a};
g.h.di=function(){return this.adSystem+"_"+this.adType};
g.h.show=function(){LX();BZ(this.g)&&GX(this.g,{});var a=this.g.g.app;GZ(a,bY(a,2));this.C.A=(0,g.ZG)();this.F=this.g.getRootNode();this.B.subscribe("progresssync",this.IA,this);this.g.o.V&&g.Gd(g.I("video-ad-status-bar",this.F));g.Up(this.F,["ad-showing","ad-interrupting"]);this.g.subscribe("resize",this.Bu,this);try{this.A.U(this.o,"adError",this.KU),this.A.U(this.o,"click",this.JU),this.A.U(this.o,"complete",this.MU),this.A.U(this.o,"engagedview",this.tP),this.A.U(this.o,"pause",this.AD),this.A.U(this.o,
"start",this.BD),this.A.U(this.o,"skip",this.OU),this.A.U(this.o,"MUTE_AD",this.abort),this.A.U(this.o,"skippableStateChanged",this.xR),this.A.U(this.o,"youTubeChannelMetadata",this.iQ),this.A.U(this.o,"companionInitialized",this.LU),BZ(this.g)&&this.A.U(this.o,"youtubeKevlarCompanionShow",this.KP),this.A.U(PX(this.g.F),"mouseup",this.NU),this.Bu(),this.Y||this.o.start()}catch(b){jY(this,b)}this.g.o.D&&sX(this.g).experiments.g("ad_info_icon_in_card")&&EZ(this.g,"onAdMetadataAvailable",{showAdInfoIcon:!0})};
g.h.DD=function(a,b,c){if("newdata"==a&&this.videoData!=c){a=new Ena;a.isSkippable=this.ba;a.isBumper=this.ha;a.skip=(0,g.A)(this.o.skip,this.o);a.muteAd=(0,g.A)(this.o.muteAd,this.o);a.whyThisAdClicked=(0,g.A)(this.o.whyThisAdClicked,this.o);a.whyThisAdClosed=(0,g.A)(this.o.whyThisAdClosed,this.o);a.sendAdsPing=g.AF;a.skipShown=(0,g.A)(this.o.pC,this.o);if(b=this.Lb()){a.clickThroughUrl=ls(b)||"";var d;(d=this.g.o.Ya)||(d=c.lengthSeconds,(b=Ns(b))?(up(b,d),d=vp(b)):d=null);a.skipTime=d||0;a.adSystem=
this.adSystem;if(b=kY(this))a.whyThisAdInfo=b;if(d=lY(this))a.muteAdInfo=d;var e=sX(this.g);this.g.o.D&&e.experiments.g("ad_info_icon_in_card")&&(e={showAdInfoIcon:!0},e.whyThisAdInfo=b,e.muteAdInfo=d,EZ(this.g,"onAdMetadataAvailable",e))}a.videoId=c.videoId;a.videoId||(a.videoUrl=this.Wl()||"");c.spacecastModule=this.da;gY(this.g,-1,a)}this.videoData=c};
g.h.CD=function(a){a=a.state;g.W(a,1)||this.J.pause();g.W(a,128)?jY(this,Error(a.g.message||"Video player error.")):g.W(a,1)&&this.J.start()};
g.h.BD=function(){this.O=!0;this.D=!1;if(!this.G){this.G=!0;var a=this.C;TX(a);var b=UX(a);if((0,window.isNaN)(a.A))TX(a);else{var c=(0,g.ZG)()-a.A;b.ad_stl=c}SX(a,4,b);hY(this.g,1);eY(this,!1);b=this.g.o;b.sa&&(a=fY(this.g))&&(mY(this,a),this.videoData&&(this.videoData.hd=Math.min(1,this.videoData.hd*b.L)),c=Math.min(1,a.getVolume()*b.L),a.setVolume(c));if(this.videoData){if(b.Aa){a=fY(this.g);var d=Math.max(-21,tX(this.g).relativeLoudness);c=this.videoData.relativeLoudness;a&&0>d&&c>d&&(mY(this,
a),this.videoData.hd=Math.min(this.videoData.hd,Math.pow(10,-(c-d)/20)),c=Math.min(1,a.getVolume()/this.I*this.videoData.hd),a.setVolume(c))}if(b.Fa){a=fY(this.g);c=b.Ib;d=oO(sX(this.g));var e=nO(sX(this.g));a&&d&&null!==c&&e>c&&(mY(this,a),this.videoData.hd=Math.min(1,this.videoData.hd*b.L),c=Math.min(1,a.getVolume()*b.L),a.setVolume(c))}b.Ka&&(a=fY(this.g),c=this.videoData.relativeLoudness,b=b.Jb,a&&c>b&&(mY(this,a),this.videoData.hd=Math.min(this.videoData.hd,Math.pow(10,b/20)),c=Math.min(1,a.getVolume()/
this.I*this.videoData.hd),a.setVolume(c)))}this.L&&1!=this.L&&g.FP("yt_abt",this.L,"video_to_ad");this.videoData&&this.videoData.clientPlaybackNonce&&g.FP("ad_cpn",this.videoData.clientPlaybackNonce,"video_to_ad");this.videoData&&this.videoData.videoId&&g.FP("ad_docid",this.videoData.videoId,"video_to_ad");g.FP("cpn",tX(this.g).clientPlaybackNonce,"video_to_ad");g.EP("apbs",void 0,"video_to_ad");(a=g.U("ADS_INSTREAM_FIRST_PLAY"))&&EZ(this.g,"onAdAnnounce",a)}gY(this.g,1);this.X("adPlay",this)};
g.h.AD=function(){this.O&&(this.O=!1,gY(this.g,2))};
g.h.MU=function(){if(!this.D){var a=this.C;TX(a);var b=UX(a),c=a.g.Fk();c?b.ad_fmt=c:TX(a);SX(a,5,b);sX(this.g).Hb&&EZ(this.g,"onAdComplete");iY(this);this.D=this.G=!1}};
g.h.tP=function(){var a=this.C;a.g.X("AD_LOGGING_EVENT",777,UX(a))};
g.h.OU=function(){this.D=!0;var a=this.C,b=UX(a),c=a.g.Fk();c?b.ad_fmt=c:TX(a);SX(a,14,b);sX(this.g).Hb&&EZ(this.g,"onAdSkip");iY(this)};
g.h.xR=function(){sX(this.g).experiments.g("html5_ad_no_buffer_abort_after_skippable")&&this.J.dispose();var a=g.U("ADS_INSTREAM_SKIPPABLE");a&&EZ(this.g,"onAdAnnounce",a)};
g.h.iQ=function(){var a;if(!this.ma()&&(a=this.g.o)){var b=this.Lb();if(b){var c=b.O;b=b.ha;var d=sX(this.g),e=kY(this),f=lY(this);b&&c&&c.isListed?(a={},a.videoTitle=c.title,a.channelThumbnailUrl=b.channelIconThumbnailUrl,a.channelTitle=b.authorName,a.channelVideoCount=b.videoCount,a.showAdInfoIcon=this.g.o.D&&d.experiments.g("ad_info_icon_in_card"),a.whyThisAdInfo=e,a.muteAdInfo=f,EZ(this.g,"onAdMetadataAvailable",a)):a.D&&d.experiments.g("ad_info_icon_in_card")&&(a={showAdInfoIcon:!0},a.whyThisAdInfo=
e,a.muteAdInfo=f,EZ(this.g,"onAdMetadataAvailable",a))}}};
g.h.LU=function(a){a=a.event;var b=a.g;b&&b instanceof g.Ef&&this.X("adCompanionInitialized",a.Mb(),b)};
g.h.KP=function(a){BZ(this.g)&&(a=(a=a.event.Mb())&&a.I)&&GX(this.g,a)};
g.h.KU=function(a){var b={};try{b.error_code=a.event.getError().Rb()}catch(c){b.error_code=900,b.error_message=c.toString()}VX(this.C,32,b);jY(this,a.event.getError())};
g.h.JU=function(){var a=this.C;TX(a);var b=UX(a);if(a.o){var c=uX(a.B);b.ck_xy=Math.round(a.o.x-c.left)+"x"+Math.round(a.o.y-c.top);b.ck_wh=c.width+"x"+c.height}SX(a,15,b);this.o.pause();this.X("select")};
g.h.IA=function(){};
g.h.DA=function(){this.o.tf();if(this.G&&!this.D){var a=this.C;a.g.X("AD_LOGGING_EVENT",19,UX(a))}eY(this,!0)};
g.h.W=function(){this.g.unsubscribe("control_toggle_play_pause",this.ED,this);this.g.unsubscribe("control_play",this.kt,this);this.g.unsubscribe("control_pause",this.jt,this);this.g.unsubscribe("resize",this.Bu,this);g.tG(this.A);this.B.unsubscribe("statechange",this.CD,this);this.B.unsubscribe("internalAbandon",this.DA,this);this.B.unsubscribe("internalvideodatachange",this.DD,this);this.B.unsubscribe("progresssync",this.IA,this);this.Y||this.o.destroy();this.V&&(g.Dd(this.V),this.V=null);this.aa&&
(g.Gd(this.aa),this.aa=null);this.F&&(g.Wp(this.F,["ad-showing","ad-interrupting"]),this.F=null);this.D=!1;Loa(this.g);this.J.dispose();this.J=null;cY.Z.W.call(this)};
g.h.tn=function(){return this.B.getDuration()};
g.h.Fk=function(){return this.videoData&&this.videoData.Oa?this.videoData.Oa.mimeType:null};
g.h.Wl=function(){return this.videoData&&this.videoData.hg?this.videoData.hg.g().g:null};
g.h.ED=function(){this.O?this.jt():this.kt()};
g.h.kt=function(){this.o.resume();this.BD()};
g.h.jt=function(){this.o.pause();this.AD()};
g.h.Bu=function(){g.Fh(PX(this.g.F),this.g.app.G.Xa())};
g.h.NU=function(a){g.t(a.g)||fG(a);var b=a.g;g.t(a.o)||fG(a);this.C.o=new g.ad(b,a.o)};g.D(pY,MX);g.h=pY.prototype;g.h.tn=function(){};
g.h.Fk=function(){};
g.h.Wl=function(){};
g.h.show=function(){if(!this.D||!MZ(this.g)){var a=this.g.getRootNode();g.S(a,"ad-showing");this.A=PX(this.g.F);a=this.o.Lb().getHeight();this.A.style.height=th(a,!0);g.S(this.A,"ad-overlay");this.B.U(this.A,"mouseup",this.RU);try{this.B.U(this.o,"autoClose",this.zO),this.B.U(this.o,"userClose",this.TR),this.B.U(this.o,"userRecall",this.UR),this.B.U(this.o,"click",this.QU),this.B.U(this.o,"impression",this.HP),this.B.U(this.o,"adError",this.PU),this.zc("normal"),this.F||this.o.start(),this.Cu(),this.g.subscribe("resize",
this.up,this),this.g.subscribe("presentingplayerstatechange",this.FD,this),this.X("adEnd",this)}catch(b){this.X("adError",b)}}};
g.h.W=function(){var a=this.g.getRootNode();g.Wp(a,["ytp-ad-overlay-open","ytp-ad-overlay-closed"]);g.tG(this.B);this.g.unsubscribe("resize",this.up,this);this.g.unsubscribe("presentingplayerstatechange",this.FD,this);g.Vp(a,"ad-showing");this.o&&(this.F||this.o.destroy(),this.o=null);this.A&&g.Vp(this.A,"ad-overlay");this.A=null;this.D=!1;pY.Z.W.call(this)};
g.h.TR=function(){this.A&&this.o&&this.o.Lb()&&(this.A.style.height=th(0,!0));this.D=!0;var a=this.C;a.o=(0,g.G)();var b=oY(a);nY(a,6,b);qY(this,!1)};
g.h.zO=function(){qY(this,!1)};
g.h.UR=function(){qY(this,!0)};
g.h.QU=function(){kZ(this.g);var a=this.C;a.o=(0,g.G)();var b=oY(a);if(a.A){var c=uX(a.C);b.ck_xy=Math.round(a.A.x-c.left)+"x"+Math.round(a.A.y-c.top);b.ck_wh=c.width+"x"+c.height}nY(a,100,b)};
g.h.HP=function(){var a=g.U("ADS_OVERLAY_IMPRESSION");a&&EZ(this.g,"onAdAnnounce",a);qY(this,!0)};
g.h.RU=function(a){this.C.A=a.target==a.currentTarget?null:new g.ad(a.pageX,a.pageY)};
g.h.PU=function(a){this.X("adError",a.event.getError())};
g.h.FD=function(a){g.W(a.state,16)&&this.zc("normal")};
g.h.zc=function(a){this.G!=a&&(this.G=a)};
g.h.up=function(){};
g.h.Cu=function(){var a=this.C;a.B=(0,g.G)();var b=oY(a);nY(a,3,b)};g.D(rY,g.L);rY.o="rm";rY.g=10;rY.C=200;rY.A=200;rY.B=190;g.h=rY.prototype;
g.h.load=function(){var a=this.g.app.G.Xa();if(this.g.o.B)var b=!1;else b=0<(this.D&3)?190:200,b=200>a.width||a.height<b;if(b){b=this.A;var c=yX(b);c.ck_wh=a.width+"x"+a.height;DZ(b.g,14,c);LX();$Y(this.C)}else if(this.kb=this.g.kb)a=this.A,YY(a.g,9,yX(a)),a=vX(this.g),(b=this.g.o.serverPrefetchedVast)&&0<(this.D&3)?(a.o=b,this.g.o.serverPrefetchedVast=void 0):a.g=this.bh(),this.kb.U("adsManagerLoaded",this.xD,!1,this),this.kb.U("adError",this.wD,!1,this),this.YB(this.kb,a)};
g.h.Lq=function(){var a=rX(this.g.o,sX(this.g),tX(this.g));a.surveyCreativeData=this.g.o.surveyCreativeData;a.iU=this.G;return a};
g.h.xD=function(a){if(a.A===this){g.EP("aml");g.EP("aml",void 0,"video_to_ad");try{var b=this.Lq();var c=a.g}catch(d){this.wh(d);return}this.B.U(c,"companionBackfill",(0,g.A)(this.HU,this,c));this.B.U(c,"loaded",(0,g.A)(this.GU,this,c));this.B.U(c,"adError",(0,g.A)(this.FU,this,c));this.B.U(c,"allAdsCompleted",g.y);this.B.U(c,"contentPauseRequested",g.y);this.B.U(c,"contentResumeRequested",g.y);c=vA(a,this.g.G,{},b);try{c.init("normal")}catch(d){c.destroy(),this.wh(d)}}};
g.h.GU=function(a,b){um(this.B);var c=b.Mb(),d=c.Wb(),e=this.A,f=yX(e);f.ad_man=d?"instream":"overlay";YY(e.g,12,f);e=a.eh();switch(d?this.Gn(a,c,e):this.ji(a,c)){case 0:Yna(this.C,this.I,this.o);break;case 1:a.destroy();$Y(this.C);break;case 2:c=this.A;DZ(c.g,21,yX(c));a.destroy();$Y(this.C);break;case 3:$Y(this.C);break;default:a.destroy()}};
g.h.FU=function(a,b){um(this.B);a.destroy();this.wh(b.getError())};
g.h.wD=function(a){var b=a.getError();"adLoadError"==b.Yb()&&a.g===this&&this.wh(b)};
g.h.HU=function(){uY(this)};
g.h.Gn=function(a,b,c){var d=tX(this.g)&&tX(this.g).spacecastModule;if(d&&c&&!this.J.test(c))return 3;tY(this,ns(b));sY(this,new cY(this.G,this.g,a,b.isSkippable(),b.isBumper(),void 0,d,this.o.g));return 0};
g.h.ji=function(a,b){tY(this,ns(b));sY(this,new pY(this.G,this.g,a));return 0};
g.h.wh=function(a){if(a){var b=this.A,c=yX(b);a&&oX(a,c);DZ(b.g,32,c);$Y(this.C)}};
g.h.W=function(){this.kb&&(this.kb.Ca("adsManagerLoaded",this.xD,!1,this),this.kb.Ca("adError",this.wD,!1,this));um(this.L);um(this.B);rY.Z.W.call(this)};
g.h.YB=function(a,b){try{BC(a,b,this),g.EP("ar"),g.EP("ar",void 0,"video_to_ad")}catch(c){this.wh(c)}};g.D(vY,MX);g.h=vY.prototype;g.h.tn=function(){};
g.h.Fk=function(){};
g.h.Wl=function(){};
g.h.show=function(){BZ(this.g)?GX(this.g,{afcMpu:{logImpression:this.yD.bind(this),logNoAd:this.mr.bind(this)}}):AX?this.mr():(sX(this.g),CX(),HX(),IX().then((0,g.A)(this.yD,this),(0,g.A)(this.mr,this)))};
g.h.yD=function(){var a={};a.at=this.di();a.format=this.Af();this.X("AD_LOGGING_EVENT",3,a);this.X("adEnd",this)};
g.h.mr=function(){var a={};a.at=this.di();this.X("AD_LOGGING_EVENT",2,a);this.X("adEnd",this)};g.D(wY,rY);wY.prototype.Lq=function(){var a=wY.Z.Lq.call(this);a.Uv=0==this.slotId;a.dH=MZ(this.g)?a.Uv:!0;return a};
wY.prototype.bh=function(){var a=lX(this.o);var b=this.F;(b=4==this.D&&b.g.afvInvideoAdTag?b.g.afvInvideoAdTag:b.g.afvAdTag)?(g.Ha(b,"http:")&&(b=b.substr(5)),a=g.jF(b,{videoad_start_delay:0==a||-1==a?a:1E3*a})):a="";return a};
wY.prototype.ji=function(a,b){if(this.g.o.B)return 1;if(1==this.o.g){var c=new kX(2,10);this.o=c;this.A.A=c;YY(this.g,1)}return wY.Z.ji.call(this,a,b)};g.D(xY,pY);xY.prototype.up=function(){};
xY.prototype.Af=function(){return"1_3"};
xY.prototype.Cu=function(){1==this.I?this.X("AD_LOGGING_EVENT",2,{}):xY.Z.Cu.call(this)};g.D(yY,rY);yY.prototype.bh=function(){var a=this.F,b=lX(this.o);if(0<(this.D&3)){var c="mid,"+a.gc;var d="midroll";0==b?(c="pre",d="preroll"):-1==b&&(c="post",d="postroll");a=new g.Vl(a.g);b=a.g;var e=b.get("scp","");e=(e?e+"&":"").replace(RegExp("&?pos=[^&]*","g"),"");b.set("scp",e+("pos="+c));b.set("vpos",d);c=a.toString()}else c=a.g;return c};
yY.prototype.ji=function(a,b){tY(this,ns(b));var c=Xr(b);if(qX(c,"rm"))return 1==this.D||MZ(this.g)||LX(),a.Rj(),2;if(qX(c,"blockAllAds"))return a.Rj(),sY(this,new xY(this.g,a,1)),0;if(qX(c,"hideMaster"))return sY(this,new xY(this.g,a,0)),0;if(this.g.o.B)return 1;sY(this,new pY(this.G,this.g,a));return 0};g.D(zY,rY);zY.o="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";zY.A="43";zY.g=function(a){var b=new aE;g.nF(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,Ed:function(){var c=Error(a+" timed out");eE(b);cE(b,!1,c)},
onError:function(c){c=Error("Problem loading "+a+" with status code "+c.status);eE(b);cE(b,!1,c)},
Vb:function(a){b.qk(a)}});
return b};
zY.prototype.bh=function(){return""};
zY.prototype.YB=function(a,b){var c=this.D;c&1||c&4||c&8?this.F?c&8?zna(this.F):("goo.gl"==g.Hg(this.F)?(c=zY.g("https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl="+this.F),gE(c,function(a){a=g.xg(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new g.Vl(a.longUrl);g.dm(a,"video_format","43");return zY.g(a.toString())},this)):c=zY.g(this.F),gE(c,function(c){b.o=c.responseText;
BC(a,b,this)},this),fE(c,null,this.wh,this)):this.wh(Error("Invalid empty URL")):this.wh(Error("Invalid request type: "+c))};var BY=null;g.D(CY,g.Y);CY.prototype.clear=function(){for(var a=0;a<this.La.length;a++)this.La[a].detach(),g.Ye(this.La[a]);this.La=[]};
CY.prototype.F=function(a){g.rG(a);this.o=Math.max(0,this.o-DY(this));EY(this)};
CY.prototype.D=function(a){g.rG(a);this.o=Math.min(this.La.length-1,this.o+DY(this));EY(this)};g.D(JY,g.bX);g.D(KY,g.bX);g.h=KY.prototype;g.h.W=function(){KY.Z.W.call(this);this.clear()};
g.h.clear=function(){this.o.clear();this.A.stop()};
g.h.start=function(){this.A.start();this.Xt()};
g.h.Xt=function(){EY(this.o)};
g.h.vI=function(){this.D.start()};g.D(LY,MX);LY.prototype.tn=function(){};
LY.prototype.Fk=function(){};
LY.prototype.Wl=function(){};
LY.prototype.show=function(){var a=tX(this.g).videoId;if(a){var b=this.o.Lb();AN(sX(this.g).G,a,{Sh:Us(b)||null,ak:Vs(b)||null});BZ(this.g)?(a=Sna(this),g.kb(a)||(a={shopText:AY(qr(a[0],"teaser_text")),sponsoredText:AY(g.U("YTP_SPONSORED")),adInfoText:AY(g.U("YTP_SPONSORED_PRODUCT_INFO")),itemList:{horizontalListRenderer:{items:(0,g.J)(a,Mna),visibleItemCount:3,webHorizontalListRendererExtensionData:{nextButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"}}},
previousButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"}}}}}}},EZ(this.g,"onPlaShelfInfoCardsReady",a))):(a=Sna(this),g.kb(a)||(Rna(this.A,a),a=this.A.element,Ona().then(g.Aa(Pna,a)).then(this.A.start,null,this.A)));a={};a.format=this.Af();a.at=this.di();pX(b,a);this.X("AD_LOGGING_EVENT",3,a)}};g.D(MY,rY);MY.prototype.bh=function(){return this.g.o.Oc||""};
MY.prototype.ji=function(a,b){tY(this,ns(b));sY(this,new LY(this.g,a));5!=this.o.g&&uY(this);return 0};
MY.prototype.Gn=function(){return 1};g.D(NY,MY);NY.prototype.bh=function(){return this.g.o.forceAdUrl||""};g.D(RY,pY);RY.prototype.up=function(){};
RY.prototype.Af=function(){return"4_3"};g.D(SY,rY);
SY.prototype.bh=function(){if(E(this.F)||0!=lX(this.o)){var a=this.N;if(a.g.Va&&a.g.Na){var b={};var c="youtube_watch_"+a.A;b.nw="10613";b.asnw=a.g.Va;b.ssnw=a.g.Va;b.caid=a.g.Na;b.vdur=a.D;b.csid=c;b.resp="vast2";b.metr="121";c={};(0,window.isNaN)(a.g.Ra)||(c._fw_d_001=a.g.Ra);a.g.gender&&(c._fw_d_002=a.g.gender);a.g.bb&&(c["_fwu:10613:lang"]=a.g.bb);a.g.ra&&(c._fw_dbp=a.g.ra);a.g.Ta&&(c._fw_distributorvideoassetid=a.g.Ta);c._fw_yt_type=Vna(a)?"long":"short";b.prof=Vna(a)?"10613:youtube_html5_w_midroll":"10613:10613_youtube_html5_2014";
b.crtp="youtube";b.flag=OY(a.o)?"+slcb+qtcb+amcb+exvt+emcr":"+slcb+qtcb+amcb+emcr";var d="";if(a.C&1&&!a.G){var e={};d=Una(a);if(QY(a.o)){if(QY(a.o)){var f=0;var k=a.B.A;if(k){k=k.Eb;for(var l=0;l<k.length&&(QY(k[l])&&f++,k[l].getId()!=a.o.getId());l++);}}else f=0;d+=f}e.slid=d;e.ptgt="a";d="";a.g.C&&!a.g.A?d=";linear-skippable":!a.g.C&&a.g.A&&(d=";video");e.slau=Una(a)+d;e.tpos=PY(a.o)?a.D.toString():lX(a.o.Pb).toString();d=eF(e)+";";e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",
flag:"+cmpn"};d+=eF(e)+";"}a.C&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay"},e.tpos=OY(a.o)?"10":PY(a.o)?a.D.toString():lX(a.o.Pb).toString(),d+=eF(e)+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=eF(e)+";");a.C&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=eF(e)+";");a=d.substr(0,d.length-1);b="//2975c.v.fwmrm.net/ad/g/1?"+eF(b)+";"+eF(c)+";"+a}else b=""}else b=this.F;return b};
SY.prototype.Gn=function(a,b){return SY.Z.Gn.call(this,a,b,null)};
SY.prototype.ji=function(a,b){var c=Xr(b);if(qX(c,"rm"))return this.C.C=g.$b(a),2;if(this.g.o.B)return 1;if(qX(c,"hideMaster")){if(a.Ld&&a.Ld.bi()){c=a.Ld.bi();var d=a.Lb();if(P.g()){var e=d.Y;d.Y=[];d=e}else d=[];c.impressionUrls=d}sY(this,new RY(this.g,a));return 0}return SY.Z.ji.call(this,a,b)};TY.prototype.Yb=function(){return this.o};
TY.prototype.create=function(a,b){switch(this.o){case 1:return new wY(a,b,this.g);case 2:return new yY(a,b,this.g);case 5:return new SY(a,b,this.g);case 4:return new zY(a,b);case 7:return new MY(a,b,this.g);case 8:return new NY(a,b,this.g);default:return null}};g.D(UY,g.xG);g.h=UY.prototype;g.h.Sb=function(){return"loaded"==this.B||"error"==this.B};
g.h.getId=function(){return this.ya};
g.h.show=function(){this.G?this.g instanceof pY&&this.g.zc("normal"):(this.G=!0,this.g instanceof cY&&this.A.qe("bs"),this.g.subscribe("adEnd",this.HA,this),this.g.subscribe("adError",this.tD,this),this.g.subscribe("AD_LOGGING_EVENT",this.vD,this),this.g.subscribe("select",this.sD,this),this.g.subscribe("adCompanionInitialized",this.uD,this),this.g.show(),Zna(this,!0))};
g.h.HA=function(){this.o&&(aZ(this),Joa(this.A));XY(this)};
g.h.tD=function(a){if(a){var b={};oX(a,b);ZY(this,b);DZ(this.A,32,b)}aZ(this);XY(this)};
g.h.vD=function(a,b){ZY(this,b);YY(this.A,a,b)};
g.h.sD=function(){this.F=!1};
g.h.uD=function(a,b){this.X("adCompanionInitialized",a,b)};
g.h.W=function(){aZ(this);this.g=null;null!=this.C&&(this.C.dispose(),this.C=null);UY.Z.W.call(this)};var eoa=[new kX(1)];var goa={AF:"m",bF:"f"};g.D(bZ,g.L);bZ.prototype.B=function(a){a=null!=a.Mb()?a.Mb().D:null;if(null!=a){var b=bY(this.C.g.app,2);b&&b.g.videoId==a?b.D?(b=b.D,a=MR(b,"engage"),a.A=1,b=rR(b.g),a=g.Aa(mma,a.ka,JR(a),HR(a),b)):a=null:a=null;this.o=a}};
bZ.prototype.A=function(){this.g&&this.o&&this.o()};g.D(cZ,g.L);g.h=cZ.prototype;g.h.GC=function(){this.g.subscribe("beginseeking",this.Pm,this)};
g.h.zC=function(a,b){return a.o&&QY(a)?b+this.B+this.A:b};
g.h.yC=function(a,b){return!a.o||PY(a)||0x7ffffffffffff==b||0x8000000000000==b?b:b+this.B+this.A};
g.h.Pv=function(a){if(a.o&&QY(a)&&!(0>=this.A)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=WY(a)+this.B;b=new g.VJ(c,c+this.A-1,b);this.C[a.getId()]=b;ZW(this.g,[b])}};
g.h.ID=function(a){a.o&&QY(a)&&(joa(this,a.getId()),this.Pm())};
g.h.Pm=function(){(0,window.isNaN)(this.o)||(g.YE(this.o),this.o=window.NaN);var a=fY(this.g);dZ(this,a,this.g.app.I.getVolume()/100);OU(a,"transition","");OU(a,"opacity","1")};
g.h.JD=function(a){var b=WY(a)+this.B+this.A;b=50>=1E3*this.g.getCurrentTime(1)-b;a.o&&QY(a)&&b&&(a=.001*(WY(a)+this.F),Noa(this.g,a),0>=this.D||(a=fY(this.g),OU(a,"opacity","0"),dZ(this,a,0),g.$E((0,g.A)(this.SU,this),0)))};
g.h.SU=function(){var a=fY(this.g);OU(a,"transition","opacity "+String(this.D)+"ms linear");OU(a,"opacity","1");koa(this,a,this.D,1)};
g.h.HD=function(a,b,c){if(!(0,window.isNaN)(this.o)){var d=Math.max(1,b-(0,g.G)());d=-1*a.getVolume()*c/d;d=Math.max(0,a.getVolume()+d);dZ(this,a,d);this.o=0<d?GW((0,g.A)(this.HD,this,a,b,c),c):window.NaN}};
g.h.GD=function(a,b,c){if(!(0,window.isNaN)(this.o)){var d=Math.max(1,b-(0,g.G)()),e=this.g.app.I.getVolume()/100;d=(e-a.getVolume())*c/d;d=Math.min(e,a.getVolume()+d);dZ(this,a,d);this.o=d<e?GW((0,g.A)(this.GD,this,a,b,c),c):window.NaN}};
g.h.W=function(){this.Pm();this.g.unsubscribe("beginseeking",this.Pm,this);cZ.Z.W.call(this)};g.D(eZ,cZ);g.h=eZ.prototype;g.h.GC=g.y;g.h.zC=function(a,b){return b};
g.h.yC=function(a,b){return b};
g.h.Pv=g.y;g.h.ID=g.y;g.h.JD=g.y;g.h.W=g.y;g.D(fZ,g.L);fZ.prototype.A=function(){if(this.B){var a=this.g.o;if(null!=a&&(a=a.o,!(0>=a))){var b=this.g.g.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;g.Kb(this.D.A,function(a){a.Sb();if(a.isVisible&&!(0>=hZ(this,a))){var f=a.getId();f=this.D.D[f];if(hZ(this,a)>b){var k=!iZ(this,a);k!=f.visible&&(f.visible=k,c.push(f));k||(f=hZ(this,a)-b,f<e&&(e=f,d=a))}else f.visible||(f.visible=!0,c.push(f))}},this);
0<c.length&&ZW(this.g,c,1);if(d){var f=0;0<this.o&&(f=(0,g.G)()/1E3-this.o);loa(this,a-f-e+2)}else gZ(this)}}};
fZ.prototype.W=function(){gZ(this);this.g.unsubscribe("endseeking",this.A,this);fZ.Z.W.call(this)};g.D(jZ,g.L);g.h=jZ.prototype;g.h.Fj=function(a){a.unsubscribe("adBreakComplete",this.Fj,this);a.unsubscribe("adCompanionInitialized",this.Us,this);this.O=g.$E((0,g.A)(this.aO,this,a),0)};
g.h.Us=function(a,b){g.Ye(this.J);this.J=new bZ(this.o,b)};
g.h.aO=function(a){var b=ooa(this,a),c=b.previous;b=b.next;this.O=window.NaN;var d=!1;switch(a.Pb.g){case 5:var e=0x7ffffffffffff;d=!0;break;case 3:e=0x8000000000000;break;default:e=b&&g.qa(b.Pb.o)?WY(b)-1:0x7ffffffffffff}0==a.ya&&(this.o.qe("bl"),VY(a)||this.o.qe("fb"));"loaded"!=a.B||0==a.ya&&VY(a)&&b&&1E3*this.o.g.getCurrentTime()>=WY(b)?(c&&c.Sb()&&!d&&(b=e,e=WY(c),e>b&&(b=e),qoa(this,c),poa(this,c,b)),this.Wh(a)):(this.A[a.getId()]=a,poa(this,a,e),$W(this.o));g.Nb(this.A)==this.Eb.length&&this.C.A();
moa(this)};
g.h.Wh=function(a){a.unsubscribe("adBreakComplete",this.Fj,this);a.unsubscribe("adBreakComplete",this.zl,this);this.g&&a==this.g&&(this.g=null,null!=this.J&&a.o&&(this.J.g=!0));qoa(this,a);g.pb(this.Eb,a);delete this.A[a.getId()];g.Ye(a)};
g.h.dj=function(a){return this.A[a]};
g.h.zl=function(a){a.unsubscribe("adBreakComplete",this.zl,this);if(a.o){!PY(a)&&a.F?(JZ(this.o),this.B.JD(a)):VY(a)&&!a.F?JZ(this.o):HZ(this.o);this.Wh(a);a=this.C.o;a={tfla:0<a?Math.floor((0,g.G)()/1E3-a):0};this.o.Yi.g(lZ,"set_previous_ad_end_time",a);a=this.C;if(a.B){var b=a.g.o;b&&0<b.o&&(a.o=(0,g.G)()/1E3,a.A())}for(;!g.kb(this.N);)roa(this,this.N.shift())}else a.isVisible||this.Wh(a)};
g.h.W=function(){g.YE(this.O);g.Ye(this.B);g.Ye(this.C);(0,g.H)(this.Eb,this.Wh,this);g.Ye(this.J);jZ.Z.W.call(this)};g.D(mZ,jZ);g.h=mZ.prototype;g.h.dj=function(a){a=mZ.Z.dj.call(this,a);if(!a)return null;if(!a.I)return a;var b=null;if(this.F.length){var c=b=this.F.shift();c.Pb=a.Pb;c.ya=a.getId()}b&&"loaded"==b.B?(a.unsubscribe("adBreakComplete",this.Fj,this),this.A[a.getId()]=b,this.Eb[this.Eb.indexOf(a)]=b,g.Ye(a)):(this.Ij(),b&&(g.Ye(b),b=null,this.Wh(a)));b&&!b.o&&this.Ij();return b};
g.h.Fj=function(a){!OY(a)&&(2!=a.Pb.g||10!=lX(a.Pb))||"loaded"==a.B&&a.o||this.Ij();mZ.Z.Fj.call(this,a)};
g.h.zl=function(a){a.o&&10<this.V?(nZ(this),this.Y=g.$E((0,g.A)(this.Ij,this),1E3*(this.V-10))):this.Ij();mZ.Z.zl.call(this,a)};
g.h.Ij=function(){if(!this.ma())for(nZ(this);this.I.length&&this.L.length+this.F.length<this.aa;){var a=this.I.shift();a.subscribe("adBreakComplete",this.GA,this);this.L.push(a);$Y(a)}};
g.h.GA=function(a){a.unsubscribe("adBreakComplete",this.GA,this);g.pb(this.L,a);this.F.push(a)};
g.h.W=function(){nZ(this);g.H(this.L,g.Ye);g.H(this.F,g.Ye);g.H(this.I,g.Ye);mZ.Z.W.call(this)};g.D(oZ,jZ);oZ.prototype.ea=function(a){"loaded"==a.B&&this.I.push(a);a.unsubscribe("adBreakComplete",this.ea,this)};
oZ.prototype.V=function(){if(null!=this.g&&0<this.I.length){var a=this.I.shift();delete this.A[lX(a.Pb)];var b=Math.floor((0,g.G)()/1E3)-this.da;this.da=null;a.unsubscribe("adBreakComplete",this.V,this);this.Wh(a);this.g=null}0<this.L?(this.L--,soa(this)):(JZ(this.Y),(0,window.isFinite)(b)&&(this.aa?lV(this.F,window.Infinity,!0):lV(this.F,this.F.getCurrentTime()+b,!0)))};g.D(pZ,g.L);pZ.prototype.F=function(){this.g||(this.g=uoa(this.B.We()));ZW(this.o,g.Pb(this.g),1)};
pZ.prototype.A=function(){if(this.g){var a=this.o.g.getCurrentTime(),b=[],c=null,d=Number.MAX_VALUE;(0,g.H)(this.B.We(),function(e){var f=this.g[e];if(f){var k=this.B.dj(e);k&&k.Ac>a?(e=!this.kd.o(k),e!=f.visible&&(f.visible=e,b.push(f)),e||(f=k.Ac-a,f<d&&(d=f,c=k))):!k||k.xb()?(g.pW(this.o.g,[f],void 0),delete this.g[e]):!f.visible&&k&&(f.visible=!0,b.push(f))}},this);
0<b.length&&ZW(this.o,b,1);var e=this.o.o;if(null!=e&&(e=e.o,0>=e))if(c){var f=0;0<this.D&&(f=(0,g.G)()/1E3-this.D);voa(this,e-f-d+2)}else qZ(this)}};
pZ.prototype.W=function(){this.o.unsubscribe("endseeking",this.A,this);qZ(this);pZ.Z.W.call(this)};g.D(rZ,g.L);g.h=rZ.prototype;g.h.Ax=function(){return 4};
g.h.Xo=function(a){return a};
g.h.OB=function(){return!1};
g.h.Qv=g.y;g.h.Xl=g.y;g.h.KD=g.y;g.h.LD=g.y;g.h.MD=g.y;g.D(sZ,g.L);g.h=sZ.prototype;g.h.Ax=function(){return 4-this.B/1E3};
g.h.Xo=function(a){return Tb(this.A,1E3*a)?this.A[1E3*a]/1E3:a};
g.h.OB=function(a){var b=!1,c={};(0,g.H)(g.Jd(a),(0,g.A)(function(a){var d;if(d=(d=a.getAttribute("timeOffset"))?woa(d):null)b=b||xoa(a),c[d]=a},this));
if(!b||0==g.Nb(c))return!1;a=(0,g.J)(g.Rb(c),function(a){return(0,window.parseInt)(a,10)});
if(!Aoa(this,a))return!1;g.Kb(c,(0,g.A)(function(a,b){var c=(0,window.parseInt)(Ub(this.A,function(a){return a==b}),10);
c&&a.setAttribute("timeOffset",yoa(c))},this));
return!0};
g.h.Qv=function(a){if(!(0>=this.J)){var b=[];(0,g.H)(a,(0,g.A)(function(a){if(Tb(this.A,1E3*a)){var c=new g.VJ(1E3*this.Xo(a)+this.B,1E3*a+500,{priority:2,id:String(a),style:"ytp-ad-fadeout"});this.C[a]=c;b.push(c)}},this));
ZW(this.g,b)}};
g.h.KD=function(a){if(Tb(this.A,1E3*a)){var b=fY(this.g);null!==b&&(a=Math.max(0,1E3*a-1E3*this.g.getCurrentTime(1)),OU(b,"transition","opacity "+String(a)+"ms linear"),OU(b,"opacity","0"),Boa(this,b,a,0))}};
g.h.LD=function(a){tZ(this,1E3*a)&&(this.C[a]&&(g.pW(this.g.g,[this.C[a]],void 0),delete this.C[a]),this.Xl())};
g.h.SD=function(){g.W(g.$V(this.g.g),4)&&this.Xl()};
g.h.Xl=function(){var a=fY(this.g);null!==a&&(null!=this.o&&(g.YE(this.o),this.o=null),uZ(this,a,this.g.app.I.getVolume()/100),OU(a,"transition",""),OU(a,"opacity","1"))};
g.h.MD=function(a){if(Tb(this.A,1E3*a)){var b=1E3*a;200>=1E3*this.g.getCurrentTime(1)-b&&(Noa(this.g,this.Xo(a)+this.I/1E3),0>=this.D||(a=fY(this.g),null!==a&&(OU(a,"opacity","0"),uZ(this,a,0),null!=this.o&&g.YE(this.o),this.o=GW((0,g.A)(this.ZU,this),0))))}};
g.h.ZU=function(){var a=fY(this.g);null!==a&&(OU(a,"transition","opacity "+String(this.D)+"ms linear"),OU(a,"opacity","1"),Boa(this,a,this.D,1))};
g.h.RD=function(a,b,c){if(null!==this.o){var d=Math.max(1,b-(0,g.G)());d=-1*a.getVolume()*c/d;d=Math.max(0,a.getVolume()+d);uZ(this,a,d);0<d?this.o=GW((0,g.A)(this.RD,this,a,b,c),c):this.o=null}};
g.h.QD=function(a,b,c){if(null!==this.o){var d=Math.max(1,b-(0,g.G)()),e=this.g.app.I.getVolume()/100;d=(e-a.getVolume())*c/d;d=Math.min(e,a.getVolume()+d);uZ(this,a,d);d<e?this.o=GW((0,g.A)(this.QD,this,a,b,c),c):this.o=null}};
g.h.W=function(){this.Xl();this.g.unsubscribe("applicationplayerstatechange",this.SD,this);sZ.Z.W.call(this)};g.D(vZ,g.L);var Ioa={ADSENSE:2,"ADSENSE/ADX":2,"YT:ADSENSE":2,DART:1,DART_DFA:1,DART_DFP:1,GDFP:1,"YT:DOUBLECLICK":1,FREEWHEEL:4,"YT:SHOPPING":14,SHOPPING:14,"ADSENSE-VIRAL":15,"YT:ADSENSE-VIRAL":15,"VIRAL-RESERVE":17,"YT:VIRAL-RESERVE":17};g.h=vZ.prototype;
g.h.load=function(a){if(this.kb=this.g.kb){var b=this.g.o;this.D=b.applyFadeOnMidrolls?new sZ(this.g):new rZ;var c=vX(this.g);c.o=Doa(this,a);if(c.o){c.containerElement=this.g.G.D;c.oc.TSLA=yna(this);c.oc.GET_MIDROLL_POSITION_IN_SEC=(0,g.A)(this.D.Xo,this.D);c.oc.DESCRIPTION_URL="http://www.youtube.com/video/"+tX(this.g).videoId;if(a=$na(b).get(3)){var d="";a&2&&a&1?d="video":a&2?d="skippablevideo":a&1&&(d="standardvideo");a&4&&(d&&(d+="_"),d+="text_image_flash");c.A=d;if(b=b.ib)c.I=b}this.kb.U("adsManagerLoaded",
this.OD,!1,this);this.kb.U("adError",this.ND,!1,this);BC(this.kb,c,this);this.g.qe("bd")}}};
g.h.OD=function(a){if(a.A===this){var b={};Object.defineProperty(b,"currentTime",{get:(0,g.A)(function(){return this.g.getCurrentTime(1)},this),
enumerable:!0});Object.defineProperty(b,"duration",{get:(0,g.A)(function(){return this.g.g.ga().lengthSeconds},this),
enumerable:!0});try{var c=Eoa(this);this.o=vA(a,this.g.G,b,c)}catch(d){xZ(this,d);return}if(this.kd=this.o.tC(b,this.g.o.o)){this.D.Qv(this.o.We());this.F=new pZ(this.g,this.o,this.kd);g.M(this,this.F);g.$E((0,g.A)(this.F.F,this.F),0);g.jb(this.o.We(),0)||wZ(this);this.C.U(this.o,"companionBackfill",(0,g.A)(this.WU,this));this.C.U(this.o,"prefetched",(0,g.A)(this.fO,this));this.C.U(this.o,"loaded",(0,g.A)(this.UU,this));this.C.U(this.o,"adError",(0,g.A)(this.TU,this),!1);this.C.U(this.o,"start",(0,g.A)(this.VU,
this));this.C.U(this.o,"complete",(0,g.A)(this.cO,this));this.C.U(this.o,"adNotify",(0,g.A)(this.Al,this));this.C.U(this.o,"discardAdNotify",(0,g.A)(this.Cl,this));this.C.U(this.o,"companionInitialized",(0,g.A)(this.XU,this));this.C.U(this.o,"contentPauseRequested",(0,g.A)(this.xh,this));this.C.U(this.o,"contentResumeRequested",(0,g.A)(this.dg,this));this.C.U(this.o,"allAdsCompleted",g.y);this.J.P(this.g.g,"applicationplayerstatechange",this.YU);try{this.o.init("normal"),this.o.start()}catch(d){this.g.Yi.g(lZ,
"vmap_ads_manager_init_exception",void 0),this.o.destroy(),this.o=null,xZ(this,d)}}}};
g.h.YU=function(){if(g.W(g.$V(this.g.g),16)||g.W(g.$V(this.g.g),32)){var a=this.o;null!=a.Qb&&(a=a.Qb,a.o.stop(),a.A=!1)}else a=this.o,null!=a.Qb&&Cz(a.Qb)};
g.h.XU=function(a){if(a=a.g)g.Ye(this.G),this.G=new bZ(this.g,a)};
g.h.xh=function(a){yZ(this);if((this.A=a.Mb())&&this.A.Wb()){a=zZ(this.A);var b=this.A.C.o;b=0==b?1:0<b?2:-1==b?3:0;this.B=new cY(a,this.g,this.o,this.A.isSkippable(),this.A.isBumper(),!0,void 0,b);Goa(this,this.B);1!=b&&QP("video_to_ad",["apbs"]);a=this.g;a.L=!0;a.B||kZ(a);this.D.LD(this.A.C.o);this.B.show();Foa(this,"show_instream_ads")}};
g.h.dg=function(a){wZ(this);this.g.getCurrentTime(1)<this.g.g.ga().lengthSeconds&&(JZ(this.g),this.A&&this.A.Wb()&&(this.D.MD(this.A.C.o),null!=this.G&&(this.G.g=!0)));a=a.Mb();var b=yC(this.o);b&&b.N&&b.xb()?this.A=null:!a&&this.B instanceof vY||yZ(this);var c=!0;if(a&&a!==this.A&&!a.Wb()){if(b&&b.N&&!b.xb()){b=this.F;null!=b.g[0]&&(c=b.g[0],delete b.g[0],b.g[0]=new g.VJ(1E4,c.end,{id:"10",visible:!0}),c.visible=!1,ZW(b.o,[c,b.g[0]],1),ZW(b.o,[b.g[0]]));this.A=a;return}c=Xr(a);b=zZ(a);qX(c,"blockAllAds")?
(this.o.Rj(),this.B=new xY(this.g,this.o,1,!0),c=!1):qX(c,"hideMaster")&&14!=b?(this.B=new xY(this.g,this.o,0,!0),c=!1):(c=this.o,14==b?(this.B=new LY(this.g,c),5!=yC(this.o).bf()&&Hoa(this,a)):this.B=new pY(b,this.g,c,!0),this.B.show(),c=!0)}this.A&&this.A.Wb()&&Joa(this.g);this.A&&this.A.Wb()?(Foa(this,"set_previous_ad_end_time"),b=this.kd,0<b.A&&(b.g=(0,g.G)()/1E3),b=this.F,b.D=(0,g.G)()/1E3,b.A()):a&&a!==this.A&&!a.Wb()&&c&&(b=this.F,b.D=(0,g.G)()/1E3,b.A());this.F.F();this.A=a};
g.h.VU=function(a){(a=a.Mb())&&this.B&&(a=zZ(a),this.B.adSystem=a)};
g.h.cO=function(a){a.Mb().Wb()||this.A!==a.Mb()||(yZ(this),this.A=null)};
g.h.Al=function(a){null!=a.g&&(a=a.g.adBreakTime,null!=a&&this.g.g.X("adnotify",a))};
g.h.Cl=function(){this.g.g.X("discardadnotify")};
g.h.fO=function(a){var b=a.Mb();if(null!=b){var c=a.g.adBreakTime;this.N[c]=b;this.L||(this.g.qe("bl"),0==c&&a.Mb().Wb()||this.g.qe("fb"),this.L=!0)}};
g.h.UU=function(a){null!=a.Mb()&&(a.Mb().Wb()&&this.g.qe("bs"),a.Mb().C.B||a.Mb().Wb()||wZ(this))};
g.h.TU=function(a){xZ(this,a.getError())};
g.h.ND=function(a){var b=a.getError();"adLoadError"==b.Yb()&&a.g===this&&xZ(this,b)};
g.h.WU=function(a){Hoa(this,a&&a.Mb())};
g.h.W=function(){yZ(this);this.kb&&(this.kb.Ca("adsManagerLoaded",this.OD,!1,this),this.kb.Ca("adError",this.ND,!1,this));um(this.O);um(this.C);g.wG(this.J);this.I=!1;this.o&&(this.o.destroy(),this.o=null);g.Ye(this.D);g.Ye(this.G);vZ.Z.W.call(this)};
g.h.PD=function(a,b,c,d){if(3==b||19==c||2==c)a&&(d.break_type=a.bf(),d.sst=a.Ac,d.sidx=0),YY(this.g,c,d)};g.p(AZ,g.Y);AZ.prototype.Al=function(a){this.C=-1==a?this.T.getDuration():a;this.o||(this.o=this.P(this.T,"progresssync",this.B));this.B();this.A.show()};
AZ.prototype.Cl=function(){this.o&&(this.Ca(this.o),this.o=null);this.A.hide()};
AZ.prototype.B=function(){var a=this.T.getCurrentTime();a=Math.ceil(this.C-a);0<a?this.Zb(g.U("YTP_AD_NOTIFICATION",{X_SECONDS:a})):this.A.hide()};g.D(CZ,YW);CZ.A=10;CZ.o=1E3;CZ.g="livead";g.h=CZ.prototype;
g.h.create=function(){CZ.Z.create.call(this);this.I.P(this.g,"beginseeking",(0,g.A)(this.X,this,"beginseeking"));this.I.P(this.g,"endseeking",(0,g.A)(this.X,this,"endseeking"));this.I.P(this.g,"resize",(0,g.A)(this.X,this,"resize"));this.I.P(this.g,"presentingplayerstatechange",(0,g.A)(this.X,this,"presentingplayerstatechange"));this.I.P(this.g,"webglsettingschanged",(0,g.A)(this.X,this,"webglsettingschanged"));if(BZ(this)){var a=QJ(this.app.T);a.addEventListener("updatekevlarcompanion",TW);a.addEventListener("onPlaShelfInfoCardsReady",
VW);window.addEventListener("yt-navigate-start",WW)}this.qe("i");a=this.g.ga().Xb||{};this.o=new ioa(sX(this),a);this.D=new toa(this,this.g);this.V=!1;if(this.kb)this.kb.g.B.B=On();else{a=this.o.V?void 0:QX(this.F);var b=new UR(this.app,2);this.G=new rA(PX(this.F),void 0,a,QJ(b),!0);this.G.setSize(-1,-1);this.kb=new AC(this.G)}if(this.o.vmap&&!this.o.da){this.B=new vZ(this);try{this.B.load(this.o.vmap)}catch(c){g.TE(c),this.Yi.g(lZ,"vmap_load_exception",{err_msg:c.toString()}),this.B.dispose(),this.B=
null,Moa(this,doa(new boa(this)))}}else Moa(this,doa(new boa(this)));this.D&&(this.N=this.app.A.g,this.N.subscribe("cuepointupdated",this.UA,this),a=FZ(this),null!=a&&(a.F=g.ZV(this.app)),a={},a.allowed=this.D.o,aX(this,{},a))};
g.h.destroy=function(){this.L&&HZ(this);this.app.g.experiments.g("disable_new_pause_state3")||g.qW(this.g,this.be,void 0);Loa(this);g.Ze(this.A,this.ba,this.B);this.ba=this.A=null;this.N.unsubscribe("cuepointupdated",this.UA,this);this.D=this.o=this.B=this.N=null;EX=BX=AX=!1;HX();this.C&&CZ.Z.destroy.call(this);if(BZ(this)){var a=QJ(this.app.T);a.removeEventListener("updatekevlarcompanion",TW);a.removeEventListener("onPlaShelfInfoCardsReady",VW);window.removeEventListener("yt-navigate-start",WW);
SW=null}};
g.h.isFullscreen=function(){return this.g.isFullscreen()||this.o.G};
g.h.Au=function(){if(this.D){var a=this.D;var b={allowed:a.o};a.g.excludedAds&&(b.ex_ad=a.g.excludedAds);a.A&&(b.at=a.A);a=b}else a=CZ.Z.Au.call(this);return a};
g.h.getRootNode=function(){return this.g.getRootNode()};
g.h.getCurrentTime=function(a){return this.app.getCurrentTime(a)};
g.h.zu=function(){return this.O};
g.h.Ws=function(a){CZ.Z.Ws.call(this,a);var b=(0,window.parseInt)(a.getId(),10);if(this.A&&!(0,window.isNaN)(b))if("ytp-ad-fadeout"==a.style){var c=this.A,d=c.dj(b);if(d&&!iZ(c.C,d)&&(c=c.B,d.o)){var e=fY(c.g);d=Math.max(0,WY(d)+c.B+c.A-1E3*c.g.getCurrentTime(1));OU(e,"transition","opacity "+String(d)+"ms linear");OU(e,"opacity","0");koa(c,e,d,0)}}else roa(this.A,b);this.B&&!(0,window.isNaN)(b)&&("ytp-ad-fadeout"==a.style?(d=this.B,(c=d.N[b])&&c.Wb()&&d.D.KD(b)):0>b&&(b=this.kb.g,d=new Im("contentComplete"),
b.dispatchEvent(d),d.A&&(Tm(Qm(),420706009)||b.B.clear(),null!=b.o&&(d=b.o.bi(),null!=d&&JA(d,b.B.g)))));if("livead"===a.getId()&&null!=FZ(this)){b=FZ(this);for(a=Math.floor(a.start/1E3);g.t(b.A[a]);)a++;d=b.fa++;c=0==a?new kX(1):new kX(2,a);e=b.Y;var f=aoa(b.Y.o,c.g);d=new UY(e,d,c,f,!1);b.A[a]=d;d.subscribe("adBreakComplete",b.ea,b);$Y(d)}};
g.h.Xs=function(a){CZ.Z.Xs.call(this,a);var b=(0,window.parseInt)(a.getId(),10),c=1E3*this.getCurrentTime(1);this.A&&!(0,window.isNaN)(b)&&c>a.start&&(0x8000000000000==a.end||0x7ffffffffffff==a.end)&&(c=this.A,(b=c.A[b])&&c.g==b&&!b.o&&b.isVisible&&b.G&&b.g instanceof pY&&b.g.zc("fullscreen"));this.B&&"ytp-ad-fadeout"==a.style&&this.B.D.Xl();"livead"===a.getId()&&null!=FZ(this)&&1E3*this.getCurrentTime(1)>=a.start&&(g.pW(this.g,[a],1),soa(FZ(this)))};
g.h.qe=function(a){var b=a;"nl"==a&&(a=this.D,a.C++,b=a.C.toString());this.aa[b]=(0,g.G)();"bs"!=b&&"fb"!=b||aX(this,this.aa,this.Y)};
g.h.UA=function(a){var b=FZ(this);if(null!=b&&null!=b.F){var c=FZ(this).F.getCurrentTime();(0,g.H)(a,function(a){0!=c&&a.Re>c&&(a=new g.VJ(1E3*Math.floor(c+Math.random()*Math.max(a.Re-10-c,0)),1E3*a.Re,{id:"livead",priority:2}),ZW(this,[a],1))},this)}};
g.h.zD=function(a){switch(a){case "addata":var b=this.o;return{adTag:b.adTag,adTest:b.Hd,forceAdType:b.forceAdType,isAfvSkippableInstreamEnabled:b.Y,isAfvStandardInstreamEnabled:b.aa,isBlazer:b.D,isDoubleClickEnabled:b.ea,isForcedAd:b.da,isFreeWheelEnabled:b.fa,isHouseBrandPlayer:b.sc,isLeanback:b.G,isShortform:b.Hc,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.zu();case "midrollfreqcap":if(this.B)return b=this.o.o,null!=b?b:0;b=this.A instanceof mZ?this.A:null;return null!=
b?b.V:0;case "breakscount":return this.B?(b=this.B,b=null!=b.o?b.o.We().length:0):b=this.A?this.A.Eb.length:0,b;case "displaystate":return b=null,this.A&&this.A.g&&(b=this.A.g.g),{adFormat:b instanceof MX?b.adType:!1,adSkipped:b instanceof cY?b.D:!1,hasVideoStarted:b instanceof cY?b.G:!1,skippable:b instanceof cY?b.ba:!1};case "getContentVideoData":return b=tX(this),{adModule:b.adModule,partnerTrackingToken:b.Fl,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.A){a=this.A.A;var c=[];
for(b in a)a.hasOwnProperty(b)&&c.push({isInterruptive:a[Number(b)].o});return c}return 0}};
g.h.IU=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};
g.h.Fd=function(){return!1};g.D(NZ,g.L);g.h=NZ.prototype;g.h.Jw=function(){if(!this.g){var a=this.Jw;if("lb3"==g.X(this.T).g)var b=!1;else b=this.T.ga(),b=b.Nm||b.captionTracks.length||b.Ba&&b.ua&&null!=b.ua.g.en?!0:!1;(a=OZ(this,"captions",a,b))&&!this.g&&(this.g=a,this.T.za("onApiChange"))}};
g.h.Fw=function(){this.I=this.I||OZ(this,"endscreen",this.Fw,g.Poa(this))};
g.h.Lw=function(){var a;if(!(a=this.B)){a=this.Lw;var b=this.T.ga();var c=g.X(this.T).experiments,d=g.rF()&&(qF("ps4 vr")||qF("ps4 pro vr")),e=d&&c.g("enable_spherical_ps4");d=d&&c.g("enable_mesh_ps4");var f=c.g("enable_mesh_cobalt"),k=c.g("enable_spherical_kabuki")||b.Ww,l=uO(g.X(this.T));b=b.Pf()?d||f||k||l||c.g("html5_enable_spherical"):b.lh()?l||e||!1||k||c.g("html5_enable_spherical"):b.mh()?l||e||!1||c.g("html5_enable_spherical3d"):b.mi()?l||c.g("html5_enable_anaglyph3d"):l&&(c.g("enable_webgl_noop")||
c.g("enable_white_noise"));a=OZ(this,"webgl",a,b)}this.B=a};
g.h.Nw=function(){this.O=this.O||OZ(this,"ypc",this.Nw,g.vQ(this.T.ga(),"ypc_module"))};
g.h.Mw=function(){this.V=this.V||OZ(this,"ypc_clickwrap",this.Mw,g.vQ(this.T.ga(),"ypc_clickwrap_module"))};
g.h.Iw=function(){this.N=this.N||OZ(this,"spacecast",this.Iw,this.T.ga().spacecastModule)};
g.h.Hw=function(){this.L=this.L||OZ(this,"heartbeat",this.Hw,g.vQ(this.T.ga(),"ypc_license_checker_module"))};
g.h.Dw=function(){if(!this.A){var a=this.Dw;var b=g.X(this.T);if("3"==b.B)b=!1;else if(b.G.isEmpty()&&"annotation-editor"!=b.g&&"live-dashboard"!=b.g){var c=this.T.ga();b=b.experiments.g("disable_new_iv_module_create_logic")?g.vQ(c,"iv3_module"):!!c.Ff}else b=!0;if(this.A=OZ(this,"annotations_module",a,b)){a=this.A;for(var d in this.ba)a.subscribe(d,this.ba[d]);this.T.za("onApiChange")}}};
g.h.Gw=function(){this.D=this.D||OZ(this,"fresca",this.Gw,g.vQ(this.T.ga(),"fresca_module"))};
g.h.xq=function(){this.J||(this.J=OZ(this,"remote",this.xq,g.X(this.T).Ib))&&this.J.create()};
g.h.Kw=function(){this.C||(this.C=OZ(this,"unplugged",this.Kw,g.X(this.T).Aa))&&this.C.init()};
g.h.Ew=function(){if(!this.G){var a=this.Ew;var b=g.X(this.T);"3"==b.B?b=!1:"creator-endscreen-editor"==b.g?b=!0:(b=this.T.ga(),b=!!b&&!!g.zQ(b));(this.G=OZ(this,"creatorendscreen",a,b))&&this.T.za("onApiChange")}};
g.h.W=function(){NZ.Z.W.call(this);PZ(this,!0)};g.D(QZ,g.Y);QZ.B="(max-width: 656px)";QZ.A="(min-width: 657px)";QZ.o="(min-width: 1294px) and (min-height: 630px)";QZ.g="(min-width: 1720px) and (min-height: 980px)";g.h=QZ.prototype;g.h.fJ=function(){this.D=new g.$g(0,0,0,0);this.B=new g.$g(0,0,0,0)};
g.h.Fu=function(a){g.Up(this.element,arguments)};
g.h.qg=function(){if(this.o){var a=this.Xa();if(!a.isEmpty()){var b=!g.ed(a,g.dh(this.B)),c=RZ(this);b&&(this.B.width=a.width,this.B.height=a.height);a=this.app.g;(c||b||a.ka)&&this.app.o.X("resize",this.Xa())}}};
g.h.dV=function(a,b){Uoa(this,b)};
g.h.eV=function(a){a.g&&Uoa(this,a.g)};
g.h.Xa=function(){var a=this.app.g,b=this.app.g.experiments.g("legacy_cougar_fullscreen_optimization")?g.bG()==this.element:this.app.I.isFullscreen();if(b&&sF())return new g.dd(window.outerWidth,window.outerHeight);if(b||a.wm){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.C&&this.C.media==a||(this.C=window.matchMedia(a));var c=this.C&&this.C.matches}if(c)return new g.dd(window.innerWidth,window.innerHeight)}else if(this.O&&!this.app.pa)for(a=
0;a<this.O.length;a++)if(b=this.O[a],b.query.matches)return new g.dd(b.size.width,b.size.height);return new g.dd(this.element.clientWidth,this.element.clientHeight)};
g.h.zI=function(){this.o&&dY(this);(this.app.g.experiments.g("player_state_change_resize_killswitch")||WZ(this)!=this.J)&&this.qg()};
g.h.fV=function(){dY(this)};
g.h.W=function(){this.A&&(this.A.disconnect(),this.A=null);this.G&&g.LG(this.G);this.o=null;QZ.Z.W.call(this)};g.D(XZ,g.xG);g.h=XZ.prototype;g.h.aV=function(a){a=mG(a);if(!bd(a,this.C)){var b=2;this.F&&(b|=8);this.C=a;this.jc(b,!0)}};
g.h.QN=function(){this.F&&this.jc(8,!0);this.jc(2,!1)};
g.h.Eu=function(a){var b=mG(a);bd(b,this.C)||(this.C=b,(a=g.kG(a))&&this.V(a)&&(this.jc(4,!0),this.g.Ca(this.B),this.B=this.g.P(this.A,"mouseover",this.WD),this.L=this.g.P(this.A,"mouseout",this.WD)))};
g.h.WD=function(a){a=nG(a);a&&this.V(a)||(this.C=new g.ad(window.NaN,window.NaN),Woa(this))};
g.h.rK=function(){this.jc(1,!0)};
g.h.PH=function(a){a=g.kG(a);a instanceof window.Element&&!(0<a.tabIndex)||this.jc(1,!0)};
g.h.VD=function(){this.F=!0;this.g.Ca(this.D);this.D=this.g.P(window.document,"mouseup",this.bV)};
g.h.bV=function(){this.F=!1;this.jc(8,!1);this.g.Ca(this.D);this.D=this.g.P(this.A,"mousedown",this.VD)};
g.h.XD=function(a){if(a=a.changedTouches[0])this.Y=a.identifier,this.g.Ca(this.G),this.G=this.g.P(this.A,"touchend",this.cV,void 0,!0),this.jc(1024,!0)};
g.h.cV=function(a){for(var b,c=0;c<a.changedTouches.length;c++){var d=a.changedTouches[c];if(d.identifier==this.Y){b=d;break}}b&&(this.g.Ca(this.G),this.G=this.g.P(this.A,"touchstart",this.XD,void 0,!0),this.jc(1024,!1))};
g.h.jc=function(a,b){var c=!this.o;b?(this.o|=a,a&1&&this.I.start(),a&2&&this.J.start()):(this.o&=~a,a&1&&this.I.stop(),a&2&&this.J.stop(),a&512&&this.N.stop());this.o&512&&!(this.o&128)&&this.N.Qd(this.O);var d=!this.o;c!=d&&this.X("autohideupdate",d)};g.D(YZ,g.Y);YZ.prototype.show=function(){YZ.Z.show.call(this);this.L()};
YZ.prototype.L=function(){var a=1-1/1.5;this.B=(this.B+this.I)%(this.width*a);this.C=(this.C+this.G)%(this.height*a);this.A.drawImage(this.J,-1*this.B,-1*this.C);this.A.fillRect(0,this.D,this.width,75);this.D=(this.D+75+7)%this.height-75;this.o.isActive()||this.F.Qd()};
YZ.prototype.hide=function(){this.o.stop();this.F.stop();YZ.Z.hide.call(this)};g.D(b_,g.Y);var ssa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;b_.prototype.show=function(){b_.Z.show.call(this);c_(this,function(a){a.show()})};
b_.prototype.hide=function(){b_.Z.hide.call(this);c_(this,function(a){a.hide()})};
b_.prototype.C=function(a){if(g.$Z(a,this.o,!pO(g.X(this.o)))){a={as3:!1,html5:!0,player:!0,cpn:this.o.ga().clientPlaybackNonce};var b=this.o;b.za("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:a});b.isFullscreen()&&g.cW(b)}};g.sa(e_);var w1=g.x("yt.player.utils.VideoTagPool.instance")||e_.getInstance();g.ra("yt.player.utils.VideoTagPool.instance",w1,void 0);g.h=e_.prototype;g.h.hx=function(a){if(!(this.g.length>=a)){a-=this.g.length;for(var b=0;b<a;b++)epa(this)}};
g.h.cI=function(a,b){if(this.g.length)return this.g.pop();var c=epa(this,a,b);a||g.pb(this.g,c);return c};
g.h.QS=function(a){if(a&&g.jb(this.o,a)){a.src&&(hN&&0<a.readyState&&(a.currentTime=Math.max(qsa,0)),a.removeAttribute("src"),a.load(),a.g&&a.g.o&&(a.g&&a.g.dispose(),a.g=null));for(var b in gG)gG[b][0]==a&&g.jG(b);g.pb(this.o,a);g.pb(this.A,a)}};
g.h.gJ=function(a){return this.g.length>=(a||1)};
g.h.WG=function(){for(var a=this.A.length-1;0<=a;a--)g_(this,this.A[a]);this.g.length==this.o.length&&4<=this.g.length||(4>this.o.length?this.hx(4):(this.g=[],(0,g.H)(this.o,function(a){g_(this,a)},this)))};
e_.prototype.fillPool=e_.prototype.hx;e_.prototype.getTag=e_.prototype.cI;e_.prototype.releaseTag=e_.prototype.QS;e_.prototype.hasTags=e_.prototype.gJ;e_.prototype.activateTags=e_.prototype.WG;g.D(h_,g.Y);g.D(j_,g.Y);j_.prototype.show=function(){j_.Z.show.call(this);this.G()};
j_.prototype.hide=function(){j_.Z.hide.call(this);this.F.stop()};
j_.prototype.G=function(){var a=g.ZV(this.o),b=A1(this.o),c=this.o.o,d=c.app.D.oa(),e=this.o.g,f=a.Uq(),k=QU(a.aa,"bandwidth"),l=8*g.bb(k)/1024,m=QU(a.aa,"networkactivity"),n=g.bb(m)/1024,q=b.Ba,r=QU(a.aa,"livelatency"),w=g.bb(r),z=QU(a.aa,"bufferhealth"),B=g.bb(z);if(120<w||0>w)w="Uncertain";else{if(b.latencyClass&&"UNKNOWN"!=b.latencyClass)switch(b.latencyClass){case "NORMAL":var C="Optimized for Normal Latency";break;case "LOW":C="Optimized for Low Latency";break;case "ULTRALOW":C="Optimized for Ultra Low Latency";
break;default:C="Unknown Latency Setting"}else C=b.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";w=w.toFixed(1)+" s, "+C}a.G?(C=a.G.g,C=C.g+" / "+C.o,AJ(AU,rV(a))&&(C+=", SD only")):C="";var N=g.qO(),da=sQ(b,a.getCurrentTime());da=da?da.sequence:window.NaN;c=g.gW(c).infopanel;var Ga=b.videoId,Da=b.clientPlaybackNonce,Ea=b.clientPlaybackNonce?"":"display:none";f=f.totalVideoFrames?""+(f.droppedVideoFrames||0)+"/"+f.totalVideoFrames:"-";var Me=a.B?a.B.sa:"",Ya;
a:{if(b.Hh&&(Ya=b.Hh.match(/url=(https?)/))&&2==Ya.length){Ya=Ya[1];break a}Ya=""}d={video_id:Ga,cpn:Da,cpn_style:Ea,mime:"",dash:"no",dropped_frames:f,stream_host:Me,stream_type:Ya||e.fa,dimensions:d.clientWidth+" x "+d.clientHeight+(1<N?" * "+N:""),resolution:d.videoWidth+" x "+d.videoHeight,volume:Math.round(this.o.I.getVolume())+"%",relative_loudness:b.relativeLoudness.toFixed(1)+" db",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:B.toFixed(1)+" s",live_latency_style:q?"":"display:none",
live_latency_message:w,drm_style:C?"":"display:none",drm:C,sequence_number:da,sequence_number_style:"display:none",network_activity_bytes:n.toFixed(0)+" KB",shader_info:c,shader_info_style:c?"":"display:none"};b.Oa&&(e=sJ(b.Oa)?"yes":"no",e+=" ("+oJ(b.Oa),b.wd&&sJ(b.Oa)&&(e+="/"+oJ(b.wd)),e+=")",b.pd()&&(e+=" Manifestless"),d.dash=e,d.mime=b.Oa.mimeType,e=b.Oa.video.fps,1<e&&(d.resolution+="@"+e),b.Oa.video.g||b.Oa.video.primaries?(e=b.Oa.video.g||"unknown","smpte2084"==e?e+=" (PQ)":"arib-std-b67"==
e&&(e+=" (HLG)"),d.color=e+" / "+(b.Oa.video.primaries||"unknown"),d.color_style=""):d.color_style="display:none");(a=oV(a))&&a.video&&(d.optimal_resolution=a.video.width+" x "+a.video.height,1<a.video.fps&&(d.optimal_resolution+="@"+a.video.fps));i_(this.A,k);i_(this.D,m);i_(this.C,r);i_(this.B,z);this.update(d);this.F.start()};g.D(k_,g.L);k_.prototype.get=function(a){var b=g.eb(this.o,function(b){return b[0]==a});
return b?b[1]:null};
k_.prototype.set=function(a,b){this.remove(a,!0);for(this.o.push([a,b]);this.o.length>this.A;){var c=this.o.shift();this.g&&this.g(c[1])}};
k_.prototype.remove=function(a,b){if(b&&this.g){var c=this.get(a);if(c)this.g(c);else return}qb(this.o,function(b){return b[0]==a})};
k_.prototype.W=function(){this.g&&(0,g.H)(this.o,function(a){this.g(a[1])},this)};g.p(m_,g.L);m_.prototype.A=function(a){this.g=a[a.length-1].intersectionRatio};
m_.prototype.W=function(){g.L.prototype.W.call(this);this.g=null;this.o&&this.o.disconnect()};g.Y2=Jf(function(){var a=v.AudioContext||v.webkitAudioContext;try{return new a}catch(b){return b.name}});g.p(n_,g.Y);n_.prototype.show=function(){g.Y.prototype.show.call(this);this.o.Qd()};
n_.prototype.hide=function(){this.A.stop();g.Y.prototype.hide.call(this)};g.p(r_,g.Y);g.h=r_.prototype;g.h.show=function(){this.g||(this.C.P(this.o,"videodatachange",this.A.Qd,this.A),this.C.P(this.o,"videoplayerreset",this.A.Qd,this.A));g.Y.prototype.show.call(this)};
g.h.hide=function(){this.C&&g.wG(this.C);g.Y.prototype.hide.call(this)};
g.h.UM=function(a){var b=g.X(this.o);b.experiments.g("disable_new_pause_state3")&&pO(b)&&(a=lR(a.state)&&!lR(a.g)||bW(this.o)&&g.W(a.state,2),g.nh(this.element,"transition-delay",a?"2s":""));this.A.Qd()};
g.h.rS=function(){this.A.Qd()};
g.h.TM=function(){this.B.stop();this.hide();this.A.Qd()};
g.h.aA=function(){var a=g.$V(this.o);if(3==this.o.Za()&&(a.xb()||g.W(a,4)))var b=!0;else(b=g.TV(this.o).O)&&b.sT()?b=!0:(b=g.X(this.o),b=g.W(a,2)&&VV(this.o)&&b.ra?!0:!1);b?(b=!0,window.document.activeElement==this.bl&&this.o.getRootNode().focus(),this.bl.style.display="none"):(this.bl.style.display="",lR(a)?b=!0:(b=!g.X(this.o).experiments.g("disable_new_pause_state3"),b=!g.W(a,2)||VV(this.o)||b&&g.V1(this.o.app)?!1:!0));b?(this.B.show(),this.RT(this.o.Yf(),this.o.ga())):(this.B.hide(),g.W(a,1)||
this.B.stop())};
g.h.RT=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c=g.X(this.o);b=g.la(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!(!d||d instanceof g.aQ&&!d.videoId)){var e=g.aW(this.o).Xa();var f=g.qO(),k=e.width*f;f*=e.height;if(1280<k||720<f)if(e=d.bc(c,"maxresdefault.jpg"))break;if(c.experiments.g("enable_popular_thumbnail_size_serving_for_embeds")){if(854<k||480<f)if(e=d.bc(c,"hq720.jpg")||d.bc(c,"maxresdefault.jpg"))break;if(640<k||360<f)if(e=d.bc(c,"pop2.jpg"))break;
if(560<k||315<f)if(e=d.bc(c,"sddefault.jpg"))break;if(480<k||270<f)if(e=d.bc(c,"pop1.jpg"))break}if(640<k||480<f)if(e=d.bc(c,"maxresdefault.jpg"))break;if(c.experiments.g("enable_embed_quality_improvement")){if(480<k||360<f)if(e=d.bc(c,"sddefault.jpg"))break;if(320<k||180<f)if(e=d.bc(c,"hqdefault.jpg"))break;if(120<k||90<f)if(e=d.bc(c,"mqdefault.jpg"))break}if(320<k||180<f)if(e=d.bc(c,"sddefault.jpg")||d.bc(c,"hqdefault.jpg")||d.bc(c,"mqdefault.jpg"))break;if(e=d.bc(c,"default.jpg"))break}this.D.style.backgroundImage=
e?"url("+e+")":""};g.p(t_,g.uG);t_.prototype.C=function(){this.B();var a=g.X(this.T),b=this.T.ga(),c=[];a.I||c.push({src:b.bc(a,"mqdefault.jpg"),sizes:"320x180"});this.g.metadata=new window.MediaMetadata({title:b.title,artist:b.author,artwork:c});a=bW(this.T);this.o.has("nexttrack")!=a&&(c=b=null,a&&(b=(0,g.A)(function(){o_(this.A,FE(),g.U("YTP_NEXT"));this.T.Aj()},this),c=(0,g.A)(function(){gpa(this.A);
this.T.ol()},this)),s_(this,"nexttrack",b),s_(this,"previoustrack",c))};
t_.prototype.B=function(){var a=g.$V(this.T);a=a.isError()?"none":kR(a)?"playing":"paused";this.g.playbackState=a};
t_.prototype.W=function(){this.g.playbackState="none";this.g.metadata=null;for(var a=g.la(this.o),b=a.next();!b.done;b=a.next())s_(this,b.value,null);g.uG.prototype.W.call(this)};g.p(u_,g.Y);u_.prototype.N=function(a,b){hpa(this,b);this.D&&ipa(this,this.D)};
u_.prototype.L=function(a){var b=this.T.ga();this.A!=b.videoId&&hpa(this,b);this.o&&ipa(this,a.state);this.D=a.state};
u_.prototype.J=function(){this.C.hide();this.A&&(this.B[this.A]=(this.B[this.A]||0)+((0,g.G)()-this.G));this.G=0};g.p(w_,g.Y);w_.prototype.hide=function(){this.o.stop();this.B.style.display="none";g.Y.prototype.hide.call(this)};
w_.prototype.C=function(a){v_(this,a.state)};
w_.prototype.D=function(){v_(this,g.$V(this.A))};
w_.prototype.F=function(){this.B.style.display="block"};g.p(x_,g.bX);g.h=x_.prototype;g.h.show=function(){var a=y_(this);g.bX.prototype.show.call(this);this.ba&&(this.I.P(window,"blur",this.Ub),this.I.P(window.document,"click",this.oN));a||this.X("show",!0)};
g.h.hide=function(){var a=y_(this);g.bX.prototype.hide.call(this);jpa(this);a&&this.X("show",!1)};
g.h.Me=function(a,b){this.C=a;this.L.show();b?(this.J||(this.J=this.I.P(this.T,"appresize",this.Tv)),this.Tv()):this.J&&(this.I.Ca(this.J),this.J=null);a&&(a.getAttribute("aria-haspopup"),a.setAttribute("aria-expanded",!0),window.document.activeElement&&g.Od(a,window.document.activeElement)&&this.focus())};
g.h.Tv=function(){nqa(g.TV(this.T).F,this.element,this.C)};
g.h.Ub=function(){var a=y_(this);jpa(this);this.L.hide();a&&this.X("show",!1)};
g.h.Fh=function(a,b){y_(this)?this.Ub():this.Me(a,b)};
g.h.oN=function(a){var b=oG(a);b&&(g.Od(this.element,b)||this.C&&g.Od(this.C,b)||!g.fX(a))||this.Ub()};g.p(z_,x_);z_.prototype.D=function(a){a?(kpa(this),this.Me()):this.Ub()};
z_.prototype.onClick=function(){this.A||(this.A=!0,g.hW(this.o,"mutedAutoplayClick",{videoPlayedSeconds:this.o.getCurrentTime()-this.o.ga().Dy}));this.o.cg()};g.p(A_,g.uG);g.h=A_.prototype;g.h.init=function(){var a=g.$V(this.g);this.No(a);this.Pi();this.Bb()};
g.h.Wz=function(a,b){if(this.Aa!=b.videoId){this.Aa=b.videoId;var c=this.B;c.O=b&&0<b.Qh.length?5E3:3E3;c.jc(512,!0);this.Pi()}};
g.h.KQ=function(){this.Wz(0,this.g.ga())};
g.h.Vj=function(){var a=g.jW(this.g)&&g.kW(this.g);(a=this.sa||a)||(a=g.TV(this.g).D,a=!!a&&a.aM());return a||this.ib||this.g.app.yc};
g.h.Lg=function(){var a=!this.Vj();g.T(this.g.getRootNode(),"ytp-menu-shown",!a)};
g.h.MM=function(a){if(!g.Od(this.g.getRootNode(),a))return!1;for(;a&&!g.Ud(a);)a=a==this.g.getRootNode()?null:g.Nd(a);return!!a};
g.h.Ss=function(a){var b=this.g.getRootNode();g.T(b,"ytp-autohide",a);a&&(this.J=!1,g.Vp(b,"ytp-touch-mode"));b=this.g;a=!a;b.za("onVideoAreaChange");b.za(a?"onShowControls":"onHideControls")};
g.h.mR=function(a){if(lR(g.$V(this.g))&&!g.X(this.g).Fa){var b=this.g.ga();b.videoId&&this.g.zz(yQ(b))}this.B.o||B_(this,oG(a))||y_(this.Y)||(g.$V(this.g),g.rG(a));this.J=!0;g.S(this.g.getRootNode(),"ytp-touch-mode");this.B.jc(2,!0)};
g.h.iR=function(a){g.fX(a)&&y_(this.Y)?(this.Y.onClick(),2==this.g.Za()&&this.g.fd()):B_(this,oG(a))||(this.B.jc(2,!0),g.fX(a)&&(this.gn()?g.rG(a):(a=g.$V(this.g),g.W(a,2)&&VV(this.g)||p_(this.F,!kR(a)),g.X(this.g).sa&&!lR(a)?this.da.isActive()?(this.F.hide(),this.da.stop()):this.da.start():this.Xz())))};
g.h.Xz=function(){var a=g.$V(this.g);g.W(a,2)&&VV(this.g)||(kR(a)?this.g.qd():this.g.fd())};
g.h.jR=function(a){B_(this,oG(a))||3!=this.g.Za()&&g.cW(this.g)};
g.h.kR=function(a){lpa(this,.3,a.scale);g.rG(a)};
g.h.lR=function(a){lpa(this,.1,a.scale)};
g.h.Bb=function(){var a=this.he(),b=g.aW(this.g).Xa(),c=this.g.isFullscreen(),d=this.g.getRootNode();g.X(this.g).experiments.g("autohide_resize_killswitch")||g.tF&&Woa(this.B);g.T(d,"ytp-fullscreen",c);g.T(d,"ytp-small-mode",!a&&(480>b.width||270>b.height));g.T(d,"ytp-big-mode",a);this.D&&$oa(this.D,b)};
g.h.OQ=function(a){this.No(a.state);this.Pi()};
g.h.Pi=function(){var a=2==this.g.Za(),b=!0;if(a){b=g.TV(this.g).o;var c;if(c=A1(b.app).isListed)b=b.o,c=null!=b.g&&null!=K(b.g,1)&&null!=K(He(b.g),4)&&K(ze(He(b.g),Qe,4),1)?!1:!0;b=c}c=g.X(this.g);var d=c.experiments.g("embed_show_infobar_on_playback")&&c.A&&!c.F&&5==this.g.app.N;a=!!this.Aa&&!g.UV(this.g)&&(a?b:c.Hc||this.g.isFullscreen()||d);this.L!=a&&(this.L=a,g.T(this.g.getRootNode(),"ytp-hide-info-bar",!a))};
g.h.No=function(a){var b=lR(a);b!=this.Jb&&(this.Jb=b,this.Ya&&this.Ca(this.Ya),this.Ya=this.P(g.aW(this.g),"touchstart",this.mR,void 0,b));var c;(c=a.xb()&&!g.W(a,32))||(c=g.TV(this.g).L,c=!!c&&c.cM());this.B.jc(128,!c);c=3==this.g.Za();this.B.jc(256,c);c=this.g.getRootNode();if(g.W(a,2))var d=["ended-mode"];else d=[],g.W(a,8)?d.push("playing-mode"):g.W(a,4)&&d.push("paused-mode"),g.W(a,1)&&!g.W(a,32)&&d.push("buffering-mode"),g.W(a,32)&&d.push("seeking-mode"),g.W(a,64)&&d.push("unstarted-mode");
g.Db(this.ka,d)||(g.Wp(c,this.ka),this.ka=d,g.Up(c,d));d=g.X(this.g);var e=g.W(a,2);g.T(c,"ytp-hide-controls",("3"==d.B?!e:"1"!=d.B)||b);g.T(c,"ytp-native-controls","3"==d.B&&!b&&!e);if(g.W(a,128)){this.D||(this.D=new b_(this.g),g.M(this,this.D),this.D.Ea(c),g.uW(this.g,this.D.element,4));b=this.D;a=a.g;for(c=0;c<b.B.length;c++)b.Ca(b.B[c]);b.B=[];c=a.messageKey;d=g.X(b.o);"play"!=d.g||"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=c&&"YTP_ERROR_UNSUPPORTED_DEVICE"!=c||(c="YTP_HTML5_FLASH_DEPRECATED");
if("YTP_ERROR_GENERIC_WITHOUT_LINK"!=c||d.sc)if("YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=c||d.sc)if("YTP_HTML5_FLASH_DEPRECATED"==c)b.Zb(d_(b,c,"//support.google.com/googleplay/answer/2844198#movies",!1,!0,"YTP_ERROR_VIDEO_UNAVAILABLE"));else{a=a.message.split(ssa);c=[];for(d=0;d<a.length;d+=3){e=a[d++].split("\n");c.push(e[0]);for(var f=1;f<e.length;f++)c.push({H:"br"}),c.push(e[f]);d<a.length&&c.push({H:"a",R:{href:a[d],target:a[d+1]},K:[a[d+2]]})}b.Zb({H:"span",K:c})}else b.Zb(d_(b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",
"//"+jO(d)+"/html5"));else if(b.Zb(d_(b,"YTP_ERROR_GENERIC_WITH_LINK_AND_CPN","//support.google.com/youtube/?p=player_error1",!0)),d.ka&&!d.A)for(a=(0,g.A)(b.C,b),d=b.element.getElementsByTagName("a"),e=0;e<d.length;e++)c=b.P(d[e],"click",a),b.B.push(c);this.D.show()}else this.D&&(this.D.dispose(),this.D=null)};
g.h.gn=function(){return g.jW(this.g)&&g.kW(this.g)?(this.g.ql(!1,!1),!0):g.UV(this.g)?(g.WV(this.g,!0),!0):!1};
g.h.NM=function(a){this.ib=a;this.Lg()};
g.h.he=function(){return!1};g.D(C_,g.bX);C_.prototype.B=function(){var a=this.A.th();a=ZX(new XX(a.seekableStart,a.seekableEnd),a.current,0);this.D.style.width=100*a+"%"};
C_.prototype.C=function(){g.YN(g.X(this.A))||(2==this.A.Za()?this.o||(this.show(),this.o=this.P(this.A,"progresssync",this.B),this.B()):this.o&&(this.hide(),this.Ca(this.o),this.o=null))};g.p(E_,g.Y);E_.prototype.W=function(){this.o&&this.o();g.Y.prototype.W.call(this)};
E_.prototype.F=function(){g.MG("iv-button-mouseover")};
E_.prototype.D=function(a){g.jW(this.T);var b=g.Tp(this.T.getRootNode(),"ytp-cards-teaser-shown");g.MG("iv-teaser-clicked",b);a=0==a.screenX&&0==a.screenY;this.T.ql(!g.kW(this.T),a,g.IY.Jv)};g.p(G_,g.Y);g.h=G_.prototype;g.h.UC=function(){g.jW(this.T)&&g.kW(this.T)&&this.g&&3!=this.C.g&&this.ul()};
g.h.PM=function(){this.ul();g.MG("iv-teaser-clicked",!!this.o);this.T.ql(!0,!1,g.IY.Jv)};
g.h.OM=function(){g.MG("iv-teaser-mouseover");this.o&&this.o.stop()};
g.h.FR=function(a){this.o||!a||g.kW(this.T)||this.A&&this.A.isActive()||(mpa(this,a),g.MG("iv-teaser-shown"))};
g.h.Yz=function(){this.G.stop();this.o&&this.o.isActive()&&this.I.start()};
g.h.yh=function(){this.I.stop();this.o&&!this.o.isActive()&&this.G.start()};
g.h.qQ=function(){this.o&&this.o.stop()};
g.h.oQ=function(){this.ul()};
g.h.ul=function(){!this.o||this.B&&this.B.isActive()||(this.C.hide(),g.Vp(this.T.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.Ht(function(){for(var a=g.la(this.D),b=a.next();!b.done;b=a.next())this.Ca(b.value);this.D=[];this.o&&(this.o.dispose(),this.o=null);D_(this.F,!0)},330,this),this.B.start())};
g.h.W=function(){var a=this.T.getRootNode();a&&g.Vp(a,"ytp-cards-teaser-shown");g.Ze(this.A,this.B,this.o);g.Y.prototype.W.call(this)};g.p(g.I_,g.bX);g.I_.prototype.Ga=function(a,b){g.bX.prototype.Ga.call(this,a,b);this.X("size-change")};g.p(K_,g.bX);K_.prototype.da=function(){this.X("size-change")};
K_.prototype.focus=function(){this.O.focus()};
K_.prototype.fa=function(){this.X("back")};g.p(g.L_,K_);g.L_.prototype.V=function(){this.F.X("size-change")};
g.L_.prototype.focus=function(){for(var a=0,b=0;b<this.La.length;b++)if("true"==this.La[b].element.getAttribute("aria-checked")){a=b;break}this.La[a].focus()};g.p(g.N_,x_);g.h=g.N_.prototype;g.h.show=function(){x_.prototype.show.call(this);this.Rl()};
g.h.hide=function(){x_.prototype.hide.call(this);1<this.o.length&&g.R_(this)};
g.h.Rl=function(){rpa(this);this.g&&(qpa(this),g.Fh(this.element,this.size))};
g.h.Qe=function(){var a=this.o.pop(),b=O_(this);P_(this,a,b,!0)};
g.h.uT=function(a,b,c){this.F.dispose();this.F=null;g.S(this.element,"ytp-popup-animating");c?(g.S(a.element,"ytp-panel-animate-forward"),g.Vp(b.element,"ytp-panel-animate-back")):(g.S(a.element,"ytp-panel-animate-back"),g.Vp(b.element,"ytp-panel-animate-forward"));g.Fh(this.element,this.size);this.D=new g.Ht(g.Aa(this.mO,a,b),250,this);this.D.start()};
g.h.mO=function(a){g.Vp(this.element,"ytp-popup-animating");a.detach();g.Wp(a.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);this.D.dispose();this.D=null};
g.h.gN=function(a){if(!g.pG(a))switch(g.lG(a)){case 27:this.Ub();g.rG(a);break;case 37:1<this.o.length&&this.Qe();g.rG(a);break;case 39:g.rG(a)}};
g.h.focus=function(){O_(this).focus()};
g.h.W=function(){x_.prototype.W.call(this);this.F&&this.F.dispose();this.D&&this.D.dispose()};g.p(S_,g.I_);S_.prototype.o=function(a){g.pG(a)||39!=g.lG(a)||(this.element.click(),g.rG(a))};g.p(U_,g.I_);U_.prototype.I=function(){V_(this,!this.o);this.X("select",this.o)};
U_.prototype.getValue=function(){return this.o};g.p(W_,g.L_);g.h=W_.prototype;g.h.fP=function(){HW(this.G.element)};
g.h.zP=function(){X_(this,this.T.jl(!0))&&o_(this.L.F,{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",R:{d:"M13.5 24.3L7.2 18.0l-2.1 2.1L13.5 28.5 31.5 10.5l-2.1-2.1L13.5 24.3z",fill:"#fff"}}]})};
g.h.AP=function(){X_(this,this.T.pz())&&o_(this.L.F,g.uE?{H:"div",ca:["ytp-icon","ytp-icon-code"]}:{H:"svg",R:{height:"100%",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",R:{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"}}]});g.yW(this.T,this.o.element)};
g.h.DP=function(){X_(this,this.T.getVideoUrl(!0,!0))&&o_(this.L.F,EE());g.yW(this.T,this.B.element)};
g.h.CP=function(){X_(this,this.T.getVideoUrl(!1,!0))&&o_(this.L.F,EE());g.yW(this.T,this.A.element)};
g.h.UP=function(a){V_(this.D,a)};
g.h.VP=function(){var a=this.D.getValue();Dqa(this.T.app,a);this.J.Ub();g.yW(this.T,this.D.element)};
g.h.cR=function(a){var b=g.ZV(this.T.app);b&&b.yj(new g.xO("feedback",!1,{gpu:gV()}));if(g.$Z(a,this.T,!pO(g.X(this.T)))){a=this.T;b=b={as3:!1,html5:!0,player:!0};var c=a.Hx();c.debug_error&&(b.player_error=c.debug_error.errorCode,b.player_error_details=c.debug_error.errorDetail);b.debug_text=a.jl(!0);a.za("onFeedbackStartRequest",b);a.isFullscreen()&&g.cW(a)}this.J.Ub()};
g.h.vR=function(){this.T.wz();this.J.Ub()};
g.h.RM=function(a,b){tpa(this,b)};g.p(Y_,g.N_);g.h=Y_.prototype;g.h.show=function(){this.G||(this.G=new W_(this.A,this.V,this),g.M(this,this.G),g.Q_(this,this.G));g.N_.prototype.show.call(this);g.zW(this.A,this.element,!0);upa(this.G,!0)};
g.h.hide=function(){vpa(this);g.N_.prototype.hide.call(this);g.zW(this.A,this.element,!1);this.G&&upa(this.G,!1)};
g.h.eP=function(a){var b=oG(a);this.g||b&&(g.Wd(b,"a")||g.Xd(b,"ytp-no-contextmenu"))||(g.rG(a),wpa(this),this.element.style.left="",this.element.style.top="",a=mG(a),a.x++,a.y++,this.Me(),b=g.zh(window.document.body),a=g.BD(a,this.size,0,void 0,b,5),g.uh(this.element,g.eh(a.rect)),g.wG(this.B),this.B.P(window.document,"contextmenu",this.nP),this.B.P(this.A,"fullscreentoggled",this.SM),this.B.P(this.A,"pageTransition",this.BQ))};
g.h.nP=function(a){g.pG(a)||g.Od(this.element,oG(a))||this.Ub()};
g.h.SM=function(){this.Ub();wpa(this)};
g.h.BQ=function(){this.Ub()};var Z2,tsa;Z2=[{option:g.O2.Qp,message:"YTP_COLOR_WHITE"},{option:g.O2.LG,message:"YTP_COLOR_YELLOW"},{option:g.O2.gF,message:"YTP_COLOR_GREEN"},{option:g.O2.QE,message:"YTP_COLOR_CYAN"},{option:g.O2.pE,message:"YTP_COLOR_BLUE"},{option:g.O2.yF,message:"YTP_COLOR_MAGENTA"},{option:g.O2.gv,message:"YTP_COLOR_RED"},{option:g.O2.yp,message:"YTP_COLOR_BLACK"}];tsa=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}];
g.$_=[{option:"fontFamily",message:"YTP_FONT_FAMILY",options:[{option:g.P2.av,message:"YTP_FONT_FAMILY_MONO_SERIF"},{option:g.P2.fv,message:"YTP_FONT_FAMILY_PROP_SERIF"},{option:g.P2.Zu,message:"YTP_FONT_FAMILY_MONO_SANS"},{option:g.P2.Kp,message:"YTP_FONT_FAMILY_PROP_SANS"},{option:g.P2.CASUAL,message:"YTP_FONT_FAMILY_CASUAL"},{option:g.P2.CURSIVE,message:"YTP_FONT_FAMILY_CURSIVE"},{option:g.P2.Np,message:"YTP_FONT_FAMILY_SMALL_CAPS"}]},{option:"color",message:"YTP_FONT_COLOR",options:Z2},{option:"fontSizeIncrement",
message:"YTP_FONT_SIZE",options:[{option:-2,text:"50%"},{option:-1,text:"75%"},{option:0,text:"100%"},{option:1,text:"150%"},{option:2,text:"200%"},{option:3,text:"300%"},{option:4,text:"400%"}]},{option:"background",message:"YTP_BACKGROUND_COLOR",options:Z2},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:tsa},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:Z2},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:tsa},{option:"charEdgeStyle",message:"YTP_CHAR_EDGE_STYLE",
options:[{option:g.N2.NONE,message:"YTP_EDGE_STYLE_NONE"},{option:g.N2.DROP_SHADOW,message:"YTP_EDGE_STYLE_DROP_SHADOW"},{option:g.N2.RAISED,message:"YTP_EDGE_STYLE_RAISED"},{option:g.N2.DEPRESSED,message:"YTP_EDGE_STYLE_DEPRESSED"},{option:g.N2.Iv,message:"YTP_EDGE_STYLE_OUTLINE"}]},{option:"textOpacity",message:"YTP_FONT_OPACITY",options:[{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}]}];g.p(Z_,g.uG);g.h=Z_.prototype;
g.h.Sx=function(a){var b=!1,c=g.lG(a),d=oG(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=g.X(this.g);g.pG(a)?(e=!1,k=!0):l.Ng&&(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((d=g.TV(this.g).B)&&e&&!f&&d.B&&d.B.g)switch(c){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:f=d.B.Ox(c)}l.sc||!e||f||(f=String.fromCharCode(c).toLowerCase(),this.A+=f,0=="awesome".indexOf(this.A)?(f=!0,7==this.A.length&&g.Yp(this.g.getRootNode(),
"ytp-color-party")):(this.A=f,f=0=="awesome".indexOf(this.A)));if(e&&!f){switch(c){case 32:k=!kR(g.$V(this.g));p_(this.o,k);k?this.g.fd():this.g.qd();k=f=!0;break;case 37:this.g.Rd()&&(o_(this.o,LE()),this.g.ie(-5*this.g.Uc()),k=f=!0);break;case 39:this.g.Rd()&&(o_(this.o,DE()),this.g.ie(5*this.g.Uc()),k=f=!0);break;case 38:k=Math.min(this.g.getVolume()+5,100);q_(this.o,k,!1);this.g.setVolume(k);k=f=!0;break;case 40:k=Math.max(this.g.getVolume()-5,0);q_(this.o,k,!0);this.g.setVolume(k);k=f=!0;break;
case 27:this.D()&&(k=f=!0);break;case 36:this.g.tc(0);k=f=!0;break;case 35:this.g.tc(window.Infinity),k=f=!0}if("3"!=l.B)switch(c){case 67:g.TV(this.g).g&&(k=this.g.xc("captions","track"),(f=g.TV(this.g).g)&&f.QC(),f=this.o,k=k&&k.displayName?g.U("YTP_SUBTITLES_OFF"):g.U("YTP_SUBTITLES_ON"),o_(f,CE(),k),k=f=!0);break;case 79:a0(this,"textOpacity")&&(f=!0);break;case 87:a0(this,"windowOpacity")&&(f=!0);break;case 187:a0(this,"fontSizeIncrement",!1,!0)&&(f=!0);break;case 189:a0(this,"fontSizeIncrement",
!0,!0)&&(f=!0)}var n;48<=c&&57>=c?n=c-48:96<=c&&105>=c&&(n=c-96);null!=n&&(k=this.g.th(),this.g.tc(n/10*(k.seekableEnd-k.seekableStart)+k.seekableStart),k=f=!0)}}b&&this.It(!0);(b||k)&&this.C.jc(2,!0);(f||e&&ypa(this,c,a.shiftKey))&&g.rG(a);l.Hb&&(a={keyCode:g.lG(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.pG(a),fullscreen:this.g.isFullscreen()},this.g.za("onKeyPress",a))};
g.h.Tx=function(a){a=g.lG(a);var b=g.TV(this.g).B;b&&b.B&&b.B.g&&b.B.Qx(a);9==a&&this.It(!0)};
g.h.It=function(a){g.T(this.g.getRootNode(),"ytp-probably-keyboard-focus",a);g.T(this.F.element,"ytp-probably-keyboard-focus",a)};
g.h.cA=function(a){g.TV(this.g).g&&this.g.Cd("captions","sampleSubtitles",a)};
g.h.W=function(){g.Jt(this.B);g.uG.prototype.W.call(this)};g.p(c0,g.Y);g.h=c0.prototype;g.h.hide=function(){g.Vp(this.o.getRootNode(),"ytp-expand-pause-overlay");g.Y.prototype.hide.call(this)};
g.h.OO=function(){this.V=!0;g.Vp(this.o.getRootNode(),"ytp-expand-pause-overlay");this.G.focus()};
g.h.QO=function(){this.V=!1;g.S(this.o.getRootNode(),"ytp-expand-pause-overlay")};
g.h.hN=function(){zpa(this,this.C-this.F)};
g.h.iN=function(){zpa(this,this.C+this.F)};
g.h.SO=function(a,b){if(g.$Z(b,this.o,this.ea)){var c=this.A[a],d=c.dc().videoId,e=c.getPlaylistId();g.U1(this.o.app,d,c.Wd,e,void 0,void 0)}};
g.h.jN=function(){this.Is(g.aW(this.o).Xa())};
g.h.kN=function(a){g.W(a.state,1)||g.W(a.state,16)||g.W(a.state,32)||(g.W(a.state,4)&&!g.W(a.state,2)?this.A.length&&(this.V||(g.S(this.o.getRootNode(),"ytp-expand-pause-overlay"),d0(this)),this.I.show()):this.I.hide())};
g.h.Is=function(a){var b=16/9,c=this.ba.he();a=a.width-(c?136:68);c=Math.ceil(a/(c?320:192));c=(a-8*c)/c;b=Math.floor(c/b);for(var d=0;d<this.D.length;d++){var e=this.D[d].va["ytp-suggestion-image"];e.style.width=c+"px";e.style.height=b+"px"}this.L.style.height=b+"px";this.O=c;this.F=a;this.C=0;this.VC(0);d0(this)};
g.h.lN=function(){var a=this.o.ga();a.lg?(a=(0,g.Id)(a.lg,function(a){return a&&!a.list}),this.A=(0,g.J)(a,function(a){return g.l_(a)})):this.A.length=0;
Apa(this)};
g.h.VC=function(a){this.L.scrollLeft=-a};
g.p(b0,g.L);b0.prototype.start=function(a,b,c){this.g=a;this.G=b;this.D=c;this.F=(0,g.ZG)();this.A()};
b0.prototype.A=function(){var a=(0,g.ZG)()-this.F,b=this.B;a=cja(b,a/this.D);if(0==a)b=b.F;else if(1==a)b=b.G;else{var c=Zc(b.F,b.C,a),d=Zc(b.C,b.D,a);b=Zc(b.D,b.G,a);c=Zc(c,d,a);d=Zc(d,b,a);b=Zc(c,d,a)}b=g.Xc(b,0,1);this.C((this.G-this.g)*b+this.g);1>b&&this.o.start()};g.p(e0,g.Y);e0.prototype.A=function(a){g.$Z(a,this.o)&&this.o.qz(this.gc)};g.p(f0,x_);g.h=f0.prototype;g.h.show=function(){x_.prototype.show.call(this);this.F.P(this.A,"videodatachange",this.Js);this.F.P(this.A,"onPlaylistUpdate",this.Js);this.Js()};
g.h.hide=function(){x_.prototype.hide.call(this);g.wG(this.F);Bpa(this,null)};
g.h.Js=function(){Bpa(this,this.A.Yf())};
g.h.Fo=function(){var a=this.o.Wn;if(a==this.G)this.B.element.setAttribute("aria-checked",!1),this.B=this.D[this.o.ce()];else{for(var b=g.la(this.D),c=b.next();!c.done;c=b.next())c.value.dispose();b=this.o.getLength();this.D=[];for(c=0;c<b;c++){var d=new e0(this.A,this.o,c);this.D.push(d);d.Ea(this.La)}this.B=this.D[this.o.ce()];this.G=a}this.B.element.setAttribute("aria-checked",!0)};
g.h.HR=function(a){var b=this.A.getVideoUrl(!0);a_(b,this.A,a)};
g.h.focus=function(){this.B.focus()};
g.h.W=function(){this.hide();x_.prototype.W.call(this)};g.p(g0,g.Y);g0.prototype.A=function(){g.T(this.element,"ytp-playlist-menu-button-tiny",400>g.aW(this.B).Xa().width);this.o&&2!=this.B.Za()?(this.update({text:g.U("YTP_PLAYLIST_POSITION",{CURRENT_POSITION:this.o.ce()+1,PLAYLIST_LENGTH:this.o.getLength()}),title:g.U("YTP_PLAYLIST_NAME",{PLAYLIST_NAME:this.o.title})}),this.g||(this.show(),w0(this.C))):this.g&&(this.hide(),w0(this.C))};
g0.prototype.D=function(){this.o&&this.o.unsubscribe("shuffle",this.A,this);(this.o=this.B.Yf())&&this.o.subscribe("shuffle",this.A,this);this.A()};g.p(h0,g.Y);h0.prototype.B=function(a){g.IW(this,g.W(a.state,2))};
h0.prototype.A=function(){g.$V(this.o);this.o.fd()};g.p(i0,x_);g.h=i0.prototype;g.h.EQ=function(a){a=oG(a);g.Od(this.N,a)||g.Od(this.F,a)||this.Fh()};
g.h.Ub=function(){x_.prototype.Ub.call(this);this.A.Xi(this.element)};
g.h.show=function(){var a=this.g;x_.prototype.show.call(this);this.kA();a||this.o.za("onSharePanelOpened")};
g.h.kA=function(){g.S(this.element,"ytp-share-panel-loading");g.Vp(this.element,"ytp-share-panel-fail");var a=this.o.ga(),b=this.o.getPlaylistId(),c=b&&this.G.checked;g.T(this.element,"ytp-share-panel-has-playlist",!!b);var d={action_get_share_info:1,feature:"player_embedded",video_id:a.videoId},e=g.X(this.o);e.Bc&&(d.authuser=e.Bc);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);g.nF(g.X(this.o).baseYtUrl+"share_ajax",{method:"GET",onError:(0,g.A)(this.jA,this),Vb:(0,g.A)(function(a,b){if(b){if(b.actions&&
EG(b.actions),!this.ma()){g.Vp(this.element,"ytp-share-panel-loading");Dpa(this);for(var c=b.links,d=0,e=0;e<c.length&&3>d;e++){var f=c[e],k=Cpa(f.img);k&&(k=new g.Y({H:"a",ca:["ytp-share-panel-service-button","ytp-button"],R:{href:f.url,target:"_blank",title:f.sname},K:[k]}),k.U("click",g.Aa(this.pR,f.url)),g.Xe(k,F_(this.A,k.element)),this.B.push(k),d++)}c=new g.Y({H:"a",ca:["ytp-share-panel-service-button","ytp-button"],K:[{H:"span",M:"ytp-share-panel-service-button-more",K:[g.uE?{H:"div",ca:["ytp-icon",
"ytp-icon-share-more"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},K:[{H:"rect",R:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{H:"path",R:{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"}}]}]}],R:{href:b.more,target:"_blank",title:g.U("YTP_MORE")}});c.U("click",(0,g.A)(this.mQ,this,b.more));g.Xe(c,F_(this.A,c.element));this.B.push(c);this.Ga("buttons",this.B)}}else this.jA()},this),
Yc:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,c?b:void 0,void 0,!0);this.Ga("link",a);this.Ga("linkText",a);HW(this.D)};
g.h.jA=function(){g.Vp(this.element,"ytp-share-panel-loading");g.S(this.element,"ytp-share-panel-fail")};
g.h.pR=function(a,b){if(g.fX(b)){var c=void 0;c=void 0===c?{}:c;c.target=c.target||"YouTube";c.width=c.width||"600";c.height=c.height||"600";var d=c;d||(d={});c=window;var e=a instanceof Bc?a:Fc("undefined"!=typeof a.href?a.href:String(a));var f=d.target||a.target,k=[];for(l in d)switch(l){case "width":case "height":case "top":case "left":k.push(l+"="+d[l]);break;case "target":case "noreferrer":break;default:k.push(l+"="+(d[l]?1:0))}var l=k.join(",");jc()&&c.navigator&&c.navigator.standalone&&f&&
"_self"!=f?(l=c.document.createElement("A"),g.Uc(l,e),l.setAttribute("target",f),d.noreferrer&&l.setAttribute("rel","noreferrer"),e=window.document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,c,1),l.dispatchEvent(e),c={}):d.noreferrer?(c=c.open("",f,l),e=Cc(e),c&&(g.tO&&Na(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,e=Wc(tc("b/12014412, meta tag with sanitized URL"),'<META HTTP-EQUIV="refresh" content="0; url='+La(e)+'">'),c.document.write(g.Nc(e)),c.document.close())):c=
c.open(Cc(e),f,l);c&&(c.opener||(c.opener=window),c.focus());g.rG(b)}};
g.h.mQ=function(a,b){a_(a,this.o,b)&&this.o.za("SHARE_CLICKED")};
g.h.AN=function(a){!a&&y_(this)&&this.Fh()};
g.h.focus=function(){this.D.focus()};
g.h.W=function(){x_.prototype.W.call(this);Dpa(this)};g.p(j0,g.Y);j0.prototype.F=function(){this.G.Fh(this.element,!1);g.yW(this.o,this.element)};
j0.prototype.C=function(){var a=g.X(this.o);this.Ga("icon",a.experiments.g("embed_new_share_icon")&&a.A?g.uE?{H:"div",ca:["ytp-icon","ytp-icon-ios-share"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"-6 -6 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{d:"M16 5l-1.42 1.42-1.59-1.59V16h-1.98V4.83L9.42 6.42 8 5l4-4 4 4zm4 5v11c0 1.1-0.9 2-2 2H6c-1.11 0-2-0.9-2-2V10c0-1.11.89-2 2-2h3v2H6v11h12V10h-3V8h3c1.1 0 2 .89 2 2z"}}]}:g.uE?{H:"div",ca:["ytp-icon","ytp-icon-sharrow"]}:{H:"svg",
R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{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.sm&&2!=this.o.Za();var b=g.aW(this.o).Xa().width;this.B=!!this.o.ga().videoId&&300<=b&&!a;g.T(this.A,"ytp-share-button-visible",this.B);a=480<b;b=g.X(this.o);b.experiments.g("enable_share_button_title")&&
b.A&&(g.T(this.A,"ytp-show-share-title",a),this.Ga("share",a?g.U("YTP_SHARE"):""));g.zW(this.o,this.element,this.B&&this.D)};
j0.prototype.W=function(){g.Y.prototype.W.call(this);g.Vp(this.A,"ytp-share-button-visible")};g.p(k0,g.Y);k0.prototype.B=function(){var a=g.ZV(this.o.app);a&&a.o.g.webkitShowPlaybackTargetPicker()};
k0.prototype.A=function(){var a=g.ZV(this.o.app);g.IW(this,!!a&&a.Hc);this.Ga("icon",g.lW(this.o)?g.uE?{H:"div",ca:["ytp-icon","ytp-icon-airplay-on"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,R:{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.uE?{H:"div",ca:["ytp-icon","ytp-icon-airplay-off"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{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"}}]})};g.p(l0,g.bX);g.h=l0.prototype;g.h.XM=function(a){g.W(a.state,32)?m0(this,this.o.ga()):this.G.hide()};
g.h.mo=function(){var a=this.o.th(),b=a.current,c=UO(this.Kb,141);b=this.Kb.g[c].vp(b);b!=this.L&&(c=WO(this.Kb,b,141),this.D=aY(this.da,c,141,141,!0),g.uh(this.ea,(this.I-this.D.width)/2),this.L=b);g.Qd(this.fa,g.eX(this.O?a.current-a.seekableEnd:a.current));g.iH(this.J);a=(0,g.A)(this.fp,this);this.J=g.hH(a,1,void 0);this.N.ij()};
g.h.YM=function(a,b){m0(this,b)};
g.h.fp=function(){g.O(this.A,!1);g.iH(this.J);var a=Math.round(.5*this.D.width),b=Math.round(.5*this.D.height),c=this.o.th(),d=c.current/(c.seekableEnd-c.seekableStart);c=this.Kb.g[0].TD();var e=this.Kb.g[0].Du();d=a*(e-c+1)*d-this.I/2;var f=Math.floor(d/a)+c;e=Math.min(f+Math.min(20,Math.ceil(this.I/a)),e);f=Math.max(f,c);var k;if(this.C>=f&&this.B<=e){for(k=this.C;k>e;k--)g.Gd(this.A.children[k-this.B]);for(k=f-1;k>=this.B;k--)g.Gd(this.A.children[k-this.B]);for(k=this.B-1;k>=f;k--)this.A.insertBefore(Epa(this,
k,a,b),this.A.firstChild);k=this.C+1}else g.Dd(this.A),k=f;for(;k<=e;k++){var l=Epa(this,k,a,b);this.A.appendChild(l)}for(k=f;k<=e;k++)g.nh(this.A.children[k-f],"transform","translatex("+(-d+(k-c)*a)+"px)");this.B=f;this.C=e;g.O(this.A,!0)};
g.h.WM=function(){for(var a=this.B;a<=this.C;a++)YO(this.Kb,a,this.D.width)};
g.h.VM=function(){var a=g.aW(this.o).Xa();this.I!=a.width&&(this.I=a.width,this.Kb&&(this.mo(),this.fp()))};
g.h.ZM=function(a){this.element.style.g=a+"px"};
g.h.show=function(){g.bX.prototype.show.call(this);m1(this.ba,!1)};
g.h.hide=function(){this.Kb&&m0(this,null);g.bX.prototype.hide.call(this);m1(this.ba,!0)};
g.h.W=function(){m0(this,null);g.bX.prototype.W.call(this)};
l0.g=200;g.p(n0,g.Y);g.h=n0.prototype;g.h.bN=function(a){g.W(a.state,32)?p0(this,this.o.ga()):this.g&&(g.W(a.state,16)||g.W(a.state,1))||this.B.hide()};
g.h.dN=function(a,b){p0(this,b)};
g.h.cN=function(){var a=g.$V(this.o);(g.W(a,32)||g.W(a,16))&&o0(this)};
g.h.aN=function(){this.C=window.NaN;o0(this)};
g.h.hide=function(){this.Kb&&p0(this,null);g.Y.prototype.hide.call(this)};g.p(q0,g.Y);g.h=q0.prototype;g.h.eN=function(){g.X(this.A).sa?(g.iW(this.A,this.A.isFullscreen()?"fullscreen_exit":"fullscreen_enter"),g.cW(this.A)):this.o.Fh(this.element,!0)};
g.h.YA=function(){Fpa(this);this.o.Me(this.element,!0)};
g.h.fN=function(){g.bG()==this.A.getRootNode()?this.C.start():(this.C.stop(),this.o&&this.o.hide())};
g.h.rH=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.YA()}};
g.h.bA=function(){g.IW(this,Zoa(this.A))};
g.h.uC=function(a){if(a){var b=g.uE?{H:"div",ca:["ytp-icon","ytp-icon-full-screen-close"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"g",M:"ytp-fullscreen-button-corner-2",K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{H:"g",M:"ytp-fullscreen-button-corner-3",K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{H:"g",M:"ytp-fullscreen-button-corner-0",K:[{H:"path",Pa:!0,M:"ytp-svg-fill",
R:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{H:"g",M:"ytp-fullscreen-button-corner-1",K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.U("YTP_EXIT_FULLSCREEN");window.document.activeElement==this.element&&this.A.getRootNode().focus()}else b=g.uE?{H:"div",ca:["ytp-icon","ytp-icon-full-screen"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"g",M:"ytp-fullscreen-button-corner-0",K:[{H:"path",Pa:!0,M:"ytp-svg-fill",
R:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{H:"g",M:"ytp-fullscreen-button-corner-1",K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{H:"g",M:"ytp-fullscreen-button-corner-2",K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{H:"g",M:"ytp-fullscreen-button-corner-3",K:[{H:"path",Pa:!0,M:"ytp-svg-fill",R:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.U("YTP_FULLSCREEN");this.Ga("icon",
b);this.Ga("title",this.o?null:a);w0(this.D.o)};
g.h.W=function(){this.o||(this.B(),this.B=null);g.Y.prototype.W.call(this)};g.p(r0,x_);g.h=r0.prototype;g.h.show=function(){var a=this.g;x_.prototype.show.call(this);a||(this.B.P(this.o,"presentingplayerstatechange",this.Hs),this.B.P(this.o,"videodatachange",this.Hs),this.Hs())};
g.h.hide=function(){this.B&&(g.wG(this.B),x_.prototype.hide.call(this))};
g.h.Hs=function(){var a=this.o.ga(),b=a.Qh,c;for(c=0;c<b.length;c++){var d=this.A[c];d||(d=new g.Y({H:"button",ca:["ytp-multicam-menu-item","ytp-button"],R:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},K:[{H:"div",M:"ytp-multicam-menu-item-title",K:["{{cameraName}}"]}]}),d.U("click",g.Aa(this.RO,c),this),d.Ea(this.La),this.A[c]=d);var e=b[c],f=e.id;if(f!=d.element.getAttribute("data-id")){var k=e.thumbnail_url;!k&&f&&(k=lO(g.X(this.o),f,"default.jpg"));d.element.style.backgroundImage=k?
"url("+k+")":""}d.update({cameraName:e.title,videoId:f,selected:f==a.videoId?!0:null})}for(;c<this.A.length;)this.A.pop().dispose();c=g.$V(this.o);a=b.length||!a.Sb();kR(c)||g.W(c,4)||a||!y_(this)||this.Fh()};
g.h.RO=function(a){this.o.ga();var b=this.o,c=this.o.ga().Qh[a];a=g.ZV(b.app,1).g;var d=b.getCurrentTime();if(c.id==a.videoId)g.ZV(b.app)!=g.ZV(b.app,1)&&(c=b.app,GZ(c,bY(c,1)),a.Ba||b.tc(d));else{var e=b.app;GZ(e,bY(e,4));O1(b.app,{videoId:c.id,title:a.title,start:a.Ba?null:d,multifeed_metadata_list:a.Xb.multifeed_metadata_list},4)}};
g.h.focus=function(){for(var a=this.o.ga(),b=a.Qh,c=0;c<b.length;c++)if(b[c].id==a.videoId){this.A[c].focus();break}};
g.h.W=function(){g.Ze(this.A);x_.prototype.W.call(this)};g.p(s0,g.Y);s0.prototype.F=function(a){this.B("newdata"==a)};
s0.prototype.B=function(a){var b=this.o.ga(),c=b.Qh,d=g.$V(this.o);d=(kR(d)||g.W(d,4))&&0<c.length;g.IW(this,d);a&&(this.C=!0);if(d){this.C&&this.D.Qd();a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id==b.videoId){a=c[e].title;d=g.U("YTP_MULTICAM_INDEX",{CAMERA_INDEX:e+1,CAMERA_COUNT:c.length})+"\n";break}this.update({text:d+a,preview:b.bc(g.X(this.o),"default.jpg")});w0(this.A)}else this.D.stop()};
s0.prototype.G=function(){lqa(this.A,this.element,g.U("YTP_MORE_CAMERAS_AVAILABLE"));this.C=!1};g.p(t0,g.L);t0.prototype.o=function(){var a=(0,g.ZG)()-this.B;a=a<this.g?a/this.g:1;this.C(EC(usa,a));1>a&&this.A.start()};
var usa=new DC(0,0,.4,0,.2,1,1,1),Kpa=/[0-9.-]+|[^0-9.-]+/g;g.p(v0,g.Y);v0.prototype.ud=function(a){this.B=300<=a.width;g.IW(this,this.B);g.zW(this.o,this.element,this.B&&this.G)};
v0.prototype.fa=function(){g.X(this.o).J?this.o.Le()?(g.iW(this.o,"unmute"),this.o.cg()):(g.iW(this.o,"mute"),this.o.mute()):this.ba.Fh(this.element,!0);g.yW(this.o,this.element)};
v0.prototype.da=function(a){Lpa(this,a.volume,a.muted)};
var Opa=["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"],Ppa=["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.p(x0,g.Y);x0.prototype.A=function(){var a=g.ZV(this.o.app);a&&(a=a.o,a.g.webkitSetPresentationMode("picture-in-picture"==a.g.webkitPresentationMode?"inline":"picture-in-picture"))};g.p(y0,g.Y);y0.prototype.G=function(a){Qpa(this,a.state)};
y0.prototype.F=function(){g.T(this.element,"ytp-play-button-playlist",bW(this.o))};
y0.prototype.I=function(){2==this.A?g.iW(this.o,"pause"):3==this.A?g.iW(this.o,"replay"):1==this.A?g.iW(this.o,"play"):4==this.A&&g.iW(this.o,"stop");kR(g.$V(this.o))?this.o.qd():this.o.fd()};
y0.prototype.W=function(){this.B&&this.B();g.Y.prototype.W.call(this)};g.p(A0,g.Y);g.h=A0.prototype;g.h.Cj=function(){Spa(this);this.G&&(this.Ca(this.G),this.G=null);this.F=this.o.ga(1);if(this.A=this.o.Yf())this.A.subscribe("shuffle",this.Cj,this),this.G=this.P(this.o,"progresssync",this.mN);this.D=Tpa(this);z0(this);this.ud(g.aW(this.o).Xa())};
g.h.ud=function(a){a=void 0===a?g.aW(this.o).Xa():a;var b=bW(this.o)||this.B&&g.vW(this.o)||Upa(this);g.IW(this,b&&(this.B||400<=a.width))};
g.h.nN=function(a){g.iW(this.o,this.B?"next":"previous");var b=!0;this.J?b=g.$Z(a,this.o):g.rG(a);b&&(this.B?this.o.Aj(!0):this.D?this.o.tc(0):this.o.ol(!0))};
g.h.mN=function(){var a=Tpa(this);a!=this.D&&(this.D=a,z0(this))};
g.h.W=function(){this.C&&(this.C(),this.C=null);Spa(this);g.Y.prototype.W.call(this)};g.p(B0,g.bX);g.h=B0.prototype;g.h.rN=function(a){if(!g.pG(a)){var b=!1;switch(g.lG(a)){case 36:this.A.tc(0);b=!0;break;case 35:this.A.tc(window.Infinity);b=!0;break;case 34:this.A.ie(-60);b=!0;break;case 33:this.A.ie(60);b=!0;break;case 38:this.A.ie(5);b=!0;break;case 40:this.A.ie(-5),b=!0}b&&g.rG(a)}};
g.h.dA=function(a,b){Vpa(this,b,"newdata"==a)};
g.h.xI=function(){this.dA("newdata",this.A.ga())};
g.h.qN=function(){Zpa(this.A.ga())?g.$V(this.A).xb()&&F0(this,!0):F0(this,!1)};
g.h.pN=function(a){0<pR(a,64)||!Zpa(this.A.ga())?F0(this,!1):kR(a.state)&&0>pR(a,64)&&F0(this,!0);this.B&&!g.W(a.state,32)&&3!=this.A.Za()&&this.B.cancel()};
g.h.uN=function(a,b,c){var d=g.yh(this.element),e=G0(this).g,f=c?c.getAttribute("data-tooltip"):void 0;f&&(a=ZX(this.o,Number(c.getAttribute("data-position")),0)*e+g.yh(this.Ab).x);this.ra.x=a-d.x;this.ra.y=b-d.y;c=G0(this);a=YX(this.o,c.o);d=f||g.eX(this.sa?a-this.o.g:a);b=this.Aa;c=c.position+this.uc;f=!!f;b.ea||(3==b.o&&b.df(),1!=b.o&&(b.element.className="ytp-tooltip ytp-bottom",b.o=1,b.J&&b.I.show(),b.B=rQ(b.N.ga()),b.B&&b.B.subscribe("l",b.rA,b)),b.update({text:d,title:""}),g.T(b.element,"ytp-text-detail",
!!f),d=-1,b.B&&(d=UO(b.B,160*b.D),d=b.B.g[d].vp(a)),oqa(b,d),mqa(b,!!f,c));g.T(this.A.getRootNode(),"ytp-progress-bar-hover",!g.W(g.$V(this.A),64));Wpa(this)};
g.h.tN=function(){var a=this.Aa;1==a.o&&a.df();g.Vp(this.A.getRootNode(),"ytp-progress-bar-hover")};
g.h.sN=function(a,b){g.XE(this.D);this.D=window.NaN;this.Ib=b;this.A.tc(YX(this.o,G0(this).o),!1);g.S(this.element,"ytp-drag");(this.Ka=kR(g.$V(this.A)))&&this.A.qd()};
g.h.vN=function(){this.ba=0;g.Vp(this.element,"ytp-pull-ui");g.Vp(this.element,"ytp-pulling");if(0<this.G){var a=(0,g.ZG)(),b=this.G,c=G0(this).position;g.XE(this.D);this.D=GW((0,g.A)(this.hA,this,a,b,c),0)}if(g.W(g.$V(this.A),32)||3==this.A.Za())this.A.tc(YX(this.o,G0(this).o)),g.Vp(this.element,"ytp-drag"),this.Ka&&!g.W(g.$V(this.A),2)&&this.A.fd()};
g.h.hA=function(a,b,c){var d=1-Math.pow(1-((0,g.ZG)()-a)/200,3),e=c+d*(this.F*this.C-c);if(0>d||1<d)d=1;$pa(this,(1-d)*b,e,this.F);this.D=1>d?GW((0,g.A)(this.hA,this,a,b,c),0):window.NaN};
g.h.wN=function(a,b){var c=!1,d=!1,e=G0(this);3600<=this.o.getLength()&&($pa(this,this.Ib-b-10,e.position,e.o),d=!0,c=this.G>.1*(this.I?60:40),e=G0(this));g.T(this.element,"ytp-pull-ui",d);c&&g.S(this.element,"ytp-pulling");c=0;e.A&&0>=e.position?c=-1:e.C&&e.position>=e.width&&(c=1);(0,window.isNaN)(this.D)||c&&c==this.ba||g.YE(this.D);c&&(this.D=GW((0,g.A)(this.gA,this,(0,g.ZG)(),this.J),0));this.ba=c;this.A.tc(YX(this.o,e.o),!1)};
g.h.gA=function(a,b){if(this.ba){var c=this.C*(this.V-1);this.J=g.Xc(b+this.ba*((0,g.ZG)()-a)*.3,0,c);D0(this);this.A.tc(YX(this.o,G0(this).o),!1);0<this.J&&this.J<c&&(this.D=GW((0,g.A)(this.gA,this,a,b),0))}};
g.h.fA=function(){this.Ga("clipstarticon",yE());this.Ga("clipendicon",yE());g.S(this.element,"ytp-clip-hover")};
g.h.eA=function(){this.Ga("clipstarticon",AE());this.Ga("clipendicon",zE());g.Vp(this.element,"ytp-clip-hover")};
g.h.no=function(){this.N=0;this.L=window.Infinity;E0(this);C0(this,this.F,this.fa)};
g.h.iA=function(a){a=g.la(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.O[c]){var d=g.zd("DIV");b.tooltip&&(d.setAttribute("data-tooltip",b.tooltip),d.setAttribute("data-position",b.start/1E3));this.O[c]=b;this.ha[c]=d;aqa(this,b,d);"ytp-chapter-marker"==b.style?this.Gc.appendChild(d):this.yc.appendChild(d)}}else bqa(this,b)};
g.h.xN=function(a){a=g.la(a);for(var b=a.next();!b.done;b=a.next())bqa(this,b.value)};
g.h.W=function(){g.YE(this.D);this.D=window.NaN;Ypa(this,!1);g.bX.prototype.W.call(this)};g.p(I0,U_);I0.prototype.C=function(){g.TV(this.T).A&&3!=this.T.Za()?this.A||(X0(this.B,this),this.A=!0):this.A&&(Y0(this.B,this),this.A=!1);var a=g.TV(this.T).A;V_(this,!!a&&a.loaded)};
I0.prototype.D=function(a){a?this.T.nl("annotations_module"):this.T.bo("annotations_module")};
I0.prototype.W=function(){this.A&&Y0(this.B,this);U_.prototype.W.call(this)};g.p(g.J0,g.I_);g.h=g.J0.prototype;g.h.open=function(){g.Q_(this.A,this.C)};
g.h.pf=function(a){if(this.D){var b=this.o[this.D];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked")}this.o[a].element.setAttribute("aria-checked",!0);this.Zb(this.nf(a));this.D=a};
g.h.enable=function(a){this.G?a||(this.G=!1,this.Dj(!1)):a&&(this.G=!0,this.Dj(!0))};
g.h.Dj=function(a){a?X0(this.A,this):Y0(this.A,this)};
g.h.rd=function(a){this.X("select",a)};
g.h.zN=function(a){"true"!=this.o[a].element.getAttribute("aria-disabled")&&this.rd(a)};
g.h.nf=function(a){return a.toString()};
g.h.yN=function(a){g.pG(a)||39!=g.lG(a)||(this.open(),g.rG(a))};
g.h.W=function(){this.G&&Y0(this.A,this);g.I_.prototype.W.call(this);for(var a in this.o)this.o[a].dispose()};g.p(L0,g.J0);L0.prototype.F=function(){var a=this.T.zs();1<a.length?(g.K0(this,(0,g.J)(a,this.B)),this.J=g.Fb(a,this.B,this),this.I.Zb(a.length?" ("+a.length+")":""),this.X("size-change"),this.pf(this.B(this.T.sh())),this.enable(!0)):this.enable(!1)};
L0.prototype.rd=function(a){g.J0.prototype.rd.call(this,a);this.T.Bs(this.J[a]);this.A.Qe()};
L0.prototype.B=function(a){return a.toString()};g.p(M0,U_);M0.prototype.C=function(){var a=this.T.Za();if(2!=a&&3!=a&&g.vW(this.T))this.B||(X0(this.D,this),this.B=!0,this.A.push(this.P(this.T,"videodatachange",this.C)),this.A.push(this.P(this.T,"videoplayerreset",this.C)),this.A.push(this.P(this.T,"onPlaylistUpdate",this.C)),this.A.push(this.P(this.T,"autonavchange",this.F)),this.F(this.T.ga().autonavState));else if(this.B){Y0(this.D,this);this.B=!1;a=g.la(this.A);for(var b=a.next();!b.done;b=a.next())this.Ca(b.value)}};
M0.prototype.F=function(a){V_(this,1!=a)};
M0.prototype.G=function(a){this.T.app.o.za("onAutonavChangeRequest",1!=(a?2:1))};
M0.prototype.W=function(){this.B&&Y0(this.D,this);U_.prototype.W.call(this)};g.p(N0,g.J0);N0.prototype.B=function(){var a=this.T.Za();if(2!=a&&3!=a&&(this.F=fW(this.T),this.J=g.dW(this.T),a=this.T.xs(),g.sW(this.T)&&g.tW(this.T)&&a.unshift("missing-qualities"),g.K0(this,a),a.length)){this.L();this.enable(!0);return}this.enable(!1)};
N0.prototype.L=function(){var a=g.eW(this.T);this.o[a]&&(this.I=this.T.kl(),this.pf(a),"auto"==a&&this.Zb(this.nf(a)),fW(this.T)!=this.F&&this.B())};
N0.prototype.rd=function(a){"missing-qualities"!=a&&(g.J0.prototype.rd.call(this,a),this.T.pl(a),this.A.Ub())};
N0.prototype.nf=function(a,b){b=void 0===b?!1:b;if("missing-qualities"==a)return{H:"a",R:{href:"https://support.google.com/youtube/?p=missing_quality",target:"_blank"},K:[g.U("YTP_MISSING_FORMATS")]};var c={H:"div",K:[cqa(this,a)]},d=g.eW(this.T);b||"auto"!=d||"auto"!=a||(c.K.push(" "),c.K.push(cqa(this,this.I,["ytp-menu-label-secondary"])));return c};g.p(O0,g.Y);O0.prototype.ud=function(a){g.IW(this,this.B&&400<=a.width)};
O0.prototype.C=function(){g.iW(this.T,"settings");if(this.A.g)this.A.Ub();else{var a=g.TV(this.T).g;a&&!a.loaded&&(a.Ds("tracklist",{includeAsr:!0}).length||a.load());this.A.Me(this.element)}};
O0.prototype.o=function(){var a=this.T.Za(),b=2!=a&&3!=a,c=g.gW(this.T),d=b&&!!g.TV(this.T).B;a=d&&1==c.displayMode;c=d&&2==c.displayMode;b=(d=a||c)||!b?null:this.T.kl();g.T(this.element,"ytp-hd-quality-badge","hd720"==b||"hd1080"==b||"hd1440"==b);g.T(this.element,"ytp-4k-quality-badge","hd2160"==b);g.T(this.element,"ytp-5k-quality-badge","hd2880"==b);g.T(this.element,"ytp-8k-quality-badge","highres"==b);g.T(this.element,"ytp-3d-badge-grey",d&&a);g.T(this.element,"ytp-3d-badge",d&&c)};g.p(Q0,g.J0);g.h=Q0.prototype;g.h.Ks=function(a){return a.toString()};
g.h.nf=function(a){return"1"==a?g.U("YTP_NORMAL_SPEED"):a.toString()};
g.h.lA=function(){var a=this.T.Za();this.enable(2!=a&&3!=a)};
g.h.Dj=function(a){g.J0.prototype.Dj.call(this,a);a?(this.B=this.P(this.T,"onPlaybackRateChange",this.BN),g.K0(this,(0,g.J)(this.T.zj(),this.Ks)),this.pf(this.Ks(this.T.Uc()))):(this.Ca(this.B),this.B=null)};
g.h.BN=function(a){this.pf(this.Ks(a))};
g.h.rd=function(a){g.J0.prototype.rd.call(this,a);this.T.Zf((0,window.parseFloat)(a),!0);this.A.Qe()};g.p(R0,g.J0);g.h=R0.prototype;g.h.pf=function(a){g.J0.prototype.pf.call(this,a)};
g.h.pA=function(a){return a.option.toString()};
g.h.nf=function(a){return dqa(this.L[a])};
g.h.rd=function(a){g.J0.prototype.rd.call(this,a);this.X("settingChange",this.J,this.L[a].option)};
g.h.qA=function(a){this.X("settingChange",this.J+"Override",!a);this.A.Qe()};g.p(S0,g.L_);S0.prototype.A=function(a,b){this.X("settingChange",a,b)};g.p(T0,g.J0);T0.prototype.F=function(a){return a.languageCode};
T0.prototype.nf=function(a){return this.B[a].languageName||""};
T0.prototype.rd=function(a){this.X("select",a);g.R_(this.A)};g.p(U0,g.J0);g.h=U0.prototype;g.h.Os=function(a){return g.Wb(a)?"__off__":a.displayName};
g.h.nf=function(a){return"__off__"==a?g.U("YTP_LANGUAGE_OFF"):"__translate__"==a?g.U("YTP_AUTO_TRANSLATE"):"__contribute__"==a?g.U("YTP_CONTRIBUTE_MENU_ITEM"):("__off__"==a?{}:this.B[a]).displayName};
g.h.rd=function(a){"__translate__"==a?this.F.open():"__contribute__"==a?(this.T.qd(),this.T.isFullscreen()&&g.cW(this.T),a=g.mO(g.X(this.T),this.T.ga()),g.OW(a)):(this.T.Cd("captions","track","__off__"==a?{}:this.B[a]),g.J0.prototype.rd.call(this,a),this.A.Qe())};
g.h.vl=function(){var a=-1!=this.T.si().indexOf("captions"),b=this.T.ga().sk;if(a||b){if(a){var c=this.T.xc("captions","track");var d=this.T.xc("captions","tracklist",{includeAsr:!0});var e=this.T.xc("captions","translationLanguages");this.B=g.Fb(d,this.Os,this);var f=(0,g.J)(d,this.Os);if(e.length){var k=this.F;var l=e;k.B=g.Fb(l,k.F,k);g.K0(k,(0,g.J)(l,k.F));f.push("__translate__")}k=this.Os(c)}else this.B={},f=[],k="__off__";f.unshift("__off__");this.B.__off__={};b&&f.unshift("__contribute__");
this.B[k]||(this.B[k]=c,f.push(k));g.K0(this,f);this.pf(k);a?(eqa(this.J,this.T.ti()),this.I.Zb(d.length?" ("+d.length+")":""),this.X("size-change"),a&&e.length&&this.o.__translate__.element.setAttribute("aria-disabled",!!g.Wb(c))):(this.I.Zb(""),this.X("size-change"));this.enable(!0)}else this.enable(!1)};
g.h.oA=function(a){this.T.Cd("captions","sampleSubtitles",a)};
g.h.IN=function(a){var b=this.T.xc("captions","track");b=g.$b(b);b.translationLanguage=this.F.B[a];this.T.Cd("captions","track",b)};
g.h.HN=function(a,b){if("reset"==a)this.T.As();else{var c={};c[a]=b;this.T.fo(c)}this.oA(!0);this.L.start();eqa(this.J,this.T.ti())};
g.h.W=function(){g.Jt(this.L);g.J0.prototype.W.call(this)};g.p(V0,g.N_);V0.prototype.Me=function(a){W0(this);0<this.B.La.length&&g.N_.prototype.Me.call(this,a)};
V0.prototype.show=function(){g.N_.prototype.show.call(this);g.S(this.A.getRootNode(),"ytp-settings-shown")};
V0.prototype.hide=function(){g.N_.prototype.hide.call(this);g.Vp(this.A.getRootNode(),"ytp-settings-shown")};g.p(Z0,g.Y);
Z0.prototype.o=function(){var a=!1;-1!=this.T.si().indexOf("remote")&&(a=1<this.T.xc("remote","receivers").length);g.IW(this,a&&400<=g.aW(this.T).Xa().width);var b=1;a&&this.T.xc("remote","casting")&&(b=2);if(this.A!=b){this.A=b;switch(b){case 1:this.Ga("icon",g.uE?{H:"div",ca:["ytp-icon","ytp-icon-cast-desktop-off"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,R:{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.Ga("icon",g.vE())}g.T(this.element,"ytp-remote-button-active",!!this.T.xc("remote","casting"))}};
Z0.prototype.C=function(){g.iW(this.T,"remote");if(this.T.xc("remote","quickCast"))this.T.Cd("remote","quickCast",!0);else{var a=this.B,b=this.element;if(y_(a))a.Ub();else{W0(a);a:{var c=g.la(a.B.La);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.Me(b));a.Me(b)}}};g.p($0,g.Y);$0.prototype.F=function(){g.iW(this.o,this.o.app.pa?"size_small":"size_large");var a=this.o.app,b=!a.pa;a.g.experiments.g("player_legacy_set_size_style")&&Rqa(a,!0,b);a.o.za("SIZE_CLICKED",b)};
$0.prototype.A=function(){g.IW(this,this.o.app.Id&&!this.o.isFullscreen()&&3!=this.o.Za());if(this.g){var a=this.o.app.pa;if(this.B!=a){var b=a?g.uE?{H:"div",ca:["ytp-icon","ytp-icon-default-view"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{H:"path",Pa:!0,R:{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.uE?{H:"div",ca:["ytp-icon","ytp-icon-theater-mode"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},K:[{H:"path",Pa:!0,R:{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"}}]};g.X(this.o).O||null==this.B?this.Ga("icon",b):Jpa(this.D,this.element,b);a=(this.B=a)?g.U("YTP_DEFAULT_VIEW"):g.U("YTP_THEATER_MODE");this.Ga("title",a);w0(this.C)}}};g.p(a1,g.Y);a1.prototype.B=function(){g.iW(this.A,"subtitles");var a=g.TV(this.A).g;a&&a.QC()};
a1.prototype.o=function(){var a=!!g.TV(this.A).g;g.IW(this,a&&300<=g.aW(this.A).Xa().width);a&&this.Ga("pressed",!!this.A.xc("captions","track").displayName)};g.p(b1,g.Y);
b1.prototype.C=function(){var a=g.aW(this.o).Xa().width,b=350<=a&&(!this.B||!g.W(g.$V(this.o),64));g.IW(this,b);g.T(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.o.th();b&&(b=g.eX(a.current),this.G!=b&&(this.Ga("currenttime",b),this.G=b),b=g.eX(a.duration),this.I!=b&&(this.Ga("duration",b),this.I=b));this.B&&(a=a.isPeggedToLive,this.F!=a&&(this.F=a,this.C(),b=this.D.element,(b.disabled=a)?this.A&&(this.A(),this.A=null,b.removeAttribute("title")):(b.title=g.U("YTP_GOTO_LIVE_TOOLTIP"),this.A=
F_(this.J,this.D.element))))};
b1.prototype.N=function(a,b){this.B=b.Ba;g.T(this.element,"ytp-live",this.B);this.C()};
b1.prototype.L=function(a){a.target==this.D.element?(g.iW(this.o,"live"),this.o.tc(window.Infinity),this.o.fd()):g.iW(this.o,"time")};
b1.prototype.W=function(){this.A&&this.A();g.Y.prototype.W.call(this)};g.p(d1,g.Y);g.h=d1.prototype;g.h.JN=function(){var a=this.F.he();this.G!=a&&(this.G=a,c1(this,this.o.getVolume(),this.o.Le()))};
g.h.ud=function(a){g.IW(this,350<=a.width)};
g.h.CR=function(a){if(!g.pG(a)){var b=g.lG(a),c=null;37==b?c=this.C-5:39==b?c=this.C+5:36==b?c=0:35==b&&(c=100);null!=c&&(c=g.Xc(c,0,100),0==c?this.o.mute():(this.o.Le()&&this.o.cg(),this.o.setVolume(c)),g.rG(a))}};
g.h.KN=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.o.setVolume(this.C+(0>b?-10:10)):this.o.setVolume(this.C+g.Xc(b/10,-10,10));g.rG(a)};
g.h.AR=function(){g.iW(this.o,"volume");e1(this,this.B,!0,this.A,this.F.J);this.V=this.C;this.o.Le()&&this.o.cg()};
g.h.zR=function(a){a-=g.yh(this.O).x;this.o.setVolume(100*g.Xc(a/(this.G?78:52),0,1))};
g.h.yR=function(){e1(this,this.B,!1,this.A,this.F.J);0==this.C&&(this.o.mute(),this.o.setVolume(this.V))};
g.h.LN=function(a){c1(this,a.volume,a.muted)};
g.h.rw=function(){e1(this,this.B,this.D,this.A,this.F.J)};
g.h.sA=function(a){e1(this,this.B,this.D,a,this.F.J)};
g.h.vC=function(a){g.T(this.element,"ytp-volume-control-hover",a);e1(this,a,this.D,this.A,this.F.J)};
g.h.W=function(){g.Y.prototype.W.call(this);g.Vp(this.N,"ytp-volume-slider-active")};g.p(f1,g.Y);f1.prototype.C=function(){this.A=!!this.o.ga().videoId;g.IW(this,this.A);g.zW(this.o,this.element,this.A&&this.B);if(this.A){var a=this.o.getVideoUrl(!0,!1,!1,!0);this.Ga("url",a)}};
f1.prototype.D=function(a){g.iW(this.o,"youtube");var b=this.o.getVideoUrl(!g.fX(a),!1,!0,!0);a_(b,this.o,a);g.yW(this.o,this.element)};g.p(g1,g.uG);g.h=g1.prototype;g.h.Ms=function(){var a=this.B;Xpa(a);var b=a.A.getCurrentTime();(b<a.N||b>a.L)&&a.no();this.O.C()};
g.h.nA=function(){this.au();!this.L.o||this.Ms()};
g.h.FP=function(){this.Ms();this.F.start()};
g.h.au=function(){var a;if(a=!g.X(this.T).isMobile){a=this.B;var b=2*a.C*g.qO();a=300>1E3*a.o.getLength()/a.A.Uc()/b}a=a&&g.$V(this.T).xb()&&!!window.requestAnimationFrame;b=!a;this.L.o||(a=b=!1);b?this.G||(this.G=this.P(this.T,"progresssync",this.Ms)):this.G&&(this.Ca(this.G),this.G=null);a?this.F.isActive()||this.F.start():this.F.stop()};
g.h.ST=function(a){m1(this.A.o,!a)};
g.h.Ns=function(){var a=this.A.he(),b=g.aW(this.T).Xa(),c=h1(this),d=Math.max(b.width-2*c,100);if(this.Y!=b.width||this.V!=a){this.Y=b.width;this.V=a;var e=gqa(this);this.o.element.style.width=e+"px";this.o.element.style.left=c+"px";var f=this.B;f.uc=c;f.C=e;f.I=a;D0(f);this.A.o.da=e}c=this.g;b=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-(this.A.he()?72:50))));c.O=Math.min(570*(a?1.5:1),d);c.N=b;c.Rl();this.au()};
g.h.oa=function(){return this.o.element};g.p(g.i1,g.Y);g.i1.prototype.A=function(){g.S(this.element,"ytp-sb-subscribed")};
g.i1.prototype.B=function(){g.Vp(this.element,"ytp-sb-subscribed")};g.p(j1,g.Y);j1.prototype.Y=function(a){g.iW(this.o,"title");g.yW(this.o,this.element);var b=this.o.getVideoUrl(!g.fX(a),!1,!0);a_(b,this.o,a)};
j1.prototype.ba=function(a,b,c){var d=c.user_info;if(d){b=d.channel_logo_url||d.image_url;c=d.channel_title||d.username;var e=d.channel_url,f=d.channel_external_id;d=d.subscriber_count;b&&e&&c&&g.gP.test(b)&&iqa(this,a,f,c,e,b,d)}};
j1.prototype.G=function(){jqa(this);var a=this.o.ga();this.Ga("title",a.title);this.B&&(this.B.o=a.Sl);var b=g.X(this.o);if(b.experiments.g("embed_view_count")){var c=a.shortViewCount;g.T(this.o.getRootNode(),"ytp-show-title-view-count",!!c);this.Ga("viewCount",c)}!b.I&&a.videoId?(this.Ga("url",this.o.getVideoUrl(!0)),this.A||(this.A=this.P(this.V,"click",this.Y))):this.A&&(this.Ga("url",null),this.Ca(this.A),this.A=null)};g.p(k1,g.Y);g.h=k1.prototype;g.h.pQ=function(a){3==this.o&&this.df();a=a.currentTarget;this.o||(a.removeEventListener("mouseover",this.O),a.addEventListener("mouseout",this.fa),kqa(this,a,2))};
g.h.nQ=function(a){(a=nG(a))&&g.Od(this.A,a)||this.df()};
g.h.rA=function(a,b){if(a<=this.C&&this.C<=b){var c=this.C;this.C=window.NaN;oqa(this,c)}};
g.h.wK=function(){YO(this.B,this.C,160*this.D)};
g.h.df=function(){switch(this.o){case 2:this.A.removeEventListener("mouseout",this.fa),this.A.addEventListener("mouseover",this.O);case 3:3==this.o&&this.ba.stop();this.N.removeEventListener("appresize",this.V);this.L||this.A.setAttribute("title",this.F);this.F="";this.A=null;break;case 1:this.B&&(this.B.unsubscribe("l",this.rA,this),this.B=null),this.N.removeEventListener("videoready",this.V),this.Y.stop()}this.o=null;this.J&&this.I.hide()};
g.h.Xi=function(){if(this.A)for(var a=0;a<arguments.length;a++)g.Od(arguments[a],this.A)&&this.df()};
g.h.W=function(){null!=this.o&&this.df();g.Y.prototype.W.call(this)};g.ra("yt.pubsub.publish",g.MG,void 0);g.p(o1,g.Y);g.h=o1.prototype;g.h.ud=function(a){this.C=300<=a.width;g.IW(this,this.C);a=480<a.width;var b=g.X(this.o);b.experiments.g("enable_watch_later_button_title")&&b.A&&(g.T(this.G,"ytp-show-watch-later-title",a),this.Ga("watch_later",a?g.U("YTP_WATCH_LATER_2"):""));g.zW(this.o,this.element,this.C&&this.I)};
g.h.hS=function(){this.A=!0;this.B=!1;n1(this,1);g.X(this.o).isMobile&&lqa(this.F,this.element);g.X(this.o).Hb&&this.o.za("WATCH_LATER_VIDEO_ADDED")};
g.h.MN=function(){g.iW(this.o,"watchlater");g.yW(this.o,this.element);var a=this.o.ga().videoId;g.X(this.o).Bc?qqa(this,a):g.pqa(function(){JJ({videoId:a});window.location.reload()},null,"wl_button",800,600)};
g.h.iS=function(a,b){this.B=!1;var c=g.U("YTP_ERROR_GENERIC_WITHOUT_LINK");b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);n1(this,4,c);g.X(this.o).Hb&&this.o.za("WATCH_LATER_ERROR",c)};
g.h.jS=function(){this.B=this.A=!1;n1(this,2);g.X(this.o).Hb&&this.o.za("WATCH_LATER_VIDEO_REMOVED")};
g.h.NN=function(){this.B=this.A=!1;n1(this,2)};g.p(p1,g.Y);p1.prototype.D=function(a){g.IW(this,!g.W(a.state,2))};
p1.prototype.B=function(){if(this.A.ga().videoId){var a=this.A.getVideoUrl(!0,!1,!1,!0);this.Ga("url",a);this.o||(this.o=this.U("click",this.C))}else this.o&&(this.Ga("url",null),this.Ca(this.o),this.o=null)};
p1.prototype.C=function(a){var b=this.A.getVideoUrl(!g.fX(a),!1,!0,!0);a_(b,this.A,a)};g.p(q1,A_);g.h=q1.prototype;g.h.Eq=function(a,b){b?this.O=a:this.O=null;this.Lg()};
g.h.Fq=function(a,b){if(b)this.G.push(a);else for(var c=this.G.length;0<=c;c--)if(this.G[c]==a){this.G.splice(c,1);break}this.B.jc(64,0<this.G.length)};
g.h.Vj=function(){g.jW(this.g)&&g.kW(this.g);return!!this.O||A_.prototype.Vj.call(this)};
g.h.Lg=function(){var a=!this.Vj(),b=a&&g.jW(this.g)&&!g.W(g.$V(this.g),2);a?(this.Ra.show(),this.Ta.show()):(this.Ra.hide(),this.Ta.hide(),this.o.Xi(this.C.element));b?this.V.A.show():this.V.A.hide();this.A&&fqa(this.A,!a);A_.prototype.Lg.call(this)};
g.h.Ss=function(a){a&&(this.o.Xi(this.C.element),this.A&&this.o.Xi(this.A.oa()));A_.prototype.Ss.call(this,a)};
g.h.QM=function(a){var b=this.g.getRootNode();a?b.parentElement?(b.setAttribute("aria-label",g.U("YTP_PLAYER_FULLSCREEN")),b.parentElement.insertBefore(this.ba.element,b),b.parentElement.insertBefore(this.aa.element,b.nextSibling)):g.TE(Error("Player not in DOM.")):(b.setAttribute("aria-label",g.U("YTP_PLAYER_NORMAL")),this.ba.detach(),this.aa.detach());this.Bb();this.Pi()};
g.h.he=function(){return this.g.isFullscreen()||!1};
g.h.Bb=function(){var a=this.he();this.o.D=a?1.5:1;g.T(this.I.element,"ytp-big-mode",a);A_.prototype.Bb.call(this)};
g.h.Pi=function(){A_.prototype.Pi.call(this);g.zW(this.g,this.Ka.element,!!this.L);var a=this.Na,b=!!this.L;a.D=b;g.zW(a.o,a.element,a.B&&b);this.ha&&(a=this.ha,b=!!this.L,a.I=b,g.zW(a.o,a.element,a.C&&b));if(!this.L)for(this.o.Xi(this.C.element),a=0;a<this.fa.length;a++)b=this.fa[a],y_(b)&&b.Ub()};
g.h.No=function(a){this.A&&fqa(this.A,this.Vj());A_.prototype.No.call(this,a)};
g.h.yQ=function(){this.B.jc(128,!1)};
g.h.gn=function(){return this.I.g?(this.I.Ub(),!0):this.G.length?(this.G[this.G.length-1].Ub(),!0):this.O?(this.O.Ub(),!0):A_.prototype.gn.call(this)};
g.h.mT=function(a,b){this.Ab=b;this.Fq(a,b);this.Zz()};
g.h.Zz=function(){var a=this.Ab||y_(this.I);this.Fa!=a&&(this.Fa=a,this.g.za("onAutonavPauseRequest",this.Fa))};
g.h.QH=function(){r1(this,this.g.getRootNode(),!0).focus()};
g.h.RH=function(){r1(this,this.g.getRootNode(),!1).focus()};s1.prototype.click=function(a){var b=a.getAttribute("data-visual-id");g.jb(this.g,a);g.jb(this.o,b);g.wW(this,"onLogVeClicked",{id:b})};
s1.prototype.F=function(a){g.jb(this.g,a);var b=a.getAttribute("data-visual-id");g.pb(this.g,a);g.pb(this.A,b);g.pb(this.o,b);a.removeAttribute("data-visual-id")};
s1.prototype.pause=function(){this.B=!0};
s1.prototype.resume=function(){this.B=!1;for(var a=g.la(this.C),b=a.next();!b.done;b=a.next())b=b.value,g.wW(this,b.type,b.data);this.C.length=0};g.p(t1,g.L);g.h=t1.prototype;g.h.tO=function(){v1(this)||g.G1(this,5)};
g.h.JQ=function(a){v1(this)||(Nqa(this),kR(a.A)&&IZ(this))};
g.h.zd=function(){var a=this.F?this.F.Uq():{},b=this.B,c={};b.g&&g.Ba(c,b.g.mM());g.Ba(a,c);(b=this.B.o)&&g.Ba(a,b.Au());a.fs=this.o.isFullscreen();a.volume=Math.round(this.I.getVolume());a.mos=this.I.Le()?1:0;this.g.experiments.g("html5_enable_embedded_player_visibility_signals")&&this.g.A&&(this.Hc&&(b=this.Hc,b=null==b.g?null:Math.round(100*b.g)/100,null!=b&&(a.inview=b)),b=this.G.Xa(),0<b.height&&0<b.width&&(b=[Math.round(b.height),Math.round(b.width)],c=g.qO(),1<c&&b.push(c),a.size=b.join(":")));
return a};
g.h.getCurrentTime=function(a){return 3==XV(this)?g.YV(this.B).getCurrentTime():(a=g.ZV(this,a))?a.getCurrentTime():0};
g.h.getDuration=function(a){return(a=g.ZV(this,a))?a.getDuration():0};
g.h.PK=function(a){switch(a.type){case "loadedmetadata":UP("fvb",this.J.g)||this.J.o("fvb");g.EP("fvb",void 0,"video_to_ad");this.ob.start();break;case "loadstart":UP("gv",this.J.g)||this.J.o("gv");g.EP("gv",void 0,"video_to_ad");break;case "progress":case "timeupdate":!UP("l2s",this.J.g)&&2<=OQ(YQ(a.target))&&this.J.o("l2s");break;case "playing":g.tO&&this.ob.start();var b=this.B.B;a="none"==qh(this.D.g,"display")||0==g.Gh(this.D.g).Qc();b=!WZ(this.G)||b||!this.g.C||this.g.Vg;a&&!b&&(this.F.Kd("hidden",
"1",!0),A1(this).Hi||Z1(this,"hidden",!0))}};
g.h.QP=function(a,b){this.o.za("onLoadProgress",b)};
g.h.DR=function(){this.o.X("playbackstalledatstart")};
g.h.QK=function(a,b){this.o.za("onVideoProgress",b)};
g.h.NK=function(){this.I.X("progresssync")};
g.h.vO=function(a){!this.g.experiments.g("disable_live_head_slowdown")&&0<pR(a,1)&&!g.W(a.state,64)&&this.A.g.Ba&&zV(this.A)&&1<this.o.Uc()&&J1(this,1,!0);var b;if(b=0<pR(a,2))this.C&&(g.aO(this.g)||this.o.isFullscreen()&&!this.Aa)&&g.V1(this)?(W1(this,!1,!this.g.experiments.g("legacy_autoplay_flag")),b=!0):b=!1,b=!b;b&&(b=this.A.o)&&cG(b.g);g.W(a.state,128)&&(b=a.state,P1(this),b=b.g,this.o.za("onError",dsa[b.errorCode]||5),this.o.za("onDetailedError",b));a.state.xb()&&!g.mR(a.state)&&(b=A1(this),
g.FP("cpn",b.clientPlaybackNonce,"ad_to_video"),b.videoId&&g.FP("docid",b.videoId,"ad_to_video"),b.playbackId&&g.FP("plid",b.playbackId,"ad_to_video"),g.EP("pbresume",void 0,"ad_to_video"));this.o.X("applicationplayerstatechange",a)};
g.h.BB=function(a){3!=XV(this)&&(!g.W(a.state,32)&&0>pR(a,16)&&(!g.W(a.state,8)||g.W(a.state,64)||this.D.g.ended||g.W(a.state,2)||IZ(this)),this.o.X("presentingplayerstatechange",a))};
g.h.MK=function(a){0<pR(a,4)&&this.o.app.ha&&(H1(this,!1),this.o.cg());I1(this,nR(a.state))};
g.h.rO=function(a){"newdata"==a&&Gqa(this)};
g.h.xO=function(){this.o.za("onPlaybackAudioChange",this.o.sh().Sc.name)};
g.h.ZR=function(a){a==this.F.g&&this.o.za("onPlaybackQualityChange",a.Oa.video.quality)};
g.h.ts=function(a,b,c){if("newdata"==a)PZ(this.B),this.o.X("videoplayerreset",b);else{if(!this.D)return;if("dataloaded"==a)if(b.C.ng(c.Xb),this.F==this.A){if(this.g.experiments.g("disable_sap_error_check")||!this.A.A.isError()){var d=v1(this);if(d||!this.A.g.Zx||this.g.isMobile){var e=this.A.g;!tQ(e)||d||fQ(this.A.g)?(e.Sb(),d&&g.G1(this,6),zqa(this),d||(e=this.B.o)&&!e.C&&this.B.T.ga(1).adModule&&this.B.o.create()):(d=e.Ba&&!g.iN()?"html5.unsupportedlive":"fmt.noneavailable",g.eV(this.A,d,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"nosupported.1;f18."+ +(0<=e.Hh.indexOf("itag=18"))+";f43."+ +(0<=e.Hh.indexOf("itag=43"))))}else g.eV(this.A,"html5.unsupportedads","YTP_DEVICE_FALLBACK",void 0)}}else zqa(this);1==b.getPlayerType()&&(this.g.J&&Sqa(this),A1(this).Ba&&!this.g.YN&&g.eV(this.A,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0),c.Sb()&&(c.zo||c.ms||c.ye.focEnabled||c.ye.rmktEnabled||A1(this).Up)&&(e=A1(this),M1(this,"part2viewed",1,0x8000000000000),M1(this,"engagedview",Math.max(1,1E3*e.Jf),0x8000000000000),e.Ba||
(e=1E3*e.lengthSeconds,M1(this,"videoplaytime25",.25*e,e),M1(this,"videoplaytime50",.5*e,e),M1(this,"videoplaytime75",.75*e,e),M1(this,"videoplaytime100",e,0x8000000000000),M1(this,"conversionview",e,0x8000000000000))));this.o.X("videodatachange",a,c,b.getPlayerType())}this.g.Hb&&this.o.za("onVideoDataChange",{type:a,playertype:b.getPlayerType()});a=c.clientScreenNonce;c=c.rootVeType;!this.g.experiments.g("player_change_screen_killswitch")&&a&&c&&(b=this.da,a!=b.D&&(b.D=a,g.wW(b,"onScreenChanged",
{csn:a,root_ve_type:c}),b.o.length&&g.wW(b,"onLogVesShown",{ids:b.o}),b.A=g.sb(b.o)))};
g.h.Qm=function(){D1(this,null);this.o.za("onPlaylistUpdate")};
g.h.MA=function(a){var b=a.getId(),c=this.A.g;if("part2viewed"==b)c.QB&&g.AF(c.QB),c.ms&&g.AF(c.ms);else if("conversionview"==b){var d=this.A;d.D&&QR(d.D)}else"engagedview"==b&&g.AF(c.zo);c.Kj&&(d=Iqa(this,c.Kj,a.getId()),g.AF(d));switch(b){case "videoplaytime25":c.az&&g.AF(c.az);g.AF(c.FS);break;case "videoplaytime50":c.bz&&g.AF(c.bz);g.AF(c.GS);break;case "videoplaytime75":c.dz&&g.AF(c.dz);g.AF(c.HS);break;case "videoplaytime100":c.Zy&&g.AF(c.Zy),g.AF(c.ES)}(b=A1(this).Up)&&b[a.getId()]&&(c=b[a.getId()],
g.AF(c,void 0,Rra.test(c)||Sra.test(c)||Tra.test(c)),b=b[a.getId()+"gaia"],g.AF(b,void 0,Rra.test(b)||Sra.test(b)||Tra.test(b)));this.A.F.D(a)};
g.h.isPeggedToLive=function(){return this.A.isPeggedToLive()};
g.h.OK=function(a,b){var c=a.g;if(1==this.N||2==this.N)c.startSeconds=b;2==this.N?F1(this):this.o.X("seekto",b)};
g.h.iO=function(){this.o.X("airplayactivechange")};
g.h.jO=function(){this.o.X("airplayavailabilitychange")};
g.h.DO=function(){this.o.X("beginseeking")};
g.h.rP=function(){this.o.X("endseeking")};
g.h.Zs=function(){var a=this.C.dc(),b=A1(this);b.Ah||!this.fa?(b=b.Tf,a=N1(this,a),b&&Q1(this,a)):a&&R1(this,a);this.o.za("onPlaylistUpdate")};
g.h.pO=function(a){this.o.za("onCueRangeEnter",a.getId())};
g.h.qO=function(a){this.o.za("onCueRangeExit",a.getId())};
g.h.uO=function(){this.ka||(this.ka=sP(this.TA,this));WR(this.J,Ooa(this));if(this.g.experiments.g("html5_playlist_preload")&&g.V1(this)){var a=this.C.dc(bS(this.C));a&&Jqa(this,a,1,!1)}};
g.h.sO=function(){var a=this.A.g,b=this.A.F.g.g||[],c=this.Ya.videoplaytime100;this.g.experiments.g("send_pyv_ad_mt_and_abandon_pings")&&a.Kj&&0<=b.indexOf(c)&&(a=Iqa(this,a.Kj,"video_abandon"),g.AF(a))};
g.h.JP=function(){this.I.X("internalAbandon")};
g.h.TA=function(a){a=a.g;if(!(0,window.isNaN)(a)&&0<a&&this.A){var b=this.A;b.D&&0<a&&(b.D.o.o.aft=[a])}};
g.h.kQ=function(){this.Rs()};
g.h.lQ=function(){this.Rs()};
g.h.Rs=function(){this.g.Hb&&this.F?this.o.za("onApiChange",this.F.getPlayerType()):this.o.za("onApiChange")};
g.h.hQ=function(){var a={volume:g.Xc(Math.floor(100*this.D.getVolume()),0,100),muted:this.D.g.muted};a.muted||H1(this,!1);this.L=g.$b(a);this.o.za("onVolumeChange",a)};
g.h.yP=function(){var a=g.bG();Y1(this,a==this.G.element?1:0);Oqa(this,!!a&&g.Od(this.G.element,a))};
g.h.gR=function(){2!=this.ib&&Y1(this,g.bG()==this.G.element?1:0);this.g.lm&&A1(this)&&!A1(this).backgroundable&&this.D&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&cG(this.D.g)};
g.h.PP=function(a){3!=XV(this)&&this.o.X("liveviewshift",a)};
g.h.fR=function(a){var b=g.UZ(this.G);g.bh(this.gd,b)||(this.gd=b,this.F&&GV(this.F,"r"),!this.g.experiments.g("disable_app_resize")&&this.A&&this.A!=this.F&&GV(this.A,"r"),1==this.ib&&this.Ka&&Oqa(this,!0));this.Gc&&g.ed(this.Gc,a)||(this.o.X("appresize",a),this.Gc=a)};
g.h.Rd=function(){return this.I.Rd()};
g.h.wR=function(){Z1(this,"signature")};
g.h.sQ=function(){y1(this);x1(this)};
g.h.bP=function(){this.o.za("CONNECTION_ISSUE")};
g.h.LK=function(a){this.o.X("heartbeatparams",a)};
g.h.il=function(){var a=this.o.isFullscreen()||$N(this.g),b=this.o.app.yc;return g.lW(this.o)?4:TU()?3:a?2:b?1:0};
g.h.W=function(){this.A.dispose();y1(this);g.Ze(g.Pb(this.Ta),this.C);g.qP(this.ka);this.ka=0;this.Fa&&this.Fa.dispose();g.L.prototype.W.call(this)};
var $2={};g.ra("yt.player.Application.create",function(a,b){try{var c=g.u(a)?a:"player"+g.za(a);if($2[c]){try{$2[c].dispose()}catch(e){g.TE(e)}$2[c]=null}var d=new t1(a,b);g.Xe(d,function(){$2[c]=null});
return $2[c]=d}catch(e){throw g.TE(e),e.stack;}},void 0);
var vsa=g.x("ytcsi.tick");vsa&&vsa("pe");})(_yt_player);
